/* One Flume — сайт. Цвета — с логотипа (бирюза #03939c, малина #bd1d37) и оформлений программы
   «Нар» (светлое, #F3F3F0) и «Каспий» (тёмное, #0A1316, #6CD0BC); шрифты — те же, что в программе. */

@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/onest-latin-wght-normal.woff2) format("woff2");
  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: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/onest-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/onest-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(fonts/unbounded-latin-wght-normal.woff2) format("woff2");
  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: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(fonts/unbounded-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(fonts/unbounded-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url(fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2");
  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: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url(fonts/jetbrains-mono-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url(fonts/jetbrains-mono-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --paper: #f3f3f0;
  --paper-2: #e9e8e2;
  --card: #ffffff;
  --ink: #0e1416;
  --ink-2: #435055;
  --ink-3: #7a868b;
  --line: rgba(14, 20, 22, 0.1);
  --teal: #03939c;
  --teal-d: #027179;
  --red: #bd1d37;
  --red-d: #9b1229;
  --deep: #0a1316;
  --deep-2: #0f1e22;
  --sea: #6cd0bc;
  --f-display: "Unbounded", "Onest", system-ui, sans-serif;
  --f-text: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;
  --r: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: rgba(3, 147, 156, 0.22); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
.mono { font-family: var(--f-mono); font-size: 0.86em; letter-spacing: -0.01em; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 24px; border-radius: 12px; border: 0;
  font: 600 16px/1 var(--f-text); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s, color 0.25s;
}
.btn-red { background: var(--red); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 24px -10px rgba(189, 29, 55, 0.8); }
.btn-red:hover { background: var(--red-d); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 14px 30px -12px rgba(189, 29, 55, 0.9); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(14, 20, 22, 0.2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14.5px; border-radius: 10px; }
.btn-lg { height: 56px; padding: 0 30px; font-size: 17px; }
.btn:disabled { opacity: 0.6; cursor: progress; }

/* ---------- шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 243, 240, 0.78);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, background 0.3s;
}
.top.scrolled { border-bottom-color: var(--line); background: rgba(243, 243, 240, 0.9); }
.top-in { display: flex; align-items: center; gap: 28px; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo .mark { width: 32px; height: 32px; flex: none; }
.word { font: 700 20px/1 var(--f-text); letter-spacing: -0.02em; }
.word b { color: var(--teal); font-weight: 700; }
.word i { color: var(--red); font-style: normal; margin-left: 0.22em; }
.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav a { text-decoration: none; font-size: 15px; color: var(--ink-2); transition: color 0.2s; }
.nav a:hover { color: var(--ink); }
.lang { display: inline-flex; margin-left: auto; padding: 3px; border-radius: 10px; background: rgba(14, 20, 22, 0.06); }
/* Языки — ссылки на ту же страницу на другом языке (у каждого языка свой адрес). */
.lang a {
  display: inline-block; text-decoration: none;
  border: 0; background: transparent; cursor: pointer; border-radius: 8px;
  padding: 6px 10px; font: 600 12.5px/1 var(--f-mono); color: var(--ink-3); letter-spacing: 0.02em; transition: background 0.2s, color 0.2s;
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(14, 20, 22, 0.12); }

/* ---------- первый экран ---------- */
.hero { position: relative; padding: 64px 0 28px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: -10% -10% 30%; pointer-events: none; z-index: 0;
  background:
    radial-gradient(42% 38% at 82% 14%, rgba(3, 147, 156, 0.18), transparent 70%),
    radial-gradient(26% 26% at 96% 40%, rgba(189, 29, 55, 0.1), transparent 70%),
    repeating-linear-gradient(30deg, rgba(14, 20, 22, 0.055) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(150deg, rgba(14, 20, 22, 0.055) 0 1px, transparent 1px 46px);
  -webkit-mask-image: radial-gradient(70% 70% at 70% 20%, #000 20%, transparent 75%);
          mask-image: radial-gradient(70% 70% at 70% 20%, #000 20%, transparent 75%);
}
.hero > * { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 48px; align-items: end; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px;
  padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--ink-2);
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--teal); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(0.4); opacity: 0.9; } to { transform: scale(1.6); opacity: 0; } }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 {
  font: 600 clamp(40px, 6.1vw, 92px)/0.98 var(--f-display);
  letter-spacing: -0.045em;
}
h1 em {
  display: inline-block; font-style: normal; color: var(--teal);
  background: linear-gradient(90deg, var(--teal), var(--red) 55%, var(--teal)) 0 96% / 200% 0.075em no-repeat;
  padding-bottom: 0.08em;
  animation: flow-line 6s linear infinite;
}
@keyframes flow-line { to { background-position: -200% 96%; } }
.hero-side { padding-bottom: 8px; }
.lead { margin: 0 0 28px; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 36ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Цепочка разделов: по линии бежит «вода». */
.stream { display: flex; align-items: center; flex-wrap: wrap; row-gap: 10px; width: min(var(--wrap), 100% - 48px); margin: 46px auto 0; }
.stream span { display: inline-flex; align-items: center; font: 500 14px/1 var(--f-mono); color: var(--ink-2); }
.stream span + span::before {
  content: ""; width: clamp(22px, 5.5vw, 96px); height: 2px; margin: 0 14px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(3, 147, 156, 0.15) 0 35%, var(--teal) 50%, rgba(3, 147, 156, 0.15) 65% 100%) 0 0 / 300% 100%;
  animation: stream 2.8s linear infinite;
}
.stream span:nth-child(3)::before { animation-delay: 0.35s; }
.stream span:nth-child(4)::before { animation-delay: 0.7s; }
.stream span:nth-child(5)::before { animation-delay: 1.05s; background-image: linear-gradient(90deg, rgba(189, 29, 55, 0.15) 0 35%, var(--red) 50%, rgba(189, 29, 55, 0.15) 65% 100%); }
@keyframes stream { from { background-position: 100% 0; } to { background-position: -50% 0; } }

/* Окна программы: светлое «Нар» спереди, тёмный «Каспий» сзади; при прокрутке выпрямляются. */
.stage { --tilt: 1; margin-top: 54px; perspective: 2400px; }
.stage-in {
  position: relative; width: min(1180px, 100% - 48px); margin: 0 auto; padding-top: 70px;
  transform: rotateX(calc(var(--tilt) * 18deg)) scale(calc(1 - var(--tilt) * 0.05));
  transform-origin: 50% 0; will-change: transform;
}
.win {
  margin: 0; border-radius: var(--r); overflow: hidden; background: var(--card);
  box-shadow: 0 0 0 1px rgba(14, 20, 22, 0.08), 0 2px 4px rgba(14, 20, 22, 0.04), 0 30px 80px -30px rgba(10, 19, 22, 0.45);
}
.win-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #fbfbf9; border-bottom: 1px solid var(--line); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(14, 20, 22, 0.13); }
.win-bar span { margin: 0 auto; transform: translateX(-24px); font: 500 12px/1 var(--f-mono); color: var(--ink-3); }
.stage .win img { width: 100%; aspect-ratio: 1680 / 640; object-fit: cover; object-position: 50% 0; background: var(--paper); }
.win-front { position: relative; z-index: 2; width: 90%; }
.win-back {
  position: absolute; z-index: 1; right: 0; top: 0; width: 62%;
  background: var(--deep); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 30px 70px -30px rgba(10, 19, 22, 0.7);
  transform: translateY(calc(var(--tilt) * -26px));
}
.win-back .win-bar { background: #0f1c20; border-bottom-color: rgba(255, 255, 255, 0.06); }
.win-back .win-bar i { background: rgba(255, 255, 255, 0.14); }
.stage-in::after {
  content: ""; position: absolute; left: 6%; right: 6%; bottom: -40px; height: 80px; z-index: 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(3, 147, 156, 0.28), transparent 70%); filter: blur(20px);
}
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; list-style: none; margin: 46px 0 0; padding: 0; }
.facts li { display: inline-flex; align-items: center; gap: 10px; font: 500 13.5px/1.3 var(--f-mono); color: var(--ink-2); }
.facts li::before { content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: var(--teal); border-radius: 1.5px; }
.facts li:nth-child(even)::before { background: var(--red); }

/* ---------- бегущая строка разделов ---------- */
.marquee { margin-top: 56px; background: var(--deep); color: #e7f0ee; overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee span { display: inline-flex; align-items: center; font: 500 clamp(18px, 2.2vw, 28px)/1 var(--f-display); letter-spacing: -0.02em; white-space: nowrap; }
.marquee span::after { content: ""; width: 10px; height: 10px; margin: 0 clamp(22px, 3vw, 40px); transform: rotate(45deg); border-radius: 2px; background: var(--sea); opacity: 0.75; }
.marquee span:nth-child(3n)::after { background: var(--red); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track, h1 em, .stream span + span::before, .pulse::after { animation: none; } }

/* ---------- разделы ---------- */
.sec { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 600 13px/1 var(--f-mono); color: var(--teal); letter-spacing: 0.02em; }
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
h2 { font: 600 clamp(30px, 3.9vw, 54px)/1.06 var(--f-display); letter-spacing: -0.04em; }
.sub { margin: 20px 0 0; font-size: clamp(17px, 1.35vw, 19px); color: var(--ink-2); max-width: 58ch; }
.motion .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.motion .reveal.in { opacity: 1; transform: none; }

/* ---------- один документ — весь учёт ---------- */
.flow { overflow-x: clip; }
.flow-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.pipe { display: grid; grid-template-columns: minmax(150px, 0.9fr) 72px 1.3fr; align-items: center; margin-top: 44px; }
.pipe-src {
  padding: 18px 18px 20px; border-radius: 14px; background: var(--card);
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px -24px rgba(14, 20, 22, 0.35);
  border-left: 3px solid var(--red);
}
.pipe-src .tag { display: block; margin-bottom: 8px; font: 600 11.5px/1 var(--f-mono); color: var(--red); }
.pipe-src b { font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.pipe-lines { width: 100%; height: 268px; overflow: visible; }
.pipe-lines path { fill: none; stroke: var(--teal); stroke-width: 1.8; vector-effect: non-scaling-stroke; stroke-dasharray: 4 7; animation: drip 1.4s linear infinite; opacity: 0.85; }
.pipe-lines path:nth-child(2) { animation-duration: 1.7s; }
.pipe-lines path:nth-child(3) { animation-duration: 1.55s; }
.pipe-lines path:nth-child(4) { animation-duration: 1.25s; stroke: var(--red); }
@keyframes drip { to { stroke-dashoffset: -22; } }
.pipe-out { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pipe-out li { padding: 11px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.72); box-shadow: inset 0 0 0 1px var(--line); }
.pipe-out b { display: block; font-weight: 600; font-size: 15px; line-height: 1.25; }
.pipe-out span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--ink-3); line-height: 1.35; }
.pipe-out .mono { color: var(--red); font-size: 12.5px; }
.flow-shot { margin: 0; position: relative; }
.flow-shot img {
  width: 100%; border-radius: 16px; cursor: zoom-in; background: var(--card);
  box-shadow: 0 0 0 1px var(--line), 0 40px 90px -40px rgba(10, 19, 22, 0.55);
  transform: rotate(-1.2deg); transition: transform 0.6s var(--ease);
}
.flow-shot img:hover { transform: rotate(0) scale(1.01); }
.flow-shot::before {
  content: ""; position: absolute; inset: 44px -30px 70px 60px; z-index: -1; border-radius: 30px;
  background: linear-gradient(135deg, rgba(3, 147, 156, 0.16), rgba(189, 29, 55, 0.1));
}
.flow-shot figcaption { margin-top: 22px; font-size: 14.5px; color: var(--ink-3); max-width: 52ch; }

/* ---------- витрина программы (тёмная, как «Каспий») ---------- */
.show { background: var(--deep); color: #e3ecea; overflow: hidden; }
.show-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40% 50% at 8% 0%, rgba(108, 208, 188, 0.16), transparent 70%),
    radial-gradient(30% 40% at 100% 100%, rgba(189, 29, 55, 0.16), transparent 70%),
    repeating-linear-gradient(30deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(150deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 46px);
}
.show .wrap { position: relative; }
.show .kicker { color: var(--sea); }
.show .sub { color: rgba(227, 236, 234, 0.68); }
.show-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.look { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.look-l { padding: 0 10px 0 8px; font: 500 12.5px/1 var(--f-mono); color: rgba(227, 236, 234, 0.55); }
.look button { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; padding: 8px 14px; border-radius: 9px; background: transparent; color: rgba(227, 236, 234, 0.7); font-size: 14px; font-weight: 500; transition: background 0.2s, color 0.2s; }
.look button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.12); color: #fff; }
.sw { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.sw-nar { background: linear-gradient(135deg, #f3f3f0 50%, #b3202e 50%); }
.sw-casp { background: linear-gradient(135deg, #0a1316 50%, #6cd0bc 50%); }

.show-body { display: grid; grid-template-columns: 320px 1fr; gap: 36px; margin-top: 56px; align-items: start; }
.tabs { display: flex; flex-direction: column; gap: 4px; }
.tabs button {
  position: relative; display: block; width: 100%; text-align: left; border: 0; cursor: pointer;
  padding: 14px 18px 15px; border-radius: 12px; background: transparent; color: inherit; overflow: hidden;
  transition: background 0.3s;
}
.tabs button:hover { background: rgba(255, 255, 255, 0.04); }
.tabs b { display: block; font-size: 17px; font-weight: 600; color: rgba(227, 236, 234, 0.62); transition: color 0.3s; }
.tabs span { display: block; max-height: 0; opacity: 0; overflow: hidden; font-size: 14.5px; line-height: 1.5; color: rgba(227, 236, 234, 0.7); transition: max-height 0.5s var(--ease), opacity 0.4s, margin 0.4s; }
.tabs button.on { background: rgba(255, 255, 255, 0.06); }
.tabs button.on b { color: #fff; }
.tabs button.on span { max-height: 120px; opacity: 1; margin-top: 6px; }
.tabs button::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--sea); transform: scaleY(0); transition: transform 0.35s var(--ease); }
.tabs button.on::before { transform: scaleY(1); }
.tabs .bar { position: absolute; left: 18px; right: 18px; bottom: 6px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); opacity: 0; }
.tabs .bar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--sea); transform: scaleX(0); transform-origin: 0 50%; }
.show.auto .tabs button.on .bar { opacity: 1; }
.show.auto .tabs button.on .bar::after { animation: tab-bar var(--auto, 6500ms) linear forwards; }
@keyframes tab-bar { to { transform: scaleX(1); } }
.win-show { background: #0f1c20; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 50px 120px -40px rgba(0, 0, 0, 0.8), 0 0 120px -40px rgba(108, 208, 188, 0.25); }
.win-show .win-bar { background: #13242a; border-bottom-color: rgba(255, 255, 255, 0.06); }
.win-show .win-bar i { background: rgba(255, 255, 255, 0.16); }
.win-show .win-bar span { color: rgba(227, 236, 234, 0.5); }
.win-view { position: relative; aspect-ratio: 1680 / 1050; background: #0f1c20; }
.show-img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: opacity 0.45s var(--ease), transform 0.6s var(--ease), filter 0.45s; }
.show-img.swap { opacity: 0; transform: scale(0.985); filter: blur(4px); }

.show-cap { display: none; margin: 16px 2px 0; font-size: 15px; color: rgba(227, 236, 234, 0.72); min-height: 3em; }

/* ---------- почему мы ---------- */
.why-head { max-width: 860px; }
.cmp { margin-top: 56px; }
.cmp-row { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1.2fr; }
.cmp-row > * { padding: 20px 22px; font-size: 15.5px; line-height: 1.45; border-bottom: 1px solid var(--line); }
.cmp-row > b { font-weight: 600; }
.cmp-row > span { color: var(--ink-2); display: flex; gap: 10px; align-items: flex-start; }
.cmp-row:not(.cmp-h) > span:not(.us)::before {
  content: ""; flex: none; width: 14px; height: 14px; margin-top: 4px; border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 20, 22, 0.28) 0 3px, transparent 3.5px), rgba(14, 20, 22, 0.06);
}
.cmp-h > span { font: 600 12.5px/1.3 var(--f-mono); color: var(--ink-3); padding-top: 26px; padding-bottom: 18px; align-items: center; }
.cmp .us { background: var(--card); color: var(--ink); font-weight: 500; box-shadow: inset 2px 0 0 var(--teal), inset -2px 0 0 var(--teal); }
.cmp-h .us { color: var(--ink); font: 700 17px/1 var(--f-text); border-radius: 16px 16px 0 0; box-shadow: inset 2px 0 0 var(--teal), inset -2px 0 0 var(--teal), inset 0 2px 0 var(--teal); }
.cmp-h .us .mark { width: 22px; height: 22px; }
.cmp-row:last-child .us { border-radius: 0 0 16px 16px; box-shadow: inset 2px 0 0 var(--teal), inset -2px 0 0 var(--teal), inset 0 -2px 0 var(--teal), 0 30px 60px -30px rgba(3, 147, 156, 0.45); border-bottom-color: transparent; }
.cmp-row:not(.cmp-h) .us::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 72px; }
.tile {
  position: relative; padding: 30px 30px 32px; border-radius: 20px; background: var(--card);
  box-shadow: 0 0 0 1px var(--line); transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line), 0 26px 50px -30px rgba(10, 19, 22, 0.35); }
.tile h3 { font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.tile p { margin: 10px 0 0; font-size: 15.5px; color: var(--ink-2); }
.tile-big { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; font: 600 clamp(52px, 5.4vw, 76px)/0.9 var(--f-display); letter-spacing: -0.05em; color: var(--teal); }
.tile-big sup { font-size: 0.5em; color: var(--red); margin-left: -8px; }
.tile-dark { background: var(--deep); color: #e3ecea; box-shadow: none; }
.tile-dark p { color: rgba(227, 236, 234, 0.7); }
.tile-dark .tile-big { color: var(--sea); }
.ico { width: 52px; height: 52px; margin-bottom: 22px; border-radius: 14px; display: grid; place-items: center; background: rgba(3, 147, 156, 0.1); }
.ico svg { width: 30px; height: 30px; fill: none; stroke: var(--teal); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- кому подходит ---------- */
.who { padding-top: 0; }
.who-head { max-width: 760px; }
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.who-grid article { padding: 28px 26px 30px; border-radius: 20px; background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 0 0 1px var(--line); transition: background 0.3s; }
.who-grid article:hover { background: var(--card); }
.who-grid h3 { font-size: 19px; font-weight: 600; margin-top: 22px; }
.who-grid p { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); }
.iso {
  display: block; width: 46px; height: 46px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 46'%3E%3Cpath d='M23 4 41 14 23 24 5 14Z' fill='%2303939c' opacity='.55'/%3E%3Cpath d='M5 14 23 24v19L5 33Z' fill='%2303939c'/%3E%3Cpath d='M41 14 23 24v19l18-10Z' fill='%23bd1d37'/%3E%3C/svg%3E") center / contain no-repeat;
}
.who-grid article:nth-child(2) .iso { filter: hue-rotate(0deg) saturate(0.85); transform: scaleX(-1); }
.who-grid article:nth-child(3) .iso { transform: scale(0.92); }

/* ---------- как начинаем ---------- */
.start { background: var(--paper-2); }
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }
.steps::before { content: ""; position: absolute; left: 9px; right: 9px; top: 9px; height: 2px; background: linear-gradient(90deg, var(--teal), var(--red)); opacity: 0.35; }
.steps li { position: relative; padding-top: 44px; }
.step-dot { position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--paper-2); box-shadow: inset 0 0 0 3px var(--teal); }
.steps li:nth-child(2) .step-dot { box-shadow: inset 0 0 0 3px #5e5a7a; box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--teal), var(--red)); }
.steps li:nth-child(3) .step-dot { box-shadow: inset 0 0 0 3px var(--red); }
.steps h3 { font: 600 clamp(20px, 1.8vw, 24px)/1.2 var(--f-display); letter-spacing: -0.03em; }
.steps p { margin: 12px 0 0; color: var(--ink-2); font-size: 16px; max-width: 36ch; }

/* ---------- заявка ---------- */
.lead-sec { background: var(--deep); color: #e3ecea; overflow: hidden; }
.lead-sec::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 60% at 0% 100%, rgba(3, 147, 156, 0.3), transparent 70%),
    radial-gradient(35% 45% at 100% 0%, rgba(189, 29, 55, 0.18), transparent 70%);
}
.lead-sec .wrap { position: relative; }
.lead-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.lead-copy { position: sticky; top: 120px; }
.lead-sec .kicker { color: var(--sea); }
.lead-sec .sub { color: rgba(227, 236, 234, 0.72); }
.lead-points { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; }
.lead-points li { display: flex; align-items: center; gap: 12px; font-size: 17px; }
.lead-points li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--sea) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.4l3 3 6-6.6' fill='none' stroke='%230a1316' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.form {
  position: relative; display: grid; gap: 18px; padding: clamp(24px, 3vw, 36px); border-radius: 24px;
  background: var(--card); color: var(--ink); box-shadow: 0 50px 120px -50px rgba(0, 0, 0, 0.8);
}
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fld { display: grid; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.fld em { color: var(--red); font-style: normal; }
.fld input, .fld textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid rgba(14, 20, 22, 0.14);
  background: #fafaf8; color: var(--ink); font: 400 16px/1.35 var(--f-text);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.fld textarea { resize: vertical; min-height: 92px; }
.fld input::placeholder, .fld textarea::placeholder { color: #a3adb1; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(3, 147, 156, 0.15); }
.fld [aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 4px rgba(189, 29, 55, 0.12); }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; background: #f1f1ee; color: var(--ink-2); box-shadow: inset 0 0 0 1px transparent;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.chips span:hover { background: #e8e8e3; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; }
.chips input:checked + span { background: rgba(3, 147, 156, 0.1); color: var(--teal-d); box-shadow: inset 0 0 0 1.5px var(--teal); }
.chips input:checked + span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.chips input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.note { margin: 0; font-size: 13px; color: var(--ink-3); max-width: 30ch; line-height: 1.45; }
.form-msg { margin: -4px 0 0; min-height: 1.4em; font-size: 14.5px; color: var(--ink-3); }
.form-msg.err { color: var(--red); font-weight: 500; }
.form-done {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 10px;
  padding: 40px; border-radius: inherit; background: var(--card);
}
.form-done[hidden] { display: none; }
.form-done svg { width: 76px; height: 76px; fill: none; stroke: var(--teal); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.form-done circle { stroke-dasharray: 140; stroke-dashoffset: 140; animation: draw 0.9s var(--ease) forwards; }
.form-done path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.5s 0.6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-done h3 { font: 600 28px/1.1 var(--f-display); letter-spacing: -0.03em; margin-top: 10px; }
.form-done p { margin: 0; color: var(--ink-2); max-width: 32ch; }

/* ---------- подвал ---------- */
.foot { padding: 44px 0 52px; background: var(--paper); }
.foot-in { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.foot-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-nav a { text-decoration: none; color: var(--ink-2); font-size: 15px; }
.foot-nav a:hover { color: var(--ink); }
.lang-foot a { font: 500 13px/1 var(--f-text); padding: 7px 11px; }
.copy { margin: 0; width: 100%; font: 500 12.5px/1 var(--f-mono); color: var(--ink-3); }

/* ---------- снимок крупно ---------- */
.zoom { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; cursor: zoom-out; }
.zoom::backdrop { background: rgba(6, 12, 14, 0.82); backdrop-filter: blur(6px); }
.zoom img { max-width: 96vw; max-height: 90vh; width: auto; border-radius: 12px; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6); }
.zoom-x { position: fixed; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 26px; line-height: 1; }

.mdemo { display: none; }

/* ---------- узкие экраны ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .flow-grid { grid-template-columns: 1fr; }
  .show-body { grid-template-columns: 1fr; gap: 24px; }
  .tabs { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 6px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { width: auto; flex: none; padding: 10px 16px; }
  .tabs button::before, .tabs .bar { display: none; }
  .tabs b { font-size: 15px; white-space: nowrap; }
  .tabs span { display: none; }
  .show-cap { display: block; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .lead-grid { grid-template-columns: 1fr; }
  .lead-copy { position: static; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap, .stream { width: calc(100% - 32px); }
  .top-in { gap: 12px; height: 62px; }
  .top .btn-sm { display: none; }
  .word { font-size: 18px; }
  .hero { padding-top: 40px; }
  .stage { margin-top: 36px; }
  .stage-in { width: calc(100% - 24px); padding-top: 34px; }
  .win-front { width: 94%; }
  .win-back { width: 70%; }
  .win-bar { height: 24px; padding: 0 10px; gap: 5px; }
  .win-bar i { width: 7px; height: 7px; }
  .win-bar span { display: none; }
  .stream span + span::before { margin: 0 8px; }
  .pipe { grid-template-columns: 1fr; gap: 12px; }
  .pipe-lines { display: none; }
  .pipe-src { border-left: 0; border-top: 3px solid var(--red); }
  .flow-shot::before { inset: 24px -10px 64px 24px; }
  .cmp-h { display: none; }
  .cmp-row { grid-template-columns: 1fr; margin-bottom: 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
  .cmp-row > * { border-bottom: 0; padding: 12px 18px; }
  .cmp-row > b { padding-top: 18px; font-size: 16.5px; }
  .cmp-row > span[data-col]::after { content: attr(data-col); order: -1; flex: none; width: 104px; font: 600 11.5px/1.5 var(--f-mono); color: var(--ink-3); padding-top: 2px; }
  .cmp-row > span::before { order: 0; }
  .cmp .us, .cmp-row:last-child .us { box-shadow: none; border-radius: 0; background: rgba(3, 147, 156, 0.08); padding-bottom: 16px; }
  .tiles, .who-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { left: 9px; right: auto; top: 9px; bottom: 9px; width: 2px; height: auto; background: linear-gradient(180deg, var(--teal), var(--red)); }
  .steps li { padding: 0 0 0 40px; }
  .row2 { grid-template-columns: 1fr; }
  .marquee { margin-top: 40px; padding: 16px 0; }
  .mdemo {
    display: flex; position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; height: 52px;
    transform: translateY(calc(100% + 24px)); transition: transform 0.4s var(--ease);
  }
  .mdemo.up { transform: none; }
}

/* ---------- подсказка языка: «эта страница есть на вашем языке» ---------- */
.lang-hint { position: relative; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 9px 48px 9px 16px; background: var(--deep); color: #fff; font: 500 14.5px/1.4 var(--f-text); text-align: center; }
.lang-hint[hidden], .lang-hint a[hidden] { display: none; }
.lang-hint a { color: #fff; text-decoration: none; }
.lang-hint a b { margin-left: 6px; color: var(--sea); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lang-hint a:hover b { color: #fff; }
.lang-hint-x { position: absolute; right: 8px; top: 50%; translate: 0 -50%; width: 32px; height: 32px; border: 0; border-radius: 8px;
  background: transparent; color: rgba(255, 255, 255, 0.7); font-size: 20px; line-height: 1; cursor: pointer; }
.lang-hint-x:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* ---------- 404 ---------- */
.nf { min-height: 100vh; display: grid; place-items: center; padding: 48px 24px; }
.nf-in { width: min(980px, 100%); }
.nf-code { margin: 36px 0 8px; font: 800 clamp(72px, 14vw, 150px)/1 var(--f-display); color: var(--teal); letter-spacing: -0.04em; }
.nf-langs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.nf-langs h1, .nf-langs h2 { margin: 0 0 8px; font: 700 22px/1.25 var(--f-display); letter-spacing: -0.02em; }
.nf-langs p { margin: 0 0 18px; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 760px) { .nf-langs { grid-template-columns: 1fr; } }

/* ---------- разделы: карточки на главной и страницы разделов ---------- */
.mhead { max-width: 820px; }
.mods-sec { padding-bottom: 0; }
.mods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.mod {
  position: relative; display: grid; align-content: start; gap: 8px; padding: 26px 56px 28px 26px; border-radius: 20px;
  background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none;
  transition: background 0.3s, transform 0.4s var(--ease), box-shadow 0.4s;
}
.mod:hover { background: var(--card); transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line), 0 26px 50px -30px rgba(10, 19, 22, 0.35); }
.mod .iso { width: 38px; height: 38px; margin-bottom: 10px; }
.mod b { font: 600 clamp(18px, 1.6vw, 21px)/1.2 var(--f-display); letter-spacing: -0.03em; }
.mod > span:not(.iso) { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.mod i { position: absolute; right: 24px; top: 26px; font-style: normal; font-size: 20px; line-height: 1; color: var(--teal); transition: transform 0.3s var(--ease); }
.mod:hover i { transform: translateX(4px); }
.mods .mod:nth-child(3n + 2) .iso { transform: scaleX(-1); }

.mhero { padding-bottom: 0; }
.mhero h1 { font-size: clamp(36px, 4.6vw, 68px); line-height: 1.02; }
.mhero .hero-copy .kicker { margin-bottom: 22px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 40px; font: 500 13px/1.4 var(--f-mono); color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--teal); }
.crumbs a::after { content: "/"; margin-left: 10px; color: var(--ink-3); }
.m-shot { margin: 56px 0 0; }
.m-shot img { width: 100%; cursor: zoom-in; }
.m-shot figcaption { margin-top: 16px; font-size: 14.5px; color: var(--ink-3); max-width: 64ch; }
.mcaps .tiles { margin-top: 48px; }
.mflow { background: var(--paper-2); }
.mflow-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.mflow-head { position: sticky; top: 110px; }
.msteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: st; }
.msteps li {
  position: relative; counter-increment: st; padding: 22px 26px 24px 78px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.62); box-shadow: inset 0 0 0 1px var(--line);
}
.msteps li::before { content: counter(st, decimal-leading-zero); position: absolute; left: 26px; top: 23px; font: 600 15px/1.4 var(--f-mono); color: var(--teal); }
.msteps li:nth-child(even)::before { color: var(--red); }
.msteps h3 { font-size: 18.5px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.msteps p { margin: 6px 0 0; font-size: 15.5px; color: var(--ink-2); }
.foot-mods { display: flex; flex-wrap: wrap; gap: 8px 22px; width: 100%; order: 3; }
.foot-mods a { text-decoration: none; color: var(--ink-3); font-size: 14px; }
.foot-mods a:hover { color: var(--ink); }
.copy { order: 4; }
@media (max-width: 1080px) {
  .mods { grid-template-columns: 1fr 1fr; }
  .mflow-grid { grid-template-columns: 1fr; }
  .mflow-head { position: static; }
}
@media (max-width: 760px) {
  .mods { grid-template-columns: 1fr; }
  .crumbs { margin-bottom: 28px; }
  .m-shot { margin-top: 36px; }
  .msteps li { padding: 18px 18px 20px 58px; }
  .msteps li::before { left: 18px; top: 19px; }
}
/* Заголовок раздела переносится на две строки — линия под каждой строкой, а не под пустым блоком. */
.mhero h1 em { display: inline; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
