/* Litopys Chain: сайт продукту. Світле полотно, графітовий текст, лайм як заливка й акцент.
   Система описана в site/DESIGN.md. Без тіней: шари розділяє колір і тонка лінія. */

/* Заголовки: Unbounded (OFL, файл ліцензії поруч), лише кирилиця й латиниця, змінна вага. */
@font-face {
  font-family: Unbounded;
  src: url(/site-static/fonts/unbounded-cyrillic-wght-normal.woff2?v=e30bf6a606) format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Unbounded;
  src: url(/site-static/fonts/unbounded-latin-wght-normal.woff2?v=22f9b928aa) format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Manrope;
  src: url(/site-static/fonts/Manrope-Variable.woff2?v=b1f1e64099) format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* Анімоване «увімкнено» для схеми підпису: 0 спокій, 1 підписано. */
@property --on { syntax: "<number>"; inherits: true; initial-value: 0; }

:root {
  /* Палітра дизайн-системи */
  --paper: #FFFFFF;      /* основне тло */
  --band: #F3F5F0;       /* світло-сірі смуги-розділи */
  --bg: #EEF0EB;         /* друге тло, панелі */
  --card: #FFFFFF;       /* поверхні: рамки знімків, форма */
  --ink: #161A12;        /* текст і рідкісні темні блоки */
  --ink-2: #232A1C;
  --ink-line: #3A4430;
  --muted: #5D6458;      /* другорядний текст, від 5,6:1 на світлих тлах */
  --text-2: #3A4135;     /* пояснення під термінами */
  --line: #DADFD4;       /* розділювачі */
  --line-2: #C3C9BC;
  --field: #7E8578;      /* рамки полів форми, 3,6:1 на білому */
  --lime: #CFF46B;       /* заливка під темним текстом; на ink може бути текстом */
  --lime-2: #B8E04A;
  --lime-ink: #1B2410;
  --lime-soft: #EAF7C8;
  --olive: #3F5212;      /* «лаймовий» текст на світлому тлі */
  --on-dark: #FFFFFF;
  --on-dark-2: #E4E8DE;
  --on-dark-3: #C9CFC2;
  --ok-bg: #E3F3DC; --ok: #245E24;
  --bad-bg: #FBE7E3; --bad: #7A2416;

  --font: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: Unbounded, "Arial Black", var(--font);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* Типографіка: великі шрифти, базовий текст 18 px */
  --t-display: clamp(1.625rem, 0.55rem + 4.3vw, 4rem);
  --t-h1: clamp(1.625rem, 0.8rem + 3.2vw, 3.5rem);
  --t-h2: clamp(1.5rem, 0.85rem + 2.5vw, 3rem);
  --t-h3: clamp(1.5rem, 1.15rem + 1.1vw, 2.125rem);
  --t-h4: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --t-lead: clamp(1.25rem, 1.12rem + 0.45vw, 1.5rem);
  --t-body: 1.125rem;
  --t-small: 0.9375rem;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --sec-y: clamp(72px, 4rem + 5vw, 152px);
  --r-xs: 6px; --r-btn: 8px; --r-sm: 10px; --r-md: 14px; --r-lg: 18px; --r-xl: 22px; --r-pill: 999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 72px;
}

/* --- Основа --- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
  scrollbar-color: var(--line-2) var(--paper);
  background: var(--paper);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.6;
  font-feature-settings: "kern", "tnum" 0;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--lime); color: var(--lime-ink); }
img, svg, video { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; overflow-wrap: break-word; }
h1, h2, h3, h4 { font-weight: 800; text-wrap: balance; }
/* Великі заголовки: широкий гротеск верхнім регістром; ключові слова з лаймовою підкладкою. */
h1, h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; }
h1 { font-size: var(--t-h1); line-height: 1.08; }
h2 { font-size: var(--t-h2); line-height: 1.1; }
.hl { background-image: linear-gradient(var(--lime), var(--lime)); background-repeat: no-repeat; background-size: 100% 0.62em; background-position: 0 82%;
  padding-inline: 0.06em; margin-inline: -0.06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; color: var(--lime-ink); }
h3 { font-size: var(--t-h3); line-height: 1.15; letter-spacing: -0.02em; }
h4 { font-size: var(--t-h4); line-height: 1.25; letter-spacing: -0.01em; }
p, li, dd { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
a:hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--text-2); max-width: 62ch; }
.mono, .mono-t { font-family: var(--mono); letter-spacing: 0; }
.mono-t { font-size: 0.95em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.arr { flex: 0 0 auto; vertical-align: -0.2em; transition: transform .2s var(--ease); }

:where(a, button, summary, video, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.dark :where(a, button, video):focus-visible { outline-color: var(--lime); }
main:focus { outline: none; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--on-dark); padding: 12px 20px; border-radius: var(--r-pill);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: var(--sec-y); }
.sec-head { display: grid; gap: 24px; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head h2 { max-width: 18ch; }
@media (min-width: 1024px) {
  .sec-head { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; gap: 48px; }
  .sec-head .lead { justify-self: end; }
}
.note { margin-top: 24px; font-size: var(--t-small); color: var(--muted); max-width: 60ch; }

/* Тонка сітка-гратка на світлому тлі (перший екран і верх сторінок). */
.hero, .page-top {
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgb(22 26 18 / 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(22 26 18 / 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
}

/* --- Кнопки --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 26px; border-radius: var(--r-btn);
  font: 700 1.0625rem/1.2 var(--font); text-decoration: none; text-align: center;
  border: 1.5px solid transparent; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s;
}
.btn.sm { min-height: 44px; padding: 10px 20px; font-size: 1rem; }
.btn.lime { background: var(--lime); color: var(--lime-ink); }
.btn.lime:hover { background: var(--lime-2); }
.btn.dark { background: var(--ink); color: var(--on-dark); }
.btn.dark:hover { background: var(--ink-2); }
.btn.line { background: var(--card); color: var(--ink); border-color: var(--ink); }
.btn.line:hover { background: var(--band); }
.btn.line-dark { background: transparent; color: var(--on-dark); border-color: rgb(255 255 255 / 0.4); }
.btn.line-dark:hover { border-color: var(--lime); }
.btn:hover .arr { transform: translateX(3px); }
.acts { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* --- Шапка --- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex: 0 0 auto; min-height: 44px; }
.brand .logo { width: 36px; height: 36px; flex: 0 0 36px; }
.brand-name { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.012em; white-space: nowrap; }
.brand-name span { font-weight: 500; }
.menu { display: flex; align-items: center; gap: 20px; flex: 1 1 auto; justify-content: space-between; }
.nav { display: flex; gap: 2px; flex-wrap: nowrap; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: var(--r-xs); font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap; }
.nav a:hover { background: var(--band); }
.nav a[aria-current="page"] { background: var(--lime); color: var(--lime-ink); }
.menu-acts { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.lang { display: flex; gap: 2px; }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-radius: var(--r-xs); font: 600 0.9375rem/1 var(--mono); text-decoration: none; color: var(--muted); }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] { background: var(--ink); color: var(--on-dark); }
.login { font-weight: 700; font-size: 1rem; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.burger { display: none; margin-left: auto; width: 48px; height: 48px; border: 1.5px solid var(--ink); border-radius: var(--r-btn); background: var(--card); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.burger svg { width: 24px; height: 24px; }
.burger .i-close { display: none; }
.burger[aria-expanded="true"] .i-open { display: none; }
.burger[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 1399px) {
  .js .burger { display: inline-flex; }
  .js .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px; flex-direction: column; align-items: stretch; gap: 16px; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
  .js .menu.open { display: flex; }
  .js .nav { flex-direction: column; gap: 0; }
  .js .nav a { font-size: 1.25rem; min-height: 56px; border-radius: var(--r-xs); padding-inline: 12px; }
  .js .menu-acts { flex-wrap: wrap; gap: 12px; }
  .js .menu-acts .btn { flex: 1 1 100%; }
  .site-header .wrap.bar { position: relative; }
  html:not(.js) .bar { flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .menu { flex-wrap: wrap; }
  html:not(.js) .nav { flex-wrap: wrap; }
}

/* --- Перший екран --- */
.hero { padding-top: clamp(40px, 6vw, 96px); padding-bottom: clamp(56px, 6vw, 96px); }
.hero-grid { display: grid; gap: clamp(32px, 4vw, 56px); align-items: center; }
@media (min-width: 1200px) { .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.hero h1 { font-size: var(--t-display); line-height: 1.04; letter-spacing: -0.015em; font-weight: 800; }
.hero h1 .w { display: inline-block; }
.hero h1 .w4 > span {
  background-image: linear-gradient(var(--lime), var(--lime));
  background-repeat: no-repeat; background-size: 100% 0.62em; background-position: 0 82%;
  padding-inline: 0.06em; margin-inline: -0.06em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero-lead { margin-top: clamp(20px, 2.4vw, 32px); font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.875rem); line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; max-width: 30ch; }
.hero .acts { margin-top: clamp(24px, 3vw, 36px); }
.env { margin-top: 20px; font-family: var(--mono); font-size: var(--t-small); color: var(--text-2); max-width: 52ch; }

.theses { display: grid; gap: 0; margin-top: clamp(48px, 6vw, 88px); border-top: 2px solid var(--ink); }
.theses li { padding: 24px 0 8px; display: grid; gap: 10px; align-content: start; }
.theses h2 { font-family: var(--font); text-transform: none; font-weight: 800; font-size: var(--t-h4); line-height: 1.2; letter-spacing: -0.015em; }
.theses p { color: var(--text-2); max-width: 40ch; }
@media (min-width: 900px) {
  .theses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .theses li { padding-right: 32px; }
  .theses li + li { border-left: 1px solid var(--line-2); padding-left: 32px; }
}
@media (max-width: 899px) { .theses li + li { border-top: 1px solid var(--line-2); } }
.hero-shot { margin-top: clamp(48px, 6vw, 88px); }

/* Кінетичний заголовок: слова проявляються один раз під час завантаження. Без анімації текст видно одразу. */
@media (prefers-reduced-motion: no-preference) {
  .kin .w > span { display: inline-block; animation: word-in 1s var(--ease) both; }
  .kin .w2 > span { animation-delay: .08s; }
  .kin .w3 > span { animation-delay: .16s; }
  .kin .w4 > span { animation: word-in 1s var(--ease) .24s both, mark-in .9s var(--ease) .8s both; }
}
@keyframes word-in { from { opacity: 0; transform: translateY(0.3em); filter: blur(10px); } }
@keyframes mark-in { from { background-size: 0% 0.62em; } }

/* --- Знімки продукту в рамках --- */
.shot, .video { display: grid; gap: 14px; }
.frame { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(6px, 0.9vw, 12px); }
.frame img, .frame video { display: block; width: 100%; height: auto; border-radius: calc(var(--r-lg) - 10px); background: var(--bg); }
.shot figcaption, .video figcaption { font-size: var(--t-small); color: var(--muted); max-width: 72ch; }
.video.vertical { max-width: 420px; margin-inline: auto; }
.video.vertical .frame { border-radius: 40px; }
.video.vertical video { border-radius: 34px; }

/* Схема першого екрана: знак «засіяне поле» з чотирьох вузлів. */
.field-fig { display: grid; gap: 16px; }
@media (min-width: 700px) and (max-width: 1199px) {
  .field-fig { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 32px; }
}
.field-panel { border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(12px, 2vw, 28px); background-color: var(--band);
  background-image: repeating-linear-gradient(120deg, transparent 0 46px, rgb(22 26 18 / 0.06) 46px 47px); }
.field .deco ellipse { fill: none; stroke: var(--ink); stroke-opacity: .28; stroke-width: 1.2; stroke-dasharray: 2 7; stroke-linecap: round; }
.field .shade { fill: rgb(22 26 18 / 0.22); }
.field { width: 100%; height: auto; overflow: visible; }
.field .side { fill: color-mix(in srgb, var(--ink-line) calc(var(--on) * 100%), #C9CFC2); }
.field .top { fill: color-mix(in srgb, var(--ink) calc(var(--on) * 100%), #E6EAE0); stroke: color-mix(in srgb, var(--ink) calc(var(--on) * 100%), #B9C0B1); stroke-width: 0.18; }
.field .seed { fill: color-mix(in srgb, var(--lime) calc(var(--on) * 100%), #F4F6F0); }
.field .ping { fill: none; stroke: var(--ink); stroke-width: 0.35; opacity: 0; transform-box: fill-box; transform-origin: center; }
.field .vl { font: 700 22px/1 var(--mono); fill: color-mix(in srgb, var(--ink) calc(40% + var(--on) * 60%), transparent); }
.fv { transform: translateY(calc(var(--on) * -12px)); }
.field .rec { opacity: 0; }
.field .rec path { fill: var(--lime); stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.field .rec .rec-s { fill: var(--ink); }
.field-status { display: grid; font-family: var(--display); text-transform: uppercase; font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem); font-weight: 700; line-height: 1.3; }
.field-status .st { grid-area: 1 / 1; justify-self: start; opacity: 0; }
.field-status .st2, .field-status .st3 { background-image: linear-gradient(var(--lime), var(--lime)); background-repeat: no-repeat; background-size: 100% 0.55em; background-position: 0 85%; }
.field-status .st3 { opacity: 1; }
.field-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; font-size: 1rem; padding-block: 12px; border-block: 1px solid var(--line-2); }
.field-legend .lg { color: color-mix(in srgb, var(--ink) calc(var(--on) * 100%), var(--muted)); font-weight: 600; }
.field-legend .lg b { font-family: var(--mono); font-weight: 700; margin-right: 6px; }
.field-cap { font-size: var(--t-small); color: var(--text-2); max-width: 46ch; }
/* Без руху: знак складений, усі чотири вузли підписали. */
.fv, .lg { --on: 1; }

@media (prefers-reduced-motion: no-preference) {
  .fv, .lg { --on: 0; animation: 10s linear infinite both; }
  .fv1, .lg1 { animation-name: s1; }
  .fv2, .lg2 { animation-name: s2; }
  .fv3, .lg3 { animation-name: s3; }
  .fv4, .lg4 { animation-name: s4; }
  .field .ping { animation: ping 10s var(--ease) infinite both; }
  .fv1 .ping { animation-delay: 1.5s; }
  .fv2 .ping { animation-delay: 2.7s; }
  .fv3 .ping { animation-delay: 3.9s; }
  .fv4 .ping { animation-delay: 5.5s; }
  .field .rec { animation: rec 10s var(--ease) infinite both; }
  .field-status .st { animation: 10s linear infinite both; }
  .field-status .st1 { animation-name: st1; }
  .field-status .st2 { animation-name: st2; }
  .field-status .st3 { animation-name: st3; opacity: 0; }
  .paused, .paused * { animation-play-state: paused !important; }
}
@keyframes s1 { 0%, 14% { --on: 0; } 19%, 82% { --on: 1; } 90%, 100% { --on: 0; } }
@keyframes s2 { 0%, 26% { --on: 0; } 31%, 82% { --on: 1; } 90%, 100% { --on: 0; } }
@keyframes s3 { 0%, 38% { --on: 0; } 43%, 82% { --on: 1; } 90%, 100% { --on: 0; } }
@keyframes s4 { 0%, 54% { --on: 0; } 59%, 82% { --on: 1; } 90%, 100% { --on: 0; } }
@keyframes ping { 0% { opacity: 0; transform: scale(1); } 3% { opacity: .9; } 12% { opacity: 0; transform: scale(3.4); } 100% { opacity: 0; transform: scale(3.4); } }
@keyframes rec { 0% { opacity: 0; transform: translateY(-24px); } 4% { opacity: 1; } 13% { transform: translateY(188px); } 56% { opacity: 1; transform: translateY(188px); } 62%, 100% { opacity: 0; transform: translateY(196px); } }
@keyframes st1 { 0%, 41% { opacity: 1; } 43%, 89% { opacity: 0; } 92%, 100% { opacity: 1; } }
@keyframes st2 { 0%, 42% { opacity: 0; } 44%, 57% { opacity: 1; } 59%, 100% { opacity: 0; } }
@keyframes st3 { 0%, 58% { opacity: 0; } 60%, 87% { opacity: 1; } 89%, 100% { opacity: 0; } }

/* --- Держава і бізнес --- */
.worlds { background: var(--band); }
.worlds-grid { display: grid; gap: 16px; }
.world { border-radius: var(--r-lg); padding: clamp(28px, 4vw, 56px); display: grid; gap: 20px; align-content: start; min-height: clamp(320px, 34vw, 480px); }
.world h3 { font-family: var(--display); text-transform: uppercase; font-weight: 800; font-size: clamp(2.25rem, 1rem + 4vw, 4.75rem); line-height: 1; letter-spacing: -0.015em; }
.world p { font-size: var(--t-lead); line-height: 1.45; max-width: 30ch; }
.world .world-links { display: flex; flex-wrap: wrap; gap: 8px 24px; align-self: end; font-weight: 700; }
.world .world-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.world-state { background: var(--ink); color: var(--on-dark); }
.world-state p { color: var(--on-dark-2); }
.world-state a { color: var(--lime); }
.world-state :focus-visible { outline-color: var(--lime); }
.world-biz { background: var(--lime); color: var(--lime-ink); }
.seam { display: grid; justify-items: center; align-content: center; gap: 10px; padding: 8px; font: 600 var(--t-small)/1.2 var(--mono); color: var(--text-2); text-align: center; }
.seam .logo { width: 56px; height: 56px; }
@media (min-width: 900px) {
  .worlds-grid { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; }
  .seam { width: 96px; }
}
@media (max-width: 899px) { .seam { grid-auto-flow: column; } .seam .logo { width: 40px; height: 40px; } }

/* --- Аудиторії --- */
.aud { border-top: 1px solid var(--line); }
.aud#finance { background: var(--band); }
.aud-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 5vw, 72px); }
.aud-head h2 { font-size: clamp(1.75rem, 0.9rem + 3.2vw, 3.75rem); line-height: 1.06; }
.aud-body { display: grid; gap: clamp(40px, 5vw, 72px); align-items: start; }
@media (min-width: 1024px) {
  .aud-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 48px; }
  .aud-body { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .aud.flip .aud-text { order: 2; }
  .aud.flip .aud-body { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .aud-visual { position: sticky; top: calc(var(--header-h) + 32px); }
}
.spec { display: grid; }
.spec > div { padding-block: 22px; border-top: 1px solid var(--line-2); display: grid; gap: 8px; }
.spec > div:last-child { border-bottom: 1px solid var(--line-2); }
.spec dt { font-size: var(--t-h4); font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; }
.spec dd { color: var(--text-2); max-width: 60ch; }
@media (min-width: 1024px) {
  .modes-sec .spec > div { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; }
}

.caselinks { margin-top: 32px; display: grid; gap: 8px; }
.caselinks-l { font: 600 var(--t-small)/1.4 var(--mono); color: var(--muted); }
.caselinks ul { display: flex; flex-wrap: wrap; gap: 0 28px; }
.caselinks a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; white-space: nowrap; }
.caselinks a:hover .arr { transform: translateX(3px); }

.duo { position: relative; padding-bottom: 0; }
.duo .frame { margin-right: 14%; }
.duo .phone { position: absolute; right: 0; top: 18%; width: 30%; background: var(--ink); padding: 7px; border-radius: 32px; }
.duo .phone img { display: block; width: 100%; height: auto; border-radius: 26px; }
.duo figcaption { margin-top: 10px; padding-right: 32%; }

/* --- Як це працює: життєвий цикл --- */
.how { background: var(--band); border-top: 1px solid var(--line); }
.life { display: grid; gap: 32px; }
.life-text h3 { font-size: var(--t-h3); }
.sub-lead { margin-top: 12px; color: var(--text-2); max-width: 52ch; }
.life-steps { margin-top: 32px; position: relative; display: grid; }
.life-steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; row-gap: 8px; padding-block: clamp(24px, 4vh, 48px); border-top: 1px solid var(--line-2); transition: color .4s; }
.life-steps .n { grid-row: span 2; font: 700 1.0625rem/1 var(--mono); background: var(--card); border: 1.5px solid var(--line-2); border-radius: 10px; width: 52px; height: 36px; display: inline-flex; align-items: center; justify-content: center; transition: background-color .4s, border-color .4s; }
.life-steps p { color: var(--text-2); max-width: 52ch; }
.js .life-steps li { color: var(--muted); }
.js .life-steps li p { color: var(--muted); }
.js .life-steps li.is-on { color: var(--ink); }
.js .life-steps li.is-on p { color: var(--text-2); }
.js .life-steps li.is-on .n { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
@media (min-width: 1024px) {
  .life { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; }
  .life-visual { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
  .js .life-steps li { min-height: 24vh; align-content: center; }
}
@media (max-width: 1023px) {
  .life-visual { order: -1; }
}
@media (max-width: 1023px) and (min-height: 640px) {
  .js .life-visual { position: sticky; top: var(--header-h); z-index: 2; background: var(--band); padding-block: 8px; border-bottom: 1px solid var(--line-2); }
  .js .life-visual .life-svg { max-height: 26vh; }
}

.life-fig { display: grid; gap: 8px; }
.life-now { display: grid; font-size: var(--t-h4); font-weight: 800; }
.life-now .ln { grid-area: 1 / 1; opacity: 0; transition: opacity .35s; }
.life-now b { font-family: var(--mono); font-weight: 700; background: var(--lime); color: var(--lime-ink); padding: 0 8px; border-radius: 8px; margin-right: 6px; }
.life-fig[data-stage="1"] .ln1, .life-fig[data-stage="2"] .ln2, .life-fig[data-stage="3"] .ln3,
.life-fig[data-stage="4"] .ln4, .life-fig[data-stage="5"] .ln5, .life-fig[data-stage="6"] .ln6 { opacity: 1; }
.life-svg { width: 100%; height: auto; overflow: visible; display: block; margin-inline: auto; }
.life-svg .lbase use { fill: var(--line-2); }
.life-svg .lbase g:first-child use { fill: var(--field); }
.life-svg .lbase { transition: opacity .5s; }
.life-svg .ltop { fill: var(--card); stroke: var(--ink); stroke-width: 1; transition: fill .5s, stroke-dasharray .5s; }
.life-svg .cell { fill: none; stroke: var(--line-2); stroke-width: 0.7; transition: opacity .5s; }
.life-svg .sd { fill: var(--ink); opacity: 0; transition: opacity .45s, transform .7s var(--ease), fill .4s; transform-box: fill-box; transform-origin: center; }
.life-svg .rg { fill: none; stroke: var(--ink); stroke-width: 0.8; opacity: 0; transform-box: fill-box; transform-origin: center; }
.life-svg .isin { font: 700 17px/1 var(--mono); fill: var(--ink); opacity: 0; transition: opacity .5s; }
/* 1 Реєстрація: лише контур. */
.life-fig[data-stage="1"] .lbase { opacity: 0; }
.life-fig[data-stage="1"] .ltop { fill: transparent; stroke-dasharray: 4 4; }
.life-fig[data-stage="1"] .cell { opacity: 0; }
/* 2+ Введення в облік: поле з ISIN. */
.life-fig:not([data-stage="1"]):not([data-stage="6"]) .isin { opacity: 1; }
/* 3+ Розміщення: зерна-власники. */
.life-fig[data-stage="3"] .sd, .life-fig[data-stage="4"] .sd, .life-fig[data-stage="5"] .sd { opacity: 1; }
.sd2 { transition-delay: .06s; } .sd3 { transition-delay: .12s; } .sd4 { transition-delay: .18s; } .sd5 { transition-delay: .24s; } .sd6 { transition-delay: .3s; }
/* 4 Обіг: два папери змінюють власника. */
.life-fig[data-stage="4"] .sd1 { transform: translate(60px, 0); }
.life-fig[data-stage="4"] .sd5 { transform: translate(0, 30px); }
/* 5 Виплати: кожен власник отримує купон. */
.life-fig[data-stage="5"] .sd { fill: var(--lime); stroke: var(--ink); stroke-width: 1.4; }
/* 6 Погашення: папери виходять, поле закривається. */
.life-fig[data-stage="6"] .sd { opacity: 0; transform: translate(-14px, -14px); }
.life-fig[data-stage="6"] .ltop { stroke-dasharray: 4 4; fill: var(--bg); }
.life-fig[data-stage="6"] .lbase { opacity: .35; }
@media (prefers-reduced-motion: no-preference) {
  .life-fig[data-stage="5"] .rg { animation: lping 1.8s var(--ease) infinite; }
  .rg2 { animation-delay: .2s !important; } .rg3 { animation-delay: .4s !important; } .rg4 { animation-delay: .6s !important; } .rg5 { animation-delay: .8s !important; } .rg6 { animation-delay: 1s !important; }
}
@media (prefers-reduced-motion: reduce) {
  .life-svg *, .life-now .ln, .life-steps li, .life-steps .n { transition: none !important; }
}
@keyframes lping { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }

/* Прогрес етапів за прокручуванням (scroll-driven), лише де підтримується. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 1024px) {
    .life { timeline-scope: --life; }
    .life-steps { view-timeline: --life block; }
    .life-steps::before, .life-steps::after { content: ""; position: absolute; left: 25px; top: 0; width: 2px; height: 100%; border-radius: 2px; background: var(--line-2); }
    .life-steps::after { background: var(--ink); transform-origin: top; animation: life-fill linear both; animation-timeline: --life; animation-range: contain 0% contain 100%; }
    .life-steps li { border-top-color: transparent; }
    .life-steps .n { position: relative; z-index: 1; }
  }
}
@keyframes life-fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* --- Поставка проти оплати: єдиний темний розділ головної --- */
.dvp-sec { background: var(--ink); color: var(--on-dark); }
.dvp-sec .lead { color: var(--on-dark-2); }
.dvp-sec .hl, .next .hl, .cta .hl { background: none; color: var(--lime); }
.dvp-sec :focus-visible { outline-color: var(--lime); }
.dvp-fig { display: grid; gap: 20px; }
.dvp-ctrl { display: flex; flex-wrap: wrap; gap: 8px; }
.dvp-ctrl button { min-height: 48px; padding: 10px 22px; border-radius: var(--r-btn); border: 1.5px solid rgb(255 255 255 / 0.4); background: transparent; color: var(--on-dark); font: 700 1.0625rem/1 var(--font); cursor: pointer; }
.dvp-ctrl button[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
html:not(.js) .dvp-ctrl { display: none; }
.dvp-stage { border: 1px solid var(--ink-line); border-radius: var(--r-lg); padding: clamp(16px, 3vw, 40px); display: grid; gap: 12px; background-color: #1B2016;
  background-image: linear-gradient(to right, rgb(207 244 107 / 0.05) 1px, transparent 1px), linear-gradient(to bottom, rgb(207 244 107 / 0.05) 1px, transparent 1px);
  background-size: 40px 40px; }
.dvp { width: 100%; max-width: 980px; height: auto; display: block; margin-inline: auto; overflow: visible; }
.dvp-cap { display: grid; justify-items: center; min-height: 1.6em; font: 700 clamp(1rem, 0.9rem + 0.5vw, 1.375rem)/1.35 var(--mono); color: var(--lime); text-align: center; }
.dvp-cap .cap { grid-area: 1 / 1; opacity: 0; }
.dvp-who { display: grid; grid-template-columns: 1fr 1fr 1fr; max-width: 980px; width: 100%; margin-inline: auto; font-weight: 800; font-size: clamp(1rem, 0.85rem + 0.7vw, 1.5rem); color: var(--on-dark); }
.dvp-who span:nth-child(1) { text-align: left; padding-left: 2%; }
.dvp-who span:nth-child(2) { text-align: center; }
.dvp-who span:nth-child(3) { text-align: right; padding-right: 2%; }
.dvp .rail { stroke: var(--ink-line); stroke-width: 2; stroke-dasharray: 6 8; }
.dvp .bank { fill: var(--ink-2); stroke: var(--on-dark-3); stroke-width: 1.5; }
.dvp .payline, .dvp .okline { fill: none; stroke: var(--lime); stroke-width: 2.5; stroke-dasharray: 100; stroke-dashoffset: 100; }
.dvp .pay { opacity: 0; transform: translate(630px, 196px); }
.dvp .pay rect { fill: var(--lime); stroke: var(--ink); stroke-width: 1.5; }
.dvp .tok { transform: translate(630px, 132px); }
.dvp .tok-in path { fill: var(--lime); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.dvp .lock { transform: translate(0, -44px); opacity: 0; }
.dvp .lock rect { fill: var(--on-dark); }
.dvp .lock .shackle { fill: none; stroke: var(--on-dark); stroke-width: 4; stroke-linecap: round; }
.dvp .lock .timer { fill: none; stroke: var(--lime); stroke-width: 3; stroke-dasharray: 100; stroke-dashoffset: 0; opacity: 0; transform: rotate(-90deg); transform-box: fill-box; transform-origin: center; }
/* Стан без руху: успішний розрахунок або сторно. */
.dvp-fig[data-run="ok"] .cap3, .dvp-fig[data-run="fail"] .cap5 { opacity: 1; }
.dvp-fig[data-run="ok"] .payline, .dvp-fig[data-run="ok"] .okline { stroke-dashoffset: 0; opacity: .3; }
.dvp-fig[data-run="fail"] .tok { transform: translate(90px, 132px); }
.dvp-fig[data-run="fail"] .tok-in path { fill: var(--on-dark-3); }

@media (prefers-reduced-motion: no-preference) {
  .dvp-fig.play .tok, .dvp-fig.play .tok-in path, .dvp-fig.play .lock, .dvp-fig.play .shackle, .dvp-fig.play .timer,
  .dvp-fig.play .pay, .dvp-fig.play .payline, .dvp-fig.play .okline, .dvp-fig.play .bank, .dvp-fig.play .cap { animation-duration: 8s; animation-timing-function: var(--ease); animation-fill-mode: both; }
  .dvp-fig.play .cap1 { animation-name: cap1; }
  .dvp-fig.play[data-run="ok"] .tok { animation-name: tok-ok; }
  .dvp-fig.play[data-run="ok"] .tok-in path { animation-name: tokc-ok; }
  .dvp-fig.play[data-run="ok"] .lock { animation-name: lock-ok; }
  .dvp-fig.play[data-run="ok"] .shackle { animation-name: shackle-ok; }
  .dvp-fig.play[data-run="ok"] .pay { animation-name: pay-ok; }
  .dvp-fig.play[data-run="ok"] .payline { animation-name: payline-ok; }
  .dvp-fig.play[data-run="ok"] .okline { animation-name: okline-ok; }
  .dvp-fig.play[data-run="ok"] .bank { animation-name: bank-ok; }
  .dvp-fig.play[data-run="ok"] .cap2 { animation-name: cap2; }
  .dvp-fig.play[data-run="ok"] .cap3 { animation-name: cap3; }
  .dvp-fig.play[data-run="fail"] .tok { animation-name: tok-fail; }
  .dvp-fig.play[data-run="fail"] .tok-in path { animation-name: tokc-fail; }
  .dvp-fig.play[data-run="fail"] .lock { animation-name: lock-fail; }
  .dvp-fig.play[data-run="fail"] .timer { animation-name: timer-fail; }
  .dvp-fig.play[data-run="fail"] .cap1 { animation-name: cap1f; }
  .dvp-fig.play[data-run="fail"] .cap4 { animation-name: cap4; }
  .dvp-fig.play[data-run="fail"] .cap5 { animation-name: cap5; }
}
@keyframes tok-ok { 0% { transform: translate(90px, 132px); } 22%, 100% { transform: translate(630px, 132px); } }
@keyframes tok-fail { 0% { transform: translate(90px, 132px); } 22%, 64% { transform: translate(630px, 132px); } 84%, 100% { transform: translate(90px, 132px); } }
@keyframes tokc-ok { 0%, 64% { fill: var(--on-dark-3); } 70%, 100% { fill: var(--lime); } }
@keyframes tokc-fail { 0%, 100% { fill: var(--on-dark-3); } }
@keyframes lock-ok { 0%, 22% { opacity: 0; transform: translate(0, -30px); } 27%, 62% { opacity: 1; transform: translate(0, -44px); } 70%, 100% { opacity: 0; transform: translate(0, -52px); } }
@keyframes shackle-ok { 0%, 60% { transform: translateY(0); } 66%, 100% { transform: translateY(-7px); } }
@keyframes lock-fail { 0%, 22% { opacity: 0; transform: translate(0, -30px); } 27%, 66% { opacity: 1; transform: translate(0, -44px); } 74%, 100% { opacity: 0; transform: translate(0, -44px); } }
@keyframes timer-fail { 0%, 28% { opacity: 0; stroke-dashoffset: 0; } 31% { opacity: 1; stroke-dashoffset: 0; } 58% { opacity: 1; stroke-dashoffset: 100; } 64%, 100% { opacity: 0; stroke-dashoffset: 100; } }
@keyframes pay-ok { 0%, 30% { opacity: 0; transform: translate(630px, 198px); } 33% { opacity: 1; transform: translate(630px, 198px); } 40% { transform: translate(560px, 258px); } 47% { opacity: 1; transform: translate(440px, 268px); } 50%, 100% { opacity: 0; transform: translate(424px, 268px); } }
@keyframes payline-ok { 0%, 31% { stroke-dashoffset: 100; opacity: 1; } 47% { stroke-dashoffset: 0; opacity: 1; } 72%, 100% { stroke-dashoffset: 0; opacity: .3; } }
@keyframes okline-ok { 0%, 50% { stroke-dashoffset: 100; opacity: 1; } 62% { stroke-dashoffset: 0; opacity: 1; } 72%, 100% { stroke-dashoffset: 0; opacity: .3; } }
@keyframes bank-ok { 0%, 46% { fill: var(--ink-2); } 50%, 60% { fill: #4A5A22; } 66%, 100% { fill: var(--ink-2); } }
@keyframes cap1 { 0%, 22% { opacity: 0; } 25%, 44% { opacity: 1; } 47%, 100% { opacity: 0; } }
@keyframes cap1f { 0%, 22% { opacity: 0; } 25%, 52% { opacity: 1; } 55%, 100% { opacity: 0; } }
@keyframes cap2 { 0%, 47% { opacity: 0; } 50%, 63% { opacity: 1; } 66%, 100% { opacity: 0; } }
@keyframes cap3 { 0%, 66% { opacity: 0; } 70%, 100% { opacity: 1; } }
@keyframes cap4 { 0%, 55% { opacity: 0; } 58%, 72% { opacity: 1; } 75%, 100% { opacity: 0; } }
@keyframes cap5 { 0%, 76% { opacity: 0; } 80%, 100% { opacity: 1; } }

.dvp-text { margin-top: clamp(32px, 4vw, 56px); display: grid; gap: 24px; }
.dvp-steps { display: grid; gap: 24px; }
.dvp-steps li { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: 16px; align-items: start; padding-top: 20px; border-top: 1px solid var(--ink-line); }
.dvp-steps .n { font-family: var(--display); font-size: clamp(2.25rem, 1.5rem + 2.2vw, 3.5rem); line-height: .9; font-weight: 800; color: var(--lime); }
.dvp-steps p { font-size: var(--t-lead); line-height: 1.45; color: var(--on-dark); }
.dvp-fail { font-size: var(--t-lead); color: var(--on-dark-2); border-top: 1px solid var(--ink-line); padding-top: 20px; }
@media (min-width: 900px) { .dvp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* --- Дані й нагляд --- */
.trust { background: var(--paper); }
.trust-grid { display: grid; gap: clamp(56px, 6vw, 96px); }
.trust h2 { font-size: var(--t-h2); }
.io { display: grid; gap: 32px; margin-top: 32px; }
.io h3 { font-size: var(--t-h4); margin-bottom: 8px; }
.lines li { padding-block: 16px; border-top: 1px solid var(--line-2); color: var(--text-2); }
.lines li:last-child { border-bottom: 1px solid var(--line-2); }
.numbered { counter-reset: n; margin-top: 32px; }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 44px minmax(0, 1fr); }
.numbered li::before { content: counter(n, decimal-leading-zero); font: 700 var(--t-small)/1.9 var(--mono); color: var(--olive); }
@media (min-width: 720px) { .io { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .trust-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

/* --- Тестове середовище --- */
.env-table { width: 100%; border-collapse: collapse; }
.env-table th, .env-table td { text-align: left; vertical-align: top; padding: 24px 16px 24px 0; border-top: 1px solid var(--line-2); }
.env-table tr:last-child th, .env-table tr:last-child td { border-bottom: 1px solid var(--line-2); }
.env-table th { font-size: var(--t-h4); line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; width: 32%; }
.env-table td { color: var(--text-2); }
.env-table td.mono { font-size: var(--t-small); font-weight: 600; color: var(--olive); width: 24%; padding-right: 0; }
@media (max-width: 899px) {
  .env-table, .env-table tbody, .env-table tr, .env-table th, .env-table td { display: block; width: auto; }
  .env-table tr { padding-block: 20px; border-top: 1px solid var(--line-2); }
  .env-table th, .env-table td { border: 0; padding: 4px 0; }
  .env-table tr:last-child th, .env-table tr:last-child td { border: 0; }
  .env-table tr:last-child { border-bottom: 1px solid var(--line-2); }
}

/* --- Театр --- */
.test { background: var(--band); border-top: 1px solid var(--line); }
.theatre { background: var(--paper); border-top: 1px solid var(--line); }
.theatre-foot { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between; }
.theatre-foot p:first-child { max-width: 60ch; color: var(--text-2); }

/* --- Підключення: великі числа --- */
.join { background: var(--band); border-top: 1px solid var(--line); }
.bigsteps { display: grid; gap: 40px 32px; counter-reset: none; }
.bigsteps li { display: grid; gap: 14px; align-content: start; border-top: 2px solid var(--ink); padding-top: 20px; }
.bigsteps .n { justify-self: start; font-family: var(--display); font-size: clamp(3.5rem, 2rem + 4.4vw, 6rem); line-height: .9; font-weight: 800;
  background-image: linear-gradient(var(--lime), var(--lime)); background-repeat: no-repeat; background-size: 100% 0.42em; background-position: 0 92%; padding-inline: 0.06em; }
.bigsteps h3 { font-size: var(--t-h4); }
.bigsteps p { color: var(--text-2); }
@media (min-width: 720px) { .bigsteps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .bigsteps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* --- Засновник: вирізане фото на лаймовому ромбі (форма поля зі знака) --- */
.founder-sec { padding-bottom: 0; background: var(--paper); border-top: 1px solid var(--line); overflow: hidden; }
.founder { display: grid; gap: 32px; align-items: end; }
.founder-photo { position: relative; justify-self: center; width: min(100%, 500px); display: grid; align-items: end; padding-top: 32px; }
.founder-shape { position: absolute; left: 50%; top: 14%; width: 84%; aspect-ratio: 1; background: var(--lime); border-radius: 18%; transform: translateX(-50%) rotate(45deg); }
.founder-photo img { position: relative; display: block; width: 100%; height: auto; }
.founder-text { padding-bottom: var(--sec-y); display: grid; gap: 16px; align-content: start; }
.founder-text h2 { font-size: clamp(1.75rem, 0.9rem + 3.2vw, 3.75rem); line-height: 1.06; }
.founder-role { font: 600 var(--t-small)/1.4 var(--mono); color: var(--text-2); }
.founder blockquote { margin-top: 12px; font-size: var(--t-lead); line-height: 1.55; max-width: 58ch; }
.founder-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
@media (min-width: 1024px) {
  .founder { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
  .founder-text { align-self: center; padding-block: 0 var(--sec-y); }
}
@media (max-width: 1023px) { .founder-photo { order: 2; width: min(88%, 440px); } .founder-text { padding-bottom: 0; } }

/* --- Запит на показ --- */
.request { background: var(--band); border-top: 1px solid var(--line); }
.req-grid { display: grid; gap: 40px; align-items: start; }
.req-text { display: grid; gap: 20px; }
.req-mail { font-weight: 700; font-size: var(--t-lead); overflow-wrap: anywhere; }
@media (min-width: 1024px) { .req-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } .req-text { position: sticky; top: calc(var(--header-h) + 40px); } }

.demo-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3.2vw, 44px); }
.demo-form .full { grid-column: 1 / -1; }
.demo-form label { display: grid; gap: 8px; align-content: start; }
.demo-form .lbl { font-size: var(--t-small); font-weight: 700; color: var(--ink); }
.demo-form .lbl small { font-size: var(--t-small); font-weight: 500; color: var(--muted); margin-left: 4px; }
.demo-form label > input:not([type="checkbox"]), .demo-form label > select, .demo-form label > textarea {
  width: 100%; min-height: 56px; padding: 14px 16px; border: 1.5px solid var(--field); border-radius: var(--r-btn);
  background: var(--card); color: var(--ink); font: 500 1.0625rem/1.4 var(--font); appearance: none; -webkit-appearance: none;
}
.demo-form select {
  padding-right: 48px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23161A12' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 20px;
}
.demo-form textarea { min-height: 132px; resize: vertical; }
.demo-form label > input:hover, .demo-form label > select:hover, .demo-form label > textarea:hover { border-color: var(--ink); }
.demo-form label > input:focus-visible, .demo-form label > select:focus-visible, .demo-form label > textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-color: var(--ink); background: #FCFEF6; }
.demo-form [aria-invalid="true"] { border-color: #B3261E; background: #FFF8F6; }
.demo-form .consent { display: flex; gap: 14px; align-items: flex-start; font-size: 1rem; color: var(--text-2); cursor: pointer; }
.demo-form .consent input { width: 24px; height: 24px; margin: 1px 0 0; flex: 0 0 24px; accent-color: var(--ink); cursor: pointer; }
.demo-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.demo-form .actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--line); }
.demo-form altcha-widget {
  --altcha-border-radius: 8px; --altcha-border-color: var(--field); --altcha-border-width: 1.5px;
  --altcha-color-base: var(--card); --altcha-color-base-content: var(--ink);
  --altcha-color-primary: var(--ink); --altcha-color-primary-content: var(--lime);
  --altcha-color-success: var(--lime-2); --altcha-color-success-content: var(--lime-ink);
  --altcha-checkbox-border-color: var(--field); --altcha-max-width: 340px; --altcha-shadow: none;
  flex: 1 1 260px; font-size: 1rem;
}
.demo-form button[type="submit"] { min-height: 56px; padding: 14px 30px; border: 0; border-radius: var(--r-btn); background: var(--ink); color: var(--on-dark); font: 700 1.0625rem/1.2 var(--font); cursor: pointer; }
.demo-form button[type="submit"]:hover:not(:disabled) { background: var(--ink-2); }
.demo-form button[type="submit"]:disabled { opacity: .45; cursor: not-allowed; }
.demo-form .msg { margin: 0; padding: 16px 18px; border-radius: var(--r-md); font-size: 1rem; font-weight: 600; }
.demo-form .msg.ok { background: var(--lime-soft); color: var(--lime-ink); }
.demo-form .msg.bad { background: var(--bad-bg); color: var(--bad); }
.demo-form .msg[hidden] { display: none; }
@media (max-width: 720px) { .demo-form { grid-template-columns: 1fr; } .demo-form button[type="submit"] { width: 100%; } }

/* --- Внутрішні сторінки --- */
.page-top { padding-block: clamp(40px, 6vw, 96px) clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.page-top h1 { max-width: 20ch; margin-top: 20px; }
.page-top .lead { margin-top: 24px; }
.page-top .acts { margin-top: 28px; }
.top-note { margin-top: 20px; font: 600 var(--t-small)/1.4 var(--mono); color: var(--text-2); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font: 500 var(--t-small)/1.4 var(--mono); color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin-inline: 10px; color: var(--line-2); }
.crumbs a { color: var(--text-2); display: inline-flex; min-height: 44px; align-items: center; }
.crumbs [aria-current] { color: var(--ink); }

.case-media { padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(48px, 6vw, 88px); }
.case-body { background: var(--card); border-top: 1px solid var(--line); }
.case-grid { display: grid; gap: 56px; }
.case-grid h2 { font-size: clamp(1.375rem, 1rem + 1.4vw, 2.25rem); margin-bottom: 24px; }
.who-steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding-block: 22px; border-top: 1px solid var(--line-2); }
.who-steps li:last-child { border-bottom: 1px solid var(--line-2); }
.who-steps .n { font: 700 1.0625rem/1 var(--mono); background: var(--lime); color: var(--lime-ink); border-radius: 10px; width: 52px; height: 36px; display: inline-flex; align-items: center; justify-content: center; }
.who-steps h3 { font-size: var(--t-h4); margin-bottom: 6px; }
.who-steps p { color: var(--text-2); max-width: 58ch; }
.outcomes li { font-size: var(--t-lead); line-height: 1.4; font-weight: 700; letter-spacing: -0.01em; padding-block: 18px; border-top: 1px solid var(--line-2); }
.outcomes li:last-child { border-bottom: 1px solid var(--line-2); }
.rel-h { margin-top: 56px; }
.rel-links { display: grid; margin-bottom: 28px; }
.rel-links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding-block: 10px; border-top: 1px solid var(--line-2); font-weight: 700; font-size: 1.125rem; text-decoration: none; }
.rel-links li:last-child a { border-bottom: 1px solid var(--line-2); }
.rel-links a:hover .arr, .crow:hover .arr { transform: translateX(4px); }
@media (min-width: 1024px) { .case-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 80px; } }

/* Темний підсумок сторінки: «Що далі» і заклик. */
.next, .cta { background: var(--ink); color: var(--on-dark); }
.next :focus-visible, .cta :focus-visible { outline-color: var(--lime); }
.next-in { display: grid; gap: 28px; }
.next h2, .cta h2 { color: var(--on-dark); }
.next-steps { display: grid; gap: 16px; }
.next-steps li { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: 20px; align-items: baseline; padding-top: 16px; border-top: 1px solid var(--ink-line); }
.next-steps .n { font-family: var(--display); font-size: clamp(2.25rem, 1.5rem + 2.2vw, 3.5rem); line-height: .9; font-weight: 800; color: var(--lime); }
.next-steps p { font-size: var(--t-lead); color: var(--on-dark-2); max-width: 52ch; }
@media (min-width: 900px) { .next-steps { grid-template-columns: 1fr 1fr; gap: 32px; } }
.cta-in { display: grid; gap: 28px; align-items: end; }
.cta p { margin-top: 16px; font-size: var(--t-lead); color: var(--on-dark-2); max-width: 46ch; }
@media (min-width: 1024px) { .cta-in { grid-template-columns: 1fr auto; } }

/* Огляд кейсів: рядки з кадром із запису */
.cases-list { padding-top: clamp(32px, 4vw, 56px); }
.cgroup + .cgroup { margin-top: clamp(56px, 7vw, 104px); }
.cgroup-head { display: grid; gap: 10px; margin-bottom: 20px; }
.cgroup-head h2 { font-size: clamp(1.375rem, 1rem + 1.4vw, 2.25rem); }
.cgroup-head p { color: var(--text-2); max-width: 60ch; }
.crows { border-bottom: 1px solid var(--line-2); }
.crow { display: grid; grid-template-columns: clamp(112px, 18vw, 240px) minmax(0, 1fr) auto; gap: clamp(16px, 2.4vw, 32px); align-items: center; padding-block: 18px; border-top: 1px solid var(--line-2); text-decoration: none; }
.crow img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg); }
.crow img.tall { object-position: center 20%; }
.crow-t { display: grid; gap: 6px; }
.crow-l { font: 600 var(--t-small)/1.3 var(--mono); color: var(--olive); }
.crow-h { font-size: var(--t-h4); font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; }
.crow:hover .crow-h { text-decoration-color: currentColor; }
.crow-p { color: var(--text-2); font-size: 1rem; }
@media (max-width: 560px) { .crow { grid-template-columns: 96px minmax(0, 1fr); } .crow > .arr { display: none; } .crow-p { display: none; } }

/* Театр операцій */
.modes-sec { background: var(--card); border-top: 1px solid var(--line); }
.path-sec { background: var(--paper); border-top: 1px solid var(--line); }
.path { display: grid; gap: 0 32px; counter-reset: none; }
.path li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: baseline; padding-block: 18px; border-top: 2px solid var(--ink); font-size: var(--t-body); font-weight: 600; }
.path .n { font: 700 var(--t-small)/1 var(--mono); color: var(--olive); }
@media (min-width: 720px) { .path { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .path { grid-template-columns: repeat(4, minmax(0, 1fr)); } .path li { grid-template-columns: 1fr; } }
.pult-sec { background: var(--bg); border-top: 1px solid var(--line); }
.pult { display: grid; gap: 40px 48px; }
.pult li { display: grid; gap: 14px; border-top: 2px solid var(--ink); padding-top: 18px; }
.pult h3 { font-size: var(--t-h4); display: flex; gap: 12px; align-items: baseline; }
.pult h3 .n { font: 700 var(--t-small)/1 var(--mono); color: var(--olive); }
.pult dl { display: grid; gap: 10px; }
.pult dl div { display: grid; grid-template-columns: minmax(120px, 34%) minmax(0, 1fr); gap: 12px; }
.pult dt { font: 600 var(--t-small)/1.6 var(--mono); color: var(--muted); }
.pult dd { color: var(--ink); }
.sec-more { margin-top: 40px; }
@media (min-width: 900px) { .pult { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Юридичні сторінки */
.legal-sec { background: var(--card); }
.legal-grid { display: grid; gap: 56px; }
.legal { max-width: 68ch; }
.lsec + .lsec { margin-top: 44px; }
.lsec h2 { font-family: var(--font); text-transform: none; font-weight: 800; font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); letter-spacing: -0.015em; margin-bottom: 14px; }
.lsec p + p, .lsec ul + p, .lsec p + ul { margin-top: 14px; }
.lsec ul { display: grid; gap: 10px; padding-left: 0; }
.lsec li { position: relative; padding-left: 26px; color: var(--text-2); }
.lsec li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 8px; height: 8px; border-radius: 2px; background: var(--ink); transform: rotate(45deg); }
.lsec p { color: var(--text-2); }
.cookie-card { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 16px; }
.cookie-name { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-weight: 800; font-size: 1.25rem; }
.tag { font: 600 var(--t-small)/1.2 var(--mono); background: var(--lime); color: var(--lime-ink); padding: 6px 10px; border-radius: 8px; }
.cookie-card dl { display: grid; gap: 12px; }
.cookie-card dl div { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.cookie-card dt { font: 600 var(--t-small)/1.4 var(--mono); color: var(--muted); }
.legal-other h2 { font-family: var(--font); text-transform: none; font-weight: 800; font-size: var(--t-h4); margin-bottom: 12px; }
.legal-other a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; border-top: 1px solid var(--line-2); font-weight: 700; text-decoration: none; }
.legal-other li:last-child a { border-bottom: 1px solid var(--line-2); }
@media (min-width: 1024px) { .legal-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 80px; } .legal-other { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; } }

/* --- Футер --- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line-2); padding-block: clamp(56px, 6vw, 88px) 32px; font-size: 1rem; }
.foot-grid { display: grid; gap: 40px; }
.foot-brand { display: grid; gap: 14px; align-content: start; }
.foot-brand p { color: var(--text-2); max-width: 44ch; }
.foot-brand .disclaimer { font-size: var(--t-small); color: var(--muted); }
.foot-col h2 { font: 700 var(--t-small)/1.4 var(--mono); text-transform: none; color: var(--muted); margin-bottom: 10px; letter-spacing: 0; }
.foot-col a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.foot-col a:hover { text-decoration: underline; }
.foot-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-2); display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: var(--t-small); color: var(--muted); }
@media (min-width: 720px) { .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (min-width: 1200px) { .foot-grid { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); } .foot-brand { grid-column: auto; } }

/* --- 404 --- */
body.nf { min-height: 100vh; }
.nf-main .brand { display: flex; width: max-content; }
.nf-main { min-height: 100vh; padding-block: 32px 72px; background-color: var(--paper);
  background-image: linear-gradient(to right, rgb(22 26 18 / 0.055) 1px, transparent 1px), linear-gradient(to bottom, rgb(22 26 18 / 0.055) 1px, transparent 1px);
  background-size: 56px 56px; }
.nf-code { margin-top: clamp(32px, 6vw, 80px); font: 800 clamp(5rem, 2.5rem + 12vw, 12rem)/0.9 var(--display); }
.nf-code { background-image: linear-gradient(var(--lime), var(--lime)); background-repeat: no-repeat; background-size: 100% 0.3em; background-position: 0 90%; display: inline-block; padding-inline: 0.03em; }
.nf-cols { display: grid; gap: 48px; margin-top: clamp(32px, 4vw, 56px); }
.nf-cols section { display: grid; gap: 18px; align-content: start; }
.nf-cols h2 { font-size: var(--t-h1); }
@media (min-width: 900px) { .nf-cols { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* Друк: без шапки й форми */
@media print { .site-header, .demo-request, .dvp-ctrl { display: none; } .dvp-sec, .next, .cta, .world-state { background: #fff; color: #000; } }
