@media (min-width: 1440px) { .container { max-width: 1280px; } body { font-size: 17px; } }
@media (min-width: 1024px) { .pd-grid { grid-template-columns: 400px 1fr; } .checkout-grid { grid-template-columns: 1.15fr .85fr; } }
@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; } .hero-art { min-height: 360px; order: 2; }
  .cta-band { grid-template-columns: 1fr; } .foot-grid { grid-template-columns: 1fr 1fr; }
  .pd-grid { grid-template-columns: 1fr; } .pd-cover { max-width: 330px; margin-inline: auto; width: 100%; }
  .checkout-grid { grid-template-columns: 1fr; } .checkout-aside { position: static !important; order: -1; }
  .reviews-grid { grid-template-columns: 1fr; } .book3d { width: clamp(120px, 22vw, 180px); }
}
@media (max-width: 767px) {
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  body.reader-body { padding-bottom: 0; }
  .topbar { font-size: .72rem; } .nav-links { display: none; } .burger { display: grid; } .bottom-nav { display: flex; }
  .hero { padding-top: 2.2rem; } .hero h1 { font-size: clamp(2.35rem, 11vw, 3rem); } .hero-art { min-height: 300px; }
  .section { padding-block: 44px; }
  .grid-books { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .bc-body { padding: .85rem .85rem 1rem; } .bc-title { font-size: .95rem; }
  .bc-actions { flex-direction: column; } .bc-actions .btn { width: 100%; }
  .pd-cta { flex-direction: column; } .pd-cta .btn { width: 100%; }
  .info-table { grid-template-columns: 1fr; } .learn-grid { grid-template-columns: 1fr; }
  .cart-row-lg { grid-template-columns: 64px 1fr auto; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-body { padding: 1rem; } .toasts { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .book3d { width: clamp(96px, 28vw, 150px); } .book3d.b1 { left: 0; top: 20%; } .book3d.b3 { right: 0; }
}
@media (max-width: 400px) {
  .nav-inner { gap: .75rem; } .brand { font-size: 1.05rem; gap: .45rem; } .brand-text small { display: none; }
  .brand-mark { width: 32px; height: 32px; border-radius: 8px; } .nav-actions { gap: .1rem; } .icon-btn { width: 38px; height: 38px; }
  .nav-actions .btn-ghost { padding: .4em .8em; font-size: .78rem; }
  .hero { padding-top: 1.6rem; } .hero h1 { font-size: 2.1rem; } .hero-meta { flex-direction: column; gap: .35rem; }
  .hero-art { min-height: 280px; } .book3d { width: clamp(84px, 26vw, 120px); }
  .grid-books { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cover-wrap { padding: 10px; } .quick-view { display: none; }
  .bc-body { padding: .7rem .7rem .9rem; } .bc-title { font-size: .88rem; } .bc-author { font-size: .74rem; }
  .bc-rating { font-size: .72rem; gap: .25rem; } .bc-price b { font-size: 1rem; } .off-tag { display: none; }
  .cv-pub { font-size: .38rem; } .cv-title { font-size: .72rem; } .cv-author { font-size: .4rem; }
  .toolbar { flex-direction: column; } .pay-options { flex-direction: column; }
  .pd-price b { font-size: 1.6rem; } .reader-bottom { gap: .4rem; }
  .reader-bottom .btn { padding: .45em .7em; font-size: .75rem; } .rd-buy { font-size: .72rem; padding: .55em 1em; }
  .foot-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: .6rem; } .stat-val { font-size: 1.15rem; }
  .shelf-grid { grid-template-columns: 1fr 1fr; gap: .6rem; } .shelf-name { font-size: .9rem; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .chip { font-size: .78rem; padding: .45em .85em; } .toast { font-size: .78rem; }
}
@media (max-width: 299px) { .grid-books { grid-template-columns: 1fr; } .hero h1 { font-size: 1.8rem; } .bottom-nav a span { font-size: .55rem; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; }
}
