/* ==========================================================================
   Kemel Adam 2. Jürek daua
   Layout: white and navy bands divided by thin gold rules. The book is the one
   hero object. Lists carry the four-point star of the app logo, and the
   author's portrait is cut as an arch, echoing the same logo.
   ========================================================================== */

:root {
  --ink: #0d2757;
  --ink-deep: #081b40;
  --ink-soft: #3d4a66;
  --muted: #6d7890;
  --paper: #ffffff;
  --line: #e2e7f0;
  --gold: #c9a063;
  --gold-light: #dcb983;
  --gold-ink: #8a6630;
  --wa: #25d366;

  --font-sans: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-quote: "Lora", Georgia, "Times New Roman", serif;

  --wrap: 1120px;
  --gutter: 20px;
  --radius: 20px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --star: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--font-sans); font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
/* Paints the strip above the sticky header where a phone has a status-bar inset. */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--gold); color: var(--ink-deep); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap {
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  color: #fff; background: rgba(13, 39, 87, 0.95);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: 0 10px 30px rgba(8, 27, 64, 0.24); }
.header .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; padding-block: 12px; }
.brand { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.logo { font-weight: 800; font-size: 16.5px; letter-spacing: 0.14em; white-space: nowrap; }
.tagline { font-size: 11.5px; font-weight: 700; line-height: 1.5; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; flex: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav a:not(.btn) { position: relative; padding: 6px 0; opacity: 0.78; transition: opacity 0.2s; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--gold);
  transform: scaleX(0); transform-origin: left center; transition: transform 0.35s var(--ease);
}
.nav a.active { opacity: 1; }
.nav a.active::after { transform: scaleX(1); }
.nav .btn { min-height: 40px; padding: 9px 20px; font-size: 13px; }
.progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left center; pointer-events: none;
}
.burger { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 13px 26px; border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 15px; line-height: 1.25; letter-spacing: 0.01em; text-align: left;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background-color 0.25s, border-color 0.25s, color 0.25s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn .arr { width: 18px; height: 18px; margin-left: auto; transition: transform 0.3s var(--ease); }
.btn.small { min-height: 40px; padding: 8px 16px; gap: 8px; font-size: 13px; }
.btn.small svg { width: 16px; height: 16px; }

.btn-navy { background: var(--ink); color: var(--gold); box-shadow: 0 10px 24px rgba(13, 39, 87, 0.16); }
.btn-gold { background: var(--gold); color: var(--ink-deep); }
.btn-line { background: transparent; border-color: rgba(13, 39, 87, 0.3); color: var(--ink); }

/* ---------- Hero ---------- */
.hero { background: var(--paper); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; padding-block: 145px 40px; }
.hero-text { min-width: 0; }
.hero-lead { max-width: 560px; font-size: clamp(20px, 2.4vw, 30px); font-weight: 800; line-height: 1.26; letter-spacing: 0.01em; text-transform: uppercase; text-wrap: balance; }
.epigraph { max-width: 460px; margin-top: 24px; padding-left: 18px; border-left: 2px solid var(--gold); }
.epigraph p { font-family: var(--font-quote); font-style: italic; font-weight: 500; font-size: 19px; line-height: 1.5; color: var(--ink-soft); }
.epigraph cite { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-style: normal; font-weight: 700; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.epigraph cite::before { content: ""; width: 10px; height: 10px; flex: none; background: var(--gold); clip-path: var(--star); }

.buy { max-width: 400px; margin-top: 30px; }
.buy-title { display: flex; align-items: center; gap: 14px; font-size: 16px; font-weight: 800; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; }
.buy-title::after { content: ""; flex: 1; height: 1px; background: var(--gold); }
.buy-actions { display: grid; gap: 10px; margin-top: 14px; }
.buy-actions .btn { width: 100%; justify-content: flex-start; padding-inline: 22px; }

.app-buy {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px 14px; align-items: center;
  margin-top: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
}
.app-buy img { width: 52px; height: 52px; }
.app-buy p { font-size: 14.5px; line-height: 1.45; text-wrap: pretty; color: var(--ink-soft); }
.app-buy p b { font-weight: 700; color: var(--ink); white-space: nowrap; }
.app-links { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.app-links .btn { width: 100%; padding-inline: 10px; box-shadow: none; }

.hero-book { justify-self: center; animation: book-in 1s var(--ease) both; }
.hero-book img { width: auto; max-height: 540px; filter: drop-shadow(0 18px 30px rgba(8, 27, 64, 0.18)); animation: float 7s ease-in-out 1.2s infinite; }

.hero-text > :not(.sr-only) { animation: rise 0.8s var(--ease) both; }
.hero-text > .hero-lead { animation-delay: 0.05s; }
.hero-text > .epigraph { animation-delay: 0.15s; }
.hero-text > .buy { animation-delay: 0.25s; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes book-in { from { opacity: 0; transform: translateY(28px) rotate(-3deg) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Section titles and scroll reveal ---------- */
.section-title {
  position: relative; margin-bottom: 28px; padding-bottom: 18px;
  font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; line-height: 1.14; text-transform: uppercase; text-wrap: balance;
}
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; border-radius: 3px; background: var(--gold);
  transform-origin: left center; transition: transform 1.1s var(--ease) 0.15s;
}
.section-title.pre::after { transform: scaleX(0); }
#about .section-title, #contents .section-title, #author .section-title { font-size: clamp(22px, 2.9vw, 34px); }

.reveal { transition: opacity 0.7s ease, transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.pre { opacity: 0; transform: translateY(20px); }

/* ---------- About ---------- */
.about { padding-block: 28px 36px; }
.points-lead { max-width: 760px; font-size: 16px; font-weight: 700; line-height: 1.5; letter-spacing: 0.06em; text-transform: uppercase; }
.points-lead .gold { color: var(--gold); }
.b1-text .gold { color: var(--gold); font-weight: 700; white-space: nowrap; }
.points { counter-reset: pt; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; margin-top: 14px; }
.points li {
  counter-increment: pt; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: start;
  padding: 18px 0; border-top: 1px solid var(--line); font-size: 16px; font-weight: 600; line-height: 1.55; color: var(--ink);
}
.points li::before {
  content: counter(pt); padding-top: 1px;
  font-size: 32px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums;
  /* Outlined numerals: the paper-coloured fill is painted over the inner half of the stroke. */
  color: var(--paper); -webkit-text-stroke: 2.4px var(--gold); paint-order: stroke fill; transition: color 0.3s;
}
.points li b { font-weight: 800; color: var(--gold); }
.points li:first-child { grid-column: 1 / -1; font-size: 19px; font-weight: 600; color: var(--ink); }
.points li:nth-child(odd):not(:first-child) { --d: 0.09s; }

/* ---------- Contents ---------- */
.contents { padding-block: 28px 48px; }
.contents-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.contents-grid .section-title { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 104px); margin-bottom: 0; }
.toc details { border-bottom: 1px solid var(--line); }
.toc details:first-child { border-top: 1px solid var(--line); }
.toc summary { display: block; list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.toc summary::-webkit-details-marker { display: none; }
.sum-text { min-width: 0; }
.sum { display: grid; grid-template-columns: minmax(0, 1fr) 38px; gap: 16px; align-items: center; padding: 20px 0; }
.part { display: block; margin-bottom: 5px; font-size: 13.2px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-ink); }
.part-title { display: block; font-size: 18px; font-weight: 700; line-height: 1.3; }
.tgl { position: relative; width: 38px; height: 38px; border: 1.5px solid var(--line); border-radius: 50%; transition: transform 0.4s var(--ease), border-color 0.25s, background-color 0.25s; }
.tgl::before, .tgl::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 2px;
  background: var(--ink); transition: transform 0.4s var(--ease), background-color 0.25s;
}
.tgl::after { transform: rotate(90deg); }
.toc details[open] .tgl { transform: rotate(180deg); border-color: var(--ink); background: var(--ink); }
.toc details[open] .tgl::before, .toc details[open] .tgl::after { background: #fff; }
.toc details[open] .tgl::after { transform: rotate(0deg); }

.toc ul { padding: 0 0 22px; }
.toc .sub { margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.toc .sub + ul { padding-bottom: 18px; }
.toc li { position: relative; padding: 6px 0 6px 20px; font-size: 16px; font-weight: 600; line-height: 1.55; color: var(--ink-soft); }
.toc li::before { content: ""; position: absolute; left: 0; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.toc details[open] li { animation: chip-in 0.45s var(--ease) both; animation-delay: calc(var(--n, 0) * 16ms); }
@keyframes chip-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Author ---------- */
.author { padding-block: 40px 64px; }
.author-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: center; }
.author-photo { position: relative; width: 100%; max-width: 400px; justify-self: center; }
.author-photo::before { content: ""; position: absolute; inset: -12px 12px 12px -12px; border: 1.5px solid var(--gold); border-radius: 999px 999px 32px 32px; pointer-events: none; }
.author-photo img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top center; border-radius: 999px 999px 26px 26px; }
.author-name { margin-bottom: 12px; font-size: 20px; color: var(--gold); font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; }
.author-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: start; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 600; line-height: 1.55; }
.author-list li::before { content: ""; width: 12px; height: 12px; margin-top: 7px; background: var(--gold); clip-path: var(--star); }
.author-quote {
  display: flex; align-items: center; gap: 18px; margin-top: 24px; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 14px 34px rgba(8, 27, 64, 0.07);
}
.author-quote img { width: 76px; height: 76px; flex: none; padding: 3px; border: 2px solid var(--gold); border-radius: 50%; object-fit: cover; }
.author-quote p { font-family: var(--font-quote); font-style: italic; font-weight: 500; font-size: 17px; line-height: 1.5; }
.author-quote small { display: block; margin-top: 8px; font-family: var(--font-sans); font-style: normal; font-weight: 700; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Price ---------- */
.price { padding-block: 60px 68px; color: #fff; background: linear-gradient(180deg, var(--ink) 0%, #0a2150 100%); }
.price-card {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 48px; align-items: center;
  padding: 40px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius-lg);
}
.price-book img { width: auto; max-height: 440px; margin-inline: auto; filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.38)); }
.price-info { --d: 0.1s; min-width: 0; }
.specs li { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); font-size: 16px; font-weight: 600; }
.specs li span:first-child { opacity: 0.8; }
.amount { margin: 24px 0 20px; font-size: 54px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: var(--gold); }
.price .buy-actions { max-width: 400px; margin-top: 0; }
.price .btn-line { border-color: var(--gold); color: #fff; }
.price .app-buy { max-width: 400px; border-color: rgba(255, 255, 255, 0.2); background: transparent; }
.price .app-buy p { color: rgba(255, 255, 255, 0.82); }
.price .app-buy p b { color: #fff; }

/* ---------- First book ---------- */
.book1 { padding-block: 64px 40px; }
.book1-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; }
.book1-img img { width: auto; max-height: 440px; margin-inline: auto; border-radius: 24px; box-shadow: 0 22px 48px rgba(8, 27, 64, 0.2); }
.book1-body { --d: 0.1s; min-width: 0; }
.book1 .buy-actions { max-width: 400px; margin-top: 0; }
.book1 .app-buy { max-width: 400px; }
.book1-body h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; line-height: 1.14; text-transform: uppercase; }
.b1-text { max-width: 500px; margin: 14px 0 10px; font-size: 17.5px; color: var(--ink-soft); }
.b1-price { margin-bottom: 18px; font-size: 30px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }

/* ---------- Survey ---------- */
.quiz { padding-block: 24px 72px; }
.quiz-card {
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px 40px;
  padding: 44px 52px; border-radius: var(--radius-lg); color: #fff;
  background: linear-gradient(135deg, #123273 0%, var(--ink) 48%, var(--ink-deep) 100%);
}
.quiz-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--gold); pointer-events: none; }
.quiz-card::after { content: ""; position: absolute; right: -50px; top: -70px; width: 250px; height: 250px; background: rgba(255, 255, 255, 0.05); clip-path: var(--star); pointer-events: none; }
.quiz-text { position: relative; flex: 1 1 380px; min-width: 0; }
.quiz-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--gold); font-size: 12.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.quiz-eyebrow i { flex: none; width: 13px; height: 13px; background: var(--gold); clip-path: var(--star); }
.quiz-card h2 { margin: 0; font-size: clamp(19px, 2.3vw, 27px); font-weight: 700; line-height: 1.32; text-wrap: balance; overflow-wrap: break-word; }
.quiz-card .btn { position: relative; flex: none; }

/* ---------- Footer ---------- */
.footer { padding-block: 28px 26px; font-size: 14px; color: #fff; background: var(--ink-deep); }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.footer .logo { display: block; margin-bottom: 14px; }
.footer h4 { margin-bottom: 8px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.footer li { padding: 1px 0; line-height: 1.5; }
.footer a { opacity: 0.8; transition: opacity 0.2s; }
.footer .with-ico { display: inline-flex; align-items: center; gap: 8px; }
.footer .with-ico svg { width: 18px; height: 18px; flex: none; }
.footer small { display: block; font-size: 12px; opacity: 0.55; }
.footer .label { margin-left: 8px; font-size: 12px; opacity: 0.55; }
.copyright { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 12px; opacity: 0.55; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 25;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  color: #fff; background: var(--wa); box-shadow: 0 10px 26px rgba(37, 211, 102, 0.42);
  transition: transform 0.25s var(--ease);
}
.wa-float::before { content: ""; position: absolute; inset: 0; border: 2px solid var(--wa); border-radius: 50%; pointer-events: none; animation: ring 3s ease-out infinite; }
.wa-float svg { width: 30px; height: 30px; }
@keyframes ring { 0% { transform: scale(1); opacity: 0.55; } 70%, 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Pointer devices: hover feedback ---------- */
@media (hover: hover) {
  .nav a:not(.btn):hover { opacity: 1; }
  .nav a:not(.btn):hover::after { transform: scaleX(1); }
  .btn:hover { transform: translateY(-2px); }
  .btn:hover .arr { transform: translateX(4px); }
  .btn-navy:hover { background: var(--ink-deep); box-shadow: 0 14px 30px rgba(13, 39, 87, 0.26); }
  .btn-gold:hover { background: var(--gold-light); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2); }
  .btn-line:hover { border-color: var(--ink); }
  .price .btn-line:hover { border-color: var(--gold-light); background: rgba(255, 255, 255, 0.06); }
  .points li:hover::before { color: var(--gold); }
  .toc summary:hover .tgl { border-color: var(--gold); }
  .toc details[open] summary:hover .tgl { border-color: var(--ink); }
  .footer a:hover { opacity: 1; }
  .wa-float:hover { transform: scale(1.08); }
}

.btn:active { transform: scale(0.98); }

/* ---------- Narrow desktop windows ---------- */
@media (max-width: 1000px) {
  .header .wrap { gap: 18px; }
  .nav { gap: 18px; }
}

/* ---------- Phones and small tablets ---------- */
@media (max-width: 860px) {
  .header .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; align-items: center; min-height: 0; padding-block: 10px; }
  .brand { display: contents; }
  .logo { grid-column: 1; grid-row: 1; }
  .tagline { grid-column: 1 / -1; grid-row: 2; letter-spacing: 0.09em; }
  .js .burger { position: relative; display: block; grid-column: 2; grid-row: 1; width: 40px; height: 32px; margin-right: -9px; -webkit-tap-highlight-color: transparent; }
  .burger span { position: absolute; left: 9px; right: 9px; height: 2px; border-radius: 2px; background: #fff; transition: transform 0.35s var(--ease), top 0.35s var(--ease); }
  .burger span:nth-child(1) { top: 11px; }
  .burger span:nth-child(2) { top: 19px; }
  .menu-open .burger span:nth-child(1) { top: 15px; transform: rotate(45deg); }
  .menu-open .burger span:nth-child(2) { top: 15px; transform: rotate(-45deg); }

  .nav {
    position: absolute; left: 0; right: 0; top: 100%; display: grid; gap: 0; margin: 0;
    padding: 4px max(var(--gutter), env(safe-area-inset-right, 0px)) 22px max(var(--gutter), env(safe-area-inset-left, 0px));
    font-size: 17px; white-space: normal; background: #0a204a; box-shadow: 0 24px 40px rgba(8, 27, 64, 0.3);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.35s var(--ease), visibility 0s linear 0.35s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav a:not(.btn) { padding: 15px 0; font-weight: 600; opacity: 1; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .nav a:not(.btn)::after { display: none; }
  .nav a.active { color: var(--gold); }
  .nav .btn { width: 100%; min-height: 50px; margin-top: 18px; font-size: 15px; }

  .hero-grid { padding-block: 75px 20px; }
  .hero-book { order: -1; }
  .hero-book img { max-height: 380px; }
  .hero-lead { font-size: 20px; }
  .epigraph { margin-top: 20px; }
  .epigraph p { font-size: 18px; }
  .buy { max-width: none; margin-top: 26px; }
  .buy-actions .btn { gap: 8px; padding-inline: 18px; font-size: 14px; letter-spacing: 0; }

  .section-title { margin-bottom: 20px; padding-bottom: 14px; }

  .about { padding-block: 16px 24px; }
  .points-lead { font-size: 15px; }
  .points { grid-template-columns: minmax(0, 1fr); margin-top: 10px; }
  .points li { grid-template-columns: 34px minmax(0, 1fr); padding: 14px 0; font-size: 15.5px; }
  .points li::before { font-size: 26px; }
  .points li:first-child { font-size: 16.5px; }
  .points li:nth-child(odd):not(:first-child) { --d: 0s; }

  .contents { padding-block: 16px 28px; }
  .contents-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .contents-grid .section-title { position: relative; top: auto; margin-bottom: 2px; }
  .toc details:first-child { border-top: 0; }
  .sum { padding: 16px 0; }
  .part-title { font-size: 16.5px; }
  .toc ul { padding-bottom: 18px; }

  .author { padding-block: 28px 44px; }
  .author-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .author-photo { max-width: 320px; }
  .author-list li { font-size: 15.5px; }
  .toc li { font-size: 15.5px; }  .author-quote { gap: 14px; padding: 16px; }
  .author-quote img { width: 60px; height: 60px; }
  .author-quote p { font-size: 15.5px; }

  .price { padding-block: 40px 48px; }
  .price-card { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 0; border: 0; border-radius: 0; }
  .price-book img { max-height: 300px; }
  .price-info { --d: 0s; }
  .amount { font-size: 44px; }
  .price .buy-actions, .price .app-buy { max-width: none; }

  .book1 { padding-block: 44px 28px; }
  .book1-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .book1-img img { max-height: 380px; }
  .book1-body { --d: 0s; }
  .book1 .buy-actions, .book1 .app-buy { max-width: none; }

  .quiz { padding-block: 16px 48px; }
  .quiz-card { padding: 30px 22px 30px 27px; gap: 22px; }
  .quiz-text { flex-basis: 100%; }
  .quiz-card .btn { width: 100%; justify-content: center; padding-inline: 22px; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 360px) {
  .tagline { font-size: 11px; letter-spacing: 0.06em; }
}
@media (max-width: 340px) {
  .tagline { font-size: 10.5px; letter-spacing: 0.02em; }
  .app-links { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Reduced motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}
@media print {
  .header, .wa-float { position: static; }
  .wa-float, .burger, .progress { display: none; }
  .reveal.pre { opacity: 1 !important; transform: none !important; }
}
