/* =========================================================
   NeuroIntel Veil — лендинг
   Фирменный стиль из презентации «ШЛЮЗ»: красный E72E1E,
   почти чёрный 1C1C1C, серые плашки F2F2F2, Open Sans,
   плоские прямоугольники без скруглений.
   ========================================================= */

:root {
  --red: #E72E1E;
  --red-dark: #95190D;
  --red-hover: #C9200F;
  --ink: #1C1C1C;
  --black: #000;
  --gray-50: #F2F2F2;
  --gray-200: #D9D9D9;
  --gray-300: #BFBFBF;
  --gray-500: #7F7F7F;
  --gray-600: #5E5E5E;
  --white: #FFF;

  --font: "Open Sans", "Segoe UI", Arial, sans-serif;
  --container: 1200px;
  --gutter: 24px;
  --header-h: 72px;
  --section-y: clamp(64px, 9vw, 112px);
  --gap: 24px;
}

/* ---------- База ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--black); color: var(--white); text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.accent { color: var(--red); }
.muted { color: var(--gray-500); }

/* ---------- Иконки ---------- */
.ico, .ico-inline {
  fill: none; stroke: var(--red); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; flex: none;
}
.ico { width: 48px; height: 48px; }
.ico-sm { width: 32px; height: 32px; }
.ico-inline { width: 1.1em; height: 1.1em; stroke: currentColor; vertical-align: -0.18em; }
.ico-brand { width: 1.25em; height: 1.25em; fill: currentColor; stroke: none; vertical-align: -0.22em; flex: none; }

/* ---------- Кнопки, плашки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 28px;
  border: 2px solid transparent;
  font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-hover); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }

.badge {
  display: inline-block; padding: 6px 16px;
  font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--white);
}
.badge-red { background: var(--red); }
.badge-black { background: var(--black); }
.badge-gray { background: var(--gray-500); }

.caps {
  font-size: 14px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gray-500);
}

.source { margin-top: 20px; font-size: 13px; color: var(--gray-500); }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(150%) blur(8px);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--gray-200); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand img { width: 104px; height: auto; }
.brand-product {
  padding-left: 16px; border-left: 1px solid var(--gray-300);
  font-weight: 800; font-size: 18px; white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) {
  position: relative; padding: 6px 0;
  font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink);
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.site-nav a:not(.btn):hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none; position: relative; width: 44px; height: 44px; padding: 0;
  border: 0; background: transparent; cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute; left: 10px; width: 24px; height: 2px; background: var(--ink);
  transition: transform .2s, opacity .2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; }
.nav-toggle-bar::before { top: -8px; }
.nav-toggle-bar::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 8vw, 104px) 0 clamp(64px, 9vw, 120px);
}
.hero-deco { position: absolute; inset: 0; pointer-events: none; }
.hero-tri { position: absolute; top: 0; right: 0; width: 46vw; max-width: 760px; height: 300px; }
.hero-tri-red { background: var(--red); clip-path: polygon(0 0, 100% 0, 100% 72%); }
.hero-tri-dark { background: var(--red-dark); clip-path: polygon(0 0, 100% 72%, 100% 92%); }
.hero-circuit {
  position: absolute; right: 2vw; bottom: -10px; width: 260px; height: auto;
  color: var(--gray-50);
}

.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.kicker { margin-bottom: 20px; font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gray-500); }
.hero-title {
  font-size: clamp(44px, 7.4vw, 92px); font-weight: 800; line-height: 1.02; letter-spacing: -.02em;
}
.hero-sub { margin-top: 28px; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.35; max-width: 30ch; }
.hero-lead { margin-top: 18px; color: var(--gray-600); max-width: 52ch; }

.tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.tags li { min-width: 140px; padding: 12px 22px; background: var(--gray-50); text-align: center; font-size: 17px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-shot { position: relative; margin-top: 120px; }
.hero-callout {
  position: relative; margin: -40px 24px 0 auto; max-width: 380px;
  padding: 20px 22px; background: var(--white);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .28);
  font-size: 15px; line-height: 1.5;
}
.hero-callout .badge { display: table; margin-bottom: 10px; }

/* ---------- Скриншоты ---------- */
.shot {
  display: block; width: 100%; padding: 0; border: 1px solid var(--gray-200);
  background: var(--ink); cursor: zoom-in; overflow: hidden;
}
.shot img { width: 100%; transition: transform .35s; }
.shot:hover img { transform: scale(1.02); }

/* ---------- Секции ---------- */
.section { padding: var(--section-y) 0; }
.section-tight { padding-top: 0; }
.section-gray { background: var(--gray-50); }

.section-title {
  font-size: clamp(32px, 4.6vw, 56px); font-weight: 800; line-height: 1.1; letter-spacing: -.01em;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-lead { margin: -24px 0 40px; font-size: clamp(18px, 2vw, 22px); font-weight: 700; }

.callout {
  max-width: 920px; margin-bottom: 48px; padding-left: 24px;
  border-left: 6px solid var(--red);
  font-size: clamp(18px, 2vw, 22px); line-height: 1.5;
}

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Карточки как на слайдах «Угрозы» и «Вейл-шлюз» */
.card {
  position: relative; display: flex; flex-direction: column; gap: 20px;
  min-height: 100%; padding: 36px 36px 72px; background: var(--gray-50);
}
.card-white { background: var(--white); padding-bottom: 36px; }
.card h3 { font-size: 21px; font-weight: 700; line-height: 1.3; }
.card p { font-size: 17px; }
.card-num {
  position: absolute; right: 32px; bottom: 16px;
  font-size: 56px; font-weight: 400; line-height: 1; color: var(--gray-300);
}

/* ---------- Цена ошибки ---------- */
.cost-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); }
.fine { padding-left: 28px; border-left: 6px solid var(--red); }
.fine + .fine { margin-top: 40px; }
.fine-value { font-size: clamp(36px, 4.6vw, 56px); font-weight: 800; line-height: 1.1; }
.fine-label { margin-top: 12px; font-size: 19px; }
.fine-note { margin-top: 6px; color: var(--gray-500); }

.stat { display: grid; grid-template-columns: minmax(150px, .8fr) 1fr; gap: 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--gray-300); }
.stat:first-child { padding-top: 0; }
.stat dt { font-size: clamp(36px, 4.4vw, 54px); font-weight: 800; color: var(--red); line-height: 1.1; white-space: nowrap; }
.stat dd { font-size: 16px; }

.example {
  display: flex; align-items: center; gap: 32px;
  margin-top: 56px; padding: 32px 36px; background: var(--gray-50);
}
.example .badge { flex: none; padding: 10px 26px; font-size: 16px; }
.example p { font-size: clamp(17px, 1.8vw, 20px); color: var(--gray-600); }
.example strong { color: var(--ink); }

/* ---------- Решение ---------- */
.solution-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.advantages { display: flex; flex-direction: column; }
.adv { display: grid; grid-template-columns: 32px 1fr; column-gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--gray-300); }
.adv:first-child { padding-top: 0; }
.adv .ico { grid-row: span 2; margin-top: 4px; }
.adv h3 { font-size: 24px; font-weight: 700; line-height: 1.25; }
.adv p { margin-top: 6px; }
.slogan {
  margin-top: 32px; padding: 18px 24px; background: var(--black); color: var(--white);
  text-align: center; font-size: 18px; font-weight: 600;
}

/* ---------- Состав ---------- */
.part { display: flex; flex-direction: column; align-items: flex-start; }
.part .shot { margin-bottom: 28px; aspect-ratio: 16 / 10; }
.part .shot img { height: 100%; object-fit: cover; object-position: top left; }
.part h3 { margin-top: 20px; font-size: 26px; font-weight: 700; }
.part p { margin-top: 12px; }

/* ---------- Как работает ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); counter-reset: step; }
.step { position: relative; padding: 32px 28px; background: var(--white); }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: calc(var(--gap) * -1); width: var(--gap); height: 2px; background: var(--ink);
}
.step-num, .stage-num { display: block; margin-bottom: 18px; font-size: 44px; font-weight: 700; line-height: 1; color: var(--red); }
.step h3 { font-size: 19px; font-weight: 700; line-height: 1.3; }
.step p { margin-top: 8px; color: var(--gray-600); font-size: 16px; }

.outcomes { margin-top: var(--gap); }
.outcome { padding: 32px 36px; background: var(--white); border: 2px solid var(--ink); }
.outcome h3 { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.outcome h3::before { content: ""; width: 14px; height: 14px; flex: none; }
.outcome-pass h3::before { background: var(--ink); }
.outcome-block { border-color: var(--red); }
.outcome-block h3 { color: var(--red); }
.outcome-block h3::before { background: var(--red); }

/* ---------- Судья: пайплайн ---------- */
.pipeline {
  display: grid; grid-template-columns: 1fr 200px; grid-template-areas: "stages pass" "block .";
  column-gap: var(--gap); row-gap: 36px;
}
.pipeline-stages { grid-area: stages; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.pipeline-stages li { position: relative; padding: 24px 20px; background: var(--gray-50); }
/* стрелка вправо между этапами */
.pipeline-stages li:not(:last-child)::after,
.pipeline-pass::before {
  content: ""; position: absolute; top: 50%; right: -18px; width: 12px; height: 12px;
  border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: translateY(-50%) rotate(45deg);
}
/* стрелка вниз к блокировке */
.pipeline-stages li::before {
  content: ""; position: absolute; left: 50%; bottom: -36px; width: 2px; height: 30px; background: var(--red);
}
.pipeline-stages h3 { font-size: 17px; font-weight: 700; line-height: 1.3; }
.pipeline-stages p { margin-top: 8px; font-size: 14px; line-height: 1.5; }
.pipeline-pass { grid-area: pass; position: relative; padding: 24px 20px; border: 2px solid var(--ink); display: flex; flex-direction: column; justify-content: center; }
.pipeline-pass::before { left: -20px; right: auto; }
.pipeline-pass h3 { font-size: 18px; font-weight: 700; }
.pipeline-pass p { margin-top: 8px; font-size: 14px; }
.pipeline-block {
  grid-area: block; padding: 16px 20px; background: var(--red); color: var(--white);
  text-align: center; font-weight: 700; font-size: 17px;
}

.judge-notes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--gap); margin-top: 48px; }
.box { padding: 28px 30px; border: 2px solid var(--ink); }
.box h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.threshold { padding-left: 28px; border-left: 6px solid var(--red); }
.threshold-value { font-size: 64px; font-weight: 800; line-height: 1; color: var(--red); margin-bottom: 12px; }

/* ---------- Инструменты СБ ---------- */
.tabs { display: flex; gap: 0; margin-bottom: 32px; border-bottom: 2px solid var(--gray-300); }
.tab {
  position: relative; padding: 14px 28px; border: 0; background: transparent; cursor: pointer;
  font-size: 18px; font-weight: 700; color: var(--gray-500);
}
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 4px; background: var(--red); }

/* Без JS обе панели видны одна под другой */
.tab-panel + .tab-panel { margin-top: 56px; }
.js .tab-panel[hidden] { display: none; }
.js .tab-panel + .tab-panel { margin-top: 0; }
.no-js .tabs { display: none; }

.tools-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.tool-list { counter-reset: tool; display: flex; flex-direction: column; gap: 22px; }
.tool-list li { counter-increment: tool; position: relative; padding-left: 64px; min-height: 44px; }
.tool-list li::before {
  content: counter(tool); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 44px; height: 44px;
  background: var(--red); color: var(--white); font-weight: 700; font-size: 20px;
}
.tool-list h3 { font-size: 19px; font-weight: 700; }
.tool-list p { margin-top: 4px; font-size: 16px; color: var(--gray-600); }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: 40px; }
.features li { display: flex; flex-direction: column; gap: 4px; padding: 22px 26px; background: var(--white); }
.features strong { font-size: 18px; }
.features span { color: var(--gray-600); font-size: 15px; }

/* ---------- Схема ---------- */
.scheme {
  display: grid; grid-template-columns: 1fr 40px 1.35fr 40px 1fr; align-items: start;
  padding-top: 20px; border-top: 2px solid var(--ink);
}
.scheme-col { display: flex; flex-direction: column; gap: 16px; }
.scheme-col > .caps { margin-bottom: 4px; }
.scheme-arrow { display: grid; place-items: center; height: 100%; padding-top: 60px; }
.scheme-arrow svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.node { padding: 20px 22px; }
.node h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.node p { font-size: 15px; }
.node .models { font-weight: 600; }
.node .muted { margin-top: 4px; font-size: 14px; }
.node-ready { background: var(--gray-50); }
.node-planned { border: 2px dashed var(--gray-500); color: var(--gray-500); }

.core-head { padding: 16px; background: var(--red); color: var(--white); text-align: center; font-weight: 800; font-size: 20px; }
.core-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cell { display: grid; place-items: center; min-height: 76px; padding: 12px; border: 2px solid var(--ink); text-align: center; font-size: 15px; line-height: 1.35; }
.cell-planned { border-style: dashed; border-color: var(--gray-500); color: var(--gray-500); }
.core-dev { padding: 16px 18px; border: 2px dashed var(--red); font-size: 15px; }
.scheme-note { font-size: 15px; }

.legend { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 36px; font-size: 14px; color: var(--gray-500); }
.legend li { display: flex; align-items: center; gap: 10px; }
.sw { width: 32px; height: 22px; }
.sw-ready { background: var(--gray-50); }
.sw-dev { border: 2px dashed var(--red); }
.sw-planned { border: 2px dashed var(--gray-500); }

/* ---------- Дорожная карта ---------- */
.timeline-head {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; padding-bottom: 14px; margin-bottom: 28px;
  font-size: 14px; font-weight: 700; letter-spacing: .08em; color: var(--gray-500);
  border-bottom: 2px solid var(--gray-500);
}
.timeline-head::after {
  content: ""; position: absolute; right: -2px; bottom: -7px; width: 12px; height: 12px;
  border-top: 2px solid var(--gray-500); border-right: 2px solid var(--gray-500); transform: rotate(45deg);
}

.roadmap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.phase { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 28px 26px 32px; }
.phase h3 { font-size: 19px; font-weight: 700; line-height: 1.3; }
.phase-ready { background: var(--white); }
.phase-now { background: var(--white); border: 2px solid var(--red); }
.phase-next { border: 2px dashed var(--gray-500); }

.dots { display: flex; flex-direction: column; gap: 10px; }
.dots li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.45; }
.dots li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; background: var(--red); }

.next-product { margin-top: var(--gap); padding: 32px 36px; background: var(--white); }
.next-product p { font-size: 18px; }
.chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.chips li { padding: 14px 12px; background: var(--gray-50); text-align: center; font-size: 15px; }

/* ---------- Пилот ---------- */
.pilot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: stretch; }
.pilot-main .section-title { margin-bottom: 32px; }
.pilot-word { font-size: clamp(64px, 10vw, 128px); font-weight: 800; line-height: .95; color: var(--red); letter-spacing: -.02em; }
.pilot-sub { margin-top: 8px; font-size: clamp(20px, 2.2vw, 26px); }
.pilot-steps { display: flex; flex-direction: column; gap: 18px; margin-top: 40px; }
.pilot-steps li { display: flex; align-items: center; gap: 22px; font-size: 18px; }
.sq { display: grid; place-items: center; flex: none; width: 48px; height: 48px; background: var(--red); color: var(--white); font-weight: 700; font-size: 22px; }
.slogan-inline { display: inline-block; margin-top: 40px; padding: 18px 36px; text-align: left; }

.offer { display: flex; flex-direction: column; padding: 40px; background: var(--gray-50); }
.offer-list { margin: 24px 0 36px; }
.offer-list li { display: flex; align-items: center; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--gray-300); font-size: clamp(20px, 2vw, 26px); font-weight: 700; }
.offer-list li:first-child { padding-top: 8px; }
.offer .btn-block { margin-top: auto; min-height: 60px; font-size: 18px; }
.contacts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 20px; }
.contacts a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.contacts a:hover { color: var(--red); }

/* ---------- Подвал (как на applite.ru) ---------- */
.site-footer { background: #0D111C; color: var(--white); }
.footer-cta { background: linear-gradient(to left, #F50E00, #AE0A01); padding: 20px 0; }
.footer-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 24px; }
.footer-cta-title { margin: 0 0 4px; font-size: 20px; font-weight: 600; color: var(--white); }
.footer-cta-sub { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .5); }
.btn-white { background: var(--white); color: #151221; border-color: var(--white); }
.btn-white:hover { background: #F2F2F2; border-color: #F2F2F2; color: #151221; }
.footer-cta-btn { border-radius: 40px; padding: 12px 32px; }

.footer-main { padding: 60px 0 30px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 5fr) minmax(0, 1.2fr); gap: 32px; align-items: start; }
.footer-brand img { max-width: 250px; height: auto; }
.footer-menu ul { list-style: none; margin: 0; padding: 0; }
.footer-menu li + li { margin-top: 8px; }
.footer-menu a { color: #949DAD; text-decoration: none; transition: color .2s; }
.footer-menu a:hover { color: var(--white); }

.footer-contacts-note { margin: 0 0 16px; color: var(--white); }
.footer-contacts-list { list-style: none; margin: 0; padding: 0; }
.footer-contacts-list li { margin-top: 6px; font-size: 16px; line-height: 2; }
.footer-contacts-list a { display: inline-flex; align-items: center; gap: 8px; color: rgba(238, 235, 235, 1); text-decoration: none; transition: color .2s; }
.footer-contacts-list a:hover { color: var(--red); }
.footer-contacts-list .ico-inline { color: #949DAD; }

.footer-badges { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.footer-badge { display: block; line-height: 0; }
.footer-badge img { display: block; width: 70px; height: auto; max-width: none; }
.footer-badge-lg img { width: 90px; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 10px 0; }
.footer-bottom p { margin: 0; text-align: center; font-size: 14px; font-weight: 500; color: rgba(253, 253, 253, .5); }

/* ---------- Лайтбокс ---------- */
.lightbox {
  width: min(1400px, 94vw); max-width: none; max-height: 92vh; padding: 0;
  border: 0; background: transparent; overflow: visible;
}
.lightbox::backdrop { background: rgba(0, 0, 0, .82); }
.lightbox img { width: 100%; max-height: 88vh; object-fit: contain; background: var(--white); }
.lightbox-close {
  position: absolute; top: -48px; right: 0; width: 44px; height: 44px; border: 0;
  background: var(--red); color: var(--white); font-size: 28px; line-height: 1; cursor: pointer;
}

/* ---------- Форма заявки (стоимость по запросу) ---------- */
.req-modal {
  width: min(560px, 94vw); max-width: none; max-height: 92vh; padding: 0;
  border: 0; background: var(--white); color: var(--ink); overflow: auto;
}
.req-modal::backdrop { background: rgba(0, 0, 0, .6); }
.req-modal-inner { position: relative; padding: 40px; }
.req-modal-close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px;
  border: 0; background: var(--gray-50); color: var(--ink);
  font-size: 24px; line-height: 1; cursor: pointer;
}
.req-modal-close:hover { background: var(--red); color: var(--white); }
.req-modal h3 { margin: 0 0 8px; font-size: 26px; }
.req-sub { margin: 0 0 24px; color: var(--gray-500); }
.req-modal label { display: block; margin-bottom: 16px; font-size: 14px; font-weight: 600; }
.req-modal input,
.req-modal textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  border: 2px solid var(--gray-300); background: var(--white);
  font: inherit; font-weight: 400; color: var(--ink);
}
.req-modal input::placeholder,
.req-modal textarea::placeholder { color: var(--gray-500); }
.req-modal input:focus,
.req-modal textarea:focus { outline: none; border-color: var(--red); }
.req-modal input[aria-invalid="true"] { border-color: var(--red); }
.req-note { margin: 14px 0 0; font-size: 14px; color: var(--gray-500); line-height: 1.5; }

/* ---------- Появление при скролле (включается только с JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .shot img { transition: none; }
}

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1100px) {
  .site-nav { gap: 20px; }
  .pipeline { grid-template-columns: 1fr; grid-template-areas: "stages" "block" "pass"; }
  .pipeline-stages { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 56px; }
  .pipeline-stages li:nth-child(3)::after { display: none; }
  .pipeline-pass::before { display: none; }
  .pipeline-stages li::before { display: none; }
  .roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scheme { grid-template-columns: 1fr; gap: 0; }
  .scheme-arrow { padding: 16px 0; height: auto; }
  .scheme-arrow svg { transform: rotate(90deg); }
  .judge-notes { grid-template-columns: 1fr 1fr; }
  .threshold { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px; background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .25);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav a:not(.btn) { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--gray-50); }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav a.is-active { color: var(--red); }
  .site-nav .btn { margin-top: 16px; min-height: 52px; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-shot { margin-top: 0; }
  .hero { padding-top: 112px; }
  .hero-tri { width: 62vw; height: 88px; }
  .hero-circuit { display: none; }

  .grid-3 { grid-template-columns: 1fr; }
  .cost-grid, .solution-grid, .tools-grid, .pilot-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step::after { display: none; }
  .features { grid-template-columns: 1fr; }
  .stats { margin-top: 16px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-badges { flex-direction: row; justify-content: center; gap: 24px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --gap: 16px; }
  body { font-size: 16px; }
  .brand img { width: 84px; }
  .brand-product { padding-left: 12px; font-size: 15px; }
  .hero { padding-top: 88px; }
  .hero-tri { height: 64px; }
  .hero-actions .btn { width: 100%; }
  .tags li { flex: 1 1 auto; min-width: 0; padding: 10px 14px; font-size: 15px; }
  .hero-callout { margin: -24px 12px 0; }
  .grid-2, .steps, .roadmap, .judge-notes { grid-template-columns: 1fr; }
  .pipeline-stages { grid-template-columns: 1fr; row-gap: 16px; }
  .pipeline-stages li::after { display: none; }
  .card { padding: 28px 24px 64px; }
  .card-white { padding-bottom: 28px; }
  .card-num { font-size: 44px; right: 20px; }
  .stat { grid-template-columns: 1fr; gap: 6px; }
  .example { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px; }
  .core-grid { grid-template-columns: 1fr; }
  .cell { min-height: 0; }
  .chips { grid-template-columns: 1fr 1fr; }
  .next-product, .offer { padding: 24px; }
  .slogan-inline { display: block; padding: 16px 20px; }
  .tab { flex: 1; padding: 12px 8px; font-size: 16px; }
  .footer-cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-cta-btn { width: 100%; }
  .footer-main { padding: 40px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-badges { flex-direction: row; gap: 20px; }
  .lightbox-close { top: -52px; }
  .req-modal-inner { padding: 28px 20px; }
}
