/* ==========================================================================
   Nyquist — shared design system
   Locked palette · Inter Tight + JetBrains Mono · hairline editorial grid
   Used by: index.html, Platform.html, Operators.html, Research.html, Why Nyquist.html
   ========================================================================== */

:root{
  --d:1;
  --rule: calc(150px * var(--d));
  --rule-half: calc(88px * var(--d));
  --pad-x: 56px;
  --max-w: 1480px;

  --font-sans: "Inter Tight", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --bg:        #F6F6F4;
  --bg-2:      #ECECE7;
  --panel:     #FFFFFF;
  --ink:       #0B0E14;
  --ink-2:     #353842;
  --ink-3:     #696C75;
  --ink-4:     #9A9C9F;
  --line:      #E2E2DB;
  --line-2:    #D0D0C7;
  --hair:      rgba(11,14,20,.10);
  --grid:      rgba(11,14,20,.045);  /* сетка полотна 30px; = design-system/tokens.css */
  --accent:    #2D6BFF;
  --accent-ink:#FFFFFF;
  --accent-tint:#EEF2FF;
  --accent-deep:#1E4FD1;   /* accent как текст <18px; значения = design-system/tokens.css */
  --pos: #1F6B3E;
  --neg: #8A2B1E;
  --warn:#8A6A1E;
}
html[data-theme="dark"]{
  --bg:        #0C0D10;
  --bg-2:      #15171B;
  --panel:     #14161A;
  --ink:       #F2F0EA;
  --ink-2:     #C8C7C1;
  --ink-3:     #8A8B8E;
  --ink-4:     #555659;
  --line:      #23252A;
  --line-2:    #2E3036;
  --hair:      rgba(242,240,234,.14);
  --grid:      rgba(242,240,234,.05);
  --accent-tint:#10183A;
  --accent-deep:#6E9BFF;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font-sans);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  font-feature-settings:"ss01","cv11";
}
.mono{
  font-family:var(--font-mono);
  font-feature-settings:"zero","ss01";
  letter-spacing:0;
  text-transform:uppercase;
}
a{color:inherit; text-decoration:none}
::selection{ background:var(--accent); color:var(--accent-ink)}

.wrap{ max-width:var(--max-w); margin:0 auto; padding:0 var(--pad-x) }
.rule{ height:1px; background:var(--hair); border:0; margin:0 }

/* ============ TYPE ============ */
h1,h2,h3,h4{margin:0; font-weight:500; letter-spacing:-0.035em; line-height:1.0}
h1{ font-size: clamp(42px, 6.4vw, 84px); font-weight:400; letter-spacing:-0.045em; line-height:.96 }
h2{ font-size: clamp(30px, 4.2vw, 54px); font-weight:400; letter-spacing:-0.035em; line-height:1.0 }
h3{ font-size: clamp(22px, 2.4vw, 32px); font-weight:500; letter-spacing:-0.02em; line-height:1.08 }
h4{ font-size: 18px; letter-spacing:-0.01em; font-weight:500 }
p{ margin:0; color:var(--ink-2)}
em.serif{ font-style:italic; color:var(--ink); font-weight:400; font-feature-settings:"ss01"}
.ink-3{ color:var(--ink-3)}
.ink-2{ color:var(--ink-2)}

.lede{ font-size:18.5px; line-height:1.45; color:var(--ink-2); max-width:34ch; font-weight:400 }
.body-l{ font-size:16.5px; line-height:1.6; color:var(--ink-2); max-width:64ch }
.body{ font-size:16px; line-height:1.55; color:var(--ink-2); max-width:64ch }

.mark{
  font-family:var(--font-mono); font-size:11.5px;
  color:var(--ink-3); letter-spacing:.16em; text-transform:uppercase;
}
.mark b{ color:var(--ink); font-weight:500 }
.mark .ast{ color:var(--accent); margin-right:6px }

.ix{
  font-family:var(--font-mono); font-size:12.5px;
  color:var(--ink-3); letter-spacing:.06em; text-transform:uppercase;
  display:inline-flex; align-items:baseline; gap:10px;
  white-space:nowrap;
}
.ix .ast{ color:var(--accent) }
.ix b{ color:var(--ink); font-weight:500 }

/* ============ BUTTONS ============ */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  height:46px; padding:0 22px;
  font-family:var(--font-sans);
  font-size:15px; font-weight:500;
  border:1px solid transparent; border-radius:999px;
  cursor:pointer; white-space:nowrap; letter-spacing:-0.005em;
  transition:background .15s ease, border-color .15s ease, color .15s ease;
}
.btn .arrow{ font-family:var(--font-mono); font-size:13px; transform:translateY(-1px)}
.btn-primary{ background:var(--ink); color:var(--bg); border-color:var(--ink)}
.btn-primary:hover{ background:var(--accent); border-color:var(--accent); color:var(--accent-ink)}
.btn-ghost{ background:transparent; color:var(--ink); border-color:var(--line-2)}
.btn-ghost:hover{ border-color:var(--ink) }
.btn-link{
  display:inline-flex; align-items:center; gap:10px;
  color:var(--ink); font-weight:500; font-size:15px;
  border-bottom:1px solid var(--ink); padding-bottom:2px;
  white-space:nowrap;
}
.btn-link:hover{ color:var(--accent); border-bottom-color:var(--accent) }
.btn-sm{ height:36px; padding:0 16px; font-size:13.5px }

/* ============ HEADER ============ */
header.site{
  position:sticky; top:0; z-index:50;
  background:color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter:saturate(1.2) blur(10px);
}
.hd{
  display:grid; grid-template-columns: 1fr auto 1fr;
  align-items:center; height:72px;
  border-bottom:1px solid var(--hair);
}
.brand{ display:flex; align-items:center; gap:10px; font-weight:500; letter-spacing:-0.02em }
.brand img{ width:22px; height:22px; display:block; border-radius:3px }
.brand .name{ font-size:17px; letter-spacing:-0.025em }
nav.top{ display:flex; gap:32px; justify-content:center }
nav.top a{ color:var(--ink-2); font-size:14px }
nav.top a:hover{ color:var(--ink) }
nav.top a.active{ color:var(--ink) }
nav.top a.active::after{
  content:"★"; color:var(--accent); font-size:8px;
  vertical-align:super; margin-left:4px;
}
.hd-right{ display:flex; gap:8px; justify-content:flex-end; align-items:center}
.hd-right .mono{ font-size:11.5px; color:var(--ink-3); letter-spacing:.14em; margin-right:10px; white-space:nowrap}
.hd-right .pulse{
  width:7px; height:7px; border-radius:50%; background:var(--pos);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--pos) 18%, transparent);
  display:inline-block; transform:translateY(-1px); margin-right:8px;
}

/* ============ SECTIONS ============ */
section{ padding: var(--rule) 0; position:relative }
section + section{ border-top:1px solid var(--hair) }
.section-head{
  display:grid; grid-template-columns: minmax(280px, max-content) 1fr; gap:56px;
  align-items:start; margin-bottom: var(--rule-half);
}
.section-head .ix{ position:sticky; top:96px; }

/* ============ PAGE HERO (interior pages) ============ */
.page-hero{ padding-top: 88px; padding-bottom: var(--rule-half) }
.page-hero .ix{ margin-bottom:40px }
.page-hero h1{
  font-size: clamp(36px, 5vw, 62px); line-height:1.0; max-width:18ch;
}
.page-hero h1 em{ font-style:italic; color:var(--ink-3); font-weight:400 }
.page-hero h1 .ac{ color:var(--accent) }
.page-hero .lede{
  margin-top:36px; max-width:62ch; font-size:18.5px;
}
.page-hero .hero-foot{
  display:flex; gap:40px; flex-wrap:wrap;
  margin-top:56px; padding-top:28px; border-top:1px solid var(--hair);
}
.page-hero .hero-foot .row{
  font-family:var(--font-mono); font-size:11.5px;
  color:var(--ink-3); letter-spacing:.12em; text-transform:uppercase; line-height:1.5;
}
.page-hero .hero-foot .row b{ display:block; color:var(--ink); font-weight:500; margin-top:6px }

/* ============ HERO (home) ============ */
.hero{ padding-top: 96px; padding-bottom: var(--rule) }
.hero-meta-top{
  display:grid; grid-template-columns: 1fr 1fr 1fr;
  gap:48px; padding-bottom:24px;
  border-bottom:1px solid var(--hair);
  margin-bottom: 80px;
}
.hero-meta-top .item{
  font-family:var(--font-mono); font-size:11.5px;
  color:var(--ink-3); letter-spacing:.14em; text-transform:uppercase; line-height:1.5;
}
.hero-meta-top .item b{ display:block; color:var(--ink); font-weight:500; margin-top:6px}
.hero h1{ max-width: 18ch }
.hero h1 em{ font-style:italic; color:var(--ink-3); font-weight:400; letter-spacing:-0.04em }
.hero h1 .ac{ color:var(--accent); font-weight:400 }
.hero-foot{
  display:grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto;
  gap:64px; align-items:end; margin-top: 96px;
  padding-top:32px; border-top:1px solid var(--hair);
}
.hero-foot .lede{ max-width:36ch }
.hero-foot .mono-list{ display:grid; gap:10px}
.hero-foot .mono-list .row{
  font-family:var(--font-mono); font-size:11.5px;
  color:var(--ink-3); letter-spacing:.12em; text-transform:uppercase; line-height:1.5;
}
.hero-foot .mono-list .row b{ color:var(--ink); font-weight:500 }
.hero-foot .ctas{ display:flex; gap:10px; align-items:center}
/* 2026-09-12 · строка стадии (closed beta) стоит под кнопками, а не четвёртой
   ячейкой сетки, куда она сваливалась в первую колонку второго ряда. */
.hero-foot .ctas-col{ display:grid; gap:14px; justify-items:start }
.hero-foot .ctas-col .mark{ max-width:44ch }

/* product placeholder */
.shot{
  position:relative; background:var(--panel);
  border:1px solid var(--line); border-radius:6px; overflow:hidden;
  box-shadow: 0 1px 0 rgba(11,14,20,.02), 0 30px 80px -40px rgba(11,14,20,.18);
}
.shot-head{
  height:36px; padding:0 14px;
  display:flex; align-items:center; gap:10px;
  border-bottom:1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 50%, var(--panel));
  font-family:var(--font-mono); font-size:11px; color:var(--ink-3); letter-spacing:.04em;
}
.shot-head .dots{ display:flex; gap:6px}
.shot-head .dots i{ display:block; width:8px; height:8px; border-radius:50%; background:var(--line-2)}
.shot-head .dots i.r{ background:#E16A5A } .shot-head .dots i.y{ background:#E2C04A } .shot-head .dots i.g{ background:#62B47A }
.shot-body{
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient( 135deg,
      color-mix(in oklab, var(--bg) 56%, transparent) 0 16px, transparent 16px 32px),
    var(--panel);
  display:flex; align-items:center; justify-content:center;
}
.shot-label{
  font-family:var(--font-mono); font-size:12px;
  color:var(--ink-3); text-transform:uppercase; letter-spacing:.16em;
  background:var(--panel); padding:8px 14px; border:1px solid var(--line); border-radius:999px;
}

/* ============ MANIFESTO ============ */
.manifesto{ padding: var(--rule-half) 0 }
.manifesto-grid{ display:grid; grid-template-columns: 240px 1fr; gap:64px; align-items:start }
.manifesto h2{
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight:400; letter-spacing:-0.03em; line-height:1.12; max-width: 26ch;
}
.manifesto h2 em{ font-style:italic; color:var(--accent); font-weight:400 }
.manifesto h2 i{ font-style:italic; color:var(--ink-3); font-weight:400 }

/* ============ STATS ROW ============ */
.stats{ padding: var(--rule-half) 0 }
.stats-row{ display:grid; grid-template-columns: repeat(6, 1fr); gap:0 }
.stats-row.cols-4{ grid-template-columns: repeat(4,1fr) }
.stats-row.cols-3{ grid-template-columns: repeat(3,1fr) }
.stats-row > div{ padding: 0 24px; border-left:1px solid var(--hair) }
.stats-row > div:first-child{ border-left:none; padding-left:0 }
.stats-row .n{
  font-size: clamp(32px, 3.2vw, 46px);
  font-weight:400; letter-spacing:-0.03em; line-height:1; font-variant-numeric:tabular-nums;
}
.stats-row .l{
  margin-top:18px; font-family:var(--font-mono); font-size:11px;
  color:var(--ink-3); text-transform:uppercase; letter-spacing:.14em;
}
.stats-row .d{ margin-top:10px; font-size:13.5px; color:var(--ink-2); line-height:1.5 }

/* ============ PROBLEM ============ */
.prob{ display:grid; grid-template-columns: 240px 1fr; gap:64px; align-items:start }
.prob h2{ max-width:18ch; margin-bottom:48px }
.prob-list{ display:grid; gap:0; padding:0; margin:0; list-style:none}
.prob-list li{
  display:grid; grid-template-columns: 56px 1fr 220px; gap:48px; align-items:start;
  padding:32px 0; border-top:1px solid var(--hair);
}
.prob-list li:last-child{ border-bottom:1px solid var(--hair)}
.prob-list .n{ font-family:var(--font-mono); font-size:12px; color:var(--ink-3); letter-spacing:.16em; text-transform:uppercase }
.prob-list .t{
  font-size: clamp(19px, 1.5vw, 23px); font-weight:500; letter-spacing:-0.015em; line-height:1.2;
  color:var(--ink); max-width:32ch;
}
.prob-list .t em{ font-style:italic; color:var(--ink-3); font-weight:400; letter-spacing:-0.02em }
.prob-list .p{ font-size:14.5px; color:var(--ink-2); line-height:1.55 }

/* glue diagram */
.glue{ margin-top: var(--rule-half); display:grid; grid-template-columns: 1fr 1fr; gap:96px; align-items:start }
.glue h3{ font-size: clamp(22px, 2vw, 28px); margin-bottom:18px}
/* 2026-09-13 · «шов» под списком проблемы на /why-nyquist. Разметка `.gh`/`.gf`
   написана в расчёте на подпись и цепочку шагов, а правил к ним не добавили
   ни одного: обе строки выводились обычным текстом и висели под списком
   без связи с ним. Верхняя линия у обеих колонок сшивает их в один ряд. */
.glue .gh{
  padding-top:22px; border-top:1px solid var(--hair);
  font-family:var(--font-mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--ink-3);
}
.glue .gf{
  padding-top:22px; border-top:1px solid var(--hair);
  font-family:var(--font-mono); font-size:12.5px; line-height:2; color:var(--ink-2);
}
.glue .gf span{ color:var(--ink); white-space:nowrap }
.glue .gf i{ font-style:normal; color:var(--accent); padding:0 6px }
.glue-list{ font-family:var(--font-mono); font-size:13px; color:var(--ink-2)}
.glue-list .row{
  display:grid; grid-template-columns: 1fr auto;
  padding:12px 0; border-top:1px dashed var(--line-2); letter-spacing:.04em;
}
.glue-list .row:last-child{ border-bottom:1px dashed var(--line-2)}
.glue-list .row b{ color:var(--ink); font-weight:500 }
.glue-list .row .x{ color:var(--neg); letter-spacing:.12em; text-transform:uppercase; font-size:11px }
.glue-list .row .x.warn{ color:var(--warn)}
.glue-list .row .x.ok{ color:var(--accent)}

/* ============ OPERATORS ============ */
.ops > article{
  display:grid; grid-template-columns: 240px 1fr; gap:64px; align-items:start;
  padding: var(--rule-half) 0; border-top:1px solid var(--hair);
}
.ops > article:first-of-type{ border-top:none; padding-top:0}
.ops .op-body{ display:grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); gap:64px; align-items:start }
.ops h3{
  font-size: clamp(26px, 3vw, 40px); font-weight:400; letter-spacing:-0.025em; line-height:1.06;
  max-width: 16ch; color:var(--ink);
}
.ops h3 em{ font-style:italic; color:var(--ink-3); font-weight:400}
.ops h3 .ac{ color:var(--accent) }
.ops .op-body p{ font-size:16px; line-height:1.6; color:var(--ink-2); max-width:42ch}
.ops .ftag{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--font-mono); font-size:11px; color:var(--ink-3);
  text-transform:uppercase; letter-spacing:.14em;
  padding-top:16px; margin-top:28px; border-top:1px solid var(--hair);
}
.ops .ftag b{ color:var(--ink); font-weight:500 }

/* workspace mocks */
.ws{
  border:1px solid var(--line); background:var(--panel); border-radius:6px; overflow:hidden;
  box-shadow: 0 1px 0 rgba(11,14,20,.02), 0 30px 80px -50px rgba(11,14,20,.16);
}
.ws-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 16px; border-bottom:1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 50%, var(--panel));
  font-family:var(--font-mono); font-size:11px; color:var(--ink-3); letter-spacing:.04em;
}
.ws-head .live{ display:inline-flex; align-items:center; gap:6px; color:var(--ink-2)}
.ws-head .pulse{
  width:7px; height:7px; border-radius:50%; background:var(--pos);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--pos) 18%, transparent);
}
.ws-row{
  display:grid; grid-template-columns: 180px 1fr 72px; gap:18px; align-items:start;
  padding:18px 16px; border-bottom:1px solid var(--line);
}
.ws-row:last-child{ border-bottom:none }
.ws-row .name{
  font-family:var(--font-mono); font-size:12.5px; color:var(--ink);
  font-weight:500; letter-spacing:.06em; text-transform:uppercase;
}
.ws-row .name .role{
  display:block; font-size:10.5px; color:var(--ink-3);
  font-weight:400; text-transform:uppercase; letter-spacing:.12em; margin-top:4px;
}
.ws-row .arg{ font-size:14px; color:var(--ink-2); line-height:1.5}
.ws-row .arg em{ font-style:italic; color:var(--ink); font-weight:500 }
.ws-row .score{
  text-align:right; font-family:var(--font-mono); font-size:13px; font-weight:500;
  color:var(--pos); font-variant-numeric:tabular-nums;
}
.ws-row .score.warn{ color:var(--warn)}
.ws-row .score.neg{ color:var(--neg)}
/* 2026-09-13 · колонок было ТРИ (`1fr auto 1fr`) под прежнюю разметку
   «заголовок · вердикт · уверенность справа». Разметку переписали на два
   блока (`.syn-title`+`.syn-line` и `.syn-badge`), третья колонка осталась
   пустой, и весь текст сжался в первую треть карточки, а справа зияла дыра.
   Сетка приведена к числу детей. */
.ws-synth{
  display:grid; grid-template-columns: 1fr auto; align-items:center; gap:24px;
  padding:22px 16px; background:var(--bg-2);
}
.ws-synth .syn-title{
  font-family:var(--font-mono); font-size:11px; color:var(--ink-3);
  text-transform:uppercase; letter-spacing:.14em;
}
/* 2026-09-13 · правила `.call` / `.conf` / `.conf small` удалены вместе с
   разметкой, которой они принадлежали: страница операторов давно печатает
   `.syn-line` и `.syn-badge`, а этим двум классам не осталось ни одного
   применения во всей витрине. Их место заняли правила ниже. */
.ws-synth .syn-line{
  margin-top:8px; font-size:15px; line-height:1.5; color:var(--ink);
}
.ws-synth .syn-line i{ font-style:normal; color:var(--ink-3); padding:0 2px }
.ws-synth .syn-badge{
  justify-self:end; white-space:nowrap;
  font-family:var(--font-mono); font-size:12px; letter-spacing:.04em; color:var(--ink);
  padding:8px 14px; border:1px solid var(--line); border-radius:999px; background:var(--panel);
}
.ws-inval{
  padding:14px 16px; font-family:var(--font-mono); font-size:12px; color:var(--ink-2);
  border-top:1px solid var(--line); line-height:1.5;
}
.ws-inval b{
  color:var(--neg); font-weight:500; text-transform:uppercase; letter-spacing:.12em;
  font-size:10.5px; display:block; margin-bottom:4px;
}

/* scenario table */
.scen{ width:100%; border-collapse:collapse; font-family:var(--font-mono); font-size:12.5px }
.scen th, .scen td{
  padding:14px 16px; text-align:right; font-variant-numeric:tabular-nums;
  border-bottom:1px solid var(--line);
}
.scen th{ color:var(--ink-3); font-weight:500; letter-spacing:.06em; text-transform:uppercase; font-size:10.5px }
.scen th:first-child, .scen td:first-child{ text-align:left }
.scen td:first-child{ color:var(--ink); font-size:12px}
.scen td.tot{ color:var(--ink); font-weight:500 }
.scen td.neg{ color:var(--neg) }

/* ============ VS TABLE ============ */
.vs-table{ width:100%; border-collapse:collapse; font-size:14px; margin-top: var(--rule-half)}
/* 2026-09-13 · выравнивание по левому краю и по верху. Ячейки этой таблицы —
   не отметки «да/нет», а целые фразы; по центру они ломались в середине
   скобки («Overwrite on update (no valid-\ntime)»), а по базовой линии строки
   разной высоты разъезжались между колонками. */
.vs-table th, .vs-table td{
  padding:18px 16px; border-bottom:1px solid var(--hair); text-align:left;
  vertical-align:top; color:var(--ink-2);
}
.vs-table th{
  font-family:var(--font-mono); font-size:11px; text-transform:uppercase; letter-spacing:.14em;
  color:var(--ink-3); font-weight:500; border-bottom:1px solid var(--ink-3);
}
/* 2026-09-13 · первой колонке задана ширина, а её заголовку — запрет переноса:
   «Architectural Dimension» ломался на две строки и тянул шапку вверх, пока
   остальные три заголовка стояли в одну. Ширина в процентах, а не в пикселях,
   чтобы на узком экране колонка сжималась вместе с таблицей (ниже 640px она
   уезжает в горизонтальную прокрутку по `min-width`). */
.vs-table th.cap, .vs-table td.cap{ text-align:left; color:var(--ink); padding-left:0; width:22% }
.vs-table th.cap{ white-space:nowrap }
.vs-table td.cap{ font-family:var(--font-sans); font-size:14.5px; font-weight:500; text-transform:none; letter-spacing:-0.005em}
.vs-table th.us{ color:var(--accent) }
.vs-table td.us{ background: color-mix(in oklab, var(--accent) 5%, transparent); color:var(--ink); font-weight:500 }
/* 2026-09-13 · три вердикта различаются ТОЛЬКО цветом. У `.partial` были свои
   кегль, капс и разрядка — правило писалось под короткую отметку вроде
   «PARTIAL», а в ячейках лежат целые фразы, и «MULTI-MILLION LEGACY ON-PREM
   LOCK-IN» читалось криком посреди строчного ряда. Разная типографика в одном
   столбце и есть то, что выглядело «кривым». */
.vs-table .yes,
.vs-table .no,
.vs-table .partial{ font-family:var(--font-mono); font-size:13.5px; line-height:1.5 }
.vs-table .yes{ color:var(--pos) }
.vs-table .no{ color:var(--ink-4) }
.vs-table .partial{ color:var(--warn) }
.vs-foot{ margin-top:48px; display:grid; grid-template-columns: 1fr 1fr; gap:64px; padding-top:32px; border-top:1px solid var(--hair) }
.vs-foot p{ font-size:15.5px; color:var(--ink-2); line-height:1.6}
.vs-foot b{ color:var(--ink); font-weight:500}

/* ============ PULL QUOTE ============ */
.pull{ padding: var(--rule) 0; text-align:center }
.pull blockquote{
  margin:0 auto; max-width: 24ch;
  font-size: clamp(34px, 4.4vw, 60px); font-weight:400; letter-spacing:-0.035em; line-height:1.04; color:var(--ink);
}
.pull blockquote em{ font-style:italic; color:var(--accent); font-weight:400}
.pull blockquote i{ font-style:italic; color:var(--ink-3); font-weight:400}
.pull .by{
  margin-top:48px; font-family:var(--font-mono); font-size:11.5px;
  color:var(--ink-3); text-transform:uppercase; letter-spacing:.14em;
}
.pull .by b{ color:var(--ink); font-weight:500 }

/* ============ CTA ============ */
.cta{ padding: var(--rule) 0 }
.cta-grid{ display:grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); gap:96px; align-items:end }
.cta h2{ max-width: 14ch }
.cta h2 em{ font-style:italic; color:var(--accent); font-weight:400}
.cta .lede{ margin-top:28px; font-size:17.5px; max-width:46ch}
.cta-actions{ display:flex; gap:18px; margin-top:36px; align-items:center; flex-wrap:wrap}
.cta-side{ display:grid; gap:32px }
/* h3 — Next-компоненты (порядок заголовков h2→h3), h4 — статические research/*.html */
.cta-side .blk h4, .cta-side .blk h3{
  font-family:var(--font-mono); font-size:11.5px; color:var(--ink-3);
  text-transform:uppercase; letter-spacing:.14em; margin-bottom:10px; font-weight:500;
}
.cta-side .blk p{ font-size:14.5px; color:var(--ink-2); line-height:1.55 }

/* ============ NEW: PRINCIPLE / FEATURE CARDS ============ */
.cards{ display:grid; grid-template-columns: repeat(3,1fr); gap:1px; background:var(--hair); border:1px solid var(--hair) }
.cards.two{ grid-template-columns: repeat(2,1fr) }
.card{ background:var(--bg); padding:40px 36px 44px; display:flex; flex-direction:column; min-height:300px }
.card .ci{ font-family:var(--font-mono); font-size:11px; color:var(--ink-3); letter-spacing:.14em; text-transform:uppercase }
.card .ci .ast{ color:var(--accent) }
.card h3{ margin-top:26px; font-size:21px; letter-spacing:-0.02em; max-width:18ch; line-height:1.1 }
.card h3 em{ font-style:italic; color:var(--ink-3); font-weight:400 }
.card p{ margin-top:16px; font-size:14.5px; line-height:1.55; color:var(--ink-2); max-width:36ch }
.card .meta{
  margin-top:auto; padding-top:24px; border-top:1px solid var(--hair);
  font-family:var(--font-mono); font-size:11px; color:var(--ink-3); letter-spacing:.06em; text-transform:uppercase;
}
.card .meta b{ color:var(--ink); font-weight:500 }

/* ============ NEW: VERTICAL-INTEGRATION LAYER STACK ============ */
.stack{ display:grid; gap:8px; background:transparent; border:none; border-radius:0; overflow:visible }
.stack .layer{
  background:var(--panel); padding:20px 26px;
  display:grid; grid-template-columns: 220px 1fr auto; gap:28px; align-items:center;
  border:1px solid var(--line); border-radius:8px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.stack .layer:hover{
  border-color: color-mix(in oklab, var(--accent) 45%, var(--line));
  transform: translateX(4px);
  box-shadow: 0 4px 20px -6px rgba(0,0,0,0.06);
}
.stack .layer .lk{ font-family:var(--font-mono); font-size:11px; color:var(--accent); letter-spacing:.12em; text-transform:uppercase }
.stack .layer .lk b{ display:block; color:var(--ink); font-weight:600; font-size:15.5px; letter-spacing:-0.01em; text-transform:none; margin-top:4px; font-family:var(--font-sans) }
.stack .layer .ld{ font-size:14px; color:var(--ink-2); line-height:1.55; max-width:56ch }
.stack .layer .lt{
  font-family:var(--font-mono); font-size:10.5px; color:var(--accent); letter-spacing:.08em; text-transform:uppercase; white-space:nowrap;
  background:color-mix(in oklab, var(--accent) 8%, var(--bg));
  border:1px solid color-mix(in oklab, var(--accent) 25%, transparent);
  border-radius:4px; padding:4px 10px; font-weight:500;
}
/* На 390px чип слоя вылезал за карточку (аудит 2026-10-16, VMKTM-09). */
@media (max-width: 480px){ .stack .layer .lt{ white-space: normal } }
.stack .layer.accent{
  background:color-mix(in oklab, var(--accent) 4%, var(--panel));
  border-color:color-mix(in oklab, var(--accent) 35%, var(--line));
}

/* ============ NEW: STEP / TIMELINE ============ */
.steps{ display:grid; gap:0 }
.steps .step{
  display:grid; grid-template-columns: 80px 1fr; gap:48px; align-items:start;
  padding:36px 0; border-top:1px solid var(--hair);
}
.steps .step:last-child{ border-bottom:1px solid var(--hair) }
.steps .step .sn{ font-family:var(--font-mono); font-size:13px; color:var(--accent); letter-spacing:.12em }
.steps .step h4, .steps .step h3{ font-size:20px; letter-spacing:-0.015em; font-weight:500; line-height:1.12 }
.steps .step h4 em, .steps .step h3 em{ font-style:italic; color:var(--ink-3); font-weight:400 }
.steps .step p{ margin-top:14px; font-size:15.5px; color:var(--ink-2); line-height:1.6; max-width:60ch }

/* ============ NEW: PROSE COLUMN ============ */
.prose{ max-width:64ch }
.prose p{ font-size:17px; line-height:1.65; color:var(--ink-2); margin-bottom:24px }
.prose p em{ font-style:italic; color:var(--ink) }
.prose h3{ font-size:24px; margin:44px 0 18px; letter-spacing:-0.02em }

/* ============ NEW: ROSTER (named agents) ============ */
.roster{ display:grid; grid-template-columns: repeat(4,1fr); gap:1px; background:var(--hair); border:1px solid var(--hair) }
.roster .r{ background:var(--bg); padding:24px 22px 26px }
.roster .r .nm{ font-family:var(--font-mono); font-size:13px; color:var(--ink); font-weight:500; letter-spacing:.04em; text-transform:uppercase }
.roster .r .rl{ margin-top:8px; font-size:13px; color:var(--ink-3); line-height:1.45 }
.roster .r .tag{ margin-top:14px; font-family:var(--font-mono); font-size:10px; color:var(--accent); letter-spacing:.12em; text-transform:uppercase }

/* ============ NEW: SPEC LIST (key/value) ============ */
.spec{ display:grid; gap:0; font-family:var(--font-mono); font-size:13.5px }
.spec .row{
  display:grid; grid-template-columns: 240px 1fr; gap:32px;
  padding:18px 0; border-top:1px solid var(--hair); align-items:baseline;
}
.spec .row:last-child{ border-bottom:1px solid var(--hair) }
.spec .row .k{ color:var(--ink-3); letter-spacing:.08em; text-transform:uppercase; font-size:11.5px }
.spec .row .v{ color:var(--ink); line-height:1.5 }
.spec .row .v b{ color:var(--accent); font-weight:500 }

/* ============ NEW: COMPACT OPERATOR TEASER (home) ============ */
.op-teaser{ display:grid; grid-template-columns: repeat(3,1fr); gap:1px; background:var(--hair); border:1px solid var(--hair) }
.op-teaser a{ background:var(--bg); padding:36px 32px 40px; display:flex; flex-direction:column; min-height:260px; transition:background .15s ease }
.op-teaser a:hover{ background:var(--panel) }
.op-teaser .ci{ font-family:var(--font-mono); font-size:11px; color:var(--ink-3); letter-spacing:.14em; text-transform:uppercase }
.op-teaser .ci .ast{ color:var(--accent) }
.op-teaser h3{ margin-top:24px; font-size:24px; letter-spacing:-0.025em; font-weight:400; line-height:1.08; max-width:14ch }
.op-teaser h3 em{ font-style:italic; color:var(--ink-3); font-weight:400 }
.op-teaser p{ margin-top:14px; font-size:14px; color:var(--ink-2); line-height:1.55; max-width:34ch }
.op-teaser .go{ margin-top:auto; padding-top:24px; font-family:var(--font-mono); font-size:11.5px; color:var(--ink); letter-spacing:.1em; text-transform:uppercase; display:inline-flex; gap:8px; align-items:center }
.op-teaser a:hover .go{ color:var(--accent) }

/* ============ NEW: ONTOLOGY GRID ============ */
.ont{ display:grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap:12px; background:transparent; border:none }
.ont .dom{
  background:var(--panel); padding:20px 20px 22px; display:flex; flex-direction:column;
  border:1px solid var(--line); border-radius:8px;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.ont .dom:hover{
  border-color: color-mix(in oklab, var(--accent) 40%, var(--line));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.08);
}
.ont .dom .dh{
  display:flex; align-items:center; justify-content:space-between;
  font-family:var(--font-mono); font-size:11px; color:var(--ink); font-weight:600;
  letter-spacing:.08em; text-transform:uppercase; padding-bottom:12px;
  border-bottom:1px solid var(--hair); margin-bottom:4px;
}
.ont .dom .dh .ast{ color:var(--accent) }
.ont .ent{ display:flex; align-items:baseline; justify-content:space-between; gap:10px; padding:9px 0; border-top:1px solid var(--hair) }
.ont .ent:first-of-type{ border-top:none }
.ont .ent .en{ font-size:13.5px; color:var(--ink); font-weight:500; letter-spacing:-0.01em }
.ont .ent .ec{
  font-family:var(--font-mono); font-size:11px; color:var(--ink-2);
  background:color-mix(in oklab, var(--ink) 4%, transparent);
  border-radius:3px; padding:2px 6px; font-variant-numeric:tabular-nums; white-space:nowrap;
}
.ont .ent .ec b{ color:var(--accent); font-weight:600 }

/* ============ SPEC CARD & VS WRAP ============ */
.spec-card{
  background:var(--panel); border:1px solid var(--line); border-radius:8px;
  overflow:hidden; box-shadow:0 1px 0 rgba(11,14,20,.02);
}
.spec-card .spec{ display:grid; gap:0 }
.spec-card .spec .row{
  padding:16px 24px; border-top:1px solid var(--hair);
  transition:background .12s ease;
}
.spec-card .spec .row:first-child{ border-top:none }
.spec-card .spec .row:last-child{ border-bottom:none }
.spec-card .spec .row:hover{
  background:color-mix(in oklab, var(--accent) 2%, var(--panel));
}
.vs-wrap{
  background:var(--panel); border:1px solid var(--line); border-radius:8px;
  overflow-x:auto; margin-top:36px; box-shadow:0 1px 0 rgba(11,14,20,.02);
}
.vs-wrap .vs-table{ margin-top:0 }
/* 2026-09-13 · `padding-left:0` у первой колонки писался для таблицы БЕЗ
   панели: `.vs-wrap` с рамкой появился позже, и левый столбец оказался
   приклеен к её краю, пока остальные стояли с отступом. Внутри панели отступ
   возвращаем — снаружи правило остаётся прежним. */
.vs-wrap .vs-table th.cap, .vs-wrap .vs-table td.cap{ padding-left:24px }
.vs-wrap .vs-table th:last-child, .vs-wrap .vs-table td:last-child{ padding-right:24px }

/* ============ NEW: AUDIT-REPLAY LINEAGE ============ */
.lineage{ border:1px solid var(--line); background:var(--panel); border-radius:6px; overflow:hidden;
  box-shadow: 0 1px 0 rgba(11,14,20,.02), 0 30px 80px -50px rgba(11,14,20,.16) }
.lineage .lh{
  display:flex; align-items:center; justify-content:space-between; padding:12px 16px;
  border-bottom:1px solid var(--line); background: color-mix(in oklab, var(--bg) 50%, var(--panel));
  font-family:var(--font-mono); font-size:11px; color:var(--ink-3); letter-spacing:.04em;
}
.lineage .lh .live{ display:inline-flex; align-items:center; gap:6px; color:var(--ink-2) }
.lineage .lh .pulse{ width:7px; height:7px; border-radius:50%; background:var(--pos); box-shadow:0 0 0 3px color-mix(in oklab, var(--pos) 18%, transparent) }
.lin-node{
  display:grid; grid-template-columns: 30px 150px 1fr auto; gap:18px; align-items:center;
  padding:13px 16px; border-bottom:1px solid var(--line); position:relative;
}
.lin-node:last-child{ border-bottom:none }
.lin-node .step{ font-family:var(--font-mono); font-size:11px; color:var(--ink-4); font-variant-numeric:tabular-nums }
.lin-node .ty{
  font-family:var(--font-mono); font-size:10px; color:var(--accent); letter-spacing:.12em; text-transform:uppercase;
  border:1px solid color-mix(in oklab, var(--accent) 40%, transparent); border-radius:3px; padding:3px 7px; justify-self:start;
  background:color-mix(in oklab, var(--accent) 7%, transparent);
}
.lin-node .lab{ font-size:13.5px; color:var(--ink); font-weight:500; letter-spacing:-0.01em }
.lin-node .lab small{ display:block; font-family:var(--font-mono); font-size:11px; color:var(--ink-3); font-weight:400; letter-spacing:.02em; margin-top:3px; text-transform:none }
.lin-node .meta{ text-align:right; font-family:var(--font-mono); font-size:11.5px; color:var(--ink-2); font-variant-numeric:tabular-nums }
.lin-node .meta .hash{ display:block; color:var(--ink-4); font-size:10px; margin-top:3px }
.lin-node.out{ background: color-mix(in oklab, var(--accent) 5%, var(--panel)) }
.lin-node.out .lab{ font-size:14.5px }
.lin-node.out .meta{ color:var(--neg); font-weight:500; font-size:14px }
.lineage .lf{
  padding:13px 16px; font-family:var(--font-mono); font-size:11px; color:var(--ink-3);
  letter-spacing:.04em; display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
  background: color-mix(in oklab, var(--bg) 40%, var(--panel)); border-top:1px solid var(--line);
}
.lineage .lf b{ color:var(--ink); font-weight:500 }

@media (max-width: 1100px){
  .ont{ grid-template-columns: 1fr 1fr }
}
@media (max-width: 640px){
  .ont{ grid-template-columns: 1fr }
  .lin-node{ grid-template-columns: 24px 1fr; gap:10px }
  .lin-node .ty{ grid-column:2 }
  /* 2026-09-13 · `.lab` в колонку НЕ переносили, и он автоматически вставал в
     первую — ту самую шириной 24px. Текст вылезал из неё на 65px. Мобильная
     раскладка правилась для `.ty` и `.meta`, а про подпись забыли: у грида
     промах в одном ребёнке не ломает соседей и потому не бросается в глаза. */
  .lin-node .lab{ grid-column:2 }
  .lin-node .meta{ grid-column:2; text-align:left }
}

/* ============ FOOTER ============ */
footer.site{ padding: 80px 0 56px; background:var(--bg)}
.ft-top{
  padding: 0 0 var(--rule-half);
  font-size: clamp(40px, 6vw, 84px); font-weight:400; letter-spacing:-0.04em; line-height:.98; color:var(--ink);
}
.ft-top em{ font-style:italic; color:var(--ink-3); font-weight:400 }
.ft-grid{ display:grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap:40px; align-items:start; padding-top:32px; border-top:1px solid var(--hair) }
.ft-grid h5, .ft-grid h3{ margin:0 0 16px 0; font-size:11.5px; font-family:var(--font-mono); text-transform:uppercase; letter-spacing:.16em; color:var(--ink-3); font-weight:500 }
.ft-grid a{ display:block; color:var(--ink-2); font-size:14px; padding:4px 0}
.ft-grid a:hover{ color:var(--ink)}
.ft-grid p{ font-size:14px; color:var(--ink-2); margin-top:8px; max-width:42ch}
.ft-bottom{
  display:flex; justify-content:space-between; align-items:center;
  margin-top:64px; padding-top:24px; border-top:1px solid var(--hair);
  font-family:var(--font-mono); font-size:11.5px; color:var(--ink-3); letter-spacing:.06em;
}

/* ============ NYQUIST APPLE-CONCEPT FOOTER & LOCALIZATION ============ */
.ft-grid-3{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  align-items: start;
  padding-top: 36px;
  border-top: 1px solid var(--hair);
}
.ft-col{
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.ft-col-label{
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  font-weight: 600;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hair);
  user-select: none;
}
.ft-col-section{
  display: flex;
  flex-direction: column;
}
.ft-sub-title{
  margin: 0 0 10px 0;
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  font-weight: 500;
}
.ft-links{
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ft-links a{
  display: inline-block;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.15s ease;
  width: fit-content;
}
.ft-links a:hover{
  color: var(--ink);
}

.ft-notice{
  margin-top: 48px;
  padding: 20px 0;
  border-top: 1px solid var(--hair);
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.ft-notice-tag{
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  border: 1px solid var(--hair);
  padding: 2px 7px;
  border-radius: 2px;
  white-space: nowrap;
  user-select: none;
}
.ft-notice-text{
  flex: 1 1 300px;
}
.ft-notice-link{
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.ft-notice-link:hover{
  color: var(--accent);
}

.ft-bottom-bar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: .04em;
}
.ft-bottom-left{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.ft-copyright{
  color: var(--ink-3);
  /* nowrap обрезал строку на 390px (аудит 2026-10-16, VMKTM-04): переносится. */
  overflow-wrap: anywhere;
}
.ft-legal-nav{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.ft-legal-nav a{
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.15s ease;
}
.ft-legal-nav a:hover{
  color: var(--ink);
}
.ft-divider{
  color: var(--hair);
  user-select: none;
  font-weight: 300;
}
.ft-country-box{
  display: flex;
  align-items: center;
}
.ft-country-link{
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  cursor: pointer;
  transition: color 0.15s ease;
  letter-spacing: .04em;
}
.ft-country-link:hover{
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ft-accordion-trigger{
  background: transparent;
  border: none;
  padding: 0;
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: default;
}
.ft-accordion-icon{
  display: none;
}

@media (max-width: 860px){
  .ft-grid-3{
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 0;
    border-top: 1px solid var(--hair);
  }
  .ft-col{
    gap: 0;
  }
  .ft-col-label{
    display: none;
  }
  .ft-col-section{
    border-bottom: 1px solid var(--hair);
    padding: 14px 0;
  }
  .ft-accordion-trigger{
    cursor: pointer;
    padding: 2px 0;
    margin: 0;
  }
  .ft-accordion-icon{
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 400;
    color: var(--ink-3);
    user-select: none;
  }
  .ft-col-section:not(.is-open) .ft-accordion-content{
    display: none;
  }
  .ft-col-section.is-open .ft-accordion-content{
    display: flex;
    padding-top: 10px;
    padding-bottom: 4px;
  }
  .ft-notice{
    margin-top: 0;
    border-top: none;
    padding: 24px 0 16px;
  }
  .ft-bottom-bar{
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 16px;
  }
  .ft-bottom-left{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ============ COUNTRY & REGION MODAL ============ */
.nq-modal-overlay{
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: nqFadeIn 0.2s ease-out;
}
@keyframes nqFadeIn{
  from { opacity: 0; }
  to { opacity: 1; }
}
.nq-modal-container{
  background: var(--bg);
  border: 1px solid var(--hair);
  border-radius: 6px;
  width: 100%;
  max-width: 860px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  animation: nqScaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes nqScaleIn{
  from { transform: scale(0.97); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.nq-modal-header{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--hair);
  background: var(--panel);
}
.nq-modal-title-group{
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nq-modal-badge{
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 600;
}
.nq-modal-title{
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nq-modal-desc{
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
  max-width: 60ch;
}
.nq-modal-close-btn{
  background: transparent;
  border: 1px solid var(--hair);
  border-radius: 4px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.nq-modal-close-btn:hover{
  background: var(--bg);
  border-color: var(--ink-3);
  color: var(--ink);
}
.nq-modal-controls{
  padding: 16px 28px;
  border-bottom: 1px solid var(--hair);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.nq-modal-search-wrap{
  position: relative;
  display: flex;
  align-items: center;
}
.nq-search-icon{
  position: absolute;
  left: 14px;
  color: var(--ink-3);
  font-size: 16px;
  pointer-events: none;
}
.nq-modal-search-input{
  width: 100%;
  padding: 10px 76px 10px 38px;
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 4px;
  font-size: 13px;
  color: var(--ink);
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}
.nq-modal-search-input:focus{
  border-color: var(--ink);
}
.nq-modal-search-clear{
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  cursor: pointer;
  padding: 4px 6px;
}
.nq-modal-search-clear:hover{
  color: var(--ink);
}
.nq-region-pills{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nq-region-pill{
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 4px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s ease;
}
.nq-region-pill:hover{
  border-color: var(--ink-3);
  color: var(--ink);
}
.nq-region-pill.active{
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.nq-modal-body{
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
}
.nq-country-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.nq-country-card{
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 4px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s ease;
}
.nq-country-card:hover{
  border-color: var(--ink-3);
}
.nq-country-card.is-selected-country{
  border-color: var(--accent);
}
.nq-country-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nq-country-info{
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.nq-country-code{
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
}
.nq-country-name{
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.nq-country-region{
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-3);
}
.nq-country-langs{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.nq-lang-btn{
  background: var(--bg);
  border: 1px solid var(--hair);
  border-radius: 3px;
  padding: 5px 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s ease;
}
.nq-lang-btn:hover{
  border-color: var(--ink-3);
  color: var(--ink);
  background: var(--panel);
}
.nq-lang-btn.active{
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}
.nq-lang-native{
  font-weight: 500;
}
.nq-lang-label{
  font-size: 10.5px;
  opacity: 0.8;
}
.nq-lang-check{
  font-size: 11px;
  margin-left: 2px;
}
.nq-empty-search{
  padding: 48px 0;
  text-align: center;
  color: var(--ink-3);
}
.nq-empty-search .mono{
  font-size: 12px;
  display: block;
  margin-bottom: 8px;
}
.nq-modal-footer{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  border-top: 1px solid var(--hair);
  background: var(--panel);
}
.nq-modal-footer-info{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
}
.nq-modal-footer-info strong{
  color: var(--ink);
}

/* ============ RESPONSIVE ============ */
/* Header collapses BEFORE it can overflow a narrow viewport: first tighten the
   nav gap + drop the CLOSED BETA chip (~1180px), then hide the inline nav links
   entirely (~940px). Logo + theme toggle + Request demo CTA always remain, so
   the bar never spills past the right edge on tablet / mobile. */
@media (max-width: 1180px){
  nav.top{ gap: 22px }
  .hd-right .mono{ display:none }
}
@media (max-width: 940px){
  nav.top{ display:none }
  /* justify-content:space-between не сжимает содержимое: на 768px обе mono-
     строки подвала вместе шире колонки и вылезали за правый край. */
  .ft-bottom{ flex-wrap: wrap; gap: 10px; justify-content: flex-start }
}
@media (max-width: 1100px){
  .hero-meta-top, .stats-row{ grid-template-columns: 1fr 1fr 1fr }
  .stats-row.cols-4{ grid-template-columns: 1fr 1fr }
  .stats-row > div:nth-child(4){ border-left:none; padding-left:0; padding-top:24px; border-top:1px solid var(--hair); margin-top:24px}
  .stats-row > div:nth-child(5), .stats-row > div:nth-child(6){ padding-top:24px; border-top:1px solid var(--hair); margin-top:24px}
  .section-head, .prob, .manifesto-grid, .ops > article{ grid-template-columns: 1fr; gap:32px}
  .section-head .ix{ position:static }
  .hero-foot{ grid-template-columns: 1fr; gap:32px}
  .vs-foot, .cta-grid, .ops .op-body{ grid-template-columns: 1fr; gap:48px}
  .prob-list li{ grid-template-columns: 56px 1fr; }
  .prob-list li .p{ grid-column: 2/3 }
  .glue{ grid-template-columns: 1fr; gap:48px }
  /* .cards.two нужно перечислить явно: у него специфичность (0,2,0)
     против (0,1,0) у .cards, а медиазапрос специфичности НЕ добавляет —
     без этого две колонки доживали до 390px и торчали за край. */
  .cards, .cards.two, .op-teaser{ grid-template-columns: 1fr }
  .roster{ grid-template-columns: 1fr 1fr }
  .stack .layer{ grid-template-columns: 1fr; gap:10px }
  .steps .step{ grid-template-columns: 1fr; gap:12px }
  .spec .row{ grid-template-columns: 1fr; gap:6px }
}
@media (max-width: 640px){
  :root{ --pad-x: 24px; --rule: 120px; --rule-half: 72px }
  /* Мono-лейблы (.ix) набраны прописными с трекингом .06em и держали строку
     насмерть. На 390px «★ QUANTITATIVE & RISK OPERATING SYSTEM / 42 DOMAINS ·
     53 HUBS» — 540 пикселей, то есть шире экрана в полтора раза, и вся
     страница уезжала вправо на 174px. Правило было одно на все ширины, ни
     один брейкпоинт его не отпускал. inline-flex тоже обязан переноситься —
     иначе строка не разрывается между вложенными span. */
  /* (перенос .ix вынесен в правило ≤940px ниже: на 768px строка героя
     «… / 42 DOMAINS · 54 HUBS · PILOT…» уходила за край на 69px) */
  /* 2026-09-13 · макет рабочего стола на /operators: `180px 1fr 72px` плюс
     отступы съедали 320px из 342px доступных, и аргумент агента вместе со
     счётом вылезал из карточки на 25–38px. Мобильного правила у `.ws-row`
     не было вовсе. Стопка и выравнивание счёта влево. */
  .ws-row{ grid-template-columns: 1fr; gap:10px }
  .ws-row .score{ text-align:left }
  .ws-synth{ grid-template-columns: 1fr; gap:14px }
  .ws-synth .syn-badge{ justify-self:start }
  /* Две кнопки под геро стояли в flex без переноса: 435px в 366px колонки. */
  .hero-foot .ctas{ flex-wrap: wrap }
  .stats-row{ grid-template-columns: 1fr 1fr; }
  .stats-row > div{ border-left:none; padding:24px 0; border-top:1px solid var(--hair)}
  .stats-row > div:first-child, .stats-row > div:nth-child(2){ border-top:none}
  .ft-grid{ grid-template-columns: 1fr 1fr }
  .ft-grid > div:first-child{ grid-column: 1 / -1 }
  .roster{ grid-template-columns: 1fr 1fr }
  nav.top{ display:none }
  .hd-right .mono{ display:none }
}

/* ============ EXPANSION TRAJECTORY: MATHEMATICAL SETS MODULE ============ */
.esm-module{
  background:var(--bg); border:1px solid var(--hair); border-radius:4px;
  overflow:hidden; margin-top:36px; box-shadow:0 10px 30px -10px rgba(0,0,0,0.03);
}
.esm-bar{
  display:flex; justify-content:space-between; align-items:center;
  background:var(--panel); border-bottom:1px solid var(--hair);
  padding:14px 24px; flex-wrap:wrap; gap:16px;
}
.esm-tabs{ display:flex; gap:10px; flex-wrap:wrap; }
.esm-tab{
  display:inline-flex; align-items:center; gap:10px;
  background:var(--bg); border:1px solid var(--hair); border-radius:999px;
  padding:7px 16px; cursor:pointer; color:var(--ink-2);
  font-family:var(--font-sans); font-size:13px; font-weight:500;
  transition:all .18s ease; text-align:left;
}
.esm-tab:hover{ border-color:var(--line); color:var(--ink); }
.esm-tab.active{
  background:var(--ink); color:var(--bg); border-color:var(--ink);
  box-shadow:0 2px 8px rgba(0,0,0,0.08);
}
.esm-tab .esm-sym{
  font-family:var(--font-mono); font-weight:700; font-size:15px;
  color:var(--accent); line-height:1;
}
.esm-tab.active .esm-sym{ color:var(--pos); }
.esm-tab .esm-tab-val{
  font-family:var(--font-mono); font-size:11px; opacity:.75;
  margin-left:4px; font-variant-numeric:tabular-nums;
}

.esm-progress-rail{
  width:160px; height:3px; background:var(--hair); border-radius:999px;
  overflow:hidden; position:relative; flex-shrink:0;
}
.esm-progress-fill{
  height:100%; width:0%; background:var(--accent);
  transition:width .08s linear;
}

.esm-stage-grid{
  display:grid; grid-template-columns: 1.08fr 1.15fr;
  gap:1px; background:var(--hair);
}
.esm-vis-card{
  background:var(--bg); padding:20px 16px;
  display:flex; flex-direction:column; justify-content:center; align-items:center;
}
.esm-svg-wrap{
  width:100%; height:100%; position:relative;
  display:flex; align-items:center; justify-content:center;
}
.esm-svg{ width:100%; height:auto; max-height:410px; overflow:hidden; outline:none; }
.esm-svg, .esm-svg *{ outline:none !important; -webkit-tap-highlight-color:transparent; }

/* Set SVG Styles */
.set-layer{
  cursor:pointer; outline:none !important; -webkit-tap-highlight-color:transparent;
  user-select:none; transition:all .25s ease;
}
.set-layer:focus, .set-layer:focus-visible, .set-layer:active{ outline:none !important; }
.set-layer .set-ellipse{
  fill:transparent; stroke:var(--hair); stroke-width:1.2;
  outline:none !important; transition:all .25s ease;
}
.set-layer:hover .set-ellipse{ stroke:var(--line-2); }
.set-layer.active .set-ellipse{
  stroke:var(--accent); stroke-width:2; filter:drop-shadow(0 0 10px rgba(45,107,255,0.18));
}
.set-layer-n.active .set-ellipse{ fill:color-mix(in oklab, var(--accent) 10%, transparent); }
.set-layer-r.active .set-ellipse{ fill:color-mix(in oklab, var(--pos) 6%, transparent); }
.set-layer-c.active .set-ellipse{ fill:color-mix(in oklab, var(--accent-deep) 6%, transparent); }

.set-sym-label{
  font-family:var(--font-mono); font-size:24px; font-weight:700;
  fill:var(--ink-3); transition:fill .2s ease;
}
.set-name-label{
  font-family:var(--font-sans); font-size:13px; font-weight:600;
  fill:var(--ink-2); letter-spacing:-0.01em; transition:fill .2s ease;
}
.set-metric-label{
  font-family:var(--font-mono); font-size:10.5px; fill:var(--ink-3);
  letter-spacing:.04em;
}
.set-center{ text-anchor:middle; }

.set-layer.active .set-sym-label{ fill:var(--accent); }
.set-layer.active .set-name-label{ fill:var(--ink); font-weight:700; }
.set-layer.active .set-metric-label{ fill:var(--ink-2); }


/* Right Detail Pane */
.esm-pane{
  background:var(--bg); padding:32px 36px;
  position:relative; display:flex; flex-direction:column; justify-content:center;
}
.esm-card{ display:none; flex-direction:column; animation:esmFadeIn .25s ease forwards; }
.esm-card.active{ display:flex; }
@keyframes esmFadeIn{
  from { opacity:0; transform:translateY(6px); }
  to { opacity:1; transform:translateY(0); }
}
.esm-card-header{
  display:flex; justify-content:space-between; align-items:center;
  margin-bottom:14px;
}
.esm-card-phase{
  font-family:var(--font-mono); font-size:12px; color:var(--ink-3);
  letter-spacing:.12em; text-transform:uppercase; display:inline-flex; align-items:center; gap:8px;
}
.esm-card-sym{
  display:inline-flex; align-items:center; justify-content:center;
  width:22px; height:22px; border-radius:4px; background:var(--panel);
  border:1px solid var(--hair); font-weight:700; color:var(--accent); font-size:13px;
}
.esm-card-badge{
  font-family:var(--font-mono); font-size:10.5px; font-weight:600;
  color:var(--pos); background:color-mix(in oklab, var(--pos) 12%, transparent);
  padding:3px 8px; border-radius:999px; letter-spacing:.08em; text-transform:uppercase;
}
.esm-card-title{
  font-size:clamp(22px, 2.2vw, 28px); line-height:1.15; letter-spacing:-0.02em;
  margin-bottom:14px;
}
.esm-card-title em{ font-style:italic; color:var(--ink-3); font-weight:400; }
.esm-card-p{
  color:var(--ink-2); font-size:15px; line-height:1.6; margin-bottom:24px; max-width:54ch;
}
.esm-card-stats{
  display:grid; grid-template-columns: repeat(3, 1fr); gap:12px;
  padding:16px 0; border-top:1px solid var(--hair); border-bottom:1px solid var(--hair);
  margin-bottom:20px;
}
.stat-col{ display:flex; flex-direction:column; gap:4px; }
.stat-lbl{ font-family:var(--font-mono); font-size:10.5px; color:var(--ink-3); text-transform:uppercase; letter-spacing:.08em; }
.stat-num{ font-family:var(--font-mono); font-size:16px; font-weight:600; color:var(--ink); font-variant-numeric:tabular-nums; }
.stat-det{ font-size:11.5px; color:var(--ink-3); line-height:1.3; }

.esm-card-footer{
  font-size:13px; color:var(--ink-2); line-height:1.5;
  background:var(--panel); border:1px solid var(--hair);
  border-left:3px solid var(--accent); padding:10px 14px; border-radius:2px;
}
.esm-card-footer b{ color:var(--ink); }

@media (max-width:960px){
  .esm-stage-grid{ grid-template-columns: 1fr; }
  .esm-pane{ padding:24px 20px; }
  .esm-vis-card{ padding:24px 20px; }
  .esm-card-stats{ grid-template-columns: 1fr 1fr; gap:16px; }
}
@media (max-width:640px){
  .esm-card-stats{ grid-template-columns: 1fr; }
  .esm-tabs{ width:100%; }
  .esm-tab{ flex:1; justify-content:center; font-size:12px; padding:6px 10px; }
  .esm-progress-rail{ width:100%; margin-top:8px; }
}

/* ============ COMMITTEE DECISION MEMO (SECTION 05) ============ */
.memo-card{
  border:1px solid var(--line); background:var(--bg); border-radius:4px; overflow:hidden;
  box-shadow: 0 1px 0 rgba(11,14,20,.02), 0 20px 50px -25px rgba(11,14,20,.1);
}
.memo-hd{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 20px; border-bottom:1px solid var(--hair);
  background: color-mix(in oklab, var(--bg) 60%, var(--panel));
  font-family:var(--font-mono); font-size:11px; flex-wrap:wrap; gap:10px;
}
.memo-hd-left{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.memo-path{ color:var(--ink-3); }
.memo-path b{ color:var(--ink); font-weight:600; }
.memo-chip{
  font-family:var(--font-mono); font-size:10px; padding:2px 8px; border-radius:999px;
  background:var(--panel); border:1px solid var(--hair); color:var(--ink-2);
}
.memo-metrics{
  display:grid; grid-template-columns: repeat(3, 1fr);
  gap:1px; background:var(--hair); border-bottom:1px solid var(--hair);
}
.memo-m{
  background:var(--bg); padding:16px 20px; display:flex; flex-direction:column; gap:4px;
}
.memo-m-lbl{
  font-family:var(--font-mono); font-size:10px; text-transform:uppercase;
  letter-spacing:.08em; color:var(--ink-3);
}
.memo-m-val{
  font-family:var(--font-mono); font-size:17px; font-weight:600; color:var(--ink);
  font-variant-numeric:tabular-nums; display:flex; align-items:baseline; gap:8px;
}
.memo-m-val .pos{ color:var(--pos); font-size:12px; font-weight:500; }
.memo-m-val .sub{ color:var(--ink-3); font-size:12px; font-weight:400; }
.memo-debate{
  display:grid; grid-template-columns: 1fr 1fr;
  gap:1px; background:var(--hair);
}
.memo-col{
  background:var(--bg); padding:18px 20px; display:flex; flex-direction:column; gap:8px;
}
.memo-col-hd{
  display:flex; justify-content:space-between; align-items:center;
}
.memo-desk-name{
  font-family:var(--font-mono); font-size:11px; text-transform:uppercase;
  letter-spacing:.08em; color:var(--ink-3); font-weight:500;
}
.memo-badge{
  font-family:var(--font-mono); font-size:10px; text-transform:uppercase;
  letter-spacing:.08em; padding:2px 8px; border-radius:999px; font-weight:600;
}
.memo-badge.bull{
  color:var(--pos); background:color-mix(in oklab, var(--pos) 12%, transparent);
}
.memo-badge.bear{
  color:var(--warn); background:color-mix(in oklab, var(--warn) 12%, transparent);
}
.memo-thesis-text{
  font-size:13px; color:var(--ink-2); line-height:1.55;
}
.memo-thesis-text b{ color:var(--ink); font-weight:600; }
.memo-inval-bar{
  background:var(--panel); padding:12px 20px; border-top:1px solid var(--hair);
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px;
  font-family:var(--font-mono); font-size:11.5px;
}
.memo-inval-lead{
  display:inline-flex; align-items:center; gap:6px; color:var(--neg);
  font-weight:600; text-transform:uppercase; letter-spacing:.08em; font-size:10px;
}
.inval-dot{
  width:6px; height:6px; border-radius:50%; background:var(--neg);
}
.memo-inval-rule{
  color:var(--ink); font-weight:500;
}
.memo-inval-rule i{
  font-style:normal; color:var(--ink-3); font-weight:400;
}
.memo-audit-bar{
  padding:10px 20px; background:var(--bg-2); border-top:1px solid var(--hair);
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px;
  font-family:var(--font-mono); font-size:11px; color:var(--ink-3);
}
.memo-audit-bar code{
  color:var(--accent); font-size:10.5px; background:var(--panel); padding:1px 5px; border-radius:3px;
}
.memo-audit-status{
  color:var(--pos); font-weight:500;
}

@media (max-width:860px){
  .memo-metrics{ grid-template-columns: 1fr; }
  .memo-debate{ grid-template-columns: 1fr; }
  .memo-inval-bar{ flex-direction:column; align-items:flex-start; gap:6px; }
}

/* 2026-09-12 · мобильный аудит (390px): таблица сравнения на /platform выезжала
   за экран на 185px и тянула за собой всю страницу; слои .stack вылезали на 3px.
   Таблица скроллится внутри обёртки, слой не шире колонки. */
@media (max-width: 640px){
  .vs-wrap{ overflow-x:auto; -webkit-overflow-scrolling:touch; max-width:100% }
  .vs-wrap .vs-table{ min-width:560px }
  /* Первый столбец закреплён: при прокрутке вбок фраза без подписи строки
     теряла смысл (обход 2026-10-20, 390px). */
  .vs-wrap .vs-table .cap{ position:sticky; left:0; z-index:1; background:var(--panel) }
  /* 2026-09-13 · на узком экране запрет переноса у первого заголовка только
     удлиняет горизонтальную прокрутку — там он не спасает шапку, а мешает. */
  .vs-table th.cap{ white-space:normal }
  .stack{ min-width:0 }
  .stack .layer{ max-width:100%; min-width:0; box-sizing:border-box }
  .stack .layer:hover{ transform:none }
}

/* 2026-09-12 · переход по якорю (#private, #plans, #defensibility) прятал
   заголовок под липкой шапкой. */
section[id], article[id], [id^="s"]{ scroll-margin-top: 104px }

/* 2026-09-12 · на ≤940px навигация просто исчезала: ни меню, ни кнопки —
   с телефона до /platform, /pricing и /team можно было дойти только через
   подвал. Кнопка ☰ раскрывает nav.top под шапкой. */
/* Селектор с .hd-right не для красоты: tenity.css грузится ПОСЛЕ этого файла,
   и его .theme-toggle{display:inline-flex} той же специфичности перебивал
   голый .nav-toggle{display:none} — кнопка ☰ торчала и на 1440px. */
.hd-right .nav-toggle{ display:none }
@media (max-width: 940px){
  .hd{ position:relative }
  .hd-right .nav-toggle{ display:inline-flex; margin-right:6px }
  nav.top.open{
    display:flex; flex-direction:column; align-items:flex-start; gap:14px;
    position:absolute; left:0; right:0; top:calc(100% + 8px);
    background:var(--panel); border:1px solid var(--line); border-radius:12px;
    padding:18px 20px; z-index:50;
  }
  nav.top.open a{ font-size:16px }
}
/* На 390px кнопка меню не влезала рядом с переключателем темы и CTA:
   шапка вылезала на 37px. Тема на телефоне уходит, CTA и меню остаются. */
@media (max-width: 640px){
  .hd-right .theme-toggle:not(.nav-toggle){ display:none }
  .hd-right{ gap:8px }
}

/* 2026-09-12 · ссылка «к содержимому» для клавиатуры: видна только в фокусе. */
.skip-link{ position:absolute; left:-9999px; top:12px; z-index:100; padding:10px 14px; background:var(--panel); color:var(--ink); border:1px solid var(--line); border-radius:8px; font-size:14px }
.skip-link:focus{ left:12px; outline:2px solid var(--accent) }

/* 2026-09-12 · подвал: пять колонок на десктопе, на планшете бренд занимает
   всю первую строку, ссылки — двумя колонками. */
@media (max-width: 1000px) and (min-width: 641px){
  .ft-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap:32px 40px }
  .ft-grid > div:first-child{ grid-column: 1 / -1 }
}

/* 2026-09-13 · юридические страницы (/privacy, /terms). Разметка `.legal` и
   `.legal-toc` жила с момента появления страниц, а правил к ней не было НИ
   ОДНОГО: оглавление слипалось в одну строку без разделителей, заголовки
   разделов брали дисплейный кегль глобального h2, текст тянулся на всю ширину
   полотна без меры строки. Класс дефектов, слепой для всех гейтов: разметка
   есть, стиля нет — сборка зелёная, vue-tsc и eslint CSS не читают. */
.legal-toc{
  display:flex; flex-wrap:wrap; gap:10px 0;
  padding:18px 0; margin-bottom:56px;
  border-top:1px solid var(--hair); border-bottom:1px solid var(--hair);
  font-family:var(--font-mono); font-size:11px; letter-spacing:.12em; text-transform:uppercase;
}
.legal-toc a{ color:var(--ink-3); padding:0 16px; border-left:1px solid var(--line) }
.legal-toc a:first-child{ padding-left:0; border-left:none }
.legal-toc a:hover{ color:var(--accent) }

.legal{ max-width:68ch }
.legal h2{
  font-size:21px; font-weight:600; letter-spacing:-0.02em; line-height:1.2;
  margin-top:48px; padding-top:24px; border-top:1px solid var(--hair);
}
.legal h2:first-child{ margin-top:0; padding-top:0; border-top:none }
.legal p{ margin-top:16px; font-size:15px; line-height:1.65; color:var(--ink-2) }
/* Список документов на /legal — единственный <ul> в этих трёх страницах;
   без правила он брал браузерные отбивки и маркеры не в тон тексту. */
.legal ul{ margin-top:16px; padding-left:20px }
.legal li{ margin-top:8px; font-size:15px; line-height:1.65; color:var(--ink-2) }
.legal li::marker{ color:var(--ink-4) }
.legal p b{ color:var(--ink); font-weight:600 }
.legal a{ color:var(--ink); border-bottom:1px solid var(--line-2); padding-bottom:1px }
.legal a:hover{ color:var(--accent); border-bottom-color:var(--accent) }

/* 2026-10-31 · таблица поставщиков на /subprocessors/. У `.legal` не было ни
   одного правила для <table>, а колонка в 68ch не вмещает четыре столбца:
   `.wide` снимает меру строки с контейнера, а абзацы и списки внутри него
   возвращает к ней. На узком экране таблица прокручивается сама, страница —
   нет. */
.legal.wide{ max-width:none }
.legal.wide > p, .legal.wide > ul{ max-width:68ch }
.legal-table{ margin-top:20px; overflow-x:auto; -webkit-overflow-scrolling:touch; max-width:100% }
.legal-table table{ width:100%; min-width:820px; border-collapse:collapse; font-size:14px; line-height:1.55 }
.legal-table thead th{
  text-align:left; padding:10px 20px 10px 0; border-bottom:1px solid var(--line);
  font-family:var(--font-mono); font-size:11px; font-weight:500; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-3);
}
.legal-table tbody th, .legal-table td{
  text-align:left; vertical-align:top; padding:16px 20px 16px 0; border-bottom:1px solid var(--hair); color:var(--ink-2);
}
.legal-table tbody th{ width:15%; color:var(--ink); font-weight:600 }
.legal-table tbody th a{ display:block; margin-top:6px; font-size:12px; font-weight:400 }
/* До 640px строка таблицы становится карточкой: подпись столбца берётся из
   data-label ячейки, шапку убираем из вида (читалка экрана её видит). */
@media (max-width: 640px){
  .legal-table table{ min-width:0 }
  .legal-table thead{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0) }
  .legal-table tr{ display:block; padding:16px 0; border-bottom:1px solid var(--hair) }
  .legal-table tbody th, .legal-table td{ display:block; width:auto; padding:6px 0; border-bottom:none }
  .legal-table td::before{
    content:attr(data-label); display:block; margin-bottom:2px;
    font-family:var(--font-mono); font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-3);
  }
}

/* ============ DEVELOPER WORKBENCH (CLI & MCP) ============ */
.dev-workbench{
  margin-top: 40px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px -8px rgba(0,0,0,0.08);
}
.dev-wb-hd{
  background: color-mix(in oklab, var(--bg) 60%, var(--panel));
  border-bottom: 1px solid var(--line);
  padding: 8px 12px;
}
.dev-wb-tabs{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.dev-wb-tab{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.dev-wb-tab:hover{
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  color: var(--ink);
}
.dev-wb-tab.active{
  background: var(--bg);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: 0 2px 8px -2px rgba(0,0,0,0.06);
}
.dev-wb-tab b{
  font-weight: 600;
}
.dev-wb-tab .tag{
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-3);
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--panel);
  border: 1px solid var(--hair);
}
.dev-wb-tab.active .tag{
  color: var(--accent);
  background: color-mix(in oklab, var(--accent) 8%, transparent);
  border-color: color-mix(in oklab, var(--accent) 25%, transparent);
}
.dot-agent{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 20%, transparent);
}
.sym-cli{
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--pos);
}
.sym-py{
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-deep);
}
.dev-wb-body{
  padding: 36px 36px 40px;
}
.dev-wb-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.25fr);
  gap: 40px;
  align-items: start;
}
.dev-wb-badge{
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in oklab, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 25%, transparent);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.dev-wb-info h3{
  font-size: clamp(22px, 2.2vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--ink);
}
.dev-wb-info p{
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 24px;
}
.dev-feature-list{
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.df-item{
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.df-item code{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  background: color-mix(in oklab, var(--accent) 8%, transparent);
  padding: 1px 4px;
  border-radius: 3px;
  white-space: nowrap;
}
.df-item b{
  color: var(--ink);
  font-weight: 600;
}
.df-ast{
  color: var(--accent);
  font-size: 11px;
}
.dev-wb-code-col{
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.code-box{
  background: #06080d;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.cb-hd{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cb-file{
  font-family: var(--font-mono);
  font-size: 12px;
  color: #8b9bb4;
}
.cb-copy{
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: #cfd8e3;
  padding: 3px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.cb-copy:hover{
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}
.cb-pre{
  padding: 18px 18px;
  margin: 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: #e2e8f0;
}
.cb-pre code{
  font-family: inherit;
}
.cb-foot{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: rgba(0,0,0,0.25);
  border-top: 1px solid rgba(255,255,255,0.04);
  font-family: var(--font-mono);
  font-size: 11px;
  color: #64748b;
  flex-wrap: wrap;
  gap: 8px;
}
.cb-foot code{
  color: #94a3b8;
}
.tool-chips-bar{
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.tcb-lbl{
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-right: 4px;
}
.tcb-chip{
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
  background: var(--bg);
  border: 1px solid var(--hair);
  border-radius: 3px;
  padding: 3px 7px;
}

@media (max-width: 960px){
  /* minmax(0,…), не 1fr: у 1fr минимум — min-content, и строка JSON в .cb-pre
     раздвигала колонку до 463px при карточке 340 (телефон 390, overflow:hidden
     карточки резал заголовок и текст справа). */
  .dev-wb-grid{
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .dev-wb-body{
    padding: 24px 20px;
  }
}


/* ── Ролик (ReelVideo, секции 05 и 07 главной) ─────────────────────────────
   Рамка как у карточек витрины: линия, радиус 4px, без тени. Кнопки — моно-подписи. */
.reel{ margin:0 }
.reel-frame{
  position:relative; aspect-ratio:16 / 9; overflow:hidden;
  border:1px solid var(--line); border-radius:4px; background:var(--bg-2);
}
.reel-frame video{ display:block; width:100%; height:100%; object-fit:cover }
.reel-ctl{ position:absolute; right:12px; bottom:12px; display:flex; gap:8px }
.reel-ctl button{
  font-family:var(--font-mono); font-size:11px; letter-spacing:.06em; text-transform:uppercase;
  color:var(--ink); background:var(--panel); border:1px solid var(--line-2); border-radius:4px;
  padding:6px 10px; cursor:pointer;
}
.reel-ctl button:hover{ border-color:var(--ink) }
.reel-ctl button:focus-visible{ outline:2px solid var(--accent); outline-offset:2px }
.reel-cap{ display:block; margin-top:14px }
@media (max-width: 640px){
  .reel-ctl{ right:8px; bottom:8px }
  .reel-ctl button{ padding:5px 8px; font-size:10px }
}

/* 2026-10-18 · Мono-лейбл .ix держит строку nowrap, и перенос включался только
   на ≤640px. Между 640 и ~840 строка героя портала «★ … $500M AUM / 42 DOMAINS ·
   54 HUBS · PILOT PROGRAM» резалась краем окна (768px: правый край 837px).
   Порог — как у сворачивания навигации. */
@media (max-width: 940px){
  .ix{ white-space: normal; flex-wrap: wrap }
}
