/* Лендинг и документы ЧитайИграй. Цвета и размеры — из /assets/tokens.css. */
:root {
  --green: #1E5A3C; --mint: #D7E7DC; --on-mint: #123A27; --cream: #F2C230;
  --gutter: clamp(16px, 2.2vw, 24px);
}
[data-theme="dark"] { --green: #9BD3AE; --mint: #1F3B2C; --on-mint: #C3EBD0; --cream: #1B2C23; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --green: #9BD3AE; --mint: #1F3B2C; --on-mint: #C3EBD0; --cream: #1B2C23; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font-family: var(--font-sans); font-size: var(--fs-body); line-height: 1.55; overflow-x: hidden;
}
a { color: var(--accent-ink); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
.serif { font-family: var(--font-serif); }
.muted { color: var(--muted); }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { padding-top: 12px; padding-bottom: 12px; display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-family: var(--font-serif); font-size: 20px; font-weight: 700; }
.brand-name { font-family: var(--font-serif); font-size: 21px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.site-nav { display: flex; gap: 20px; font-size: 15px; white-space: nowrap; min-width: 0; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pill-btn { height: 40px; min-width: 40px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: transparent; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.pill-btn:hover { color: var(--ink); background: var(--sunk); }
.pill-btn.solid { background: var(--ink); color: var(--bg); border-color: var(--ink); font-size: 15px; font-weight: 600; padding: 0 18px; }
.pill-btn.solid:hover { color: var(--bg); opacity: .9; }
.theme-icon { font-size: 16px; line-height: 1; }
@media (max-width: 1099px) {
  .site-nav { display: none; }
  .theme-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .theme-btn { padding: 0; }
}
@media (min-width: 1100px) { .theme-icon { display: none; } }

/* Общие секции */
.section { padding-top: clamp(56px, 7vw, 112px); padding-bottom: clamp(56px, 7vw, 112px); display: flex; flex-direction: column; gap: 44px; }
.band { background: var(--sunk); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-feature { background: var(--feature-bg); color: var(--feature-ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--muted); }
.band-feature .eyebrow, .band-feature .lead, .band-feature figcaption span { color: var(--feature-muted); }
.h2 { font-family: var(--font-serif); font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
.lead { color: var(--muted); font-size: 18px; text-wrap: pretty; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: var(--fs-h3); line-height: 1.3; }
.card p { color: var(--muted); font-size: 16px; }
.grid-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

/* Первый экран */
.hero { padding-top: clamp(40px, 6vw, 96px); padding-bottom: clamp(48px, 6vw, 96px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero h1 { font-family: var(--font-serif); font-weight: 700; font-size: var(--fs-display); line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
.hero-lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); max-width: 34em; text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.cta { height: var(--h-cta); padding: 0 26px; border-radius: var(--r-sm); background: var(--accent); color: var(--on-accent); display: inline-flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none; font-size: 18px; font-weight: 700; }
.cta:hover { color: var(--on-accent); filter: brightness(1.08); }
.cta-icon { width: 26px; height: 26px; border-radius: 7px; border: 2px solid currentColor; display: grid; place-items: center; font-size: 14px; line-height: 1; }
.cta-note { font-size: 15px; color: var(--muted); line-height: 1.4; }
.facts { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 12px 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { font-family: var(--font-serif); font-size: 28px; font-weight: 700; }
.hero-art { position: relative; display: flex; justify-content: center; padding: 12px 0; }
.hero-backdrop { position: absolute; inset: 8% 6%; border-radius: 4px; background: var(--cream); }
.reward-chip { position: absolute; right: max(0px, calc(50% - 250px)); bottom: 72px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); border-radius: var(--r-sm); padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.reward-chip .plus { width: 40px; height: 40px; border-radius: 12px; background: var(--mint); color: var(--on-mint); display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.reward-chip span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.reward-chip b { font-size: 15px; }
.reward-chip small { font-size: 13px; color: var(--muted); }

/* Макет телефона */
.phone { position: relative; width: 252px; height: 520px; border-radius: 40px; background: #11151B; padding: 9px; box-shadow: var(--shadow-1); flex: none; }
.phone.big { width: 290px; height: 600px; border-radius: 44px; padding: 10px; }
.phone.mid { height: 500px; }
.screen { height: 100%; border-radius: 32px; background: var(--bg); color: var(--ink); overflow: hidden; display: flex; flex-direction: column; font-size: 13px; position: relative; }
.phone.big .screen { border-radius: 35px; }
.status { display: flex; justify-content: space-between; padding: 11px 20px 4px; font-size: 11px; font-weight: 600; }
.phone.big .status { padding: 12px 22px 6px; font-size: 12px; }
.scr-head { padding: 8px 16px 10px; }
.scr-head.lined { border-bottom: 1px solid var(--line); }
.scr-kicker { font-size: 11px; color: var(--muted); }
.scr-title { font-family: var(--font-serif); font-size: 19px; font-weight: 700; }
.phone.big .scr-kicker { font-size: 12px; }
.phone.big .scr-title { font-size: 20px; }
.progress { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.progress-track { flex: 1; height: 6px; border-radius: 3px; background: var(--sunk); }
.progress-fill { display: block; width: 50%; height: 100%; border-radius: 3px; background: var(--green); }
.progress small { font-size: 11px; color: var(--muted); }
.steps { display: flex; gap: 4px; margin-top: 8px; }
.steps span { flex: 1; height: 5px; border-radius: 3px; background: var(--sunk); }
.steps span.on { background: var(--green); }
.reading { flex: 1; min-height: 0; overflow: hidden; padding: 14px 16px; font-family: var(--font-serif); font-size: 14px; line-height: 1.55; display: flex; flex-direction: column; gap: 10px; }
.phone.big .reading { padding: 16px 18px; font-size: 15px; gap: 12px; }
.reading .done { color: var(--muted); }
.reading .current { padding: 12px 14px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.scr-foot { padding: 12px 16px 18px; }
.scr-btn { height: 44px; border-radius: 12px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.phone.big .scr-btn { height: 48px; border-radius: 14px; font-size: 15px; }
.scr-btn.outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.scr-bottom { margin: auto 12px 18px; display: flex; flex-direction: column; gap: 8px; }
.scr-box { margin: 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.scr-box + .scr-box { margin-top: 12px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.toggle-row:last-child { border-bottom: 0; }
.switch { width: 34px; height: 20px; border-radius: 999px; background: var(--accent); position: relative; }
.switch::after { content: ""; position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.switch.off { background: var(--line-2); }
.switch.off::after { right: auto; left: 2px; }
.stack { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.stack.tight { padding: 10px 12px; gap: 6px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.stepper { white-space: nowrap; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.stepper i { font-style: normal; width: 24px; height: 24px; border-radius: 8px; border: 1px solid var(--line-2); display: grid; place-items: center; font-weight: 400; }
.week { padding: 12px; display: flex; flex-direction: column; gap: 9px; }
.hours { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); padding-left: 24px; }
.day { display: flex; align-items: center; gap: 8px; }
.day b { width: 16px; font-size: 11px; }
.day-track { flex: 1; height: 12px; border-radius: 4px; background: var(--sunk); position: relative; }
.day-track span { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--green); }
.p-0730 { left: 31.25%; width: 3.1%; } .p-1600 { left: 66.7%; width: 12.5%; } .p-1600l { left: 66.7%; width: 16.7%; }
.p-1500 { left: 62.5%; width: 6.25%; } .p-1730 { left: 72.9%; width: 8.3%; } .p-1000 { left: 41.7%; width: 12.5%; }
.notice { margin: 4px 10px 0; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); border-radius: 16px; padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start; }
.notice .brand-mark { width: 26px; height: 26px; border-radius: 8px; font-size: 15px; }
.notice span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.notice b { font-size: 12px; }
.notice small { font-size: 11px; color: var(--muted); }
.tiles { margin: 0 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.tile small { display: block; font-size: 11px; color: var(--muted); }
.tile strong { display: block; font-size: 22px; font-weight: 800; }
.tile strong em { font-style: normal; font-size: 13px; }
.alert-line { margin: 8px 12px 0; background: var(--danger-bg); color: var(--danger); border-radius: 12px; padding: 9px 12px; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.alert-line::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.q-count { padding: 6px 16px 8px; font-size: 12px; color: var(--muted); }
.q-text { padding: 0 16px 14px; font-family: var(--font-serif); font-size: 18px; line-height: 1.3; font-weight: 700; }
.options { padding: 0 12px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.option { padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); }
.timer-screen { align-items: center; }
.timer-screen .status { align-self: stretch; }
.timer-label { margin-top: 40px; font-size: 13px; color: var(--muted); }
.timer { margin-top: 18px; width: 170px; height: 170px; border-radius: 50%; background: conic-gradient(var(--accent) 0 75%, var(--sunk) 75% 100%); display: grid; place-items: center; }
.timer span { width: 138px; height: 138px; border-radius: 50%; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.timer b { font-family: var(--font-mono); font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; }
.timer small { font-size: 12px; color: var(--muted); }
.timer-note { margin-top: 20px; font-size: 13px; color: var(--muted); text-align: center; padding: 0 20px; }
.timer-screen .scr-bottom { align-self: stretch; }

/* Для родителя */
.split { display: flex; flex-wrap: wrap; gap: 40px 32px; align-items: flex-start; }
.feature-list { flex: 1 1 300px; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.feature-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.feature-list b { display: block; font-size: 18px; }
.feature-list span { color: var(--muted); font-size: 16px; }
.phones { flex: 999 1 560px; min-width: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.phones figure, .child-grid figure { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.phones figcaption { font-size: 14px; color: var(--muted); }
.child-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 32px 24px; justify-items: center; }
.child-grid figure { max-width: 280px; gap: 14px; }
.child-grid figcaption { text-align: center; display: flex; flex-direction: column; gap: 2px; }
.child-grid figcaption b { font-size: 18px; }
.child-grid figcaption span { font-size: 15px; }

/* Каталог */
.catalog-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; }
.catalog-head .section-head { max-width: 640px; }
.covers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 164px), 1fr)); gap: 16px; }
.cover { aspect-ratio: 3/4; border-radius: 2px 6px 6px 2px; border-left: 8px solid; box-shadow: inset 0 0 0 1px var(--line); padding: 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.cover .age { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.cover .title { font-family: var(--font-serif); font-size: 21px; font-weight: 700; line-height: 1.1; hyphens: auto; overflow-wrap: break-word; }
.cover .author { font-size: 13px; }
.cv1 { background: var(--cv1); color: var(--cv1-ink); border-left-color: var(--cv1-edge); } .cv1 .age { background: var(--cv1-ink); color: var(--cv1); }
.cv2 { background: var(--cv2); color: var(--cv2-ink); border-left-color: var(--cv2-edge); } .cv2 .age { background: var(--cv2-ink); color: var(--cv2); }
.cv3 { background: var(--cv3); color: var(--cv3-ink); border-left-color: var(--cv3-edge); } .cv3 .age { background: var(--cv3-ink); color: var(--cv3); }
.cv4 { background: var(--cv4); color: var(--cv4-ink); border-left-color: var(--cv4-edge); } .cv4 .age { background: var(--cv4-ink); color: var(--cv4); }
.cv5 { background: var(--cv5); color: var(--cv5-ink); border-left-color: var(--cv5-edge); } .cv5 .age { background: var(--cv5-ink); color: var(--cv5); }
.cv6 { background: var(--cv6); color: var(--cv6-ink); border-left-color: var(--cv6-edge); } .cv6 .age { background: var(--cv6-ink); color: var(--cv6); }

/* Подписка */
.price { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 40px; align-items: start; }
.price-col { display: flex; flex-direction: column; gap: 20px; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; display: flex; flex-direction: column; gap: 20px; box-shadow: var(--shadow-1); }
.price-sum { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-sum b { font-family: var(--font-serif); font-size: 48px; font-weight: 700; line-height: 1; padding: 4px 14px; border: 2px dashed var(--line-2); border-radius: 12px; color: var(--muted); }
.price-sum span { font-size: 18px; color: var(--muted); }
.trial { padding: 12px 14px; border-radius: 14px; background: var(--mint); color: var(--on-mint); font-weight: 600; }
.price-card ul { margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.price-card .cta { height: 54px; font-size: 17px; }
.price-card small { font-size: 14px; color: var(--muted); }
.terms-list { border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.terms-list h3 { margin: 20px 0 4px; font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.terms-list div { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.terms-list b { font-size: 18px; }
.terms-list span { color: var(--muted); font-size: 16px; }
.terms-list > a { margin-top: 18px; font-weight: 600; }

/* Вопросы */
.faq { max-width: 880px; gap: 28px; }
.faq-list { border-top: 1px solid var(--line-2); }
.faq-list details { border-bottom: 1px solid var(--line-2); }
.faq-list summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; font-size: 19px; font-weight: 600; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-plus { font-size: 24px; line-height: 1; color: var(--accent-ink); transition: transform .15s; }
details[open] .faq-plus { transform: rotate(45deg); }
.faq-list p { margin: 0 0 20px; color: var(--muted); max-width: 44em; }

/* Подвал */
.site-footer { background: var(--ink); color: var(--bg); }
.site-footer .wrap { padding-top: 56px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; }
.footer-grid > * { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-grid a { color: inherit; }
.footer-grid a:hover { color: inherit; opacity: .8; }
.footer-name { font-family: var(--font-serif); font-size: 22px; font-weight: 700; }
.footer-title { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.soft { opacity: .8; }
.footer-legal { gap: 6px; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(127,127,127,.35); padding-top: 20px; font-size: 13px; opacity: .7; }

/* Документы */
.doc-page { display: flex; flex-direction: column; min-height: 100vh; line-height: 1.6; }
.doc-main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: clamp(32px, 5vw, 72px) var(--gutter) 80px; display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-start; align-content: flex-start; }
.doc-nav { flex: 1 1 220px; max-width: 280px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.doc-nav-title { font-size: 14px; font-weight: 600; color: var(--muted); padding: 0 12px 8px; }
.doc-nav a { padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); }
.doc-nav a:hover { background: var(--sunk); }
.doc-nav a[aria-current="page"] { background: var(--accent-soft); font-weight: 600; }
.doc { flex: 999 1 520px; min-width: 0; max-width: 720px; display: flex; flex-direction: column; gap: 20px; }
.draft { padding: 12px 16px; border-radius: var(--r-sm); background: var(--warn-bg); color: var(--warn); font-size: 15px; }
.doc-head { display: flex; flex-direction: column; gap: 8px; }
.doc h1 { font-family: var(--font-serif); font-size: clamp(32px, 4vw, 48px); line-height: 1.1; }
.doc-head span { color: var(--muted); font-size: 15px; }
.doc h2 { margin-top: 16px; font-size: 22px; line-height: 1.3; }
.doc ul, .doc ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.doc .numbered { padding: 0; list-style: none; gap: 12px; }
.numbered li { display: flex; gap: 14px; align-items: flex-start; }
.numbered li > span:first-child { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; }
.summary-grid { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.summary-grid div { background: var(--surface); padding: 16px; }
.summary-grid dt { font-size: 14px; color: var(--muted); }
.summary-grid dd { font-weight: 700; font-size: 20px; }
.doc-footer { border-top: 1px solid var(--line); }
.doc-footer .wrap { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--muted); }

@media (max-width: 600px) {
  .brand-name { font-size: 19px; }
  .pill-btn { padding: 0 12px; }
  .header-actions { gap: 6px; }
  .reward-chip { bottom: 40px; right: 0; }
  .price-card { padding: 20px; }
  .price-sum b { font-size: 38px; }
}

[hidden] { display: none !important; }
.step-no { font-family: var(--font-serif); font-size: 44px; line-height: 1; color: var(--accent); font-weight: 700; }
.card .step-no + h3 { margin-top: 8px; }
.option.chosen { background: var(--mint); border: 2px solid var(--green); color: var(--on-mint); font-weight: 700; }
