@media (max-width: 1100px) {
  .season-grid,
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { gap: 32px; padding: 64px 0; }
  .hero-cover-wrap { width: min(260px, 82%); }
  .preview-layout { grid-template-columns: 1fr 1.4fr; gap: 28px; }
  .preview-aside {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .brand-text small { display: none; }
}

@media (max-width: 820px) {
  html, body { overflow-x: clip; max-width: 100%; }

  .container { width: min(100% - 28px, 640px); }
  .section { padding: 56px 0; }
  .site-header { position: sticky; top: 0; z-index: 50; }
  .navbar {
    height: 64px;
    justify-content: space-between;
    gap: 10px;
  }
  .brand { min-width: 0; }
  .brand-text strong { font-size: 1.15rem; }
  .brand-text small { display: none; }

  .nav-links-desktop { display: none !important; }
  .nav-cta { display: none !important; }
  .menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
  .nav-end { gap: 8px; }

  .nav-drawer {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: auto;
    width: min(300px, 86vw);
    max-width: 100%;
    margin: 0;
    padding: 20px 18px 28px;
    background: #fffcf7;
    box-shadow: -12px 0 40px rgba(18, 40, 70, 0.2);
    z-index: 70;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translate3d(105%, 0, 0);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s ease, visibility 0.28s;
    font: 600 1.05rem var(--sans);
    color: var(--navy);
  }
  .lang-rtl .nav-drawer {
    right: auto;
    left: 0;
    box-shadow: 12px 0 40px rgba(18, 40, 70, 0.2);
    transform: translate3d(-105%, 0, 0);
  }
  .nav-drawer.open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
  }
  .nav-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
  }
  .nav-drawer-close {
    border: 0;
    background: #f0f4f7;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 1.1rem;
    color: var(--navy);
    cursor: pointer;
  }
  .nav-drawer a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--navy);
  }
  .nav-drawer a.active { color: var(--orange); }
  .nav-mobile-account {
    display: block !important;
    margin-top: 18px;
    padding: 12px 14px !important;
    border: 0 !important;
    border-radius: 999px;
    background: var(--navy);
    color: #fff !important;
    text-align: center;
    font-weight: 700;
  }
  .nav-install-btn {
    display: block !important;
    width: 100%;
    margin-top: 12px;
    border: 0;
    border-radius: 999px;
    background: var(--orange);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 16px;
    cursor: pointer;
  }
  .nav-backdrop {
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: 65;
    border: 0;
    padding: 0;
    background: rgba(18, 40, 70, 0.4);
    cursor: pointer;
  }

  .hero { min-height: auto; }
  .hero-media {
    background:
      linear-gradient(180deg, rgba(249, 247, 242, 0.92) 0%, rgba(249, 247, 242, 0.82) 100%),
      url('https://images.unsplash.com/photo-1470770841072-f978cf4d019e?auto=format&fit=crop&w=900&q=70') center / cover no-repeat;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 0 48px;
    min-height: 0;
  }
  .hero-content { max-width: none; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .hero-cover-wrap {
    justify-self: center;
    width: min(200px, 62%);
  }
  .book3d-model-stage { height: min(300px, 42vh); min-height: 240px; }
  .book3d-hint { display: none; }
  .season-grid,
  .cards-grid { grid-template-columns: 1fr; gap: 20px; }
  .preview-layout { grid-template-columns: 1fr; gap: 28px; }
  .book-preview-3d { padding: 10px 16px; }
  .book-page { min-height: 240px; padding: 20px 16px; }
  .book-page:last-child img { min-height: 240px; }
  .preview-aside { grid-template-columns: 1fr; }
  .subscribe-grid,
  .print-panel,
  .about-preview .split,
  .issue-detail,
  .auth-shell,
  .split { grid-template-columns: 1fr; }
  .print-panel .print-image { height: 220px; order: -1; }
  .auth-image { min-height: 200px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
  .footer-note { text-align: left; }
  .page-hero { padding: 48px 0; }

  /* Install banner — clearer on small screens */
  .pwa-install {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .pwa-install-inner {
    flex-wrap: wrap;
    gap: 10px;
  }
  .pwa-install-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 16px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .brand-text strong { font-size: 1.05rem; }
  .brand-mark { width: 40px; height: 40px; }
  .hero-cover-wrap { width: min(170px, 58%); }
  .button { padding: 13px 18px; }
}
