/* ==========================================================================
   SENTRIX — лендинг для российского рынка.
   Основа: SENTRIX Brand Identity v5.8 «Optical Titanium».
   Графит — фон, мел — текст, металл — только в изображении; прямые углы,
   широкие поля, выравнивание по левому краю, IBM Plex Sans.
   ========================================================================== */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("assets/fonts/IBMPlexSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("assets/fonts/IBMPlexSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("assets/fonts/IBMPlexSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Condensed";
  src: url("assets/fonts/IBMPlexSans-CondensedSemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Палитра брендбука */
  --graphite: #111519;
  --charcoal: #252b30;
  --chalk: #ecede8;
  --titanium: #929697;
  --slate: #7d8e9d;
  --plum: #8d8492;
  --shadow: #58636d;

  /* Производные для интерфейса */
  --ink: #0d1114;                         /* утопленные панели */
  --text: var(--chalk);
  --text-2: #a9aeaf;
  --line: rgba(236, 237, 232, 0.12);
  --line-2: rgba(236, 237, 232, 0.26);

  --font: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-cond: "IBM Plex Sans Condensed", "IBM Plex Sans", "Arial Narrow", Arial, sans-serif;

  --gutter: clamp(20px, 4.6vw, 72px);
  --maxw: 1440px;
  --header-h: 76px;
  --section-y: clamp(80px, 10.5vw, 168px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  background: var(--graphite);
}

body {
  margin: 0;
  background: var(--graphite);
  color: var(--text);
  font: 400 1.0625rem/1.55 var(--font);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--chalk); outline-offset: 3px; }
::selection { background: var(--slate); color: var(--graphite); }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Типографика ---------- */

.kicker {
  display: flex;
  align-items: center;
  gap: 24px;
  font: 500 0.75rem/1.5 var(--font);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--titanium);
}
.kicker::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.kicker--plain::after { display: none; }

.h1 {
  font: 600 clamp(3.25rem, 1.2rem + 6.2vw, 7rem)/0.96 var(--font-cond);
  letter-spacing: -0.012em;
}
.h2 {
  font: 600 clamp(2.5rem, 1.35rem + 3.3vw, 4.5rem)/1 var(--font-cond);
  letter-spacing: -0.008em;
  text-wrap: balance;
}
.h3 { font: 600 clamp(1.625rem, 1.35rem + 0.8vw, 2.125rem)/1.1 var(--font-cond); }

.lead {
  font-size: clamp(1.0625rem, 0.98rem + 0.36vw, 1.25rem);
  line-height: 1.5;
  color: var(--text-2);
  text-wrap: pretty;
}

/* ---------- Кнопки: прямоугольник, подпись слева, стрелка справа ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 54px;
  min-width: 216px;
  padding: 0 20px 0 24px;
  border: 1px solid var(--chalk);
  background: var(--chalk);
  color: var(--graphite);
  font: 500 1rem/1 var(--font);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn svg { flex: none; width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover { background: #fff; border-color: #fff; }
.btn:hover svg { transform: translateX(4px); }

.btn--ghost { background: transparent; color: var(--chalk); border-color: rgba(236, 237, 232, 0.5); }
.btn--ghost:hover { background: rgba(236, 237, 232, 0.07); border-color: var(--chalk); }
.btn--ghost:hover svg { transform: translateY(3px); }

.btn--sm { min-height: 44px; min-width: 172px; padding: 0 16px 0 20px; font-size: 0.9375rem; gap: 20px; }
.btn--sm svg { width: 16px; height: 16px; }

/* ---------- Шапка ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--graphite);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__in { height: 100%; display: flex; align-items: center; gap: 32px; }

.logo { display: inline-flex; flex: none; }
.logo img { height: 26px; width: auto; }

.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(20px, 2.8vw, 44px); }
.nav__link {
  padding: 10px 0;
  font: 500 0.9375rem/1 var(--font);
  color: rgba(236, 237, 232, 0.8);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.35s var(--ease), color 0.2s;
}
.nav__link:hover,
.nav__link.is-current { color: var(--chalk); background-size: 100% 1px; }
.nav__cta { margin-left: clamp(0px, 1vw, 16px); }

.burger { display: none; width: 44px; height: 44px; margin-right: -10px; position: relative; }
.burger span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--chalk);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 26px; }
.menu-open .burger span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

/* ---------- Первый экран ---------- */

.hero {
  display: flex;
  flex-direction: column;
  min-height: min(100vh, 1080px);
  min-height: min(100svh, 1080px);
  padding-top: var(--header-h);
}
.hero__main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  min-height: 520px;
}
.hero__copy {
  align-self: center;
  padding: clamp(48px, 6vh, 96px) clamp(24px, 3vw, 56px) clamp(48px, 7vh, 104px)
           max(var(--gutter), calc((100vw - var(--maxw)) / 2));
}
.hero__title { margin-top: clamp(24px, 3.4vh, 40px); }
@supports (width: 1cqw) {
  .hero__copy { container-type: inline-size; }
  .hero__title { font-size: min(clamp(3.25rem, 1.2rem + 6.2vw, 7rem), 17.6cqw); }
}
.hero__title .ln { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__title .ln > span { display: block; }
.hero__lead { margin-top: clamp(24px, 3.4vh, 36px); max-width: 30em; }
.hero__actions { margin-top: clamp(32px, 5vh, 56px); display: flex; flex-wrap: wrap; gap: 14px; }

.hero__visual {
  position: relative;
  background: var(--ink);
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
}
.hero__visual canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.9s ease;
}
.hero__visual canvas.is-ready { opacity: 1; }
.hero__visual.no-webgl { background: var(--ink) url("assets/optical-titanium.webp") center / cover no-repeat; }
.hero__visual.no-webgl canvas { display: none; }

/* Три направления под первым экраном */
.triad { background: var(--charcoal); }
.triad__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.triad__item {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 20px;
  row-gap: 10px;
  align-content: center;
  min-height: 116px;
  padding: 26px clamp(20px, 2.4vw, 40px);
  border-left: 1px solid var(--line);
  transition: background-color 0.25s;
}
.triad__list li:first-child .triad__item { padding-left: 0; border-left: 0; }
.triad__item:hover { background: rgba(236, 237, 232, 0.035); }
.triad__list li:first-child .triad__item:hover { background: none; }
.triad__n { grid-row: 1 / 3; font: 500 0.75rem/1.35 var(--font); letter-spacing: 0.12em; color: var(--titanium); padding-top: 1px; }
.triad__en { font: 500 0.8125rem/1.2 var(--font); letter-spacing: 0.22em; text-transform: uppercase; color: var(--chalk); }
.triad__ru { font-size: 1rem; line-height: 1.3; color: var(--text-2); transition: color 0.25s; }
.triad__item:hover .triad__ru { color: var(--chalk); }

/* ---------- Секции ---------- */

.section { padding: var(--section-y) 0; position: relative; }
.section__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: end;
  margin-top: clamp(36px, 4.6vw, 64px);
}
.section__head .h2 { grid-column: 1 / span 7; }
.section__head .lead { grid-column: 9 / span 4; padding-bottom: 0.35em; }

.section--light {
  background: var(--chalk);
  color: var(--graphite);
  --text-2: #49535b;
  --line: rgba(17, 21, 25, 0.16);
  --line-2: rgba(17, 21, 25, 0.4);
}
.section--light .kicker { color: var(--shadow); }
.section--light ::selection { background: var(--graphite); color: var(--chalk); }
.section--light :focus-visible { outline-color: var(--graphite); }

/* ---------- 01 Технологии ---------- */

.tech__hint {
  margin-top: clamp(44px, 5.4vw, 84px);
  display: none;
  align-items: center;
  gap: 12px;
  font: 500 0.6875rem/1.4 var(--font);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--titanium);
}
.tech__hint::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--plum); animation: hint 2.4s ease-in-out infinite; }
@keyframes hint { 50% { opacity: 0.25; } }
.js .tech__hint { display: flex; }
.tech__hint-touch { display: none; }
@media (hover: none) {
  .tech__hint-mouse { display: none; }
  .tech__hint-touch { display: inline; }
}

.tech {
  margin-top: clamp(48px, 6vw, 96px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
}
.js .tech__hint + .tech { margin-top: 18px; }
.card { background: var(--graphite); border-left: 1px solid var(--line); display: flex; flex-direction: column; scroll-margin-top: calc(var(--header-h) + 24px); transition: background-color 0.3s; }
.card:first-child { border-left: 0; }
.card:hover { background: #151a1f; }
.card__ill { aspect-ratio: 4 / 3; background: var(--ink); border-bottom: 1px solid var(--line); overflow: hidden; }
.card__body { padding: clamp(24px, 2.6vw, 40px); display: flex; flex-direction: column; flex: 1; }
.card__label { display: flex; gap: 14px; font: 500 0.75rem/1 var(--font); letter-spacing: 0.2em; text-transform: uppercase; color: var(--titanium); }
.card__label span { color: var(--chalk); letter-spacing: 0.12em; }
.card .h3 { margin-top: 20px; }
.card__text { margin-top: 14px; color: var(--text-2); font-size: 1rem; line-height: 1.55; text-wrap: pretty; }
.tags { margin-top: auto; padding-top: 32px; }
.tags li { padding: 13px 0; border-top: 1px solid var(--line); font-size: 0.9375rem; line-height: 1.3; color: var(--chalk); }
.tags li:last-child { padding-bottom: 0; }

/* Схемы: тонкая линия, без заливок-украшений. Живут под курсором и сами по себе */
.card__ill { cursor: crosshair; -webkit-tap-highlight-color: transparent; }
.ill { width: 100%; height: 100%; }
.ill text { font: 500 10px/1 var(--font); letter-spacing: 0.16em; fill: #929697; }

/* 01 — планировщик маршрута */
.route-live,
.route-agent { transition: opacity 0.35s; }
.is-out .route-live,
.is-out .route-agent,
.is-out .route-dyn.is-on { opacity: 0; }
.route-ghost { opacity: 0; }
.route-ghost.is-on { animation: ghost 0.8s ease-out; }
@keyframes ghost { from { opacity: 0.9; } to { opacity: 0; } }
.route-dyn { opacity: 0; transition: opacity 0.25s; }
.route-dyn.is-on { opacity: 1; }
.route-dyn__in { transition: transform 0.16s var(--ease); }
.route-dyn__ping { opacity: 0.5; }
.route-dyn.is-ping .route-dyn__ping { animation: ping 0.7s var(--ease); }
@keyframes ping { from { transform: scale(1.9); opacity: 0; } 35% { opacity: 1; } to { transform: scale(1); opacity: 0.5; } }
.route-goal__ring { opacity: 0; }
.route-goal.is-hit .route-goal__ring { animation: hit 1s var(--ease); }
@keyframes hit { from { transform: scale(1); opacity: 0.9; } to { transform: scale(2.6); opacity: 0; } }

/* 02 — послойная схема */
.ill-flow { animation: flow 1.3s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -7; } }
.ill-layer { transform: translateY(var(--shift, 0px)); transition: transform 0.7s var(--ease); }
.ill-plate { stroke: #929697; stroke-opacity: 0.6; animation: plate 6.5s ease-in-out infinite alternate; transition: stroke 0.45s, stroke-opacity 0.45s; }
.ill-plate__top { fill: #0d1114; transition: fill 0.45s; }
.ill-layer text { transition: fill 0.45s; }
.ill-layer.is-active .ill-plate { stroke: #ecede8; stroke-opacity: 0.92; }
.ill-layer.is-active .ill-plate__top { fill: #141a1f; }
.ill-layer.is-active text { fill: #ecede8; }
@keyframes plate { from { transform: translateY(0); } to { transform: translateY(var(--y, 0)); } }

/* 03 — круговой обзор */
.radar-trail { transition: opacity 0.35s; }
.radar-fov { opacity: 0; transition: opacity 0.35s; }
.is-steer .radar-trail { opacity: 0; }
.is-steer .radar-fov { opacity: 1; }

.is-paused .ill-plate,
.is-paused .ill-flow { animation-play-state: paused; }

/* ---------- 02 Подход ---------- */

.steps {
  position: relative;
  margin-top: clamp(56px, 7vw, 112px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1.5px; height: 2px;
  background: var(--graphite); transform-origin: 0 50%;
}
.step { position: relative; display: flex; flex-direction: column; padding: 28px clamp(16px, 2vw, 32px) 0 0; }
.step::before {
  content: ""; position: absolute; left: 0; top: -4.5px; width: 8px; height: 8px;
  background: var(--graphite);
}
.step__n { display: block; font: 500 0.75rem/1 var(--font); letter-spacing: 0.16em; color: var(--shadow); }
.step__t { margin-top: clamp(28px, 4vw, 56px); font: 600 clamp(1.5rem, 0.55rem + 1.5vw, 2rem)/1.08 var(--font-cond); }
.step__d { margin-top: 12px; padding-bottom: 28px; font-size: 0.9375rem; line-height: 1.5; color: var(--text-2); max-width: 20em; text-wrap: pretty; }
.step__out { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; font: 500 0.9375rem/1.3 var(--font); }
.step__out span { font: 500 0.6875rem/1 var(--font); letter-spacing: 0.18em; text-transform: uppercase; color: var(--shadow); }

@supports (grid-template-rows: subgrid) {
  @media (min-width: 1101px) {
    .steps { grid-template-rows: repeat(4, auto); }
    .step { display: grid; grid-row: span 4; grid-template-rows: subgrid; }
    .step__out { margin-top: 0; align-self: start; }
  }
}

/* ---------- 03 Производство ---------- */

.prod { overflow: hidden; }
.prod::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  background-position: calc(50% - 0.5px) 0;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(90% 85% at 22% 58%, #000 0, transparent 72%);
  mask-image: radial-gradient(90% 85% at 22% 58%, #000 0, transparent 72%);
}
.prod .wrap { position: relative; }
.prod__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: end;
  margin-top: clamp(40px, 5vw, 72px);
}
.prod__figure { grid-column: 1 / span 7; }
.prod__num {
  display: flex; align-items: flex-start; gap: 0.06em;
  font: 600 clamp(6.5rem, 1rem + 19vw, 19rem)/0.8 var(--font-cond);
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.prod__num sup { font-size: 0.26em; line-height: 1; letter-spacing: 0; margin-top: 0.12em; color: var(--titanium); vertical-align: baseline; }
.prod__unit { margin-top: clamp(20px, 2.4vw, 36px); font: 500 0.75rem/1.4 var(--font); letter-spacing: 0.2em; text-transform: uppercase; color: var(--titanium); }
.prod__copy { grid-column: 9 / span 4; }
.prod__copy .h2 { font-size: clamp(2rem, 1.3rem + 1.9vw, 3.25rem); }
.prod__copy .lead { margin-top: 20px; }

.spec { margin-top: clamp(28px, 3vw, 44px); border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; line-height: 1.4; }
.spec dt { font-weight: 500; color: var(--chalk); }
.spec dd { color: var(--text-2); }

/* ---------- 04 Команда ---------- */

.roles { margin-top: clamp(48px, 6vw, 96px); border-top: 1px solid var(--line); }
.role {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto 24px;
  align-items: center;
  column-gap: 24px;
  padding: clamp(20px, 2.2vw, 30px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.4s var(--ease), background-color 0.3s;
}
.role__n { font: 500 0.75rem/1 var(--font); letter-spacing: 0.16em; color: var(--titanium); }
.role__t { font: 600 clamp(1.5rem, 1.05rem + 1.5vw, 2.5rem)/1.08 var(--font-cond); }
.role__m { font-size: 0.875rem; line-height: 1.3; color: var(--text-2); text-align: right; transition: color 0.3s; }
.role svg { width: 22px; height: 22px; color: var(--titanium); transition: transform 0.4s var(--ease), color 0.3s; }
.role:hover { padding-left: 20px; padding-right: 20px; background: rgba(236, 237, 232, 0.035); }
.role:hover svg { transform: translateX(4px); color: var(--chalk); }
.role:hover .role__m { color: var(--chalk); }

/* ---------- 05 Контакт ---------- */

.contact { border-top: 1px solid var(--line); }
.contact__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.contact__copy { grid-column: 1 / span 6; display: flex; flex-direction: column; }
.contact__copy .h2 { margin-top: clamp(36px, 4.6vw, 64px); }
.contact__copy .lead { margin-top: 24px; max-width: 26em; }
.contact__direct { margin-top: clamp(32px, 4vw, 56px); display: grid; gap: 12px; justify-items: start; }
.label { font: 500 0.75rem/1 var(--font); letter-spacing: 0.2em; text-transform: uppercase; color: var(--titanium); }
.contact__mail {
  font: 500 clamp(1.125rem, 1rem + 0.5vw, 1.375rem)/1.2 var(--font);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 4px;
  transition: background-size 0.35s var(--ease);
}
.contact__mail:hover { background-size: 0 1px; background-position: 100% 100%; }
.deboss { margin-top: auto; padding-top: 56px; width: min(300px, 62%); }
.deboss svg { width: 100%; height: auto; overflow: visible; }

.form { grid-column: 8 / span 5; display: grid; gap: 22px; align-content: start; }
.field { display: grid; gap: 10px; }
.field label { font: 500 0.875rem/1.2 var(--font); color: var(--chalk); }
.field input,
.field textarea {
  width: 100%;
  min-height: 56px;
  padding: 15px 18px;
  background: transparent;
  border: 1px solid rgba(236, 237, 232, 0.42);
  border-radius: 0;
  color: var(--chalk);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s, background-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:hover,
.field textarea:hover { border-color: rgba(236, 237, 232, 0.7); }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--chalk); background: rgba(236, 237, 232, 0.04); box-shadow: 0 0 0 1px var(--chalk); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.consent { display: grid; grid-template-columns: 20px 1fr; gap: 14px; align-items: start; font-size: 0.875rem; line-height: 1.45; color: var(--text-2); cursor: pointer; }
.consent input {
  -webkit-appearance: none; appearance: none; margin: 1px 0 0; width: 20px; height: 20px;
  border: 1px solid rgba(236, 237, 232, 0.5); border-radius: 0; background: transparent;
  display: grid; place-content: center; cursor: pointer;
}
.consent input::after { content: ""; width: 10px; height: 10px; background: var(--chalk); transform: scale(0); transition: transform 0.15s; }
.consent input:checked { border-color: var(--chalk); }
.consent input:checked::after { transform: scale(1); }
.consent a { color: var(--chalk); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 6px; }
.form__status { font-size: 0.875rem; line-height: 1.4; color: var(--text-2); min-height: 1.4em; }
.form__status.is-ok,
.form__status.is-error { color: var(--chalk); }
.form .btn[disabled] { opacity: 0.55; cursor: default; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Подвал ---------- */

.footer { border-top: 1px solid var(--line); padding: clamp(44px, 5vw, 72px) 0 32px; }
.footer__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; align-items: start; }
.footer__brand { grid-column: 1 / span 6; }
.footer__tag { margin-top: 18px; font-size: 0.9375rem; line-height: 1.4; color: var(--text-2); }
.footer__nav { grid-column: 8 / span 2; display: grid; gap: 14px; justify-items: start; }
.footer__contact { grid-column: 10 / span 3; display: grid; gap: 14px; justify-items: start; }
.footer__nav a,
.footer__contact a { font: 500 0.9375rem/1.2 var(--font); color: var(--text-2); transition: color 0.2s; }
.footer__contact a { color: var(--chalk); overflow-wrap: anywhere; }
.footer__nav a:hover { color: var(--chalk); }
.footer__contact a:hover { color: #fff; }
.footer__meta {
  margin-top: clamp(40px, 5vw, 72px); padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px;
  font: 500 0.6875rem/1.4 var(--font); letter-spacing: 0.16em; text-transform: uppercase; color: var(--titanium);
}
.footer__meta a { transition: color 0.2s; }
.footer__meta a:hover { color: var(--chalk); }
.footer__top { display: inline-flex; align-items: center; gap: 10px; color: var(--chalk); }
.footer__top svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.footer__top:hover svg { transform: translateY(-3px); }

/* ---------- Появление ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js .steps::before { transform: scaleX(0); transition: transform 1.8s var(--ease) 0.15s; }
.js .steps.is-in::before { transform: none; }

.js .hero__title .ln > span { transform: translate3d(0, 108%, 0); transition: transform 1.1s var(--ease); }
.js .hero__title .ln:nth-child(2) > span { transition-delay: 0.08s; }
.js .hero__title .ln:nth-child(3) > span { transition-delay: 0.16s; }
.js .hero [data-load] { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s); }
.js .hero__visual { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); transition: clip-path 1.3s var(--ease) 0.1s; }
.js.is-loaded .hero__title .ln > span { transform: none; }
.js.is-loaded .hero [data-load] { opacity: 1; transform: none; }
.js.is-loaded .hero__visual { clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%); }

/* ---------- Адаптив ---------- */

@media (max-width: 1100px) {
  .section__head .h2 { grid-column: 1 / span 8; }
  .section__head .lead { grid-column: 1 / span 9; margin-top: 24px; padding-bottom: 0; }
  .prod__figure { grid-column: 1 / -1; }
  .prod__copy { grid-column: 1 / span 9; margin-top: 56px; }
  .contact__copy { grid-column: 1 / span 5; }
  .form { grid-column: 7 / span 6; }
  .role { grid-template-columns: 3rem 1fr 24px; }
  .role__m { display: none; }

  .steps { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line); }
  .steps::before { left: -1.5px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; transform-origin: 50% 0; }
  .js .steps::before { transform: scaleY(0); }
  .step { display: grid; grid-template-columns: 2.5rem 1fr; column-gap: 12px; padding: 0 0 40px 28px; }
  .step:last-child { padding-bottom: 0; }
  .step::before { left: -4.5px; top: 4px; }
  .step__n { padding-top: 6px; }
  .step__t { margin-top: 0; }
  .step__d { grid-column: 2; padding-bottom: 16px; }
  .step__out { grid-column: 2; margin-top: 0; padding-top: 12px; }
  .step__d { max-width: 34em; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .burger { display: block; margin-left: auto; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    margin: 0; padding: 12px var(--gutter) 32px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--graphite);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translate3d(0, -8px, 0);
    transition: opacity 0.3s, transform 0.4s var(--ease), visibility 0s 0.4s;
    counter-reset: nav;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s, transform 0.4s var(--ease), visibility 0s; }
  .nav__link {
    counter-increment: nav;
    display: flex; align-items: baseline; gap: 20px;
    padding: 22px 0; border-bottom: 1px solid var(--line);
    font: 600 2.25rem/1 var(--font-cond); color: var(--chalk); background: none;
  }
  .nav__link::before { content: "0" counter(nav); font: 500 0.75rem/1 var(--font); letter-spacing: 0.16em; color: var(--titanium); }
  .nav__cta { flex: none; margin: 32px 0 0; min-width: 0; min-height: 54px; font-size: 1rem; }
  .menu-open body { overflow: hidden; }

  .hero { min-height: 0; }
  .hero__main { grid-template-columns: 1fr; min-height: 0; }
  .hero__copy { padding: 40px var(--gutter) 48px; }
  .hero__visual { width: 100%; height: clamp(260px, 72vw, 58vh); clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
  .js.is-loaded .hero__visual { clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }

  .triad__list { grid-template-columns: 1fr; }
  .triad__item { min-height: 0; padding: 20px 0; border-left: 0; border-top: 1px solid var(--line); }
  .triad__list li:first-child .triad__item { border-top: 0; }
  .triad__item:hover { background: none; }

  .section__head { display: block; }
  .section__head .lead { margin-top: 20px; max-width: 34em; }

  .tech { grid-template-columns: 1fr; }
  .card { border-left: 0; border-top: 1px solid var(--line); }
  .card:first-child { border-top: 0; }
  .tags { padding-top: 28px; }

  .prod__copy { grid-column: 1 / -1; margin-top: 44px; }

  .role:hover { padding-left: 0; padding-right: 0; background: none; }

  .contact__grid { display: block; }
  .deboss { display: none; }
  .form { margin-top: 48px; }

  .footer__brand { grid-column: 1 / -1; }
  .footer__nav { grid-column: 1 / span 6; }
  .footer__contact { grid-column: 7 / span 6; }
}

@media (max-width: 520px) {
  .hero__actions .btn { min-width: 0; flex: 1 1 100%; }
  .hero__actions { flex-direction: column; }
  .form__row { grid-template-columns: 1fr; }
  .role { grid-template-columns: 2.25rem 1fr 20px; column-gap: 14px; }
  .spec div { grid-template-columns: 6.5em 1fr; }
  .form__foot .btn { flex: 1 1 100%; }
  .footer__nav,
  .footer__contact { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .hero [data-load], .js .hero__title .ln > span { opacity: 1; transform: none; }
  .js .steps::before { transform: none; }
  .js .hero__visual { clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%); }
  .card__ill { cursor: default; }
  .js .tech__hint { display: none; }
  .js .tech__hint + .tech { margin-top: clamp(48px, 6vw, 96px); }
}

@media (prefers-reduced-motion: reduce) and (max-width: 900px) {
  .js .hero__visual { clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
}

/* ---------- Служебные страницы: политика, согласие, «не найдено» ---------- */

.doc { min-height: 72vh; padding: calc(var(--header-h) + clamp(48px, 7vw, 104px)) 0 clamp(64px, 8vw, 120px); }
.doc__in { max-width: 760px; }
.doc h1 { font: 600 clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem)/1.04 var(--font-cond); letter-spacing: -0.008em; text-wrap: balance; }
.doc__meta { margin-top: 18px; font: 500 0.75rem/1.5 var(--font); letter-spacing: 0.2em; text-transform: uppercase; color: var(--titanium); }
.doc__meta + h1 { margin-top: 18px; }
.doc h2 { margin-top: 52px; font: 600 1.5rem/1.15 var(--font-cond); }
.doc p,
.doc li { margin-top: 14px; color: var(--text-2); line-height: 1.6; text-wrap: pretty; }
.doc .doc__meta { margin-top: 18px; color: var(--titanium); line-height: 1.5; }
.doc .doc__meta + p,
.doc h1 + p { margin-top: 32px; }
.doc li { position: relative; padding-left: 22px; }
.doc li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 10px; height: 1px; background: var(--titanium); }
.doc a { color: var(--chalk); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.doc a:hover { color: #fff; }
.doc .doc__back { margin-top: 56px; }
.doc__home { margin-left: auto; padding: 10px 0; font: 500 0.9375rem/1 var(--font); color: rgba(236, 237, 232, 0.8); transition: color 0.2s; }
.doc__home:hover { color: var(--chalk); }
.footer--doc { padding-top: 28px; }
.footer--doc .footer__meta { margin-top: 0; padding-top: 0; border-top: 0; }
