/* ==========================================================================
   Open Design — Дизайн-система
   Извлечено из open-design.ru.html
   Версия: 1.0

   Назначение: единый файл токенов и компонентов для лендингов,
   страниц продуктов и промо-сайтов в стиле Open Design.

   Структура:
     1. Принципы дизайна
     2. Цветовая палитра (12 токенов)
     3. Типографика (шрифт, шкала, линьяж, трекинг)
     4. Отступы и расстояния (scale)
     5. Тени
     6. Обнуление и базовые стили
     7. Контейнер и сетка
     8. Типографические утилиты
     9. Кнопки
    10. Навигация (хедер)
    11. Секция Hero
    12. Секция About (reveal + tabs)
    13. Секция Capabilities (pipeline)
    14. Секция Labs (dock)
    15. Секция Method (falling chips)
    16. Секция Testimonial (globe + contributors)
    17. Секция Work (stats cards)
    18. Секция CTA (dance)
    19. Секция Newsletter
    20. Секция FAQ (accordion)
    21. Подвал (footer)
    22. Адаптивные брейкпоинты
    23. Анимации
    24. Утилиты доступности
   ========================================================================== */

/* ==========================================================================
   1. ПРИНЦИПЫ ДИЗАЙНА
   ==========================================================================

   Минимализм. Крупная типографика. Один акцентный цвет на экран.
   Никаких градиентов без функциональной цели. Реальные данные или
   честные плейсхолдеры — никогда не выдуманные метрики.

   Акцент (--coral) используется ≤ 2 раз на видимый экран.
   Шрифт заголовков всегда var(--font), не system-ui.
   ALL CAPS всегда с letter-spacing ≥ 0.06em.
   Display-текст (≥32px) всегда с отрицательным трекингом.

   ========================================================================== */

/* ==========================================================================
   2. ЦВЕТОВАЯ ПАЛИТРА
   ==========================================================================

   4 слоя:
     Нейтралы   70–90% пикселей  — фон, поверхность, текст, muted, границы
     Акцент     5–10%             — ровно один, не invent второй
     Семантика  0–5%              — success, warn, danger (по необходимости)
     Эффекты    <1%               — градиенты, свечения (редко оправданы)

   Имена — по назначению, не по оттенку.
   ========================================================================== */

:root {
  /* ── Нейтралы ─────────────────────────────────────────────────────── */
  --paper:       #fafafa;   /* основной фон страницы                */
  --paper-warm:  #f5f5f5;   /* тёплый фон для чередования секций    */
  --paper-dark:  #f0f0f0;   /* затемнённый фон, плейсхолдеры        */
  --ink:         #262626;   /* основной цвет текста                 */
  --ink-soft:    #434343;   /* вторичный текст, подзаголовки        */
  --ink-mute:    #595959;   /* приглушённый текст, описания         */
  --ink-faint:   #8c8c8c;   /* самый бледный текст, мета-данные     */
  --bone:        #ffffff;   /* белая поверхность (карточки, меню)   */
  --line:        #d9d9d9;   /* границы по умолчанию                 */
  --line-hover:  #bfbfbf;   /* границы при наведении                */
  --line-soft:   #f0f0f0;   /* мягкие границы (внутри контейнеров)  */
  --line-faint:  #f5f5f5;   /* едва заметные границы                */

  /* ── Акцент ───────────────────────────────────────────────────────── */
  --accent:       #c8a44e;   /* основной акцент (золото)              */
  --accent-soft:  #d4b96a;   /* светлый вариант акцента              */
  --accent-dark:  #a07d2e;   /* тёмный вариант для текста на светлом */
  --accent-tint:  color-mix(in oklab, var(--bone), var(--accent) 8%);

  /* ── Тени ─────────────────────────────────────────────────────────── */
  --shadow:      0 30px 60px -30px rgba(38, 38, 38, .16);
  --shadow-lg:   0 36px 70px -30px rgba(20, 20, 20, .50);

  /* ── Типографика ──────────────────────────────────────────────────── */
  --font-display: "Albert Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body:    "Albert Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono:    "Albert Sans", "PingFang SC", "Microsoft YaHei", sans-serif;

  /* ── Отступы (scale) ──────────────────────────────────────────────── */
  --sp-2:   2px;
  --sp-4:   4px;
  --sp-6:   6px;
  --sp-8:   8px;
  --sp-10:  10px;
  --sp-12:  12px;
  --sp-16:  16px;
  --sp-18:  18px;
  --sp-20:  20px;
  --sp-22:  22px;
  --sp-24:  24px;
  --sp-28:  28px;
  --sp-32:  32px;
  --sp-36:  36px;
  --sp-38:  38px;
  --sp-42:  42px;
  --sp-48:  48px;
  --sp-52:  52px;
  --sp-58:  58px;
  --sp-62:  62px;
  --sp-68:  68px;
}

/* ==========================================================================
   3. ТИПОГРАФИЧЕСКАЯ ШКАЛА
   ==========================================================================

   | Роль          | Размер                    | Вес   | Line-height | Tracking      |
   | ------------- | ------------------------- | ----- | ----------- | ------------- |
   | Display       | clamp(36px, 4.8vw, 68px)  | 800   | 1.0         | -0.028em      |
   | H1 / Title    | clamp(34px, 4vw, 56px)    | 800   | 1.1         | -0.02em       |
   | H2            | clamp(28px, 4vw, 38px)    | 800   | 1.1         | -0.02em       |
   | H3            | 20px                      | 800   | 1.4         | -0.01em       |
   | FAQ question  | 18px                      | 800   | 1.4         | -0.01em       |
   | Body / Lead   | 16px                      | 400   | 1.55–1.6    | 0             |
   | Small         | 14px                      | 500   | 1.55        | +0.01em       |
   | Caption       | 13px                      | 500   | —           | +0.01em       |
   | Label (caps)  | 10–13px                   | 600–700| —          | +0.06–0.1em   |

   Правила:
   - ALL CAPS всегда с letter-spacing ≥ 0.06em
   - Display/H1 всегда с отрицательным трекингом (-0.02em … -0.028em)
   - Body всегда с letter-spacing: 0 (по умолчанию)
   - Не более 3 размеров шрифта над сгибом
   ========================================================================== */

/* ==========================================================================
   4. ОТСТУПЫ (SPACING SCALE)
   ==========================================================================

   | Токен      | px  | Применение                              |
   | ---------- | --- | --------------------------------------- |
   | --sp-2     | 2   | зазоры внутри chip/badge, между иконкой |
   | --sp-4     | 4   | гэп между tab-пилюлями                  |
   | --sp-6     | 6   | padding внутри wire-item                |
   | --sp-8     | 8   | гэп между pipeline-стрелками            |
   | --sp-10    | 10  | гэп между кнопками (hero actions)       |
   | --sp-12    | 12  | гэп между nav-side элементами           |
   | --sp-14    | 14  | гэп hero-actions, cta-actions           |
   | --sp-16    | 16  | гэп cap-step, отступ hero-version       |
   | --sp-18    | 18  | padding about-panel                     |
   | --sp-20    | 20  | padding nav-dropdown, faq-item          |
   | --sp-22    | 22  | гэп work-stats-grid                     |
   | --sp-24    | 24  | margin about-kicker, nav-inner гэп      |
   | --sp-28    | 28  | padding work-stat-card, nav-links гэп   |
   | --sp-32    | 32  | гэп about-sticky, testimonial-cta       |
   | --sp-36    | 36  | —                                       |
   | --sp-38    | 38  | —                                       |
   | --sp-42    | 42  | margin-top hero-actions                 |
   | --sp-48    | 48  | гэп cap-content, hero-shot margin       |
   | --sp-52    | 52  | —                                       |
   | --sp-58    | 58  | —                                       |
   | --sp-62    | 62  | —                                       |
   | --sp-68    | 68  | —                                       |
   ========================================================================== */

/* ==========================================================================
   5. ТЕНИ
   ==========================================================================

   --shadow:    лёгкая тень для карточек, дропдаунов, dock
               0 30px 60px -30px rgba(38,38,38,.16)

   --shadow-lg: тяжёлая тень для hero-shot, поднятых элементов
               0 36px 70px -30px rgba(20,20,20,.5)

   Тени навигации:
     condensed nav outer:  0 4px 20px rgba(0,0,0,.06)
     condensed nav inner:  0 1px 0 rgba(255,255,255,.6) inset
     dropdown:             0 12px 40px rgba(0,0,0,.12)
     locale-menu:          0 12px 36px rgba(0,0,0,.12)

   Тени кнопок:
     btn-primary:          0 14px 26px -16px rgba(38,38,38,.42)
     btn-primary hover:    0 18px 32px -16px rgba(38,38,38,.56)

   Тени карточек:
     work-stat-card:       0 28px 60px -42px rgba(0,0,0,.72)
     falling-chip:         0 6px 18px rgba(21,20,15,.12)
     falling-chip hover:   0 10px 26px rgba(21,20,15,.18)

   Тени изображений:
     hero-shot:            0 30px 80px -40px rgba(38,38,38,.28)
   ========================================================================== */

/* ==========================================================================
   6. ОБНУЛЕНИЕ И БАЗОВЫЕ СТИЛИ
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  overflow-x: clip;
}

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

img, video {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   7. КОНТЕЙНЕР И СЕТКА
   ========================================================================== */

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(20px, 9vw, 238px);
}

/* Применение:
   <div class="container">
     ...содержимое секции...
   </div>

   Контейнер — основная единица горизонтального ритма.
   238px боковых отступов на десктопе, сжимаются до 20px на мобильных.
   ========================================================================== */

/* ==========================================================================
   8. ТИПОГРАФИЧЕСКИЕ УТИЛИТЫ
   ========================================================================== */

/* Display — только для главных заголовков (hero, ключевые цифры) */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 4.8vw, 68px);
  letter-spacing: -0.028em;
  line-height: 1;
}

/* Заголовок секции — h2 по умолчанию */
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 4vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* Кикер / лейбл над заголовком */
.section-kicker {
  font-size: 16px;
  font-weight: 800;
}

/* Вводный текст / лид */
.lead {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 65ch;
}

/* ==========================================================================
   9. КНОПКИ
   ========================================================================== */

/* ── Базовая кнопка ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: 0.02em;
  transition: transform .18s, box-shadow .18s, background .18s;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}

/* ── Primary (залитая, тёмная) ──────────────────────────────────────── */
.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 14px 26px -16px rgba(38, 38, 38, .42);
}
.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 18px 32px -16px rgba(38, 38, 38, .56);
}

/* ── Ghost (обводка, прозрачный фон) ────────────────────────────────── */
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(21, 20, 15, .20);
}
.btn-ghost:hover {
  border-color: var(--ink-faint);
}

/* ── Link (текстовая, без обводки) ──────────────────────────────────── */
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.btn-link:hover {
  color: var(--ink);
}

/* ── Иконка-стрелка внутри кнопки ──────────────────────────────────── */
.arrow {
  width: 16px;
  height: 16px;
  display: inline-flex;
  flex-shrink: 0;
}
.arrow svg {
  width: 100%;
  height: 100%;
}

/* ── Группа кнопок (CTA actions) ────────────────────────────────────── */
.cta-actions {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==========================================================================
   10. НАВИГАЦИЯ (ХЕДЕР)
   ========================================================================== */

/* ── Обёртка хедера (fixed) ─────────────────────────────────────────── */
.site-chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px clamp(20px, 9vw, 238px);
  transition: padding .3s;
}

/* ── Сжатое состояние (добавляется JS при скролле > 64px) ──────────── */
.site-chrome.is-condensed {
  padding: 8px clamp(20px, 9vw, 238px);
}

/* ── Панель навигации ───────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  max-width: 1360px;
  margin: 0 auto;
  padding: 9px 0;
  border-radius: 999px;
  transition: all .3s;
  position: relative;
}

/* ── Стеклянный эффект (в сжатом состоянии) ─────────────────────────── */
.site-chrome.is-condensed .nav {
  background: rgba(255, 255, 255, .42);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .6) inset,
    0 4px 20px rgba(0, 0, 0, .06);
}

/* ── Внутренняя сетка навигации ────────────────────────────────────── */
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;  /* бренд | ссылки | side */
  align-items: center;
  width: 100%;
  gap: 24px;
  padding: 0 20px;
}

/* ── Логотип ────────────────────────────────────────────────────────── */
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-logo {
  height: 40px;
  width: auto;
}

/* ── Ссылки навигации ───────────────────────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.nav-links a,
.nav-links .nav-trigger {
  color: var(--ink-mute);
  transition: color .15s;
  padding: 4px 0;
}

.nav-links a:hover,
.nav-links .nav-trigger:hover,
.nav-links .is-active {
  color: var(--ink);
}

/* ── Выпадающее меню ────────────────────────────────────────────────── */
.has-dropdown {
  position: relative;
}

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dropdown-caret {
  font-size: 10px;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
  padding: 20px;
  min-width: 320px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s, visibility .18s;
  z-index: 50;
}

.has-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown-mega {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  min-width: 480px;
}

.nav-mega-col-head {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 10px;
  padding: 0 8px;
}

.nav-mega-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-mega-list a {
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink-soft);
  transition: background .12s;
}

.nav-mega-list a:hover {
  background: rgba(0, 0, 0, .04);
  color: var(--ink);
}

.nav-mega-list-scroll {
  max-height: min(60vh, 320px);
  overflow-y: auto;
}

/* ── Правая часть навигации ─────────────────────────────────────────── */
.nav-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* ── Переключатель языка ────────────────────────────────────────────── */
.locale-switch {
  position: relative;
}

.locale-summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mute);
  list-style: none;
  user-select: none;
}

.locale-summary::-webkit-details-marker { display: none; }
.locale-summary::marker { display: none; content: ''; }

.locale-switch[open] .locale-summary {
  color: var(--ink);
  background: rgba(0, 0, 0, .04);
}

.locale-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .12);
  padding: 8px;
  min-width: 200px;
  z-index: 60;
  animation: locale-menu-in .15s ease;
}

.locale-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  transition: background .12s;
}

.locale-menu a:hover {
  background: rgba(0, 0, 0, .04);
  color: var(--ink);
}

.locale-flag {
  font-size: 14px;
}

/* ── Гамбургер (мобильные) ──────────────────────────────────────────── */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bone);
  border: 1px solid var(--line);
}

.nav-toggle-icon {
  width: 18px;
  height: 14px;
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform .2s;
}

.nav-toggle-icon::before { top: 0; }
.nav-toggle-icon::after  { bottom: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ==========================================================================
   11. СЕКЦИЯ HERO
   ========================================================================== */

.hero {
  position: relative;
  padding-top: clamp(120px, 16vw, 200px);
  padding-bottom: 40px;
  overflow: hidden;
}

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

/* Градиентный фон героя */
.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 2880px;
  height: 100%;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(99, 254, 19, .12) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(0, 0, 0, .03) 0%, transparent 70%);
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy {
  text-align: center;
  padding: clamp(40px, 8vw, 80px) 0 clamp(20px, 3vw, 40px);
  width: min(820px, 100%);
}

.hero-lead {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: clamp(16px, 3.2vw, 28px);
}

/* Рамка заголовка с акцентным бордером и уголками */
.hero-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(16px, 3.2vw, 28px) clamp(18px, 5vw, 48px);
  border: 1px solid var(--accent);
  position: relative;
  margin-bottom: 24px;
}

/* Декоративные уголки 9×9px */
.hero-title::before,
.hero-title::after {
  content: '';
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--accent);
}
.hero-title::before { top: -5px;  left: -5px; }
.hero-title::after  { bottom: -5px; right: -5px; }

.hero-title-brand {
  font-family: inherit;
  font-size: clamp(30px, 6vw, 54px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-title-main {
  font-family: var(--font-display);
  font-size: clamp(22px, 4.8vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
}

.hero-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(24px, 5vw, 42px);
  flex-wrap: wrap;
  justify-content: center;
}

.hero-version {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  margin-top: 16px;
  text-align: center;
}

.hero-sub {
  font-size: 16px;
  color: var(--ink-mute);
  text-align: center;
  max-width: 760px;
  margin: 40px auto 0;
  line-height: 1.6;
}

.hero-shot {
  width: min(1080px, 92vw);
  margin-top: 48px;
  position: relative;
  z-index: 1;
}

.hero-shot-placeholder {
  aspect-ratio: 1280 / 720;
  background: var(--paper-dark);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -40px rgba(38, 38, 38, .28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 14px;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   12. СЕКЦИЯ ABOUT (REVEAL + TABS)
   ========================================================================== */

.about {
  padding-top: 120px;
  padding-bottom: 120px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 80px;
}

.about-kicker {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 24px;
}

/* ── Scroll Reveal ──────────────────────────────────────────────────── */
.about-reveal {
  position: relative;
}

.about-reveal-text {
  font-size: clamp(20px, 2.8vw, 26px);
  font-weight: 800;
  line-height: 1.4;
  max-width: 900px;
}

.reveal-word {
  transition: opacity .3s;
  opacity: 0.18;
}

/* ── Sticky Scroll + Tabs ───────────────────────────────────────────── */
.about-scrolly {
  position: relative;
  height: 192vh;
}

.about-sticky {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.about-tablist {
  display: flex;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}

.about-tab-radio {
  display: none;
}

.about-tab {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-faint);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}

.about-tab-radio:checked + .about-tab {
  background: rgba(26, 26, 26, .06);
  color: var(--ink);
}

.about-panels {
  position: relative;
  width: min(800px, 88vw);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
  background: var(--paper-dark);
  border: 1px solid var(--line);
}

.about-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .5s cubic-bezier(.23, 1, .32, 1);
  transform: translateY(100%);
  padding: 40px;
  text-align: center;
  font-size: 16px;
  color: var(--ink-mute);
  max-width: 60ch;
  line-height: 1.5;
}

/* ==========================================================================
   13. СЕКЦИЯ CAPABILITIES (PIPELINE)
   ========================================================================== */

.capabilities {
  padding-top: 120px;
  padding-bottom: 120px;
}

.capabilities-head {
  text-align: center;
  margin-bottom: 60px;
}

.capabilities-head .section-title {
  margin-bottom: 16px;
}

.cap-pipeline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(11px, min(3vw, 15px), 15px);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  justify-content: center;
  white-space: nowrap;
  overflow-x: auto;
  padding: 0 16px;
}

.cap-pipeline span {
  color: var(--accent);
}

.cap-scrolly {
  position: relative;
  height: calc(4 * 68vh);
}

.cap-sticky {
  position: sticky;
  top: 96px;
  min-height: calc(100vh - 150px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cap-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  width: 100%;
  max-width: 1200px;
  align-items: center;
}

.cap-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cap-step {
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0.38;
  transition: all .25s;
  align-items: center;
}

.cap-step.is-active {
  opacity: 1;
  background: var(--ink);
  color: #ffffff;
}

.cap-step-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
  min-width: 24px;
}

.cap-step.is-active .cap-step-num {
  opacity: 1;
}

.cap-step-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cap-step-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cap-step-desc {
  font-size: 13px;
  opacity: 0.7;
  letter-spacing: 0.01em;
}

.cap-visual {
  aspect-ratio: 1500 / 928;
  background: var(--paper-dark);
  border-radius: 16px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cap-frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .5s cubic-bezier(.23, 1, .32, 1);
  transform: translateY(100%);
  padding: 24px;
  text-align: center;
}

.cap-frame.is-active {
  transform: translateY(0);
}

.frame-label {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ==========================================================================
   14. СЕКЦИЯ LABS (DOCK)
   ========================================================================== */

.labs {
  padding-top: 120px;
  padding-bottom: 120px;
}

.labs-head {
  text-align: center;
  margin-bottom: 60px;
}

.lab-stage {
  aspect-ratio: 2262 / 1358;
  background: var(--paper-dark);
  border-radius: 20px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 48px;
}

.lab-stage-label {
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}

.lab-dock-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.lab-dock {
  display: flex;
  gap: clamp(2px, 1vw, 4px);
  border-radius: 17px;
  background: var(--bone);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 4px;
}

.lab-dock-item {
  width: clamp(34px, 9.5vw, 52px);
  height: clamp(34px, 9.5vw, 52px);
  border-radius: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform .14s;
  transform-origin: bottom center;
  cursor: pointer;
  position: relative;
  background: var(--paper-warm);
  font-size: clamp(18px, 5vw, 24px);
}

.lab-dock-item.active {
  transform: translateY(clamp(-20px, -4vw, -14px));
  background: linear-gradient(180deg, var(--ink-soft) 0%, var(--ink) 100%);
  color: #ffffff;
}

.lab-dock-label {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translate(-50%) translateY(6px);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
  opacity: 0;
  transition: all .15s;
  pointer-events: none;
}

.lab-dock-item:hover .lab-dock-label,
.lab-dock-item.active .lab-dock-label {
  opacity: 1;
}

.lab-cta {
  text-align: center;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   15. СЕКЦИЯ METHOD (FALLING CHIPS)
   ========================================================================== */

.method {
  padding-top: 120px;
  padding-bottom: 120px;
}

.method-head {
  text-align: center;
  margin-bottom: 80px;
}

.falling-text {
  height: clamp(360px, 38vw, 460px);
  position: relative;
  overflow: hidden;
  cursor: grab;
  border-radius: 20px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  user-select: none;
  touch-action: none;
}

.falling-chip {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 15px;
  background: var(--bone);
  box-shadow: 0 6px 18px rgba(21, 20, 15, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  transition: box-shadow .15s;
}

.falling-chip:hover {
  box-shadow: 0 10px 26px rgba(21, 20, 15, .18);
}

.falling-text-reveal {
  position: absolute;
  top: 32%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(86%, 760px);
  padding: 24px;
  text-align: center;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
  z-index: 2;
}

.falling-text-reveal.is-visible {
  opacity: 1;
}

/* ==========================================================================
   16. СЕКЦИЯ TESTIMONIAL (GLOBE + CONTRIBUTORS)
   ========================================================================== */

.testimonial {
  padding-top: 120px;
  padding-bottom: 120px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.testimonial-globe {
  min-height: clamp(340px, 42vw, 540px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.globe-canvas {
  width: min(82%, 500px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--paper-warm);
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.testimonial-copy {
  max-width: 520px;
}

.testimonial-wire {
  margin-top: 32px;
}

.wire-track {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wire-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.01em;
  color: var(--ink-mute);
  transition: all .15s;
}

.wire-item:hover {
  background: var(--paper-dark);
  color: var(--ink);
}

.wire-dot {
  color: var(--accent);
  font-weight: 700;
}

.wire-handle {
  font-weight: 500;
}

.testimonial-cta {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================================
   17. СЕКЦИЯ WORK (STATS CARDS)
   ========================================================================== */

.work {
  padding-top: 120px;
  padding-bottom: 120px;
}

.work-inner {
  background: var(--ink);
  color: var(--paper);
  border-radius: 28px;
  padding: clamp(32px, 6vw, 60px);
}

.work-stats-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  text-align: center;
}

.work-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 32px;
}

.work-stat-card {
  background: var(--bone);
  border-radius: 18px;
  padding: 28px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 28px 60px -42px rgba(0, 0, 0, .72);
  transition: transform .26s, box-shadow .26s;
  overflow: hidden;
  color: var(--ink);
}

/* Лёгкий наклон карточек (разный угол у каждой) */
.work-stat-card:nth-child(1) { transform: rotate(-1deg); }
.work-stat-card:nth-child(2) { transform: rotate(0.5deg); }
.work-stat-card:nth-child(3) { transform: rotate(1.2deg); }
.work-stat-card:nth-child(4) { transform: rotate(-0.8deg); }
.work-stat-card:nth-child(5) { transform: rotate(0.3deg); }
.work-stat-card:nth-child(6) { transform: rotate(1.5deg); }

.work-stat-card:hover {
  transform: rotate(0deg) translateY(-4px) !important;
  box-shadow: 0 32px 68px -42px rgba(0, 0, 0, .8);
}

.work-stat-value {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.work-stat-label {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
}

.work-card-arrow {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .18s;
}

.work-stat-card:hover .work-card-arrow {
  background: var(--accent);
  color: #ffffff;
}

.work-stat-card-cta {
  background: var(--accent) !important;
  color: var(--ink) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
}

/* ==========================================================================
   18. СЕКЦИЯ CTA (DANCE)
   ========================================================================== */

.cta {
  padding-top: 120px;
  padding-bottom: 80px;
}

.cta-dance {
  max-width: 1080px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  position: relative;
}

.cta-window {
  width: 82.4%;
  aspect-ratio: 2.47;
  margin: 0 auto;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  background: var(--paper-dark);
  border: 1px solid var(--line);
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.cta-dance-inner {
  padding: clamp(32px, 6vw, 60px);
  text-align: center;
  position: relative;
  z-index: 2;
}

.lead-sub {
  font-size: 14px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.cta-actions {
  margin-top: 32px;
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==========================================================================
   19. СЕКЦИЯ NEWSLETTER
   ========================================================================== */

.newsletter {
  padding-top: 80px;
  padding-bottom: 120px;
}

.newsletter-grid {
  display: grid;
  grid-template-columns: minmax(280px, .86fr) minmax(0, 1.34fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
}

.newsletter-title {
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.newsletter-desc {
  font-size: 16px;
  color: var(--ink-mute);
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 12px;
}

.newsletter-input {
  flex: 1;
  padding: 18px 22px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  background: var(--bone);
  color: var(--ink);
  outline: none;
  transition: border-color .15s;
}

.newsletter-input:focus {
  border-color: var(--accent);
}

.newsletter-submit {
  padding: 18px 28px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
}

.newsletter-submit:hover {
  background: var(--ink-soft);
}

/* ==========================================================================
   20. СЕКЦИЯ FAQ (АККОРДЕОН)
   ========================================================================== */

.faq {
  padding-top: 80px;
  padding-bottom: 120px;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(280px, .86fr) minmax(0, 1.34fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
}

.faq-head {
  position: sticky;
  top: 120px;
  max-width: 520px;
}

.faq-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item details {
  padding: 20px 0;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-q {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.faq-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .25s;
  font-size: 16px;
  color: var(--ink-mute);
}

details[open] .faq-toggle {
  transform: rotate(45deg);
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.faq-a {
  padding-top: 16px;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--ink-mute);
  max-width: 64ch;
  line-height: 1.6;
}

/* ==========================================================================
   21. ПОДВАЛ (FOOTER)
   ========================================================================== */

.footer {
  padding-top: 120px;
}

.sub-footer-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 28px;
}

.sub-footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sub-footer-col h5 {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.sub-footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sub-footer-col a {
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--ink-mute);
  transition: color .15s;
}

.sub-footer-col a:hover {
  color: var(--ink);
}

.foot-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 24px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  flex-wrap: wrap;
  gap: 12px;
}

.foot-bar a {
  color: var(--ink-faint);
  transition: color .15s;
}

.foot-bar a:hover {
  color: var(--ink);
}

.foot-bar-links {
  display: flex;
  gap: 16px;
}

.foot-social {
  display: flex;
  gap: 8px;
  align-items: center;
}

.foot-social a {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  color: var(--ink-faint);
}

.foot-social a:hover {
  background: var(--paper-dark);
  color: var(--ink);
}

.foot-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.foot-masthead {
  margin-top: 56px;
  padding-bottom: 48px;
}

.foot-masthead-wordmark {
  font-weight: 800;
  font-size: clamp(26px, 10.4vw, 158px);
  letter-spacing: -0.045em;
  text-align: center;
  line-height: 1;
}

.foot-masthead-accent {
  color: var(--accent);
}

.foot-masthead-period {
  color: var(--ink);
}

/* ==========================================================================
   22. АДАПТИВНЫЕ БРЕЙКПОИНТЫ
   ==========================================================================

   | Брейкпоинт | Назначение                                     |
   | ---------- | ---------------------------------------------- |
   | 1024px     | схлопывание сеток, контейнеров, гридов          |
   | 880px      | навигация → гамбургер, sticky → static          |
   | 768px      | кнопки → 100% ширины, сетки → 1 колонка         |
   | 640px      | подвал → 1 колонка, формы → вертикально          |
   | 420px      | мелкие мобильные правки                         |
   ========================================================================== */

@media (max-width: 1024px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .work-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sub-footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .newsletter-grid,
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .faq-head {
    position: static;
  }
}

@media (max-width: 880px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-inner {
    grid-template-columns: 1fr auto auto;
  }

  .nav-side {
    gap: 8px;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  /* Sticky sections → static на мобильных */
  .about-scrolly {
    height: auto;
  }

  .about-sticky {
    position: static;
  }

  .cap-scrolly {
    height: auto;
  }

  .cap-sticky {
    position: static;
    min-height: auto;
  }

  .cap-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .hero-copy {
    padding-top: 40px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .work-stats-grid {
    grid-template-columns: 1fr;
  }

  .work-stat-card {
    min-height: 150px;
  }

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

  .cap-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .sub-footer-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }
}

/* ==========================================================================
   23. АНИМАЦИИ
   ========================================================================== */

/* Появление locale-меню */
@keyframes locale-menu-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

/* Навигация: появляется только при открытии */
@keyframes nav-fade-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* ==========================================================================
   24. УТИЛИТЫ ДОСТУПНОСТИ
   ========================================================================== */

/* Уважаем системные настройки reduced 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;
  }
}

/* Скрыть визуально, но оставить для скринридеров */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Плейсхолдер для изображений */
.ph-img {
  background: var(--paper-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: var(--font-body);
}
