/* =========================================================
   WBOZYA-dash — «Поток данных»
   Тёмный фон, неоновый синий (маркетплейсы) → красный (WBOZYA-dash)
   ========================================================= */

/* === Шрифт Inter (вариативный 400–800, свой хостинг) === */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin.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;
}
/* Только знак ₽ — вместо целого набора latin-ext */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-rub.woff2") format("woff2");
  unicode-range: U+20BD;
}

:root {
  /* Поверхности */
  --bg: #04060d;
  --bg-elevated: #0a0f1e;
  --panel: rgba(14, 20, 40, 0.62);
  --panel-hover: rgba(20, 28, 56, 0.72);
  --line: rgba(130, 160, 255, 0.14);
  --line-strong: rgba(130, 160, 255, 0.28);

  /* Текст */
  --text: #e9edf8;
  --text-2: #a3acc7;
  --text-3: #6b7493;

  /* Неон: от маркетплейсов (слева, синий) к WBOZYA-dash (справа, красный) */
  --cyan: #3fd0ff;
  --blue: #2f8bff;
  --indigo: #5b6cff;
  --violet: #8b5cf6;
  --magenta: #e0409b;
  --red: #ff2e63;

  --grad: linear-gradient(90deg, var(--cyan), var(--blue) 30%, var(--violet) 62%, var(--red));
  --grad-btn: linear-gradient(90deg, var(--blue), var(--violet) 50%, var(--red));

  /* Типографика */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", "SFMono-Regular", Consolas, ui-monospace, monospace;
  --fs-s: 13px;
  --fs-m: 15px;
  --fs-l: 17px;

  /* Размеры */
  --container: 1200px;
  --header-h: 64px;
  --radius: 16px;
  --radius-s: 10px;
  --radius-pill: 999px;

  --accent: var(--blue);
}

/* === База === */
html { color-scheme: dark; }

body {
  position: relative;
  font-family: var(--font);
  font-size: var(--fs-m);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* Фон: цветные засветки + сетка «цифрового пола» */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(55% 45% at 0% 10%, rgba(47, 139, 255, 0.16), transparent 70%),
    radial-gradient(50% 45% at 100% 30%, rgba(255, 46, 99, 0.13), transparent 70%),
    radial-gradient(40% 40% at 50% 100%, rgba(139, 92, 246, 0.1), transparent 70%),
    linear-gradient(rgba(130, 160, 255, 0.035) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(130, 160, 255, 0.035) 1px, transparent 1px) 0 0 / 56px 56px;
}

a { color: var(--cyan); transition: color 0.15s; }
a:hover { color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

.muted { color: var(--text-2); }

.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: var(--radius-s);
  background: var(--blue);
  color: #fff;
}
.skip-link:focus { top: 8px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-s);
  letter-spacing: 0.04em;
  color: var(--cyan);
  text-transform: lowercase;
}

/* === Кнопки === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: var(--fs-m);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background-position 0.4s, border-color 0.2s, background-color 0.2s;
}
.btn:hover { color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--s { min-height: 36px; padding: 6px 16px; font-size: var(--fs-s); }

.btn--primary {
  background: var(--grad-btn);
  background-size: 200% 100%;
  box-shadow: 0 0 24px -6px rgba(139, 92, 246, 0.7);
}
.btn--primary:hover {
  background-position: 100% 0;
  box-shadow: 0 0 32px -4px rgba(255, 46, 99, 0.6);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--cyan); background: rgba(63, 208, 255, 0.08); }

/* === Шапка === */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(4, 6, 13, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--grad);
  opacity: 0.35;
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.01em;
}
.logo:hover { color: var(--text); }
.logo__dash { color: var(--red); }

.nav {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  padding: 8px 16px 16px;
  background: rgba(6, 9, 20, 0.97);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.nav.is-open { opacity: 1; visibility: visible; transform: none; }

.nav__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-2);
  font-weight: 500;
}
.nav__link:hover,
.nav__link.is-active { color: var(--text); }

.header__cta { margin-left: auto; }

.burger {
  display: grid;
  align-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border: 0;
  background: none;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === Hero === */
.hero { position: relative; padding-bottom: 32px; }

.hero__media {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}
.hero__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: center;
  background: var(--bg);
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: -10vw;
  text-align: center;
}
.hero__title {
  font-size: clamp(40px, 9vw, 96px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  filter: drop-shadow(0 0 28px rgba(139, 92, 246, 0.45));
}
.hero__title-sub {
  display: block;
  margin-top: 14px;
  color: var(--text);
  font-size: clamp(18px, 2.6vw, 26px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.hero__lead {
  max-width: 680px;
  color: var(--text-2);
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.5;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.stack li {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* === Статистика === */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}
.stats__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 20px;
  background: var(--bg-elevated);
}
.stats__value {
  font-family: var(--font-mono);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent);
  text-shadow: 0 0 18px color-mix(in srgb, var(--accent) 55%, transparent);
  white-space: nowrap;
}
.stats__label { font-weight: 600; }
.stats__hint { color: var(--text-3); font-size: var(--fs-s); }

/* === Секции === */
.section {
  padding: 72px 0;
  scroll-margin-top: var(--header-h);
}
.section__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}
.section__head--row { gap: 16px; }
.section__title {
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.subhead {
  margin: 48px 0 20px;
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

/* === Карточка (стеклянная панель) === */
.card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.25s, background-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.card p + p { margin-top: 12px; }
.card--wide { margin-top: 16px; }
.card__title {
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}
.card__kicker {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

/* Неоновая кромка сверху */
.card--accent::before,
.plan::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 24px;
  right: 24px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 14px var(--accent);
}
.card--accent:hover,
.plan:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: var(--panel-hover);
  box-shadow: 0 12px 40px -18px color-mix(in srgb, var(--accent) 70%, transparent);
  transform: translateY(-3px);
}

.tag {
  padding: 1px 6px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--text);
  font-weight: 500;
}

/* Список с неоновыми маркерами */
.checks li {
  position: relative;
  padding: 10px 0 10px 24px;
  border-top: 1px dashed var(--line);
  color: var(--text-2);
}
.checks li:first-child { border-top: 0; padding-top: 0; }
.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 19px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.checks li:first-child::before { top: 9px; }

/* === Пайплайн ETL → БД → BI === */
.pipeline {
  position: relative;
  display: grid;
  gap: 24px;
  padding-left: 60px;
}
/* Линия потока */
.pipeline::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: linear-gradient(to bottom, var(--cyan), var(--violet), var(--red));
  opacity: 0.45;
}
/* Импульс данных, бегущий по линии */
.pipeline::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 22px;
  width: 4px;
  height: 80px;
  border-radius: 4px;
  background: linear-gradient(to bottom, transparent, #fff, transparent);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse-y 3.2s linear infinite;
}
@keyframes pulse-y {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(var(--pulse-distance, 600px)); opacity: 0; }
}

.step { position: relative; }
.step__node {
  position: absolute;
  left: -60px;
  top: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 0 22px -2px color-mix(in srgb, var(--accent) 60%, transparent), inset 0 0 12px color-mix(in srgb, var(--accent) 25%, transparent);
}
.step .card { height: 100%; }
.step .card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 14px var(--accent);
}

/* === Схема работы системы === */
.arch { margin-top: 32px; padding: 24px 16px; }
.arch__title {
  margin-bottom: 20px;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: center;
}
.arch__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 10px;
  align-items: center;
}
.arch__label {
  grid-column: 1 / -1;
  margin: 4px 0 8px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.arch__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 6px;
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-elevated));
  box-shadow:
    0 0 24px -8px color-mix(in srgb, var(--accent) 70%, transparent),
    inset 0 0 18px -8px color-mix(in srgb, var(--accent) 60%, transparent);
  font-weight: 800;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
}
.arch__node--src { font-size: 11px; letter-spacing: 0; }
.arch__node--etl {
  min-height: 40px;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
}
.arch__node--db {
  grid-column: 1 / -1;
  min-height: 84px;
  font-size: 18px;
}
.arch__node--bi { font-size: 16px; }
.arch__node small {
  margin-top: 2px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
}
.arch__center { grid-column: 2; }

/* Связи: линия + бегущая «порция данных» */
.arch__link {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 10px;
  height: var(--link-h);
  --link-h: 44px;
}
.arch__link i {
  position: relative;
  width: 2px;
  height: 100%;
  overflow: hidden;
  background: color-mix(in srgb, var(--accent) 40%, transparent);
}
.arch__link i::after {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  width: 4px;
  height: 14px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 0 8px var(--accent), 0 0 2px var(--accent);
  animation: arch-down 1.8s linear infinite;
}
/* Двусторонняя связь: запрос вверх, данные вниз */
.arch__link--both i:first-child::after { animation-name: arch-up; }
.arch__link:nth-child(3n) i::after { animation-delay: -0.6s; }
.arch__link:nth-child(3n + 1) i::after { animation-delay: -1.2s; }

@keyframes arch-down {
  from { transform: translateY(-14px); }
  to { transform: translateY(var(--link-h)); }
}
@keyframes arch-up {
  from { transform: translateY(var(--link-h)); }
  to { transform: translateY(-14px); }
}

/* === «Монитор» для скриншотов === */
.screen {
  position: relative;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #0e1428, #070a15);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent),
    0 20px 50px -24px color-mix(in srgb, var(--accent) 65%, transparent);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.screen:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent),
    0 24px 60px -20px color-mix(in srgb, var(--accent) 85%, transparent);
}
.screen--wide { margin-top: 32px; }
.screen__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 10px;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 12px;
}
.screen__dots {
  width: 40px;
  height: 10px;
  background:
    radial-gradient(circle 4px at 5px 5px, var(--red) 98%, transparent) 0 0 / 15px 10px repeat-x;
  opacity: 0.8;
}

.shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-s);
  background: #fff;
  cursor: zoom-in;
  overflow: hidden;
}
.shot picture { display: block; }
.shot img {
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}
.shot:hover img { transform: scale(1.025); }

/* Длинный скриншот: «окно» фиксированной высоты, картинка прокручивается внутри (JS) */
.shot--scroll { aspect-ratio: 1683 / 899; }
.shot__viewport {
  display: block;
  height: 100%;
  overflow: hidden;
}
.shot--scroll img { transition: none; }
.shot--scroll:hover img { transform: none; }
.gallery .shot img,
.grid--2 .shot img { aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; }

/* === Сегментированный фильтр === */
.seg {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--panel);
}
.seg__item {
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  color: var(--text-2);
  font-size: var(--fs-s);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}
.seg__item:hover { color: var(--text); }
.seg__item[aria-selected="true"] {
  background: var(--grad-btn);
  color: #fff;
}

/* === Галерея === */
.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px 20px;
}
.gallery__item { display: flex; flex-direction: column; gap: 12px; }
.gallery__item[hidden] { display: none; }
.gallery__item figcaption { color: var(--text-2); font-size: 14px; }
.gallery__item figcaption b {
  display: block;
  margin: 6px 0 2px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}
.badge--dl { background: rgba(47, 139, 255, 0.18); color: var(--cyan); }
.badge--st { background: rgba(255, 46, 99, 0.18); color: #ff6f92; }

/* === Баннер-призыв === */
.banner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 40px;
  padding: 28px;
  border-radius: var(--radius);
  background:
    linear-gradient(var(--bg-elevated), var(--bg-elevated)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
  overflow: hidden;
}
.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(60% 120% at 0% 50%, rgba(47, 139, 255, 0.18), transparent 70%),
    radial-gradient(60% 120% at 100% 50%, rgba(255, 46, 99, 0.18), transparent 70%);
  pointer-events: none;
}
.banner > * { position: relative; }
.banner--stack { margin-top: 0; justify-content: center; }
.banner__text { font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; line-height: 1.3; }
.banner__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* === Тарифы === */
.plan { display: flex; flex-direction: column; }
.plan__name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.plan__price {
  margin-top: 12px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 0 24px color-mix(in srgb, var(--accent) 55%, transparent);
  white-space: nowrap;
}
.plan__unit { color: var(--text-2); font-size: 14px; }
.plan__rows { margin-top: 20px; font-size: 14px; }
.plan__rows div {
  padding: 9px 0;
  border-top: 1px dashed var(--line);
}
.plan__rows dt {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 12px;
}
.plan__rows dd { font-weight: 500; }
.plan__note {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--text-3);
  font-size: var(--fs-s);
  line-height: 1.55;
}

/* === Контакты === */
.contacts { margin-top: 16px; }
.contacts li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px dashed var(--line);
}
.contacts span { color: var(--text-3); font-family: var(--font-mono); font-size: 13px; }
.contacts a {
  /* зона нажатия не меньше 44px по высоте, без изменения раскладки */
  display: inline-block;
  margin: -10px 0;
  padding: 10px 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* === Страницы-документы (политика, оферта) === */
.section--doc { padding-top: 40px; }
.section--doc .container { max-width: 920px; }

.doc-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}
.doc-head__back {
  align-self: flex-start;
  margin-bottom: 16px;
  color: var(--text-2);
  font-size: 14px;
}
.doc-head__title {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.doc-head__meta {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 13px;
}

.doc { padding: 28px 20px; }
.doc p { color: var(--text-2); }
.doc strong { color: var(--text); font-weight: 600; }
.doc h2 {
  position: relative;
  margin: 36px 0 14px;
  padding-left: 16px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}
.doc h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(to bottom, var(--cyan), var(--violet), var(--red));
}
.doc > ul { margin: 12px 0; }
.doc > ul li {
  position: relative;
  padding: 6px 0 6px 22px;
  color: var(--text-2);
}
.doc > ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.doc__note {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}
.doc__back { margin-top: 24px; }

/* Реквизиты: подпись моноширинным шрифтом + значение */
.doc__reqs {
  padding: 16px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-s);
  background: rgba(4, 6, 13, 0.5);
}
.doc__reqs p {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  padding: 6px 0;
  color: var(--text);
  overflow-wrap: anywhere;
}
.doc__reqs p + p { margin-top: 0; border-top: 1px dashed var(--line); }
.doc__reqs span:not(.doc__val) {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 12px;
}

.doc__tariffs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 16px 0 20px;
}
.plan--doc { padding: 20px; background: rgba(4, 6, 13, 0.5); }
.plan--doc .plan__price {
  margin: 10px 0 14px;
  font-size: 18px;
  line-height: 1.35;
  white-space: normal;
}

/* === Подвал === */
.footer {
  position: relative;
  padding: 32px 0 40px;
  font-size: var(--fs-s);
  color: var(--text-2);
}
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--grad);
  opacity: 0.3;
}
.footer__inner { display: flex; flex-direction: column; gap: 16px; }
.footer .muted { color: var(--text-3); margin-top: 4px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__links a {
  /* зона нажатия не меньше 24px по высоте, без изменения раскладки */
  display: inline-block;
  margin: -6px 0;
  padding: 6px 0;
  color: var(--text-2);
}
.footer__links a:hover,
.footer__links a[aria-current="page"] { color: var(--text); }

/* === Согласие на cookie === */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 16px 0;
  background: rgba(6, 9, 20, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 -12px 40px -12px rgba(0, 0, 0, 0.8);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 0.4s ease, visibility 0.4s;
}
.cookie-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--grad);
  opacity: 0.6;
}
.cookie-banner.show { transform: none; visibility: visible; }
.cookie-banner__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-banner__text {
  color: var(--text-2);
  font-size: var(--fs-s);
  line-height: 1.5;
}
.cookie-banner__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.cookie-revoke {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(6, 9, 20, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-2);
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, color 0.2s, border-color 0.2s;
}
.cookie-revoke.visible { opacity: 1; visibility: visible; }
.cookie-revoke:hover { color: var(--text); border-color: var(--cyan); }

/* === Лайтбокс === */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(3, 5, 12, 0.94);
  color: var(--text);
}
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: transparent; }
.lightbox__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.lightbox__close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: none;
  color: var(--text);
  cursor: pointer;
}
.lightbox__close:hover { border-color: var(--red); color: var(--red); }
.lightbox__img {
  flex: 1;
  min-height: 0;
  width: 100%;
  padding: 0 16px 16px;
  object-fit: contain;
}
/* Высокий скриншот: во всю ширину, прокрутка всего окна */
.lightbox--tall[open] { display: block; overflow-y: auto; }
.lightbox--tall .lightbox__head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #03050c;
}
.lightbox--tall .lightbox__img {
  display: block;
  width: 100%;
  max-width: 1632px;
  height: auto;
  margin: 0 auto;
  object-fit: initial;
  cursor: default;
}

/* === Появление при прокрутке === */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* === Адаптив === */
@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery,
  .grid--2,
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .banner:not(.banner--stack) {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .section__head--row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .seg { align-self: auto; }
  .cookie-banner__inner { flex-direction: row; align-items: center; gap: 24px; }
  .cookie-banner__actions { flex-shrink: 0; }
  .doc { padding: 40px 44px; }
  .doc__tariffs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc__reqs p { grid-template-columns: 200px minmax(0, 1fr); gap: 16px; }
  .hero__video { aspect-ratio: 16 / 7; }
  .hero__content { margin-top: -14vw; }
}

@media (min-width: 960px) {
  .section { padding: 96px 0; }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .burger { display: none; }
  .nav {
    position: static;
    flex-direction: row;
    gap: 24px;
    margin-left: 24px;
    padding: 0;
    background: none;
    border: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__link { min-height: 0; font-size: 14px; position: relative; }
  .nav__link.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad);
  }

  /* Пайплайн горизонтально */
  .pipeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-left: 0;
    padding-top: 68px;
  }
  .pipeline::before {
    left: 16.66%;
    right: 16.66%;
    top: 21px;
    bottom: auto;
    width: auto;
    height: 2px;
    background: var(--grad);
  }
  .pipeline::after {
    left: 16.66%;
    top: 20px;
    width: 10%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    animation-name: pulse-x;
  }
  .step__node {
    left: 50%;
    top: -68px;
    transform: translateX(-50%);
  }
  /* Схема: подписи уровней слева */
  .arch { padding: 32px 40px 36px; }
  .arch__grid {
    grid-template-columns: 160px repeat(3, minmax(0, 1fr));
    gap: 0 32px;
  }
  .arch__label {
    grid-column: 1;
    margin: 0;
    font-size: 12px;
    text-align: left;
  }
  .arch__start { grid-column-start: 2; }
  .arch__node,
  .arch__node--src { min-height: 64px; font-size: 18px; letter-spacing: 0.02em; }
  .arch__node--etl { min-height: 48px; font-size: 13px; }
  .arch__node--db { grid-column: 2 / -1; min-height: 110px; font-size: 26px; }
  .arch__node--bi { font-size: 22px; }
  .arch__node small { font-size: 12px; }
  .arch__center { grid-column: 3; }
  .arch__link { --link-h: 56px; }
  .hero__video { aspect-ratio: 16 / 6; }
  .hero__content { margin-top: -12vw; }
  .footer__inner { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}

@keyframes pulse-x {
  0% { transform: translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(566%); opacity: 0; }
}

@media (min-width: 1200px) {
  .stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1600px) {
  .hero__content { margin-top: -190px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
