/* ============================================================
   КОНТЕНТ ДЕПО — desktop compilation prototype · 1440×900
   Binding: 01 hero (Opus A) → 02 линия (Fable) → 03 единица (Fable)
   → 04 интерлюдия (GPT-5.6 Sol) → 05 режимы (Fable) → 06 финал
   (Opus B + флэп-донор Opus A). Fable owns rhythm & seams.
   Поля: ink → paper → flow → signal → paper. Радиус 0, без пилюль.
   ============================================================ */

/* -------- fonts (официальные локальные) -------- */
@font-face { font-family: 'Bricolage Grotesque';
  src: url('../assets/fonts/bricolage-grotesque-variable.ttf') format('truetype');
  font-weight: 200 800; font-display: block; }
@font-face { font-family: 'Manrope';
  src: url('../assets/fonts/manrope-variable.ttf') format('truetype');
  font-weight: 200 800; font-display: block; }
@font-face { font-family: 'IBM Plex Mono';
  src: url('../assets/fonts/ibm-plex-mono-medium.ttf') format('truetype');
  font-weight: 500; font-display: block; }
@font-face { font-family: 'IBM Plex Mono';
  src: url('../assets/fonts/ibm-plex-mono-semibold.ttf') format('truetype');
  font-weight: 600; font-display: block; }

/* -------- tokens (общий гайдлайн всех четырёх источников) -------- */
:root {
  --ink: #101011;
  --paper: #F1EEE6;
  --signal: #FF5B3E;
  --flow: #A8C8FF;
  --status: #CBE95B;

  --paper-dim: rgba(241,238,230,.60);
  --paper-faint: rgba(241,238,230,.34);
  --paper-ghost: rgba(241,238,230,.12);
  --ink-dim: rgba(16,16,17,.62);
  --ink-faint: rgba(16,16,17,.34);
  --ink-ghost: rgba(16,16,17,.10);

  /* лепестковая ячейка (Opus A) */
  --cw: 31px;
  --ch: 46px;
  --half: 23px;
  --flaptext: #EFECE3;

  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;
  --sans: 'Manrope', -apple-system, system-ui, sans-serif;
  /* у Bricolage нет кириллицы: латиница/цифры — Bricolage, кириллица — Manrope */
  --disp: 'Bricolage Grotesque', 'Manrope', -apple-system, sans-serif;

  --cont: 1280px;
  --ease-mech: cubic-bezier(.2,.9,.15,1);
}

/* -------- reset / base -------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--signal); color: var(--ink); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

/* fluid: на 1440 остаётся ровно 1280px (min выбирает --cont), ниже — ужимается */
.cont { width: min(var(--cont), calc(100% - 48px)); margin: 0 auto; position: relative; }

.kicker { font-family: var(--mono); font-weight: 600; font-size: 11px;
  letter-spacing: .24em; text-transform: uppercase; color: var(--paper-faint); }
.kicker--signal { color: var(--signal); }

/* ============================================================
   ПЕРЕГОН — левый рельс-спина (Fable). Появляется после героя,
   вагончик едет по мере скролла, бирка показывает текущий экран.
   ============================================================ */
.rail { position: fixed; left: 34px; top: 0; bottom: 0; width: 1px;
  background: color-mix(in srgb, var(--ink) 16%, transparent); z-index: 40; pointer-events: none; }
.rail::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 8px;
  background: repeating-linear-gradient(to bottom, transparent 0 70px, color-mix(in srgb, var(--ink) 30%, transparent) 70px 71px); }
.train { position: fixed; left: 28px; top: 0; width: 13px; height: 22px; z-index: 41;
  background: var(--signal); border: 1.5px solid var(--ink); pointer-events: none; will-change: transform; }
.train::after { content: ''; position: absolute; left: 2px; right: 2px; top: 3px; height: 5px; background: var(--paper); }
.sttag { position: fixed; left: 12px; bottom: 22px; z-index: 41;
  font: 600 9px/1 var(--mono); letter-spacing: .22em; color: color-mix(in srgb, var(--ink) 55%, transparent);
  writing-mode: vertical-rl; transform: rotate(180deg); pointer-events: none; }
/* над героем (ink) перегон скрыт — спина работает после первого экрана */
.rail, .train, .sttag { opacity: 0; transition: opacity .45s linear; }
body.railon .rail, body.railon .train, body.railon .sttag { opacity: 1; }

/* ============================================================
   NAV — Opus A (в составе героя, скроллится вместе с ним)
   + сдержанный глобальный тумблер звука (Fable)
   ============================================================ */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid var(--paper-ghost); }
.nav__inner { display: flex; align-items: center; gap: 32px; height: 64px; max-width: 1360px; margin: 0 auto; padding: 0 24px; }
.brand-mark { height: 19px; width: auto; }
.nav__brand { padding: 6px 4px; }   /* охранная зона логотипа */
.nav__links { display: flex; gap: 26px; margin-left: 8px; }
.nav__links a { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .04em;
  color: var(--paper-dim); padding: 4px 0; position: relative; transition: color .2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: var(--signal); transition: width .25s; }
.nav__links a:hover { color: var(--paper); }
.nav__links a:hover::after { width: 100%; }
.nav__meta { margin-left: auto; display: flex; align-items: center; gap: 20px; font-family: var(--mono); font-size: 12px; }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--status); letter-spacing: .14em; font-weight: 600; }
.live__dot { width: 7px; height: 7px; background: var(--status); border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(203,233,91,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(203,233,91,.5); } 70% { box-shadow: 0 0 0 7px rgba(203,233,91,0); } 100% { box-shadow: 0 0 0 0 rgba(203,233,91,0); } }
.clock { color: var(--paper-dim); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.sndbtn { display: flex; align-items: center; gap: 8px; background: none; border: none;
  font: 600 11px/1 var(--mono); letter-spacing: .12em; color: var(--paper-dim); padding: 6px 0; transition: color .2s; }
.sndbtn:hover { color: var(--paper); }
.sndbtn .dot { width: 8px; height: 8px; background: var(--paper-faint); }
.sndbtn.on { color: var(--paper); }
.sndbtn.on .dot { background: var(--status); }

/* ============================================================
   КНОПОЧНАЯ СИСТЕМА — Opus B (принята Основателем):
   квадратная коралловая плоскость, чёрная офсетная плита,
   моно-подпись и стрелка. Вторичные действия — голый моно-текст.
   ============================================================ */
.btn { display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--mono); font-weight: 600; font-size: 13px;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 15px 22px; border: 1.5px solid var(--ink); border-radius: 0;
  background: transparent; color: var(--ink); cursor: pointer;
  transition: transform .35s var(--ease-mech), background .25s, color .25s, box-shadow .25s; }
.btn__arrow { transition: transform .35s var(--ease-mech); }
.btn:hover .btn__arrow { transform: translateX(5px); }
.btn--signal { background: var(--signal); border-color: var(--signal); color: var(--paper);
  box-shadow: 6px 6px 0 var(--ink); }
.btn--signal:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--ink); }
.btn--signal:active { transform: translate(3px,3px); box-shadow: 3px 3px 0 var(--ink); }
.btn--lg { font-size: 15px; padding: 20px 30px; }
/* на чернильном поле героя плита — чистый чёрный, чтобы читалась на ink */
.btn--onink { box-shadow: 6px 6px 0 #000; }
.btn--onink:hover { box-shadow: 8px 8px 0 #000; }
.btn--onink:active { box-shadow: 3px 3px 0 #000; }

/* безопасное выключенное состояние CTA, пока контакт не задан в site.config.js */
.btn--disabled { background: color-mix(in srgb, var(--ink) 14%, var(--paper));
  border-color: color-mix(in srgb, var(--ink) 30%, transparent); color: var(--ink-dim);
  box-shadow: none; cursor: not-allowed; }
.btn--disabled:hover { transform: none; box-shadow: none; }
.btn--disabled:hover .btn__arrow { transform: none; }
.btn--disabled:active { transform: none; box-shadow: none; }

.link-tick { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--paper-dim); border-bottom: 1px solid var(--paper-ghost); padding-bottom: 3px; transition: color .2s, border-color .2s; }
.link-tick:hover { color: var(--paper); border-color: var(--signal); }
.link-tick span { color: var(--signal); }

/* ============================================================
   01 · ГЕРОЙ — Opus A: тёмный первый экран с живым табло.
   Ховер строк/ячеек не меняет геометрию (фикс дрожания:
   без параллакса корпуса, подсветка строки — только краска).
   ============================================================ */
.hero { position: relative; padding-top: 64px; min-height: 100vh; display: flex; align-items: center;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(168,200,255,.06), transparent 55%),
    radial-gradient(90% 70% at 12% 100%, rgba(255,91,62,.06), transparent 60%),
    var(--ink);
  overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: .03; mix-blend-mode: screen; }
.hero__inner { width: 100%; max-width: 1360px; margin: 0 auto; position: relative; z-index: 2; padding: 40px 24px 48px; }

.hero__head { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: end; margin-bottom: 44px; }
.hero__lead .kicker { margin-bottom: 22px; }
.hero__title { font-family: var(--disp); font-weight: 800; font-size: clamp(44px,4.9vw,74px);
  line-height: .97; letter-spacing: -.022em; color: var(--paper); }
.hero__title .line { display: block; }
.hero__title .hl { color: var(--paper); position: relative; white-space: nowrap; }
.hero__title .hl::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: .08em; height: .30em;
  background: var(--signal); z-index: -1; transform: scaleX(0); transform-origin: left;
  animation: wipe .7s .5s cubic-bezier(.5,0,.1,1) forwards; }
@keyframes wipe { to { transform: scaleX(1); } }

.hero__aside { padding-bottom: 6px; }
.hero__sub { font-size: 17px; line-height: 1.55; color: var(--paper-dim); max-width: 38ch; margin-bottom: 28px; }
.cta-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* -------- ТАБЛО (Opus A, объект-подпись) -------- */
.board { position: relative; background: linear-gradient(180deg,#161618,#0e0e10);
  border: 1px solid rgba(241,238,230,.09); border-radius: 2px;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(241,238,230,.05); }
.board__bar { display: flex; align-items: center; gap: 18px; padding: 14px 20px; border-bottom: 1px solid rgba(241,238,230,.08);
  background: linear-gradient(#1b1b1e,#151517); }
.board__title { font-family: var(--mono); font-weight: 600; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--paper); }
.board__id { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .16em; color: var(--paper-faint); }
.board__flow { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-weight: 600;
  font-size: 11px; letter-spacing: .2em; color: var(--status); }
.board__flow-dot { width: 6px; height: 6px; background: var(--status); border-radius: 50%; animation: pulse 2.4s infinite; }

.board__frame { position: relative; padding: 22px 20px 20px; overflow: hidden; }
.board__grid { display: flex; flex-direction: column; gap: 8px; width: max-content; margin: 0 auto; position: relative; z-index: 2; }

.board__header { display: flex; gap: 20px; padding: 0 0 4px 14px; margin-bottom: 2px; }
.hdr-label { font-family: var(--mono); font-weight: 600; font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--paper-faint); flex: 0 0 auto; padding-left: 2px; }

.dep-row { display: flex; gap: 20px; align-items: center; position: relative; padding-left: 14px; }
.dep-row::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px; background: transparent; transition: background .25s; }
/* фикс дрожания: подсветка — фон + маркер, без filter/transform */
.dep-row::after { content: ""; position: absolute; inset: -2px -8px; background: transparent; transition: background .25s; z-index: -1; }
.dep-row.row--hot::before { background: var(--signal); }
.dep-row.row--hot::after { background: rgba(241,238,230,.045); }

.cell-group { display: inline-flex; gap: 3px; }
.cell-group--status { color: var(--paper-dim); }
.cell-group--reis { color: var(--flow); }

/* -------- лепестковая ячейка (Opus A, общая для героя и финала) -------- */
.flap { position: relative; width: var(--cw); height: var(--ch); flex: 0 0 auto;
  border-radius: 1.5px; perspective: 210px; color: inherit; overflow: hidden;
  background: #050506; box-shadow: inset 0 0 0 1px rgba(0,0,0,.6); }
.flap__card, .flap__flip { position: absolute; left: 0; width: 100%; height: 50%; overflow: hidden; }
.flap__card--top, .flap__flip--top { top: 0; }
.flap__card--bottom, .flap__flip--bottom { bottom: 0; }
.flap__card--top { background: linear-gradient(#1c1c1f,#161619); }
.flap__card--bottom { background: linear-gradient(#141417,#0d0d0f); }
.flap span { position: absolute; left: 0; width: 100%; height: var(--ch); line-height: var(--ch); text-align: center;
  font-family: var(--mono); font-weight: 600; font-size: 21px; color: inherit; top: 0; }
.flap__card--bottom span, .flap__flip--bottom span { top: calc(var(--half)*-1); }
.flap__flip--top { z-index: 5; transform-origin: 50% 100%; backface-visibility: hidden;
  background: linear-gradient(#1e1e22,#171719); box-shadow: 0 1px 0 rgba(0,0,0,.5); }
.flap__flip--bottom { z-index: 5; transform-origin: 50% 0%; backface-visibility: hidden; transform: rotateX(90deg);
  background: linear-gradient(#131316,#0c0c0e); }
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; transform: translateY(-.5px);
  background: rgba(0,0,0,.7); z-index: 8; pointer-events: none; }
.flap::before { content: ""; position: absolute; inset: 0; z-index: 7; pointer-events: none;
  background: linear-gradient(180deg,rgba(255,255,255,.05),transparent 18%,transparent 82%,rgba(0,0,0,.28)); }

/* коралловая линия-курсор внутри табло (краска, не геометрия) */
.dispatch-head { position: absolute; left: 0; right: 0; height: 1px; top: -10px; z-index: 1; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg,transparent,rgba(255,91,62,.55),transparent); transition: opacity .2s; }
.board:hover .dispatch-head { opacity: 1; }

.board__foot { padding: 0 20px 16px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em;
  color: var(--paper-faint); text-transform: uppercase; }

/* ============================================================
   Общий каркас светлых секций (Fable)
   ============================================================ */
.sect { padding: 96px 0 104px; background: var(--paper); color: var(--ink); }
.shead { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 44px; }
h2.sh2 { font: 800 42px/1.02 var(--sans); text-transform: uppercase; letter-spacing: -.008em; }
.sk { font: 600 11px/1 var(--mono); letter-spacing: .18em; color: color-mix(in srgb, var(--ink) 58%, transparent); }

html.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.6,.2,1); }
html.js .rv.on { opacity: 1; transform: none; }

/* ============================================================
   02 · ОДНА ЛИНИЯ — Fable (принято как есть) + правки по сборке:
   моно-марки платформ вместо буквенных кодов, состав цветных
   единиц едет по депо и расходится по веткам.
   ============================================================ */
.liniya { border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.scheme { display: block; width: 100%; height: auto; }
.scheme .track { stroke: var(--ink); stroke-width: 4; fill: none; stroke-linecap: square; }
.scheme .branch { stroke: var(--ink); stroke-width: 3; fill: none; stroke-linecap: square; }
html.js .scheme .drawline { stroke-dasharray: 1700; stroke-dashoffset: 1700; transition: stroke-dashoffset 1.1s cubic-bezier(.3,0,.2,1); }
html.js .scheme.drawn .drawline { stroke-dashoffset: 0; }
.scheme .drawline.b { transition-delay: .55s; }
.scheme .shed { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.scheme .node { fill: var(--paper); stroke: var(--ink); stroke-width: 3; transition: fill .2s linear; }
.scheme .plate { fill: var(--paper); stroke: var(--ink); stroke-width: 1.6; transition: stroke-width .2s linear; }
.scheme .pt { font: 600 12.5px var(--mono); letter-spacing: .12em; fill: var(--ink); }
.scheme .pi { font: 600 9.5px var(--mono); letter-spacing: .16em; fill: color-mix(in srgb, var(--ink) 45%, transparent); }
.scheme .pb { font: 500 12.5px var(--sans); fill: color-mix(in srgb, var(--ink) 78%, transparent); }
.scheme .ptick { fill: var(--ink); }
.scheme .conn { stroke: color-mix(in srgb, var(--ink) 45%, transparent); stroke-width: 1.4; stroke-dasharray: 3 4; }
.scheme .stn.on .node { fill: var(--signal); }
.scheme .stn.on .pt { fill: var(--signal); }
.scheme .stn.on .plate { stroke-width: 2.5; }

/* монохромные марки платформ (локальный вектор; краска — ink) */
.scheme .pmark { stroke: var(--ink); fill: none; stroke-width: 2.2; transition: stroke .2s linear; }
.scheme .pmark .pfill { fill: var(--ink); stroke: none; transition: fill .2s linear; }
.scheme .pmark .ptxt { font: 800 17px var(--disp); letter-spacing: -.02em; fill: var(--ink); stroke: none; transition: fill .2s linear; }
.scheme .platg.on .pmark { stroke: var(--signal); }
.scheme .platg.on .pmark .pfill { fill: var(--signal); }
.scheme .platg.on .pmark .ptxt { fill: var(--signal); }

/* единицы состава: цвет по площадке (только грузы цветные, марки — моно) */
.scheme .unitg rect.body { stroke: var(--ink); stroke-width: 1.6; }
.scheme .unitg rect.win { fill: var(--paper); }
.scheme .unitg.u-reel rect.body { fill: var(--signal); }   /* Reels — оранжевый */
.scheme .unitg.u-tikt rect.body { fill: var(--ink); }      /* TikTok — чёрный   */
.scheme .unitg.u-shrt rect.body { fill: #E52D20; }         /* Shorts — красный  */
.scheme .unitg.u-vkcl rect.body { fill: #2787F5; }         /* VK Клипы — синий  */
.scheme .unitg { will-change: transform; }
html.js .scheme .unitg { transition: transform .8s cubic-bezier(.5,0,.15,1), opacity .3s linear; }
html.js .scheme .unitg.jump { transition: opacity .3s linear; }
.schemecap { margin-top: 26px; font: 600 10.5px/1.6 var(--mono); letter-spacing: .12em;
  color: color-mix(in srgb, var(--ink) 55%, transparent); display: flex; justify-content: space-between; }
.scrollhint { display: none; color: var(--signal); }

/* ============================================================
   03 · АНАТОМИЯ ЕДИНИЦЫ — Fable (не рестайлить)
   ============================================================ */
.unitsec { background: var(--flow); border-top: 2px solid var(--ink); position: relative; overflow: hidden;
  padding-bottom: 72px; /* шов сборки: коралловый тикер ближе к экрану ЕДИНИЦА */ }
.unitsec .ghost { position: absolute; right: -30px; top: 30px; font: 800 360px/1 var(--disp);
  letter-spacing: -.04em; color: color-mix(in srgb, var(--ink) 7%, transparent); pointer-events: none; user-select: none; }
.unitwrap { display: flex; gap: 72px; align-items: flex-start; position: relative; }
.passport { flex: none; }
.passport svg { display: block; max-width: 100%; height: auto; }
.pp-bg { fill: var(--paper); }
.pp-frame { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.pp-safe { fill: none; stroke: color-mix(in srgb, var(--ink) 35%, transparent); stroke-width: 1.2; stroke-dasharray: 4 4; }
.pp-cover { fill: color-mix(in srgb, var(--paper) 72%, var(--ink)); stroke: var(--ink); stroke-width: 1.6; }
.pp-dim { stroke: var(--ink); stroke-width: 1.2; }
.pp-dimt { font: 600 11px var(--mono); letter-spacing: .1em; fill: var(--ink); }
.pp-zone { fill: transparent; stroke: color-mix(in srgb, var(--ink) 55%, transparent); stroke-width: 1.2; stroke-dasharray: 4 4;
  pointer-events: all; transition: fill .18s linear; }
.zone.hot .pp-zone { fill: color-mix(in srgb, var(--signal) 82%, transparent); stroke: var(--ink); }
.pp-zl { font: 600 10px var(--mono); letter-spacing: .14em; fill: color-mix(in srgb, var(--ink) 60%, transparent); pointer-events: none; }
.pp-hatch { stroke: color-mix(in srgb, var(--ink) 40%, transparent); stroke-width: 1; }

.anat { max-width: 560px; }
.anat .arow { display: flex; gap: 22px; padding: 20px 0; border-top: 1.5px solid var(--ink); cursor: default; }
.anat .arow:last-of-type { border-bottom: 1.5px solid var(--ink); }
.anat .idx { flex: none; width: 46px; font: 700 15px/1.3 var(--disp); }
.anat .at { font: 800 16px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .02em; }
.anat .ab { font-size: 15px; color: color-mix(in srgb, var(--ink) 80%, transparent); margin-top: 3px; }
.anat .arow.hot, .anat .arow:hover { background: color-mix(in srgb, var(--paper) 55%, transparent); }
.anat .arow.hot .idx, .anat .arow:hover .idx { color: var(--signal); }
.formats { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1.5px solid var(--ink); padding: 10px 14px; font: 600 11px/1 var(--mono);
  letter-spacing: .12em; background: transparent; transition: background .12s, color .12s; }
.chip:hover { background: var(--ink); color: var(--flow); }
.unitnote { margin-top: 30px; font: 600 11px/1.6 var(--mono); letter-spacing: .1em;
  color: color-mix(in srgb, var(--ink) 68%, transparent); max-width: 560px; }

/* -------- коралловый бегущий тикер (Fable, низ экрана 03) -------- */
.ticker { background: var(--signal); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  overflow: hidden; height: 52px; display: flex; align-items: center; }
.tk { display: flex; white-space: nowrap; will-change: transform; animation: tick 34s linear infinite; }
.ticker.paused .tk { animation-play-state: paused; }
.tk span { font: 600 12.5px/1 var(--mono); letter-spacing: .2em; color: var(--ink); padding-right: 8px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ============================================================
   04 · ЭМОЦИОНАЛЬНАЯ ИНТЕРЛЮДИЯ — GPT-5.6 Sol (принята):
   коралловый полный экран, чернильный производственный тикер
   сверху, чёрный эквалайзер справа, абзац справа внизу.
   ============================================================ */
.manifesto { background: var(--signal); color: var(--ink); position: relative; overflow: hidden; }
.marquee { height: 52px; background: var(--ink); color: var(--paper); display: flex; align-items: center;
  overflow: hidden; white-space: nowrap; font: 600 10px var(--mono); letter-spacing: .08em; }
.marquee span { padding-right: 28px; animation: marquee 23s linear infinite; }
.manifesto.paused .marquee span { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.manifesto__inside { min-height: calc(100vh - 52px); padding: 60px 32px; position: relative;
  display: flex; flex-direction: column; }
.section-tag { font: 600 9px var(--mono); letter-spacing: .1em; }
.manifesto h2 { font-family: var(--disp); font-weight: 750; font-size: clamp(76px,9.6vw,146px);
  line-height: .84; letter-spacing: -.055em; margin: auto 0 34px; max-width: 1100px; }
.mlead { font: 550 20px/1.45 var(--sans); max-width: 570px; margin: 0 0 0 auto; }
.pulse-line { position: absolute; right: 32px; top: 58px; width: 39%; height: 140px;
  display: flex; align-items: flex-end; gap: 7px; }
.pulse-line i { flex: 1; background: var(--ink); height: 10%;
  transform-origin: bottom; transform: scaleY(calc(1 + var(--pump, 0) * var(--k, 0)));
  animation: wave 1.8s steps(5,end) infinite; }
@keyframes wave { 0%,100% { height: 10%; } 50% { height: 100%; } }
.pulse-line i:nth-child(2n) { animation-delay: -.4s; }
.pulse-line i:nth-child(3n) { animation-delay: -1.1s; }
.pulse-line i:nth-child(1) { --k: .16; } .pulse-line i:nth-child(2) { --k: .34; }
.pulse-line i:nth-child(3) { --k: .22; } .pulse-line i:nth-child(4) { --k: .42; }
.pulse-line i:nth-child(5) { --k: .12; } .pulse-line i:nth-child(6) { --k: .38; }
.pulse-line i:nth-child(7) { --k: .20; } .pulse-line i:nth-child(8) { --k: .30; }
.pulse-line i:nth-child(9) { --k: .26; }

/* Широкий, но невысокий viewport / увеличенный zoom браузера:
   сохраняем три исходные строки, но резервируем воздух под эквалайзер. */
@media (min-width: 641px) and (max-height: 900px) {
  .manifesto h2 { font-size: clamp(72px, 8vw, 132px); line-height: .86; max-width: 840px; }
  .pulse-line { height: 104px; }
}

/* ============================================================
   05 · ТРИ РЕЖИМА ДЕПО — Fable (принято как есть)
   ============================================================ */
.plates { display: flex; gap: 20px; }
.plate3 { flex: 1; border: 2px solid var(--ink); min-height: 264px; padding: 22px 24px;
  display: flex; flex-direction: column; background: transparent;
  transition: background .16s linear, color .16s linear; position: relative; }
.plate3 .pidx { position: absolute; top: 18px; right: 20px; font: 700 15px/1 var(--disp);
  color: color-mix(in srgb, var(--ink) 45%, transparent); }
.plate3 .pk { font: 600 10px/1 var(--mono); letter-spacing: .18em; color: color-mix(in srgb, var(--ink) 55%, transparent); }
.plate3 h3 { font: 800 23px/1.1 var(--sans); text-transform: uppercase; margin: 14px 0 10px; }
.plate3 p { font-size: 15.5px; color: color-mix(in srgb, var(--ink) 82%, transparent); }
.plate3 .pfoot { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; }
.schip { font: 600 10.5px/1 var(--mono); letter-spacing: .14em; padding: 7px 10px; border: 1.5px solid var(--ink); }
.schip.free { background: var(--ink); color: var(--status); border-color: var(--ink); }
.schip.main { background: var(--ink); color: var(--paper); }
.schip.brief { background: var(--ink); color: var(--flow); }
.plate3 .go { font: 700 16px/1 var(--sans); text-decoration: none; }
.plate3:hover { background: var(--ink); color: var(--paper); }
.plate3:hover p { color: color-mix(in srgb, var(--paper) 82%, transparent); }
.plate3:hover .pk { color: color-mix(in srgb, var(--paper) 55%, transparent); }
.plate3:hover .pidx { color: var(--signal); }
.plate3:hover .go { color: var(--signal); }
.plate3:hover .schip { border-color: var(--paper); }
.rezhnote { margin-top: 22px; font: 600 10.5px/1.6 var(--mono); letter-spacing: .12em;
  color: color-mix(in srgb, var(--ink) 52%, transparent); }

/* ============================================================
   06 · ФИНАЛ — Opus B (светлый центрированный) + крупный
   флэп «ДЕПО ПРИНИМАЕТ ЗАЯВКИ» на механике Opus A вместо
   маленькой строки «Следующий рейс».
   ============================================================ */
.contact { padding: 140px 56px 150px; border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  background: var(--paper); color: var(--ink); text-align: center; }
.contact__inner { max-width: 980px; margin-inline: auto; }
.finflap { --cw: 34px; --ch: 50px; --half: 25px;
  display: flex; gap: 3px; justify-content: center; width: fit-content; margin: 0 auto 44px;
  color: var(--flaptext); }
.finflap .flap span { font-size: 23px; }
.contact__h2 { font-family: var(--disp); font-weight: 800;
  font-size: clamp(54px,7vw,100px); line-height: .9; letter-spacing: -.04em; margin: 0 0 26px; }
.contact__sub { font-size: 19px; line-height: 1.5; color: var(--ink-dim); max-width: 46ch; margin: 0 auto 44px; }
.contact__cta { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.contact__meta { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }

/* ============================================================
   FOOTER — Opus B (одна чернильная полоса)
   ============================================================ */
.foot { background: var(--ink); color: var(--paper); padding: 54px 56px; }
.foot__inner { max-width: 1328px; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.foot__brand { height: 26px; width: auto; }
.foot__meta { display: flex; flex-direction: column; gap: 5px; text-align: right; }
.foot__meta span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(241,238,230,.5); }
.foot__meta a { border-bottom: 1px solid rgba(241,238,230,.25); padding-bottom: 1px;
  transition: color .2s, border-color .2s; }
.foot__meta a:hover { color: var(--paper); border-color: var(--signal); }

/* ============================================================
   REDUCED MOTION — чистая деградация всех систем
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  html.js .rv { opacity: 1; transform: none; }
  .hero__title .hl::after { transform: scaleX(1); }
  html.js .scheme .drawline { stroke-dashoffset: 0; }
  .rail, .train, .sttag { transition: none; }
  /* эквалайзер — статичный ступенчатый силуэт вместо волны */
  .pulse-line i:nth-child(1) { height: 34%; } .pulse-line i:nth-child(2) { height: 72%; }
  .pulse-line i:nth-child(3) { height: 22%; } .pulse-line i:nth-child(4) { height: 88%; }
  .pulse-line i:nth-child(5) { height: 46%; } .pulse-line i:nth-child(6) { height: 64%; }
  .pulse-line i:nth-child(7) { height: 30%; } .pulse-line i:nth-child(8) { height: 78%; }
  .pulse-line i:nth-child(9) { height: 52%; }
  .pulse-line i { transform: none; }
}

/* ============================================================
   АДАПТИВ — 1440 не трогаем (все правила ниже ≤1379px).
   Плотность упрощаем только где не влезает, без редизайна:
   табло и финальный флэп ужимает js (zoom по ширине контейнера),
   схема линии на узких экранах листается вбок внутри секции.
   ============================================================ */

/* перегон-рельс живёт только там, где есть свободные поля слева */
@media (max-width: 1379px) {
  .rail, .train, .sttag { display: none; }
}

/* ---- ≤1120: анатомия единицы в колонку (паспорт + строки) ---- */
@media (max-width: 1120px) {
  .unitwrap { flex-direction: column; gap: 48px; }
  .unitsec .ghost { font-size: 240px; }
  .anat { max-width: 640px; }
}

/* ---- ≤900 (планшет-портрет): герой в колонку, режимы стопкой ---- */
@media (max-width: 900px) {
  .hero__head { grid-template-columns: 1fr; gap: 26px; align-items: start; margin-bottom: 36px; }
  .hero__aside { padding-bottom: 0; }
  .hero__sub { max-width: 52ch; }
  .shead { flex-wrap: wrap; gap: 8px 16px; margin-bottom: 34px; }
  h2.sh2 { font-size: 34px; }
  .sect { padding: 72px 0 80px; }
  .plates { flex-direction: column; }
  .plate3 { min-height: 0; }
  .contact { padding: 110px 32px 120px; }
}

/* ---- ≤820: схема линии — горизонтальная прокрутка внутри секции ---- */
@media (max-width: 820px) {
  .schemewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .schemewrap .scheme { min-width: 720px; }
  .schemecap { flex-direction: column; gap: 6px; }
  .scrollhint { display: block; }
}

/* ---- ≤640 (мобильный): упрощение плотности ---- */
@media (max-width: 640px) {
  .cont { width: calc(100% - 36px); }
  .nav__inner { gap: 16px; padding: 0 18px; height: 58px; }
  .nav__links, .live { display: none; }
  .brand-mark { height: 16px; }
  .hero { padding-top: 58px; }
  .hero__inner { padding: 28px 18px 40px; }
  .hero__title { font-size: clamp(30px, 9vw, 40px); }
  .hero__lead .kicker { margin-bottom: 14px; }
  .hero__sub { font-size: 15.5px; margin-bottom: 22px; }
  .board__bar { gap: 12px; padding: 12px 14px; }
  .board__id { display: none; }
  .board__frame { padding: 16px 14px 14px; }
  /* мобильное табло: рейс + статус + отправка (формат/направление скрыты) */
  .board__grid [data-col="format"], .board__grid [data-col="dir"] { display: none; }
  .board__foot { padding: 0 14px 12px; font-size: 9.5px; }
  h2.sh2 { font-size: 27px; }
  .sect { padding: 56px 0 64px; }
  .unitsec .ghost { font-size: 130px; right: -14px; top: 16px; }
  .unitwrap { gap: 40px; }
  .anat .arow { gap: 14px; padding: 16px 0; }
  .anat .idx { width: 32px; font-size: 13px; }
  .ticker { height: 44px; }
  .tk span { font-size: 11px; }
  .manifesto__inside { padding: 44px 20px; }
  .pulse-line { position: static; width: 100%; height: 84px; margin-top: 24px; }
  .manifesto h2 { font-size: clamp(36px, 10.5vw, 64px); margin: 40px 0 26px; }
  .mlead { font-size: 17px; }
  .contact { padding: 84px 18px 96px; }
  .contact__h2 { font-size: clamp(38px, 12vw, 54px); }
  .contact__sub { font-size: 16px; margin-bottom: 36px; }
  .finflap { margin-bottom: 34px; }
  .btn--lg { font-size: 13px; padding: 16px 22px; }
  .foot { padding: 40px 20px; }
  .foot__inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .foot__meta { text-align: left; }
}

/* ============================================================
   /privacy.html — шаблон политики (та же система, без редизайна)
   ============================================================ */
.legal { background: var(--paper); color: var(--ink); min-height: 100vh; }
.legal .pnav { background: var(--ink); border-bottom: 1px solid var(--paper-ghost); }
.legal .pnav__inner { max-width: 1360px; margin: 0 auto; padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.legal .pnav .back { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--paper-dim); transition: color .2s; }
.legal .pnav .back:hover { color: var(--paper); }
.legal-body { max-width: 820px; margin: 0 auto; padding: 72px 24px 110px; }
.legal-body .kicker { color: color-mix(in srgb, var(--ink) 55%, transparent); margin-bottom: 18px; }
.legal-body h1 { font-family: var(--disp); font-weight: 800; font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.02; letter-spacing: -.02em; margin-bottom: 30px; }
.legal-body h2 { font: 800 19px/1.25 var(--sans); text-transform: uppercase; letter-spacing: .02em;
  margin: 44px 0 14px; padding-top: 22px; border-top: 1.5px solid var(--ink); }
.legal-body p, .legal-body li { font-size: 15.5px; line-height: 1.65; color: color-mix(in srgb, var(--ink) 86%, transparent); }
.legal-body p + p { margin-top: 10px; }
.legal-body ul { margin: 10px 0 0 20px; }
.legal-body li + li { margin-top: 6px; }
/* build-time placeholder: невозможно принять за готовый текст */
.legal-body .ph { font: 600 .86em/1.4 var(--mono); letter-spacing: .02em; color: var(--ink);
  background: color-mix(in srgb, var(--signal) 20%, transparent);
  border: 1.5px dashed var(--signal); padding: 1px 7px; white-space: nowrap; }
.legal-note { border: 2px solid var(--signal); background: color-mix(in srgb, var(--signal) 9%, transparent);
  padding: 18px 20px; margin: 0 0 38px; }
.legal-note p { font: 600 12px/1.7 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); }
.legal-meta { margin-top: 48px; font: 600 11px/1.7 var(--mono); letter-spacing: .1em;
  text-transform: uppercase; color: color-mix(in srgb, var(--ink) 50%, transparent); }
@media (max-width: 640px) {
  .legal .pnav__inner { padding: 0 18px; height: 58px; }
  .legal-body { padding: 52px 18px 80px; }
  .legal-body .ph { white-space: normal; }
}
