/* AIDIA — aidia.kz
   Одна таблица стилей на весь сайт. Порядок разделов:
   1. токены  2. база  3. типографика  4. кнопки  5. шапка  6. секции
   7. форма  8. подвал  9. служебные страницы  10. адаптив  11. печать/движение */

/* ── 1. токены ───────────────────────────────────────────────────────── */
:root {
  --bg: #05102a;
  --bg-deep: #030a1c;
  --bg-soft: #0a1b3d;
  --surface: rgba(13, 33, 72, 0.66);
  --surface-2: rgba(16, 42, 90, 0.5);
  --surface-solid: #0c2050;
  --line: rgba(135, 182, 255, 0.16);
  --line-strong: rgba(135, 182, 255, 0.32);
  --text: #f2f6ff;
  --muted: #9db0d4;
  /* Приглушённый текст живёт не только на --bg, но и на подсвеченных
     подложках (.platform-card, активная .industry, шапка секции «контакты»).
     На них прежний #7286ab давал 3.6:1 — ниже нормы 4.5:1, поэтому
     токен поднят до значения, которое проходит на самой светлой подложке. */
  --muted-dim: #8b9ec4;
  --blue: #3c8dff;
  --blue-deep: #2563eb;
  --cyan: #3fe0d0;
  --violet: #9e8cff;
  --amber: #ffb25b;
  --danger: #ff7a7a;
  --ok: #4ad6ac;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(64px, 9vw, 120px);

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  --shadow: 0 24px 60px rgba(2, 8, 24, 0.45);
  --shadow-sm: 0 10px 26px rgba(2, 8, 24, 0.3);
}

/* ── 2. база ─────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;

  /* clip, а не hidden. По спецификации `overflow-x: hidden` заставляет браузер
     пересчитать overflow-y в `auto`, и <body> становится собственным контейнером
     прокрутки. Побочный эффект был серьёзным: переход по якорю (#platform,
     #contact — то есть всё главное меню) не доезжал до секции, а `scroll-padding-top`
     на <html> переставал учитывать липкую шапку. `clip` подрезает так же,
     но контейнера прокрутки не создаёт. */
  overflow-x: clip;
}

/* Сетка на фоне. Держим на псевдоэлементе, чтобы не плодить разметку. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.5;
  background-image: linear-gradient(rgba(90, 155, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 155, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%);
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 999;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--cyan);
  color: #04122c;
  font-weight: 700;
}
.skip-link:focus {
  left: 16px;
}

/* ── 3. типографика ──────────────────────────────────────────────────── */
h1,
h2,
h3,
p,
ul,
ol,
dl,
figure {
  margin: 0;
}

h1 {
  margin: 22px 0 20px;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 760;
  max-width: 19ch;
  text-wrap: balance;
}

h1 em {
  font-style: normal;
  background: linear-gradient(96deg, #ffffff 8%, #7fd9ff 55%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(27px, 3.2vw, 42px);
  text-wrap: balance;
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 740;
  max-width: 20ch;
}

h2 span {
  color: var(--cyan);
}

h3 {
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.015em;
  font-weight: 700;
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(63, 224, 208, 0.85);
}

.lead,
.head-lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.lead {
  max-width: 58ch;
}

.head {
  margin-bottom: clamp(32px, 4vw, 56px);
  display: grid;
  gap: 18px;
  max-width: 78ch;
}

.head-split {
  max-width: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: end;
  gap: clamp(24px, 4vw, 64px);
}

.head-split .head-lead {
  padding-bottom: 6px;
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

/* ── 4. кнопки ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

/* Заливка взята глубже светлого --blue: белая подпись на #3c8dff давала
   всего 3.26:1. На паре --blue-deep → #4c58e6 контраст 5.2:1, а свечение
   вокруг кнопки осталось прежним, светлым. */
.btn-primary {
  color: #fff;
  background: linear-gradient(100deg, var(--blue-deep), #4c58e6);
  box-shadow: 0 14px 34px rgba(60, 141, 255, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 18px 42px rgba(60, 141, 255, 0.42);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(19, 44, 92, 0.4);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  background: rgba(19, 44, 92, 0.7);
}

.btn-small {
  padding: 9px 16px;
  font-size: 13px;
}

.btn-arrow {
  font-size: 17px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.btn:hover .btn-arrow {
  transform: translate(2px, -2px);
}

.btn[disabled],
.btn[aria-busy="true"] {
  opacity: 0.62;
  cursor: progress;
  transform: none;
}

/* ── 5. шапка ────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 16, 42, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  /* Меню не переносится и не сжимается ниже длины слов, поэтому на
     промежуточных ширинах шапке нужны более узкие промежутки — иначе
     язык и бургер уезжают за правый край. */
  gap: clamp(16px, 2vw, 28px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.13em;
  flex: none;
}

.brand-mark {
  width: 23px;
  height: 22px;
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
}

.brand-mark i {
  display: block;
  width: 5px;
  border-radius: 999px;
  transform: skew(-22deg);
  background: linear-gradient(to top, var(--cyan), var(--blue));
  box-shadow: 0 0 12px rgba(63, 224, 208, 0.35);
}
.brand-mark i:nth-child(1) { height: 13px; }
.brand-mark i:nth-child(2) { height: 20px; }
.brand-mark i:nth-child(3) { height: 16px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 26px);
  margin-right: auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.main-nav a {
  transition: color 0.18s ease;
}

.main-nav a:hover {
  color: var(--text);
}

.main-nav a.is-current {
  color: var(--text);
}

/* Кнопка «наверх»: появляется после первого экрана. */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-solid);
  color: var(--cyan);
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* Служебное для подстраниц: крошка, скрытый h1, CTA внизу. */
.page-crumbs {
  padding-top: 26px;
  color: var(--muted);
  font-size: 14px;
}

.page-crumbs a:hover {
  color: var(--text);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.page-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: clamp(64px, 9vw, 120px);
}

/* Плитки продуктов на главной-хабе: тег + имя, без описаний. */
.product-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.product-mini {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.product-mini:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.product-mini strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.product-mini .product-tag {
  align-self: flex-start;
}

.products-all {
  margin-top: 22px;
}

/* Ссылка «подробнее» на карточке продукта. */
.product-more {
  display: inline-block;
  margin-top: 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
}

.product-more:hover {
  text-decoration: underline;
}

.nav-platform {
  color: var(--cyan) !important;
  font-weight: 650;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.lang-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 16, 42, 0.6);
}

.lang {
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.07em;
  transition: color 0.18s ease, background 0.18s ease;
}

.lang:hover {
  color: var(--text);
}

.lang.is-active {
  color: var(--text);
  background: rgba(60, 141, 255, 0.24);
}

.menu-toggle {
  display: none;
  padding: 8px 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  margin: 5px 0;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── 6. секции ───────────────────────────────────────────────────────── */

/* hero */
.hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 92px) clamp(40px, 6vw, 76px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
}

.glow-a {
  width: 620px;
  height: 620px;
  top: -190px;
  right: -120px;
  background: radial-gradient(circle, rgba(60, 141, 255, 0.22), transparent 68%);
}

.glow-b {
  width: 420px;
  height: 420px;
  top: 180px;
  right: 220px;
  background: radial-gradient(circle, rgba(63, 224, 208, 0.16), transparent 68%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 44px);
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero-stats dt {
  font-size: 22px;
  font-weight: 780;
  letter-spacing: -0.03em;
  color: var(--cyan);
}

.hero-stats dd {
  margin: 4px 0 0;
  max-width: 22ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* графика справа: холст с глобусом + подписи поверх */
.hero-visual {
  position: relative;
  min-height: clamp(320px, 38vw, 460px);
  display: grid;
  place-items: center;
  /* Полоса верхних подписей. Ровно две строки метки в 10px/1.6 — столько
     она занимает, когда на узком экране длинный текст переносится.
     От неё же отсчитывается первый узел, чтобы он не наехал на подпись. */
  --tag-band: 2rem;
  /* Нижняя плашка «единый шлюз» вместе с отступом. Проценты у нижних узлов
     на невысокой графике дают меньше этой величины, поэтому она работает
     как нижняя граница. */
  --caption-band: 2.5rem;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.visual-caption {
  position: absolute;
  bottom: 1.5%;
  left: 50%;
  transform: translateX(-50%);
  /* Абсолютный блок не участвует в раскладке, поэтому длинную подпись
     ограничиваем шириной графики и разрешаем перенос: nowrap вывел бы
     её за пределы блока на казахской версии. */
  max-width: calc(100% - 16px);
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 16, 42, 0.72);
  backdrop-filter: blur(8px);
  color: #b6eaff;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-align: center;
  text-transform: uppercase;
}

.node {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(132, 192, 255, 0.24);
  border-radius: 999px;
  background: rgba(9, 28, 66, 0.82);
  backdrop-filter: blur(10px);
  color: #d4e6ff;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.node i {
  font-style: normal;
  color: var(--cyan);
  font-size: 14px;
  line-height: 1;
}

/* Первый узел начинается под полосой подписей, а не от края блока:
   при 6% от невысокой графики он попадал ровно на строку с тегами. */
.node-1 { top: var(--tag-band); left: 0; }
.node-2 { top: 24%; right: 0; }
.node-3 { bottom: 30%; left: 0; }
/* Нижний правый узел упирается в плашку подписи, когда 14% высоты
   оказываются меньше самой плашки — на узком экране. */
.node-4 { bottom: max(14%, var(--caption-band)); right: 0; }

/* Две подписи — одна строка флексом, а не два независимых абсолютных
   блока. Раньше обе висели в верхних углах и на узких экранах налезали
   друг на друга; теперь их разводит space-between, а gap не даёт слипнуться
   даже когда текст переносится. */
.visual-tags {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  min-height: var(--tag-band);
}

.visual-tag {
  color: var(--muted-dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.tag-end { text-align: right; }

/* полоса тезисов */
.strip {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 27, 61, 0.6), rgba(5, 16, 42, 0));
}

.strip-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px 22px 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}

.strip-item + .strip-item {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.strip-no {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  flex: none;
}

/* барьеры */
.barrier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.barrier {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.barrier:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.barrier-no {
  display: block;
  margin-bottom: 14px;
  color: var(--muted-dim);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.barrier h3 {
  margin-bottom: 10px;
}

.barrier-problem {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.barrier-answer {
  display: flex;
  gap: 9px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  color: #cfe2ff;
  font-size: 14px;
  line-height: 1.55;
}

.tick {
  color: var(--cyan);
  font-weight: 800;
  flex: none;
}

/* платформа */
.platform-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.platform-card {
  padding: 30px 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: linear-gradient(155deg, rgba(23, 55, 116, 0.75), rgba(9, 24, 56, 0.85));
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.platform-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.badge {
  padding: 4px 10px;
  border: 1px solid rgba(63, 224, 208, 0.4);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.platform-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.platform-note {
  font-size: 12.5px !important;
  color: var(--muted-dim) !important;
}

.code-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(3, 10, 28, 0.82);
}

.code-card figcaption {
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 27, 61, 0.6);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.code-card pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
}

.code-card code {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.85;
  color: #cfe0ff;
  white-space: pre;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--line);
}

.feature {
  padding: 26px 24px;
  background: var(--bg);
  transition: background 0.2s ease;
}

.feature:hover {
  background: var(--surface-2);
}

.feature h3 {
  margin-bottom: 9px;
}

.feature p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.spec-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.spec-row div {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
}

.spec-row dt {
  color: var(--muted-dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.spec-row dd {
  margin: 7px 0 0;
  font-size: 15px;
  font-weight: 650;
}

/* продукты */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.product-card {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.product-card-top {
  margin-bottom: 16px;
}

.product-tag {
  padding: 5px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.product-card h3 {
  margin-bottom: 10px;
  font-size: 19px;
}

.product-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.product-meta span {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #a9caff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* направления */
.direction-list {
  display: grid;
  gap: 16px;
}

.direction {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  transition: border-color 0.2s ease;
}

.direction:hover {
  border-color: var(--line-strong);
}

.direction-mark {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.direction-no {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.05em;
  /* При 0.32 номер давал 2.07:1 — крупному тексту нужно от 3:1. */
  color: rgba(159, 190, 240, 0.55);
  line-height: 1;
}

.direction-tag {
  align-self: flex-start;
  padding: 5px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.direction-body h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.direction-body > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 68ch;
}

.ticks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px 26px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 20px;
  color: #c6d8f5;
  font-size: 13.5px;
  line-height: 1.55;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--cyan);
  opacity: 0.8;
}

/* отрасли */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.industry {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.industry:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.industry.is-active {
  border-color: var(--cyan);
  background: rgba(23, 55, 116, 0.62);
}

.industry-no {
  color: var(--muted-dim);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.industry strong {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.industry small {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.industry-detail {
  margin-top: 16px;
  padding: 26px 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: linear-gradient(120deg, rgba(23, 55, 116, 0.6), rgba(9, 24, 56, 0.7));
}

.detail-label {
  color: var(--cyan);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.detail-text {
  margin-top: 10px;
  font-size: 17px;
  line-height: 1.6;
  max-width: 72ch;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.detail-tags span {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

/* архитектура */
.arch-board {
  display: grid;
  gap: 8px;
}

.arch-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
}

.arch-label {
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
}

.arch-row-1 .arch-label { background: var(--blue-deep); }
.arch-row-2 .arch-label { background: #12889a; }
.arch-row-3 .arch-label { background: #6b5fd3; }
.arch-row-4 .arch-label { background: #bf7112; }
.arch-row-5 .arch-label { background: #2a3b63; }

.arch-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.arch-items span {
  flex: 1 1 130px;
  min-width: 110px;
  display: grid;
  place-items: center;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #c7ddff;
  font-size: 11px;
  text-align: center;
}

/* преимущества */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.advantage {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  border-left: 2px solid var(--cyan);
}

.advantage h3 {
  margin-bottom: 9px;
}

.advantage p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* цифры */
.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
}

.fact-value {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  background: linear-gradient(96deg, #ffffff, #7fd9ff 70%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fact-label {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}

.fact-note {
  color: var(--muted-dim);
  font-size: 11.5px;
  line-height: 1.5;
}

.fact-disclaimer {
  margin-top: 18px;
  color: var(--muted-dim);
  font-size: 12.5px;
}

/* география */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}

.step::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.step-label {
  display: block;
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.step strong {
  display: block;
  margin-bottom: 9px;
  font-size: 17px;
  font-weight: 700;
}

.step p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.countries {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.countries li {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
}

/* о компании */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: start;
}

.about-head h2 {
  margin-top: 16px;
}

.about-copy p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.about-copy p + p {
  margin-top: 18px;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.about-facts dt {
  color: var(--muted-dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-facts dd {
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 650;
}

/* ── 7. форма ────────────────────────────────────────────────────────── */
.contact {
  border-top: 1px solid var(--line);
  background: radial-gradient(120% 90% at 15% 0%, rgba(23, 55, 116, 0.5), transparent 60%);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
}

.contact-intro h2 {
  margin: 16px 0 18px;
}

.contact-direct {
  display: grid;
  gap: 18px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.contact-direct dt {
  color: var(--muted-dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-direct dd {
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 600;
}

.contact-direct a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(63, 224, 208, 0.35);
}

.contact-direct a:hover {
  border-bottom-color: var(--cyan);
}

.contact-form {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: rgba(7, 20, 48, 0.72);
  box-shadow: var(--shadow);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.field label {
  color: #c9daf6;
  font-size: 13px;
  font-weight: 600;
}

.req {
  color: var(--cyan);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(4, 12, 32, 0.7);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.field textarea {
  resize: vertical;
  min-height: 128px;
  line-height: 1.6;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.field select option {
  background: var(--surface-solid);
  color: var(--text);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-dim);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--cyan);
  background: rgba(4, 12, 32, 0.95);
}

/* Кольцо фокуса гасим только для мыши. Раньше outline: none стоял на
   :focus и перебивал общее правило :focus-visible — при обходе табом
   поле подсвечивалось лишь рамкой в 1px, и позиция каретки терялась. */
.field input:focus:not(:focus-visible),
.field select:focus:not(:focus-visible),
.field textarea:focus:not(:focus-visible) {
  outline: none;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--danger);
}

.field-error {
  min-height: 0;
  color: var(--danger);
  font-size: 12.5px;
  line-height: 1.45;
}

.field-error:empty {
  display: none;
}

.consent {
  margin: 4px 0 22px;
}

.consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  cursor: pointer;
}

.consent input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  flex: none;
}

.consent-link {
  color: var(--cyan);
  border-bottom: 1px solid rgba(63, 224, 208, 0.35);
  white-space: nowrap;
}

.consent-link:hover {
  border-bottom-color: var(--cyan);
}

.consent.has-error span {
  color: var(--danger);
}

.btn-submit {
  width: 100%;
}

.form-status {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.55;
}

.form-status:empty {
  display: none;
}

.form-status.is-ok {
  color: var(--ok);
}

.form-status.is-error {
  color: var(--danger);
}

.form-status.is-pending {
  color: var(--muted);
}

/* ── 8. подвал ───────────────────────────────────────────────────────── */
.site-footer {
  padding-top: clamp(44px, 6vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-brand strong {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.footer-brand small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  max-width: 36ch;
}

.footer-mail {
  margin-top: 4px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 600;
}

.footer-nav,
.footer-langs {
  display: flex;
  flex-direction: column;
  gap: 11px;
  color: var(--muted);
  font-size: 14px;
}

.footer-nav a:hover,
.footer-langs a:hover {
  color: var(--text);
}

.footer-langs a[aria-current] {
  color: var(--text);
  font-weight: 650;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted-dim);
  font-size: 12.5px;
}

/* ── 9. служебные страницы (/ и 404) ─────────────────────────────────── */
.pick-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
}

.pick-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.pick-brand {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.pick-lead {
  color: var(--muted);
  font-size: 15px;
  max-width: 42ch;
}

.pick-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.pick {
  padding: 12px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 15px;
  font-weight: 650;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.pick:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

/* ── 10. адаптив ─────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  /* Порог бургера привязан к этой же точке, а не к 880px: русскому меню
     нужно около 1075px ширины окна, и на 880–1075 оно раньше вылезало
     из шапки, унося за край переключатель языка. */
  .menu-toggle {
    display: block;
  }

  .header-cta {
    display: none;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: rgba(5, 16, 42, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .hero-inner,
  .platform-top,
  .about-grid,
  .contact-grid,
  .head-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .head-split .head-lead {
    padding-bottom: 0;
  }

  .hero-visual {
    min-height: 340px;
    order: -1;
  }

  .strip-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strip-item + .strip-item {
    padding-left: 0;
    border-left: 0;
  }

  .strip-item:nth-child(even) {
    padding-left: 24px;
    border-left: 1px solid var(--line);
  }

  .direction {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .direction-mark {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }

  .arch-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .arch-label {
    justify-self: start;
  }

  .footer-inner {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 880px) {
  h1 {
    max-width: none;
  }

  .hero-stats {
    gap: 18px 28px;
  }
}

@media (max-width: 560px) {
  .strip-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .strip-item,
  .strip-item:nth-child(even) {
    padding: 16px 0;
    padding-left: 0;
    border-left: 0;
  }

  .strip-item + .strip-item {
    border-top: 1px solid var(--line);
  }

  .hero-visual {
    min-height: 280px;
  }

  .node {
    padding: 6px 10px;
    font-size: 10px;
  }

  /* .node-1 держим на --tag-band, а .node-4 — на --caption-band
     из базовых правил: над одним полоса подписей, под другим плашка. */
  .node-2 { top: 16%; right: 0; }
  .node-3 { bottom: 30%; left: 0; }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .lang {
    padding: 5px 8px;
  }
}

/* ── 11. движение и печать ───────────────────────────────────────────── */
@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;
  }
}

@media print {
  body::before,
  .hero-bg,
  .site-header,
  .contact-form,
  .menu-toggle {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }
}

/* Строка юридических документов на странице TokenHub. */
.page-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding-bottom: 20px;
  color: var(--muted);
  font-size: 13.5px;
}

.page-docs a {
  color: var(--cyan);
}

.page-docs a:hover {
  text-decoration: underline;
}
