@media (max-width: 1080px) {
  .hero-grid,
  .page-hero .container,
  .detail-hero .container,
  .detail-grid,
  .form-layout,
  .auth-shell,
  .quiz-shell {
    grid-template-columns: 1fr;
  }

  .cards-grid,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid,
  .dashboard-panels,
  .dashboard-stats,
  .stats-strip-grid,
  .compare-filter-grid,
  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1360px) and (min-width: 961px) {
  .desktop-nav {
    display: none;
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
  }

  .brand {
    width: auto;
    min-width: 0;
    max-width: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 1.35rem;
    flex-shrink: 0;
  }
}

@media (max-width: 960px) {
  :root {
    --header-height: 82px;
  }

  .desktop-nav,
  .nav-actions .header-phone,
  .nav-actions .desktop-only,
  .nav-secondary-btn {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 1.35rem;
    flex-shrink: 0;
  }

  .topbar {
    display: none;
  }

  .hero {
    padding-top: 54px;
  }

  .site-header {
    height: auto;
    min-height: var(--header-height);
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    min-height: var(--header-height);
    padding: 0.7rem 0;
  }

  .brand {
    gap: 0.65rem;
    width: auto;
    min-width: 0;
  }

  .brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .brand-name {
    font-size: 1.2rem;
  }

  .site-header .brand-sub,
  .site-header .brand small {
    font-size: 0.56rem;
    letter-spacing: 0.14em;
  }

  .nav-actions {
    gap: 0.55rem;
  }

  .nav-user-stack {
    gap: 0.26rem;
  }

  .nav-user-stack .btn {
    min-width: 82px;
    min-height: 32px;
    padding: 0.28rem 0.72rem;
    font-size: 0.76rem;
  }

  .nav-user-name {
    max-width: 92px;
  }

  .nav-primary-btn {
    min-height: 44px;
    padding: 0.55rem 1rem;
    font-size: 0.84rem;
  }

  .mobile-drawer {
    padding: 1.15rem 1rem 2rem;
  }

  .hero-stats,
  .cards-grid,
  .grid-3,
  .grid-2,
  .grid-4,
  .hero-gallery,
  .result-gallery,
  .footer-grid,
  .form-grid,
  .dashboard-panels,
  .dashboard-stats,
  .stats-strip-grid,
  .info-card-grid,
  .review-grid,
  .contact-cards,
  .compare-filter-grid,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .floating-highlight,
  .info-grid,
  .programme-action-bar,
  .key-info-bar {
    grid-template-columns: 1fr;
  }

  .compare-tray {
    width: calc(100% - 1.5rem);
    justify-content: space-between;
    border-radius: 22px;
  }
}

@media (max-width: 767px) {
  .container {
    width: min(var(--container), calc(100% - 1.25rem));
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-hero h1 {
    font-size: 2.25rem;
  }

  .topbar,
  .phone-header-hide {
    display: none !important;
  }

  .site-header {
    min-height: 74px;
  }

  .header-inner {
    gap: 0.6rem;
    padding: 0.55rem 0;
  }

  .brand-icon {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 1.08rem;
  }

  .site-header .brand-sub,
  .site-header .brand small {
    font-size: 0.5rem;
    letter-spacing: 0.12em;
  }

  .nav-actions {
    gap: 0.45rem;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .hero-actions,
  .form-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .filter-bar {
    position: static;
  }

  .step-chip {
    min-width: unset;
    width: 100%;
  }

  .programme-action-bar {
    position: static;
  }

  .floating-whatsapp {
    right: 0.75rem;
    bottom: 1.2rem;
  }
  .scroll-top {
    left: 0.75rem;
    right: auto;
  }

  .mobile-cta-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 24;
    padding: 0.75rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
}
