/* Сказозаврик — сайт.
   Идея: «ночная книга». Тёмная бумага, тёплое золото, крупный книжный шрифт.
   Сдержанность вместо эффектов: один акцент, воздух, типографика, редкие тени. */

:root {
  /* цвет */
  --bg: #0b0a1c;
  --bg-2: #110f27;
  --bg-3: #171433;
  --surface: #16132f;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);
  --text: #f3eee6;
  --muted: #a9a3c4;
  --faint: #7a7499;
  --gold: #e8b866;
  --gold-hi: #f6d79e;
  --gold-ink: #2a1d07;
  --moon: #b9b4ff;
  --paper: #f5eee2;
  --paper-ink: #2a2340;
  --paper-muted: #6f6680;

  /* типографика */
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* сетка и формы */
  --wrap: 1200px;
  --narrow: 760px;
  --pad: 20px;
  --r-control: 12px;
  --r-card: 20px;
  --r-panel: 32px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html, body { overflow-x: clip; } /* страховка: ничто не растягивает страницу вбок */
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; }
h1, h2 { font-family: var(--serif); letter-spacing: -.02em; }
h1 { font-size: clamp(46px, 7.2vw, 92px); line-height: .98; }
h2 { font-size: clamp(36px, 4.8vw, 60px); line-height: 1.02; margin-bottom: 20px; }
h3 { font: 700 20px/1.3 var(--sans); letter-spacing: -.01em; margin-bottom: 8px; }
p { margin: 0 0 16px; }
em { font-style: italic; color: var(--gold-hi); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 99; padding: 8px 14px; background: var(--gold); color: var(--gold-ink); border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: var(--narrow); }
.center { text-align: center; }
.kicker { font: 700 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.kicker.dark { color: #a8762a; }
.sub { color: var(--muted); font-size: 18px; max-width: 600px; margin: 0 auto 40px; }
.sub.left { margin-left: 0; }
.small { font-size: 14px; }
.muted { color: var(--faint); }
.section { padding: 96px 0; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
  font: 700 16px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-gold { background: var(--gold); color: var(--gold-ink); box-shadow: 0 10px 30px -12px rgba(232, 184, 102, .7); }
.btn-gold:hover { background: var(--gold-hi); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn-text { background: none; color: var(--text); padding: 0 8px; height: 56px; }
.btn-text:hover { color: var(--gold-hi); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn-lg { height: 62px; padding: 0 34px; font-size: 17px; }
.btn[disabled] { opacity: .55; cursor: progress; }
.play-dot {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: inline-grid; place-items: center; position: relative;
}
.play-dot::after { content: ""; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }

/* ---------- шапка ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s var(--ease), border-color .3s var(--ease); border-bottom: 1px solid transparent; }
.header.scrolled { background: rgba(11, 10, 28, .82); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); }
.header-in { max-width: var(--wrap); margin: 0 auto; padding: 14px var(--pad); display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 26px/1 var(--serif); letter-spacing: -.01em; }
.header .logo { margin-right: auto; }
.logo-mark { font-size: 22px; }
.nav { display: none; gap: 32px; }
.nav a { font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: none; transition: color .2s; }
.nav a:hover { color: var(--text); }
.only-wide { display: none; }

/* ---------- 1. главный экран ---------- */
.hero {
  position: relative; max-width: var(--wrap); margin: 0 auto;
  padding: 108px var(--pad) 64px; display: grid; gap: 40px; align-items: center;
  min-height: min(100svh, 980px);
}
.hero::before { /* очень тихое звёздное небо только в первом экране */
  content: ""; position: absolute; inset: 0 -50vw; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1px 1px at 12% 18%, #fff8, transparent 60%),
    radial-gradient(1px 1px at 28% 72%, #fff6, transparent 60%),
    radial-gradient(1.5px 1.5px at 46% 30%, #f6d79e99, transparent 60%),
    radial-gradient(1px 1px at 63% 12%, #fff7, transparent 60%),
    radial-gradient(1px 1px at 84% 64%, #fff6, transparent 60%),
    radial-gradient(1px 1px at 92% 24%, #fff7, transparent 60%),
    radial-gradient(900px 600px at 75% 30%, rgba(122, 96, 255, .16), transparent 70%),
    radial-gradient(700px 500px at 10% 90%, rgba(232, 184, 102, .07), transparent 70%);
}
.eyebrow { font: 700 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 28px; }
.hero h1 em { display: inline; }
.lead { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 540px; margin: 28px 0 36px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.facts { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--faint); font-size: 14px; font-weight: 600; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

.hero-media { margin: 0 auto; position: relative; width: 100%; max-width: 560px; }
.hero-frame { border-radius: var(--r-panel); overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-3); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9); }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 45%; transform: scale(1.06); animation: settle 1.8s var(--ease) forwards; }
@keyframes settle { to { transform: scale(1); } }
.hero-note {
  position: absolute; left: 20px; bottom: 20px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 14px;
  background: rgba(11, 10, 28, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--text);
}

/* ---------- 2. фрагмент озвучки ---------- */
.listen { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.player {
  display: flex; align-items: center; gap: 20px; text-align: left;
  padding: 20px 24px 20px 20px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .8);
}
.player-btn {
  flex: none; width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--gold); color: var(--gold-ink);
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.player-btn:hover { background: var(--gold-hi); transform: scale(1.04); }
.player-btn svg { width: 26px; height: 26px; fill: currentColor; }
.player-btn .i-pause, .player.is-playing .i-play { display: none; }
.player.is-playing .i-pause { display: block; }
.player-body { flex: 1; min-width: 0; }
.player-title { font-weight: 700; margin: 0 0 10px; font-size: 16px; line-height: 1.35; }
.wave { display: flex; align-items: center; gap: 3px; height: 44px; cursor: pointer; overflow: hidden; min-width: 0; }
.wave i { flex: 1; min-width: 2px; border-radius: 2px; background: var(--line-strong); transition: background .15s; }
.wave i.played { background: var(--gold); }
.player-time { display: flex; justify-content: space-between; margin-top: 8px; color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; }
.voices { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; color: var(--muted); font-size: 14px; }
.voices li { display: inline-flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.gold { background: var(--gold); }
.dot.moon { background: var(--moon); }

/* ---------- 3. как это работает ---------- */
.how-grid { display: grid; gap: 48px; }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 8px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 28px 0; border-top: 1px solid var(--line); transition: opacity .4s var(--ease); }
.step .num { font: 500 30px/1 var(--serif); color: var(--gold); padding-top: 2px; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.step p { color: var(--muted); margin: 0; max-width: 460px; }
.step-shot { width: 210px; margin: 24px 0 0; border-radius: 28px; border: 6px solid #221e45; box-shadow: 0 24px 60px -30px #000; }
.how-device { display: none; }

/* ---------- 4. почему это работает ---------- */
.feature { display: grid; gap: 32px; align-items: center; margin-bottom: 96px; }
.feature-media { margin: 0; border-radius: var(--r-panel); overflow: hidden; aspect-ratio: 1; background: var(--bg-3); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature:hover .feature-media img { transform: scale(1.03); }
.feature-copy p { color: var(--muted); max-width: 520px; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text); font-weight: 600; font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.worlds-head { max-width: 720px; margin: 0 0 40px; }
.worlds { display: grid; gap: 16px; }
.world { position: relative; margin: 0; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-3); }
.world img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.world:hover img { transform: scale(1.04); }
.world figcaption {
  position: absolute; inset: auto 0 0; padding: 72px 22px 22px;
  background: linear-gradient(180deg, transparent, rgba(11, 10, 28, .92));
  color: var(--muted); font-size: 14px;
}
.world b { display: block; font: 500 26px/1.1 var(--serif); color: var(--text); margin-bottom: 4px; }

/* ---------- 5. возраст ---------- */
.ages-section { padding-top: 32px; }
.ages-head { max-width: 720px; margin-bottom: 40px; }
.ages { display: grid; gap: 0; }
.age { padding: 28px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: baseline; }
.age-num { font: 500 56px/1 var(--serif); color: var(--gold-hi); letter-spacing: -.02em; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.age b { font-weight: 600; color: var(--muted); }
.age p { grid-column: 1 / -1; color: var(--muted); margin: 12px 0 0; max-width: 360px; }

/* ---------- 6. история ---------- */
.paper {
  display: grid; gap: 32px; align-items: center;
  padding: 20px; border-radius: var(--r-panel);
  background: var(--paper); color: var(--paper-ink);
}
.paper-media { margin: 0; border-radius: 22px; overflow: hidden; }
.paper-media img { width: 100%; }
.paper-copy { padding: 8px 8px 16px; }
blockquote { margin: 0; }
blockquote p { font: italic 500 clamp(26px, 3vw, 36px)/1.25 var(--serif); color: var(--paper-ink); margin-bottom: 24px; letter-spacing: -.01em; }
blockquote footer { font-weight: 700; font-size: 15px; color: var(--paper-ink); }
blockquote footer::before { content: "— "; color: #a8762a; }
.paper-note { color: var(--paper-muted); margin: 20px 0 0; font-size: 15px; }

/* ---------- 7. тарифы ---------- */
.prices-head { display: grid; gap: 8px; margin-bottom: 40px; }
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 40px; }
.plan { position: relative; padding: 24px 20px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--bg-2); display: grid; align-content: start; }
.plan p { margin: 0; }
.plan-name { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.plan-price { font: 500 46px/1.1 var(--serif); color: var(--text); margin: 16px 0 4px !important; letter-spacing: -.02em; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.plan-amount { font-weight: 700; }
.plan-note { color: var(--faint); font-size: 13px; margin-top: 4px !important; }
.plan-best { border-color: rgba(232, 184, 102, .55); background: linear-gradient(180deg, rgba(232, 184, 102, .1), var(--bg-2) 70%); }
.plan-best .plan-price { color: var(--gold-hi); }
.plan-badge { position: absolute; top: -12px; left: 20px; padding: 5px 12px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-size: 12px; font-weight: 800; white-space: nowrap; }
#prices .center .small { margin-top: 16px; }

/* ---------- 8. отзывы ---------- */
.reviews-head { max-width: 720px; margin-bottom: 40px; }
.reviews { display: grid; gap: 16px; margin-bottom: 24px; }
.review { padding: 28px; border-radius: var(--r-card); background: var(--paper); color: var(--paper-ink); }
.review p { font: italic 500 22px/1.35 var(--serif); margin-bottom: 16px; }
.review footer { font-weight: 700; font-size: 14px; }
.review footer span { font-weight: 500; color: var(--paper-muted); }
.invite { display: grid; gap: 24px; align-items: center; padding: 20px; border-radius: var(--r-panel); border: 1px solid var(--line); background: var(--bg-2); }
.invite img { width: 100%; max-width: 280px; aspect-ratio: 1; object-fit: cover; border-radius: 20px; }
.invite p { color: var(--muted); max-width: 520px; }
.invite h3 { font: 500 30px/1.15 var(--serif); margin-bottom: 12px; }

/* ---------- формы ---------- */
.form { display: grid; gap: 16px; padding: 24px; border-radius: 24px; background: var(--bg-2); border: 1px solid var(--line); }
.review-form { margin-top: 16px; }
.row { display: grid; gap: 16px; }
label { display: grid; gap: 8px; }
label > span { font-size: 14px; font-weight: 600; color: var(--muted); }
label i { color: var(--gold); font-style: normal; }
input[type=text], textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: var(--r-control);
  border: 1px solid var(--line-strong); background: var(--bg); color: var(--text);
  font: 16px/1.5 var(--sans); resize: vertical; transition: border-color .2s, box-shadow .2s;
}
input[type=text]::placeholder, textarea::placeholder { color: var(--faint); }
input[type=text]:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(232, 184, 102, .15); }
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); flex: none; }
.check span { font-weight: 500; color: var(--text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 22px; margin: 0; font-size: 15px; font-weight: 600; }
.form-status.ok { color: #9be3be; }
.form-status.err { color: #ffa4a4; }

/* ---------- 9. вопросы и поддержка ---------- */
.faq-grid { display: grid; gap: 40px; }
.faq { display: grid; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 24px 44px 24px 0; font-size: 18px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--muted); margin: 0 0 24px; max-width: 620px; }
.support { padding-top: 32px; }
.support-grid { display: grid; gap: 40px; align-items: start; }
.contacts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contacts a { color: var(--gold-hi); text-decoration: none; font-weight: 700; border-bottom: 1px solid rgba(232, 184, 102, .35); }
.contacts a:hover { border-color: var(--gold); }

/* ---------- 10. финал ---------- */
.final { position: relative; overflow: hidden; min-height: 680px; display: grid; place-items: center; text-align: center; padding: 120px var(--pad); isolation: isolate; }
.final-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; z-index: -2; }
.final::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 70% at 50% 50%, rgba(11, 10, 28, .55), rgba(11, 10, 28, .92)), linear-gradient(180deg, var(--bg) 0%, transparent 20%, transparent 80%, var(--bg) 100%); }
.final-copy { max-width: 720px; }
.final h2 { font-size: clamp(42px, 6vw, 76px); }
.final p { color: var(--text); opacity: .85; font-size: 19px; margin: 0 auto 36px; max-width: 520px; }

/* ---------- подвал ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 32px; color: var(--muted); font-size: 15px; }
.footer-grid { display: grid; gap: 40px; }
.footer-brand p { max-width: 340px; margin-top: 16px; }
.footer-col { display: grid; gap: 12px; align-content: start; }
.footer-col b { color: var(--text); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--gold-hi); }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }

/* ---------- появление при прокрутке: разные движения для разных вещей ---------- */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv-img { clip-path: inset(8% 8% 8% 8% round 32px); transition: clip-path 1.1s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv-img.in { clip-path: inset(0 0 0 0 round 32px); }

/* ---------- планшет ---------- */
@media (min-width: 720px) {
  :root { --pad: 32px; }
  .only-wide { display: inline; }
  .only-narrow { display: none; }
  .worlds { grid-template-columns: repeat(3, 1fr); }
  .ages { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .plans { grid-template-columns: repeat(4, 1fr); }
  .row { grid-template-columns: 1fr 1fr; }
  .invite { grid-template-columns: 260px 1fr; padding: 24px; gap: 40px; }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .paper { grid-template-columns: 1.05fr 1fr; padding: 24px; gap: 48px; }
  .paper-copy { padding: 16px 32px 16px 0; }
  .prices-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 48px; }
  .prices-head .sub { margin-bottom: 20px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* ---------- компьютер ---------- */
@media (min-width: 1024px) {
  .section { padding: 128px 0; }
  .nav { display: flex; }
  .hero { grid-template-columns: 1.08fr 1fr; gap: 72px; padding-top: 128px; }
  .hero-media { max-width: none; }
  .feature { grid-template-columns: 1fr 1fr; gap: 80px; margin-bottom: 128px; }
  .feature.reverse .feature-media { order: 2; }
  .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 80px; }
  .faq-side { position: sticky; top: 120px; align-self: start; }
  .support-grid { grid-template-columns: .9fr 1.1fr; gap: 80px; }
  .reviews { grid-template-columns: repeat(3, 1fr); }

  .final { place-items: center start; text-align: left; padding-left: max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad))); }
  .final-bg { object-position: 50% 58%; }
  .final::after { background: linear-gradient(90deg, rgba(11, 10, 28, .96) 0%, rgba(11, 10, 28, .82) 38%, rgba(11, 10, 28, .15) 70%, rgba(11, 10, 28, .35) 100%), linear-gradient(180deg, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%); }
  .final-copy { max-width: 560px; }
  .final p { margin-left: 0; }

  /* «Как это работает»: телефон прилипает, а экран в нём меняется вместе с шагом */
  .how-grid { grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: start; }
  .step { min-height: 46vh; align-content: start; opacity: .38; }
  .step.is-active { opacity: 1; }
  .step-shot { display: none; }
  .how-device { display: block; position: sticky; top: calc(50vh - 330px); }
  .device {
    position: relative; width: 310px; aspect-ratio: 585 / 1266; margin: 0 auto;
    border-radius: 48px; padding: 10px; background: #1d1a3d;
    box-shadow: 0 0 0 1px var(--line-strong), 0 60px 120px -50px #000, 0 0 120px -40px rgba(122, 96, 255, .45);
  }
  .device::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 90px; height: 26px; border-radius: 14px; background: #07061a; z-index: 3; }
  .shot { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: cover; border-radius: 38px; opacity: 0; transition: opacity .6s var(--ease); }
  .shot.is-on { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .rv, .js .rv-img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .hero-frame img { transform: none; }
}

.footer-legal a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.footer-legal a:hover { color: var(--gold-hi); }

/* ВКонтакте рядом с Telegram */
.head-cta { display: flex; align-items: center; gap: 8px; }
.actions-center { justify-content: center; }
.vk-prices {
  margin: 28px auto 0; max-width: 760px; padding: 22px 26px; border-radius: 20px;
  border: 1px solid var(--line-strong); background: linear-gradient(180deg, #ffffff08, #ffffff03);
}
.vk-prices ul { list-style: none; margin: 10px 0 8px; padding: 0; display: grid; gap: 6px 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .vk-prices ul { grid-template-columns: 1fr 1fr; } .vk-prices li:last-child { grid-column: 1 / -1; } }
.vk-prices li b { color: var(--gold-hi); font-weight: 700; }


/* ================= ЛИЧНЫЙ КАБИНЕТ ================= */
.cab-body .header { position: sticky; top: 0; }
.cab-body .header-in { gap: 12px; }
.cab-who { margin-left: auto; font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 45vw; }
.cab { padding: 48px 0 96px; min-height: 70vh; }
.cab h1 { font-size: clamp(40px, 6vw, 72px); margin-bottom: 18px; }
.cab-auth { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .cab-auth { grid-template-columns: 1.1fr .9fr; padding-top: 32px; } }
.cab-steps { margin: 0 0 8px; padding-left: 22px; color: var(--muted); display: grid; gap: 8px; }
.cab-steps li::marker { color: var(--gold); font-weight: 700; }
.cab-steps a { color: var(--gold-hi); }
.cab-form input[type=email], .cab-form input[type=password] {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 14px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03);
  color: var(--text); font: 500 16px var(--sans);
}
.cab-form input[type=email]:focus, .cab-form input[type=password]:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(232, 184, 102, .15); }
.cab-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 14px; background: rgba(255, 255, 255, .04); }
.cab-tab { height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: 700 15px var(--sans); cursor: pointer; }
.cab-tab.is-on { background: var(--gold); color: var(--gold-ink); }
.cab-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.cab-consent[hidden] { display: none; }
.cab-consent input { margin-top: 3px; accent-color: var(--gold); }
.cab-consent a, .cab-forgot a { color: var(--gold-hi); }
.cab-forgot { margin: 0; }
.cab-plans { margin: 36px 0 56px; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 760px) { .cab-plans { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.cab-plans .plan { gap: 0; }
.cab-buy { margin-top: 18px; width: 100%; }
.cab-h2 { font-size: clamp(30px, 4vw, 44px); }
.cab-keys { display: grid; gap: 10px; margin-bottom: 48px; }
.cab-key {
  display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center;
  padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--bg-2);
}
@media (min-width: 640px) { .cab-key { grid-template-columns: 1fr auto auto; } }
.cab-key-main { display: grid; gap: 4px; min-width: 0; grid-column: 1 / -1; }
@media (min-width: 640px) { .cab-key-main { grid-column: auto; } }
.cab-code { font: 700 19px/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .04em; color: var(--gold-hi); white-space: nowrap; }
.cab-key-meta { font-size: 14px; color: var(--faint); }
.cab-key-state { font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: rgba(155, 227, 190, .12); color: #9be3be; justify-self: start; }
.cab-key.is-used { opacity: .6; }
.cab-key.is-used .cab-key-state { background: rgba(255, 255, 255, .06); color: var(--faint); }
.cab-key .cab-copy { justify-self: end; }
.cab-how { padding: 28px; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(232, 184, 102, .06), transparent 70%); }
.cab-how .cab-h2 { margin-bottom: 14px; }
.cab-body .header { background: rgba(11, 10, 28, .82); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); }
.cab-key .cab-apply { grid-column: 1 / -1; justify-self: stretch; }
.cab-key .cab-apply[hidden] { display: none; }


/* ---------- покупка на главной ---------- */
.plan .btn { margin-top: 16px; justify-self: stretch; }
.plan-status { text-align: center; min-height: 0; margin: -24px 0 16px; }
.buy-steps { max-width: 760px; margin: 0 auto 16px; }

/* ---------- чат «Сказозаврик — поддержка» ---------- */
.chat { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; font-size: 15px; }
.chat-fab { display: flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: var(--gold-ink); font: 800 15px/1 inherit;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.chat-fab-icon { font-size: 22px; line-height: 1; }
.chat.is-open .chat-fab { display: none; }
.chat-panel { position: absolute; right: 0; bottom: 0; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 32px));
  display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--bg-2);
  border: 1px solid rgba(232, 184, 102, .35); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px 16px; border-bottom: 1px solid var(--line); }
.chat-ava { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: rgba(232, 184, 102, .15); }
.chat-title { flex: 1; display: grid; line-height: 1.2; }
.chat-title small { color: var(--muted); font-size: 12px; }
.chat-close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .06); color: var(--text); cursor: pointer; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.chat-msg { margin: 0; padding: 10px 13px; border-radius: 16px; max-width: 86%; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg.is-bot { align-self: flex-start; background: rgba(255, 255, 255, .06); border-bottom-left-radius: 6px; }
.chat-msg.is-user { align-self: flex-end; background: rgba(232, 184, 102, .22); border-bottom-right-radius: 6px; }
.chat-msg.is-wait { color: var(--muted); animation: chatWait 1s ease-in-out infinite alternate; }
@keyframes chatWait { from { opacity: .4; } to { opacity: 1; } }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.chat-chips[hidden] { display: none; }
.chat-chip { padding: 7px 11px; border-radius: 999px; border: 1px solid rgba(232, 184, 102, .4); background: transparent; color: var(--gold-hi); font: 600 13px/1.2 inherit; cursor: pointer; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.chat-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.chat-input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 16px/1.2 inherit; }
.chat-send { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--gold); color: var(--gold-ink); font-size: 17px; cursor: pointer; }
@media (max-width: 560px) {
  .chat { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .chat-fab-text { display: none; }
  .chat-fab { padding: 13px; }
  .chat.is-open { left: 0; right: 0; bottom: 0; }
  .chat-panel { position: fixed; left: 0; right: 0; bottom: 0; width: 100%; height: 78vh; border-radius: 22px 22px 0 0; }
}

/* ---------- сказка прямо на сайте (/miniapp/?app=web) ---------- */
.web-start { width: 100%; max-width: 560px; margin-top: 6px; }
.web-start-note { margin: 10px 0 22px; color: var(--muted); font-size: 14px; }
.final .web-start { margin: 22px auto 0; }
/* пришли с рекламы — ведём только на сайт: тут и сказка, и оплата (metrika.js ставит from-ad) */
.from-ad .also-in { display: none; }

/* ---------- где слушать: Telegram, ВКонтакте, RuStore ---------- */
.platforms-lead { margin: 4px 0 12px; color: var(--muted); font-size: 15px; }
.platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 560px; margin-bottom: 14px; }
.platforms.is-center { margin: 22px auto 0; }
.btn-platform { height: 60px; padding: 0 14px; gap: 10px; justify-content: flex-start; border-radius: 16px; text-align: left;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-strong); color: var(--text); }
.btn-platform:hover { border-color: var(--gold); }
.btn-platform svg { width: 26px; height: 26px; flex: none; }
.btn-platform span { display: grid; line-height: 1.15; font-weight: 800; font-size: 15px; }
.btn-platform small { font-weight: 500; font-size: 11px; color: var(--muted); }
.btn-platform.is-tg svg { color: #2aabee; }
.btn-platform.is-vk svg { color: #4c8bf5; }
.btn-platform.is-rs svg { color: #3b82f6; }
.btn-platform.is-tg { background: linear-gradient(135deg, rgba(232, 184, 102, .22), rgba(232, 184, 102, .08)); border-color: rgba(232, 184, 102, .55); }
@media (max-width: 560px) {
  .platforms { grid-template-columns: 1fr; max-width: none; }
  .btn-platform { height: 54px; }
  .btn-platform span { grid-auto-flow: column; justify-content: start; gap: 5px; align-items: baseline; }
  .btn-platform small { font-size: 13px; }
}

/* ---------- выбор способа оплаты ---------- */
.pay-pick { width: min(420px, calc(100vw - 32px)); padding: 0; border: 1px solid rgba(232, 184, 102, .4); border-radius: 22px;
  background: var(--bg-2); color: var(--text); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
.pay-pick::backdrop { background: rgba(5, 4, 15, .7); }
.pay-pick-in { position: relative; display: grid; gap: 10px; padding: 24px 20px 20px; }
.pay-pick-title { margin: 0; font: 500 30px/1.1 var(--serif); }
.pay-pick-what { margin: 0 0 6px; }
.pay-way { width: 100%; height: auto; min-height: 58px; padding: 10px 16px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; text-align: left; gap: 2px; border-radius: 16px; white-space: normal; }
.pay-way b { font-size: 16px; }
.pay-way small { font-weight: 500; font-size: 12.5px; opacity: .8; }
.pay-pick-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .06); color: var(--text); cursor: pointer; }

/* ---------- партнёрам ---------- */
.partner-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .partner-plans { grid-template-columns: 1fr; } }
