

/* Шрифты Onest и Unbounded подключаются локально: assets/fonts.css (см. <head>) */

:root {
  /* Гарнитуры: ровно две */
  --font-display: 'Unbounded', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Onest', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Палитра: Тёмная премиальная тема с темно-красным ключом */
  --bg-deep: #070b0a;
  --bg-deep-rgb: 7, 11, 10;
  --bg-surface: #0b1311;
  --bg-card: rgba(13, 20, 18, 0.72);
  --bg-card-hover: rgba(18, 28, 25, 0.9);
  --bg-glass: rgba(12, 18, 16, 0.65);

  /* Фирменный акцент — изумрудный. Цвет меняется только здесь: кнопки, свечения,
     3D-робот (robot3d.js), фоновая схема (hero-bg.js) и подсветка за курсором (index.js)
     берут его из этих переменных */
  --accent: #10b981;
  --accent-rgb: 16, 185, 129;
  --accent-hover: #34d399;
  --accent-soft: #34d399;   /* мелкий текст и значки акцентом на тёмном (10:1) */
  --accent-pale: #6ee7b7;   /* блик в градиенте заголовка */
  --accent-deep: #059669;
  --accent-dark: #065f46;
  --accent-dark-rgb: 6, 95, 70;
  --accent-ink: #03140d;    /* текст и значки на кнопках цвета акцента (7,5:1) */
  --accent-glow: rgba(var(--accent-rgb), 0.32);
  --accent-glow-soft: rgba(var(--accent-rgb), 0.12);
  /* фон hero: тёмный оттенок акцента в центре */
  --hero-tint-1: #04211a;
  --hero-tint-2: #061310;

  /* Смысловые цвета: «ждёт / внимание», «новое / справка», «ошибка» */
  --warn: #f5b544;
  --warn-rgb: 245, 181, 68;
  --info: #60a5fa;
  --info-rgb: 96, 165, 250;
  --danger: #f87171;

  --text-pure: #ffffff;
  --text-primary: #eef5f2;
  --text-muted: #a8b8b1;    /* описания: 9,6:1 */
  --text-subtle: #7e8f88;   /* мелкие подписи: от 5:1 */

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.14);
  --border-accent: rgba(var(--accent-rgb), 0.45);

  /* Типографические метрики */
  --text-body-size: 15px; /* Базовый текст */
  /* Контраст от x10.8: 15px * 11.2 = 168px */
  /* Unbounded очень широкий: «АВТОМАТИЗАЦИЯ» ≈ 9.3em — размер подобран под колонку 44vw */
  /* строки заголовка — до 11 знаков ≈ 10.8em; колонка 46vw → 4.2vw */
  --hero-title-size: clamp(30px, 3.7vw, 76px);
  /* Капс футера «MV / AUTOMATION» (Unbounded 900 italic, бренд не переводится) ≈ 11.8em
     + наклон: кегль = (ширина полосы − 2 поля) / 12.2 — строка всегда влезает в одну линию */
  --giant-caps-pad: clamp(20px, 3.5vw, 60px);
  --giant-caps-size: calc((100vw - 2 * var(--giant-caps-pad)) / 12.2);

  /* Отступы и сетка */
  --container-max: 1540px;
  --section-pad-v: clamp(80px, 7vw, 160px);
  --section-pad-compact: clamp(56px, 5.6vw, 120px); /* блоки новой главной — плотнее */
  --grid-gap: 16px;
  /* Поля по краям — одни для шапки, первого экрана и разделов. --edge — край содержимого
     с учётом max-width контейнера (проценты считаются от ширины блока) */
  --gutter: clamp(20px, 3.5vw, 60px);
  --edge: max(var(--gutter), calc((100% - var(--container-max)) / 2 + var(--gutter)));
  /* Скругления: кнопки и номера / карточки и вкладки / большие панели */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --grid-gap-top: 30px;

  /* Анимации и кривая */
  --ease-refive: cubic-bezier(0.215, 0.61, 0.355, 1);
  --d-fast: 0.3s;
  --d-norm: 0.5s;
  --d-slow: 0.6s;
}

/* ==========================================================================
   RESET & БАЗОВЫЕ НАСТРОЙКИ
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 84px; /* якоря не прячутся под фиксированной шапкой */
  scrollbar-gutter: stable; /* открытие анкеты не сдвигает страницу на ПК с полосой прокрутки */
  background-color: var(--bg-deep);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body-size);
  line-height: 1.6;
  letter-spacing: -0.01em; /* Трекинг -1% на основном тексте */
  background-color: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
}

::selection {
  background-color: rgba(var(--accent-rgb), 0.45);
  color: #ffffff;
}

/* Капс: На капсе минус не ставить! */
h1, h2, h3, h4, h5, h6, .hero-kicker, .sec-tag, .footer-giant-caps, .nav-item, .brand-link,
.btn-primary-ghost, .hero-btn-accent {
  text-transform: uppercase;
  letter-spacing: normal; /* строго без минуса */
}

/* Плёночный шум поверх всего экрана (200x200 тайл, 6% непрозрачность) */
.grain-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  background-image: url('assets/grain.webp');
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.06;
}

/* Контейнер 1440-1600px */
.site-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 3.5vw, 60px);
  padding-right: clamp(20px, 3.5vw, 60px);
}

/* ==========================================================================
   LIQUID-GLASS (Стеклянные плашки из Email Landing Page)
   ========================================================================== */
.liquid-glass {
  background: rgba(255, 255, 255, 0.02);
  background-blend-mode: luminosity;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12), 0 20px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.liquid-glass::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.12) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.12) 80%,
    rgba(255, 255, 255, 0.45) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Живой перелив градиента */
@keyframes shiny {
  0% { background-position: 0% center; }
  100% { background-position: -200% center; }
}

/* ==========================================================================
   ШАПКА (Фиксированная, контент по краям)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px clamp(20px, 3.5vw, 60px);
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(6, 6, 8, 0.85) 0%, rgba(6, 6, 8, 0) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left,
.header-nav,
.header-right {
  pointer-events: auto;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-pure);
  transition: opacity var(--d-fast) var(--ease-refive);
}

.brand-link:hover {
  opacity: 0.85;
}

.brand-mv {
  color: var(--text-pure);
  background: linear-gradient(135deg, #fff 40%, #a0a0a8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sep {
  color: var(--accent);
  font-weight: 800;
}

.brand-desc {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(14, 14, 18, 0.55);
  border: 1px solid var(--border-subtle);
  padding: 8px 18px;
  border-radius: 40px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: color var(--d-fast) var(--ease-refive);
}

.nav-item:hover {
  color: var(--text-pure);
}

.nav-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 11px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.btn-primary-ghost {
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid var(--border-accent);
  color: var(--text-pure);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 6px;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--d-fast) var(--ease-refive),
              border-color var(--d-fast) var(--ease-refive),
              box-shadow var(--d-fast) var(--ease-refive);
}

.btn-primary-ghost:hover {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
  color: var(--accent-ink);
}

/* ==========================================================================
   01. HERO SECTION (Refive + Firensmoke: Кадр на весь экран, 3D MV в центре)
   Правило: Объект в центре кадра — заголовок уходит в колонку сбоку,
   шириной до 0.45 экрана. Наезд букв на объект читается как грязь!
   ========================================================================== */
.section-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Мокрая фактура темного камня на весь экран */
.hero-bg-frame {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-chain-canvas {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: radial-gradient(ellipse at 70% 40%, var(--hero-tint-1) 0%, var(--hero-tint-2) 45%, var(--bg-deep) 100%);
}

.hero-radial-keylight {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(circle at 75% 35%, rgba(var(--accent-rgb), 0.35) 0%, rgba(var(--accent-dark-rgb), 0.15) 45%, rgba(6, 6, 8, 0.9) 85%);
  mix-blend-mode: screen;
}

/* ========== РОБОТ MV: Голова следит за курсором ========== */
.hero-robot-stage {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
}

/* Персонаж: холст 896×1200, стоит на нижней кромке, прижат вправо */
.robot-character {
  position: absolute;
  bottom: -2vh;
  right: clamp(0px, 4vw, 80px);
  height: min(96vh, 1150px);
  aspect-ratio: 896 / 1200;
  perspective: 1400px;
  /* Робот «уходит в воду» — мягко растворяем низ */
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 97%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 97%);
  filter: drop-shadow(0 0 40px rgba(var(--accent-rgb), 0.18));
}

/* 3D-версия: холст на правую половину hero, во всю высоту */
.robot-character.robot-3d {
  bottom: 0;
  right: 0;
  width: 60vw;
  height: 100%;
  aspect-ratio: auto;
  perspective: none;
  filter: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 80%, transparent 99%);
}

.robot-3d-canvas {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.9s var(--ease-refive, ease);
}

.robot-3d.is-ready .robot-3d-canvas { opacity: 1; }

.robot-fallback {
  display: none;
  position: absolute;
  bottom: 0;
  right: 6vw;
  height: min(86vh, 1100px);
  width: auto;
  max-width: none;
}

.robot-3d.is-fallback .robot-fallback { display: block; }
.robot-3d.is-fallback .robot-3d-canvas { display: none; }

/* Красное свечение за роботом */
.hero-robot-glow {
  position: absolute;
  width: 46vw;
  height: 70vh;
  top: 8vh;
  right: 4vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.3) 0%, rgba(var(--accent-rgb), 0.06) 55%, transparent 75%);
  filter: blur(80px);
  pointer-events: none;
  animation: robotGlowPulse 4s ease-in-out infinite alternate;
}

@keyframes robotGlowPulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  100% { transform: scale(1.08); opacity: 1; }
}

/* ЗАГОЛОВОК ПОВЕРХ ФОТО: Левая нижняя колонка (Ширина <= 0.45 экрана) */
.hero-bottom-left {
  position: absolute;
  bottom: clamp(30px, 5vw, 60px);
  left: clamp(20px, 4vw, 60px);
  width: min(46vw, 900px); /* Строго до 0.45 экрана, не налезает на 3D объект */
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.kicker-sep {
  color: rgba(255, 255, 255, 0.3);
}

.kicker-sub {
  color: var(--text-muted);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--hero-title-size);
  font-weight: 800;
  font-style: italic; /* Широкий тяжелый наклонный капс как на firensmoke.ru */
  line-height: 0.95;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--text-pure);
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
}

.title-line {
  display: block;
  white-space: normal; /* длинная строка на другом языке переносится, а не вылезает */
  /* запас справа под наклон курсива, иначе background-clip срезает хвост буквы */
  padding-right: 0.12em;
}

.title-accent {
  color: var(--accent);
  /* Бесшовный градиент: начало и конец одного цвета, сдвиг ровно на один период (200%) —
     иначе на стыке повторов появляется резкая вертикальная граница по буквам */
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 20%, var(--accent-pale) 30%, var(--accent-hover) 40%, var(--accent) 60%, var(--accent-deep) 80%, var(--accent) 100%);
  background-size: 200% 100%;
  background-repeat: repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* text-shadow просвечивает сквозь прозрачную заливку — тень даём фильтром */
  text-shadow: none;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.85));
  animation: shiny 8s linear infinite;
}

.hero-desc {
  font-size: var(--text-body-size);
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.hero-btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  padding: 14px 26px;
  border-radius: 6px;
  border: 1px solid var(--accent);
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: transform var(--d-fast) var(--ease-refive),
              box-shadow var(--d-fast) var(--ease-refive),
              background var(--d-fast) var(--ease-refive);
}

.hero-btn-accent:hover {
  transform: translateY(-2px);
  background: var(--accent-hover);
  box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.5);
}

.btn-arrow {
  font-size: 14px;
  transition: transform var(--d-fast) var(--ease-refive);
}

.hero-btn-accent:hover .btn-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   03. СЕТКА КАРТОЧЕК (Связки): gap 16px, верхняя четверть 30px, Подъём карточки
   ========================================================================== */

.section-tag-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.sec-tag {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.sec-sep {
  color: rgba(255, 255, 255, 0.3);
}

.sec-sub {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* Правая колонка конфигуратора: Итог */

.btn-primary-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  padding: 16px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 24px var(--accent-glow);
  width: 100%;
  transition: transform var(--d-fast) var(--ease-refive),
              background var(--d-fast) var(--ease-refive),
              box-shadow var(--d-fast) var(--ease-refive);
}

.btn-primary-large:hover {
  transform: translateY(-2px);
  background: var(--accent-hover);
  box-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.5);
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   06. КАПС ВО ВСЮ ШИРИНУ / ФУТЕР
   Числа: контраст крупного к основному тексту от x10.8 (15px -> 154px = 10.2x+)
   ========================================================================== */
.site-footer {
  background-color: var(--bg-deep);
  border-top: 1px solid var(--border-subtle);
  padding-top: clamp(60px, 6vw, 100px);
  position: relative;
  overflow: hidden;
}

/* Монументальный капс во всю ширину */
.footer-giant-caps-wrap {
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 30px;
  margin-bottom: clamp(40px, 5vw, 80px);
  container-type: inline-size; /* 100cqi = реальная ширина полосы (без полосы прокрутки) */
}

.footer-giant-caps {
  font-family: var(--font-display);
  font-size: var(--giant-caps-size);
  font-size: calc((100cqi - 2 * clamp(20px, 3.5vw, 60px)) / 11.8);
  font-weight: 900;
  font-style: italic;
  line-height: 0.85;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.08);
  letter-spacing: -0.02em;
  padding: 0 var(--giant-caps-pad);
  user-select: none;
  transition: color 0.4s var(--ease-refive);
}

.footer-giant-caps:hover {
  color: rgba(255, 255, 255, 0.16);
}

.footer-content-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(30px, 4vw, 80px);
  padding-bottom: clamp(40px, 5vw, 80px);
}

.footer-brand-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-pure);
  margin-bottom: 12px;
}

.footer-brand-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 440px;
  margin-bottom: 20px;
}

.footer-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}

.footer-col-head {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  margin-bottom: 18px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list a {
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  transition: color var(--d-fast) var(--ease-refive);
}

.footer-links-list a:hover {
  color: var(--text-pure);
}

.footer-contacts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-pill-link,
.contact-pill-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--d-fast) var(--ease-refive);
}

.contact-pill-link:hover {
  color: var(--text-pure);
}

.contact-type {
  color: var(--text-subtle);
  font-size: 10px;
}

.contact-sep {
  color: var(--accent);
}

.footer-bottom-bar {
  border-top: 1px solid var(--border-subtle);
  padding: 24px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-subtle);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   07. ВСПЛЫВАЮЩАЯ ШТОРКА ЗАЯВКИ (Slide-over Drawer)
   Длительности 0.3s / 0.5s / 0.6s, кривая cubic-bezier(0.215, 0.61, 0.355, 1)
   ========================================================================== */
.drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9500;
  display: flex;
  justify-content: flex-end;
  visibility: hidden;
  pointer-events: none;
  transition: visibility var(--d-norm) var(--ease-refive);
}

.drawer-panel.open {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s; /* видима сразу — фокус успевает перейти внутрь */
}

.drawer-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(6, 6, 8, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity var(--d-norm) var(--ease-refive);
}

.drawer-panel.open .drawer-backdrop {
  opacity: 1;
}

.drawer-container {
  --drawer-pad: clamp(24px, 4vw, 48px);
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 100%;
  background: rgba(10, 10, 14, 0.94);
  border-left: 1px solid var(--border-subtle);
  padding: var(--drawer-pad) var(--drawer-pad) 0;
  display: flex;
  flex-direction: column;
  /* листается только тело анкеты: шапка с «закрыть» всегда на виду,
     а стеклянная рамка (.liquid-glass::before) не уезжает вместе с текстом */
  overflow: hidden;
  transform: translateX(100%);
  transition: transform var(--d-norm) var(--ease-refive);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.8);
}

.drawer-panel.open .drawer-container {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  margin-bottom: 20px;
}

.drawer-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0 calc(-1 * var(--drawer-pad));
  padding: 8px var(--drawer-pad) var(--drawer-pad);
}

.drawer-tag-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-tag {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}

.drawer-sep {
  color: rgba(255, 255, 255, 0.3);
}

.drawer-sub {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-pure);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background var(--d-fast) var(--ease-refive);
}

.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.drawer-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  font-style: italic;
  color: var(--text-pure);
  margin-bottom: 10px;
}

.drawer-lead {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 28px;
}

.drawer-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-input,
.form-textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-pure);
  outline: none;
  transition: border-color var(--d-fast) var(--ease-refive), background var(--d-fast) var(--ease-refive);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
}

.form-status-msg {
  font-size: 13px;
  padding: 12px 16px;
  border-radius: 8px;
  display: none;
}

.form-status-msg.success {
  display: block;
  background: rgba(var(--accent-rgb), 0.15);
  border: 1px solid var(--accent);
  color: var(--accent-soft);
}

.drawer-footer-note {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
}

/* ==========================================================================
   АДАПТИВНОСТЬ ДЛЯ ПЛАНШЕТОВ И МОБИЛЬНЫХ УСТРОЙСТВ
   ========================================================================== */
/* Шапка: бренд + навигация + статус + кнопка в одну строку помещаются от ~1320px.
   Уже — сначала убираем статус-плашку, затем поджимаем навигацию */

@media (max-width: 1080px) {
  .header-nav {
    gap: 8px;
    padding: 8px 14px;
  }

  .nav-item {
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .btn-primary-ghost {
    font-size: 10px;
    padding: 9px 14px;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 16px 20px;
  }

  .header-nav {
    display: none;
  }

  /* Телефон и планшет: сначала заголовок и кнопка, под ними макет программы,
     из-за которого выглядывает робот (статичный кадр, без three.js). Hero — по содержимому */
  .section-hero {
    height: auto;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 84px 0 36px;
  }

  .hero-bottom-left {
    position: relative;
    bottom: auto;
    left: auto;
    width: auto;
    margin: 0 20px;
  }

  :root {
    /* строки заголовка — до 11 знаков ≈ 10.8em в Unbounded 800 italic, колонка 100vw − 40px */
    --hero-title-size: clamp(24px, calc((100vw - 40px) / 10.8), 56px);
  }

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

  .footer-bottom-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  /* Телефон: в шапке монограмма MV и кнопка — «АВТОМАТИЗАЦИЯ» и так крупно в hero */
  .brand-sep,
  .brand-desc {
    display: none;
  }

  .brand-mv {
    font-size: 16px;
  }
}

/* ==========================================================================
   05b. ВОПРОСЫ И ОТВЕТЫ
   ========================================================================== */

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap);
  align-items: start;
}

.faq-item { border-radius: 16px; }

.faq-question {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-pure);
}
.faq-question::-webkit-details-marker { display: none; }

.faq-icon {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-accent);
  position: relative;
  transition: transform var(--d-fast) var(--ease-refive), background var(--d-fast) var(--ease-refive);
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute; left: 50%; top: 50%;
  width: 10px; height: 1.5px;
  background: var(--text-pure);
  transform: translate(-50%, -50%);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: var(--accent-ink); }
.faq-item:hover { border-color: rgba(255, 255, 255, 0.16); }

.faq-answer {
  padding: 0 24px 22px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .faq-list { grid-template-columns: 1fr; }
  .faq-question { padding: 18px 18px; font-size: 13px; }
  .faq-answer { padding: 0 18px 18px; }
}

/* ==========================================================================
   ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКА RU / TM (шапка)
   ========================================================================== */
.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 6px 11px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  transition: color var(--d-fast) var(--ease-refive), background var(--d-fast) var(--ease-refive);
}

.lang-btn:hover { color: var(--text-pure); }
.lang-btn.is-active { background: var(--text-primary); color: var(--bg-deep); box-shadow: none; }
.lang-btn:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 2px; }

/* ==========================================================================
   HERO: ИИ-АКЦЕНТ (три тезиса под заголовком)
   ========================================================================== */

@media (max-width: 900px) {
  .lang-btn { padding: 5px 9px; font-size: 10px; }

}

/* ==========================================================================
   ПЕРЕХОД ПРИ СМЕНЕ ЯЗЫКА: текст размывается (is-lang-out), под блюром меняется
   и проявляется обратно (is-lang-in). Keyframes, а не transition — чтобы не
   перебивать родные transition кнопок и шторки. Холсты (робот, фон) не трогаем.
   ========================================================================== */
@keyframes langBlurOut { to { filter: blur(8px); opacity: 0.35; } }
@keyframes langBlurIn { from { filter: blur(8px); opacity: 0.35; } to { filter: blur(0); opacity: 1; } }

.is-lang-out :is(.hero-bottom-left, #mainContent > section:not(#hero), .site-footer,
  .header-nav, .brand-desc, #openDrawerBtn, .drawer-body) {
  animation: langBlurOut 0.22s var(--ease-refive) forwards;
}

.is-lang-in :is(.hero-bottom-left, #mainContent > section:not(#hero), .site-footer,
  .header-nav, .brand-desc, #openDrawerBtn, .drawer-body) {
  animation: langBlurIn 0.36s var(--ease-refive) both;
}


/* ==========================================================================
   HERO: главная кнопка — <button> (открывает шторку), микрострока под кнопками
   ========================================================================== */
button.hero-btn-accent {
  cursor: pointer;
  line-height: inherit;
}

/* background-clip: text красит только внутри рамки строки, а при line-height 0.95
   точки «Ё» и надстрочные знаки TM (Ä, Ü, Ý) выходят вверх — даём им место без сдвига строки */
.title-accent {
  padding-top: 0.16em;
  margin-top: -0.16em;
}

/* ==========================================================================
   АДАПТИВ ПОСЛЕ ПЕРЕСТРОЙКИ: шапка с 5 пунктами, высота блока hero, телефон
   ========================================================================== */
.nav-item { white-space: nowrap; }

/* Шапка с пятью пунктами: бейдж «ПРОДУКТ» убираем, когда полосе тесно */
/* 901–1100px: пять пунктов + длинные подписи TM/EN — поджимаем промежутки шапки */
@media (min-width: 901px) and (max-width: 1100px) {
  .header-nav { gap: 6px; padding: 8px 11px; }
  .nav-item { letter-spacing: 0.04em; }
  .header-right { gap: 12px; }
  .lang-btn { padding: 6px 9px; }
}

/* Подписи шапки на TM/EN длиннее русских: до 1300px логотип сворачиваем до «MV»
   (как на телефоне), на самых узких экранах с навигацией — на всех языках */
@media (min-width: 901px) and (max-width: 1300px) {
  .brand-sep,
  .brand-desc { display: none; }
}

@media (min-width: 901px) and (max-width: 960px) {
  .brand-sep,
  .brand-desc { display: none; }
}

/* Колонка hero 46vw: чипы — в два ряда, кнопки — в один, чтобы блок не вырастал к фону */
@media (max-width: 1200px) {
  .hero-cta-row { gap: 10px; }
  .hero-btn-accent { font-size: 10px; padding: 13px 16px; }
}

/* Невысокий экран (1024×768, ноутбуки): микрострока необязательна — убираем */
@media (max-width: 600px) {

  /* Кикеры секций переносятся целыми частями («ПРОДУКТ MV» / «mvCRM — …») */
  .section-tag-group { flex-wrap: wrap; row-gap: 4px; }
  .section-tag-group > span { white-space: nowrap; }

  /* Кикер hero переносится целыми частями, а не посреди «ИИ-АВТОМАТИЗАЦИИ» */
  .hero-kicker { flex-wrap: wrap; row-gap: 4px; font-size: 10px; letter-spacing: 0.1em; }
  .hero-kicker > span { white-space: nowrap; }
}

/* Узкий телефон: язык и кнопка шапки поджимаются, чтобы не вылезать за край */
@media (max-width: 420px) {
  .header-right { gap: 10px; }
  .lang-btn { padding: 5px 7px; }
  .btn-primary-ghost { font-size: 9px; padding: 8px 10px; }
}

/* ==========================================================================
   08b. АНКЕТА В ШТОРКЕ: 7 вопросов, ответы — кнопками-вариантами
   ========================================================================== */
.q-form { gap: 26px; }
.q-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.q-legend {
  display: block;
  margin-bottom: 10px;
  padding: 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-pure);
}
.q-num {
  display: inline-block;
  margin-right: 10px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.q-hint { display: block; margin: -4px 0 10px; font-size: 12px; color: var(--text-muted); }
.q-hint-inline { display: inline; margin: 0 0 0 6px; font-weight: 500; }
.q-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.q-chip { position: relative; cursor: pointer; }
.q-chip input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.q-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
  line-height: 1.3;
  color: var(--text-primary);
  transition: background var(--d-fast) var(--ease-refive), border-color var(--d-fast) var(--ease-refive), color var(--d-fast) var(--ease-refive);
}
.q-chip:hover span { background: rgba(255, 255, 255, 0.07); }
.q-chip input:checked + span {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 4px 16px var(--accent-glow);
}
.q-chip input:focus-visible + span { outline: 2px solid var(--accent-hover); outline-offset: 2px; }
.q-field .form-input, .q-field .form-textarea { width: 100%; }
.q-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.q-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Статусы отправки: «отправляем…», «отправлено», «не получилось — вот запасной путь» */
.form-status-msg { line-height: 1.5; }
.form-status-msg.info { display: block; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-glass); color: var(--text-primary); }
.form-status-msg.warn { display: block; background: rgba(var(--warn-rgb), 0.08); border: 1px solid rgba(var(--warn-rgb), 0.4); color: var(--text-primary); }
.form-status-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.form-status-btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-pure);
  text-decoration: none;
  cursor: pointer;
}
.form-status-btn.is-primary { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.q-form.is-busy #submitFormBtn { opacity: 0.6; cursor: progress; }
.q-form.is-sent > :not(.form-status-msg) { display: none; }
.q-form.is-sent .form-status-msg { padding: 20px 22px; font-size: 16px; }

@media (max-width: 480px) {
  .q-pair { grid-template-columns: 1fr; }
}


.faq-answer a { color: var(--text-pure); text-decoration: underline; text-decoration-color: var(--border-accent); text-underline-offset: 3px; }


/* ==========================================================================
   v18. ГЛАВНАЯ: «СТУДИЯ АВТОМАТИЗАЦИИ С ИИ» (после аудита 2026-10-09)
   Порядок: общие правила → шапка и меню телефона → первый экран → бегущая строка →
   общее для разделов → 01 ситуации → 02 что автоматизируем → 03 как работаем →
   04 связи → 05 примеры → 06 стоимость → 07 вопросы → 08 следующий шаг →
   подвал → телефон → доступность.
   Сплошной акцент — только у кнопок действия, бегущей строки, центра схемы
   и одной карточки «ИИ-помощник»: так кнопки «Записаться на разбор» не теряются.
   Курсив — только у крупных заголовков (h1, h2 разделов, заголовки панелей),
   мелкие заголовки карточек — прямые.
   ========================================================================== */

/* --- Общие правила --- */
html.i18n-wait body { visibility: hidden; } /* пока i18n.js переводит на TM/EN (не дольше 3 с) */

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 10000;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: top var(--d-fast) var(--ease-refive);
}
.skip-link:focus { top: 12px; }
#mainContent:focus { outline: none; }

/* Видимый фокус в стиле сайта (поля анкеты подсвечиваются рамкой — им не нужно) */
:where(a, button, summary, [role="tab"], [tabindex]):focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 3px;
}
.hero-btn-accent:focus-visible, .btn-primary-large:focus-visible, .hub-node.is-active:focus-visible,
.ex-tab.is-active:focus-visible, .lang-btn.is-active:focus-visible { outline-color: var(--text-pure); }
.drawer-title:focus { outline: none; }

/* Заголовки переносятся ровно, абзацы — без висячего слова в последней строке */
.sx-title, .fit-title, .stage-title, .ex-title, .sit-title, .what-title, .step-title, .hub-panel-title { text-wrap: balance; }
.sx-lead, .sit-text, .what-text, .step-text, .stage-item-text, .faq-answer, .hub-panel-text, .fit-text,
.price-lead, .price-text, .ex-row dd, .hero-desc { text-wrap: pretty; }

/* Карточки внутри разделов: без стеклянной фаски и размытия — фон за ними сплошной,
   размывать нечего, а слабым офисным ПК легче. Стекло остаётся у шапки и шторки */
.sx .liquid-glass { backdrop-filter: none; -webkit-backdrop-filter: none; }
.sx .liquid-glass::before { display: none; }

/* --- Шапка: выравнивание с разделами, меню телефона --- */
.site-header { padding-left: var(--gutter); padding-right: var(--gutter); }
.header-container { max-width: calc(var(--container-max) - 2 * var(--gutter)); }
.header-nav .nav-cta { display: none; }
.nav-toggle { display: none; }

/* --- Первый экран --- */
.section-hero { height: 100vh; height: calc(100svh - 50px); min-height: 680px; } /* бегущая строка попадает в кадр */
.hero-corner {
  position: absolute;
  top: 92px;
  left: var(--edge);
  right: var(--edge);
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  pointer-events: none;
}
.hero-bottom-left { left: var(--edge); }
.hero-kicker { flex-wrap: wrap; row-gap: 4px; }
.hero-kicker > span { white-space: nowrap; }
/* лесенка: вторая строка чуть правее, третья — ещё правее */
.title-step { padding-left: 0.45em; }
.title-step2 { padding-left: 2.3em; }
html[lang="tk"] .hero-title { font-size: calc(var(--hero-title-size) * 0.75); } /* «AWTOMATLAŞDYRMAK» — 16 знаков */
html[lang="tk"] .title-step2 { padding-left: 0.6em; }
.hero-sub {
  margin-top: -6px;
  text-wrap: balance;
  font-family: var(--font-display);
  font-size: clamp(14px, 1.15vw, 19px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-pure);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}
.hero-desc { color: var(--text-primary); }
.hero-cta-row { gap: 10px 26px; }
.hero-btn-accent { font-size: 12px; padding: 16px 26px; }
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 7px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  transition: color var(--d-fast) var(--ease-refive), text-decoration-color var(--d-fast) var(--ease-refive);
}
.hero-link:hover { color: var(--text-pure); text-decoration-color: var(--accent); }

/* Справа: робот во всю высоту правой половины (ПК) */
.hero-visual {
  position: absolute;
  top: 110px;
  right: 0;
  bottom: 52px;
  width: 50vw;
  z-index: 2;
  pointer-events: none;
}
.hero-visual .robot-character.robot-3d { top: 0; bottom: 0; right: 0; width: 100%; height: 100%; }
.hero-visual .robot-fallback { height: 100%; right: 0; }

/* Нижняя строка первого экрана: три довода */
.hero-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 var(--edge);
  border-top: 1px solid var(--border-subtle);
}
.hero-bar-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 10px;
  padding: 17px 12px;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-align: center;
}
.hero-bar-item:first-child { justify-content: flex-start; padding-left: 0; }
.hero-bar-item:last-child { justify-content: flex-end; padding-right: 0; }
.hero-bar-item + .hero-bar-item { border-left: 1px solid var(--border-subtle); }
.hero-bar-item b { font-weight: 800; color: var(--text-pure); }
.hero-bar-item b span { color: var(--accent); }
.hero-bar-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.18); animation: pulse-dot 2.4s ease-in-out infinite; }
@media (min-width: 901px) {
  .hero-bottom-left { bottom: calc(clamp(30px, 5vw, 60px) + 52px); }
  .hero-bar-item:first-child { flex-wrap: nowrap; text-align: left; } /* точка не отрывается от текста */
}
@media (min-width: 901px) and (max-width: 1366px) {
  html[lang="tk"] .hero-bar-item { letter-spacing: 0.06em; }
}
@media (max-height: 820px) and (min-width: 901px) {
  .hero-corner { display: none; }
}

/* --- Бегущая строка этапов: 4 одинаковые копии, сдвиг на половину — без шва --- */
.ticker { overflow: hidden; background: var(--accent); color: var(--accent-ink); }
.ticker-track { display: flex; align-items: center; width: max-content; animation: mv-ticker 48s linear infinite; }
.ticker-track span { padding: 14px 0; font-family: var(--font-display); font-size: 14px; font-weight: 800; font-style: italic; letter-spacing: 0.03em; white-space: nowrap; }
.ticker-track i { margin: 0 24px; font-style: normal; font-size: 13px; opacity: 0.7; }
@keyframes mv-ticker { to { transform: translateX(-50%); } }
@keyframes mv-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* --- Общее для разделов: номер, заголовок, пояснение --- */
.sx { padding-top: var(--section-pad-compact); padding-bottom: var(--section-pad-compact); }
.sx.is-alt { background-color: var(--bg-surface); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.sx-faq + .sx-next { padding-top: 0; } /* одинаковый фон подряд — без двойного отступа */
.section-tag-group { flex-wrap: wrap; row-gap: 4px; margin-bottom: 12px; }
.section-tag-group > span { white-space: nowrap; }
.sx-head { max-width: 780px; margin-bottom: clamp(28px, 3.4vw, 48px); }
.sx-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.3vw, 50px);
  font-weight: 800;
  font-style: italic;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text-pure);
  overflow-wrap: break-word;
}
.sx-lead { margin-top: 16px; max-width: 640px; font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.sx-textlink {
  display: inline-block; /* стрелка остаётся сразу после текста, даже когда он переносится */
  margin-top: 8px;
  padding: 10px 0;
  line-height: 1.5;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-pure);
  text-align: left;
  text-decoration: underline;
  text-decoration-color: var(--border-accent);
  text-underline-offset: 6px;
  text-wrap: balance;
  cursor: pointer;
  transition: color var(--d-fast) var(--ease-refive), text-decoration-color var(--d-fast) var(--ease-refive);
}
.sx-textlink span { color: var(--accent); }
.sx-textlink:hover { color: var(--accent-hover); text-decoration-color: var(--accent); }
.sx-arrowlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-pure);
  text-decoration: underline;
  text-decoration-color: var(--border-accent);
  text-underline-offset: 7px;
}
.sx-arrowlink:hover { color: var(--accent-hover); text-decoration-color: var(--accent); }
.sx-aside { margin-top: 28px; font-size: 15px; color: var(--text-muted); }
.sx-aside a { display: inline-block; padding: 10px 0; margin: -10px 0; color: var(--text-pure); font-weight: 600; text-decoration: underline; text-decoration-color: var(--border-accent); text-underline-offset: 4px; }
.sx-aside a:hover { color: var(--accent-hover); }
.sx-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: clamp(28px, 3vw, 40px); }
.sx-cta-text { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--text-pure); }
.cta-btn { font-size: 12px; padding: 16px 28px; }
.cta-note { max-width: 520px; font-size: 14px; line-height: 1.5; color: var(--text-muted); }

/* --- 01. Ситуации: номер | заголовок | пояснение, строки через линию --- */
.sit-list { list-style: none; border-top: 1px solid var(--border-subtle); }
.sit-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 14px clamp(20px, 3vw, 48px);
  padding: 26px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.sit-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-accent);
  background: rgba(var(--accent-rgb), 0.08);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-soft);
}
.sit-title { padding-top: 6px; font-family: var(--font-display); font-size: clamp(18px, 1.7vw, 24px); font-weight: 700; line-height: 1.25; color: var(--text-pure); }
.sit-text { padding-top: 8px; max-width: 540px; font-size: 15px; line-height: 1.6; color: var(--text-muted); }

/* --- 02. Что автоматизируем: сетка 3×2, акцентом залита одна карточка «ИИ-помощник» --- */
.what-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); }
.what-card {
  display: flex;
  flex-direction: column;
  padding: 24px 26px 28px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.03);
}
.what-num { font-family: var(--font-display); font-size: 12px; font-weight: 800; color: var(--accent-soft); }
.what-title { margin: 48px 0 10px; font-family: var(--font-display); font-size: clamp(18px, 1.5vw, 22px); font-weight: 800; line-height: 1.2; color: var(--text-pure); }
.what-text { font-size: 14.5px; line-height: 1.55; color: var(--text-muted); }
.what-card.is-fill { background: var(--accent); border-color: var(--accent); }
.what-card.is-fill .what-num { color: rgba(3, 20, 13, 0.8); }
.what-card.is-fill .what-title { color: var(--accent-ink); }
.what-card.is-fill .what-text { color: rgba(3, 20, 13, 0.85); }

/* «Решение под ваш процесс»: текст слева, пример разговора с ИИ-помощником справа */
.fit {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(40px, 4.4vw, 64px);
}
.fit-title { margin: 10px 0 14px; font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 32px); font-weight: 800; font-style: italic; line-height: 1.15; color: var(--text-pure); }
.fit-text { max-width: 600px; margin-bottom: 14px; font-size: 16px; line-height: 1.6; color: var(--text-muted); }

.chat {
  border-radius: var(--r-lg);
  border: 1px solid var(--border-glass);
  background: rgba(8, 12, 11, 0.85);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.chat-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--border-subtle); }
.chat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-accent);
  background: rgba(var(--accent-rgb), 0.1);
}
.chat-icon svg { width: 18px; height: 18px; fill: none; stroke: var(--accent-hover); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chat-name { font-family: var(--font-display); font-size: 13px; font-weight: 800; color: var(--text-pure); }
.chat-tag { margin-left: auto; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border-glass); font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--text-muted); }
.chat-body { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.chat-bubble { max-width: 88%; padding: 11px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.chat-bubble.is-user { align-self: flex-end; border-bottom-right-radius: 4px; background: rgba(var(--accent-rgb), 0.16); border: 1px solid var(--border-accent); color: var(--text-pure); }
.chat-bubble.is-ai { align-self: flex-start; border-bottom-left-radius: 4px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-subtle); color: var(--text-primary); }
.chat-ai-chip { display: inline-block; margin-right: 8px; padding: 1px 7px; border-radius: 6px; background: rgba(var(--accent-rgb), 0.18); font-family: var(--font-display); font-size: 10px; font-weight: 800; color: var(--accent-soft); vertical-align: 1px; }
.chat-actions { display: flex; gap: 8px; margin-top: 2px; }
.chat-btn { padding: 8px 14px; border-radius: var(--r-sm); border: 1px solid var(--border-glass); font-family: var(--font-display); font-size: 11px; font-weight: 700; color: var(--text-pure); }
.chat-btn.is-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chat-caption { padding: 0 18px 16px; font-size: 12.5px; color: var(--text-muted); }

/* --- 03. Как работаем: шаги на вертикальной линии + первый этап --- */
.steps { list-style: none; position: relative; display: grid; gap: 14px; padding-left: 38px; }
.steps::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent) 40%, var(--border-subtle) 100%);
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 84px 60px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding: 24px 30px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.025);
}
.step::before {
  content: '';
  position: absolute;
  left: -31px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.18);
  transform: translateY(-50%);
}
.step-num { font-family: var(--font-display); font-size: 42px; font-weight: 800; font-style: italic; line-height: 1; color: var(--text-pure); }
.step-icon { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--border-glass); }
.step-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent-hover); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.step-title { margin-bottom: 6px; font-family: var(--font-display); font-size: clamp(17px, 1.5vw, 21px); font-weight: 800; line-height: 1.2; color: var(--text-pure); overflow-wrap: break-word; }
.step-text { max-width: 660px; font-size: 15px; line-height: 1.55; color: var(--text-muted); }
@media (min-width: 1101px) {
  /* широкий экран: название слева, текст справа — без пустоты в правой части карточки */
  .step-copy { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); column-gap: clamp(24px, 3vw, 48px); align-items: center; }
  .step-title { margin: 0; }
  .step-text { max-width: none; }
}

.stage {
  margin-top: clamp(36px, 4vw, 56px);
  padding: clamp(24px, 3.4vw, 48px);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-accent);
  background: linear-gradient(150deg, rgba(var(--accent-rgb), 0.14) 0%, rgba(255, 255, 255, 0.02) 55%);
}
.stage-title { margin-top: 10px; font-family: var(--font-display); font-size: clamp(21px, 2.2vw, 32px); font-weight: 800; font-style: italic; line-height: 1.15; color: var(--text-pure); }
.stage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(28px, 4vw, 56px); margin-top: 28px; }
.stage-item { padding-top: 16px; border-top: 1px solid var(--border-accent); }
.stage-item-title {
  display: block;
  margin-bottom: 8px;
  list-style: none;
  text-transform: uppercase;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-pure);
}
.stage-item-title::-webkit-details-marker { display: none; }
.stage-item-text { font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.stage-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 32px; }
@media (min-width: 761px) {
  .stage-item-title { pointer-events: none; } /* на ПК пункты не сворачиваются */
}

/* --- 04. С чем связываем: «одна система» в центре, 6 узлов-вкладок, пояснение под схемой --- */
.hub { position: relative; height: 420px; max-width: 1000px; margin: 0 auto; }
.hub-lines { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.hub-lines path { fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 1; vector-effect: non-scaling-stroke; transition: stroke var(--d-fast) var(--ease-refive); }
.hub:has(.hub-node[data-pos="1"].is-active) .hub-lines path:nth-child(1),
.hub:has(.hub-node[data-pos="2"].is-active) .hub-lines path:nth-child(2),
.hub:has(.hub-node[data-pos="3"].is-active) .hub-lines path:nth-child(3),
.hub:has(.hub-node[data-pos="4"].is-active) .hub-lines path:nth-child(4),
.hub:has(.hub-node[data-pos="5"].is-active) .hub-lines path:nth-child(5),
.hub:has(.hub-node[data-pos="6"].is-active) .hub-lines path:nth-child(6) { stroke: var(--accent); stroke-width: 2; }
.hub-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 164px;
  height: 164px;
  padding: 0 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--accent);
  box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0.12), 0 18px 50px var(--accent-glow);
  transform: translate(-50%, -50%);
  color: var(--accent-ink);
}
.hub-core span { font-family: var(--font-display); font-size: 15px; font-weight: 800; font-style: italic; line-height: 1.15; }
.hub-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: clamp(200px, 19vw, 240px);
  min-height: 48px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-glass);
  background: var(--bg-deep);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-pure);
  text-align: left;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: background var(--d-fast) var(--ease-refive), border-color var(--d-fast) var(--ease-refive);
}
.hub-node:hover { border-color: var(--border-accent); }
.hub-node.is-active { background: linear-gradient(rgba(var(--accent-rgb), 0.14), rgba(var(--accent-rgb), 0.14)), var(--bg-deep); border-color: var(--accent); } /* непрозрачный: линия схемы не перечёркивает подпись */
.hub-node-num { font-family: var(--font-display); font-size: 10px; font-weight: 800; color: var(--text-muted); }
.hub-node.is-active .hub-node-num { color: var(--accent-soft); }
.hub-node[data-pos="1"] { left: 25%; top: 16.7%; }
.hub-node[data-pos="2"] { left: 75%; top: 16.7%; }
.hub-node[data-pos="3"] { left: 17%; top: 50%; }
.hub-node[data-pos="4"] { left: 83%; top: 50%; }
.hub-node[data-pos="5"] { left: 25%; top: 83.3%; }
.hub-node[data-pos="6"] { left: 75%; top: 83.3%; }
.hub-info { max-width: 640px; margin: 28px auto 0; padding: 22px 0; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); text-align: center; }
.hub-panel { display: none; }
.hub-panel.is-active { display: block; animation: mv-fade 0.35s var(--ease-refive); }
.hub-panel-title { margin-bottom: 8px; font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--text-pure); }
.hub-panel-text { font-size: 15px; line-height: 1.6; color: var(--text-muted); }

/* --- 05. Примеры: вкладки слева, карточка справа (макет экрана + текст) --- */
.ex { display: grid; grid-template-columns: 270px minmax(0, 1fr); align-items: start; gap: 24px; }
.ex-tabs { display: flex; flex-direction: column; gap: 10px; }
.ex-tab {
  display: grid;
  gap: 3px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.03);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background var(--d-fast) var(--ease-refive), border-color var(--d-fast) var(--ease-refive);
}
.ex-tab:hover { border-color: var(--border-accent); }
.ex-tab-num { font-family: var(--font-display); font-size: 10px; font-weight: 800; color: var(--text-muted); }
.ex-tab-name { font-family: var(--font-display); font-size: 15px; font-weight: 800; color: var(--text-pure); }
.ex-tab-sub { font-family: var(--font-display); font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--text-muted); text-wrap: balance; }
.ex-tab.is-active { background: rgba(var(--accent-rgb), 0.12); border-color: var(--accent); }
.ex-tab.is-active .ex-tab-num, .ex-tab.is-active .ex-tab-sub { color: var(--accent-soft); }
.ex-card {
  display: none;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-accent);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}
.ex-card.is-active { display: grid; animation: mv-fade 0.35s var(--ease-refive); }
/* Макет экрана: условные данные, пометка «ПРИМЕР» */
.ex-mock {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 28px;
  border-right: 1px solid var(--border-subtle);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(var(--accent-rgb), 0.18) 0%, transparent 60%),
    rgba(8, 11, 10, 0.9);
  font-size: 13px;
  color: var(--text-muted);
}
.mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--text-primary); }
.mock-tag { padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border-glass); font-size: 10px; color: var(--text-muted); }
.mock-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.03); }
.mock-row b { color: var(--text-pure); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mock-days { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.mock-row.is-warn { border: 1px solid rgba(var(--warn-rgb), 0.35); background: rgba(var(--warn-rgb), 0.07); }
.mock-row.is-warn .mock-days { color: var(--warn); }
.mock-row.has-bar { grid-template-columns: 76px minmax(0, 1fr) auto; }
.mock-row.has-bar i { display: block; width: var(--w); height: 7px; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-soft)); }
.mock-alert { align-self: flex-start; margin-top: 2px; padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(var(--warn-rgb), 0.35); background: rgba(var(--warn-rgb), 0.1); color: var(--warn); font-size: 12px; font-weight: 600; }
.ex-body { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 2.6vw, 36px); }
.ex-kicker { font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--accent-soft); }
.ex-title { font-family: var(--font-display); font-size: clamp(21px, 2vw, 28px); font-weight: 800; font-style: italic; line-height: 1.15; color: var(--text-pure); }
.ex-rows { display: grid; gap: 12px; }
.ex-row dt { margin-bottom: 4px; font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.ex-row dd { font-size: 15px; line-height: 1.55; color: var(--text-primary); }
.ex-result { padding-top: 14px; border-top: 1px solid var(--border-accent); font-size: 15.5px; font-weight: 700; line-height: 1.45; color: var(--accent-soft); }

/* --- 06. Стоимость --- */
.price-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: start; gap: clamp(28px, 4vw, 72px); }
.price-label { margin-top: 22px; font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--text-muted); }
.price-big { margin: 8px 0 18px; font-family: var(--font-display); font-size: clamp(40px, 5vw, 76px); font-weight: 800; font-style: italic; line-height: 1; white-space: nowrap; color: var(--accent); }
.price-big .price-from { font-size: 0.45em; color: var(--text-muted); }
.price-big .price-cur { font-size: 0.6em; }
.price-lead { max-width: 560px; font-size: 17px; line-height: 1.55; font-weight: 600; color: var(--text-pure); }
.price-text { margin-top: 14px; max-width: 560px; font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.prices-card { padding: 24px 26px; border-radius: var(--r-lg); border: 1px solid var(--border-glass); background: rgba(255, 255, 255, 0.025); }
.prices-title { margin-bottom: 8px; font-family: var(--font-display); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; color: var(--text-pure); }
.prices-list { list-style: none; display: grid; }
.prices-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border-subtle); font-size: 14.5px; color: var(--text-muted); }
.price-val { font-weight: 700; color: var(--text-pure); white-space: nowrap; }
.price-val.is-free { color: var(--accent-soft); }
.prices-note { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.prices-cta { margin-top: 20px; }

/* --- 07. Вопросы: заголовок слева (на ПК прилипает), ответы — строки через линию --- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(28px, 4vw, 72px); }
.faq-side .sx-title { font-size: clamp(26px, 2.5vw, 40px); }
html[lang="tk"] .faq-side .sx-title { font-size: clamp(20px, 2.2vw, 32px); }
.sx-faq .faq-list { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--border-subtle); }
.sx-faq .faq-item { border-radius: 0; border-bottom: 1px solid var(--border-subtle); }
.sx-faq .faq-question { min-height: 64px; padding: 18px 0; font-size: 15px; }
.sx-faq .faq-answer { padding: 0 44px 22px 0; font-size: 15px; }
.sx-faq .faq-item:hover .faq-question { color: var(--accent-hover); }
@media (min-width: 901px) {
  .faq-side { position: sticky; top: 110px; }
  .hub-node { width: clamp(240px, 25vw, 260px); }
  .hub-info { display: grid; }
  .hub-panel { grid-area: 1 / 1; display: block; visibility: hidden; }
  .hub-panel.is-active { visibility: visible; }
  .ex-panels { display: grid; }
  .ex-card { grid-area: 1 / 1; display: grid; visibility: hidden; }
  .ex-card.is-active { visibility: visible; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .footer-content-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-col-left { grid-column: 1 / -1; }
}
/* Линия шагов на ПК — ровно от точки 01 до точки 05, без «хвостов» */
@media (min-width: 761px) {
  .steps::before { display: none; }
  .step::after { content: ''; position: absolute; left: -26px; top: 0; bottom: -14px; width: 2px; background: rgba(var(--accent-rgb), 0.45); }
  .step:first-child::after { top: 50%; background: var(--accent); }
  .step:nth-child(2)::after { background: var(--accent); }
  .step:last-child::after { bottom: 50%; }
  .step::before { z-index: 1; } /* точка поверх линии */
}

/* --- 08. Следующий шаг + кто ведёт проект --- */
.next-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: stretch; gap: var(--grid-gap); }
.next-card {
  padding: clamp(26px, 3.6vw, 52px);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-accent);
  background: linear-gradient(150deg, rgba(var(--accent-rgb), 0.16) 0%, rgba(255, 255, 255, 0.02) 60%);
}
.next-action { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.next-note { font-size: 13.5px; color: var(--text-muted); }
.next-call { margin-top: 16px; font-size: 15px; color: var(--text-muted); }
.next-call a { display: inline-block; padding: 10px 0; margin: -10px 0; color: var(--text-pure); font-weight: 700; text-decoration: underline; text-decoration-color: var(--border-accent); text-underline-offset: 4px; }
.about-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.025);
}
.about-photo { flex: 0 0 auto; width: 104px; height: 104px; border-radius: 50%; object-fit: cover; }
.about-photo.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed var(--border-glass);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.about-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.about-name { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--text-pure); }
.about-role { font-size: 13.5px; color: var(--text-muted); }
.about-text { margin-top: 4px; font-size: 14.5px; line-height: 1.55; color: var(--text-muted); }
.about-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.about-call { min-height: 44px; padding: 12px 22px; font-size: 11px; }
.about-tg {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-pure);
  text-decoration: none;
  transition: border-color var(--d-fast) var(--ease-refive);
}
.about-tg:hover { border-color: var(--accent); }

/* --- Подвал: подписи крупнее, ссылки — удобные цели нажатия --- */
.footer-col-head { color: var(--text-muted); }
.footer-meta-pill { font-size: 11px; }
.footer-links-list { gap: 2px; }
.footer-contacts-list { gap: 2px; }
.footer-links-list a { display: inline-flex; align-items: center; min-height: 40px; }
.contact-pill-link, .contact-pill-item { min-height: 40px; }
.contact-type { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.footer-bottom-inner { font-size: 11px; }

/* --- Планшет --- */
@media (max-width: 1100px) {
  .what-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-grid { grid-template-columns: minmax(0, 1fr); }
  .about-card { flex-direction: row; align-items: center; }
}
@media (max-width: 1180px) {
  .hero-bar-item { letter-spacing: 0.08em; }
}

/* --- Телефон и узкий планшет --- */
@media (max-width: 900px) {
  /* Шапка: логотип, языки, кнопка ☰. Меню — выпадающим списком под шапкой */
  .nav-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    position: absolute;
    left: 50%;
    width: 18px;
    height: 2px;
    margin-left: -9px;
    border-radius: 2px;
    background: var(--text-pure);
    transition: transform var(--d-fast) var(--ease-refive), opacity var(--d-fast) var(--ease-refive);
  }
  .nav-toggle-bar { top: 50%; margin-top: -1px; }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ''; left: 0; margin-left: 0; }
  .nav-toggle-bar::before { top: -6px; }
  .nav-toggle-bar::after { top: 6px; }
  .is-nav-open .nav-toggle-bar { background: transparent; }
  .is-nav-open .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
  .is-nav-open .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

  .is-nav-open .header-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    padding: 8px 20px 22px;
    border: 0;
    border-bottom: 1px solid var(--border-subtle);
    border-radius: 0;
    background: rgba(7, 11, 10, 0.98);
  }
  .is-nav-open .header-nav .nav-item {
    display: flex;
    align-items: center;
    min-height: 54px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 14px;
    color: var(--text-primary);
  }
  .is-nav-open .header-nav .nav-sep { display: none; }
  .is-nav-open .header-nav .nav-cta { display: inline-flex; justify-content: center; margin-top: 18px; }
  .header-right { gap: 10px; }
  /* языки: зона нажатия 44px по высоте, вид прежний */
  .lang-btn { position: relative; padding: 6px 9px; font-size: 10.5px; }
  .lang-btn::after { content: ''; position: absolute; top: -9px; bottom: -9px; left: -1px; right: -1px; }

  /* Первый экран: заголовок — под шапкой, робот по пояс — под кнопкой, ниже три довода */
  :root { --hero-title-size: clamp(22px, calc((100vw - 40px) / 12.6), 56px); }
  html[lang="tk"] .hero-title { font-size: calc((100vw - 40px) / 15.6); }
  html[lang="tk"] .title-step2 { padding-left: 0; }
  .section-hero { height: auto; min-height: 0; padding: 92px 0 0; }
  .hero-bottom-left { left: auto; margin: 0 20px; }
  .hero-corner { display: none; }
  .hero-btn-accent { font-size: 11px; padding: 15px 18px; }
  .hero-visual { position: relative; top: auto; right: auto; bottom: auto; width: auto; height: clamp(220px, 68vw, 340px); margin: 18px 20px 0; }
  .hero-visual .hero-robot-stage { top: 0; right: 0; bottom: 0; left: 0; }
  .hero-visual .robot-character.robot-3d {
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%;
    height: 100%;
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
  }
  .robot-3d .robot-fallback { top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 0; }
  .hero-robot-glow { width: 80%; height: 80%; top: 4%; right: 10%; left: auto; filter: blur(50px); }
  .robot-3d .robot-fallback { display: block; } /* статичный кадр сразу из CSS — не ждём скрипт */
  .robot-3d .robot-3d-canvas { display: none; }
  .hero-bar { position: relative; grid-template-columns: minmax(0, 1fr); margin: 8px 20px 0; }
  .hero-bar-item, .hero-bar-item:first-child, .hero-bar-item:last-child { justify-content: flex-start; text-align: left; padding: 12px 0; }
  .hero-bar-item + .hero-bar-item { border-left: 0; border-top: 1px solid var(--border-subtle); }

  .fit, .price-grid, .faq-grid, .ex { grid-template-columns: minmax(0, 1fr); }

  /* Схема связей: узлы — сетка кнопок 2×3, под ней одно пояснение */
  .hub { display: block; height: auto; max-width: none; }
  .hub-lines, .hub-core { display: none; }
  .hub-nodes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hub-node { position: static; width: auto; min-width: 0; transform: none; padding: 12px 14px; font-size: 13.5px; }
  .hub-info { margin-top: 16px; padding: 18px 0; text-align: left; }
  .hub-panel-title { font-size: 17px; }

  /* Вкладки примеров — лентой с прокруткой вбок: видно, что вкладок три */
  .ex-tabs {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 20px;
    margin: 0 -20px;
    padding: 0 20px 4px;
  }
  .ex-tabs::-webkit-scrollbar { display: none; }
  .ex-tab { flex: 0 0 min(72%, 260px); scroll-snap-align: start; }
  .ex-card.is-active { grid-template-columns: minmax(0, 1fr); }
  .ex-mock { padding: 20px; border-right: 0; border-bottom: 1px solid var(--border-subtle); }

  .grain-overlay { display: none; } /* шум поверх экрана — лишняя нагрузка для телефона */
  /* iPhone увеличивает страницу при нажатии на поле со шрифтом меньше 16px */
  .form-input, .form-textarea { font-size: 16px; }
  .drawer-header { gap: 12px; }
  .drawer-close-btn { flex: 0 0 auto; width: 44px; height: 44px; font-size: 16px; }
  /* открытое меню: сплошной фон, страница под ним затемнена и не прокручивается */
  html.is-nav-open { overflow: hidden; }
  .is-nav-open .header-nav { background: var(--bg-deep); box-shadow: 0 100vh 0 100vh rgba(0, 0, 0, 0.6); }
  .hero-bar-item:first-child { flex-wrap: nowrap; }
  .hero-bar-dot { flex: 0 0 auto; }
  /* цели нажатия не меньше 44px */
  .q-chip span { min-height: 44px; }
  .footer-links-list a, .contact-pill-link { min-height: 44px; }
  .brand-link { min-height: 44px; align-items: center; }
  .lang-btn::after { top: -10px; bottom: -10px; }
  .liquid-glass:not(.drawer-container) { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (max-width: 760px) {
  /* типографика телефона: H2 заметно крупнее заголовков карточек */
  .sx-title, .faq-side .sx-title { font-size: clamp(18px, calc((100vw - 40px) / 14.5), 30px); }
  html[lang="tk"] .sx-title, html[lang="tk"] .faq-side .sx-title { font-size: calc((100vw - 40px) / 16); }
  .fit-title, .stage-title, .ex-title { font-size: 19px; }
  .what-title, .step-title, .hub-panel-title { font-size: 17px; }
  .sit-title { font-size: 16px; }
  .sx-lead, .fit-text { font-size: 15px; }
  .ticker-track span { padding: 11px 0; font-size: 12px; }
  .ticker-track i { margin: 0 16px; }

  .sit-row { grid-template-columns: 40px minmax(0, 1fr); gap: 6px 14px; padding: 20px 0; }
  .sit-num { width: 36px; height: 36px; font-size: 11px; }
  .sit-title { padding-top: 6px; }
  .sit-text { grid-column: 2; padding-top: 0; font-size: 14.5px; }

  /* 02: карточки — строками через линию, как список (короче и без «зебры») */
  .what-grid { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--border-subtle); }
  .what-card, .what-card.is-fill {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 12px;
    padding: 18px 0;
    border: 0;
    border-bottom: 1px solid var(--border-subtle);
    border-radius: 0;
    background: none;
  }
  .what-num, .what-card.is-fill .what-num { padding-top: 3px; color: var(--accent-soft); }
  .what-title, .what-card.is-fill .what-title { margin: 0 0 6px; color: var(--text-pure); }
  .what-text, .what-card.is-fill .what-text { grid-column: 2; color: var(--text-muted); font-size: 14.5px; }

  /* 03: шаги — номер слева, без линии и иконок */
  .steps { padding-left: 0; gap: 10px; }
  .steps::before, .step::before, .step-icon { display: none; }
  .step { grid-template-columns: 42px minmax(0, 1fr); align-items: start; gap: 0 10px; padding: 18px; }
  .step-num { font-size: 22px; padding-top: 2px; }
  .step-text { font-size: 14.5px; }

  /* «Первый этап»: пункты раскрываются по нажатию */
  .stage-grid { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 18px; }
  .stage-item { padding-top: 0; }
  .stage-item-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    margin: 0;
    cursor: pointer;
  }
  .stage-item-title::after { content: '+'; font-size: 20px; font-weight: 400; color: var(--accent-soft); }
  .stage-item[open] .stage-item-title::after { content: '−'; }
  .stage-item-text { padding-bottom: 16px; font-size: 14.5px; }

  .chat-bubble { font-size: 13.5px; }
  .footer-links-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .sx-faq .faq-question { font-size: 14px; }
  .sx-faq .faq-answer { padding-right: 0; font-size: 14.5px; }
  .about-card { flex-direction: column; align-items: flex-start; padding: 22px; }
  .about-photo { width: 84px; height: 84px; }
  .price-big { font-size: calc((100vw - 40px) / 10.2); }
}

@media (max-width: 360px) {
  .step { padding: 16px 14px; }
  .drawer-sep, .drawer-sub { display: none; }
}

/* Телефон: кнопка записи внизу экрана — появляется после первого экрана,
   прячется у раздела «Следующий шаг» и подвала (index.js) */
.m-cta { display: none; }
@media (max-width: 760px) {
  .m-cta {
    display: inline-flex;
    justify-content: center;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 12px;
    z-index: 90;
    visibility: hidden;
    transform: translateY(calc(100% + 16px));
    transition: transform var(--d-norm) var(--ease-refive), visibility var(--d-norm);
  }
  .show-mcta .m-cta { visibility: visible; transform: none; }
  .is-nav-open .m-cta { visibility: hidden; }
}

@media (max-width: 520px) {
  /* кнопка разбора в шапке уходит в меню ☰ — на узком экране ей нет места */
  .header-right .btn-primary-ghost { display: none; }
  /* вторая часть надзаголовка («опт, магазины…») переносится по словам */
  .hero-kicker > .kicker-sub { white-space: normal; }
}

/* --- Доступность: «уменьшить движение» в настройках системы --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ticker-track { animation: none; }
}

/* ==========================================================================
   v19. ОКНО ЗАЯВКИ НА ВЕСЬ ЭКРАН (вместо шторки сбоку)
   Сверху — логотип и «закрыть», по центру — колонка формы: заголовок, пояснение,
   три поля и короткая анкета «по желанию». Листается только содержимое окна
   ========================================================================== */
.lead-window { justify-content: center; }
.lead-window .drawer-backdrop { background: var(--bg-deep); backdrop-filter: none; -webkit-backdrop-filter: none; }
.lead-window .drawer-container {
  max-width: none;
  width: 100%;
  height: 100%;
  padding: 0;
  border-left: 0;
  background: radial-gradient(ellipse at 80% 0%, rgba(var(--accent-rgb), 0.12) 0%, transparent 55%), var(--bg-deep);
  box-shadow: none;
  opacity: 0;
  transform: translateY(24px);
  transition: transform var(--d-norm) var(--ease-refive), opacity var(--d-norm) var(--ease-refive);
}
.lead-window.open .drawer-container { opacity: 1; transform: none; }
.lead-top {
  margin: 0;
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--border-subtle);
}
.lead-brand { pointer-events: none; }
.lead-close { width: 44px; height: 44px; font-size: 16px; }
.lead-window .drawer-body { margin: 0; padding: 0 var(--gutter) clamp(48px, 8vh, 96px); }
.lead-inner { max-width: 640px; margin: 0 auto; padding-top: clamp(36px, 7vh, 96px); }
.lead-tag { margin-bottom: 18px; }
.lead-title { margin-bottom: 16px; font-size: clamp(30px, 4vw, 52px); line-height: 1.05; }
.lead-window .drawer-lead { margin-bottom: 36px; font-size: 17px; line-height: 1.6; color: var(--text-muted); }
.lead-form { gap: 26px; }
.lead-label { display: block; margin-bottom: 10px; font-size: 16px; font-weight: 700; color: var(--text-pure); }
.lead-hint { display: block; margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }
.lead-form .form-input, .lead-form .form-textarea { width: 100%; min-height: 56px; padding: 14px 16px; border-radius: 10px; font-size: 16px; }
.lead-form .form-textarea { min-height: 140px; }

/* короткая анкета — раскрывается по нажатию */
.lead-more { border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.lead-more-sum {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  list-style: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-pure);
}
.lead-more-sum::-webkit-details-marker { display: none; }
.lead-more-sum::after { content: '+'; margin-left: auto; font-size: 22px; font-weight: 400; color: var(--accent-soft); }
.lead-more[open] .lead-more-sum::after { content: '−'; }
.lead-more-opt { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.lead-more-body { display: flex; flex-direction: column; gap: 24px; padding: 6px 0 24px; }

.lead-submit { width: auto; min-height: 56px; padding: 18px 34px; font-size: 13px; }
.lead-window .drawer-footer-note { margin-top: 24px; font-family: var(--font-body); font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-muted); }

@media (max-width: 600px) {
  .lead-submit { width: 100%; }
  .lead-window .drawer-lead { font-size: 15.5px; margin-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .lead-window .drawer-container { transform: none; }
}
/* Цена на телефоне: диапазон «от … до …» переносится целыми числами, а не вылезает за экран */
@media (max-width: 760px) {
  .price-big { white-space: normal; }
  .price-big b { white-space: nowrap; }
}

/* --- v19b. Окно заявки помещается в один экран: слева заголовок, справа форма --- */
.lead-window .drawer-body { display: flex; }
.lead-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  align-content: center;
  gap: 32px clamp(40px, 6vw, 96px);
  width: 100%;
  max-width: 1180px;
  min-height: 100%;
  margin: 0 auto;
  padding: clamp(24px, 4vh, 48px) 0;
}
.lead-window .drawer-body { padding-bottom: 0; }
.lead-intro { align-self: center; }
.lead-intro .drawer-lead { margin-bottom: 20px; }
.lead-form { gap: 18px; }
.lead-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.lead-form .form-input { min-height: 52px; }
.lead-form .form-textarea { min-height: 112px; }
.lead-label { margin-bottom: 8px; font-size: 15px; }
.lead-hint { margin-top: 6px; font-size: 12.5px; }
.lead-more-sum { min-height: 50px; }

@media (max-width: 900px) {
  .lead-inner { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 24px; padding-top: 28px; }
  .lead-title { font-size: clamp(26px, 7vw, 40px); }
  .lead-window .drawer-lead { margin-bottom: 0; font-size: 15px; }
  .lead-intro .drawer-footer-note { display: none; }
  .lead-window .drawer-body { padding-bottom: 32px; }
}
@media (max-width: 520px) {
  .lead-row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

/* --- Главная, первый экран: заголовок ровно в 3 строки лесенкой, надзаголовок в одну --- */
.title-line { white-space: nowrap; }
.hero-title { font-size: min(var(--hero-title-size), calc(min(46vw, 900px) / 14.6)); } /* длинная строка «БИЗНЕС-ПРОЦЕССОВ» + отступ лесенки */
.hero-kicker { letter-spacing: 0.08em; }
@media (max-width: 900px) {
  .hero-title { font-size: calc((100vw - 40px) / 15.6); } /* с учётом отступов лесенки */
  .hero-kicker > span { white-space: normal; }
}

/* --- Контакт тремя полями: телефон / imo / Telegram --- */
.lead-contacts { border: 0; margin: 0; padding: 0; min-width: 0; }
.lead-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lead-sublabel { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
@media (max-width: 520px) {
  .lead-row-3 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
/* Заголовок «Вопросы…» в узкой левой колонке: слово «АВТОМАТИЗАЦИИ» не рвётся посередине */
.faq-side .sx-title { font-size: clamp(22px, 2.15vw, 36px); overflow-wrap: normal; }
/* Связь: четыре поля (телефон / imo / Telegram / Instagram) — 2×2, на широком экране в ряд */
.lead-row-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1280px) { .lead-row-3 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) { .lead-row-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
/* «Следующий шаг» без карточки «Кто ведёт проект» — на всю ширину */
.next-grid { grid-template-columns: minmax(0, 1fr); }
/* Нижней строки первого экрана больше нет — заголовок и робот опускаются на её место */
@media (min-width: 901px) {
  .hero-bottom-left { bottom: clamp(30px, 5vw, 60px); }
  .hero-visual { bottom: 0; }
}

/* ==========================================================================
   v20. СКОРОСТЬ: убираем то, что перерисовывается на каждом кадре или при прокрутке
   ========================================================================== */
/* шум поверх всего экрана — отдельный слой на весь экран при каждой прокрутке */
.grain-overlay { display: none; }
/* размытие под шапкой и меню пересчитывается при каждом пикселе прокрутки — заменяем плотным фоном */
.site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: linear-gradient(to bottom, rgba(7, 11, 10, 0.94) 0%, rgba(7, 11, 10, 0.72) 100%); }
.header-nav, .lang-switch { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(14, 20, 18, 0.92); }
/* свечение за роботом: размытие 80px пересчитывалось каждый кадр из-за пульсации — делаем неподвижным */
.hero-robot-glow { animation: none; will-change: auto; }
/* перелив по буквам заголовка перерисовывал текст с тенью каждый кадр */
.title-accent { animation: none; background-position: 0% center; }
/* бегущая строка — на отдельном слое, без перерисовки страницы */
.ticker-track { will-change: transform; }
/* «Вопросы» и «Следующий шаг» на одном фоне — без линии между ними */
.sx-faq.is-alt { border-bottom: 0; }
.sx-next.is-alt { border-top: 0; }

/* ==========================================================================
   v21. ПОДСКАЗКИ «ЛИСТАЙТЕ»: на первом экране — колёсико мыши с бегущей точкой,
   на остальных экранах (ПК) — круглая кнопка «к следующему разделу» справа внизу
   ========================================================================== */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  color: var(--text-muted);
  text-decoration: none;
  transition: opacity var(--d-norm) var(--ease-refive), color var(--d-fast) var(--ease-refive);
}
.scroll-hint:hover { color: var(--text-pure); }
.scroll-hint-mouse {
  position: relative;
  width: 24px;
  height: 38px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.25);
}
.scroll-hint-mouse i {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--accent);
  animation: mv-scroll-wheel 1.8s var(--ease-refive) infinite;
}
.scroll-hint-text { font-family: var(--font-display); font-size: 9.5px; font-weight: 700; letter-spacing: 0.22em; }
@keyframes mv-scroll-wheel {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  70% { transform: translateY(13px); opacity: 0; }
  100% { transform: translateY(13px); opacity: 0; }
}
.is-scrolled .scroll-hint { opacity: 0; pointer-events: none; }

.next-hint {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border-accent);
  background: rgba(7, 11, 10, 0.88);
  color: var(--accent-soft);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(var(--accent-rgb), 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--d-norm) var(--ease-refive), transform var(--d-norm) var(--ease-refive), visibility var(--d-norm), background var(--d-fast) var(--ease-refive);
  animation: mv-hint-ring 2.6s ease-out infinite;
}
.next-hint svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; animation: mv-hint-bob 1.8s ease-in-out infinite; }
.next-hint:hover { background: var(--accent); color: var(--accent-ink); }
.show-next-hint .next-hint { opacity: 1; visibility: visible; transform: none; }
@keyframes mv-hint-bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
@keyframes mv-hint-ring { 0% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(var(--accent-rgb), 0.35); } 70%, 100% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 14px rgba(var(--accent-rgb), 0); } }
@media (max-width: 900px) {
  .scroll-hint { display: none; } /* на телефоне первый экран и так листается — снизу кнопка записи */
  .next-hint { display: none; }
}
@media (max-height: 760px) and (min-width: 901px) {
  .scroll-hint-text { display: none; }
}
/* TM: длинные пункты подвала переносятся внутри колонки, а не вылезают за экран */
.footer-links-list li, .footer-links-list a { min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 901px) and (max-width: 1100px) {
  html[lang="tk"] .header-nav { gap: 4px; padding: 8px 9px; }
  html[lang="tk"] .nav-item { font-size: 9.5px; letter-spacing: 0.02em; }
}
@media (max-width: 760px) {
  /* «Частые вопросы об автоматизации»: длинное слово помещается и на 320 px */
  .faq-side .sx-title { font-size: clamp(17px, calc((100vw - 40px) / 14.5), 30px); }
  html[lang="tk"] .faq-side .sx-title { font-size: calc((100vw - 40px) / 16); }
}

/* ==========================================================================
   v22. РОВНЫЙ ЛЕВЫЙ КРАЙ И КРУПНЕЕ ТЕКСТ
   Заголовок первого экрана — без «лесенки»: все строки от одного края с надзаголовком.
   Курсив Unbounded немного выступает вправо — компенсируем запасом справа (padding-right)
   ========================================================================== */
.title-step, .title-step2,
html[lang="tk"] .title-step, html[lang="tk"] .title-step2 { padding-left: 0; }
@media (min-width: 1101px) {
  .hero-bottom-left { width: min(50vw, 900px); }
}
/* самая длинная строка «БИЗНЕС-ПРОЦЕССОВ» ≈ 14 em вместе с наклоном */
.hero-title { font-size: min(calc(4.4vw), calc(min(50vw, 900px) / 14.2)); }
html[lang="tk"] .hero-title { font-size: min(calc(3.8vw), calc(min(50vw, 900px) / 17.4)); } /* «AWTOMATLAŞDYRMAK» */
html[lang="en"] .hero-title { font-size: min(calc(4.4vw), calc(min(50vw, 900px) / 13.4)); }
@media (max-width: 1100px) and (min-width: 901px) {
  .hero-title { font-size: calc(46vw / 14.2); }
  html[lang="tk"] .hero-title { font-size: calc(46vw / 17.4); }
}
@media (max-width: 900px) {
  .hero-title { font-size: calc((100vw - 40px) / 14.2); }
  html[lang="tk"] .hero-title { font-size: calc((100vw - 40px) / 17.4); }
  html[lang="en"] .hero-title { font-size: calc((100vw - 40px) / 13.4); }
}

/* Крупнее основной текст: описания, пункты, вопросы */
.hero-desc { font-size: 17px; max-width: 580px; }
.hero-kicker { font-size: 12px; }
.sx-lead { font-size: 18px; max-width: 700px; }
.sit-title { font-size: clamp(19px, 1.85vw, 27px); }
.sit-text { font-size: 16.5px; max-width: 580px; }
.what-title { font-size: clamp(19px, 1.65vw, 24px); }
.what-text { font-size: 16px; }
.step-title { font-size: clamp(18px, 1.6vw, 23px); }
.step-text { font-size: 16.5px; }
.sx-faq .faq-question { font-size: 17px; }
.sx-faq .faq-answer { font-size: 16.5px; }
.next-note, .next-call { font-size: 15px; }
.section-tag-group .sec-tag, .section-tag-group .sec-sub { font-size: 12px; }
.nav-item { font-size: 12px; }
.ticker-track span { font-size: 15px; }
@media (max-width: 760px) {
  .hero-desc { font-size: 16px; }
  .sx-lead { font-size: 16px; }
  .sit-title { font-size: 17px; }
  .sit-text, .what-text, .step-text, .sx-faq .faq-answer { font-size: 15.5px; }
  .what-title, .step-title { font-size: 18px; }
  .sx-faq .faq-question { font-size: 15.5px; }
  .ticker-track span { font-size: 13px; }
}

/* ==========================================================================
   v23. ТЕЛЕФОН И ПЛАНШЕТ (аудит 2026-10-10): вёрстка, касания, тексты,
   подсказка «листайте» и машущий робот на первом экране
   ========================================================================== */

/* --- Везде --- */
html.i18n-wait body { display: none; } /* TM/EN: не рисуем русскую страницу, пока идёт перевод */
html { -webkit-tap-highlight-color: transparent; } /* без синей вспышки Android при касании */
a, button, summary, label, input, textarea { touch-action: manipulation; }
/* TM: гачек над Ň и седиль под Ş не задевают соседнюю строку («PROSESLERINI», а не «PROSEŞLERINI») */
html[lang="tk"] .hero-title { line-height: 1.1; }
html[lang="tk"] .sx-title { line-height: 1.16; }
html[lang="tk"] .lead-title { line-height: 1.14; }
/* короткие абзацы без одного слова в последней строке */
.next-note, .drawer-lead, .lead-hint, .cta-note, .copyright { text-wrap: pretty; }
/* подсказки в полях заявки читаются (контраст 5,5:1 вместо 4,1:1) */
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-subtle); opacity: 1; }

/* Окно заявки: колонка растёт по содержимому — верх формы не обрезается, под кнопкой «Отправить» есть отступ */
.lead-window .lead-inner { align-self: flex-start; }
@media (min-width: 901px) {
  .lead-inner:has(.lead-more[open]) .lead-intro { align-self: start; position: sticky; top: 24px; }
}
.form-status-msg { scroll-margin-bottom: 24px; }
.form-status-btn { min-height: 44px; }
.lead-inner:has(.q-form.is-sent) .drawer-lead { display: none; } /* после отправки — только «Заявка отправлена!» */
/* пока заявка уходит — вместо стрелки крутится индикатор (подпись и ширина кнопки прежние) */
.q-form.is-busy #submitFormBtn .btn-arrow { display: inline-block; width: 14px; height: 14px; font-size: 0; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: mv-spin 0.8s linear infinite; }
@keyframes mv-spin { to { transform: rotate(360deg); } }

/* --- Сенсорный экран: «наведение» не залипает после касания, есть свой отклик на нажатие --- */
@media (hover: none) {
  .sx-faq .faq-item:hover .faq-question { color: var(--text-pure); }
  .faq-item:hover { border-color: var(--border-subtle); }
  .q-chip:hover span { background: rgba(255, 255, 255, 0.03); }
  .hero-btn-accent:hover { transform: none; background: var(--accent); box-shadow: 0 4px 20px var(--accent-glow); }
  .btn-primary-large:hover { transform: none; background: var(--accent); box-shadow: 0 4px 24px var(--accent-glow); }
  .hero-btn-accent:hover .btn-arrow { transform: none; }
  .hero-btn-accent:active, .btn-primary-large:active { transform: scale(0.98); background: var(--accent-deep); box-shadow: none; }
  .sx-faq .faq-question:active, .lead-more-sum:active { color: var(--accent-hover); }
  .q-chip:active span { background: rgba(255, 255, 255, 0.1); }
  .nav-item:active, .footer-links-list a:active, .contact-pill-link:active, .sx-textlink:active, .hero-link:active { color: var(--accent-hover); }
  .lang-btn:active, .nav-toggle:active, .drawer-close-btn:active { background: rgba(255, 255, 255, 0.12); }
}

/* --- Телефон и планшет (≤900) --- */
@media (max-width: 900px) {
  /* шапка — сплошная полоса: касание пустого места не проваливается в ссылку или вопрос под ней,
     и текст разделов не просвечивает под логотипом */
  .site-header { pointer-events: auto; background: rgba(7, 11, 10, 0.96); }
  .is-scrolled .site-header { background: rgba(7, 11, 10, 0.97); border-bottom-color: var(--border-subtle); }
  /* затемнение под меню ☰ — слой, а не тень: касание по нему закрывает меню (index.js), а не жмёт кнопку под ним */
  .is-nav-open .header-nav { box-shadow: none; max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px); }
  .is-nav-open .site-header::before { content: ''; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; background: rgba(0, 0, 0, 0.6); }
  /* длинные пункты меню (TM «NÄMÄNI AWTOMATLAŞDYRÝARYS») переносятся, а не уходят за край */
  .is-nav-open .header-nav .nav-item { white-space: normal; }
  html[lang="tk"] .header-nav .nav-item { letter-spacing: 0.02em; }
  /* цели нажатия в шапке: языки, логотип, кнопка заявки — не меньше 44 px */
  .lang-btn { min-width: 44px; padding-left: 0; padding-right: 0; text-align: center; font-size: 12px; }
  .brand-link { min-width: 44px; }
  .header-right .btn-primary-ghost { min-height: 44px; }

  /* первый экран — от того же левого края, что шапка и разделы */
  .hero-bottom-left { margin: 0 var(--gutter); }
  .hero-visual { margin-left: var(--gutter); margin-right: var(--gutter); }
  .hero-title { font-size: calc((100vw - 2 * var(--gutter)) / 14.2); }
  html[lang="tk"] .hero-title { font-size: calc((100vw - 2 * var(--gutter)) / 17.4); }
  html[lang="en"] .hero-title { font-size: calc((100vw - 2 * var(--gutter)) / 13.4); }
  /* надзаголовок: без тире, которое повисает в конце строки при переносе */
  .hero-kicker .kicker-sep { display: none; }
  .hero-kicker { column-gap: 14px; row-gap: 2px; }

  /* окно заявки: подсказки и ошибки — читаемым кеглем, фраза о конфиденциальности видна и на телефоне */
  .lead-hint { font-size: 14px; }
  .q-hint { font-size: 13.5px; }
  .lead-sublabel { font-size: 14px; }
  .form-status-msg { font-size: 14.5px; }
  .form-status-btn { font-size: 12px; }
  .lead-intro .drawer-footer-note { display: flex; margin-top: 14px; }

  /* подвал: нижняя строка по левому краю, как всё остальное */
  .footer-bottom-inner { align-items: flex-start; text-align: left; }

  /* Подсказка «листайте вниз»: пилюля внизу первого экрана. Прилипает к низу окна,
     если низ первого экрана не помещается (overflow: clip — чтобы sticky работал от окна),
     появляется через 1,4 с и исчезает с первой прокруткой (index.js, раздел 08) */
  .section-hero { overflow: hidden; overflow: clip; }
  .scroll-hint {
    display: flex;
    position: sticky;
    left: auto;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    z-index: 5;
    align-self: center;
    flex-direction: row;
    gap: 10px;
    width: max-content;
    margin: -56px auto 14px;
    padding: 8px 16px 8px 10px;
    transform: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(7, 11, 10, 0.8);
    color: var(--text-pure);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    animation: mv-hint-in 0.7s var(--ease-refive) 1.4s both;
  }
  .scroll-hint-mouse { width: 18px; height: 28px; border-radius: 10px; }
  .scroll-hint-mouse i { top: 5px; width: 3px; height: 6px; margin-left: -1.5px; animation-name: mv-scroll-wheel-m; }
  .scroll-hint-text { display: block; font-size: 10px; letter-spacing: 0.18em; }
}
/* появление — через filter/translate, чтобы не спорить с opacity у .is-scrolled */
@keyframes mv-hint-in { from { filter: opacity(0); translate: 0 10px; } to { filter: none; translate: 0 0; } }
@keyframes mv-scroll-wheel-m {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  70% { transform: translateY(9px); opacity: 0; }
  100% { transform: translateY(9px); opacity: 0; }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .scroll-hint { animation: none; }
  .scroll-hint-mouse i { animation: none; opacity: 1; }
}

/* --- Планшет 601–900: подвал в две колонки, а не узкая колонка с пустой правой половиной --- */
@media (min-width: 601px) and (max-width: 900px) {
  .footer-content-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-col-left { grid-column: 1 / -1; }
}
/* --- Планшет 761–900: в «Ситуациях» заголовок не сжимается в 4 строки — текст под ним --- */
@media (min-width: 761px) and (max-width: 900px) {
  .sit-row { grid-template-columns: 52px minmax(0, 1fr); row-gap: 8px; }
  .sit-text { grid-column: 2; padding-top: 0; max-width: 640px; }
}

/* --- Телефон (≤760) --- */
@media (max-width: 760px) {
  /* шапка 77 → 65 px: первому экрану больше места */
  .site-header { padding-top: 10px; padding-bottom: 10px; }
  .section-hero { padding-top: 80px; }
  html { scroll-padding-top: 72px; }
  .is-nav-open .header-nav { max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); }

  /* робот — во всю ширину экрана: так он крупнее, а поднятая рука не упирается в край */
  .hero-visual { margin-left: 0; margin-right: 0; height: min(75.8vw, 340px); }

  /* иерархия заголовков: H1 > H2 > H3 на всех языках */
  html[lang="tk"] .hero-title { font-size: calc((100vw - 2 * var(--gutter)) / 15.6); line-height: 1.12; }
  .sx-title, .faq-side .sx-title { font-size: clamp(18px, calc((100vw - 40px) / 16), 24px); line-height: 1.12; }
  html[lang="tk"] .sx-title, html[lang="tk"] .faq-side .sx-title { font-size: min(24px, calc((100vw - 40px) / 18.6)); line-height: 1.16; }
  .sit-title, .what-title, .step-title { font-size: 16px; line-height: 1.25; }
  html[lang="tk"] :is(.sit-title, .what-title) { font-size: clamp(14px, calc((100vw - 40px) / 22), 15.5px); }
  html[lang="tk"] .step-title { font-size: min(15.5px, calc((100vw - 122px) / 14.6)); }

  /* списки 01/02/03: номер и заголовок в строку, текст — на всю ширину от общего левого края */
  .sit-row { grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; row-gap: 10px; align-items: center; }
  .sit-title { padding-top: 0; }
  .sit-text { grid-column: 1 / -1; }
  .what-card, .what-card.is-fill { grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; row-gap: 8px; align-items: baseline; }
  .what-title, .what-card.is-fill .what-title { margin: 0; }
  .what-text, .what-card.is-fill .what-text { grid-column: 1 / -1; font-size: 15.5px; }
  .step { grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; row-gap: 10px; align-items: center; padding: 18px 16px; }
  .step-copy { display: contents; }
  .step-num { font-size: 20px; padding-top: 0; }
  .step-title { margin: 0; }
  .step-text { grid-column: 1 / -1; }

  /* надписи разделов: номер «01 /» не остаётся один на строке */
  .section-tag-group { flex-wrap: nowrap; align-items: baseline; }
  .section-tag-group .sec-sub { white-space: normal; min-width: 0; }
  html[lang="tk"] .section-tag-group .sec-sub { letter-spacing: 0.01em; }

  /* последняя карточка: кнопка во всю ширину и в одну строку */
  .next-card { padding: 26px 18px; }
  .next-action { margin-top: 22px; }
  .next-action .cta-btn { width: 100%; justify-content: center; padding-left: 14px; padding-right: 14px; }
  html[lang="tk"] .next-action .cta-btn, html[lang="tk"] .m-cta { font-size: 10px; padding-left: 14px; padding-right: 14px; }

  /* бегущая строка: 40 с — та же скорость в px/с, что на ПК (владелец попросил быстрее «читаемых» 96 с) */
  .ticker-track { animation-duration: 40s; }

  /* подвал: разделы одной колонкой, подписи крупнее, без лишней пустоты */
  .site-footer { padding-top: 40px; }
  .footer-giant-caps-wrap { padding-bottom: 20px; margin-bottom: 32px; }
  .footer-links-list { grid-template-columns: minmax(0, 1fr); }
  .footer-links-list li, .footer-links-list a { overflow-wrap: normal; }
  .footer-links-list a { font-size: 13px; }
  .footer-col-head, .footer-bottom-inner, .contact-pill-link, .contact-pill-item, .contact-type { font-size: 12px; }
  .contact-pill-link, .contact-pill-item { flex-wrap: wrap; row-gap: 2px; }
  .contact-val { white-space: nowrap; }
}

/* Узкий телефон: H1 заметно крупнее H2 — RU «БИЗНЕС-» / «ПРОЦЕССОВ» отдельными строками */
@media (max-width: 480px) {
  html[lang="ru"] .hero-title .title-step { white-space: normal; }
  html[lang="ru"] .hero-title { font-size: calc((100vw - 2 * var(--gutter)) / 12.7); }
  html[lang="en"] .hero-title .title-line:first-child { white-space: normal; }
  html[lang="en"] .hero-title { font-size: calc((100vw - 2 * var(--gutter)) / 9.6); }
}

/* ≤520: надзаголовок в две строки без тире; «необязательно» — под заголовком анкеты */
@media (max-width: 520px) {
  .hero-kicker { flex-direction: column; align-items: flex-start; gap: 4px; }
  .lead-more-sum { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; padding: 10px 0; line-height: 1.35; }
  .lead-more-opt { grid-column: 1; grid-row: 2; }
  .lead-more-sum::after { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin-left: 0; }
}

/* Низкий экран (альбом, открытая клавиатура): окно заявки компактнее, меню без лишней кнопки */
@media (max-width: 900px) and (max-height: 520px) {
  .lead-top { padding-top: 6px; padding-bottom: 6px; }
  .lead-inner { padding-top: 14px; gap: 14px; }
  .lead-tag, .lead-intro .drawer-lead, .lead-intro .drawer-footer-note { display: none; }
  .lead-title { font-size: 22px; margin-bottom: 0; }
}
@media (max-width: 900px) and (max-height: 500px) {
  .is-nav-open .header-nav .nav-item { min-height: 44px; }
  .is-nav-open .header-nav .nav-cta { display: none; } /* в альбоме кнопка заявки уже есть в шапке */
}

/* Телефон боком (844×390, 740×360, 667×375): заголовок слева, робот справа, кнопка в первом экране */
@media (orientation: landscape) and (max-height: 500px) and (max-width: 900px) {
  .site-header { padding-top: 8px; padding-bottom: 8px; }
  .section-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); align-items: center; padding-top: 66px; }
  .hero-bottom-left { margin-right: 0; gap: 12px; }
  html .hero-title, html[lang="ru"] .hero-title { font-size: calc((57vw - 40px) / 14.2); line-height: 0.95; }
  html[lang="tk"] .hero-title { font-size: calc((57vw - 40px) / 17.4); line-height: 1.12; }
  html[lang="en"] .hero-title { font-size: calc((57vw - 40px) / 13.4); }
  html .hero-title .title-line { white-space: nowrap; }
  .hero-kicker { flex-direction: column; align-items: flex-start; row-gap: 2px; }
  .hero-desc { font-size: 14.5px; line-height: 1.5; max-width: none; }
  .hero-cta-row { margin-top: 4px; }
  .hero-visual { height: calc(100svh - 76px); margin: 0 var(--gutter) 0 0; }
  .scroll-hint { display: none; }
  .m-cta { display: none; } /* в шапке уже есть «Обсудить проект» */
}

/* Крупные телефоны боком шире 900 px (915×412, 932×430): ПК-раскладка, но кнопка — в первом экране */
@media (min-width: 901px) and (max-height: 500px) {
  .site-header { padding-top: 12px; padding-bottom: 12px; }
  .section-hero { height: auto; min-height: 100svh; justify-content: flex-start; align-items: center; padding: 70px 0 20px; }
  .hero-corner, .scroll-hint, .hero-chain-canvas { display: none; }
  .hero-bottom-left { position: relative; bottom: auto; left: auto; margin-left: var(--edge); gap: 10px; }
  .hero-desc { font-size: 14.5px; line-height: 1.5; }
  .hero-cta-row { margin-top: 2px; }
}
/* очень низкий экран (320×568): подсказка налезала бы на ссылку «Как проходит внедрение ↓» — её роль и так играет ссылка */
@media (max-width: 900px) and (max-height: 600px) {
  .scroll-hint { display: none; }
}
/* ПК-шапка на 901–1000 px (маленькое окно, планшет боком): меню, языки и кнопка помещаются в ширину
   (раньше «ОБСУДИТЬ ПРОЕКТ» уходила за правый край на 20–40 px) */
@media (min-width: 901px) and (max-width: 1100px) {
  html:not([lang="tk"]) .nav-item { font-size: 10.5px; letter-spacing: 0.03em; }
}
@media (min-width: 901px) and (max-width: 1000px) {
  .header-nav { gap: 2px; padding-left: 8px; padding-right: 8px; }
  .header-nav .nav-sep { display: none; }
  .header-right { gap: 8px; }
  .header-right .btn-primary-ghost { padding-left: 12px; padding-right: 12px; }
  html[lang="tk"] .nav-item { font-size: 9px; letter-spacing: 0; }
  html[lang="tk"] .header-right .btn-primary-ghost { font-size: 9.5px; padding-left: 10px; padding-right: 10px; }
}
/* TM: пункты меню длиннее русских — компактный кегль до 1300 px (на 1101–1300 шапка вылезала за край) */
@media (min-width: 1101px) and (max-width: 1300px) {
  html[lang="tk"] .header-nav { gap: 4px; padding: 8px 9px; }
  html[lang="tk"] .nav-item { font-size: 9.5px; letter-spacing: 0.02em; }
}
@media (min-width: 1301px) and (max-width: 1439px) {
  html[lang="tk"] .nav-item { font-size: 10px; letter-spacing: 0.02em; }
}

/* ==========================================================================
   v24. Телефон: логотип «MV / AUTOMATION», как на ПК; первый экран целиком в окне —
   бегущая строка видна внизу без прокрутки (iPhone 15 Pro и подобные)
   ========================================================================== */
@media (max-width: 480px) {
  .brand-sep, .brand-desc { display: inline; }
  .brand-link { gap: 6px; }
  .brand-desc { font-size: 9.5px; letter-spacing: 0.06em; }
  .header-right { gap: 8px; }
  .lang-btn { min-width: 40px; }
}
@media (max-width: 370px) { /* на 360 px «AUTOMATION» вплотную к языкам — только MV */
  .brand-sep, .brand-desc { display: none; }
}

/* Высота окна без панелей браузера (svh) минус бегущая строка; робот занимает остаток.
   Высота строки зафиксирована (на iPhone шрифт выше, чем в Chrome) — расчёт совпадает везде */
:root { --ticker-h: 42px; }
@media (max-width: 760px) {
  .ticker-track span { padding: 11px 0; line-height: 20px; }
}
@media (max-width: 760px) and (orientation: portrait) and (min-height: 600px) {
  .section-hero { height: calc(var(--hero-vh, 100svh) - var(--ticker-h)); min-height: 0; } /* --hero-vh — index.html, <head> */
  .hero-bottom-left { flex: none; gap: 12px; }
  .hero-visual { flex: 1 1 0; min-height: 0; height: auto; max-height: min(75.8vw, 340px); margin-top: 18px; }
  .hero-desc { font-size: 15px; line-height: 1.5; }
  .hero-link { display: none; } /* роль «листайте вниз» играет подсказка над роботом */
  html[lang="ru"] .hero-title .title-step { white-space: nowrap; }
  html[lang="ru"] .hero-title { font-size: calc((100vw - 2 * var(--gutter)) / 14.2); }
  .scroll-hint { margin-top: -50px; margin-bottom: 8px; }
}

/* v25. Телефон: надзаголовок — одна строка (название студии уже в логотипе),
   нижняя строка подвала — одной строкой «© 2026 MV AUTOMATION · ВСЕ ПРАВА ЗАЩИЩЕНЫ» */
@media (max-width: 760px) {
  .hero-kicker .kicker-sep, .hero-kicker .kicker-sub { display: none; }
  .footer-bottom-inner { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 6px; row-gap: 2px; font-size: 10px; letter-spacing: 0.02em; }
  .footer-bottom-inner > span { white-space: nowrap; }
  .footer-disclaimer::before { content: '·'; margin-right: 6px; opacity: 0.6; }
}
