/* ═══════════════════════════════════════════════════════════════════════
   responsive.css — mobile-first overrides
   Header/footer/nav/drawer живут в components.css (они тоже mobile-first).
   Здесь — адаптация контентных компонентов.

   Стратегия: базовые стили в components.css рассчитаны на MOBILE.
   Эти media-queries расширяют layout на больших экранах (min-width).
   ═══════════════════════════════════════════════════════════════════════ */

/* ───────── ≥ 640px (large mobile / landscape) ───────── */
@media (min-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .stat-cards { grid-template-columns: repeat(3, 1fr); }
    .btn { padding: 12px 22px; font-size: var(--fs-sm); }
    .btn--lg { padding: 16px 28px; font-size: var(--fs-md); }
    .hero__title { font-size: clamp(2rem, 6vw, 2.75rem); }
}

/* ───────── ≥ 768px (tablet) ───────── */
@media (min-width: 768px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    /* section paddings теперь управляются через --section-y в main.css (mobile-first).
       Эти override удалены, чтобы не перекрывать переменные. */
    .section-head__title { font-size: var(--fs-3xl); }
    .h1, h1.page-title { font-size: var(--fs-4xl); }
    .hero { padding: var(--sp-16) 0 var(--sp-20) 0; }
}

/* ───────── ≥ 1024px (desktop) ───────── */
@media (min-width: 1024px) {
    :root {
        --container-pad: 24px;
    }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
    .hero-game__layout, .hero-provider__layout {
        grid-template-columns: 320px 1fr;
        gap: var(--sp-10);
    }
    .catalog { grid-template-columns: 280px 1fr; }
    .filter-panel { position: sticky; top: calc(var(--header-h) + var(--sp-4)); }
    .compare-side-by-side { grid-template-columns: 1fr 1fr; }
    .toc { position: sticky; top: calc(var(--header-h) + var(--sp-4)); }
}

/* ───────── ≥ 1200px (wide) ───────── */
@media (min-width: 1200px) {
    .hero__title { font-size: clamp(2.5rem, 5vw, 3.75rem); }
}

/* ───────── Print ───────── */
@media print {
    .site-header,
    .site-footer,
    .back-to-top,
    .sticky-cta,
    .btn,
    .fake-link { display: none; }
    .prose { font-size: 11pt; }
    a { color: #000; text-decoration: underline; }
}
