/* ТАТ-МТ — «Под напряжением».
   Графит + сигнальный жёлтый (знак высокого напряжения), фазные цвета ГОСТ: A — жёлтый, B — зелёный, C — красный. */
:root {
  --ink: #0B0E11;
  --ink-2: #11161B;
  --panel: #151B21;
  --line: #232B33;
  --line-2: #36414C;
  --text: #EEF1F3;
  --muted: #8E9AA5;
  --fog: #ECEEEA;
  --fog-2: #DCE0DA;
  --ink-soft: #3C464F;
  --volt: #FFD000;
  --volt-hot: #FFE45C;
  --pa: #FFD000;
  --pb: #22C27A;
  --pc: #FF4B36;
  --display: "Unbounded", "Golos Text", system-ui, sans-serif;
  --body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --gutter: 20px;
  --max: 1280px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --chamfer: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
html[lang^="zh"] {
  --display: "Unbounded", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --body: "Golos Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
@media (min-width: 720px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
main { overflow-x: clip; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; letter-spacing: -0.02em; }
html[lang^="zh"] h1, html[lang^="zh"] h2, html[lang^="zh"] h3 { letter-spacing: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--volt); color: var(--ink); }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--volt); color: var(--ink); padding: 10px 14px; font-weight: 600; }
.skip:focus { top: 12px; }
.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* подписи-«шильдики» */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.kicker::before { content: ""; width: 8px; height: 8px; background: var(--volt); flex-shrink: 0; }
html[lang^="zh"] .kicker { letter-spacing: .06em; }

/* ---------------------------------------------------------------- кнопки */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 28px; border: 0; cursor: pointer;
  font: 600 16px/1 var(--body); letter-spacing: .01em; text-decoration: none;
  clip-path: var(--chamfer);
  transition: transform .25s var(--ease), background-color .2s;
}
.btn > span { position: relative; z-index: 1; }
.btn::before { /* «дуга» — вспышка, пробегающая по кнопке */
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .85) 48%, transparent 76%);
  transform: translateX(-120%); transition: transform .55s var(--ease);
}
.btn:hover::before { transform: translateX(120%); }
.btn:active { transform: scale(.98); }
.btn-volt { background: var(--volt); color: var(--ink); }
.btn-volt:hover { background: var(--volt-hot); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost::before { background: linear-gradient(100deg, transparent 20%, rgba(255, 208, 0, .35) 50%, transparent 80%); }
.btn-dark { background: var(--ink); color: var(--text); }
.btn-dark::before { background: linear-gradient(100deg, transparent 20%, rgba(255, 208, 0, .55) 50%, transparent 80%); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn-lg { min-height: 60px; padding: 0 34px; font-size: 17px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------------------------------------------------------------- шапка */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 40;
  transition: background-color .3s, border-color .3s, transform .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(11, 14, 17, .82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.site-header.hidden { transform: translateY(-100%); }
.header-row { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.logo-mark { display: inline-flex; gap: 3px; height: 22px; }
.logo-mark i { width: 5px; }
.logo-mark i:nth-child(1) { background: var(--pa); }
.logo-mark i:nth-child(2) { background: var(--pb); }
.logo-mark i:nth-child(3) { background: var(--pc); }
.logo-word { font: 700 19px/1 var(--display); letter-spacing: .02em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.nav ul { display: flex; gap: 26px; }
.nav ul a { position: relative; font-size: 15px; text-decoration: none; color: #C9D1D7; padding: 6px 0; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--volt); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav ul a:hover { color: var(--text); }
.nav ul a:hover::after { transform: scaleX(1); }
.langs { display: flex; gap: 2px; }
.langs a { font: 500 12px/1 var(--mono); text-decoration: none; padding: 7px 8px; color: var(--muted); }
.langs a:hover { color: var(--text); }
.langs a[aria-current] { color: var(--ink); background: var(--volt); }
.menu-toggle { display: none; }

@media (max-width: 1080px) {
  .header-cta { display: none; }
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 46px; height: 46px; margin-left: auto; padding: 0 12px;
    background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); cursor: pointer;
  }
  .menu-toggle i { display: block; height: 2px; background: var(--text); transition: transform .25s var(--ease); }
  .menu-toggle[aria-expanded="true"] i:first-of-type { transform: translateY(4.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] i:last-of-type { transform: translateY(-4.5px) rotate(-45deg); }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px;
    clip-path: inset(0 0 100% 0); transition: clip-path .4s var(--ease); visibility: hidden;
  }
  .nav.open { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 16px 0; font: 600 20px/1.2 var(--display); border-bottom: 1px solid var(--line); }
  .nav ul a::after { display: none; }
  .nav .langs { padding-top: 18px; }
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; overflow: hidden; background: var(--ink); }
.grid-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(130% 90% at 70% 35%, transparent 0%, rgba(11, 14, 17, .35) 60%, rgba(11, 14, 17, .85) 100%),
    linear-gradient(180deg, rgba(11, 14, 17, .5) 0%, transparent 22%, transparent 60%, rgba(11, 14, 17, .9) 100%);
}
.hero-inner {
  position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: space-between;
  padding-top: calc(var(--header-h) + 36px); padding-bottom: 56px; pointer-events: none;
}
.hero-inner a, .hero-inner button { pointer-events: auto; }
.telemetry { display: flex; flex-wrap: wrap; gap: 8px 28px; font: 500 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.telemetry li { display: inline-flex; align-items: center; gap: 10px; }
.telemetry li:first-child::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pb); box-shadow: 0 0 0 0 rgba(34, 194, 122, .6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(34, 194, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 194, 122, 0); } }
.hero-title {
  margin: 12vh 0 0; font-weight: 700;
  font-size: clamp(34px, 6vw, 96px); line-height: 1; letter-spacing: -0.04em;
}
html[lang^="zh"] .hero-title { line-height: 1.12; letter-spacing: 0; font-size: clamp(40px, 8vw, 128px); }
@media (max-width: 719px) { .hero-title { font-size: min(8vw, 44px); } html[lang^="zh"] .hero-title { font-size: min(10vw, 52px); } }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line-in { display: inline-block; }
.rot { position: relative; display: inline-block; white-space: nowrap; vertical-align: bottom; color: var(--volt); overflow: hidden; }
.rot-word { display: inline-block; white-space: nowrap; }
.rot::after { /* курсор-рубильник */
  content: ""; display: inline-block; width: .12em; height: .78em; margin-left: .08em; background: var(--volt);
  vertical-align: baseline; animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.rot-suffix { margin-left: 0; }
.hero-bottom { display: grid; gap: 28px; margin-top: 48px; }
@media (min-width: 960px) { .hero-bottom { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 56px; } }
.hero-lead { max-width: 34em; font-size: 19px; line-height: 1.55; color: #C5CED4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-scroll {
  position: absolute; right: var(--gutter); bottom: 56px; z-index: 2; display: none;
  flex-direction: column; align-items: center; gap: 12px; text-decoration: none;
  font: 500 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  writing-mode: vertical-rl;
}
.hero-scroll i { position: relative; width: 1px; height: 72px; background: var(--line-2); overflow: hidden; }
.hero-scroll i::after { content: ""; position: absolute; left: -1px; top: -24px; width: 3px; height: 24px; background: var(--volt); animation: drop 1.8s var(--ease) infinite; }
@keyframes drop { to { top: 72px; } }
@media (min-width: 1360px) { .hero-scroll { display: flex; } }

/* ---------------------------------------------------------------- манифест */
.manifesto { background: var(--volt); color: var(--ink); padding: clamp(96px, 18vh, 200px) 0; }
.manifesto-text { font: 600 clamp(26px, 3.8vw, 58px)/1.14 var(--display); letter-spacing: -0.025em; max-width: 22em; }
html[lang^="zh"] .manifesto-text { line-height: 1.4; letter-spacing: 0; }
.manifesto-text .w { opacity: .16; transition: none; }
.no-js .manifesto-text .w { opacity: 1; }

/* ---------------------------------------------------------------- общие заголовки секций */
.section-head { display: grid; gap: 18px; margin-bottom: 56px; }
.section-head h2, .coprod-head h2, .contact h2 { font-size: clamp(27px, 4.6vw, 68px); line-height: 1.02; letter-spacing: -0.035em; }
html[lang^="zh"] .section-head h2, html[lang^="zh"] .coprod-head h2, html[lang^="zh"] .contact h2 { line-height: 1.2; letter-spacing: 0; }
.section-intro { max-width: 36em; font-size: 18px; color: var(--muted); }
@media (min-width: 1000px) {
  .section-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "k k" "h i"; align-items: end; column-gap: 64px; }
  .section-head .kicker { grid-area: k; }
  .section-head h2 { grid-area: h; }
  .section-head .section-intro { grid-area: i; }
}

/* ---------------------------------------------------------------- направления: горизонтальная лента */
.dirs { padding: clamp(96px, 14vh, 160px) 0 72px; background: var(--ink); }
.dirs-pin { position: relative; }
.dirs-track { display: flex; flex-direction: column; gap: 20px; padding: 0 var(--gutter); }
.dir-panel {
  position: relative; display: grid; background: var(--panel); border: 1px solid var(--line);
  min-height: 0; overflow: hidden;
}
.dir-panel.phase-a { --ph: var(--pa); }
.dir-panel.phase-b { --ph: var(--pb); }
.dir-panel.phase-c { --ph: var(--pc); }
.dir-panel::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--ph); z-index: 2; }
.dir-copy { display: flex; flex-direction: column; gap: 18px; padding: 32px 26px; }
.dir-copy .kicker::before { background: var(--ph); }
.dir-index { color: var(--text); margin-right: 6px; }
.dir-copy h3 { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.08; letter-spacing: -0.03em; }
.dir-text { color: #C5CED4; font-size: 17px; }
.dir-projects { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); }
.dir-projects .kicker { margin-bottom: 12px; }
.dir-projects .kicker::before { background: var(--line-2); }
.dir-projects li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.45; color: var(--text); }
.dir-projects li + li { margin-top: 8px; }
.dir-projects li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 2px; background: var(--ph); }
.dir-vis { position: relative; min-height: 280px; background: #0E1318; border-top: 1px solid var(--line); }
.dir-vis canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.dirs-progress { display: none; }
.dirs .note { margin-top: 32px; font-size: 15px; color: var(--muted); }
@media (min-width: 1000px) {
  .js .dirs-pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
  .dirs-track { flex-direction: row; gap: 28px; padding: 0 var(--gutter); width: max-content; }
  .no-js .dirs-track { width: auto; overflow-x: auto; }
  .dir-panel { width: min(1120px, 80vw); height: min(640px, calc(100vh - 200px)); grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); flex-shrink: 0; }
  .dir-copy { padding: 48px 44px; }
  .dir-vis { border-top: 0; border-left: 1px solid var(--line); min-height: 0; }
  .js .dirs-progress { display: block; position: relative; height: 2px; margin: 36px var(--gutter) 0; max-width: calc(var(--max)); background: var(--line); }
  .dirs-progress i { position: absolute; inset: 0; background: var(--volt); transform: scaleX(0); transform-origin: left; }
}

/* ---------------------------------------------------------------- производителям */
.coprod { background: var(--fog); color: var(--ink); padding: clamp(96px, 14vh, 160px) 0; }
.coprod .kicker { color: var(--ink-soft); }
.coprod .kicker::before { background: var(--ink); }
.coprod-head { display: grid; gap: 18px; max-width: 900px; }
.coprod .section-intro { color: var(--ink-soft); }
.coprod-scheme { display: grid; gap: 28px; align-items: center; margin: 64px 0 56px; }
.coprod-scheme .side { border-top: 3px solid var(--ink); padding-top: 18px; }
.coprod-scheme .side .kicker { margin-bottom: 14px; }
.coprod-scheme li { padding: 14px 0; border-bottom: 1px solid var(--fog-2); font: 500 clamp(18px, 1.6vw, 22px)/1.3 var(--display); letter-spacing: -0.015em; }
.xfmr { width: 100%; max-width: 280px; justify-self: center; overflow: visible; }
.xfmr .x-lead { stroke: var(--ink); stroke-width: 3; }
.xfmr .x-coil { fill: none; stroke-width: 4; }
.xfmr .x-a { stroke: var(--ink); }
.xfmr .x-b { stroke: var(--ink); }
.xfmr .x-flux { fill: none; stroke: #C99F00; stroke-width: 2; stroke-dasharray: 4 8; animation: flux 1.2s linear infinite; }
@keyframes flux { to { stroke-dashoffset: -24; } }
@media (min-width: 900px) { .coprod-scheme { grid-template-columns: minmax(0, 1fr) 260px minmax(0, 1fr); gap: 40px; } }

/* ---------------------------------------------------------------- команда: сборка на шине */
.team { background: var(--ink); padding: clamp(96px, 14vh, 160px) 0; }
.assembly { position: relative; }
.core {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; width: max-content; max-width: 100%;
  padding: 14px 20px; background: var(--panel); border: 1px solid var(--line-2);
  font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
}
.core-mark { display: inline-flex; gap: 3px; height: 16px; }
.core-mark i { width: 4px; }
.core-mark i:nth-child(1) { background: var(--pa); }
.core-mark i:nth-child(2) { background: var(--pb); }
.core-mark i:nth-child(3) { background: var(--pc); }
.core-status { color: var(--pb); padding-left: 14px; border-left: 1px solid var(--line-2); }
.bus { position: absolute; left: 0; top: 44px; bottom: 32px; width: 5px; }
.bus i { position: absolute; inset: 0; background: var(--text); transform-origin: top; }
.leads { display: grid; gap: 18px; padding: 28px 0 0 34px; }
.lead { position: relative; }
.lead.phase-a { --ph: var(--pa); }
.lead.phase-b { --ph: var(--pb); }
.lead.phase-c { --ph: var(--pc); }
.feeder { position: absolute; left: -29px; top: 34px; width: 29px; height: 2px; }
.feeder::before { content: ""; position: absolute; inset: 0; background: var(--text); transform-origin: left; transform: scaleX(var(--f, 1)); }
.feeder i { position: absolute; right: 4px; top: -5px; width: 12px; height: 12px; background: var(--ph); border: 2px solid var(--ink); box-shadow: 0 0 0 1px var(--text); }
.lead-card {
  position: relative; height: 100%; padding: 26px 24px; background: var(--panel); border: 1px solid var(--line);
  transition: border-color .4s, box-shadow .4s;
}
.lead-card::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--ph); }
.lead.on .lead-card { border-color: var(--line-2); box-shadow: 0 30px 80px -40px var(--ph); }
.lead-photo { margin: -26px -24px 20px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-2); }
.lead-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.lead-card .kicker { margin-bottom: 8px; }
.lead-card h3 { font-size: 20px; line-height: 1.2; letter-spacing: -0.02em; }
.lead-role { margin-top: 6px; font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lead-text { margin-top: 16px; font-size: 15px; line-height: 1.5; color: #C5CED4; }
.stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.stack li { font: 500 11.5px/1 var(--mono); padding: 7px 8px; border: 1px solid var(--line-2); color: #C5CED4; }
@media (min-width: 1140px) {
  .js .team-pin { min-height: 100vh; display: flex; align-items: center; }
  .team .section-head { margin-bottom: 28px; gap: 12px; }
  .team .section-head h2 { font-size: clamp(30px, 3.2vw, 46px); }
  .team .section-intro { font-size: 16px; }
  .js .team-pin > .container { padding-top: calc(var(--header-h) + 8px); padding-bottom: 24px; }
  .lead-card { padding: 22px 18px; }
  .lead-text { font-size: 14px; margin-top: 12px; }
  .stack { margin-top: 14px; }
  .core { margin: 0 auto; }
  .bus { left: 0; right: 0; top: auto; bottom: auto; width: auto; height: 5px; margin-top: 30px; position: relative; }
  .bus i { transform-origin: center; }
  .leads { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; padding: 46px 0 0; }
  .feeder { left: 50%; top: -46px; width: 2px; height: 46px; margin-left: -1px; }
  .feeder::before { transform-origin: top; transform: scaleY(var(--f, 1)); }
  .feeder i { right: auto; left: -6px; top: 16px; }
  .lead-card h3 { min-height: 2.4em; }
  .core::before { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 31px; background: var(--text); margin-left: -1px; }
}

/* ---------------------------------------------------------------- бегущая строка отраслей */
.marquee { background: var(--volt); color: var(--ink); overflow: hidden; padding: 30px 0; border-block: 1px solid var(--ink); }
.mq-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.mq-row { display: flex; align-items: center; flex-shrink: 0; }
.mq-item { font: 700 clamp(36px, 6.4vw, 92px)/1 var(--display); letter-spacing: -0.03em; text-transform: uppercase; white-space: nowrap; padding: 0 .35em; }
html[lang^="zh"] .mq-item { letter-spacing: 0; }
.mq-outline { color: rgba(11, 14, 17, .32); }
.mq-sep { width: .35em; height: .35em; font-size: clamp(36px, 6.4vw, 92px); background: var(--ink); transform: rotate(45deg); flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- форматы и процесс (светлые) */
.formats, .process { background: var(--fog); color: var(--ink); }
.formats { padding: clamp(96px, 14vh, 160px) 0 72px; }
.process { padding: 72px 0 clamp(96px, 14vh, 160px); }
.formats .kicker, .process .kicker { color: var(--ink-soft); }
.formats .kicker::before, .process .kicker::before { background: var(--ink); }
.formats .section-intro, .process .section-intro { color: var(--ink-soft); }
.format-grid { display: grid; gap: 16px; }
.format { position: relative; padding: 32px 28px 36px; background: var(--fog); border: 1px solid var(--fog-2); border-top: 3px solid var(--ink); transition: background-color .3s, transform .35s var(--ease); }
.format-bar { position: absolute; left: 0; top: -3px; height: 3px; width: 100%; background: var(--volt); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.format:hover { background: #fff; transform: translateY(-4px); }
.format:hover .format-bar { transform: scaleX(1); }
.format h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.1; margin-bottom: 14px; letter-spacing: -0.025em; }
.format p { color: var(--ink-soft); }
@media (min-width: 900px) { .format-grid { grid-template-columns: repeat(3, 1fr); } .format { padding: 40px 34px 44px; } }

.steps-wrap { position: relative; }
.steps { display: grid; gap: 32px; }
.step { position: relative; padding-left: 64px; }
.step-n {
  position: absolute; left: 0; top: -4px; width: 44px; height: 44px; display: grid; place-items: center; z-index: 1;
  font: 700 16px/1 var(--display); background: var(--fog); border: 2px solid var(--ink); transition: background-color .3s, color .3s;
}
.step.active .step-n { background: var(--ink); color: var(--volt); }
.step h3 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 8px; padding-top: 6px; }
.step p { color: var(--ink-soft); font-size: 16px; }
.steps-line { position: absolute; left: 21px; top: 20px; bottom: 20px; width: 2px; background: var(--fog-2); }
.steps-line i { position: absolute; inset: 0; background: var(--ink); transform-origin: top; }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
  .step { padding: 72px 0 0; }
  .step h3 { padding-top: 0; }
  .steps-line { left: 22px; right: 0; top: 21px; bottom: auto; width: auto; height: 2px; }
  .steps-line i { transform-origin: left; }
}

/* ---------------------------------------------------------------- контакты */
.contact { position: relative; background: var(--ink); padding: clamp(96px, 14vh, 160px) 0; overflow: hidden; }
.contact::before { /* слабое «свечение дуги» */
  content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -300px; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 208, 0, .10), transparent 60%);
}
.contact-grid { position: relative; display: grid; gap: 56px; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 96px; } }
.contact-text { display: grid; gap: 22px; align-content: start; }
.contact-text > p:not(.kicker) { color: #C5CED4; font-size: 19px; max-width: 28em; }
.contacts { margin: 16px 0 0; display: grid; gap: 18px; }
.contacts div { display: grid; gap: 4px; }
.contacts dt { font: 500 11px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-grid > * { min-width: 0; }
.contacts dd { margin: 0; font: 500 clamp(17px, 4.6vw, 22px)/1.3 var(--display); overflow-wrap: anywhere; }
.contacts a { text-decoration: none; background: linear-gradient(var(--volt), var(--volt)) left bottom / 0 2px no-repeat; transition: background-size .3s var(--ease); }
.contacts a:hover { background-size: 100% 2px; }

.lead-form { display: grid; gap: 8px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 28px 0 12px; font: 400 19px/1.4 var(--body); color: var(--text);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; outline: none;
  transition: border-color .25s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field label {
  position: absolute; left: 0; top: 30px; font-size: 18px; color: var(--muted); pointer-events: none;
  transform-origin: left top; transition: transform .25s var(--ease), color .25s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-24px) scale(.72); color: var(--volt); }
.field input:focus, .field textarea:focus { border-color: var(--volt); }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--volt); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field-hint { margin-top: 8px; font-size: 13px; color: var(--muted); }
.opt { color: #66737E; }
.field.invalid input { border-color: var(--pc); }
.field-err { margin-top: 6px; font-size: 14px; color: #FF8C7D; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin-top: 18px; font-size: 14px; line-height: 1.5; color: #AEB8C0; cursor: pointer; }
.consent input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1.5px solid var(--line-2); background: transparent; cursor: pointer; display: grid; place-items: center; }
.consent input:checked { background: var(--volt); border-color: var(--volt); }
.consent input:checked::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-1px) rotate(-45deg); }
.consent a { color: var(--text); }
.consent.invalid input { border-color: var(--pc); }
.consent.invalid span { color: #FF8C7D; }
.lead-form .btn { justify-self: start; margin-top: 22px; }
.form-status { min-height: 1.6em; margin-top: 6px; font-size: 16px; }
.form-status.ok { color: #7FE3AE; }
.form-status.err { color: #FF8C7D; }

/* ---------------------------------------------------------------- подвал: основная надпись */
.site-footer { background: var(--ink); padding: 32px 0 44px; border-top: 1px solid var(--line); }
.titleblock { display: grid; border: 1px solid var(--line-2); }
.tb-cell { display: grid; gap: 6px; align-content: start; padding: 14px 18px; border-bottom: 1px solid var(--line-2); font-size: 14px; color: #AEB8C0; }
.tb-cell:last-child { border-bottom: 0; }
.tb-label { font: 500 10px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #66737E; }
.tb-name { font: 700 20px/1.2 var(--display); color: var(--text); }
.tb-cell .langs { margin-left: -8px; }
.tb-meta { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center; }
.tb-meta a { color: var(--text); }
@media (min-width: 900px) {
  .titleblock { grid-auto-flow: column; grid-template-columns: minmax(0, 2fr); grid-auto-columns: minmax(0, 1fr); }
  .tb-cell { border-bottom: 0; border-right: 1px solid var(--line-2); }
  .tb-cell:last-child { border-right: 0; }
  .tb-meta { flex-direction: column; align-items: flex-start; justify-content: center; }
}

/* ---------------------------------------------------------------- страницы-документы */
.doc { background: var(--fog); color: var(--ink); padding: calc(var(--header-h) + 56px) 0 96px; min-height: 70vh; }
.doc-body { max-width: calc(780px + 2 * var(--gutter)); }
.doc-body h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; margin-bottom: 14px; letter-spacing: -0.03em; }
.doc-body h2 { font-size: 20px; margin: 40px 0 10px; }
.doc-body p { color: var(--ink-soft); }
.doc-body p + p { margin-top: 12px; }
.doc-date { color: #66737E; font-size: 15px; }
.doc .site-header { background: var(--ink); }

/* ---------------------------------------------------------------- без анимаций */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .mq-track { animation: none; }
  .manifesto-text .w { opacity: 1; }
}

/* узкие телефоны: длинные слова переносятся, а не распирают сетку */
.section-head > *, .coprod-head > *, .dir-copy > *, .lead-card > * { min-width: 0; }
@media (max-width: 420px) {
  h1, h2, h3, .manifesto-text { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
  .hero-actions .btn { flex: 1 1 100%; }
}
