/* ============================================================
   СИСТЕМА — лендинг
   Структура: tokens → reset → base → layout → components → utils → motion
   Без сборки. CSS Custom Properties + лёгкий BEM.
   ============================================================ */

/* ─── 1. Tokens ─────────────────────────────────────────────── */
:root {
  /* Primary — глубокий индиго (refresh: меньше фиолетовой ноты) */
  --color-primary: #131B5C;
  --color-primary-hover: #1E2A78;
  --color-primary-active: #0D1444;
  --color-primary-deep: #0A0F2E;
  --color-primary-soft: #E7EBFE;
  /* Accent — изумруд (refresh: «деньги + рост») */
  --color-accent: #059669;
  --color-accent-hover: #10B981;
  --color-accent-active: #047857;
  --color-accent-soft: #ECFDF5;
  /* Text */
  --color-text-primary: #0A0F1F;
  --color-text-secondary: #3D4659;
  --color-text-muted: #6B7388;
  --color-text-inverse: #FFFFFF;
  /* Surfaces — тёплая нота вместо холодного серого */
  --color-bg-base: #FFFFFF;
  --color-bg-surface: #FAFBF6;
  --color-bg-subtle: #F2F4ED;
  --color-bg-inverse: #0A0F2E;
  --color-border: #DDE1EC;
  --color-border-strong: #B8BFD3;
  /* Semantic */
  --color-success: #1E7A4D;
  --color-success-soft: #E3F4EB;
  --color-warning: #B8770A;
  --color-warning-soft: #FBF1DC;
  --color-error: #C53030;
  --color-error-soft: #FCE8E8;

  /* Type */
  --font-display: "Unbounded", "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-text:    "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --text-display: clamp(28px, 7vw, 64px);
  --text-h1: clamp(24px, 5vw, 48px);
  --text-h2: clamp(26px, 3vw, 36px);
  --text-h3: clamp(20px, 2.2vw, 26px);
  --text-h4: clamp(18px, 1.6vw, 20px);
  --text-lg: clamp(17px, 1.4vw, 19px);
  --text-base: 16px;
  --text-sm: 14px;
  --text-xs: 12px;

  /* Space */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 21, 37, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 21, 37, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 21, 37, 0.10);
  --shadow-xl: 0 24px 64px rgba(15, 21, 37, 0.14);
  --shadow-focus: 0 0 0 3px rgba(26, 43, 107, 0.25);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-base: 240ms;
  --duration-slow: 600ms;

  /* Layout */
  --container-max: 1280px;
  --container-pad: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --shadow-ring-bg: 0 0 0 6px var(--color-bg-base);
}

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

/* ─── 1.5. Кастомный scrollbar ────────────────────────────────
       Firefox — через native scrollbar-color/width.
       WebKit/Blink — через ::-webkit-scrollbar (Chrome, Edge, Safari).
       Трюк с border+background-clip даёт «плавающий» бегунок с
       отступом, выглядит премиальнее системного. */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(19, 27, 92, 0.28) transparent;
  scrollbar-gutter: stable;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(19, 27, 92, 0.28);
  background-clip: content-box;
  border: 2px solid transparent;
  border-radius: 8px;
  transition: background var(--duration-fast);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
  background-clip: content-box;
}
::-webkit-scrollbar-corner { background: transparent; }

/* ─── 2. Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 4; scroll-behavior: smooth; }
body {
  font-family: var(--font-text);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
img { font-style: italic; background-repeat: no-repeat; background-size: cover; }

input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ─── 3. Base typography ────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); font-weight: 600; }
p  { color: var(--color-text-secondary); }
a  { color: var(--color-primary); transition: color var(--duration-fast); }
a:hover { color: var(--color-primary-hover); }
strong { font-weight: 600; color: var(--color-text-primary); }
small { font-size: var(--text-sm); color: var(--color-text-muted); }

::selection { background: var(--color-primary); color: #fff; }

/* ─── 4. Layout primitives ─────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  width: 100%;
}
.container--narrow { max-width: 800px; }

.section {
  padding-block: clamp(48px, 8vw, 96px);
}
.section--surface { background: var(--color-bg-surface); }
.section--subtle  { background: var(--color-bg-subtle); }
.section--inverse {
  background: var(--color-bg-inverse);
  color: var(--color-text-inverse);
}
.section--inverse h1,
.section--inverse h2,
.section--inverse h3,
.section--inverse h4 { color: #fff; }
.section--inverse p { color: rgba(255, 255, 255, 0.78); }

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-12);
}
.section__head .overline {
  display: inline-block;
  margin-bottom: var(--space-3);
}
.section__head p { margin-top: var(--space-3); font-size: var(--text-lg); }

.overline {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.stack > * + * { margin-top: var(--space-4); }
.stack-lg > * + * { margin-top: var(--space-8); }

.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ─── 5. Header ────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: box-shadow var(--duration-base);
}
.header.is-scrolled { box-shadow: var(--shadow-sm); border-bottom: 1px solid var(--color-border); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: var(--header-h);
  padding-inline: var(--container-pad);
  max-width: var(--container-max);
  margin-inline: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}
.logo__mark { width: 36px; height: 36px; }
.logo__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.12em;
  color: var(--color-primary-deep);
  text-transform: uppercase;
}
.logo__tagline {
  display: block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav { display: flex; gap: var(--space-6); align-items: center; }
.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: var(--space-2) 0;
  position: relative;
  transition: color var(--duration-fast);
}
.nav__link:hover { color: var(--color-primary); }
.nav__link.is-active { color: var(--color-primary); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

.header__actions { display: flex; align-items: center; gap: var(--space-3); }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  position: relative;
  transition: transform var(--duration-base), opacity var(--duration-fast);
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: inherit;
  border-radius: 2px;
  transition: transform var(--duration-base);
}
.burger span::before { top: -7px; }
.burger span::after  { top: 7px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span::after  { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  .burger { display: inline-flex; position: relative; z-index: 105; }
  /* Скрываем nav только на верхнем уровне header, но НЕ внутри drawer-а */
  .header__inner > .nav,
  .header__actions .btn:not(.btn--primary) { display: none; }
  .header__drawer {
    display: block;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: calc(100vh - var(--header-h));
    background: #ffffff !important;
    transform: translateX(100%);
    transition: transform var(--duration-base) var(--ease-out);
    padding: var(--space-8) var(--container-pad);
    overflow-y: auto;
    z-index: 100;
    box-shadow: -8px 0 32px rgba(10, 15, 46, 0.2);
  }
  .menu-open .header__drawer { transform: translateX(0); }
  .header__drawer .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: var(--space-8);
  }
  .header__drawer .nav__link {
    padding: var(--space-4) 0;
    font-size: var(--text-lg);
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-primary);
  }
  .header__drawer .drawer-cta { margin-top: var(--space-6); display: grid; gap: var(--space-3); }
  .drawer-close {
    display: inline-flex;
    position: absolute;
    top: var(--space-3);
    right: var(--space-4);
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    cursor: pointer;
    z-index: 110;
    box-shadow: var(--shadow-sm);
  }
  .drawer-close svg { width: 22px; height: 22px; }
  .drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 46, 0.5);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-base);
  }
  .menu-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
}
@media (min-width: 1025px) {
  .header__drawer { display: contents; }
  .drawer-cta { display: none; }
  .drawer-close,
  .drawer-backdrop { display: none; }
}

/* ─── 6. Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-text);
  font-weight: 600;
  font-size: var(--text-base);
  line-height: 1;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--duration-fast), color var(--duration-fast), transform var(--duration-fast), box-shadow var(--duration-fast), border-color var(--duration-fast);
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 8px 14px; font-size: var(--text-sm); min-height: 36px; }
.btn--lg { padding: 18px 30px; font-size: var(--text-lg); min-height: 56px; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover  { background: var(--color-accent-hover); box-shadow: var(--shadow-md); color: #fff; }
.btn--primary:active { background: var(--color-accent-active); box-shadow: var(--shadow-sm); color: #fff; }

.btn--secondary {
  background: var(--color-primary);
  color: #fff;
}
.btn--secondary:hover  { background: var(--color-primary-hover); color: #fff; }
.btn--secondary:active { background: var(--color-primary-active); }

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border-strong);
}
.btn--ghost:hover { border-color: var(--color-primary); background: var(--color-primary-soft); color: var(--color-primary); }

.btn--inverse {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn--inverse:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ─── 7. Forms ─────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field__label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
}
.field__input,
.field__textarea,
.field__select {
  height: 48px;
  padding: 12px 16px;
  font-size: var(--text-base);
  background: var(--color-bg-base);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast), background var(--duration-fast);
  width: 100%;
  font-family: inherit;
}
.field__textarea { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.field__input::placeholder,
.field__textarea::placeholder { color: var(--color-text-muted); }
.field__input:hover,
.field__textarea:hover,
.field__select:hover { border-color: var(--color-primary); }
.field__input:focus,
.field__textarea:focus,
.field__select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}
.field__hint  { font-size: var(--text-xs); color: var(--color-text-muted); }
.field__error { font-size: var(--text-xs); color: var(--color-error); display: none; }
.field.is-error .field__input,
.field.is-error .field__textarea { border-color: var(--color-error); background: var(--color-error-soft); }
.field.is-error .field__error { display: block; }

.field__input:disabled,
.field__textarea:disabled,
.field__select:disabled { opacity: 0.6; cursor: not-allowed; }

.field__select:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}

.field.is-success .field__input,
.field.is-success .field__textarea {
  border-color: var(--color-success);
  background: var(--color-success-soft);
}
.field.is-loading .field__input,
.field.is-loading .field__textarea { opacity: 0.7; }

.req { color: var(--color-error); }
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}
.checkbox input { margin-top: 1px; width: 24px; height: 24px; accent-color: var(--color-primary); flex-shrink: 0; }
.checkbox a { font-weight: 500; }

/* ─── 8. Hero ──────────────────────────────────────────────── */
.hero {
  padding-block: clamp(40px, 7vw, 96px);
  background:
    radial-gradient(ellipse at top right, var(--color-primary-soft), transparent 60%),
    var(--color-bg-base);
  position: relative;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-12);
  align-items: center;
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--space-8); }
  /* На мобиле текст с CTA — первый экран, иллюстрация ниже и компактнее */
  .hero__art {
    max-width: 280px;
    margin: var(--space-4) auto 0;
  }
}
@media (max-width: 480px) {
  .hero__art { max-width: 220px; }
  /* Узкий экран: спрятать tagline под лого и CTA-кнопку в шапке.
     CTA остаётся доступна через бургер-меню в drawer. */
  .logo__tagline { display: none; }
  .header__actions { display: none; }
}

/* Safety: предотвратить горизонтальный overflow от очень длинных слов.
   overflow-wrap: break-word рвёт слово ТОЛЬКО когда оно физически не влезает
   в контейнер — в отличие от anywhere, который рвёт в произвольном месте. */
.hero__title,
.page-hero h1,
h1, h2, h3 { overflow-wrap: break-word; }
.hero__title {
  font-size: var(--text-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: var(--space-5);
  color: var(--color-primary-deep);
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 540px;
  margin-bottom: var(--space-8);
}
.hero__form {
  display: flex;
  gap: var(--space-3);
  max-width: 520px;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}
.hero__form .field { flex: 1; min-width: 200px; gap: 0; }
.hero__form .field__input { height: 56px; font-size: var(--text-lg); }
.hero__form .btn { height: 56px; }
.hero__trust {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}
.hero__trust > div {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.hero__trust svg { color: var(--color-success); width: 18px; height: 18px; flex-shrink: 0; }

/* Hero иллюстрация — анимированный граф */
.hero__art svg { width: 100%; height: auto; max-width: 480px; }
.graph-node { transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .graph-node { animation: pulse 3.5s var(--ease-in-out) infinite; }
  .graph-node:nth-child(2) { animation-delay: 0.5s; }
  .graph-node:nth-child(3) { animation-delay: 1s; }
  .graph-node:nth-child(4) { animation-delay: 1.5s; }
  .graph-node:nth-child(5) { animation-delay: 2s; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.15); opacity: 0.85; }
}

/* ─── 9. Trust bar ─────────────────────────────────────────── */
.trust-bar {
  background: var(--color-primary-deep);
  color: #fff;
  padding-block: var(--space-6);
}
.trust-bar__row {
  display: flex;
  gap: var(--space-12);
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
}
.trust-bar__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
}
.trust-bar__item svg { color: var(--color-accent); width: 24px; height: 24px; flex-shrink: 0; }
.trust-bar__item strong { color: #fff; font-weight: 600; display: block; }

/* ─── 10. Cards ────────────────────────────────────────────── */
.card {
  background: var(--color-bg-base);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: transform var(--duration-base), box-shadow var(--duration-base), border-color var(--duration-base);
}
.card:hover {
  border-color: var(--color-primary-soft);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-card { display: flex; flex-direction: column; gap: var(--space-4); }
.feature-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: background var(--duration-base), color var(--duration-base);
}
.feature-card__icon svg { width: 28px; height: 28px; }
.card:hover .feature-card__icon { background: var(--color-primary); color: #fff; }
.feature-card__title { font-size: var(--text-h4); }
.feature-card__text  { color: var(--color-text-secondary); font-size: var(--text-base); }

/* ─── 11. Stats ────────────────────────────────────────────── */
.stat-card {
  padding: var(--space-6) var(--space-6) var(--space-6) var(--space-8);
  border-left: 3px solid var(--color-accent);
  background: var(--color-bg-base);
}
.stat-card__num {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 800;
  color: var(--color-primary-deep);
  line-height: 1;
  letter-spacing: -0.03em;
  font-feature-settings: "tnum" 1;
  display: block;
}
.stat-card__num small { font-size: 0.5em; color: var(--color-text-muted); margin-left: var(--space-2); font-weight: 600; }
.stat-card__label {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ─── 12. Steps ────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 24px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 2px;
  background: linear-gradient(to right, var(--color-accent), var(--color-primary-soft));
  z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; }
.step__num {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-ring-bg);
}
.step__title { font-size: var(--text-h4); margin-bottom: var(--space-2); }
.step__text  { font-size: var(--text-base); color: var(--color-text-secondary); }
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; gap: var(--space-8); }
}

/* ─── 13. Requirements list ────────────────────────────────── */
.req-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4) var(--space-8);
  margin-block: var(--space-6);
}
.req-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-base);
  color: var(--color-text-secondary);
}
.req-item svg {
  color: var(--color-success);
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}
.req-item strong { color: var(--color-text-primary); }
@media (max-width: 640px) {
  .req-list { grid-template-columns: 1fr; }
}

/* ─── 14. Compare table ────────────────────────────────────── */
.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-bg-base);
}
.compare th,
.compare td {
  padding: var(--space-4) var(--space-6);
  text-align: left;
  font-size: var(--text-base);
  border-bottom: 1px solid var(--color-border);
}
.compare th {
  font-weight: 600;
  background: var(--color-bg-subtle);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}
.compare th:first-child { background: transparent; }
.compare td:first-child { font-weight: 500; color: var(--color-text-primary); }
.compare tr:last-child td { border-bottom: none; }
.compare__highlight {
  background: var(--color-primary-soft);
  color: var(--color-primary-deep);
  font-weight: 600;
  position: relative;
}
.compare__highlight::before {
  content: "Платформа";
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent-active);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.compare__check { color: var(--color-success); }
.compare__cross { color: var(--color-error); }
.compare__neutral { color: var(--color-text-muted); }
@media (max-width: 768px) {
  .compare, .compare thead, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare thead { display: none; }
  .compare tr { padding: var(--space-4); border-bottom: 1px solid var(--color-border); }
  .compare td { border: none; padding: var(--space-2) 0; }
  .compare td:first-child { font-size: var(--text-h4); margin-bottom: var(--space-3); }
}

/* ─── 15. FAQ accordion ────────────────────────────────────── */
.faq { max-width: 880px; margin: 0 auto; }
.faq__item {
  border-bottom: 1px solid var(--color-border);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--color-text-primary);
  transition: color var(--duration-fast);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--color-primary); }
.faq__item summary:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}
.faq__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  transition: transform var(--duration-base), background var(--duration-base), color var(--duration-base);
}
.faq__icon svg { width: 16px; height: 16px; }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--color-primary); color: #fff; }
.faq__answer {
  padding: 0 0 var(--space-6) 0;
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  max-width: 720px;
}

/* ─── 16. Badge / chip ─────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  letter-spacing: 0.02em;
}
.badge--accent  { background: var(--color-accent-soft); color: var(--color-accent-active); }
.badge--success { background: var(--color-success-soft); color: var(--color-success); }
.badge--warning { background: var(--color-warning-soft); color: var(--color-warning); }
.badge svg { width: 14px; height: 14px; }

/* ─── 17. Risk banner ──────────────────────────────────────── */
.risk-banner {
  background: var(--color-warning-soft);
  border-left: 4px solid var(--color-warning);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-md);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  margin-block: var(--space-6);
}
.risk-banner svg { color: var(--color-warning); width: 28px; height: 28px; flex-shrink: 0; }
.risk-banner__title { font-weight: 600; color: var(--color-warning); margin-bottom: var(--space-1); display: block; }
.risk-banner p { font-size: var(--text-sm); color: var(--color-text-secondary); }

/* ─── 18. Calculator ───────────────────────────────────────── */
.calc {
  background: var(--color-bg-base);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  box-shadow: var(--shadow-md);
}
.calc__inputs { display: flex; flex-direction: column; gap: var(--space-5); }
.calc__output {
  background: var(--color-primary-deep);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-6);
}
.calc__output-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
  display: block;
}
.calc__output-value {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: #34D399;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.02em;
}
.calc__output-row + .calc__output-row { padding-top: var(--space-4); border-top: 1px solid rgba(255, 255, 255, 0.1); }
.calc__output small { display: block; margin-top: var(--space-4); color: rgba(255, 255, 255, 0.6); font-size: var(--text-xs); line-height: 1.5; }
.calc input[type="range"] { width: 100%; accent-color: var(--color-accent); }
.calc__range-labels { display: flex; justify-content: space-between; font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 4px; }
@media (max-width: 768px) {
  .calc { grid-template-columns: 1fr; padding: var(--space-6); gap: var(--space-6); }
  .calc__output { padding: var(--space-6); }
}

/* ─── 19. Document list (disclosure) ──────────────────────── */
.doc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.doc-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: var(--color-bg-base);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.doc-item:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); }
.doc-item__icon {
  width: 44px; height: 44px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.doc-item__icon svg { width: 22px; height: 22px; }
.doc-item__body { flex: 1; min-width: 0; }
.doc-item__title { font-weight: 600; color: var(--color-text-primary); }
.doc-item__meta { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 2px; }
.doc-item__action {
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .doc-list { grid-template-columns: 1fr; }
}

/* ─── 20. Final CTA ────────────────────────────────────────── */
.cta-final {
  background: linear-gradient(135deg, var(--color-primary-deep) 0%, var(--color-primary) 100%);
  color: #fff;
  border-radius: var(--radius-2xl);
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(5, 150, 105, 0.28), transparent 50%);
  pointer-events: none;
}
.cta-final h2 { color: #fff; margin-bottom: var(--space-4); position: relative; }
.cta-final p { color: rgba(255, 255, 255, 0.78); max-width: 640px; margin: 0 auto var(--space-8); font-size: var(--text-lg); position: relative; }
.cta-final__actions { display: inline-flex; gap: var(--space-4); flex-wrap: wrap; justify-content: center; position: relative; }

/* ─── 21. Tabs ─────────────────────────────────────────────── */
.tabs {
  display: inline-flex;
  background: var(--color-bg-subtle);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 2px;
}
.tabs__btn {
  padding: 10px 22px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-full);
  transition: background var(--duration-fast), color var(--duration-fast);
}
.tabs__btn.is-active { background: var(--color-bg-base); color: var(--color-primary); box-shadow: var(--shadow-sm); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* ─── 22. Footer ───────────────────────────────────────────── */
.footer {
  background: var(--color-bg-inverse);
  color: rgba(255, 255, 255, 0.78);
  padding-top: clamp(48px, 8vw, 80px);
  padding-bottom: var(--space-6);
  font-size: var(--text-sm);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}
.footer__col h4 {
  color: #fff;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
  font-weight: 600;
}
.footer__col ul li + li { margin-top: var(--space-3); }
.footer__col a { color: rgba(255, 255, 255, 0.7); transition: color var(--duration-fast); }
.footer__col a:hover { color: #fff; }
.footer__brand .logo__text { color: #fff; }
.footer__brand p { color: rgba(255, 255, 255, 0.6); margin-block: var(--space-4); max-width: 320px; }
.footer__social { display: flex; gap: var(--space-3); }
.footer__social a {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background var(--duration-fast);
}
.footer__social a:hover { background: var(--color-accent); color: #fff; }
.footer__disclaimer {
  padding: var(--space-6) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}
.footer__bottom {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.55);
}
.footer__bottom a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--duration-fast);
}
.footer__bottom a:hover { text-decoration-color: #fff; }
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-6); }
}

/* ─── 23. Cookie banner ────────────────────────────────────── */
.cookie {
  position: fixed;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  max-width: 520px;
  background: var(--color-bg-inverse);
  color: #fff;
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: 60;
  display: none;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-sm);
}
.cookie.is-visible { display: flex; }
.cookie p { color: rgba(255, 255, 255, 0.85); margin: 0; flex: 1; }
.cookie a { color: var(--color-accent); }

/* ─── 24. Page heroes (внутренние) ─────────────────────────── */
.page-hero {
  padding-block: clamp(48px, 8vw, 96px);
  background:
    radial-gradient(ellipse at top, var(--color-primary-soft), transparent 70%),
    var(--color-bg-base);
  text-align: center;
}
.page-hero h1 {
  font-size: var(--text-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-primary-deep);
  margin-bottom: var(--space-4);
}
.page-hero p {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 720px;
  margin: 0 auto;
}

/* ─── 25. Requisites block (стили вынесены в секцию 32 с поддержкой dt/dd напрямую в dl) ── */
.requisites--card {
  background: var(--color-bg-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

/* ─── 26. Contacts grid ────────────────────────────────────── */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.contact-card { text-align: center; padding: var(--space-8); }
.contact-card__icon {
  width: 64px; height: 64px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.contact-card__icon svg { width: 28px; height: 28px; }
.contact-card__label { font-size: var(--text-sm); color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--space-2); }
.contact-card__value { font-size: var(--text-lg); font-weight: 600; color: var(--color-text-primary); }
.contact-card__value a:hover { color: var(--color-primary); }
@media (max-width: 768px) {
  .contact-cards { grid-template-columns: 1fr; }
}

/* ─── 27. Map ──────────────────────────────────────────────── */
.map {
  width: 100%;
  height: 420px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.map iframe { width: 100%; height: 100%; border: 0; }

/* ─── 28. Utilities ────────────────────────────────────────── */
.u-text-center { text-align: center; }
.u-mt-0 { margin-top: 0 !important; }
.u-mt-4 { margin-top: var(--space-4); }
.u-mt-8 { margin-top: var(--space-8); }
.u-hidden { display: none !important; }
.u-sr-only {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0,0,0,0) !important;
  white-space: nowrap !important; border: 0 !important;
}
@media (max-width: 768px) {
  .u-hidden-md { display: none !important; }
}
@media (min-width: 769px) {
  .u-hidden-up-md { display: none !important; }
}

/* ─── 29. Reveal on scroll (CLS-safe — opacity only) ───────── */
.reveal {
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out);
}
.reveal.is-visible { opacity: 1; }

/* ─── 30. Reduce motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; }
}

/* ─── 31. Print ────────────────────────────────────────────── */
@media print {
  .header, .footer, .cookie, .btn { display: none !important; }
  body { color: #000; background: #fff; }
}

/* ─── 32. Component-supporting classes (added в дизайн-проходе) ── */

/* Кнопочные группы (cta-final, 404, /investors hero) */
.button-group {
  display: inline-flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
}

/* Footer формы: статус слева, кнопка справа, на мобиле — друг под другом */
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Сетка с увеличенным gap для форм (был inline gap: var(--space-5)) */
.grid--form { gap: var(--space-5) !important; }

/* Тёмный hero на /investors (был inline linear-gradient) */
.page-hero.hero--inverse {
  background: linear-gradient(135deg, var(--color-primary-deep), var(--color-primary));
  color: #fff;
}
.page-hero.hero--inverse h1 { color: #fff; }
.page-hero__lead-inverse { color: rgba(255, 255, 255, 0.85); max-width: 720px; margin: 0 auto; }
.overline--accent { color: var(--color-accent); }

/* Текстовые блоки на /about — был inline font-size + color */
.page-text { font-size: var(--text-lg); color: var(--color-text-secondary); }

/* Подсветка значения в label калькуляторов */
.calc__val { color: var(--color-primary); font-weight: 600; }
.calc__output-value--sm { font-size: 24px !important; }

/* Адрес в контакт-карточке (был inline font-size + line-height + br) */
.contact-card__address {
  font-size: var(--text-base);
  line-height: 1.4;
  display: inline-block;
}

/* Тёмный cookie-баннер — светлый emerald для AA контраста на indigo-deep */
.cookie a { color: #6EE7B7; text-decoration: underline; }
.cookie a:hover { color: #A7F3D0; }

/* Реквизиты: один источник правды для grid + визуальная упаковка */
.requisites {
  background: var(--color-bg-base);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4) var(--space-8);
}
.section--surface .requisites { background: var(--color-bg-surface); }
.requisites dt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  align-self: center;
}
.requisites dd {
  font-size: var(--text-base);
  color: var(--color-text-primary);
  font-family: var(--font-mono);
  font-weight: 500;
}
.requisites .requisites__text { font-family: var(--font-text); }
@media (max-width: 640px) {
  .requisites { grid-template-columns: 1fr; }
}

/* ─── 33. Utilities — pre-existing extended ──────────────────── */
.u-block { display: block; }
.u-text-muted { color: var(--color-text-muted); }
.u-text-sm { font-size: var(--text-sm); }
.u-text-xs { font-size: var(--text-xs); }
.u-mt-1 { margin-top: var(--space-1); }
.u-mt-2 { margin-top: var(--space-2); }
.u-mt-3 { margin-top: var(--space-3); }
.u-mt-4 { margin-top: var(--space-4); }
.u-mt-5 { margin-top: var(--space-5); }
.u-mt-6 { margin-top: var(--space-6); }
.u-mt-12 { margin-top: var(--space-12); }
.u-mt-16 { margin-top: var(--space-16); }
.u-mb-1 { margin-bottom: var(--space-1); }
.u-mb-2 { margin-bottom: var(--space-2); }
.u-mb-3 { margin-bottom: var(--space-3); }
.u-mb-4 { margin-bottom: var(--space-4); }
.u-mb-5 { margin-bottom: var(--space-5); }
.u-mb-6 { margin-bottom: var(--space-6); }
.u-mb-8 { margin-bottom: var(--space-8); }
.u-mb-12 { margin-bottom: var(--space-12); }

/* ─── 34. Mobile UX fixes ─────────────────────────────────────── */

/* Hero-форма (input + button) в столбец на узких */
@media (max-width: 480px) {
  .hero__form { flex-direction: column; }
  .hero__form .field,
  .hero__form .btn { width: 100%; min-width: 0; }
}

/* Тач-таргет 44px для .btn--sm на мобиле */
@media (max-width: 640px) {
  .btn--sm { min-height: 44px; padding: var(--space-3) var(--space-4); }
}

/* Бургер: явная зона тапа 44×44 */
.burger { min-width: 44px; min-height: 44px; }

/* ─── 35. Волна 1: премиальные эффекты ────────────────────────
       CSS Houdini @property, параметрические SVG-фоны,
       View Transitions API. Всё с gracefull fallback. */

/* CSS Houdini: анимируемые свойства градиентов.
   Без @property градиенты не интерполируются плавно — браузер просто
   переключает background-image. С @property — плавный переход. */
@property --hero-grad-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 120deg;
}
@property --hero-grad-stop {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}
@property --btn-grad-pos {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 100%;
}

/* Hero <em> в заголовке — медленно «дышит» градиентом из индиго в изумруд. */
.hero__title em {
  background: linear-gradient(var(--hero-grad-angle), var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
  .hero__title em { animation: hero-grad-pulse 10s ease-in-out infinite; }
}
@keyframes hero-grad-pulse {
  0%, 100% { --hero-grad-angle: 110deg; }
  50%      { --hero-grad-angle: 230deg; }
}

/* Primary-кнопка — плавная заливка изумрудом при hover (вместо моментального hover-цвета).
   Background-position анимируется через @property, поэтому работает интерполяция. */
.btn--primary {
  background: linear-gradient(135deg, var(--color-accent-hover) 0%, var(--color-accent) var(--btn-grad-pos));
  transition:
    --btn-grad-pos var(--duration-base),
    color var(--duration-fast),
    transform var(--duration-fast),
    box-shadow var(--duration-fast),
    border-color var(--duration-fast);
}
.btn--primary:hover { --btn-grad-pos: 0%; }

/* ─── 36. SVG-паттерны: noise, dots, mesh ──────────────────── */

/* Noise overlay на hero — едва заметная плёнка зернистости.
   Inline data-URL, без лишнего HTTP-запроса. */
.hero {
  position: relative;
  isolation: isolate; /* Чтобы overlay не перекрывал контент */
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.12;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: -1;
}

/* Trust-bar — точечная сетка, едва заметно дрейфующая. */
.trust-bar { position: relative; overflow: hidden; }
.trust-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.10) 1px, transparent 1.5px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.7;
}
@media (prefers-reduced-motion: no-preference) {
  .trust-bar::before { animation: dots-drift 24s linear infinite; }
}
@keyframes dots-drift {
  to { background-position: 28px 28px; }
}

/* CTA-final — анимированный mesh-gradient через @property + два конических наложения.
   Создаёт эффект «дышащего света» без JS. */
@property --cta-mesh-x {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 80%;
}
@property --cta-mesh-y {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 20%;
}
.cta-final::after {
  content: '';
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 60% 60% at var(--cta-mesh-x) var(--cta-mesh-y), rgba(52, 211, 153, 0.18), transparent 50%),
    radial-gradient(ellipse 50% 50% at calc(100% - var(--cta-mesh-x)) calc(100% - var(--cta-mesh-y)), rgba(110, 231, 183, 0.10), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.cta-final > * { position: relative; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .cta-final::after { animation: cta-mesh-drift 14s ease-in-out infinite; }
}
@keyframes cta-mesh-drift {
  0%, 100% { --cta-mesh-x: 80%; --cta-mesh-y: 20%; }
  50%      { --cta-mesh-x: 20%; --cta-mesh-y: 70%; }
}

/* Page-hero на /investors (hero--inverse) — добавляем тот же mesh для энергии. */
.page-hero.hero--inverse {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.page-hero.hero--inverse::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 50% 50% at 75% 30%, rgba(52, 211, 153, 0.22), transparent 60%),
    radial-gradient(ellipse 40% 40% at 25% 75%, rgba(110, 231, 183, 0.14), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
@media (prefers-reduced-motion: no-preference) {
  .page-hero.hero--inverse::before { animation: cta-mesh-drift 18s ease-in-out infinite; }
}

/* ─── 37. View Transitions API ─────────────────────────────────
       Плавные переходы между страницами через cross-document VT
       (Chrome 126+, Edge, Safari 18+). В неподдерживающих —
       graceful: мгновенный переход как раньше. */
@view-transition {
  navigation: auto;
}

/* Базовая длительность для view-transition root (всей страницы). */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 320ms;
  animation-timing-function: var(--ease-out);
}

::view-transition-old(root) { animation-name: vt-fade-out; }
::view-transition-new(root) { animation-name: vt-fade-in; }

@keyframes vt-fade-out {
  to { opacity: 0; transform: translateY(-6px); }
}
@keyframes vt-fade-in {
  from { opacity: 0; transform: translateY(6px); }
}

/* Shared element: лого-знак сохраняется между страницами без анимации,
   просто плавно перемещается из старой позиции в новую. */
.logo__mark { view-transition-name: logo-mark; }
.header { view-transition-name: site-header; }
.footer { view-transition-name: site-footer; }

::view-transition-old(site-header),
::view-transition-new(site-header),
::view-transition-old(site-footer),
::view-transition-new(site-footer) {
  animation: none;
  mix-blend-mode: normal;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation-duration: 1ms; }
}

/* ─── 38. Three.js 3D-сцена в hero (Волна 3) ──────────────────
       Canvas позиционируется на всё .hero__art. SVG-фолбэк скрыт
       по умолчанию, показывается только при отказе 3D-инициализации
       (mobile, reduced-motion, отсутствие THREE, WebGL fail). */

/* ─── Кнопка «Наверх» ────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  right: var(--space-6);
  bottom: var(--space-6);
  z-index: 45;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out),
              background var(--duration-fast);
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.back-to-top:hover { background: var(--color-primary-hover); }
.back-to-top:active { background: var(--color-primary-active); transform: translateY(0) scale(0.95); }
.back-to-top:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
.back-to-top svg { width: 22px; height: 22px; }

@media (max-width: 640px) {
  .back-to-top { right: var(--space-4); bottom: var(--space-4); width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity var(--duration-base); transform: none; }
  .back-to-top.is-visible { transform: none; }
}

/* SVG всегда виден как «подстилка» — это даёт .hero__art интрицескую
   высоту (через viewBox 480×480), которую canvas потом наследует через
   width:100% height:100%. Когда 3D готова, она плавно появляется
   ПОВЕРХ SVG, перекрывая его непрозрачным WebGL-рендером. Если 3D
   не загрузилась — canvas остаётся opacity:0, SVG виден насквозь. */
.hero-svg-fallback {
  display: block;
  width: 100%;
  height: auto;
  max-width: 480px;
  margin-inline: auto;
}

.hero-3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 600ms var(--ease-out);
}
.hero-3d--ready { opacity: 1; }

/* На мобиле и при reduced-motion canvas вообще не рендерится. */
@media (max-width: 767px), (prefers-reduced-motion: reduce) {
  .hero-3d { display: none; }
}

/* ─── 39. Lottie (Волна 2) ──────────────────────────────────────
       lottie-player по умолчанию display: inline-block с width 100%.
       Позиционируем поверх SVG в hero и центрируем как индикатор потока. */

.hero__art { position: relative; }

.lottie-hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2; /* поверх 3D-canvas (z-index: 1) */
  mix-blend-mode: screen;
  opacity: 0.55;
}

.lottie-flow {
  display: block;
  max-width: 560px;
  width: 100%;
  height: auto;
  margin: var(--space-6) auto var(--space-2);
  pointer-events: none;
}

@media (max-width: 600px) {
  .lottie-flow { max-width: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  lottie-player { display: none; }
}

/* ─── 39. Disclosure: группы документов по категориям ──────── */
.disclosure-group { margin-bottom: var(--space-16); }
.disclosure-group:last-child { margin-bottom: 0; }
.disclosure-group__title {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--color-primary-deep);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-primary-soft);
}

