/* КОН. Один акцент — бордовый цвет печати, второй цвет — золото подписи. Цвета только через токены, две темы. */
:root {
  color-scheme: dark;
  --bg: #0b0809;
  --bg-2: #141012;
  --bg-3: #1d171a;
  --ink: #f1ecec;
  --ink-2: #b9adb0;
  --ink-3: #7d7175;
  --line: rgba(241, 236, 236, 0.1);
  --line-2: rgba(241, 236, 236, 0.22);
  --acc: #ea6a88;
  --acc-bg: #9c2947;
  --acc-soft: rgba(234, 106, 136, 0.12);
  --on-acc: #ffffff;
  --sig: #f0b445;

  --sans: 'Golos Text Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --wrap: 1240px;
  --pad: clamp(20px, 5vw, 56px);
  --r: 14px;
  --nav-h: 64px;
}
@media (prefers-color-scheme: light) {
  html:not([data-theme]) {
    color-scheme: light;
    --bg: #f6f3f2; --bg-2: #ffffff; --bg-3: #ece6e5;
    --ink: #170d10; --ink-2: #4b3d40; --ink-3: #85777a;
    --line: rgba(23, 13, 16, 0.12); --line-2: rgba(23, 13, 16, 0.28);
    --acc: #7d1d33; --acc-bg: #7d1d33; --acc-soft: rgba(125, 29, 51, 0.09); --on-acc: #ffffff; --sig: #a8690a;
  }
}
html[data-theme='light'] {
  color-scheme: light;
  --bg: #f6f3f2; --bg-2: #ffffff; --bg-3: #ece6e5;
  --ink: #170d10; --ink-2: #4b3d40; --ink-3: #85777a;
  --line: rgba(23, 13, 16, 0.12); --line-2: rgba(23, 13, 16, 0.28);
  --acc: #7d1d33; --acc-bg: #7d1d33; --acc-soft: rgba(125, 29, 51, 0.09); --on-acc: #ffffff; --sig: #a8690a;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6; font-feature-settings: 'tnum';
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.028em; }
em { font-style: normal; color: var(--acc); }
button { font: inherit; color: inherit; }
::selection { background: var(--acc-bg); color: var(--on-acc); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }

.W { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* ───────── типографика ───────── */
.display { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -0.038em; font-weight: 600; text-wrap: balance; }
.t2 { font-size: clamp(30px, 3.9vw, 54px); line-height: 1.05; letter-spacing: -0.034em; text-wrap: balance; }
.lead { font-size: clamp(18px, 1.55vw, 22px); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.cap, .mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; color: var(--acc); }

.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 18px; max-width: 860px; margin-bottom: clamp(36px, 5vw, 64px); }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; font-weight: 600; font-size: 16px; border: 1px solid var(--line-2); color: var(--ink); background: transparent; cursor: pointer; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s, color 0.25s; }
.btn:hover { border-color: var(--acc); color: var(--acc); }
.btn-g { background: var(--acc-bg); border-color: var(--acc-bg); color: var(--on-acc); }
.btn-g:hover { color: var(--on-acc); transform: translateY(-2px); box-shadow: 0 14px 40px -14px var(--acc-bg); }

/* появление при прокрутке */
.r { opacity: 0; transform: translateY(18px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.r.v { opacity: 1; transform: none; }
.r.d2 { transition-delay: 0.08s; } .r.d3 { transition-delay: 0.16s; } .r.d4 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .r { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ───────── шапка ───────── */
#nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--pad); border-bottom: 1px solid transparent; transition: background 0.3s, border-color 0.3s; }
#nav.scrolled, #nav.solid { background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom-color: var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo .mark { box-sizing: border-box; width: 38px; height: 38px; padding: 4px; border-radius: 10px; background: var(--acc-bg); color: #fff; flex-shrink: 0; }
.nav-logo .word { height: 22px; width: auto; color: var(--ink); flex-shrink: 0; }
.nav-links { display: flex; gap: 28px; font-size: 14.5px; color: var(--ink-2); }
.nav-links a:hover { color: var(--acc); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-cta { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; transition: border-color 0.25s, color 0.25s; }
.nav-cta:hover { border-color: var(--acc); color: var(--acc); }
.nav-theme-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; cursor: pointer; }
.nav-theme-btn:hover { border-color: var(--acc); }
.theme-icon { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--ink); background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); }
@media (max-width: 860px) { .nav-links { display: none; } }
@media (max-width: 480px) { .nav-cta { display: none; } }

/* ───────── первый экран ───────── */
#hero { padding: calc(var(--nav-h) + clamp(32px, 5vw, 64px)) 0 0; position: relative; overflow: hidden; }
#hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 85% 0%, var(--acc-soft), transparent 70%); }
.hero-top { position: relative; display: grid; gap: 20px; max-width: 980px; }
.hero-top .cap { font-size: 14px; }
.hero-top .lead { max-width: 780px; font-size: clamp(17px, 1.35vw, 20px); }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* ───────── круг заверения ───────── */
.ring-wrap { position: relative; width: 100%; height: clamp(380px, 35vw, 500px); margin-top: clamp(28px, 3.5vw, 48px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, transparent, var(--bg-2)); }
.ring-wrap canvas, .story-pin canvas { display: block; width: 100%; height: 100%; }
.ring-note { padding: 16px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-3); }

/* ───────── процесс: сцена стоит, шаги идут ───────── */
.story { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.story-scene { order: 2; position: sticky; top: calc(var(--nav-h) + 20px); height: calc(100vh - var(--nav-h) - 40px); min-height: 420px; }
.story-pin { position: relative; height: 100%; border: 1px solid var(--line); border-radius: 22px; background: radial-gradient(80% 70% at 50% 45%, var(--bg-2), var(--bg-3)); overflow: hidden; }
.story-cap { position: absolute; left: 22px; top: 18px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.story-cap b { color: var(--acc); font-weight: 500; }
.story-steps { order: 1; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 24px 0; opacity: 0.32; transition: opacity 0.4s; }
.step.on { opacity: 1; }
.step .mono { color: var(--ink-3); }
.step.on .mono { color: var(--acc); }
.step h3 { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.12; text-wrap: balance; }
.step p { color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.step a { color: var(--acc); border-bottom: 1px solid currentColor; }
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; gap: 0; }
  .story-scene { order: 1; top: var(--nav-h); height: 44vh; min-height: 300px; z-index: 5; background: var(--bg); padding: 10px 0; }
  .story-steps { order: 2; }
  .step { min-height: 56vh; }
}

/* ───────── состав: слои вокруг реестра ───────── */
.stack { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.rings { width: 100%; max-width: 520px; margin: 0 auto; aspect-ratio: 1; }
.rings svg { display: block; width: 100%; height: 100%; overflow: visible; }
.rings .rg { fill: none; stroke: var(--line-2); stroke-width: 1.2; transition: stroke 0.4s, stroke-width 0.4s; }
.rings .orb { transform-origin: 200px 200px; animation: orbit linear infinite; }
.rings .orb circle { fill: var(--bg-2); stroke: var(--line-2); stroke-width: 1.2; transition: fill 0.4s, stroke 0.4s; }
.rings .core { fill: var(--acc-bg); stroke: var(--acc-bg); stroke-width: 1.2; }
.rings .core-s { fill: none; stroke: #fff; stroke-width: 4.4; stroke-linecap: round; stroke-linejoin: round; }
.rings text { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--ink-3); text-anchor: middle; transition: fill 0.4s; }
.rings [data-l].on .rg { stroke: var(--acc); stroke-width: 2.2; }
.rings [data-l].on .orb circle { fill: var(--acc); stroke: var(--acc); }
.rings [data-l].on text { fill: var(--acc); }
@keyframes orbit { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rings .orb { animation: none; } }
.layers { display: grid; gap: 12px; }
.layer { display: grid; grid-template-columns: 44px 1fr; gap: 6px 16px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); cursor: default; transition: border-color 0.3s, transform 0.3s; }
.layer .n { grid-row: span 2; font-family: var(--mono); font-size: 13px; color: var(--ink-3); padding-top: 4px; transition: color 0.3s; }
.layer h3 { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.2; }
.layer p { color: var(--ink-2); font-size: 16px; text-wrap: pretty; }
.layer.on { border-color: var(--acc); }
.layer.on .n { color: var(--acc); }
@media (max-width: 900px) { .stack { grid-template-columns: 1fr; } .rings { max-width: 360px; } }

/* числа */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: clamp(36px, 5vw, 64px); background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.facts > div { background: var(--bg-2); padding: clamp(20px, 2.4vw, 32px); display: grid; gap: 6px; align-content: start; }
.facts b { font-size: clamp(30px, 3.4vw, 46px); line-height: 1; font-weight: 600; letter-spacing: -0.03em; color: var(--acc); }
.facts span { color: var(--ink-2); font-size: 15px; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); } }

/* ───────── стандарты: сценарии процессов ───────── */
.procs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.proc { display: grid; grid-template-columns: 84px 1fr; gap: 18px; align-items: start; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--bg-2); transition: border-color 0.3s; }
.proc:hover { border-color: var(--acc); }
.proc .mini { width: 84px; height: 84px; }
.proc .mini svg { display: block; width: 100%; height: 100%; overflow: visible; }
.mini .tr { fill: none; stroke: var(--line-2); stroke-width: 1.4; }
.mini .arc { fill: none; stroke: var(--acc); stroke-width: 2.4; stroke-linecap: round; transition: stroke-dashoffset 0.7s cubic-bezier(0.3, 0.7, 0.2, 1); }
.mini .bd { fill: var(--bg-2); stroke: var(--line-2); stroke-width: 1.4; transition: fill 0.4s, stroke 0.4s; }
.mini .bd.on { fill: var(--acc); stroke: var(--acc); }
.mini .ct { font-family: var(--mono); font-size: 15px; fill: var(--ink-2); text-anchor: middle; dominant-baseline: central; }
.proc h3 { font-size: 20px; line-height: 1.2; margin-bottom: 10px; }
.proc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; counter-reset: s; }
.proc li { counter-increment: s; display: grid; grid-template-columns: 22px 1fr; font-size: 15px; line-height: 1.35; color: var(--ink-3); transition: color 0.4s; }
.proc li::before { content: counter(s); font-family: var(--mono); font-size: 12px; padding-top: 2px; }
.proc li.on { color: var(--ink); }
.proc li.on::before { color: var(--acc); }
.proc.all { grid-template-columns: 1fr; align-content: space-between; gap: 16px; background: transparent; border-style: dashed; }
.proc.all p { color: var(--ink-2); font-size: 16px; }
.proc.all a { color: var(--acc); font-weight: 600; }
@media (max-width: 1080px) { .procs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .procs { grid-template-columns: 1fr; } }

/* ───────── КОН изнутри: окно узла ───────── */
.node { border: 1px solid var(--line); border-radius: 22px; background: var(--bg-2); overflow: hidden; }
.node-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 22px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-3); }
.node-title { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); }
.node-title i { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); animation: node-beat 0.5s steps(2, jump-none) infinite; }
@keyframes node-beat { from { opacity: 1; } to { opacity: 0.25; } }
.node-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.node-col { position: relative; display: grid; grid-template-rows: auto 236px auto; gap: 16px; padding: 22px; border-left: 1px solid var(--line); min-width: 0; }
.node-col:first-child { border-left: 0; }
.node-col + .node-col::before { content: '→'; position: absolute; left: -11px; top: 130px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--acc); font-size: 12px; line-height: 1; }
.node-h { font-size: 17px; font-weight: 600; }
.node-h b { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--acc); margin-right: 8px; }
.node-p { color: var(--ink-2); font-size: 15px; line-height: 1.5; text-wrap: pretty; padding-top: 16px; border-top: 1px solid var(--line); }
.node-log { overflow: hidden; display: flex; flex-direction: column; gap: 4px; font-family: var(--mono); font-size: 12.5px; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.node-log div { flex: 0 0 auto; display: flex; justify-content: space-between; gap: 8px; padding: 5px 10px; border-radius: 8px; color: var(--ink-3); white-space: nowrap; animation: node-in 0.3s ease-out; }
.node-log div.op { background: var(--acc-soft); color: var(--acc); }
@keyframes node-in { from { opacity: 0; transform: translateY(-10px); } }
.node-chips { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; }
.node-chips span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; color: var(--ink-2); transition: background 0.3s, border-color 0.3s, color 0.3s; }
.node-chips span.on { background: var(--acc-bg); border-color: var(--acc-bg); color: #fff; }
.node-col:nth-child(2) { grid-template-rows: auto 124px 96px auto; }
.node-call { align-self: start; display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--bg-3); min-width: 0; }
.node-call code { font-family: var(--mono); font-size: 12.5px; color: var(--acc); overflow-wrap: anywhere; }
.node-call span { font-size: 14.5px; line-height: 1.35; color: var(--ink); }
.node-call.flash { animation: node-flash 0.6s ease-out; }
@keyframes node-flash { from { box-shadow: 0 0 0 2px var(--acc); } to { box-shadow: 0 0 0 2px transparent; } }
.node-tbl { display: grid; align-content: start; }
.node-tbl div { display: grid; gap: 2px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.node-tbl span { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.node-tbl b { font-size: 14.5px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 4px; }
.node-tbl div.hit b { animation: node-hit 1.4s ease-out; }
@keyframes node-hit { from { background: var(--acc-soft); color: var(--acc); } }
.node-feed { overflow: hidden; display: flex; flex-direction: column; gap: 6px; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.node-feed div { flex: 0 0 auto; display: grid; gap: 2px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; line-height: 1.35; color: var(--ink-2); animation: node-in 0.35s ease-out; }
.node-feed div:first-child { border-color: var(--acc); color: var(--ink); }
.node-feed small { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) { .node-title i, .node-log div, .node-feed div { animation: none; } }
@media (max-width: 1080px) {
  .node-grid { grid-template-columns: repeat(2, 1fr); }
  .node-col:nth-child(3) { border-left: 0; }
  .node-col:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .node-col:nth-child(3)::before { display: none; }
}
@media (max-width: 640px) {
  .node-grid { grid-template-columns: 1fr; }
  .node-col { border-left: 0; grid-template-rows: auto 180px auto; }
  .node-col:nth-child(2) { grid-template-rows: auto auto auto auto; }
  .node-col + .node-col { border-top: 1px solid var(--line); }
  .node-col + .node-col::before { display: none; }
  .node-live { display: none; }
}

/* ───────── разработчику: три подсистемы ───────── */
.arch { padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line); border-radius: 22px; background: var(--bg-2); display: grid; gap: 14px; }
.arch-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; --row: 56px; max-width: 980px; margin: 0 auto; width: 100%; }
.zone, .zone-links { display: grid; grid-template-rows: 62px var(--row) var(--row) var(--row); gap: 12px; }
.zone { padding: 16px; border-radius: 18px; border: 1px solid var(--line-2); }
.zone-links { padding: 16px 0; border: 1px solid transparent; }
.zone-h { display: grid; gap: 2px; align-content: start; }
.zone-h b { font-size: 18px; font-weight: 600; line-height: 1.2; }
.zone-h span { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; line-height: 1.35; color: var(--sig); }
.zone-item { display: grid; place-items: center; text-align: center; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--acc); background: var(--acc-soft); font-size: 15px; font-weight: 600; line-height: 1.25; }
.zone.kon { background: var(--acc-bg); border-color: var(--acc-bg); color: #fff; }
.zone.kon .zone-h b { letter-spacing: 0.1em; }
.zone.kon .zone-h span { color: rgba(255, 255, 255, 0.75); }
.zone.kon .zone-item { border-color: transparent; background: rgba(255, 255, 255, 0.14); }
.arch-link { position: relative; display: grid; place-items: center; }
.arch-link::before { content: ''; position: absolute; left: 6px; right: 6px; top: 50%; height: 0; border-top: 1.5px dashed var(--line-2); }
.arch-link::after { content: ''; position: absolute; top: calc(50% - 3.5px); left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); animation: arch-flow 2.4s linear infinite; }
.arch-link.back::after { animation-direction: reverse; animation-delay: 1.2s; }
@keyframes arch-flow { from { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 7px); opacity: 0; } }
.arch-link span { position: relative; top: -15px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--ink-3); white-space: nowrap; }
.arch-link span::after { content: ' →'; color: var(--acc); }
.arch-link.back span::after { content: ''; }
.arch-link.back span::before { content: '← '; color: var(--acc); }
.arch-link.both::after { display: none; }
.arch-link.both span::after { content: ''; }
.arch-link.both span::before { content: '↔ '; color: var(--acc); }
@media (prefers-reduced-motion: reduce) { .arch-link::after { animation: none; left: calc(50% - 3.5px); } }
@media (max-width: 900px) {
  .arch-grid { grid-template-columns: 1fr; gap: 10px; }
  .zone { grid-template-rows: auto var(--row) var(--row) var(--row); }
  .zone-links { grid-template-rows: auto auto auto; gap: 6px; padding: 4px 0; }
  .zone-links .zone-h { display: none; }
  .arch-link { place-items: start center; }
  .arch-link::before, .arch-link::after { display: none; }
  .arch-link span { top: 0; }
}

/* ───────── коллективная форма: перечень организационно-правовых форм ───────── */
.forms { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.forms li { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-2); font-size: 16px; line-height: 1.3; }
.forms li:first-child { border-color: var(--acc); color: var(--acc); }
.forms-note { margin-top: 22px; max-width: 860px; color: var(--ink-2); text-wrap: pretty; }

/* ───────── анонимность: что хранит кооператив и что получает КОН ───────── */
.split { display: grid; grid-template-columns: 1fr 150px 1fr; align-items: stretch; }
.split-card { padding: clamp(22px, 2.6vw, 34px); border: 1px solid var(--line-2); border-radius: 22px; background: var(--bg-2); display: grid; gap: 16px; align-content: start; }
.split-card .mono { color: var(--sig); }
.split-card.kon { border-color: var(--acc); }
.split-card.kon .mono { color: var(--acc); }
.split-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.split-card li { position: relative; padding-left: 22px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.4; }
.split-card li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--sig); }
.split-card.kon li::before { background: var(--acc); }
.split-link { position: relative; display: grid; place-items: center; }
.split-link::before { content: ''; position: absolute; left: 8px; right: 8px; top: 50%; border-top: 1.5px dashed var(--line-2); }
.split-link::after { content: ''; position: absolute; top: calc(50% - 4px); left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); animation: arch-flow 2.2s linear infinite; }
.split-link span { position: relative; top: -16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-3); white-space: nowrap; }
.split-link span::after { content: ' →'; color: var(--acc); }
@media (prefers-reduced-motion: reduce) { .split-link::after { animation: none; left: calc(50% - 4px); } }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 6px; }
  .split-link { height: 40px; }
  .split-link::before, .split-link::after { display: none; }
  .split-link span { top: 0; }
  .split-link span::after { content: ' ↓'; }
}

.subs-cap { margin: clamp(28px, 3.5vw, 44px) 0 14px; color: var(--ink-3); }
.subs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sub-card { display: grid; gap: 10px; align-content: start; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--bg-2); }
.sub-card code { font-family: var(--mono); font-size: 13.5px; color: var(--acc); }
.sub-card h3 { font-size: 21px; line-height: 1.2; }
.sub-card p { color: var(--ink-2); font-size: 16px; text-wrap: pretty; }
.sub-card { grid-template-rows: auto auto 1fr auto; }
.sub-links { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.sub-links a { color: var(--acc); }
.sub-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .subs { grid-template-columns: 1fr; } }

/* ───────── призыв ───────── */
.cta-card { padding: clamp(26px, 3vw, 40px); background: var(--bg-2); border: 1px solid var(--acc); border-radius: 22px; display: flex; flex-wrap: wrap; gap: 10px; max-width: 860px; }

/* ───────── подвал ───────── */
footer { padding: 40px 0 56px; border-top: 1px solid var(--line); }
.foot-row { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-brand { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; }
.foot-brand span { color: var(--ink-3); }
.foot-copy { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--ink-2); max-width: 640px; }
.foot-links a:hover { color: var(--acc); }

/* ───────── служебные страницы ───────── */
.page { padding: calc(var(--nav-h) + clamp(40px, 6vw, 80px)) 0 clamp(60px, 8vw, 110px); }
.contacts-block { max-width: 760px; margin-top: 36px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: 22px; background: var(--bg-2); }
.contacts-name { font-size: 19px; font-weight: 600; line-height: 1.35; margin-bottom: 22px; }
.contacts-list { margin: 0; display: grid; gap: 0; }
.contacts-row { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.contacts-row dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding-top: 4px; }
.contacts-row dd { margin: 0; color: var(--ink-2); }
.contacts-row a { color: var(--acc); }
.docs-page { padding-top: var(--nav-h); min-height: calc(100vh - 80px); display: flex; flex-direction: column; }
.docs-iframe-wrap { flex: 1; min-height: 1100px; }
.docs-iframe-wrap iframe { width: 100%; height: 100%; min-height: 1100px; border: 0; background: #fff; display: block; }
@media (max-width: 720px) { .docs-iframe-wrap, .docs-iframe-wrap iframe { min-height: 80vh; } }
