/* Основная презентация. Сцена 1920×1080, всё в пикселях сцены. */

@font-face {
  font-family: "Onest";
  src: url("../../shared/fonts/Onest.woff2") format("woff2");
  font-weight: 100 900;
  font-display: block;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../../shared/fonts/SourceSerif4.woff2") format("woff2");
  font-weight: 200 900;
  font-display: block;
}

:root {
  --bg: #F4F5F8;
  --ink: #1B1930;
  --ink-2: #5B5C74;
  --mute: #80829B;        /* нейтральные метки графиков, ≥3:1 к фону */
  --soft: #A3A5B8;        /* второстепенные метки с подписью */
  --rule: #D9DBE4;        /* волосяные линии */
  --micro: #E8590C;
  --horo: #613CAF;
  --panel: #1B1930;
  --on-panel: #F4F5F8;
  --on-panel-2: #B9BBD0;
  --loss: #FF6B5E;        /* убыток на тёмной панели */

  --sans: "Onest", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;

  --pad-x: 112px;
  --foot: 66px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --glide: cubic-bezier(.62, 0, .18, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.cursor-idle, body.cursor-idle * { cursor: none !important; }
button { font: inherit; color: inherit; }

/* ───────── сцена ───────── */
#world {
  position: fixed;
  left: 50%; top: 50%;
  width: 1920px; height: 1080px;
  transform: translate(-50%, -50%) scale(var(--scale, 1));
  transform-origin: center;
}
#stage { position: absolute; inset: 0; }

/* ───────── непрерывный фон ───────── */
#bg { position: absolute; inset: 0; pointer-events: none; }
.bg-shape {
  position: absolute; left: 0; mix-blend-mode: multiply; opacity: 0;
  transition: transform 1200ms var(--glide), opacity 240ms linear 960ms;
}
.bg-shape.is-on { opacity: 1; transition: transform 1200ms var(--glide), opacity 0s; }
.no-motion .bg-shape, .bg-snap .bg-shape { transition: none; }
.bg-shape::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 1.5px solid var(--edge); opacity: 0; transition: opacity 400ms ease;
}
.bg-shape.is-home::after { opacity: 1; transition: opacity 700ms ease 900ms; }
.no-motion .bg-shape::after, .bg-snap .bg-shape::after { transition: none; }
.bg-shape.frame  { background: #F7E8E0; --edge: rgba(232, 89, 12, .45); }
.bg-shape.circle { background: #E9E5F4; --edge: rgba(97, 60, 175, .42); border-radius: 50%; }

/* ───────── слайд ───────── */
.slide {
  position: absolute; inset: 0;
  padding: 78px var(--pad-x) 0;
  visibility: hidden; opacity: 0;
}
.slide.is-current { visibility: visible; opacity: 1; }
@keyframes a-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(calc(var(--dir, 1) * -56px)); } }
.slide.is-leaving { visibility: visible; opacity: 0; animation: a-out 300ms ease both; }
.no-motion .slide.is-leaving { animation: none; }
.slide.is-entering { animation: a-fade 420ms ease both; }
.slide.is-back { animation: a-fade 240ms ease both; }

/* появление: конечное состояние — это обычный вид, анимация только при первом входе */
@keyframes a-in   { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes a-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes a-grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes a-grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes a-draw { from { stroke-dashoffset: 1.03; } to { stroke-dashoffset: 0; } }
@keyframes a-pop  { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }

.is-entering [data-a]          { animation: a-in 620ms var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms + 70ms); }
.is-entering [data-a="fade"]   { animation-name: a-fade; }
.is-entering [data-a="grow-y"] { animation: a-grow-y 760ms var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms + 70ms); }
.is-entering [data-a="grow-x"] { animation: a-grow-x 760ms var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms + 70ms); }
.is-entering [data-a="draw"]   { animation: a-draw 1100ms cubic-bezier(.45, 0, .2, 1) both; animation-delay: calc(var(--d, 0) * 1ms + 70ms); }
.is-entering [data-a="pop"]    { animation: a-pop 420ms var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms + 70ms); }
svg [data-a="grow-y"] { transform-box: fill-box; transform-origin: 50% 100%; }
svg [data-a="grow-x"] { transform-box: fill-box; transform-origin: 0 50%; }
[data-a="grow-x"] { transform-origin: 0 50%; }
[data-a="draw"]   { stroke-dasharray: 1 3; stroke-dashoffset: 0; }

/* ───────── типографика ───────── */
.title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 62px;
  line-height: 1.1;
  letter-spacing: -0.012em;
  font-optical-sizing: auto;
  font-variant-numeric: lining-nums proportional-nums;
  max-width: 1640px;
  text-wrap: balance;
}
.h   { font-size: 26px; font-weight: 600; line-height: 1.2; letter-spacing: -0.005em; }
.cap { font-size: 24px; font-weight: 600; line-height: 1.25; }
.lbl { font-size: 24px; line-height: 1.3; color: var(--ink-2); text-wrap: pretty; }
.txt { font-size: 26px; line-height: 1.36; text-wrap: pretty; }
.num {
  font-weight: 600; letter-spacing: -0.025em; line-height: 1;
  font-variant-numeric: proportional-nums;
  white-space: nowrap;
}
.num-hero { font-size: 136px; letter-spacing: -0.04em; }
.num-xl   { font-size: 100px; letter-spacing: -0.035em; }
.num-l    { font-size: 64px; }
.num-m    { font-size: 48px; }
.num-s    { font-size: 36px; letter-spacing: -0.02em; }
b, strong { font-weight: 600; }
.stat .lbl { margin-top: 10px; }
.stat.row { display: flex; align-items: baseline; gap: 16px; }
.stat.row .lbl { margin-top: 0; }

.glyph { display: inline-block; flex: none; }
.glyph.frame  { width: 11px; height: 19px; border-radius: 3px; background: var(--micro); }
.glyph.circle { width: 17px; height: 17px; border-radius: 50%; background: var(--horo); }

/* метка продукта над заголовком: одна на блок слайдов, меняется только при смене продукта */
#kicker { position: absolute; left: var(--pad-x); top: 34px; height: 34px; pointer-events: none; }
.kicker-item {
  position: absolute; left: 0; top: 0;
  display: flex; align-items: center; gap: 12px;
  font-size: 28px; font-weight: 600; line-height: 34px; letter-spacing: -0.005em; white-space: nowrap;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 260ms ease, transform 260ms ease, visibility 0s linear 260ms;
}
.kicker-item.is-on {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 420ms ease 300ms, transform 520ms var(--ease) 300ms, visibility 0s;
}
.no-motion .kicker-item { transition: none; }
.kicker-item .glyph.frame { width: 14px; height: 25px; border-radius: 4px; }
.kicker-item .glyph.circle { width: 22px; height: 22px; }

/* служебные подписи драфта — скрыты, клавиша I */
.notes {
  position: absolute; left: var(--pad-x); right: var(--pad-x); bottom: 20px;
  font-size: 17px; line-height: 1.3; color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transition: opacity 200ms ease;
}
body.show-notes .notes { opacity: 1; }

/* нижняя полоса */
.strip {
  position: absolute; left: var(--pad-x); right: var(--pad-x); bottom: var(--foot);
  border-top: 1px solid var(--rule); padding-top: 22px;
  display: grid; column-gap: 52px;
}
.strip-3 { grid-template-columns: 1.1fr 1fr 1fr; }
.strip-k { font-size: 22px; color: var(--ink-2); margin-bottom: 10px; }

/* лента шагов */
.tl {
  position: absolute; left: var(--pad-x); right: var(--pad-x); bottom: var(--foot);
  display: grid; column-gap: 48px;
  padding-top: 30px;
}
.tl::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ink); transform-origin: 0 50%; }
.is-entering .tl::before { animation: a-grow-x 760ms var(--ease) both; animation-delay: calc(var(--tl-d, 0) * 1ms + 70ms); }
.tl-item { position: relative; }
.tl-dot { position: absolute; left: 0; top: -37px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); }
.tl-dot.is-m { width: 20px; height: 20px; top: -39px; border-radius: 4px; }
.tl-dot.is-m.micro { background: var(--micro); }
.tl-dot.is-m.horo  { background: var(--horo); }
.tl-when { font-size: 24px; font-weight: 600; display: flex; align-items: center; gap: 12px; }
.tl-code {
  font-size: 19px; font-weight: 500; color: var(--ink-2); line-height: 1;
  border: 1.5px solid var(--soft); border-radius: 6px; padding: 4px 8px 3px;
}
.tl-txt { margin-top: 8px; font-size: 23px; line-height: 1.34; text-wrap: pretty; }

/* тёмная панель: только слайды 12 и 13 */
.panel { background: var(--panel); color: var(--on-panel); border-radius: 28px; }
.panel .lbl { color: var(--on-panel-2); }

/* ───────── графики ───────── */
svg.chart { display: block; overflow: visible; }
.chart text { font-family: var(--sans); fill: var(--ink-2); font-size: 20px; }
.chart .tick { font-variant-numeric: tabular-nums; }
.chart .val  { fill: var(--ink); font-size: 22px; font-weight: 600; }
.chart .val-l { fill: var(--ink); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.chart .val-xl { fill: var(--ink); font-size: 56px; font-weight: 600; letter-spacing: -0.03em; paint-order: stroke; stroke: var(--bg); stroke-width: 12px; stroke-linejoin: round; }
.chart .lab  { fill: var(--ink); font-size: 23px; }
.chart .grid { stroke: var(--rule); stroke-width: 1; }
.chart .axis { stroke: #BFC2CF; stroke-width: 1; }
.chart * { pointer-events: none; }            /* подсказку ловят только зоны столбцов */
.chart .hit  { fill: transparent; pointer-events: all; }
.chart .col:hover .hl { opacity: 1; }
.chart .col:hover .bar { filter: brightness(1.14); }
.chart-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.legend { display: flex; gap: 34px; font-size: 22px; color: var(--ink-2); align-items: center; }
.legend i { display: inline-block; width: 30px; height: 0; border-top: 3px solid currentColor; margin-right: 10px; vertical-align: middle; border-radius: 2px; }
.legend i.sw { width: 12px; height: 20px; border-top: 0; border-radius: 3px; vertical-align: -3px; }

#tip {
  position: absolute; z-index: 30; pointer-events: none;
  background: var(--ink); color: var(--on-panel);
  border-radius: 10px; padding: 12px 16px;
  font-size: 20px; line-height: 1.35;
  opacity: 0; transition: opacity 120ms ease;
  white-space: nowrap;
}
#tip.on { opacity: 1; }
#tip .tip-title { color: var(--on-panel-2); margin-bottom: 4px; }
#tip .tip-row { display: flex; align-items: center; gap: 10px; }
#tip .tip-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
#tip .tip-row b:empty { display: none; }
#tip .tip-row span { color: var(--on-panel-2); }
#tip .tip-key { width: 16px; height: 0; border-top: 3px solid var(--k, #fff); border-radius: 2px; flex: none; }

/* ═════════ экран-разделитель «Проект …» ═════════
   Надпись слева, справа фигура продукта каскадом из трёх: дальняя — фигура фона (deck.js, SHAPES),
   средняя и ближняя стоят здесь и при первом входе выезжают из-под неё. */
.s-div { padding-top: 0; display: flex; flex-direction: column; justify-content: center; }
.div-title { font: inherit; }
.div-label { display: block; font-size: 44px; font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; color: var(--ink-2); }
.div-name {
  display: block; margin-top: 14px;
  font-family: var(--serif); font-weight: 600; font-size: 156px; line-height: 1.02; letter-spacing: -0.022em;
  font-optical-sizing: auto;
}
.div-card { position: absolute; }
.s-div.micro .div-card { width: 360px; height: 640px; border-radius: 26px; --fx: 110px; --fy: -86px; }
.s-div.micro .mid   { left: 1390px; top: 236px; background: #EFAF8E; }
.s-div.micro .front { left: 1280px; top: 322px; background: var(--micro); }
.s-div.horo .div-card { width: 560px; height: 560px; top: 260px; border-radius: 50%; --fx: 140px; --fy: 0px; }
.s-div.horo .mid   { left: 1180px; background: #B2A2D7; }
.s-div.horo .front { left: 1040px; background: var(--horo); }
@keyframes a-fan { from { opacity: 0; transform: translate(var(--fx), var(--fy)); } to { opacity: 1; transform: none; } }
.is-entering [data-a="fan"] { animation: a-fan 820ms var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms + 70ms); }

/* ═════════ 1. Запрос ═════════ */
.s1 .deal { display: grid; grid-template-columns: auto 1fr; column-gap: 104px; align-items: center; margin-top: 110px; }
.s1 .hero { display: flex; align-items: baseline; gap: 30px; margin-top: 18px; }
.s1 .num-hero { font-size: 168px; }
.s1 .hero-aside { font-size: 72px; font-weight: 500; letter-spacing: -0.03em; white-space: nowrap; }
.s1 .ask-sub { margin-top: 18px; font-size: 28px; color: var(--ink-2); }
.s1 .round-cap { display: flex; font-size: 22px; color: var(--ink-2); margin-bottom: 12px; gap: 3px; }
.s1 .round-bar { display: flex; gap: 3px; height: 64px; }
.s1 .round-bar div {
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 500; border-radius: 4px;
}
.s1 .round-bar .t { background: var(--ink); color: var(--on-panel); }
.s1 .round-bar .f { border: 1.5px solid var(--ink); }
.s1 .round-note { margin-top: 12px; font-size: 24px; line-height: 1.3; display: flex; align-items: center; gap: 14px; }
.s1 .round-bar + .round-note { margin-top: 22px; }
.s1 .key { width: 16px; height: 16px; border-radius: 3px; flex: none; }
.s1 .key.t { background: var(--ink); }
.s1 .key.f { border: 1.5px solid var(--ink); }

/* справка: на что, год 1, что получает борд (последнее — на рамке фона) */
.s1 .refs {
  position: absolute; left: var(--pad-x); right: var(--pad-x); bottom: var(--foot);
  display: grid; grid-template-columns: 1fr 1fr 472px; column-gap: 64px; align-items: start;
}
.s1 .refs > div { border-top: 1px solid var(--rule); padding-top: 24px; }
.s1 .refs > .gets { border-top-color: transparent; }
.s1 .refs .h { margin-bottom: 8px; }
.s1 .ref-row { display: grid; grid-template-columns: 196px 1fr; column-gap: 18px; align-items: center; min-height: 93px; }   /* строки одной высоты в обеих колонках, число и подпись — по центру строки */
.s1 .ref-row + .ref-row { border-top: 1px solid var(--rule); }
.s1 .ref-row .lbl { font-size: 22px; color: var(--ink); }
.s1 .ref-row .lbl span { display: block; color: var(--ink-2); }
.s1 .gets > .lbl { font-size: 22px; }
.s1 .gets-row { display: flex; align-items: flex-start; gap: 22px; margin-top: 22px; }
.s1 .gets-row .lbl { font-size: 22px; margin-top: 8px; }
.s1 .gets-arrow { font-style: normal; font-size: 30px; line-height: 48px; color: var(--mute); }
.s1 .gets-plan { margin-top: 24px; font-size: 22px; line-height: 1.32; color: var(--ink-2); text-wrap: pretty; }

/* ═════════ 2. Рынок ═════════ */
.s2 .grid2 { display: grid; grid-template-columns: 820px 1fr; column-gap: 100px; margin-top: 44px; }
.s2 .calls { display: grid; row-gap: 56px; align-content: center; padding: 100px 0 60px; }   /* по центру области графика */
.s2 .call .txt { margin-top: 10px; max-width: 720px; }
.s2 .strip .lbl { margin-top: 10px; }

/* ═════════ 3. ИИ-сериалы ═════════ */
.s3 .grid2 { display: grid; grid-template-columns: 590px 1fr; column-gap: 130px; margin-top: 56px; }
.s3 .share { display: flex; flex-direction: column; }
.s3 .share-row { margin-top: 52px; }
.s3 .share-row .num { font-size: 132px; letter-spacing: -0.04em; }
.s3 .share-top { display: flex; align-items: baseline; gap: 26px; }
.s3 .share-year { font-size: 30px; color: var(--ink-2); width: 84px; font-variant-numeric: tabular-nums; }
.track { height: 20px; border-radius: 4px; background: #E1E3EB; margin-top: 20px; overflow: hidden; }
.track i { display: block; height: 100%; background: var(--micro); border-radius: 0 4px 4px 0; }
.s3 .cheaper { margin-top: auto; padding-top: 35px; border-top: 1px solid var(--rule); display: flex; align-items: baseline; gap: 18px; }
.s3 .deals .h { margin-bottom: 16px; }
.s3 .deal { display: grid; grid-template-columns: 236px 1fr; column-gap: 30px; align-items: start; padding: 23px 0 22px; border-top: 1px solid var(--rule); }
.s3 .deal-bar { display: block; height: 6px; border-radius: 0 3px 3px 0; background: var(--micro); margin-top: 9px; }
.s3 .deal-t { font-size: 24px; line-height: 1.34; padding-top: 5px; text-wrap: pretty; }
.s3 .deal.total { border-top: 2px solid var(--ink); padding-top: 34px; padding-bottom: 0; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 24px; }

/* ═════════ 4. Органика ═════════ */
.s4 .halves { display: grid; grid-template-columns: 440px 1fr; column-gap: 116px; margin-top: 44px; }
.s4 .h + .lbl { margin-top: 8px; }
.s4 .hbars { margin-top: 44px; display: grid; row-gap: 30px; }
.s4 .hb-l { font-size: 22px; color: var(--ink-2); margin-bottom: 10px; }
.s4 .hb-row { display: flex; align-items: center; gap: 16px; }
.s4 .hb-row i { display: block; height: 20px; border-radius: 0 4px 4px 0; background: var(--mute); }
.s4 .grow { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--rule); }
.s4 .org-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; }
.s4 .org-stats { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; margin-top: 12px; }
.s4 .stat.row { align-items: center; }   /* подпись в две строки — по центру числа */
.verdict {
  position: absolute; left: var(--pad-x); right: var(--pad-x); bottom: var(--foot);
  border-top: 1px solid var(--rule); padding-top: 22px;
  font-family: var(--serif); font-size: 38px; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em;
}

/* ═════════ 5. Микросериалы: просмотры ═════════ */
.s5 .title { max-width: 1048px; }
.s5 .main { width: 1048px; margin-top: 52px; }
.s5 .chart-head .cap { margin: 0; }
.s5 .legend i.plan { border-top-style: dashed; width: 34px; }
.s5 .take { margin-top: 20px; font-size: 25px; line-height: 1.36; text-wrap: pretty; }
.s5 .facts {
  position: absolute; left: var(--pad-x); width: 1048px; bottom: var(--foot);
  border-top: 1px solid var(--rule); padding-top: 24px;
  display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; column-gap: 36px; align-items: start;
}
.s5 .fact .lbl { margin-top: 8px; font-size: 22px; max-width: 256px; }
.s5 .fact .lbl + .lbl { margin-top: 2px; }

/* три серии каскадом, первая сверху. Клик раскрывает каскад в просмотр серий (deck.js): обложка — это кадр просмотра
   в масштабе 360/520, радиус уменьшен во столько же, поэтому при раскрытии форма не меняется */
.cascade {
  --w: 360px; --dx: 72px; --dy: 56px;
  position: absolute; left: 1304px; top: 214px;
  width: calc(var(--w) + 2 * var(--dx)); height: calc(var(--w) * 16 / 9 + 2 * var(--dy));
  border: 0; padding: 0; background: none; cursor: pointer; display: block;
}
.cas-card {
  position: absolute; left: calc(var(--k) * var(--dx)); top: calc((2 - var(--k)) * var(--dy)); z-index: calc(3 - var(--k));
  width: var(--w); height: calc(var(--w) * 16 / 9);
  border-radius: 19.4px; overflow: hidden; background: #15142B;
  box-shadow: 0 0 0 5px var(--bg);                  /* просвет между обложками */
  transition: translate 360ms var(--ease);
}
.cas-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cascade:hover .cas-card, .cascade:focus-visible .cas-card { translate: calc(var(--k) * 12px) calc(var(--k) * -9px); }   /* каскад чуть расходится: его можно раскрыть */
.cascade.is-open .cas-card { visibility: hidden; }   /* пока открыт просмотр, на месте обложек — его кадры */
.cascade:focus-visible { outline: 2px solid var(--ink); outline-offset: 12px; border-radius: 24px; }
@keyframes a-deal { from { opacity: 0; transform: translate(calc(var(--k) * -1 * var(--dx)), calc(var(--k) * var(--dy))); } to { opacity: 1; transform: none; } }
.is-entering [data-a="deal"] { animation: a-deal 760ms var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms + 70ms); }

/* кнопка «посмотреть запись» на телефоне Soulit */
.watch {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 28px 0 24px; border-radius: 32px;
  background: rgba(244, 245, 248, .96); color: var(--ink); font-size: 24px; font-weight: 600; white-space: nowrap;
  transition: transform 220ms var(--ease), background 220ms ease, opacity 200ms ease;
}
.watch i { width: 0; height: 0; border-left: 17px solid var(--ink); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.phone:hover .watch, .phone:focus-visible .watch { transform: translateX(-50%) scale(1.04); background: #fff; }

/* ═════════ 6. Микросериалы: год 1 ═════════ */
.s6 .kpis { display: grid; grid-template-columns: 1fr 1fr 1fr 1.2fr; column-gap: 48px; margin-top: 62px; align-items: end; }
.s6 .stat.is-main { border-left: 3px solid var(--micro); padding-left: 30px; }
.s6 .mid { display: grid; grid-template-columns: 920px 1fr; column-gap: 110px; margin-top: 122px; }
.seg-row { display: grid; grid-template-columns: 220px 1fr; align-items: center; column-gap: 16px; margin-top: 20px; }
.seg-l { font-size: 24px; }
.seg { display: flex; gap: 3px; height: 62px; }
.seg > div { display: flex; align-items: center; padding: 0 16px; font-size: 22px; font-weight: 500; white-space: nowrap; overflow: hidden; }
.seg-a { background: var(--micro); color: var(--ink); border-radius: 4px 0 0 4px; }
.seg-b { background: #DCDEE7; color: var(--ink); border-radius: 0 4px 4px 0; }
.s6 .split-txt { margin-top: 32px; }
.s6 .peak-items { display: flex; gap: 56px; margin: 20px 0 26px; }

/* ═════════ 7. Гороскопы: рынок ═════════ */
.s7 .market { display: grid; grid-template-columns: 1fr 600px; column-gap: 110px; align-items: center; margin-top: 121px; }   /* по центру между заголовком и нижней полосой */
.s7 .lead-fact .num { font-size: 184px; font-weight: 600; letter-spacing: -0.045em; color: var(--ink); }
.s7 .lead-fact .txt { margin-top: 34px; max-width: 760px; font-size: 30px; }
.s7 .context .fact { padding: 34px 0; }
.s7 .context .fact + .fact { border-top: 1px solid var(--rule); }
.s7 .context .txt { margin-top: 14px; font-size: 26px; }
.s7 .fact-top { display: flex; align-items: center; gap: 24px; }
.s7 .dots { display: grid; grid-template-columns: repeat(5, 18px); gap: 7px; }
.s7 .dots i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--horo); }
.s7 .dots i.on { background: var(--horo); }
.s7 .why {
  position: absolute; left: var(--pad-x); right: var(--pad-x); bottom: var(--foot);
  border-top: 1px solid var(--rule); padding-top: 30px;
}
.s7 .why-items { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 52px; margin-top: 22px; }
.s7 .why-item { font-size: 26px; line-height: 1.36; text-wrap: pretty; }

/* ═════════ 8. Soulit ═════════
   Слева направо — от квиза до портрета: шаги, экран с ценой (он же запись прохода по сайту), готовый портрет. */
.s8 .path {
  position: absolute; left: var(--pad-x); top: 170px; bottom: var(--foot); width: 500px;
  list-style: none; display: flex; flex-direction: column; justify-content: center; row-gap: 38px;
}
.s8 .path li { position: relative; }
.s8 .path li + li::before {            /* линия пути между номерами */
  content: ""; position: absolute; left: 21.25px; top: -38px; height: 38px; width: 1.5px; background: var(--rule);
}
.s8 .path li:not(:last-child)::after {
  content: ""; position: absolute; left: 21.25px; top: 44px; bottom: 0; width: 1.5px; background: var(--rule);
}
.s8 .step {
  display: grid; grid-template-columns: 44px 1fr; column-gap: 22px; width: 100%;
  border: 0; background: none; padding: 0; text-align: left; cursor: pointer;
}
.s8 .step-name { grid-column: 2; font-size: 30px; font-weight: 600; line-height: 44px; letter-spacing: -0.01em; }
.s8 .step-txt { grid-column: 2; font-size: 24px; line-height: 1.3; color: var(--ink-2); margin-top: 2px; text-wrap: pretty; }
.s8 .step-txt b { color: var(--ink); }
.s8 .step:focus-visible { outline: 2px solid var(--ink); outline-offset: 8px; border-radius: 8px; }
.step-n {
  grid-row: 1 / span 2; position: relative; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--soft); background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 22px; font-weight: 600; line-height: 1; color: var(--ink);
  font-variant-numeric: tabular-nums;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}
.step-n.is-on, .s8 li.is-on .step-n { background: var(--horo); border-color: var(--horo); color: #fff; }
.s8 .step:hover .step-n { border-color: var(--horo); }

.phone {
  position: absolute; left: 672px; top: 232px; width: 344px; height: 720px;
  border-radius: 48px; background: #15142B; padding: 11px;
  border: 0; cursor: pointer; display: block;
}
.phone-screen { display: block; position: relative; width: 322px; height: 698px; border-radius: 37px; overflow: hidden; background: #ECE8F6; }
.phone-screen video, .phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone-screen video { opacity: 0; }
.phone.is-started video { opacity: 1; }
.phone.is-started img { opacity: 0; }
.phone .watch { bottom: 24px; height: 56px; padding: 0 22px 0 18px; font-size: 22px; gap: 12px; box-shadow: 0 6px 22px rgba(27, 25, 48, .22); }
.phone .watch i { border-left-width: 15px; border-top-width: 10px; border-bottom-width: 10px; }
.phone.is-playing .watch { opacity: 0; }
.phone .ep-bar i { background: var(--horo); }
.phone:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.phone > .step-n { position: absolute; left: -14px; top: -14px; }

/* портрет стоит в круге фона (deck.js, SHAPES) и появляется, когда круг доехал */
.portrait { position: absolute; left: 1120px; top: 254px; width: 676px; height: 676px; }
.slide.is-back .portrait { animation: a-fade 380ms ease 520ms both; }
.no-motion .slide .portrait { animation: none; }
.portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.portrait .step-n { position: absolute; left: 77px; top: 77px; }

/* ═════════ 9. Гороскопы: экономика ═════════ */
.s9 .grid2 { display: grid; grid-template-columns: 800px 1fr; column-gap: 110px; margin-top: 72px; }
.s9 .idea { margin-top: 12px; }
.s9 .unit-h { margin-top: 62px; margin-bottom: 30px; }
.s9 .kpi4 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; row-gap: 52px; margin-top: 24px; }
.s9 .peak-note { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--rule); }

/* ═════════ 10. Команда ═════════ */
.s10 .org { position: relative; width: 1696px; margin-top: 38px; }
.org-lines { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.org-link { fill: none; stroke: var(--mute); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.org-link.is-dashed { stroke-dasharray: 5 6; stroke-linecap: butt; }
.org-link.is-cont { stroke-dashoffset: 5; }             /* продолжение ствола начинается с просвета */
.org-node {
  position: absolute; width: 196px; padding: 0 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: #fff; border: 1px solid var(--rule); border-radius: 16px;
}
.org-node b { font-size: 24px; font-weight: 600; line-height: 1.14; letter-spacing: -0.005em; }
.org-node span { font-size: 19px; line-height: 1.24; color: var(--ink-2); margin-top: 5px; }
.org-node .nw { font-style: normal; white-space: nowrap; }
.org-node.is-founder { background: var(--ink); border-color: var(--ink); color: #fff; }
.org-node.is-founder span { color: var(--on-panel-2); }
.org-node.is-group { background: #E8EAF1; border-color: #E8EAF1; }
.org-node.is-planned { background: transparent; border: 1.5px dashed var(--mute); }
.org-node.is-planned b { font-weight: 500; }
.org-chip {
  display: inline-block; font-style: normal; font-size: 17px; font-weight: 500; line-height: 1; color: var(--ink-2);
  border: 1.5px solid var(--soft); border-radius: 6px; padding: 4px 7px 3px; background: var(--bg); white-space: nowrap;
}
.org-node .org-chip { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); }
.org-row { position: absolute; white-space: nowrap; }
.org-row b { font-size: 21px; font-weight: 500; line-height: 28px; }
.org-row .org-chip { margin-left: 10px; vertical-align: 2px; }
.org-row span { display: block; font-size: 19px; line-height: 24px; color: var(--ink-2); }
@keyframes a-node { from { opacity: 0; transform: translateY(-10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes a-row  { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.is-entering [data-a="node"] { animation: a-node 420ms var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms + 70ms); }
.is-entering [data-a="row"]  { animation: a-row 380ms var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms + 70ms); }
.s10 .rules { position: absolute; width: 612px; border-top: 1px solid var(--rule); padding-top: 24px; }
.s10 .rules .txt { font-size: 24px; }
.s10 .rules .h + .txt, .s10 .rules .h + .motiv { margin-top: 10px; }
.s10 .rules > div + div { margin-top: 32px; }
.motiv { list-style: none; }
.motiv li + li { margin-top: 6px; }

/* ═════════ 11. Риски ═════════ */
.s11 .risks { margin-top: 50px; }
.s11 .row {
  display: grid; grid-template-columns: 196px 440px 36px 388px 36px 1fr; column-gap: 20px;
  align-items: start;
}
.s11 .head { font-size: 22px; font-weight: 500; color: var(--ink-2); padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.s11 .head > :nth-child(1) { grid-column: 2; }
.s11 .head > :nth-child(2) { grid-column: 4; }
.s11 .head > :nth-child(3) { grid-column: 6; }
.s11 .group + .group { border-top: 1px solid var(--rule); }
.s11 .item { padding: 27px 0; }
.s11 .item + .item { border-top: 1px solid var(--rule); margin-left: 216px; grid-template-columns: 440px 36px 388px 36px 1fr; }
.s11 .item + .item .prod { display: none; }
.s11 .prod { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 600; padding-top: 4px; }
.s11 .risk { font-size: 27px; font-weight: 600; line-height: 1.26; letter-spacing: -0.005em; text-wrap: balance; }
.s11 .sig, .s11 .plan { font-size: 24px; line-height: 1.36; text-wrap: pretty; }
.s11 .sig { color: var(--ink-2); }
.s11 .arrow { font-size: 24px; color: var(--soft); padding-top: 3px; text-align: center; }

/* ═════════ 12. Запас прочности ═════════ */
.s12 .grid2 { display: grid; grid-template-columns: 690px 1fr; column-gap: 96px; margin-top: 46px; align-items: start; }
.s12 .pillar { padding: 30px 0; border-top: 1px solid var(--rule); }
.s12 .pillar:first-child { border-top: 0; padding-top: 8px; }
.s12 .pillar .txt { margin-top: 14px; }
.s12 .panel { padding: 42px 52px 44px; }
.factors { list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; row-gap: 10px; margin-top: 20px; }
.factors li { font-size: 24px; line-height: 1.3; padding-left: 22px; position: relative; }
.factors li::before { content: ""; position: absolute; left: 0; top: 13px; width: 8px; height: 8px; border-radius: 2px; background: var(--on-panel-2); }
.s12 .result { display: grid; grid-template-columns: 300px 1fr; column-gap: 24px; align-items: center; margin-top: 26px; padding-top: 24px; border-top: 1px solid #3B3A5A; }
.s12 .result .txt { margin-top: 14px; color: var(--on-panel); }
.s12 .loss { color: var(--loss); font-size: 124px; }
.s12 .act { margin-top: 24px; padding-top: 26px; border-top: 1px solid #3B3A5A; }
.s12 .act .txt { margin-top: 10px; font-size: 24px; }
.panel .chart text.on  { fill: var(--on-panel); }
.panel .chart text.on2 { fill: var(--on-panel-2); }

/* ═════════ 13. Запрос и следующий шаг ═════════ */
.s13 .title { max-width: 1180px; }
.s13 .road { position: relative; width: 1156px; height: 404px; margin-top: 36px; margin-left: 40px; }
.s13 .axis { position: absolute; left: -40px; top: 201px; height: 2px; background: var(--ink); }
.ax-tick { position: absolute; top: 194px; width: 1.5px; height: 16px; margin-left: -0.75px; background: var(--soft); }
.tr { position: absolute; top: 191px; width: 22px; height: 22px; margin-left: -11px; background: var(--ink); border-radius: 4px; }
.tr.f { background: var(--bg); border: 2px solid var(--ink); margin-left: -39px; }
.tr.f.inline { position: static; margin: 0; display: inline-block; flex: none; }
.tr-amt { position: absolute; font-size: 22px; font-weight: 600; margin-left: -12px; line-height: 1.2; }
.tr-amt.up { top: 224px; }
.tr-amt.down { top: 155px; }
.ms { position: absolute; width: 0; height: 202px; }
.ms.up { top: 0; }
.ms.down { top: 202px; }
.ms-line { position: absolute; left: -1px; width: 2px; }
.ms.up .ms-line { top: 0; bottom: 14px; }
.ms.down .ms-line { top: 14px; bottom: 0; }
.ms.horo .ms-line { background: var(--horo); }
.ms.micro .ms-line { background: var(--micro); }
.ms-body { position: absolute; left: 22px; width: 400px; }
.ms.up .ms-body { top: 0; }
.ms.down .ms-body { bottom: 0; }
.ms-when { font-size: 22px; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.ms-name { font-size: 28px; font-weight: 600; margin-top: 8px; letter-spacing: -0.01em; line-height: 1.2; }
.ms-txt { font-size: 23px; line-height: 1.34; margin-top: 6px; text-wrap: pretty; }
.s13 .founders { margin-top: 22px; margin-left: 2px; font-size: 24px; display: flex; align-items: center; gap: 14px; }
.s13 .need { position: absolute; left: var(--pad-x); width: 1196px; bottom: 58px; padding: 32px 44px 36px; }
.s13 .need ol { list-style: none; display: grid; grid-template-columns: 1.12fr 1fr 1fr; column-gap: 40px; margin-top: 18px; }
.s13 .need li { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: start; }
.s13 .need li .num { color: var(--on-panel-2); line-height: .95; }
.s13 .need li .txt { font-size: 24px; line-height: 1.34; }

/* что получает борд: стоит на рамке фона (deck.js, SHAPES) */
.s13 .stake { position: absolute; left: 1388px; top: 268px; width: 440px; }
.s13 .stake-head { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; margin-bottom: 4px; font-size: 22px; color: var(--ink-2); }
.s13 .stake-head .sw { display: inline-block; width: 12px; height: 20px; border-radius: 3px; background: rgba(27, 25, 48, .1); box-shadow: inset 0 0 0 2px var(--ink); margin-right: 10px; vertical-align: -3px; }
.s13 .stake-plan { margin-top: 10px; font-size: 22px; line-height: 1.32; color: var(--ink-2); text-wrap: pretty; }
.dash-key { display: inline-block; width: 26px; border-top: 2px dashed var(--ink); vertical-align: middle; margin-right: 10px; }

/* ═════════ просмотр серий: свет гаснет ═════════
   Кадры стоят в координатах сцены. Просмотр раскрывается из каскада на слайде 5: deck.js ставит каждый кадр
   на место его обложки, отсюда он едет на своё место; при закрытии — обратно в каскад. */
#viewer {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(14, 13, 26, 0);
  visibility: hidden;
  transition: background 420ms ease, visibility 0s linear 420ms;
}
#viewer.on { visibility: visible; background: rgb(14, 13, 26); transition: background 420ms ease; }
#viewer.on.is-closing { background: rgba(14, 13, 26, 0); transition: background 460ms ease 120ms; pointer-events: none; }
.viewer-row {
  position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px;
  transform: translate(-50%, -50%) scale(var(--scale, 1));
  display: flex; justify-content: center; align-items: flex-start; gap: 56px;
  padding-top: 77px;
}
.ep {
  position: relative; width: 520px; transform-origin: 0 0;
  transition: transform 620ms var(--glide), opacity 300ms ease;
}
.ep:nth-child(1) { z-index: 3; }                    /* в каскаде первая серия лежит сверху */
.ep:nth-child(2) { z-index: 2; }
.ep:nth-child(3) { z-index: 1; }
#viewer.on:not(.from-cards) .ep { animation: a-fade 320ms ease both; }      /* открыт не из каскада */
#viewer.no-anim, #viewer.no-anim .ep { transition: none; }
#viewer.has-active .ep:not(.is-active) { opacity: .34; }
.ep-frame {
  position: relative; width: 520px; height: 926px; border-radius: 28px; overflow: hidden;
  background: #000; cursor: pointer; border: 0; padding: 0; display: block;
}
.ep-frame video, .ep-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ep-frame video { opacity: 0; transition: opacity 200ms ease; }             /* обложка остаётся под видео: без чёрного кадра */
.ep.is-started .ep-frame video { opacity: 1; }
.ep-play {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  background: rgba(244, 245, 248, .94);
}
.ep-play::after {
  content: ""; position: absolute; left: 33px; top: 25px;
  border-left: 26px solid var(--ink); border-top: 17px solid transparent; border-bottom: 17px solid transparent;
}
/* значок, длительность и полоса хода появляются, когда кадры встали на места, и гаснут первыми при закрытии */
.ep-play, .ep-meta { opacity: 0; transition: opacity 140ms ease, transform 200ms ease; }
#viewer.on:not(.is-closing) .ep-play, #viewer.on:not(.is-closing) .ep-meta { opacity: 1; transition: opacity 320ms ease 440ms, transform 200ms ease; }
#viewer.on .ep.is-playing .ep-play { opacity: 0; transform: scale(.8); transition: opacity 200ms ease, transform 200ms ease; }
.ep-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255, 255, 255, .22); }
.ep-bar i { display: block; height: 100%; width: 0; background: var(--micro); }
.ep .ep-bar { opacity: 0; transition: opacity 200ms ease; }
.ep.is-started .ep-bar { opacity: 1; }
.ep-meta { margin-top: 16px; display: flex; justify-content: space-between; font-size: 22px; color: #B9BBD0; min-height: 28px; }
.ep-meta b { color: #F4F5F8; font-weight: 500; }
.ep-frame:focus-visible { outline: 2px solid #F4F5F8; outline-offset: 5px; }
.no-motion #viewer, .no-motion .ep, .no-motion .ep-play, .no-motion .ep-meta { transition: none !important; animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  .bg-shape, #viewer, .ep, .ep-play, .ep-meta, .kicker-item, .cas-card { transition: none !important; }
  .slide.is-leaving, .slide.is-entering, .slide.is-back { animation: none !important; }
}
