/* @theme
name: Ночное небо
theme-color: #121B40
logo-header: logo-ru-dark.svg
logo-footer: logo-ru-dark.svg
preload: literata-600.woff2, golos-text-400.woff2
*/
/* Абакидо, вариант 1 «Ночное небо» — слой поверх assets/site.css.
   Первый экран, книга, призыв и подвал — на «ночном небе» (#1D2B5E → #121B40, как обложка книги и шляпа совы);
   остальное — белые и холодно-светлые разделы с синим текстом. Оранжевый «Соро» — только акцент: одна главная
   кнопка на экране, надзаголовки, точки. Заголовки — Literata (книжная антиква), текст и интерфейс — Golos Text.
   Шрифты — OFL, статичные начертания из Brands/abakido/fonts (site/src/themes/make_fonts.py). */

@font-face { font-family: "Literata"; font-style: normal; font-weight: 600; font-display: swap; src: url(theme/literata-600.woff2) format("woff2"); }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400; font-display: swap; src: url(theme/golos-text-400.woff2) format("woff2"); }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 600; font-display: swap; src: url(theme/golos-text-600.woff2) format("woff2"); }

:root {
  --night: #1D2B5E;
  --night-deep: #121B40;
  --night-2: #3C4C8A;
  --slate: #596184;
  --slate-light: #AEB6D6;
  --fog: #F3F5FA;
  --soro: #F67F2F;
  --soro-text: #B4510D;
  --on-dark: #E6E9F2;
  --on-dark-2: #BAC1DB;

  --bg: #ffffff;
  --surface: #ffffff;
  --tint: var(--fog);
  --ink: var(--night);
  --ink-2: #545C7E;
  --line: #E1E5EF;
  --primary: var(--soro);
  --primary-hover: #FF8C40;
  --primary-shadow: transparent;
  --primary-ink: var(--soro-text);
  --peach: #EEF1F8;
  --sky: #EEF1F8;
  --mint: #FDEEE3;
  --sun: var(--slate-light);
  --green: var(--soro);
  --blue: var(--night-2);
  --indigo: var(--night);
  --indigo-deep: var(--night-deep);
  --gold: var(--soro);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --shadow-card: 0 1px 2px rgba(18, 27, 64, .05), 0 18px 40px -28px rgba(18, 27, 64, .35);
  --shadow-phone: 0 50px 80px -40px rgba(4, 7, 24, .75), 0 18px 30px -20px rgba(4, 7, 24, .45);
  --font-body: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Literata", Georgia, "Times New Roman", serif;
  /* звёзды: точки 1–2 px, без картинок (CSP: img-src 'self') */
  --stars:
    radial-gradient(1.4px 1.4px at 8% 18%, rgba(255, 255, 255, .75), transparent 60%),
    radial-gradient(1.2px 1.2px at 23% 72%, rgba(255, 255, 255, .45), transparent 60%),
    radial-gradient(1.6px 1.6px at 41% 9%, rgba(255, 255, 255, .6), transparent 60%),
    radial-gradient(1.2px 1.2px at 57% 88%, rgba(255, 255, 255, .4), transparent 60%),
    radial-gradient(2px 2px at 66% 24%, rgba(246, 127, 47, .8), transparent 60%),
    radial-gradient(1.3px 1.3px at 79% 61%, rgba(255, 255, 255, .5), transparent 60%),
    radial-gradient(1.5px 1.5px at 91% 12%, rgba(255, 255, 255, .7), transparent 60%),
    radial-gradient(1.2px 1.2px at 95% 80%, rgba(255, 255, 255, .45), transparent 60%);
  --sky-bg:
    var(--stars),
    radial-gradient(70% 90% at 78% 30%, rgba(60, 76, 138, .55) 0%, rgba(60, 76, 138, 0) 70%),
    linear-gradient(180deg, var(--night-deep) 0%, var(--night) 100%);
}

body { font-size: 17px; line-height: 1.62; }
@media (min-width: 1024px) { body { font-size: 18px; } }
h1, h2 { font-family: var(--font-serif); font-weight: 600; letter-spacing: -.012em; }
h1 { font-size: clamp(32px, 3.7vw, 52px); line-height: 1.1; }
h2 { font-size: clamp(28px, 3.1vw, 44px); line-height: 1.12; }
h3 { font-weight: 600; letter-spacing: -.005em; }
:focus-visible { outline-color: var(--soro); }
::selection { background: #FAD3B6; color: var(--night-deep); }

/* надзаголовок: короткая линия и разрядка */
.eyebrow { display: flex; align-items: flex-start; gap: 12px; font: 600 13px/1.3 var(--font-body); letter-spacing: .13em; color: var(--soro-text); }
.eyebrow::before { content: ""; width: 28px; height: 2px; margin-top: .6em; border-radius: 2px; background: currentColor; flex: none; }
@media (max-width: 559px) { .eyebrow { letter-spacing: .1em; } .eyebrow::before { width: 18px; } }
.section-head-center .eyebrow { justify-content: center; }
.lead { color: var(--ink-2); }

/* ── кнопки: плоские, без «игровой» тени снизу; на оранжевом — тёмно-синий текст (6,4 : 1) ── */
.btn { font: 600 17px/1.1 var(--font-body); letter-spacing: .005em; transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.btn-primary { background: var(--soro); color: var(--night-deep); box-shadow: 0 10px 24px -12px rgba(246, 127, 47, .7); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { transform: translateY(1px); box-shadow: 0 4px 12px -6px rgba(246, 127, 47, .7); }
.btn-ghost { background: transparent; color: var(--night); box-shadow: inset 0 0 0 1.5px #C9CFE2; }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--night); }
.btn-gold { background: var(--soro); color: var(--night-deep); box-shadow: 0 10px 24px -12px rgba(246, 127, 47, .7); }
.btn-gold:hover { background: var(--primary-hover); }
.btn-gold:active { transform: translateY(1px); box-shadow: none; }
.btn-small { min-height: 42px; font-size: 15px; box-shadow: none; }
.btn-ghost-dark { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(230, 233, 242, .4); }
.btn-ghost-dark:hover { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1.5px var(--on-dark); }

/* ── шапка: глубокая ночь ── */
.site-header { background: rgba(18, 27, 64, .94); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.nav a { font: 400 15px/1 var(--font-body); color: var(--on-dark-2); }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav a[aria-current="page"] { color: #fff; background: transparent; box-shadow: inset 0 -2px 0 var(--soro); border-radius: 0; }
.nav-narrow { background: var(--night-deep); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.nav-narrow a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--soro); }

/* ── телефон: рамка в тон «ночного неба» ── */
.phone { background: linear-gradient(160deg, #3A4675, #17204A 62%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), var(--shadow-phone); }
.phone::after { background: #3A4675; }
.phone img { background: #F3F5FA; }

/* ── 1. первый экран: ночное небо ── */
.hero { position: relative; padding: 40px 0 72px; background: var(--sky-bg); color: var(--on-dark); }
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--soro); }
.hero .lead { color: var(--on-dark-2); }
.hero .lead a { color: #fff; }
.hero .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(230, 233, 242, .4); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1.5px var(--on-dark); }
.hero .facts li { color: var(--on-dark); font-weight: 400; }
.hero .facts .icon { background: rgba(255, 255, 255, .05); color: var(--soro); box-shadow: inset 0 0 0 1px rgba(174, 182, 214, .28); }
.hero-stage { background: none; }
/* орбиты за телефонами */
.hero-stage::before, .hero-stage::after {
  content: ""; position: absolute; left: 50%; top: 50%; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(174, 182, 214, .16); transform: translate(-50%, -50%);
}
.hero-stage::before { width: 112%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(60, 76, 138, .45), rgba(60, 76, 138, 0)); }
.hero-stage::after { width: 78%; aspect-ratio: 1; border-color: rgba(246, 127, 47, .22); }
.hero-stage .phone { z-index: 1; }
@media (min-width: 1024px) {
  .hero { padding: 64px 0 96px; }
  .hero + .section { padding-top: 104px; }
}

/* ── внутренние страницы: заголовок на тёмном ── */
.page-hero { padding-bottom: 56px; background: var(--sky-bg); color: var(--on-dark); }
.page-hero h1 { color: #fff; }
.page-hero .eyebrow { color: var(--soro); }
.page-hero .lead { color: var(--on-dark-2); }
.page-hero .lead a { color: #fff; }
.page-hero .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(230, 233, 242, .4); }
.page-hero-solo { padding: 72px 0 104px; }
.section-tight { padding-top: 56px; }
@media (min-width: 1024px) {
  .page-hero { padding: 80px 0 72px; }
  .page-hero-solo { padding: 120px 0 150px; }
  .section-tight { padding-top: 72px; }
}

/* ── 2. занятие: шкала в синих тонах, «новый приём» — оранжевый ── */
.seg-in, .seg-end { background: #D9DDEA; }
.seg-warm { background: var(--slate-light); }
.seg-new { background: var(--soro); }
.seg-mix { background: var(--night-2); }
.seg-mind { background: var(--night-deep); }
.timeline-bar { height: 10px; gap: 3px; }
.step-num { background: var(--night); color: #fff; font: 600 15px/1 var(--font-body); }

/* ── 3. путь: ступени — от рассвета к ночи ── */
.belt { box-shadow: inset 0 0 0 1px var(--line); }
.belt-num { font: 600 18px/1 var(--font-body); }
.belt-0 { --belt: #E6E9F2; }
.belt-1 { --belt: #CDD3E6; }
.belt-2 { --belt: #AEB6D6; }
.belt-3 { --belt: #8691BD; --belt-ink: #fff; }
.belt-4 { --belt: #5F6CA2; --belt-ink: #fff; }
.belt-5 { --belt: #3C4C8A; --belt-ink: #fff; }
.belt-6 { --belt: #1D2B5E; --belt-ink: #fff; }
.belt-7 { --belt: #121B40; --belt-ink: #fff; }
.belt-tag { background: var(--fog); color: var(--slate); font: 600 12px/1.25 var(--font-body); }
.belt-tag.tag-free { background: #FDEEE3; color: var(--soro-text); }
.belt-tag.tag-later { box-shadow: inset 0 0 0 1.5px var(--line); }
.belt-later { background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px var(--line); }
@media (min-width: 1024px) { .belt::before { height: 6px; } }
.mind-track { background: var(--sky-bg); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.mind-label { font: 600 17px/1.35 var(--font-body); }
.mind-steps li, .mind-steps li.mind-now { background: rgba(255, 255, 255, .07); color: #fff; box-shadow: inset 0 0 0 1px rgba(174, 182, 214, .28); font-weight: 400; }
.mind-steps li + li::before { border-color: var(--soro); }
.mind-note { color: var(--on-dark-2); }
.path-facts li { box-shadow: inset 0 0 0 1px var(--line); }

/* ── 4. родителю ── */
.features .icon, .features li:nth-child(n) .icon { background: var(--fog); color: var(--night); box-shadow: inset 0 0 0 1px var(--line); }
.parents-stage { background: radial-gradient(90% 70% at 85% 0%, #E3E8F5, rgba(227, 232, 245, 0) 65%), linear-gradient(170deg, #F3F5FA, #EAEEF7); }

/* ── 5. книга: то же небо, что на обложке ── */
.section-book { background: var(--sky-bg); color: var(--on-dark); }
.book-cover img { box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 70px -24px rgba(0, 0, 0, .7), 0 0 120px -20px rgba(246, 127, 47, .3); }
.book-sub { font: 600 19px/1.45 var(--font-body); color: var(--on-dark); }
.book-text > p:not(.eyebrow):not(.book-sub) { color: var(--on-dark-2); }
.book-meta li { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(174, 182, 214, .3); }
.book-text > p.book-prices { color: var(--on-dark-2); }
.eyebrow-gold { color: var(--soro); }

/* ── 6. тарифы: одна главная кнопка — в карточке «Год», она же тёмная ── */
.plan { box-shadow: inset 0 0 0 1px var(--line); }
.plan .btn-primary { background: var(--night); color: #fff; box-shadow: none; }
.plan .btn-primary:hover { background: var(--night-2); }
.plan-free { background: var(--fog); box-shadow: inset 0 0 0 1px var(--line); }
.plan-trial { color: var(--soro-text); font-weight: 600; }
.plan-best { background: var(--sky-bg); color: var(--on-dark); box-shadow: 0 30px 60px -30px rgba(18, 27, 64, .6); }
.plan-best h3, .plan-best .price { color: #fff; }
.plan-best .price span, .plan-best .plan-desc { color: var(--on-dark-2); }
.plan-best .plan-trial { color: #FFA466; }
.plan-best .btn-primary { background: var(--soro); color: var(--night-deep); box-shadow: 0 10px 24px -12px rgba(246, 127, 47, .8); }
.plan-best .btn-primary:hover { background: var(--primary-hover); }
.plan-badge { background: var(--soro); color: var(--night-deep); font: 600 13px/1 var(--font-body); }
.price { font-family: var(--font-serif); font-weight: 600; letter-spacing: 0; }
.plans-after a, .plans-after b { color: var(--night); }

/* ── ранний доступ и форма ── */
.section-lead { background: var(--fog); }
.lead-points li::before { border-color: var(--soro); }
.lead-form { box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -40px rgba(18, 27, 64, .35); }
.choice-body { box-shadow: inset 0 0 0 1.5px var(--line); }
.choice-body::before { box-shadow: inset 0 0 0 2px #B9C0D8; }
.choice:hover .choice-body { box-shadow: inset 0 0 0 1.5px #B9C0D8; }
.choice input:checked + .choice-body { background: #FFF6F0; box-shadow: inset 0 0 0 2px var(--soro); }
.choices legend, .field-label, .choice-body b { font-family: var(--font-body); font-weight: 600; }
.field input { box-shadow: inset 0 0 0 1.5px var(--line); }
.field input::placeholder { color: #9AA1BC; }
.field input:focus { box-shadow: inset 0 0 0 2px var(--night); }
.consent input { accent-color: var(--night); }
.chosen { box-shadow: inset 0 0 0 2px var(--soro), var(--shadow-card); }
.next-steps li::before { background: var(--night); color: #fff; font-family: var(--font-body); }

/* ── вопросы: после серого «раннего доступа» — белый раздел, чтобы два серых не слились ── */
.section-lead + .section-tint { background: var(--bg); }
.faq details { box-shadow: inset 0 0 0 1px var(--line); }
.faq summary { font: 600 18px/1.35 var(--font-body); }
.faq summary::after, .faq summary::before { background: var(--soro); height: 2px; }
.faq-more { box-shadow: inset 0 0 0 1px var(--line); font-family: var(--font-body); color: var(--soro-text); }
.faq-more:hover { box-shadow: inset 0 0 0 1.5px var(--night); }

/* ── последний призыв: ночная карточка ── */
.cta { background: var(--sky-bg); color: var(--on-dark); }
.cta h2, .cta-thanks h1 { color: #fff; }
.cta-text p { color: var(--on-dark-2); }
.cta-text p.eyebrow { color: var(--soro); }
.cta .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(230, 233, 242, .4); }

/* ── подвал ── */
.site-footer { background: var(--night-deep); color: var(--on-dark-2); }
.footer-title { color: #fff; font-family: var(--font-body); letter-spacing: .12em; font-size: 13px; }
.footer-app, .footer-col a, .site-footer address a { color: #fff; }
.footer-bottom p { border-top-color: rgba(255, 255, 255, .1); }

/* ── внутренние страницы ── */
.detail-cards li, .howto li, .toc-part, .contact-cards li, .mind-path li { box-shadow: inset 0 0 0 1px var(--line); }
.howto li::before { background: var(--night); color: #fff; font-family: var(--font-body); }
.chapter-flow li { box-shadow: inset 0 0 0 1px var(--line); font-family: var(--font-body); }
.chapter-flow li::before { background: var(--night); color: #fff; }
.toc-part h3 span { font-family: var(--font-body); }
.toc-appendix { background: var(--fog); }
.contact-cards .icon, .contact-cards li:nth-child(n) .icon { background: var(--fog); color: var(--night); }
.mind-path li.mind-path-now { box-shadow: inset 0 0 0 2px var(--soro); }
.pill { background: #FDEEE3; color: var(--soro-text); font-family: var(--font-body); }
.pill-later { background: var(--fog); color: var(--slate); }
.facts-table { box-shadow: inset 0 0 0 1px var(--line); }
.prose thead th { font-family: var(--font-body); }
.legal-sub { font-family: var(--font-body); }

/* ── объёмная книга (21.11.2026, владелец: ракурс 2; «при наведении книга переезжает из 2 в 3, на телефоне — параллакс»).
   Без скриптов (CSP default-src 'none'): поворот — лента из 24 кадров Blender (book-turn-660.webp), шаги steps();
   поворот — при прокрутке (animation-timeline), где не поддерживается — при наведении. */
.book-cover.book-3d { position: relative; width: min(320px, 84vw); }
.book-3d img { box-shadow: none; border-radius: 0; display: block; width: 100%; height: auto; }
.book-turn { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: 0 0 / 2400% 100% no-repeat; }
@media (min-width: 900px) {
  .book-grid.book-grid-3d { grid-template-columns: 440px minmax(0, 1fr); gap: 56px; }
  .book-cover.book-3d { width: 440px; }
}
@keyframes book-turn { from { background-position: 0 0; } to { background-position: 100% 0; } }
/* прокрутка: из развёрнутого (ракурс 3, виден обрез) в плоский (ракурс 2) — владелец 21.11.2026: «наоборот — от развёрнутой
   к плоской» */
@keyframes book-unturn { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes book-drift { from { translate: 0 28px; } to { translate: 0 -28px; } }
@keyframes book-lag { from { translate: 0 0; } to { translate: 0 70px; } }
/* Поворот книги связан с прокруткой, а не с курсором (владелец 21.11.2026: «лучше, чтобы её движение было не от курсора,
   а связано с параллаксом»): прокрутили вниз — из развёрнутой (ракурс 3) в плоскую (ракурс 2) и книга отстаёт от текста,
   вверх — обратно.
   Браузеры без animation-timeline (Firefox): поворот при наведении, при уходе курсора — назад тем же путём. */
@supports not (animation-timeline: view()) {
  @media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .book-turn { background-image: url(img/book-turn-660.webp); transition: background-position .9s steps(24, jump-none), opacity 0s .9s; }
    .book-3d:hover .book-turn { opacity: 1; background-position: 100% 0; transition: background-position .9s steps(24, jump-none), opacity 0s; }
    .book-3d img { transition: opacity 0s .9s; }
    .book-3d:hover img { opacity: 0; transition: opacity 0s; }
  }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .book-3d img { opacity: 0; }
    .book-3d .book-turn { opacity: 1; background-image: url(img/book-turn-660.webp); animation: book-unturn both; animation-timing-function: steps(24, jump-none); }
    /* «Книга»: сразу прямо, при прокрутке вниз всё больше корешок (владелец 21.11.2026); главная — из развёрнутой в плоскую */
    .book-hero .book-turn { background-image: url(img/book-spine-660.webp); animation-name: book-turn; animation-timeline: scroll(root); animation-range: 0 420px; }
    .section-book:not(.book-hero) .book-turn { animation-timeline: view(); animation-range: entry 40% contain 60%; }
    .book-hero .book-3d { animation: book-lag linear both; animation-timeline: scroll(root); animation-range: 0 600px; }
    .section-book:not(.book-hero) .book-3d { animation: book-drift linear both; animation-timeline: view(); }
  }
}

/* ── параллакс по всему сайту (21.11.2026, владелец: «параллаксы на весь сайт нужно обязательно, как в агро»).
   Как в agroclass.tech (слои с разной глубиной + «дыхание» картинок), но без скриптов: animation-timeline.
   Двигается только translate/rotate (transform у телефонов — свой наклон — не трогаем). Нет поддержки или
   «уменьшить движение» — всё стоит на месте. Глубина: +d → −d — ближе (обгоняет прокрутку), −d → +d — дальше. */
@keyframes px-near { from { translate: 0 var(--px, 30px); } to { translate: 0 calc(-1 * var(--px, 30px)); } }
@keyframes px-far { from { translate: 0 calc(-1 * var(--px, 30px)); } to { translate: 0 var(--px, 30px); } }
@keyframes px-hero-back { from { translate: 0 0; } to { translate: 0 90px; } }
@keyframes px-hero-front { from { translate: 0 0; } to { translate: 0 -40px; } }
@keyframes px-hero-glow { from { translate: 0 0; scale: 1; } to { translate: 0 120px; scale: 1.1; } }
@keyframes px-owl { from { translate: 0 40px; rotate: -2deg; } to { translate: 0 -30px; rotate: 2deg; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* первый экран: дальний телефон отстаёт, ближний уходит быстрее, свечение за ними — медленнее всех */
    .hero-stage .phone-back { animation: px-hero-back linear both; animation-timeline: scroll(root); animation-range: 0 700px; }
    .hero-stage .phone-front { animation: px-hero-front linear both; animation-timeline: scroll(root); animation-range: 0 700px; }
    .hero-stage::before, .hero-stage::after { animation: px-hero-glow linear both; animation-timeline: scroll(root); animation-range: 0 700px; }
    /* телефоны в разделах: соседние — на разной глубине */
    .phone-step, .phone-parent, .phone-mind, .phone-path { animation: px-near linear both; animation-timeline: view(); }
    .phone-step { --px: 14px; }
    .step:nth-child(even) .phone-step { --px: 34px; }
    .phone-parent-a { --px: 18px; }
    .phone-parent-b { --px: 42px; }
    .phone-mind, .phone-path { --px: 28px; }
    /* иллюстрации и развороты книги «дышат», сова в конце страницы парит */
    .scene, .spread { --px: 18px; animation: px-far linear both; animation-timeline: view(); }
    .cta-owl { animation: px-owl linear both; animation-timeline: view(); }
  }
}

/* ── «живые» элементы (21.11.2026, владелец: «элементы управления живее — тени при наведении; картинки мёртвые,
   особенно схемы»). Наведение — только на устройствах с мышью; движение — только без «уменьшить движение».
   У телефонов translate занят параллаксом, поэтому их отклик — scale. */
.btn .icon { transition: translate .2s ease; }
.plan, .belt, .faq details, .detail-cards li, .howto li, .toc-part, .contact-cards li, .mind-path li {
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease;   /* translate занят появлением при прокрутке */
}
.spread img, .scene img { transition: translate .3s cubic-bezier(.2, .8, .2, 1), scale .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease; }
.phone { transition: scale .3s cubic-bezier(.2, .8, .2, 1), transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease; }
@media (hover: hover) {
  .btn-primary:hover, .btn-gold:hover, .plan-best .btn-primary:hover { box-shadow: 0 16px 30px -12px rgba(246, 127, 47, .85); }
  .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--night), 0 12px 24px -16px rgba(18, 27, 64, .55); }
  .hero .btn-ghost:hover, .page-hero .btn-ghost:hover, .cta .btn-ghost:hover, .btn-ghost-dark:hover {
    box-shadow: inset 0 0 0 1.5px var(--on-dark), 0 12px 26px -14px rgba(0, 0, 0, .6); }
  .plan .btn-primary:hover { box-shadow: 0 14px 26px -14px rgba(18, 27, 64, .7); }
  .plan:hover, .belt:hover, .faq details:hover, .detail-cards li:hover, .howto li:hover, .toc-part:hover,
  .contact-cards li:hover, .mind-path li:hover { box-shadow: inset 0 0 0 1px var(--line), 0 22px 44px -26px rgba(18, 27, 64, .45); }
  .plan-best:hover { box-shadow: 0 26px 54px -24px rgba(18, 27, 64, .65); }
  .spread:hover img, .scene:hover img { box-shadow: 0 1px 0 rgba(31, 46, 71, .06), 0 36px 60px -30px rgba(18, 27, 64, .55); }
  .phone:hover, .step:hover .phone-step { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 60px 90px -40px rgba(4, 7, 24, .85), 0 22px 34px -20px rgba(4, 7, 24, .5); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover { translate: 0 -2px; }
  .btn:active { translate: 0 1px; }
  .btn:hover .icon { translate: 3px 0; }
  .plan:hover, .belt:hover, .detail-cards li:hover, .howto li:hover, .toc-part:hover, .contact-cards li:hover,
  .mind-path li:hover { transform: translateY(-4px); }
  /* шаг занятия — не карточка (без рамки и полей): при наведении на шаг поднимается только телефон (владелец 21.11.2026:
     «тень и движение только на картинке телефона») */
  .step:hover .phone-step { transform: translateY(-8px); }
  .spread:hover img, .scene:hover img { translate: 0 -4px; scale: 1.015; }
  .phone:hover { scale: 1.03; }
}

/* появление при прокрутке: заголовки разделов, карточки, схемы; ступени и полоски шкалы занятия — по очереди */
@keyframes rise-in { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
@keyframes fade-scale-in { from { opacity: 0; scale: .95; } to { opacity: 1; scale: 1; } }
@keyframes slide-in { from { opacity: 0; translate: -22px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes bar-grow { from { scale: 0 1; } to { scale: 1 1; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section-head, .plan, .detail-cards li, .howto li, .toc-part, .faq details, .mind-path li, .cta-text {
      animation: rise-in linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .plan:nth-child(2), .detail-cards li:nth-child(2), .howto li:nth-child(2), .toc-part:nth-child(2) { animation-range: entry 10% entry 80%; }
    .plan:nth-child(3), .detail-cards li:nth-child(3), .howto li:nth-child(3), .toc-part:nth-child(3) { animation-range: entry 20% entry 90%; }
    .belt { animation: slide-in linear both; animation-timeline: view(); animation-range: entry 10% entry 80%; }
    .step { animation: rise-in linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    .step:nth-child(2) { animation-range: entry 8% entry 68%; }
    .step:nth-child(3) { animation-range: entry 16% entry 76%; }
    .step:nth-child(4) { animation-range: entry 24% entry 84%; }
    .seg { transform-origin: left center; animation: bar-grow linear both; animation-timeline: view(); animation-range: entry 20% cover 40%; }
    .seg:nth-child(2) { animation-range: entry 30% cover 45%; }
    .seg:nth-child(3) { animation-range: entry 40% cover 50%; }
    .seg:nth-child(4) { animation-range: entry 50% cover 55%; }
    .seg:nth-child(5) { animation-range: entry 60% cover 60%; }
    .seg:nth-child(6) { animation-range: entry 70% cover 65%; }
    /* развороты книги со схемами и «Путь»: появляются и «дышат» (px-far — параллакс выше) */
    .scene, .spread { animation: px-far linear both, fade-scale-in linear both; animation-timeline: view(), view();
      animation-range: normal, entry 0% entry 60%; }
  }
}
