/* ООО «Цифровой реинжиниринг» — каркас сайта.
   Мир: приборная телеметрия. Нефтяной тёмный фон, фосфорные линии каналов,
   один сигнальный цвет (сбой, действие). Углы острые, как у шкалы прибора.
   Шрифты локальные: Geologica (оси wght, SHRP, CRSV) и Martian Mono для данных. */

@font-face { font-family: "Geologica"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/geologica-cyrillic-full-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geologica"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/geologica-latin-full-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Martian Mono"; font-style: normal; font-display: swap; font-weight: 100 800; font-stretch: 87.5%;
  src: url("../fonts/martian-mono-cyrillic-standard-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Martian Mono"; font-style: normal; font-display: swap; font-weight: 100 800; font-stretch: 87.5%;
  src: url("../fonts/martian-mono-latin-standard-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #081215;        /* нефтяной фон поля */
  --bg-2: #0c1a1f;      /* приборная панель */
  --bg-3: #112328;
  --line: #1f343a;      /* шкала, разметка */
  --line-2: #2c4a51;
  --fg: #dce7e6;        /* фосфор */
  --fg-2: #93a7a8;
  --trace: #9fd8d0;     /* линия канала */
  --signal: #ff5b2e;    /* сбой и действие — единственный акцент */
  --signal-ink: #1c0800;
  --glow: #2fe3c8;      /* свет, не цвет: только в rgba 12–20 % (арт-дирекция §2) */
  --r: 2px;
  --wrap: 1320px;
  --gut: clamp(16px, 4vw, 48px);
  --sans: "Geologica", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 380 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
/* overflow-x: clip у body убран (плавность): предок липких пинов с overflow ломает в iOS Safari их сдвиг на видеокарте —
   пин дёргается и отстаёт от пальца при инерции. Источники горизонтального выхода исправлены на месте (проход 4–5):
   scrollWidth = окну на 390/1440 по всей прокрутке без этой защиты */
::selection { background: var(--signal); color: var(--signal-ink); }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
img, svg, canvas { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
html { scrollbar-color: var(--line-2) var(--bg); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.mono { font-family: var(--mono); font-stretch: 87.5%; font-size: 12px; line-height: 1.5; letter-spacing: 0; }
.muted { color: var(--fg-2); }

h1, h2, h3 { font-family: var(--sans); margin: 0; text-wrap: balance; }
h1 { font-weight: 620; font-size: clamp(38px, 5.2vw, 80px); line-height: 1.02; letter-spacing: -0.035em;
  font-variation-settings: "SHRP" 60; }
h2 { font-weight: 560; font-size: clamp(30px, 3.6vw, 54px); line-height: 1.06; letter-spacing: -0.03em;
  font-variation-settings: "SHRP" 40; }
h3 { font-weight: 560; font-size: 21px; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; max-width: 62ch; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  padding: 0 22px; border-radius: var(--r); border: 1px solid var(--line-2); background: transparent;
  color: var(--fg); font: 520 16px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .1s; }
.btn:hover { border-color: var(--fg-2); background: rgba(159, 216, 208, .06); }
.btn:active { transform: translateY(1px); }
.btn--signal { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); font-weight: 620; }
.btn--signal:hover { background: #ff7149; border-color: #ff7149; }

/* шапка */
.top { position: fixed; inset: 0 0 auto 0; z-index: 30; height: 64px;
  background: linear-gradient(to bottom, rgba(8, 18, 21, .92), rgba(8, 18, 21, .0));
  transition: background .3s; }
.top.is-solid { background: rgba(8, 18, 21, .94); border-bottom: 1px solid var(--line); }
.top .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.logo__mark { width: 30px; height: 30px; border: 1.5px solid var(--fg); display: grid; place-items: center;
  font: 700 12px/1 var(--sans); letter-spacing: .02em; position: relative; }
.logo__mark::after { content: ""; position: absolute; right: -5px; top: -5px; width: 7px; height: 7px; background: var(--signal); }
/* сигнал: квадрат логотипа становится фосфорным, когда нить прошла журнал инцидентов */
.logo__mark::after { transition: background .4s, box-shadow .4s; }
html.signal-fixed .logo__mark::after { background: var(--trace); box-shadow: 0 0 0 4px rgba(47, 227, 200, .16); }
.logo__name { font-weight: 560; font-size: 15px; line-height: 1.1; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--fg-2);
  text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--fg); }
.term-btn { min-height: 44px; min-width: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r);
  background: transparent; color: var(--trace); font: 500 13px/1 var(--mono); cursor: pointer; }
.term-btn:hover { border-color: var(--trace); }
.top .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* первый экран */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden;
  background: var(--bg); }
/* поле живёт в «экране»: при прокрутке он сжимается в окно-дашборд (один такой эффект на сайт) */
.screen { position: absolute; inset: 0; overflow: hidden; background: var(--bg); transform-origin: 50% 42%;
  border: 1px solid transparent; }
.screen.field--fallback { background: var(--bg) url("../img/field-static.webp") center / cover no-repeat; }
/* у страницы-воронки свой застывший кадр не рисуем фото главной: контур воронки линиями, без запроса картинки */
.screen.field--fallback[data-field-mode="funnel"] { background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%232fe3c8' stroke-opacity='.18' stroke-width='1.2'%3E%3Cpath d='M0 120 C600 160 1000 330 1600 380'/%3E%3Cpath d='M0 270 C600 290 1000 400 1600 420'/%3E%3Cpath d='M0 450 C600 450 1000 450 1600 450'/%3E%3Cpath d='M0 630 C600 610 1000 500 1600 480'/%3E%3Cpath d='M0 780 C600 740 1000 570 1600 520'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.screen__bar { position: absolute; z-index: 3; inset: 0 0 auto 0; height: 34px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; padding: 0 14px; background: rgba(8, 18, 21, .92);
  border-bottom: 1px solid var(--line); color: var(--fg-2); opacity: 0; pointer-events: none; white-space: nowrap; }
.pin { position: relative; }
.pin.is-on { height: 190vh; }
.pin.is-on .hero { position: sticky; top: 0; height: 100vh; height: 100svh; }   /* svh: адресная строка Safari не дёргает пин */
/* слой — только пока шапка рядом с экраном (класс is-near ставит site.js) */
.pin.is-on.is-near .screen { will-change: transform; }
.pin.is-on.is-near .hero__body { will-change: opacity, transform; }
.caption { position: absolute; z-index: 2; right: var(--gut); bottom: clamp(40px, 9vh, 96px); max-width: 40ch;
  margin: 0; color: var(--fg-2); font-size: 11px; line-height: 1.5; text-align: right; }
.caption.zaglushka { position: absolute; }  /* .zaglushka задаёт relative и стоит ниже по файлу */
.caption.zaglushka::after { top: -12px; }
.field--fallback canvas, .field--fallback .readout, .field--fallback .caption { display: none; }
.hero__scrim { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(8, 18, 21, .94) 0%, rgba(8, 18, 21, .55) 30%, rgba(8, 18, 21, 0) 58%),
    linear-gradient(to right, rgba(8, 18, 21, .72) 0%, rgba(8, 18, 21, 0) 55%); }
.hero__layer { position: absolute; inset: 0; pointer-events: none; }
.hero__body { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(40px, 9vh, 96px); pointer-events: none; }
.hero__body > .wrap > * { pointer-events: auto; }
.hero h1 { max-width: 17ch; }
.hero h1 { font-variation-settings: "SHRP" var(--shrp, 60); }   /* --shrp пишет field.js от силы сбоя */
.hero__sub { margin-top: 22px; font-size: clamp(17px, 1.5vw, 20px); color: #c4d3d2; max-width: 44ch; }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero h1.is-glitch { animation: glitch .32s steps(4) 1; }
@keyframes glitch {
  0% { font-variation-settings: "SHRP" 100; text-shadow: 3px 0 var(--signal); clip-path: inset(10% 0 55% 0); transform: translateX(-3px); }
  33% { font-variation-settings: "SHRP" 0; text-shadow: -3px 0 var(--trace); clip-path: inset(48% 0 12% 0); transform: translateX(4px); }
  66% { font-variation-settings: "SHRP" 100; text-shadow: 2px 0 var(--signal); clip-path: inset(0 0 0 0); transform: none; }
  100% { font-variation-settings: "SHRP" 60; text-shadow: none; }
}

/* приборная сводка поля */
.readout { position: absolute; z-index: 2; right: var(--gut); top: 92px; width: 228px;
  border: 1px solid var(--line); background: rgba(8, 18, 21, .72); padding: 14px 16px; }
.readout dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; }
.readout dt { color: var(--fg-2); }
.readout dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; color: var(--fg); }
.readout p { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--fg-2); }

/* рамка аномалии */
.anom { position: absolute; border: 1px solid var(--signal); color: var(--signal);
  animation: anomIn .28s var(--ease) both; }
.anom::before, .anom::after { content: ""; position: absolute; width: 9px; height: 9px; border: 2px solid var(--signal); }
.anom::before { left: -5px; top: -5px; border-right: 0; border-bottom: 0; }
.anom::after { right: -5px; bottom: -5px; border-left: 0; border-top: 0; }
.anom__lab { position: absolute; left: -1px; bottom: calc(100% + 6px); width: calc(100% + 2px); box-sizing: border-box; display: flex; flex-wrap: wrap; gap: 2px 10px;
  font: 500 11px/1.4 var(--mono); font-stretch: 87.5%; white-space: nowrap; background: rgba(8, 18, 21, .85); padding: 4px 7px;
  border-left: 2px solid var(--signal); }
.anom__lab b { font-weight: 700; }
.anom__st { position: absolute; left: -1px; top: calc(100% + 6px); font: 600 11px/1 var(--mono); font-stretch: 87.5%;
  background: var(--signal); color: var(--signal-ink); padding: 4px 7px; }
.anom.is-loc { border-style: dashed; }
.anom.is-fixed { border-color: var(--trace); color: var(--trace); animation: anomOut 1.6s ease both; }
.anom.is-fixed::before, .anom.is-fixed::after { border-color: var(--trace); }
.anom.is-fixed .anom__st { background: var(--trace); color: #06201d; }
.anom.is-fixed .anom__lab { border-left-color: var(--trace); }
/* появление без увеличения: рамка ни в один момент не больше места, которое для неё проверено */
@keyframes anomIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes anomOut { 0%, 55% { opacity: 1; } 100% { opacity: 0; } }

/* секции */
.sec { padding: clamp(80px, 11vw, 150px) 0 0; }
.sec__head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec__head p { color: var(--fg-2); font-size: 18px; }

/* заглушки: всё выдуманное видно сразу */
.zaglushka { position: relative; outline: 1px dashed rgba(255, 91, 46, .45); outline-offset: 4px; }
.zaglushka::after { content: "пример"; position: absolute; right: 0; top: -14px; transform: translateY(-50%);
  font: 600 10px/1 var(--mono); font-stretch: 87.5%; color: var(--signal-ink); background: var(--signal);
  padding: 3px 5px; pointer-events: none; }
.zaglushka--inline { outline: 0; border-bottom: 1px dashed rgba(255, 91, 46, .7); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.zaglushka--inline::after { position: static; transform: none; display: inline-block; margin-left: 6px; vertical-align: 2px; }
/* вопрос к Виктору: тот же вид, другая метка; текст вопроса в data-vopros и во всплывающей подсказке */
.zaglushka[data-vopros] { outline-color: rgba(159, 216, 208, .55); border-bottom-color: rgba(159, 216, 208, .8); }
.zaglushka[data-vopros]::after { content: "уточнить"; background: var(--trace); color: #06201d; }

/* граф услуг */
.svc { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: start; }


.edge { stroke: var(--line-2); stroke-width: 1.4; fill: none; vector-effect: non-scaling-stroke; }
.edge.is-on { stroke: var(--signal); }


.node { position: absolute; transform: translate(-50%, -50%); width: 27%; min-height: 64px; padding: 12px 14px;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); color: var(--fg); text-align: left;
  font: 520 15px/1.25 var(--sans); cursor: pointer; transition: border-color .2s, background .2s; }
.node small { display: block; margin-top: 4px; font: 400 11px/1.3 var(--mono); font-stretch: 87.5%; color: var(--fg-2); }
.node::before { content: ""; position: absolute; left: -4px; top: 50%; width: 7px; height: 7px; margin-top: -4px;
  background: var(--bg); border: 1px solid var(--line-2); }
.node:hover { border-color: var(--fg-2); }
.node.is-on { border-color: var(--signal); background: #160c08; }
.node.is-on::before { background: var(--signal); border-color: var(--signal); }

.panel { position: relative; border: 1px solid var(--line); background: var(--bg-2); padding: clamp(20px, 2.4vw, 32px);
  background-image:
    linear-gradient(var(--line-2), var(--line-2)), linear-gradient(var(--line-2), var(--line-2)),
    linear-gradient(var(--line-2), var(--line-2)), linear-gradient(var(--line-2), var(--line-2));
  background-size: 14px 1px, 1px 14px, 14px 1px, 1px 14px;
  background-position: 8px 8px, 8px 8px, calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) calc(100% - 8px);
  background-repeat: no-repeat; }








.panel h3 { font-size: clamp(22px, 2vw, 28px); }

.panel dl { margin: 22px 0 0; display: grid; gap: 16px; }
.panel dt { font: 500 12px/1.4 var(--mono); font-stretch: 87.5%; color: var(--fg-2); margin-bottom: 4px; }
.panel dd { margin: 0; }

.panel[hidden] { display: none; }

/* нить сигнала в левом желобе (только там, где желоб есть) */
.thread { position: fixed; z-index: 25; left: 24px; top: 0; bottom: 0; width: 9px; pointer-events: none; opacity: 0; transition: opacity .3s; }
.thread__line { position: absolute; left: 4px; top: 0; width: 1px; height: 100%; background: var(--signal); transform-origin: 0 0; transform: scaleY(0); }
.thread__dot { position: absolute; left: 0; top: 0; width: 9px; height: 9px; background: var(--signal); }
.thread.is-fixed .thread__line, .thread.is-fixed .thread__dot { background: var(--trace); }
.thread.is-fixed .thread__dot { box-shadow: 0 0 0 4px rgba(47, 227, 200, .18); }
@media (max-width: 1180px) { .thread { display: none; } }
/* строка-эйбрау над заголовком секции и линия-шкала прибора под секцией */
.eyebrow { margin: 0 0 10px; min-height: 1.5em; color: var(--trace); font-size: 13px; }
.sec::after { content: ""; display: block; max-width: calc(var(--wrap) - 2 * var(--gut)); width: calc(100% - 2 * var(--gut)); height: 9px;
  margin: clamp(56px, 7vw, 96px) auto 0;
  background: linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat,
              repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 120px) 0 0 / 100% 9px no-repeat; }
#zayavka::after { display: none; }
/* зерно фона: одна статичная текстура шума, не анимируется. Раньше — фиксированный слой поверх всей страницы:
   Safari смешивал его с экраном на каждом кадре прокрутки (замер в WebKit: −30 % длительности кадра без него).
   Теперь это фон страницы — готовая плитка 64×64 (assets/img/grain.png, 1,2 КБ, прозрачность внутри): SVG-фильтр feTurbulence
   WebKit пересчитывал при каждой перерисовке фона, картинка декодируется один раз */
html { background: var(--bg) url("../img/grain.png") 0 0 / 64px 64px; }
body { background: transparent; }
.stat__fin { color: var(--signal); }
html.signal-fixed .stat__fin { color: var(--trace); }

/* «Где у вас сбоит?»: симптомы, схема бизнеса, решение */
.sboi__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sb-chip { position: relative; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--bg-2); color: var(--fg); font: 500 15px/1.2 var(--sans); cursor: pointer; white-space: nowrap;
  transition: border-color .2s, background .2s; }
.sb-chip:hover { border-color: var(--fg-2); }
.sb-chip { display: inline-flex; align-items: center; gap: 10px; }
.sb-chip[aria-pressed="true"] { border-color: var(--signal); background: #1a0d08; }
.sb-chip.is-ok { border-color: var(--trace); background: #0b1d1f; }
.osc { width: 40px; height: 12px; flex: 0 0 40px; overflow: hidden; }
.osc path { fill: none; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.osc__f { stroke: var(--line-2); }
.osc__n { stroke: var(--signal); display: none; }
.sb-chip[aria-pressed="true"]:not(.is-ok) .osc__f { display: none; }
.sb-chip[aria-pressed="true"]:not(.is-ok) .osc__n { display: block; animation: oscRun .6s steps(6) infinite; }
.sb-chip.is-ok .osc__f { stroke: var(--trace); }
@keyframes oscRun { from { transform: translateX(0); } to { transform: translateX(-40px); } }
.sb-z { margin-left: 8px; font-size: 10px; background: var(--signal); color: var(--signal-ink); padding: 2px 5px; vertical-align: 1px; }
.sboi__hint { margin-top: 10px; color: var(--fg-2); }
.sboi__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; margin-top: 18px; align-items: stretch; }
.sboi__map { position: relative; border: 1px solid var(--line); padding: 14px;
  background: radial-gradient(circle at 1px 1px, rgba(159, 216, 208, .12) 1px, transparent 1.4px) 0 0 / 24px 24px, var(--bg-2); }
.sboi__map svg { display: block; width: 100%; height: auto; overflow: visible; }
.sboi__layer { position: absolute; inset: 0; pointer-events: none; }
.sboi__empty { position: absolute; left: 16px; bottom: 10px; margin: 0; color: var(--fg-2); }
.sb-edge { stroke: var(--line-2); stroke-width: 1.5; fill: none; }
.sb-edge--dash { stroke-dasharray: 4 5; opacity: .6; }
.sb-arrow { fill: var(--line-2); }
.sb-gridline { fill: none; stroke: #3a4d52; stroke-width: 1; }
.sb-node { cursor: pointer; outline: none; }
.sb-node__r { fill: var(--bg); stroke: var(--line-2); stroke-width: 1.2; transition: stroke .25s, fill .25s; }
.sb-node:hover .sb-node__r, .sb-node:focus-visible .sb-node__r { stroke: var(--fg-2); }
.sb-node:focus-visible .sb-node__r { stroke: var(--signal); stroke-dasharray: 3 3; }
.sb-node__grid { opacity: 0; pointer-events: none; }
.sb-node__ok { fill: none; }
.sb-t { fill: var(--fg); font: 600 21px var(--sans); }
.sb-s { fill: var(--fg-2); font: 400 12px var(--mono); font-stretch: 87.5%; }
.sb-node.is-anom .sb-node__r { stroke: var(--signal); fill: #1d0b05; stroke-width: 2; }
.sb-node.is-anom .sb-t { fill: var(--signal); }
.sb-node.is-anom .sb-in { animation: sbShake .16s steps(2) infinite; }
.sb-paper { opacity: 0; pointer-events: none; }
.sb-node.is-table .sb-paper { opacity: 1; }
.sb-paper__r { fill: #efe6d2; stroke: #c9bc9f; stroke-width: 1; }
.sb-paper__g { stroke: #b9ad92; stroke-width: .8; fill: none; }
.sb-paper__t { fill: #1b1b1b; font: italic 500 13px var(--sans); }
.sb-node.is-table .sb-in { animation: none; }
.sb-node.is-burn .sb-paper { animation: sbBurn .8s cubic-bezier(.7, 0, .3, 1) both; }
@keyframes sbBurn { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); } }
.sb-crop { fill: none; stroke: var(--trace); stroke-width: 1.4; opacity: 0; transition: opacity .15s; }
.sb-node:hover .sb-crop, .sb-node:focus-visible .sb-crop { opacity: 1; }
.sb-flow { fill: none; stroke: var(--trace); stroke-width: 2; stroke-linecap: square; opacity: .9; }
.sb-flow--once { stroke: var(--trace); animation: sbOnce .9s linear both; }
@keyframes sbOnce { from { stroke-dashoffset: 0; } to { stroke-dashoffset: calc(var(--len) * -1px); } }
.sb-spark { fill: var(--signal); animation: sbSpark .42s ease-out both; }
@keyframes sbSpark { from { opacity: 1; transform-box: fill-box; transform-origin: center; transform: scale(1); } to { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(2.4); } }
.sb-node.is-fixing .sb-node__r { stroke: rgba(255, 91, 46, .55); }
.sb-node.is-fixed .sb-node__r { stroke: var(--trace); }
.sb-node.is-fixed .sb-node__ok { fill: var(--trace); }
.sb-node.is-pulse .sb-in { animation: sbPulse .5s var(--ease); }
.sb-edge.is-anom { stroke: var(--signal); stroke-width: 2; stroke-dasharray: 10 12; opacity: 1; animation: sbBreak .22s steps(2) infinite; }
.sb-edge.is-fixing { stroke: rgba(255, 91, 46, .55); opacity: 1; }
.sb-edge.is-fixed { stroke: var(--trace); stroke-dasharray: none; opacity: 1; stroke-width: 1.6; }
.sb-ghost { opacity: 0; transition: opacity .3s; }
.sb-ghost.is-on { opacity: 1; }
.sb-ghost__r { fill: none; stroke: var(--fg-2); stroke-dasharray: 5 4; }
.sb-ghost .sb-t { fill: var(--fg-2); }
.sb-ghost.is-anom .sb-ghost__r { stroke: var(--signal); }
.sb-ghost.is-anom .sb-t { fill: var(--signal); }
.sb-ghost.is-fixed .sb-ghost__r { stroke: var(--trace); stroke-dasharray: none; fill: var(--bg); }
.sb-ghost.is-fixed .sb-t { fill: var(--fg); }
@keyframes sbShake { 0% { transform: translate(-2px, 1px); } 100% { transform: translate(2px, -1px); } }
@keyframes sbBreak { 0% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 11; } }
@keyframes sbPulse { 0% { transform: scale(1); } 40% { transform: scale(1.05); } 100% { transform: scale(1); } }
.sb-lab { position: absolute; z-index: 2; padding: 4px 8px; font-size: 11px; line-height: 1.45; color: var(--signal);
  background: rgba(8, 18, 21, .94); border-left: 2px solid var(--signal); animation: anomIn .28s var(--ease) both; }
.sb-lab b { font-weight: 700; }
.sb-lab i { font-style: normal; color: var(--fg-2); }
.sb-st { font-style: normal; font-weight: 600; background: var(--signal); color: var(--signal-ink); padding: 0 5px; white-space: nowrap; }
.sb-lab.is-fixed .sb-st { background: var(--trace); color: #06201d; }
.sb-lab.is-fixed { color: var(--trace); border-left-color: var(--trace); }
.sb-lab.zaglushka { outline-offset: 2px; }
.sb-lab.zaglushka::after { top: auto; bottom: 100%; transform: translateY(-3px); }
.sboi__panel { position: relative; border: 1px solid var(--line); background: var(--bg-2); padding: clamp(20px, 2.2vw, 28px); min-width: 0; }
.sboi__panel.is-on { border-color: var(--line-2); }
.sboi__panel.is-in { animation: spIn .4s var(--ease); }
@keyframes spIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.sboi__panel.zaglushka { outline-offset: -1px; }
.sboi__panel.zaglushka::after { top: 12px; right: 12px; transform: none; }
.sp-anom { color: var(--signal); margin-bottom: 10px; }
.sp-cnt { color: var(--trace); margin-bottom: 8px; }
.sp-sheet { display: none; }
.sp-demo { color: var(--trace); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px dashed var(--line-2); }
.sboi__panel h3 { font-size: clamp(21px, 1.9vw, 26px); }
.sp-dl { margin: 16px 0 0; display: grid; gap: 12px; }
.sp-dl dt { color: var(--fg-2); margin-bottom: 2px; }
.sp-dl dd { margin: 0; font-size: 16px; }
.sp-get { margin-top: 10px; color: var(--fg); }
.sp-ex { margin-top: 8px; color: #c4d3d2; font-size: 16px; }
.sp-dir { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line-2); color: var(--fg-2); }
.sp-dir b { color: var(--fg); font-weight: 500; }
.sp-cta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.sp-syms { margin-top: 14px; color: var(--fg-2); line-height: 2.2; }
.sp-sym { min-height: 44px; padding: 0 10px; margin: 0 4px 4px 0; border: 1px solid var(--line-2); background: transparent; color: var(--trace);
  font: inherit; cursor: pointer; border-radius: var(--r); }
.sp-dirs { margin: 14px 0 0; padding: 0; list-style: none; }
.sp-dirs li { border-top: 1px solid var(--line); }
.sp-dirs button { width: 100%; min-height: 46px; padding: 0; background: none; border: 0; color: var(--fg); font: 500 16px var(--sans);
  text-align: left; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.sp-dirs button::after { content: ""; width: 8px; height: 8px; border-top: 1.5px solid var(--trace); border-right: 1.5px solid var(--trace); transform: rotate(45deg); }
.sp-dirs button:hover { color: var(--trace); }
.sboi__ticket { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.sboi__ticket[hidden] { display: none; }

/* пайплайн: стадии проходят от прокрутки, обратимо (без прокрутки и при reduced-motion — лог целиком) */
.pipe-sec { padding-top: clamp(60px, 8vw, 110px); }
.pipe-rail.is-on { height: 260vh; }
.pipe-rail.is-on .pipe-stick { position: sticky; top: 0; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.pipe { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(24px, 4vw, 64px); align-items: center; width: 100%; padding-top: 72px; padding-bottom: 24px; }





.pl { color: #c4d3d2; padding-left: 16px; white-space: pre-wrap; opacity: 0; clip-path: inset(0 100% 0 0); }
.pl.is-on { opacity: 1; clip-path: inset(0 calc((1 - var(--k, 1)) * 100%) 0 0); }
.pl--stage { padding-left: 0; margin-top: 10px; display: grid; grid-template-columns: auto auto minmax(40px, 1fr) auto; gap: 10px; align-items: center; color: var(--fg); }
.pl--stage:first-child { margin-top: 0; }


.pl__prog { height: 6px; background: var(--line); position: relative; overflow: hidden; }
.pl__prog i { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); background: var(--signal); }
.pl--stage.is-done .pl__prog i { background: var(--trace); }







/* журнал инцидентов */
.inc .crow__head { grid-template-columns: 130px minmax(0, 1fr) 230px; }

.inc__st { display: inline-block; color: #06201d; background: var(--trace); padding: 0 6px; margin-bottom: 4px; }








.inc__foot { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; color: var(--fg-2); }
.cprev .cprev__res { font-size: 13px; }

/* пайплайн — сборочная линия во всю ширину */
.pipe-rail.is-on { height: 220vh; }
.pipe2 { width: 100%; padding-top: 84px; padding-bottom: 20px; }
.pipe2__head { max-width: 760px; }
.pipe2__head p { margin-top: 12px; color: var(--fg-2); font-size: 18px; }
.pipe2__status { color: var(--trace) !important; font-size: 13px !important; font-variant-numeric: tabular-nums; }
.pipe2__line { position: relative; margin-top: clamp(22px, 3vw, 40px); }
.pipe2__rail { position: relative; height: 9px; margin: 0 0 18px; }
.pipe2__rail::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: var(--line-2); }
.pipe2__fill { position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: var(--trace); transform-origin: 0 0; transform: scaleX(var(--f, 0)); }
.pipe2__dot { position: absolute; top: 0; left: calc(var(--f, 0) * 100%); width: 9px; height: 9px; margin-left: -4px; background: var(--signal); }
.gate { position: absolute; left: var(--g); top: -6px; width: 1px; height: 21px; background: var(--line-2); }
.gate.is-open { background: var(--trace); box-shadow: 0 0 0 3px rgba(47, 227, 200, .14); }
.pipe2__stages { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px; }
.st__n { font: 700 clamp(56px, 6.6vw, 96px)/1 var(--sans); letter-spacing: -0.04em; font-variation-settings: "SHRP" 100; color: #416b75;   /* 3,2:1 к фону — порог для крупного текста */
  transition: color .3s; font-variant-numeric: tabular-nums; }
.st.is-active .st__n { color: var(--trace); text-shadow: 0 0 22px rgba(47, 227, 200, .28); }
.st.is-done .st__n { color: var(--fg); }
.st__t { margin-top: 8px; font-weight: 600; font-size: 19px; }
.st.is-done .st__t::after { content: " ✓"; color: var(--trace); }
.st__d { margin-top: 2px; color: var(--fg-2); font-size: 12.5px; }
.st__log { margin-top: 12px; min-height: calc(5 * 1.5em + 4px); font-size: 13px; line-height: 1.5; font-stretch: 87.5%; color: #c4d3d2;
  opacity: 0; transition: opacity .25s; }
.st.is-shown .st__log { opacity: 1; }
.st__l { clip-path: inset(0 calc((1 - var(--k, 0)) * 100%) 0 0); }
.st__l .zaglushka--inline::after { font-size: 9px; padding: 1px 4px; }

/* ворота до прохода линии не гаснут прозрачностью (контраст падал до 2,4:1): отличаются кромкой и цветом метки */
.gt { padding-top: 12px; border-top: 1px solid var(--line); color: var(--fg-2); font-size: 14.5px; transition: color .3s, border-color .3s; }
.gt b { display: block; color: var(--fg-2); font-weight: 600; margin-bottom: 4px; }
.gt.is-on { color: #c4d3d2; border-top-color: var(--trace); }
.gt.is-on b { color: var(--trace); }
.gt.zaglushka { outline-offset: 2px; }







/* журнал инцидентов — просмотрщик: прокрутка листает тикеты, шаги проявляются по --k */
.incv-rail.is-on { height: 420vh; }
.incv-rail.is-on .incv-stick { position: sticky; top: 0; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.incv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; width: 100%; padding-top: 80px; padding-bottom: 24px; }
.incv__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.incv__list li { border-bottom: 1px solid var(--line); }
.incv__i { width: 100%; display: grid; gap: 4px; padding: 18px 0; background: none; border: 0; color: var(--fg-2); text-align: left; cursor: pointer; font: inherit; }
.incv__i .mono { color: var(--fg-2); }
.incv__it { font-weight: 520; font-size: clamp(19px, 2vw, 30px); line-height: 1.15; letter-spacing: -0.02em; transition: color .3s, transform .4s var(--ease); }
.incv__i.is-on .incv__it { color: var(--fg); transform: translateX(10px); }
.incv__i.is-on .mono { color: var(--signal); }
.incv__cards { position: relative; min-height: 470px; }
.incv__t { position: absolute; inset: 0 0 auto 0; border: 1px solid var(--line-2); background: var(--bg-2); padding: clamp(18px, 2.2vw, 28px);
  opacity: 0; transform: translateY(18px); transition: opacity .35s, transform .45s var(--ease); pointer-events: none; }
.incv__t.is-on { opacity: 1; transform: none; pointer-events: auto; }
.incv__t.zaglushka::after { top: 12px; right: 12px; transform: none; }
.incv__h { display: flex; justify-content: space-between; gap: 12px; color: var(--trace); padding-right: 64px; }
.incv__title { margin-top: 12px; font-size: clamp(20px, 1.8vw, 26px); }
.incv__ind { margin-top: 6px; color: var(--fg-2); }
.incv__steps { margin: 16px 0 0; display: grid; gap: 12px; }
.incv__s { opacity: calc(.12 + var(--k, 0) * .88); transform: translateX(calc((1 - var(--k, 0)) * 16px)); }
.incv__s dt { color: var(--signal); font-size: 12px; }
.incv__s dd { margin: 2px 0 0; color: #c4d3d2; }
.incv__chart .trace2 { height: 96px; }
.incv__chart p { margin-top: 6px; font-size: 13px; color: var(--fg); }
.incv__chart b { color: var(--trace); font-weight: 600; }
.incv-rail.is-static .incv__cards { position: static; min-height: 0; display: grid; gap: 14px; }
.incv-rail.is-static .incv__t { position: relative; opacity: 1; transform: none; }
.incv-rail.is-static .incv__list { display: none; }
.incv-rail.is-static .incv { grid-template-columns: minmax(0, 1fr); padding-top: 0; }
.incv__count { display: none; margin: 0 0 8px; color: var(--signal); }
.incv__met { opacity: calc(.2 + var(--k, 0) * .8); font-variant-numeric: tabular-nums; }
.incv__met b { display: inline-block; min-width: 2ch; }
.incv__t .inc__st { opacity: .25; background: var(--line-2); transition: opacity .3s, background .3s; }
.incv__t .inc__st.is-on { opacity: 1; background: var(--trace); }
.incv__t { transition: opacity .35s, transform .45s var(--ease); }
.incv__t:not(.is-on) { transform: translateY(40px); }
.incv__t.was-on { transform: translateY(-40px); }
.incv-rail.is-static .incv__chart dd { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.incv-rail.is-static .incv__chart dd p { grid-column: 1 / -1; }

/* паспорт печатается прокруткой: элемент появляется целиком (короткий переход), «файлы» прилетают справа */
.asm-i { opacity: 0; transition: opacity .16s steps(2), transform .3s var(--ease); }
.asm-i.is-on { opacity: 1; transform: none; }
.files li.asm-i { transform: translateX(26px); }
.files li.asm-i.is-on { transform: none; }




.pass__no { position: absolute; right: 14px; top: 8px; margin: 0; color: var(--fg-2); font-size: 11px; }



.pass__copied { margin-top: 10px; color: var(--trace); }
/* тикет: номер по заполнению, приоритет, отрыв */
.tk__id { display: inline-block; min-width: 7ch; text-align: right; font-variant-numeric: tabular-nums; }
.tk { border-left: 2px solid var(--line-2); transition: border-color .25s; }
.tk.prio-critical { border-left-color: var(--signal); }
.tk.prio-urgent { border-left-color: #c8a46a; }
.tk.prio-critical [data-tk-prio] { color: var(--signal); }
.field input:focus, .field textarea:focus { box-shadow: inset 2px 0 0 var(--signal) !important; border-color: var(--line-2) !important; }
.field:focus-within label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--trace); }
.field textarea.is-flash { box-shadow: inset 2px 0 0 var(--signal), 0 0 0 3px rgba(255, 91, 46, .18) !important; }
.tk__done { position: relative; margin-top: 18px; transform: translateY(12px); }
.tk__done::before { content: ""; position: absolute; left: -16px; right: -16px; top: -14px; border-top: 1px dashed var(--line-2); }
.is-yours { color: var(--signal); }
/* подвал: полоса аптайма и спокойная линия */
.uptime { display: flex; align-items: center; gap: 12px; }
.uptime__bars { display: flex; gap: 3px; }
.uptime__bars i { width: 6px; height: 18px; background: var(--trace); opacity: .75; }
.uptime__bars i.is-bad { background: var(--signal); }
.uptime__l { color: var(--fg-2); font-size: 12px; }
.calm { display: block; width: 100%; height: 36px; }
/* агент: корпус монитора, трассировка, «включение» */
.mon { position: relative; }
.mon::before, .mon::after { content: ""; position: absolute; width: 10px; height: 10px; border: 1.5px solid var(--trace); z-index: 1; }
.mon::before { left: -5px; top: -5px; border-right: 0; border-bottom: 0; }
.mon::after { right: -5px; bottom: -5px; border-left: 0; border-top: 0; }
.chat__live { text-shadow: 0 0 10px rgba(47, 227, 200, .35); }
.chat__body { display: grid; grid-template-columns: minmax(0, 1fr) 170px; }
.chat__trace { margin: 0; padding: 14px 12px; list-style: none; border-left: 1px solid var(--line); color: var(--fg-2); font-size: 11.5px; line-height: 1.6; font-stretch: 87.5%; }
.chat__trace li:last-child { color: var(--trace); }
.chat:not(.is-on) { opacity: 0; }
.chat.is-on { animation: monOn .3s steps(3) both; }
@keyframes monOn { 0% { opacity: 0; } 34% { opacity: 1; } 67% { opacity: .4; } 100% { opacity: 1; } }
/* пайплайн: стадии съезжаются в сборку слева */
.pl--stage.is-on { transform: translateX(calc((1 - var(--k, 1)) * -36px)); }

/* живое окно агента */
.chat-sec { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.chat-sec__lead p { margin-top: 16px; color: #c4d3d2; font-size: 18px; }
.chat-sec__note { font-size: 15px !important; color: var(--fg-2) !important; }
.chat-sec__note a { color: var(--trace); }
.chat { border: 1px solid var(--line-2); background: var(--bg-2); display: flex; flex-direction: column; min-width: 0; }
.chat__bar { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--fg-2); }
.chat__live { color: var(--trace); }
.chat__live::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; background: var(--trace); vertical-align: 1px; }
.chat__live.is-err { color: var(--signal); }
.chat__live.is-err::before { background: var(--signal); }
.chat__log { height: 340px; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; padding: 10px 13px; font-size: 15.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg--bot { align-self: flex-start; background: var(--bg-3); border: 1px solid var(--line); }
.msg--me { align-self: flex-end; background: #1a0d08; border: 1px solid #5a2a18; }
.msg--typing { color: var(--fg-2); font-family: var(--mono); font-size: 13px; }
.msg--typing::after { content: "…"; display: inline-block; width: 1.2em; animation: dots 1s steps(3) infinite; overflow: hidden; vertical-align: bottom; }
@keyframes dots { from { width: 0; } to { width: 1.2em; } }
.msg--err { align-self: flex-start; border: 1px solid var(--signal); color: var(--fg); background: #1d0b05; }
.msg--err button, .term__out .retry { margin-top: 8px; min-height: 40px; padding: 0 12px; background: none; border: 1px solid var(--signal); color: var(--signal); font: 500 13px var(--mono); cursor: pointer; }
.chat__hints { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 12px; }
.chat__hints button { min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); background: transparent; color: var(--trace); font: 500 14px var(--sans); cursor: pointer; border-radius: var(--r); }
.chat__hints button:hover { border-color: var(--trace); }
.chat__in { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.chat__in input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-2); background: var(--bg); color: var(--fg); font: 400 16px var(--sans); border-radius: var(--r); }
.chat__in input:focus { outline: none; border-color: var(--trace); box-shadow: inset 2px 0 0 var(--signal); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* технический паспорт */
.pass { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.pass[data-asm] { overflow-x: clip; padding: 16px 4px 4px; margin: -16px -4px -4px; }  /* въезд строк сбоку не должен расширять страницу */
.pass__spec { margin: 0; border: 1px solid var(--line); background: #050c0e; padding: 8px 18px; font-size: 13px; font-stretch: 87.5%; }
.pass__spec div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.pass__spec div:last-child { border-bottom: 0; }
.pass__spec dt { color: var(--fg-2); }
.pass__spec dd { margin: 0; color: var(--fg); }
.pass__docs h3 { font-size: 20px; margin-bottom: 12px; }
.files { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.files li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.files__ok { color: var(--trace); font-family: var(--mono); }
.files--q .files__ok { color: var(--signal); }
.files__n small { display: block; color: var(--fg-2); font-size: 12px; margin-top: 2px; }
.files__m { color: var(--fg-2); font-size: 12px; white-space: nowrap; }
.pass__cta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.pass__cta .zaglushka { outline-offset: 2px; }
.pass__note { margin-top: 12px; color: var(--fg-2); }

/* тикет */
.tk { gap: 16px; }
.tk__bar { display: flex; justify-content: space-between; color: var(--fg-2); padding-bottom: 10px; border-bottom: 1px dashed var(--line-2); }
.tk__bar [data-tk-id] { color: var(--trace); }
.tk__prio { border: 0; padding: 0; margin: 0; }
.tk__prio legend { font-weight: 500; font-size: 15px; padding: 0; margin-bottom: 8px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; color: var(--fg-2); }
.seg label + label span { border-left: 1px solid var(--line-2); }
.seg input:checked + span { background: var(--bg-3); color: var(--fg); }
.seg input[value="critical"]:checked + span { background: #1d0b05; color: var(--signal); }
.seg input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: -2px; }
.tk__nda { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.tk__nda input { width: 20px; height: 20px; accent-color: var(--signal); }
.tk__done { display: none; border: 1px solid var(--trace); padding: 14px 16px; gap: 6px; }
.form.is-sent .tk__done { display: grid; }
.tk__line { opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s var(--ease); }
.tk__line.is-on, .form__mock.is-on { opacity: 1; transform: none; }
.tk__done .form__mock { opacity: 0; transition: opacity .35s; }
.tk__line.mono { color: var(--trace); font-size: 13px; }

/* подвал — статус-страница */
.foot .wrap.foot__in { display: grid; gap: 18px; justify-content: stretch; }  /* перебивает .foot .wrap { display: flex } */
.stat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; color: var(--fg-2); font-size: 12.5px; }
.stat b { color: var(--fg); font-weight: 500; }
.stat__dot { width: 9px; height: 9px; background: var(--trace); box-shadow: 0 0 0 4px rgba(159, 216, 208, .14); }
.stat.is-bad .stat__dot { background: var(--signal); box-shadow: 0 0 0 4px rgba(255, 91, 46, .18); }
.stat__main { color: var(--fg); font-weight: 600; }
.stat a { color: var(--trace); display: inline-flex; align-items: center; min-height: 44px; }
.stat.zaglushka { outline-offset: 6px; }
.foot__org { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; }
.term__sig { margin: 0; padding: 6px 14px 8px; border-top: 1px solid var(--line); color: var(--fg-2); font-size: 11px; }
.term__sig a { color: var(--trace); }

/* как работаем: настоящая последовательность */
.flow { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.flow::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 1px; background: var(--line-2); }


@keyframes pulse { 0% { opacity: 1; transform: translateX(0); } 92% { opacity: 1; } 100% { opacity: 0; transform: translateX(var(--run, 900px)); } }
.step { position: relative; padding: 44px 28px 0 0; }
.step::before { content: ""; position: absolute; top: 4px; left: 0; width: 15px; height: 15px; border: 1px solid var(--trace); background: var(--bg); }
.step h3 { font-size: 24px; }
.step p { margin-top: 12px; color: #c4d3d2; font-size: 16px; max-width: 30ch; }








/* кейсы: типографский список, превью следует за курсором (десктоп), раскрытие по клику/тапу */

.crow { border-bottom: 1px solid var(--line); }
.crow.zaglushka { outline-offset: -1px; }
.crow.zaglushka::after { top: auto; bottom: 8px; right: 0; transform: none; }
.crow__head { width: 100%; display: grid; grid-template-columns: 120px minmax(0, 1fr) 220px; gap: 24px; align-items: baseline;
  padding: 26px 0; background: none; border: 0; color: var(--fg); text-align: left; cursor: pointer; font: inherit; }







.crow__res { font-weight: 560; color: var(--fg) !important; font-size: 19px; }
.cprev { position: fixed; z-index: 20; left: 0; top: 0; width: 320px; padding: 14px; border: 1px solid var(--signal);
  background: rgba(8, 18, 21, .96); pointer-events: none; opacity: 0; transform: translate(0, -100%) scale(.92); transform-origin: 0 100%;
  transition: opacity .18s, transform .25s var(--ease); }
.cprev.is-on { opacity: 1; transform: translate(0, -100%) scale(1); }
.cprev .trace2 { height: 96px; }
.cprev__id { margin-bottom: 6px; color: var(--fg-2); font-size: 11px; }
.cprev__res { margin-top: 10px; font-weight: 560; font-size: 15px; }
.trace2 { width: 100%; height: 72px; }
.trace2 .bad { stroke: var(--signal); }
.trace2 .good { stroke: var(--trace); }
.trace2 path { fill: none; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.trace2 .ghost { stroke: var(--signal); opacity: .22; }
.trace2 .live.bad { stroke: var(--signal); }
.trace2 .live.good { stroke: var(--trace); stroke-width: 1.8; }
.trace2 text { font: 500 10px var(--mono); fill: var(--fg-2); }
.trace2 .t-after { opacity: 0; transition: opacity .3s; }
.trace2.is-after .t-after { opacity: 1; fill: var(--trace); }

/* страница услуги: «Узнаёте?» и кейс */










/* свой продукт */
.prod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: end;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(40px, 5vw, 64px) 0; }

.prod p { font-size: 18px; color: #c4d3d2; }
.prod a.btn { margin-top: 22px; }

.prod p { margin-top: 14px; }

/* для тендеров */
.tender { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; border-top: 1px solid var(--line); }
.tender > div { padding: 26px 0; border-bottom: 1px solid var(--line); }
.tender p { color: #c4d3d2; font-size: 16px; }

.tender h3 { font-size: 18px; margin-bottom: 14px; }
.tender dl { margin: 0; display: grid; gap: 10px; }
.tender dt { color: var(--fg-2); font: 500 12px/1.4 var(--mono); font-stretch: 87.5%; }
.tender dd { margin: 0; font-variant-numeric: tabular-nums; }
.tender ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tender li { padding-left: 16px; position: relative; }
.tender li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 1px; background: var(--trace); }

/* заявка */
.ask { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); padding-bottom: clamp(80px, 10vw, 140px); }
.ask__lead p { margin-top: 18px; color: var(--fg-2); font-size: 18px; }
.form { display: grid; gap: 18px; border: 1px solid var(--line); background: var(--bg-2); padding: clamp(20px, 2.6vw, 36px); }
.field { display: grid; gap: 8px; }
.field label { font-weight: 500; font-size: 15px; }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: var(--bg); color: var(--fg); font: 400 16px/1.4 var(--sans); }
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #7f9596; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--trace); box-shadow: 0 0 0 3px rgba(159, 216, 208, .16); }
.field__err { display: none; color: #ff8a66; font-size: 14px; }
.field.is-bad input, .field.is-bad textarea { border-color: var(--signal); }
.field.is-bad .field__err { display: block; }
.form__note { color: var(--fg-2); font-size: 14px; }


.form__mock { color: var(--fg-2); font-size: 13px; }
/* заявка: ловушка для ботов вне экрана (не display:none — часть ботов такие поля пропускает), ошибка отправки под кнопкой */
.lead-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form__fail { margin: 10px 0 0; color: #ff8a66; font-size: 14px; }
.trf .form__fail { margin: 10px 16px 0; font-size: 13px; }
.is-sending [type=submit] { opacity: .6; cursor: progress; }


.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--fg-2); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }

/* терминал */
.term { position: fixed; z-index: 40; right: var(--gut); bottom: 20px; width: min(560px, calc(100vw - 2 * var(--gut)));
  height: 340px; display: flex; flex-direction: column; background: #050c0e; border: 1px solid var(--line-2);
  font: 400 13px/1.55 var(--mono); font-stretch: 87.5%; color: var(--trace);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .45); }
.term[hidden] { display: none; }
.term__bar { display: flex; align-items: center; justify-content: space-between; padding: 0 0 0 14px; border-bottom: 1px solid var(--line); color: var(--fg-2); }
.term__bar button { min-width: 44px; min-height: 40px; background: none; border: 0; color: var(--fg-2); font: inherit; cursor: pointer; }
.term__out { flex: 1; overflow: auto; padding: 12px 14px; white-space: pre-wrap; }
.term__out .c { color: var(--fg); }
.term__out .e { color: var(--signal); }
.term__out .a { color: var(--fg); padding: 2px 0 8px; }
.term__out .typing { color: var(--fg-2); }
.term__out .typing::after { content: "…"; display: inline-block; width: 1.2em; overflow: hidden; vertical-align: bottom; animation: dots 1s steps(3) infinite; }
.term__in { display: flex; gap: 8px; border-top: 1px solid var(--line); padding: 0 14px; align-items: center; }
.term__in span { color: var(--signal); }
.term__in input { flex: 1; min-height: 44px; background: none; border: 0; color: var(--fg); font: inherit; outline: none; }

/* дозированный глитч на переходе к разделу */
.glitch-in { animation: glitch2 .3s steps(3) 1; }
@keyframes glitch2 {
  0% { clip-path: inset(0 0 60% 0); transform: translateX(-6px); text-shadow: 3px 0 var(--signal); }
  50% { clip-path: inset(40% 0 0 0); transform: translateX(5px); text-shadow: -2px 0 var(--trace); }
  100% { clip-path: inset(0); transform: none; text-shadow: none; }
}

/* страница услуги */
.hero--svc { min-height: 100vh; min-height: 100svh; }   /* воронка сжимает правую часть поля к середине: на 78dvh сбою негде встать, кроме как на текст (проход 4) */
.hero--svc h1 { max-width: 24ch; }
.crumb { color: var(--fg-2); }
.crumb a { color: var(--trace); display: inline-flex; align-items: center; min-height: 44px; }








.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer; font-weight: 520; font-size: 18px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--mono); color: var(--trace); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 20px; color: #c4d3d2; }

/* планшет и телефон */
@media (max-width: 1080px) {
  .nav { display: none; }
  .svc { grid-template-columns: minmax(0, 1fr); }
  .tender { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crow__head { grid-template-columns: 100px minmax(0, 1fr); }
  .crow__ind { grid-column: 2; text-align: left; }
  .crow__body { margin-left: 124px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top .btn { display: none; }
  .top .wrap { gap: 12px; }
  .term-btn { margin-left: auto; }
  .logo__name { font-size: 14px; }
  .readout { display: none; }
  .caption { top: 78px; bottom: auto; left: var(--gut); right: var(--gut); max-width: none; text-align: left; }
  .caption.zaglushka::after { top: auto; bottom: -14px; transform: translateY(50%); }
  .pin.is-on { height: 150vh; }
  .screen__bar span:first-child { overflow: hidden; text-overflow: ellipsis; }
  .hero h1 { max-width: none; }
  .hero--svc { min-height: 100svh; }
  .hero__cta .btn { flex: 1 1 auto; }
  /* граф превращается в шину: узлы списком вдоль линии, описание раскрывается под узлом */
  .pipe { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 76px; }
  .pipe2 { padding-top: 76px; }
  .pipe2__head p { font-size: 15px; margin-top: 8px; }
  .pipe2__line { padding-left: 28px; margin-top: 16px; }
  .pipe2__rail { position: absolute; left: 4px; top: 6px; bottom: 0; width: 9px; height: auto; margin: 0; }
  .pipe2__rail::before, .pipe2__fill { left: 4px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .pipe2__fill { transform-origin: 0 0; transform: scaleY(var(--f, 0)); }
  .pipe2__dot { left: 0; top: calc(var(--f, 0) * 100%); margin: -4px 0 0; }
  .gate { left: -6px; top: var(--g); width: 21px; height: 1px; }
  .pipe2__stages { grid-template-columns: minmax(0, 1fr); gap: 6px; position: relative; padding-bottom: 92px; }
  .st { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: baseline; column-gap: 10px; }
  .st__n { font-size: 40px; grid-row: span 2; }
  .st__t { margin: 0; font-size: 17px; }
  .st__log { position: absolute; left: 0; right: 0; bottom: 0; min-height: 0; height: 84px; margin: 0; font-size: 13.5px; overflow: hidden;
    border-top: 1px dashed var(--line-2); padding-top: 8px; }

  .gt { border-top: 0; padding-top: 0; }
   /* на телефоне у ворот только метки: иначе липкий блок выше экрана */


  .gt { font-size: 13px; padding-top: 6px; }
  .gt b { display: inline; margin-right: 6px; }


  .pipe-rail.is-on .pipe-stick { align-items: flex-start; }

  .pipe-rail.is-on { height: 230vh; }

  .pl--stage { grid-template-columns: auto auto minmax(24px, 1fr); }

  .incv { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 72px; align-items: start; }
  .incv-rail.is-on .incv-stick { align-items: flex-start; }
  .incv__count { display: block; }
  .incv__list { display: none; }
  .incv-rail.is-static .incv__count { display: none; }
  .incv__list li { border: 0; flex: 0 0 auto; }
  .incv__i { padding: 0 12px; min-height: 40px; border: 1px solid var(--line-2); align-content: center; }
  .incv__i.is-on { border-color: var(--signal); }
  .incv__it { display: none; }
  .incv__i.is-on .incv__it { transform: none; }
  .incv__cards { min-height: 560px; }
  .incv-rail.is-on { height: 380vh; }
  .inc .crow__head { grid-template-columns: minmax(0, 1fr); }

  .chat-sec, .pass { grid-template-columns: minmax(0, 1fr); }
  .chat__body { grid-template-columns: minmax(0, 1fr); }
  .chat__trace { border-left: 0; border-top: 1px solid var(--line); padding: 8px 14px; max-height: 7.5em; overflow: hidden; }
  .chat__log { height: 46vh; }
  .chat__hints { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chat__hints button { flex: 0 0 auto; }
  .seg { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .seg span { justify-content: center; }
  .uptime__bars { flex: 1; gap: 2px; }
  .uptime__bars i { flex: 1; width: auto; }
  .chat__log { height: 300px; }
  .pass__spec div { grid-template-columns: 96px minmax(0, 1fr); }
  .sboi__chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) 4px;
    scroll-snap-type: x proximity; scrollbar-width: none; }
  .sboi__chips::-webkit-scrollbar { display: none; }
  .sb-chip { scroll-snap-align: start; flex: 0 0 auto; }
  .sboi__grid { grid-template-columns: minmax(0, 1fr); }
  /* решение — нижний лист: видно вместе со схемой, тап раскрывает */
  .sboi__panel { position: sticky; bottom: 0; z-index: 6; max-height: 38vh; overflow-y: auto; padding: 0 16px 16px;
    border-top: 2px solid var(--signal); background: #0b181c; transition: max-height .3s var(--ease); }
  .sboi__panel.is-open { max-height: 70vh; }
  .sp-sheet { display: flex; position: sticky; top: 0; z-index: 1; width: calc(100% + 32px); margin: 0 -16px 10px; min-height: 46px; align-items: center;
    justify-content: space-between; padding: 0 16px; background: #0b181c; border: 0; border-bottom: 1px solid var(--line); color: var(--signal); font-size: 12.5px; cursor: pointer; text-align: left; }
  .sboi__panel.is-open .sp-sheet span { display: inline-block; transform: rotate(180deg); }
  .sboi__panel.is-in { animation: none; }
  .sboi__map { padding: 10px; }
  .sb-t { font-size: 17px; }



  .node{ position: relative; transform: none; left: auto !important; top: auto !important; width: 100%;
    margin-bottom: 10px; }
  .node::before { left: -18px; }

  .flow { grid-template-columns: minmax(0, 1fr); padding-left: 28px; }
  .flow::before { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }

  .step { padding: 0 0 28px; }
  .step::before { left: -28px; top: 6px; }

  .crow__head { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 20px 0; }




  .cprev { display: none; }
  .prod { grid-template-columns: minmax(0, 1fr); }
  .tender { grid-template-columns: minmax(0, 1fr); }
  .tender > div { padding: 22px 0; }
  .ask { grid-template-columns: minmax(0, 1fr); }




  .term { height: 60dvh; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }

}

/* низкие экраны: липкая сборочная линия должна целиком помещаться в окно */
@media (max-height: 800px) {
  .pipe2 { padding-top: 70px; }
  .pipe2__head p:not(.pipe2__status):not(.eyebrow) { display: none; }
  .pipe2__head h2 { font-size: clamp(26px, 3vw, 40px); }
  .pipe2__line { margin-top: 12px; }
  .st__n { font-size: clamp(40px, 5vw, 64px); }
  .st__log { min-height: calc(4 * 1.5em); margin-top: 8px; }
  .pipe2__gates { margin-top: 10px; }
  .gt { font-size: 13px; }
}
@media (max-height: 800px) and (max-width: 760px) {
  .st__n { font-size: 34px; }
  .pipe2__stages { padding-bottom: 80px; }
  .st__log { height: 72px; }
}

/* страница amoCRM: этапы — короткий пин */
.pipe-sec--short .pipe-rail.is-on { height: 160vh; }

/* ===== страница amoCRM, проход 4 ===== */
/* «Что входит»: шесть коротких подписей под воронкой */
.vhod h2 { max-width: 22ch; }
.vhod__list { margin: 28px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.vhod__list li { padding: 16px 0; border-top: 1px solid var(--line); color: #c4d3d2; font-size: 16px; }
.vhod__list .mono { display: block; color: var(--trace); margin-bottom: 4px; }

/* калькулятор — панель прибора */
.calc__lead { margin-top: 14px; color: var(--fg-2); font-size: 18px; }
.calc { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); border: 1px solid var(--line-2); background: var(--bg-2); }
.calc.zaglushka { outline-offset: 4px; }
.calc__panel { padding: clamp(18px, 2.4vw, 30px); display: grid; gap: 18px; border-right: 1px solid var(--line); }
.calc__f { border: 0; padding: 0; margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 500; }
.calc__f legend { font-weight: 500; margin-bottom: 10px; padding: 0; }
.calc__mv b { font-size: 22px; color: var(--fg); font-variant-numeric: tabular-nums; }
.calc input[type=range] { width: 100%; height: 44px; margin: -8px 0 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.calc input[type=range]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--trace) var(--v, 15%), var(--line-2) var(--v, 15%)); }
.calc input[type=range]::-moz-range-track { height: 2px; background: var(--line-2); }
.calc input[type=range]::-moz-range-progress { height: 2px; background: var(--trace); }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 22px; margin-top: -10px; background: var(--signal); border: 0; border-radius: 0; }
.calc input[type=range]::-moz-range-thumb { width: 14px; height: 22px; background: var(--signal); border: 0; border-radius: 0; }
.calc__scale { display: flex; justify-content: space-between; color: var(--fg-2); margin-top: -14px; }
.calc__ppl { display: flex; flex-wrap: wrap; gap: 3px; min-height: 26px; }
.calc__ppl i { width: 8px; height: 11px; background: var(--trace); opacity: .7; clip-path: polygon(50% 0, 100% 34%, 100% 100%, 0 100%, 0 34%); }
.calc__tg { display: block; }
.calc__tg label { display: inline-flex; align-items: center; min-height: 44px; margin: 0 6px 6px 0; position: relative; cursor: pointer; }
.calc__tg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.calc__tg span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); font: 500 14px var(--mono); font-stretch: 87.5%; color: var(--fg-2); }
.calc__tg input:checked + span { border-color: var(--trace); color: var(--fg); background: #0b1d1f; }
.calc__tg input:checked + span::before { content: "● "; color: var(--trace); margin-right: 4px; }
.calc__tg input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.calc__res { padding: clamp(18px, 2.4vw, 30px); display: grid; align-content: start; gap: 6px; }
.calc__k { color: var(--fg-2); margin-top: 6px; }
.calc__v { color: var(--fg); font-size: clamp(20px, 2.2vw, 30px); line-height: 1.2; white-space: nowrap; }
.calc__v b, .calc__w b { font-weight: 600; font-variant-numeric: tabular-nums; }
.calc__v span { color: var(--fg-2); font-size: .6em; }
.calc__w { font-size: 18px; }
.calc__note { margin: 12px 0 8px; color: var(--fg-2); font-size: 14px; }

/* сертификат партнёра: рамка документа и печать-ссылка кодом */
.cert { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }




.seal__cap { margin-top: 10px; color: var(--fg-2); }

.cert__side p { margin-top: 14px; color: #c4d3d2; font-size: 17px; }
.seal { display: inline-block; width: 168px; height: 168px; margin-top: 22px; position: relative; overflow: hidden; border-radius: 50%; }  /* повёрнутый квадрат SVG не должен расширять страницу */
.seal svg { width: 100%; height: 100%; animation: sealRot 60s linear infinite; }
.seal__r { fill: none; stroke: var(--trace); stroke-width: 1.2; }
.seal__t { fill: var(--trace); font: 500 12px var(--mono); letter-spacing: .04em; }
.seal__m { fill: var(--fg); font: 700 22px var(--sans); }
.seal:hover .seal__r, .seal:focus-visible .seal__r { stroke: var(--signal); }
@keyframes sealRot { to { transform: rotate(360deg); } }

/* FAQ и форма — окна терминала */
.faq2-sec { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.trm { position: relative; border: 1px solid var(--line-2); background: #050c0e; }
.trm::before { content: ""; position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border: 1.5px solid var(--trace); border-right: 0; border-bottom: 0; }
.trm__bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; padding: 10px 16px; border-bottom: 1px solid var(--line); color: var(--fg-2); }
.trm__bar span:first-child { color: var(--trace); font-size: 14px; }
.faq2__list { margin: 0; padding: 8px 0; list-style: none; font-size: 15px; line-height: 1.6; }
.faq2__b { width: 100%; min-height: 44px; display: flex; gap: 8px; align-items: center; padding: 6px 16px; background: none; border: 0; text-align: left;
  color: var(--fg); font: inherit; font-stretch: 87.5%; cursor: pointer; }
.faq2__m { width: 1ch; color: var(--signal); flex: 0 0 1ch; }
.faq2__b.is-cur, .faq2__b:hover { background: #0b181c; }
.faq2__a { padding: 0 16px 12px 40px; max-width: 64ch; }
.faq2__ah { color: var(--trace); }
.faq2__at { color: #c4d3d2; font-family: var(--sans); font-size: 16px; }
.faq2__more { padding: 10px 16px 14px; border-top: 1px solid var(--line); color: var(--fg-2); }
.trf { padding-bottom: 16px; }
.trf__row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 10px; padding: 6px 16px; position: relative; }
.trf__row label { color: var(--trace); font-size: 15px; white-space: nowrap; }
.trf__row input { min-height: 44px; background: none; border: 0; border-bottom: 1px dashed var(--line-2); color: var(--fg); font-size: 15px; font-stretch: 87.5%; padding: 0 2px; outline: none; }
.trf__row input:focus { border-bottom-color: var(--trace); }
.trf__row.is-cur input:not(:focus) { background: linear-gradient(var(--trace), var(--trace)) 2px 50% / 8px 18px no-repeat; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { background-size: 0 0; } }
.trf__err { display: none; grid-column: 2; color: var(--signal); font-size: 12px; }
.trf__row.is-bad .trf__err { display: block; }
.trf__row.is-bad input { border-bottom-color: var(--signal); }
.trf__go { margin: 12px 16px 0; min-height: 48px; padding: 0 18px; background: var(--signal); border: 0; color: var(--signal-ink); font-weight: 700; font-size: 14px; cursor: pointer; }
.trf__note { margin: 10px 16px 0; color: var(--fg-2); font-size: 13px; }
.trf__done { margin: 14px 16px 0; padding-top: 12px; border-top: 1px dashed var(--line-2); color: var(--trace); display: grid; gap: 4px; }
.trf__done p { opacity: 0; transition: opacity .3s; }
.trf__done p.is-on { opacity: 1; }
.trf #f-task.is-flash { border-bottom-color: var(--signal); box-shadow: 0 2px 0 rgba(255, 91, 46, .4); }

@media (max-width: 1080px) {
  .vhod__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq2-sec { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .vhod__list { grid-template-columns: minmax(0, 1fr); }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc__panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .calc__v { font-size: clamp(18px, 5.4vw, 24px); }
  .calc__res { position: sticky; bottom: 0; z-index: 4; background: #0b181c; border-top: 2px solid var(--trace); }
  .cert { grid-template-columns: minmax(0, 1fr); }
  .trf__row { grid-template-columns: minmax(0, 1fr); }
  .trf__err { grid-column: 1; }
  .faq2__list, .trf__row label, .trf__row input { font-size: 15px; }
}

/* сертификат партнёра (проход 5): превью — кнопка, целиком — в окне-диалоге */



.cert__meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 16px 0 0; font-size: 13px; }
.cert__meta dt { color: var(--fg-2); }
.cert__meta dd { margin: 0; color: var(--fg); font-variant-numeric: tabular-nums; }
.files--doc .files__n { align-self: center; }



.lb { width: fit-content; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--fg); overflow: auto; }
.lb::backdrop { background: rgba(4, 10, 12, .86); }
.lb__bar { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px;
  background: rgba(8, 18, 21, .96); border-bottom: 1px solid var(--line); color: var(--fg-2); }
.lb__x { flex: none; white-space: nowrap; padding: 6px 10px; border: 1px solid var(--line-2); background: none; color: var(--fg); font: inherit; cursor: pointer; }
.lb__x:hover { border-color: var(--signal); color: var(--signal); }
/* документ целиком помещается в окно и по высоте: строка «выдан · ID» внизу сертификата не должна уходить за край */
.lb__img { display: block; width: auto; height: auto; max-width: calc(100vw - 34px); max-height: calc(100dvh - 34px - 52px); }
@media (max-width: 760px) { .lb__bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }

/* прицел над полем шапки (§2): только там, только мышь */
.screen.has-reticle { cursor: none; }
.reticle { position: absolute; z-index: 4; left: 0; top: 0; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .15s; }
.reticle.is-on { opacity: 1; }
.reticle::before, .reticle::after { content: ""; position: absolute; background: var(--fg); }
.reticle::before { left: -9px; top: 0; width: 18px; height: 1px; }
.reticle::after { left: 0; top: -9px; width: 1px; height: 18px; }
.reticle__c { position: absolute; left: 14px; top: 10px; white-space: nowrap; font: 400 11px/1 var(--mono); font-stretch: 87.5%; color: var(--fg-2);
  font-variant-numeric: tabular-nums; }
/* скан-линия первой загрузки: тёмная завеса уходит вправо, её левая кромка — светящаяся линия */
.scan { position: absolute; z-index: 1; inset: 0; background: var(--bg); pointer-events: none; animation: scanGo .6s linear both; }
.scan::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--glow); box-shadow: 0 0 12px 2px rgba(47, 227, 200, .35); }
@keyframes scanGo { from { transform: translateX(0); } to { transform: translateX(101%); } }
@media (prefers-reduced-motion: reduce) { .scan, .reticle { display: none; } }

/* рождение сигнала: рамка сбоя → квадрат 9×9 → нить (§4.1) */
.birth { position: fixed; z-index: 25; inset: 0; pointer-events: none; opacity: 0; }
.birth__f { position: absolute; left: 0; top: 0; border: 1px solid var(--signal); transform-origin: 50% 50%; }
.birth__s { position: absolute; left: 0; top: 0; width: 9px; height: 9px; background: var(--signal); box-shadow: 0 0 0 4px rgba(255, 91, 46, .16); }
@media (max-width: 1179px) { .birth { display: none; } }

/* сертификат листом «в воздухе» (Виктор tg 7506): лист в 3D-наклоне, тень — отдельный слой на «полу».
   Каждый кадр меняются только transform и opacity через переменные из site.js; тень не filter, а градиенты.
   Против §2 «тени у карточек запрещены» — здесь прямое слово Виктора, под тенью фосфорный пол, чтобы она читалась на тёмном */
.fdoc { position: relative; perspective: 1100px; perspective-origin: 50% 30%; padding: 18px 0 70px; }
.fdoc__sheet { position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 1280 / 989; padding: 0; border: 0; background: #0c2230;
  border-radius: 1.9% / 2.45%; overflow: hidden; cursor: zoom-in; transform-origin: 50% 60%;
  transform: translate3d(0, var(--fd-y, -10px), var(--fd-z, 0)) rotateX(var(--fd-rx, 6deg)) rotateY(var(--fd-ry, -7deg));
  opacity: var(--fd-o, 1); }
.fdoc.is-near .fdoc__sheet { will-change: transform; }
.fdoc__sheet img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* тонкая кромка света по краю листа: статичная, не анимируется */
.fdoc__sheet::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(255, 255, 255, .07); }
.fdoc__glint { position: absolute; inset: -30% -60%; pointer-events: none;   /* без mix-blend-mode: в Safari режим смешивания — отдельная дорогая отрисовка */
  background: linear-gradient(105deg, transparent 46.5%, rgba(255, 255, 255, .09) 50%, transparent 53.5%);
  transform: translateX(var(--fd-g, 0%)); opacity: var(--fd-go, .8); }
.fdoc__sheet:focus-visible { outline: 2px solid var(--signal); outline-offset: 6px; }
.fdoc__shadow, .fdoc__floor { position: absolute; left: 50%; pointer-events: none; }
.fdoc__shadow { bottom: 30px; width: 84%; height: 54px; margin-left: -42%;
  background:
    radial-gradient(closest-side, rgba(0, 0, 0, .78), rgba(0, 0, 0, .42) 55%, transparent),
    radial-gradient(closest-side, rgba(0, 0, 0, .36), transparent) 50% 50% / 130% 220% no-repeat;
  transform: translate(var(--fd-sx, 0px), 0) scale(var(--fd-ss, 1)); opacity: var(--fd-so, 1); }
.fdoc__floor { bottom: 6px; width: 100%; height: 120px; margin-left: -50%;   /* шире листа нельзя: на 390 расширяет страницу */
  background: radial-gradient(closest-side, rgba(47, 227, 200, .075), transparent); opacity: var(--fd-so, 1); }
.fdoc__hint { position: absolute; right: 0; bottom: 0; color: var(--fg-2); font-size: 11px; transition: color .15s; }
.fdoc:hover .fdoc__hint, .fdoc:focus-within .fdoc__hint { color: var(--trace); }
.fdoc--pass { max-width: 340px; margin: 22px 0 6px; }
@media (prefers-reduced-motion: reduce) { .fdoc__sheet { will-change: auto; } }

/* переключатель звука: моноширинная строка прибора, не кнопка-плашка */
.snd { padding: 2px 0; border: 0; border-bottom: 1px dotted var(--line-2); background: none; color: var(--fg-2); font: inherit; font-size: 12px; cursor: pointer; }
.snd:hover, .snd[aria-pressed="true"] { color: var(--trace); border-bottom-color: var(--trace); }
.readout .snd { margin-top: 10px; }

/* кадр для превью ссылки (?static=1&og=1) */
.og .top .nav, .og .top .term-btn, .og .top .btn, .og .readout, .og .caption, .og .hero__cta, .og .crumb, .og .thread, .og .birth { display: none !important; }
.og .hero__sub { font-size: 22px; }
/* 404: поле живое, подпись не меняется вместе со сбоями */
.p404 .hero { min-height: 100svh; }
.p404 .hero__cta .btn:not(.btn--signal) { border: 1px solid var(--line-2); }

/* клавиатура (проход 5): элемент, ещё не «напечатанный» прокруткой, при фокусе показывается сразу */
.asm-i:focus-visible, .asm-i:focus-within { opacity: 1; transform: none; }
/* форма-терминал: фокус — левая кромка сигналом 2 px (§3 п. 7), как у полей тикета на главной */
.trf__row:focus-within { box-shadow: inset 2px 0 0 var(--signal); }

/* /amocrm/ проход 6: строка партнёра под кнопкой первого экрана; в варианте 3 — кнопка «Сертификат партнёра» */
.hero__note { margin-top: 14px; color: var(--fg-2); font-size: 12px; }
.hero__doc { padding: 2px 0; border: 0; border-bottom: 1px dotted var(--trace); background: none; color: var(--trace); font: inherit; cursor: zoom-in; }
.hero__doc:hover { border-bottom-style: solid; }
/* бесплатный аудит: текст слева, разбор заявки справа */
.audit__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.audit__txt p { margin-top: 14px; color: #c4d3d2; font-size: 17px; }
.audit__txt .btn { margin-top: 26px; }
.audit__txt .audit__fine { margin-top: 12px; color: var(--fg-2); font-size: 12px; }
.audit__scan { position: relative; padding: clamp(16px, 2vw, 26px); border: 1px solid var(--line-2); background: var(--bg-2); }
.audit__h { color: var(--fg-2); font-size: 12px; }
.audit__h + .audit__bar { margin-top: 8px; }
.audit__row + .audit__h { margin-top: 26px; }
.audit__bar { height: 2px; background: var(--line); }
.audit__bar i { display: block; height: 100%; background: var(--signal); transform: scaleX(0); transform-origin: 0 50%; }
.audit__bar--will i { background: var(--trace); }
.audit__row { margin: 12px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.audit__row li { position: relative; padding: 10px 10px 10px 12px; border: 1px solid var(--line); color: var(--fg-2); font-size: 14px; line-height: 1.3;
  opacity: .4; transition: opacity .2s, border-color .2s, color .2s, transform .3s var(--ease); }
.audit__row li b { display: block; font-weight: 560; }
.audit__row li span { display: block; margin-top: 6px; font-size: 11px; color: var(--fg-2); }
.audit__row--now li.is-seen { opacity: 1; color: var(--fg); }
.audit__row--now li.is-loss.is-seen { border-color: var(--signal); color: var(--signal); }
.audit__row--now li.is-loss.is-seen::after { content: "✗ потеря"; position: absolute; right: 8px; top: -9px; padding: 0 5px; background: var(--signal); color: var(--signal-ink);
  font: 600 10px/16px var(--mono); }
.audit__row--will li { transform: translateY(10px); }
.audit__row--will li.is-on { opacity: 1; color: var(--fg); border-color: var(--trace); transform: none; }
.audit__row--will li.is-on::before { content: "✓"; position: absolute; right: 8px; top: 8px; color: var(--trace); font-family: var(--mono); font-size: 12px; }
.audit__res { margin-top: 18px; color: var(--fg-2); font-size: 12px; opacity: 0; transition: opacity .3s; }
.audit__res b { color: var(--fg); font-weight: 500; }
.audit__scan.is-done .audit__res { opacity: 1; }
.audit__scan.is-static .audit__row li { transition: none; }
@media (max-width: 1017px) { .audit__in { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .audit__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* цена: две строки и честная оговорка над калькулятором (.cost — класс .price уже занят карточками цен прохода 2) */
.cost { margin: 22px 0 0; max-width: 760px; border-top: 1px solid var(--line); }
.cost > div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cost dt { color: var(--fg-2); font-size: 12px; }
.cost dd { margin: 0; color: var(--fg); font-size: 19px; font-weight: 560; }
.cost > div:first-child dd { font-size: clamp(24px, 2.4vw, 32px); font-variant-numeric: tabular-nums; }
.cost__fine { margin-top: 12px; color: #c4d3d2; }
.cost__honest { margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--trace); color: var(--fg-2); font-size: 12px; max-width: 70ch; }
@media (max-width: 760px) { .cost > div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* плавность: анимируемые от прокрутки элементы пайплайна и журнала — свои слои, пока блок рядом с экраном */
.pipe-rail.is-near .pipe2__fill, .pipe-rail.is-near .pipe2__dot { will-change: transform; }
.incv-rail.is-near .incv__t, .incv-rail.is-near .incv__s { will-change: transform, opacity; }

/* липкие пины — сами отдельным слоем, пока блок рядом с экраном: WebKit двигает их видеокартой, а не перерисовывает
   на каждом шаге прокрутки (замер в WebKit iPhone: /amocrm/ «Этапы» 42 → 20 мс, «Аудит» 37 → 17 мс на кадр).
   will-change — на самом липком элементе, не на родителе (на родителе Safari ломает липкость) */
.pin.is-on.is-near .hero, .pipe-rail.is-on.is-near .pipe-stick, .incv-rail.is-on.is-near .incv-stick,
.sboi.is-near .sboi__panel, .calc.is-near .calc__res { will-change: transform; }

/* «Этапы» /amocrm/ — пучок линий из хаоса (проход 7, A-blok-voronka). Стадии на десктопе идут справа налево вдоль пучка:
   1 — у хаоса, 4 — у ровного канала. В DOM порядок прежний (1…4), меняется только раскладка */
.fun { position: relative; height: clamp(120px, 15vw, 210px); margin: 0 0 10px; overflow: hidden; }
.fun__win { position: absolute; inset: 0; overflow: hidden; }
.fun__svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; fill: none; stroke: var(--trace); stroke-width: 1; opacity: .7; }
.pipe-rail.is-near .fun__win, .pipe-rail.is-near .fun__svg { will-change: transform; }
.fun__x { position: absolute; left: 71%; top: 50%; width: 16px; height: 46%; transform: translateY(-50%);
  background: repeating-linear-gradient(to bottom, var(--signal) 0 3px, transparent 3px 6px); transition: background .4s; }
.fun__x::after { content: ""; position: absolute; left: -10px; right: -10px; top: 50%; height: 1px; background: var(--signal); }
.fun__x.is-fixed { background: repeating-linear-gradient(to bottom, rgba(159, 216, 208, .0) 0 3px, transparent 3px 6px); }
.fun__x.is-fixed::after { background: var(--trace); }
@media (min-width: 761px) {
  .pipe-sec--fun .pipe2__rail { display: none; }
  .pipe-sec--fun .pipe2__stages { direction: rtl; }
  .pipe-sec--fun .st { direction: ltr; }
}
@media (max-width: 760px) {
  .fun { height: 96px; margin-left: -28px; }
}
/* 360 px: fieldset по умолчанию не уже своего содержимого (min-width: min-content) — три сегмента приоритета распирали
   форму на 7 px, а за ней в мобильном браузере расширялся весь макет. Сегменты делят ширину поровну */
.form.tk > * { min-width: 0; }
.tk__prio { min-width: 0; }
@media (max-width: 400px) {
  .seg { display: flex; }
  .seg label { flex: 1 1 0; min-width: 0; }
  .seg span { justify-content: center; padding: 0 6px; }
}
