/* ============================================================
   ATOM LAB - стили лендинга (фирменный стиль atom.kg)
   Значения (тайминги, easing, радиусы, тени, цвета) взяты из
   реального home.css atom.kg и адаптированы под светлую тему Lab.
   ============================================================ */

/* ---------- Переменные ---------- */
:root {
  /* Шрифты как на atom.kg: Manrope - интерфейс/меню/текст, Oswald - крупные заголовки */
  --font-display: "Oswald", sans-serif;
  --font-body: "Manrope", "Jost", "Questrial", sans-serif;
  --font-ui: var(--font-body);

  /* Hero / тёмные блоки */
  --violet-deep: #240762;   /* глубокий фон */
  --violet-glow: #2B08A2;   /* синеватый блик - источник свечения */
  --violet-mid:  #2B08A2;
  --blue-flow:   #1B2ED8;
  --blue-glow:   #4B6BFF;
  --indigo-deep: #240762;   /* фон atom.kg */

  /* Фирменная палитра, считанная с реальных рендеров atom. (§5 ТЗ №5) */
  --brand-violet:      #5B2D8E;  /* основной фиолетовый бренда */
  --brand-violet-deep: #240762;
  --brand-orange:      #E2661B;  /* акцентный оранжевый */
  --brand-graphite:    #2B2B33;
  --brand-cream:       #F5F1E8;

  /* Роли акцентов (на базе фирменной палитры, без неонового салата) */
  --accent:        #5B2D8E;  /* фиолетовый - иконки, активные состояния, ссылки */
  --accent-2:      #E2661B;  /* оранжевый - вторичный акцент */
  --accent-3:      #5f76e8;  /* синий отлив (сферы) */
  --accent-warm:   #E2661B;  /* единственный тёплый акцент */
  --accent-deep:   #240762;
  --grad-btn:  linear-gradient(90deg, #5B2D8E, #8A4FC4);                 /* фиолетовая заливка (табы, теги) */
  --wa: #25d366;

  /* Светлые секции (НЕ белый - серый с отливом) */
  --bg-light:   #EAEAEA;
  /* Фон блока преимуществ. Это же значение один-в-один получает растущий круг,
     поэтому после раскрытия стыка не видно. */
  --advantages-background: #f5f1fc;   /* верхний тон градиента .light-content */
  --bg-light-2: #F2F2F2;
  --surface:    #FFFFFF;
  --ink:        #12101A;
  --ink-muted:  #5A5766;

  /* Радиусы, тени, easing - из atom.kg */
  --radius:    14px;
  --radius-lg: 18px;
  --line:      rgba(18, 16, 26, .14);   /* тонкая линия - основной разделитель */
  --pill:      50px;
  --shadow-card:  0 1px 2px rgba(18, 16, 26, .04);
  --shadow-hover: 0 8px 24px -8px rgba(18, 16, 26, .16);
  --shadow-btn:   0 8px 22px rgba(226, 102, 27, .28);
  --ease:      cubic-bezier(.22, 1, .36, 1);     /* мягкий выход */
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);  /* лёгкий «пружинистый» */
  --container: 1200px;
}

/* ---------- Сброс и база ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* clip, а не hidden: не создаёт scroll-контейнер и не ломает position: sticky у hero */
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* Заголовки - Oswald, узкий гротеск: положительный трекинг, без отрицательного */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Ритм секций как на atom.kg - 90px */
.section { position: relative; padding: clamp(80px, 11vh, 140px) 0; overflow: hidden; }

/* надзаголовок-протокол: номер раздела + подпись, типографика как в правой колонке hero */
.section__eyebrow, .catalog__eyebrow, .visitus__eyebrow, .quiz__eyebrow {
  font-family: var(--font-ui); font-size: .72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .17em; color: var(--brand-violet);
  margin-bottom: 20px; text-align: left;
}
.section__eyebrow b { color: var(--accent-warm); font-weight: 500; }
/* нумерация квиза стоит над тёмным островом, но на светлом фоне секции */
.quiz .section__eyebrow { margin-bottom: 22px; }

.section__title, .catalog__title, .offer__title, .quiz__title, .visitus__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.8vw, 3.1rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: .01em;
  text-transform: uppercase;
  text-align: left;
  margin: 0 0 18px;
}
.section__lead, .catalog__lead,
.quiz__sub, .visitus__sub, .offer__text p, .network__text p {
  font-size: clamp(.98rem, 1.15vw, 1.1rem);
  line-height: 1.6;
  text-align: left;
}
.section__lead {
  max-width: 760px;
  color: var(--ink-muted);
  margin-bottom: 48px;
}
.section__subtitle {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 500;
  text-transform: uppercase;
  margin: 56px 0 28px;
}

/* Focus-состояния (доступность) */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Кнопки (стиль atom.kg: pill, uppercase, градиент) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 17px 34px;
  border: 2px solid transparent;
  border-radius: var(--pill);
  font-family: var(--font-body);   /* как на atom.kg - Manrope */
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: transform .2s, box-shadow .2s, background .25s, color .25s, border-color .25s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }

.btn--accent {
  background: var(--brand-orange);   /* акцентная кнопка - оранжевая, белый текст (§5) */
  color: #fff;
  box-shadow: 0 12px 40px rgba(226, 102, 27, .4);
}
.btn--accent:hover { box-shadow: 0 16px 50px rgba(226, 102, 27, .55); }

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
}
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

.btn--wa {
  background: var(--wa);
  color: #06331b;
  padding: 12px 22px;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, .55);
}
.btn--wa:hover { filter: brightness(1.05); }
.ico-wa { flex: none; }

/* ============================================================
   ФОНОВЫЕ ЭЛЕМЕНТЫ: сферы + частицы
   ============================================================ */
.spheres {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.sphere {
  position: absolute; border-radius: 50%;
  filter: blur(110px); opacity: .3; will-change: transform;
}
.sphere--1 {
  width: 480px; height: 480px; top: -120px; left: -80px;
  background: radial-gradient(circle at 30% 30%, var(--accent-3), var(--blue-flow));
  animation: float1 24s ease-in-out infinite;
}
.sphere--2 {
  width: 400px; height: 400px; bottom: -100px; right: -60px;
  background: radial-gradient(circle at 40% 40%, var(--accent), var(--violet-mid));
  animation: float2 28s ease-in-out infinite;
}
.sphere--3 {
  width: 320px; height: 320px; top: 40%; right: 20%;
  background: radial-gradient(circle at 50% 50%, var(--accent-2), var(--violet-deep));
  animation: float3 20s ease-in-out infinite; opacity: .22;
}
.spheres--light .sphere { opacity: .09; filter: blur(120px); }

@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,40px) scale(1.08); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-50px,-30px) scale(1.12); } }
@keyframes float3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-40px,50px) scale(.92); } }

/* Летающие серые частицы - почти невидимые, медленно дрейфуют */
.particles { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.particle {
  position: absolute;
  width: var(--s, 3px); height: var(--s, 3px);
  border-radius: 50%;
  background: currentColor;
  opacity: var(--o, .16);
  animation: pdrift var(--d, 24s) ease-in-out var(--delay, 0s) infinite;
  will-change: transform;
}
.hero .particles, .section .particles { color: #6b6b7a; }
@keyframes pdrift {
  0%,100% { transform: translate(0, 0); }
  50%     { transform: translate(var(--dx, 30px), var(--dy, -24px)); }
}

/* SVG-шум поверх hero */
.noise {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- (шапка удалена: её роль выполняет липкая .showcase__bar) ---- */
.header__inner { display: none; }

/* Логотип: настоящий webp + разделитель + LAB (Oswald) */
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink-dark, #1A1A20); }
.logo__img { height: 30px; width: auto; display: block; }
.logo__divider { width: 1px; height: 26px; background: rgba(26, 26, 32, .28); }
.logo__lab {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1A1A20;
  line-height: 1;
}

.nav { display: flex; gap: 28px; }
.nav a {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(26, 26, 32, .78);
  font-weight: 500;
  font-size: .95rem;
  position: relative;
  transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--accent-warm);
  transition: width .25s var(--ease);
}
.nav a:hover { color: #1A1A20; }
.nav a:hover::after { width: 100%; }

/* Бургер */
.burger { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px; padding: 8px; background: none; border: none; }
.burger span { display: block; height: 2px; background: #1A1A20; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобильное меню */
.mobile-menu {
  position: fixed; inset: 72px 0 0 0; z-index: 99;
  background: linear-gradient(160deg, var(--indigo-deep), var(--violet-mid));
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 28px; padding: 40px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 24px; text-align: center; }
.mobile-menu nav a {
  color: #fff; font-family: var(--font-display); font-weight: 500;
  font-size: 1.7rem; text-transform: uppercase; letter-spacing: 0.04em;
}

/* ============================================================
   БЛОК 1. HERO - интерактивная продуктовая витрина
   Цвета состояний интерполируются в JS и пишутся в переменные:
   --bg "r,g,b" (базовый цвет), --glow, --ink (текст), --ink-inv (инверсия).
   ============================================================ */
/* ЕДИНЫЙ фон на всю цветную зону - sticky-слой; секции лежат на нём прозрачными */
.stage { position: relative; background: rgb(var(--bg)); overflow-x: clip; }   /* клип только по горизонтали: sticky не ломается */
.stage__bg {
  position: sticky; top: 0; height: 100svh; z-index: 0;
  /* ПЛОСКАЯ заливка: при смене слайда перерисовывается только сплошной цвет.
     Блик и виньетка вынесены в псевдоэлементы - они статичны и растрируются один раз,
     иначе каждый кадр твина пересчитывал полноэкранный градиент + inset-тень (экран мигал). */
  background: rgb(var(--bg));
  transform: scale(var(--stage-scale, 1));
  filter: saturate(var(--stage-sat, 1));
}
.stage__bg::before,
.stage__bg::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
/* Свечение и виньетка - сплошная заливка под статичной маской.
   Форма градиента растрируется один раз; при смене слайда меняется
   только цвет заливки, поэтому твин не пересчитывает полноэкранные
   многоступенчатые градиенты каждый кадр. */
/* центральное свечение за товаром - цветом текущего состояния */
.stage__bg::before {
  background: rgb(var(--glow)); opacity: .34;
  -webkit-mask-image: radial-gradient(58% 52% at 50% 47%, #000 0%, transparent 100%);
          mask-image: radial-gradient(58% 52% at 50% 47%, #000 0%, transparent 100%);
}
/* затемнение к краям */
.stage__bg::after {
  background: rgb(var(--edge));
  -webkit-mask-image: radial-gradient(118% 108% at 50% 46%, transparent 42%, #000 100%);
          mask-image: radial-gradient(118% 108% at 50% 46%, transparent 42%, #000 100%);
}

/* Витрина - без собственного фона, прозрачная поверх .stage__bg */
.hero {
  position: relative; z-index: 1;
  min-height: 100svh; margin-top: -100svh;   /* лечь поверх sticky-фона */
  --pad: clamp(28px, 3.5vw, 64px);
  color: rgb(var(--ink));
  background: none;
  overflow: visible;                         /* орбиты наплывают на блок «Лаборатория» */
}
/* контейнер контента - прозрачный, во весь экран (позиционный контекст) */
.hero__card {
  position: absolute; inset: 0; z-index: 4;   /* поверх слоя орбит (3) */
  /* мягкий уход hero: контент растворяется на последней трети прокрутки,
     иначе товар и нижний ряд просто обрезаются краем экрана */
  opacity: clamp(0, calc((1 - var(--gp, 0)) * 2.5), 1);
  transform: translateY(calc(var(--gp, 0) * -24px));
}

/* свечение за товаром */
/* два еле заметных световых пятна по краям - тем же приёмом, без blur */
.showcase__glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: rgb(var(--glow)); opacity: .14;
  -webkit-mask-image: radial-gradient(26% 30% at 8% 22%, #000, transparent 100%),
                      radial-gradient(30% 34% at 94% 76%, #000, transparent 100%);
          mask-image: radial-gradient(26% 30% at 8% 22%, #000, transparent 100%),
                      radial-gradient(30% 34% at 94% 76%, #000, transparent 100%);
  -webkit-mask-composite: source-over; mask-composite: add;
}

/* холст частиц - между фоном и контентом */
.hero-particles { position: sticky; top: 0; margin-top: -100svh; height: 100svh; width: 100%; display: block; z-index: 1; pointer-events: none; }

/* --- Орбиты: готовые изображения-ореолы вокруг товара ---
   Размер задан в долях области витрины, чтобы орбита охватывала силуэт
   товара, а не экран. Ядро лежит внутри обёртки и масштабируется вместе
   с ней, поэтому при росте по скроллу они не расходятся. --- */
.orbits {
  position: absolute; left: 0; right: 0; top: 0; height: 100svh;
  pointer-events: none; overflow: clip; z-index: 3;
}
.orbit {
  position: absolute; left: 50%; top: 50%;
  width: var(--w);
  translate: var(--ox, 0px) var(--oy, 0px);      /* центры разведены, не концентрически */
  transform: translate(-50%, -50%) scale(var(--g, .9));
}
.orbit--o1 { aspect-ratio: 1410 / 1146; }
.orbit--o2 { aspect-ratio: 1379 / 1215; }
.orbit__img {
  width: 100%; height: 100%; display: block;
  opacity: calc(1 - var(--gp, 0) * .55);
}
/* на светлых состояниях светлая линия пропадает - инвертируем в тёмную */
.chromatic.is-light .orbit__img { filter: invert(1) opacity(.35); }

.orbit__core {
  position: absolute; left: 50%; top: 50%;
  width: var(--sz); height: var(--sz);
  margin: calc(var(--sz) / -2) 0 0 calc(var(--sz) / -2);
  transform: translate3d(var(--x, 0px), var(--y, 0px), 0);
  filter: blur(1.2px);
  will-change: transform;
}
.orbit__core img { width: 100%; height: 100%; }

/* На светлых состояниях логотип (светлый webp) инвертируем в тёмный */
/* На светлых состояниях логотип (светлый webp) инвертируем в тёмный.
   Шапка живёт вне .chromatic, поэтому флаг дублируется классом на <html>. */
.chromatic.is-light .logo__img { filter: none; }

/* --- Навигация: верхний ряд по вьюпорту --- */
.showcase__bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;   /* липкая на весь сайт */
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: clamp(14px, 1.8vw, 26px) clamp(20px, 3vw, 44px);
  transition: background .4s var(--ease), backdrop-filter .4s, padding .3s var(--ease), box-shadow .4s;
}
/* при скролле панель поджимается и получает подложку, чтобы текст не спорил с контентом */
.showcase__bar.is-stuck {
  padding-top: clamp(10px, 1.2vw, 16px); padding-bottom: clamp(10px, 1.2vw, 16px);
  background: rgba(var(--ink-inv), .62);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(var(--ink), .10);
}
.logo--sc { flex-direction: column; align-items: flex-start; gap: 3px; }
.logo__marks { position: relative; display: block; width: 82px; aspect-ratio: 2180 / 1038; }
.logo__marks .logo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .25s; }
.logo--sc .logo__img { height: 39px; width: auto; }
.logo__img--black { opacity: 0; }
.logo__img--white { opacity: 1; }
html.is-hero-light .showcase__bar .logo__img--white,
html.is-light-zone .showcase__bar .logo__img--white { opacity: 0; }
html.is-hero-light .showcase__bar .logo__img--black,
html.is-light-zone .showcase__bar .logo__img--black { opacity: 1; }
.logo__sub { font-family: var(--font-body); font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: rgb(var(--ink)); opacity: .7; }
/* каждый пункт - самостоятельная капсула, общей подложки нет */
.pill-nav { display: flex; gap: 9px; align-items: center; }
.pill-nav__item {
  padding: 9px 17px; cursor: pointer; border-radius: var(--pill);
  background: transparent; border: 1px solid rgba(var(--ink), .22);
  font-family: var(--font-ui); font-weight: 500; font-size: .82rem;
  color: rgba(var(--ink), .82); white-space: nowrap;
  transition: color .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.pill-nav__item:hover {
  color: rgb(var(--ink));
  background: rgba(var(--ink), .10);
  border-color: rgba(var(--ink), .4);
}
.pill-nav__item.is-active {
  background: rgb(var(--ink)); border-color: rgb(var(--ink)); color: rgb(var(--ink-inv));
}
.showcase__actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  color: rgb(var(--ink)); background: rgba(var(--ink), .1); border: 1px solid rgba(var(--ink), .25);
  transition: background .2s, transform .2s;
}
.icon-btn:hover { background: rgba(var(--ink), .2); transform: translateY(-2px); }
.burger--hero { display: none; }

/* --- Стрелки листания: в правом нижнем углу, рядом с превью --- */
/* кнопки стоят по центру правой колонки и на одной линии с круглыми
   значками соцсетей слева: те 36px, эти 42px - отсюда сдвиг на 3px */
.showcase__arrows {
  position: absolute; z-index: 7;
  right: var(--pad);
  bottom: calc(var(--pad) - 3px); top: auto;
  display: flex; gap: 8px; pointer-events: auto;
}
.sc-arrow {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(var(--ink), .3); background: rgba(var(--ink), .06);
  color: rgb(var(--ink)); font-size: 22px; line-height: 1; display: grid; place-items: center;
  transition: background .2s, transform .2s;
}
.sc-arrow:hover { background: rgba(var(--ink), .18); transform: translateY(-2px); }

/* --- Левая колонка --- */
.showcase__left { position: absolute; z-index: 3; left: var(--pad); top: 50%; transform: translateY(-50%); width: min(26%, 310px); }
.showcase__copy { display: block; }
.showcase__title {
  font-family: var(--font-display); font-weight: 500; text-transform: none;
  font-size: clamp(1.5rem, 2.3vw, 2.3rem); line-height: 1.1; color: rgb(var(--ink));
  margin-bottom: 16px; transition: opacity .3s ease;
}
.showcase__desc { font-family: var(--font-body); color: rgba(var(--ink), .82); font-size: clamp(.9rem, 1vw, 1rem); line-height: 1.5; margin-bottom: 22px; max-width: 34ch; transition: opacity .3s ease; }
.btn--light { background: #fff; color: #1A1A20; box-shadow: 0 12px 30px rgba(0, 0, 0, .22); }
.btn--light:hover { box-shadow: 0 16px 40px rgba(0, 0, 0, .3); }

/* --- Центр: диагональный конвейер --- */
.showcase__stage { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.showcase__shadow {
  position: absolute; left: 50%; bottom: 26%; transform: translateX(-50%);
  width: 17%; height: 26px; border-radius: 50%; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .38), transparent 70%);
  filter: blur(7px); animation: scShadow 5s ease-in-out infinite;
}
.showcase__item {
  position: absolute; inset: 0; margin: 0; padding: 0; border: 0; background: none;
  display: grid; place-items: center; cursor: pointer;
  /* по умолчанию - позиция +1, но невидимо (готов к появлению) */
  transform: translate(var(--x, 34%), var(--y, 32%)) scale(var(--sc, .3));
  opacity: var(--op, 0); filter: blur(var(--bl, 0px));
  transition: transform .9s cubic-bezier(.65, 0, .35, 1), opacity .9s cubic-bezier(.65, 0, .35, 1), filter .9s cubic-bezier(.65, 0, .35, 1);
  pointer-events: none;
}
.showcase__item.no-anim { transition: none !important; }   /* невидимый «перепрыг» при рециклинге слота */
.showcase__float {
  display: grid; place-items: center; width: 100%; height: 100%;
  animation: scFloat 5s ease-in-out infinite;      /* лёгкая левитация */
}
.showcase__item img { backface-visibility: hidden;
  /* высота в svh, а не в %: .hero на узких экранах растягивается контентом,
     и проценты давали товар выше вьюпорта */
  width: 33%; height: 63svh; object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .42));
}
/* вертикальные рендеры (форма, фартук, роллап) - размер по высоте, чтобы не выпадали из ритма */
.showcase__item.is-tall img { width: auto; height: 68svh; max-width: 30%; }
.showcase__item.is-active { --x: 0%;   --y: 0%;   --sc: 1;   --op: 1; --bl: 0px; z-index: 5; pointer-events: auto; }
/* следующий товар не показывается превью - он ждёт за кадром и влетает
   по диагонали снизу-справа, как уходящий улетает вверх-влево */
.showcase__item.is-next   { --x: 40%;  --y: 56%;  --sc: .45; --op: 0; --bl: 8px; z-index: 4; }
.showcase__item.is-prev   { --x: -40%; --y: -56%; --sc: .347; --op: 0; --bl: 8px; z-index: 3; }
@keyframes scFloat  { 0%,100% { transform: translateY(-10px); } 50% { transform: translateY(10px); } }
@keyframes scShadow { 0%,100% { transform: translateX(-50%) scaleX(1); opacity: .38; } 50% { transform: translateX(-50%) scaleX(1.15); opacity: .24; } }

/* --- Правая колонка (только название + нанесение + тираж) --- */
.showcase__right { position: absolute; z-index: 3; right: var(--pad); top: 50%; transform: translateY(-50%); width: min(280px, 26%); text-align: right; }
.showcase__cat { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: clamp(1.05rem, 1.5vw, 1.55rem); letter-spacing: .02em; color: rgb(var(--ink)); margin-bottom: 14px; white-space: nowrap; transition: opacity .3s ease; }
.showcase__specs { display: flex; flex-direction: column; gap: 7px; font-family: var(--font-display); transition: opacity .3s ease; }
.showcase__specs div { display: flex; justify-content: flex-end; gap: 6px; font-size: .82rem; }
.showcase__specs dt { color: rgba(var(--ink), .6); text-transform: uppercase; letter-spacing: .02em; }
.showcase__specs dt::after { content: "-"; margin-left: 6px; }
.showcase__specs dd { color: rgb(var(--ink)); font-weight: 500; }

/* --- Низ: слоган по центру, соцсети слева, стрелки+превью справа --- */
.showcase__foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 7; pointer-events: none;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding: var(--pad);
}
.hero-social { display: flex; gap: 10px; pointer-events: auto; }
.hero-social a {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  color: rgb(var(--ink)); background: rgba(var(--ink), .1); border: 1px solid rgba(var(--ink), .22);
  transition: background .2s, transform .2s;
}
.hero-social a:hover { background: rgba(var(--ink), .24); transform: translateY(-2px); }
/* стрелки вышли из потока, поэтому слоган центрируем по экрану, а не по остатку */
.showcase__slogan {
  position: absolute; left: 50%; bottom: var(--pad); transform: translateX(-50%);
  text-align: center; font-family: var(--font-body); line-height: 1.4; color: rgb(var(--ink));
}
.showcase__slogan-main { display: block; font-size: .95rem; font-weight: 600; }   /* 1-я строка - крупнее и плотнее */
.showcase__slogan-sub { display: block; font-size: .78rem; opacity: .7; margin-top: 2px; }  /* 2-я - мелкая подпись */

/* Глобальная шапка появляется только после hero */

/* --- Мобильный hero (до 900px): контент в колонку на весь экран --- */
@media (max-width: 900px) {
  .hero { --pad: 20px; }
  .hero__card { display: flex; flex-direction: column; padding: 82px var(--pad) var(--pad); }
  .hero::after { box-shadow: inset 0 0 120px 30px rgba(0, 0, 0, .3); }
  .showcase__bar { padding: 12px 16px; }   /* остаётся fixed: панель липкая на всём сайте */
  .pill-nav { display: none; }
  .showcase__actions .icon-btn { display: none; }
  .burger--hero { display: grid; place-items: center; width: 44px; height: 44px; border: none; background: none; }
  .burger--hero span { display: block; width: 24px; height: 2px; background: rgb(var(--ink)); border-radius: 2px; margin: 2px 0; }
  /* На мобильном раскрываем колонку: заголовок и CTA становятся
     самостоятельными элементами flex-раскладки вокруг товара. */
  .showcase__left { display: contents; }
  /* Рекламный заголовок и описание образуют единый правый верхний блок. */
  .showcase__copy {
    position: absolute; z-index: 8; top: 84px; right: var(--pad);
    width: min(72vw, 320px); text-align: right;
  }
  .showcase__title {
    position: static; width: auto; margin: 0; text-align: inherit;
    font-size: clamp(1rem, 4.25vw, 1.4rem); line-height: 1.12;
  }
  .showcase__desc {
    position: static; width: auto; margin: 5px 0 0; max-width: none;
    text-align: inherit; font-size: clamp(.64rem, 2.45vw, .78rem); line-height: 1.4;
  }
  .showcase__cta {
    order: 6; align-self: center; margin-top: 18px;
    width: auto; min-width: 0; padding: 12px 22px; font-size: .78rem;
  }
  .showcase__stage { position: relative; inset: auto; order: 2; flex: 1 1 auto; min-height: 38vh; }
  .showcase__item img { backface-visibility: hidden; width: 52%; height: 72%; transform: translateY(25px); }
  .showcase__item.is-tall img { width: auto; height: 74%; max-width: 46%; }
  .showcase__item.is-next { --x: 20%; --y: 20%; --sc: .28; }
  .showcase__item.is-prev { --x: -20%; --y: -30%; }
  .showcase__shadow { bottom: 4%; }
  .showcase__right {
    display: contents;
  }
  .showcase__cat {
    position: static; order: 4; margin: 7px auto 0;
    width: 100%; text-align: center; font-size: .9rem;
  }
  .showcase__specs {
    position: static; order: 5; width: 100%; margin-top: 3px;
    align-items: center; gap: 3px;
  }
  .showcase__specs div { justify-content: center; font-size: .7rem; }
  .showcase__foot { position: static; order: 7; padding: 14px 0 0; pointer-events: auto; }
  /* в колонку возвращаем слоган и стрелки в поток; слоган - отдельной строкой,
     иначе он зажимается между соцсетями и стрелками и рвётся на 6 строк */
  .showcase__foot { flex-wrap: wrap; row-gap: 12px; }
  .showcase__slogan { position: static; transform: none; order: -1; width: 100%; }
  /* Навигация товара и соцсети стоят на одной нижней оси. */
  .showcase__arrows {
    position: absolute; right: var(--pad); bottom: calc(var(--pad) - 3px);
    transform: none; margin-left: 0;
  }
  /* Мобильная сцена: орбиты заметнее, а ядра не перетягивают внимание. */
  .orbits {
    opacity: .78;
    transform: translateY(-8svh) scale(1.65);
    transform-origin: 50% 50%;
  }
  /* В макете обе траектории одного визуального диаметра.
     Перебиваем разные desktop-значения --w, заданные inline. */
  .orbit--o1,
  .orbit--o2 {
    --w: 56% !important;
  }
  .orbit__core { scale: .5; }
}

/* Почти квадратные desktop/tablet-окна: освобождаем центр для товара,
   а весь информационный блок собираем в правой колонке. */
@media (min-width: 901px) and (max-aspect-ratio: 3 / 2) {
  .showcase__left { display: contents; }
  .showcase__copy {
    position: absolute; z-index: 8; right: var(--pad); top: 27%;
    width: min(34vw, 410px); text-align: right;
  }
  .showcase__title { font-size: clamp(1.55rem, 3vw, 2.45rem); }
  .showcase__desc { margin: 8px 0 0 auto; max-width: 38ch; }
  .showcase__right {
    right: var(--pad); top: 51%; width: min(34vw, 410px);
    transform: none; text-align: right;
  }
  .showcase__specs { align-items: flex-end; }
  .showcase__cta {
    position: absolute; z-index: 8; right: var(--pad); top: 64%;
    width: auto; margin: 0;
  }
  .showcase__item img { width: 29%; height: 56svh; }
  .showcase__item.is-tall img { height: 59svh; max-width: 27%; }
  .showcase__item.is-active { --x: -13%; }
  .showcase__shadow { left: 39%; width: 15%; }
}
@media (max-width: 560px) {
  .showcase__cta { width: auto; }
}
/* prefers-reduced-motion: сферы и частицы статичны */
@media (prefers-reduced-motion: reduce) {
  .orbit__orb, .orbit__orb::before, .showcase__item img,
  .lab__badge svg, }

/* ============================================================
   БЛОК «ЛАБОРАТОРИЯ» - прозрачный, лежит на общем фоне .stage__bg
   ============================================================ */
.lab {
  position: sticky; top: 0; z-index: 1; color: rgb(var(--ink));   /* закреплён, пока наезжает круг */
  background: none;   /* собственного фона НЕТ - виден единый .stage__bg */
  padding: clamp(96px, 14vh, 200px) clamp(28px, 3.5vw, 64px) clamp(64px, 8vw, 120px);
}
.lab__inner { max-width: none; margin: 0; }   /* во всю ширину - как раскладка hero */
.lab__title {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .02em;
  text-align: left; line-height: 1.06; font-size: clamp(1.7rem, 3.4vw, 3.1rem);
  margin: 0;
}
/* три зоны, как в hero: текст слева - объект по центру - информация справа */
.lab__cols {
  display: grid;
  grid-template-columns: auto minmax(0, 780px);
  justify-content: start;
  align-items: start;
  gap: clamp(32px, 4vw, 72px);
}
/* круглый вращающийся текстовый бейдж */
.lab__badge { width: clamp(160px, 15vw, 210px); aspect-ratio: 1/1; justify-self: center; }
.lab__badge svg { width: 100%; height: 100%; animation: spinCW 22s linear infinite; }
.lab__badge text { fill: rgba(var(--ink), .5); font-family: var(--font-ui); font-weight: 400; font-size: 11px; letter-spacing: 3.4px; text-transform: uppercase; }
.lab__text { max-width: 780px; }
.lab__title, .lab__text { padding-top: 0; }
.lab__text p { font-family: var(--font-body); font-size: clamp(.98rem, 1.2vw, 1.12rem); line-height: 1.6; color: rgba(var(--ink), .8); }
.lab__text p + p { margin-top: 14px; }
/* первая строка - акцентная: крупнее и плотнее */
.lab__accent { font-size: clamp(1.05rem, 1.5vw, 1.32rem) !important; color: rgb(var(--ink)) !important; margin-bottom: 18px; }
.lab__accent strong { font-weight: 700; }
.lab__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.lab__social { display: flex; gap: 10px; }
.lab__social a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: rgb(var(--ink));
  background: rgba(var(--ink), .1); border: 1px solid rgba(var(--ink), .22); transition: background .2s, transform .2s;
}
.lab__social a:hover { background: rgba(var(--ink), .24); transform: translateY(-2px); }
/* кнопки-пилюли (стиль Our Story): тонкая обводка, полупрозрачная заливка */
.pill-link {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 11px 18px; border-radius: var(--pill);
  font-family: var(--font-ui); font-weight: 500; font-size: .82rem;
  color: rgb(var(--ink)); border: 1px solid rgba(var(--ink), .3); background: rgba(var(--ink), .06);
  transition: background .2s, transform .2s;
}
.pill-link:hover { background: rgba(var(--ink), .16); transform: translateY(-2px); }
/* главная из трёх - залитая, чтобы вести к каталогу */
.pill-link--solid {
  background: rgb(var(--ink)); color: rgb(var(--ink-inv));
  border-color: transparent; font-weight: 600;
}
.pill-link--solid:hover { background: rgb(var(--ink)); filter: brightness(.92); }
@keyframes labArrow { 0%,100% { transform: translateY(0); opacity: .6; } 50% { transform: translateY(6px); opacity: 1; } }

/* ============================================================
   РАСКРЫТИЕ СВЕТЛОЙ ЧАСТИ - светлый занавес с круговой маской из центра
   Фон - СПЛОШНОЙ цвет; растущий круг живёт ТОЛЬКО в mask-image (иначе - светящееся пятно)
   ============================================================ */

/* ============================================================
   СВЕТЛЫЕ СЕКЦИИ
   ============================================================ */

/* Невесомые плашки-карточки (полупрозрачные, blur-подложка, тонкая обводка) */
.cards { display: grid; gap: 24px; position: relative; z-index: 2; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(226, 102, 27, .45); }
.card__icon { color: var(--accent); display: inline-flex; margin-bottom: 18px; }
.card__title { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; font-size: 1.15rem; line-height: 1.15; margin-bottom: 12px; }
.card__text { color: var(--ink-muted); }

/* Карточка каталога с товаром: светлая подложка #F2F2F2 под изделием, без обводок */
.card--product { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card--product .card__media { border-bottom: 1px solid var(--line); }
.card--product .card__title { padding: 0 26px; margin-top: 22px; }
.card--product .card__text { padding: 0 26px 28px; }
.card__media {
  background: var(--bg-light-2);            /* #F2F2F2 */
  padding: 22px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  aspect-ratio: 4 / 3;
  transition: background .35s var(--ease);
}
.card__media img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  transition: transform .35s var(--ease);
}
.card__media--pair img { max-width: 50%; }
.card--product:hover .card__media { background: #E6E6E6; }        /* подложка чуть темнеет */
.card--product:hover .card__media img { transform: translateY(-6px) scale(1.05); }  /* товар приподнимается и растёт */

.card__num { display: block; font-family: var(--font-display); font-weight: 600; font-size: 2.4rem; color: var(--accent-warm); line-height: 1; margin-bottom: 10px; }
.card__tag { display: inline-block; font-family: var(--font-ui); font-weight: 500; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-warm); border: 1px solid rgba(226,102,27,.4); padding: 3px 10px; border-radius: var(--pill); vertical-align: middle; margin-left: 8px; }

/* ============================================================
   БЛОК 5. ГАЛЕРЕЯ
   ============================================================ */

/* ---- Орбитальная нить на стыках секций: тонкая дуга, сшивающая страницу ---- */
.section::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  left: 50%; top: 0; width: 150vmax; aspect-ratio: 1/1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(18, 16, 26, .05); border-radius: 50%;
}
.production::before { left: 30%; }
.quiz::before { left: 70%; }

/* ============================================================
   АНИМАЦИИ ПОЯВЛЕНИЯ
   ============================================================ */
.fx-up { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.fx-up.is-visible { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ============================================================
   МЕДИАЗАПРОСЫ
   ============================================================ */
@media (max-width: 1024px) {
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
    }

@media (max-width: 768px) {
  .pill-nav { display: none; }
  .burger--hero { display: grid !important; }
  .burger { display: flex; }
  .section { padding: 68px 0; }
    }

@media (max-width: 560px) {
  .cards--3, .cards--2 { grid-template-columns: 1fr; }
    }

/* ============================================================
   ДОСТУПНОСТЬ: prefers-reduced-motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .fx-up { opacity: 1; transform: none; }
  .particle { display: none; }
}

/* Компактная кнопка WhatsApp в светлой шапке */
.header__cta { padding: 9px 18px; font-size: .85rem; border-radius: 999px; }
.header__cta .ico-wa { width: 16px; height: 16px; }

/* «Лаборатория» на узких экранах - в колонку */
@media (max-width: 1100px) {
  .lab__cols { grid-template-columns: 1fr; gap: 28px; }
  .lab__text { justify-self: start; }
  .lab__row { flex-wrap: wrap; }
}

/* Липкая панель живёт вне .stage, где определены --ink/--ink-inv, поэтому
   подхватывает дубли, которые JS пишет на <html> при смене состояния hero.
   Без этого rgba(var(--ink), …) в шапке не резолвится и правило отбрасывается. */
.showcase__bar {
  --ink: var(--ink-live, 255, 255, 255);
  --ink-inv: var(--ink-inv-live, 26, 26, 32);
}
/* в светлой зоне чернила инвертируются - панель становится тёмной на светлом */
html.is-light-zone .showcase__bar {
  --ink: 18,16,26;
  --ink-inv: 234,234,234;
}


/* ============================================================
   ЖИВЫЕ ЗАСВЕТЫ - фон тёмно-фиолетовых блоков не плоский:
   поверх базы #240762 медленно переливаются пятна #2B08A2.
   Двигаются только transform, длительности разные, чтобы цикл
   не читался; пятна держатся у краёв, центр остаётся спокойным.
   ============================================================ */
.glowfield {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
}
.glowfield i {
  position: absolute; display: block; border-radius: 50%;
  background: radial-gradient(circle, var(--violet-glow) 0%, transparent 70%);
  will-change: transform;
}
/* три пятна: разные края, размеры и периоды */
.glowfield i:nth-child(1) {
  width: 52%; padding-bottom: 52%; left: -14%; top: -12%;
  opacity: .5; filter: blur(90px);
  animation: glowDrift1 19s ease-in-out infinite alternate;
}
.glowfield i:nth-child(2) {
  width: 46%; padding-bottom: 46%; right: -10%; top: 34%;
  opacity: .42; filter: blur(105px);
  animation: glowDrift2 26s ease-in-out infinite alternate;
}
.glowfield i:nth-child(3) {
  width: 58%; padding-bottom: 58%; left: 18%; bottom: -26%;
  opacity: .35; filter: blur(120px);
  animation: glowDrift3 33s ease-in-out infinite alternate;
}
@keyframes glowDrift1 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(9%, 7%, 0) scale(1.15); }
}
@keyframes glowDrift2 {
  from { transform: translate3d(0, 0, 0) scale(1.1); }
  to   { transform: translate3d(-8%, -10%, 0) scale(1); }
}
@keyframes glowDrift3 {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to   { transform: translate3d(11%, -8%, 0) scale(1.15); }
}
/* содержимое блоков лежит поверх засветов */
.promo__body, .promo__btn, .offer__pin, .quiz__inner { position: relative; z-index: 1; }
.quiz__box > *:not(.glowfield) { position: relative; z-index: 1; }
/* в hero засветы только на фиолетовых состояниях */
.stage .glowfield { opacity: 0; transition: opacity .6s var(--ease); }
.chromatic.is-violet .glowfield { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .glowfield i { animation: none !important; }
}

/* ============================================================
   SCROLL-DRIVEN ПЕРЕХОД: растущий идеальный круг
   Высокая секция + sticky-экран; масштаб круга привязан к прогрессу (main.js).
   ============================================================ */
.transition { position: relative; height: 260vh; z-index: 5; background: transparent; }
.transition__pin {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  background: transparent;
}
/* круг: идеальная окружность, центр всегда на 50% по горизонтали,
   большая часть изначально ниже нижней границы экрана */
.transition__circle {
  position: absolute; left: 50%; top: 76vh;
  width: 62vw; aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--advantages-background);   /* ровно тот же фон, что у секции преимуществ */
  border: 0; box-shadow: none;
  transform: translateX(-50%) scale(var(--cs, .9));
  transform-origin: 50% 50%;
  will-change: transform;
}
.transition__particles { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.transition__scroll {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(24px, 6vh, 72px);
  margin: 0; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-ui); font-size: .72rem; text-transform: uppercase; letter-spacing: .16em;
  color: rgba(18, 16, 26, .62);
  opacity: var(--cscroll, 0); transition: opacity .3s linear;
}
/* Колба - готовое изображение; кипение сверху, обрезано по форме жидкости.
   Полигон снят с самой картинки, поэтому пузырьки не выходят за стекло. */
.flask { position: relative; display: block; width: 60px; line-height: 0; --rise: 37px; --drift: 2.6px; }
.flask--lg { width: 68px; --rise: 42px; --drift: 3px; }
/* Колба именно в межсекционном переходе компактнее базового компонента. */
.transition__scroll > .flask { width: 40px; --rise: 25px; --drift: 1.8px; }
.flask__img { width: 100%; height: auto; display: block; }
.flask__boil, .flask__glow {
  position: absolute; inset: 0; pointer-events: none;
  clip-path: polygon(23.9% 53.2%, 17.4% 65%, 10.8% 76.7%, 5.9% 88.4%, 20.6% 95.4%,
                     77.7% 95.4%, 90.8% 88.4%, 85.9% 76.7%, 82.6% 65%, 74.5% 53.2%);
}
.flask__boil i {
  position: absolute; left: var(--x); bottom: 7%;
  width: var(--sz); aspect-ratio: 1 / 1; border-radius: 50%;
  background: rgba(255, 255, 255, .62);
  animation: flaskBubble var(--dur, 1.5s) ease-in infinite;
  animation-delay: var(--d, 0s);
  will-change: transform, opacity;
}
/* всплывает от дна, у поверхности гаснет и не выскакивает за неё */
@keyframes flaskBubble {
  0%   { transform: translate(0, 0) scale(.5); opacity: 0; }
  10%  { opacity: .68; }
  45%  { transform: translate(var(--drift), calc(var(--rise) * -.45)) scale(.95); opacity: .6; }
  85%  { opacity: .3; }
  100% { transform: translate(calc(var(--drift) * -1), calc(var(--rise) * -1)) scale(1.1); opacity: 0; }
}
/* очень слабая реакция над жидкостью */
.flask__glow {
  background: radial-gradient(62% 48% at 50% 64%, #8B5CF6, transparent 72%);
  opacity: .24;
  animation: flaskGlow 1.9s ease-in-out infinite alternate;
}
@keyframes flaskGlow { from { opacity: .24; } to { opacity: .44; } }
@media (prefers-reduced-motion: reduce) {
  .flask__boil i, .flask__glow { animation: none; }
  .flask__boil i { opacity: .4; }
}

@media (max-width: 900px) {
  .transition__scroll > .flask { width: 30px; --rise: 18.5px; --drift: 1.3px; }
}

@media (prefers-reduced-motion: reduce) {
  .transition { height: 100vh; }
  .transition__circle { transform: translateX(-50%) scale(6); }
}

/* ============================================================
   ЕДИНАЯ СВЕТЛАЯ СЕКЦИЯ: «Ядро ATOM Lab» + «Каталог возможностей»
   Один фон, одно свечение, орбитальная графика - продолжение hero.
   ============================================================ */
.light-content {
  /* следующий блок сайта начинается с белого низа градиента - стыка не будет */
  position: relative; z-index: 6; isolation: isolate;   /* выше .transition (5): орбиты наплывают на слайд сверху */
  /* базовый градиент: сверху ровно #f5f1fc - тот же цвет, что у круга перехода */
  background: linear-gradient(180deg, #f5f1fc 0%, #faf9fd 50%, #ffffff 100%);
}
/* фиолетовое свечение вынесено отдельным слоем и погашено у верхней кромки,
/* едва заметные орбитальные линии на весь контейнер */
.light-content__orbits {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}

.light-content__inner {
  position: relative; z-index: 1;
  max-width: 1500px; margin: 0 auto;
  padding-left: clamp(24px, 5vw, 90px);
  padding-right: clamp(24px, 5vw, 90px);
}

/* ============================================================
   СЦЕНА «ВСЁ, ЧТО НУЖНО БРЕНДУ»
   Секция на всю ширину, фон чистый светлый. Орбиты - безье-пути с
   градиентной обводкой, вычерчиваются штрихом по прогрессу прокрутки.
   Серебряный шар летит по верхнему пути независимо от скролла (main.js).
   ============================================================ */
.cycle {
  height: 220vh;
  /* значения по умолчанию перезаписывает main.js каждый кадр */
  --draw-top: 1; --draw-main: 1;      /* 1 = не нарисовано, 0 = нарисовано целиком */
  --par: 0;                           /* лёгкий параллакс, -1…0 */
  /* боковой отступ .light-content__inner: сцена выходит за него на всю ширину экрана */
  --pad: clamp(24px, 5vw, 90px);
}
.cycle__pin {
  position: sticky; top: 0; height: 100svh;
  display: block;
  /* сверху оставляем место под липкую панель */
  padding: clamp(74px, 10vh, 104px) 0 clamp(36px, 5vh, 72px);
}
.cycle__space {
  position: relative; height: 100%;
  /* растягиваем на всю ширину секции: орбиты уходят за края блока */
  margin-inline: calc(var(--pad) * -1); width: auto;
  /* ширина сцены равна ширине экрана, поэтому clip ничего видимого не режет,
     но не даёт колонке этапа утянуть страницу вбок */
  overflow-x: clip;
}

/* --- орбиты фоном, сквозь весь блок; шар живёт в той же системе координат --- */
/* параллакс графики: орбиты, серебряный шар и шары этапов смещаются ОДИНАКОВО,
   иначе орбита перестаёт проходить через центры шаров */
.cycle__sky {
  position: absolute; inset: 0; z-index: 0;
  transform: translate3d(0, calc((var(--par, 0) - .5) * 12px), 0);
}
.cycle__orbits {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.cycle__path {
  fill: none; stroke-width: 1.4; stroke-linecap: round;
  /* вычерчивание: длина штриха равна длине пути, смещение уходит в 0 */
  stroke-dasharray: var(--len, 0);
  stroke-dashoffset: calc(var(--len, 0) * var(--draw, 1));
}
.cycle__path--top  { stroke: url(#cycTopGrad);  --draw: var(--draw-top, 1); }
.cycle__path--main { stroke: url(#cycMainGrad); --draw: var(--draw-main, 1); stroke-width: 1.2; }

/* --- серебряный шар на верхней орбите --- */
.cycle__chrome {
  position: absolute; left: 0; top: 0; z-index: 1;
  width: 42px; height: 42px; margin: -21px 0 0 -21px;
  transform: translate3d(var(--x, 0px), var(--y, 0px), 0);
  opacity: var(--o, 0);
  will-change: transform, opacity;
}
.cycle__chrome img { width: 100%; height: 100%; }

/* --- текст: координаты те же, что у орбит (единицы viewBox × --k) --- */
.cycle__text {
  position: absolute; left: 0; top: 0; z-index: 2;
  width: calc(900px * var(--k, 1));
  transform: translate3d(var(--x, 0px), calc(var(--y, 0px) + (var(--par, 0) - .5) * -16px), 0);
}
.cycle__eyebrow {
  font-family: var(--font-ui); font-weight: 600;
  font-size: calc(13px * var(--k, 1)); line-height: 1;
  text-transform: uppercase; letter-spacing: .17em; color: var(--brand-violet);
  margin: 0 0 calc(39px * var(--k, 1));
  opacity: var(--in-eyebrow, 0); transition: opacity .5s var(--ease);
}
.cycle__title {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .01em;
  font-size: calc(41px * var(--k, 1)); line-height: calc(58 / 41);
  margin: 0;
  opacity: var(--in-title, 0);
  transform: translateY(calc((1 - var(--in-title, 0)) * 18px));
}
.cycle__title-a, .cycle__title-b { display: block; }
/* первая строка - градиент фиолетовый → оранжевый по тексту */
.cycle__title-a {
  background: linear-gradient(96deg, var(--brand-violet) 12%, var(--brand-orange) 86%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.cycle__title-b { color: var(--ink); }
.cycle__lead {
  width: calc(560px * var(--k, 1));
  margin: calc(2px * var(--k, 1)) 0 0;
  font-size: calc(17px * var(--k, 1)); line-height: 1.5; color: var(--ink-muted);
  opacity: var(--in-lead, 0);
  transform: translateY(calc((1 - var(--in-lead, 0)) * 16px));
}

/* --- этапы: шар в своей опорной точке, текст под ним по левому краю --- */
.cstep {
  --bs: 66px;                       /* диаметр шара в единицах viewBox */
  --off: 28px;                      /* левый край текста левее центра шара */
  position: absolute; left: 0; top: 0; z-index: 3;
  width: calc(250px * var(--k, 1));
  text-align: left;
  transform: translate3d(calc(var(--x, 0px) - var(--off) * var(--k, 1)),
                         calc(var(--y, 0px) + (1 - var(--v, 0)) * 18px
                              + (var(--par, 0) - .5) * 12px), 0);
  opacity: var(--v, 0);
  will-change: transform, opacity;
}
.cstep__ball {
  position: absolute; left: calc(var(--off) * var(--k, 1)); top: 0;
  width: calc(var(--bs) * var(--k, 1)); height: calc(var(--bs) * var(--k, 1));
  margin: calc(var(--bs) * var(--k, 1) / -2) 0 0 calc(var(--bs) * var(--k, 1) / -2);
  /* лёгкий перелёт при появлении, без пружины */
  transform: scale(var(--bs-scale, .7));
  opacity: var(--bv, 0);
  filter: drop-shadow(0 10px 16px rgba(40, 2, 83, .3));
}
.cstep__ball img { width: 100%; height: 100%; }
.cstep__num {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: calc(17px * var(--k, 1));
  letter-spacing: .04em; color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
}
/* текст начинается на 52 единицы ниже центра шара */
.cstep__name {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; font-size: calc(1.05rem * var(--k, 1)); color: var(--ink);
  margin: calc(52px * var(--k, 1)) 0 calc(9px * var(--k, 1));
}
.cstep__text {
  font-size: calc(.9rem * var(--k, 1)); line-height: 1.5; color: var(--ink-muted); margin: 0;
}

/* --- планшет: сцена ниже, кривые остаются, но экран не такой широкий --- */
@media (max-width: 1100px) and (min-width: 901px) {
  .cycle__lead { width: calc(500px * var(--k, 1)); }
}

/* --- мобильный: отдельная вертикальная раскладка, а не уменьшенный десктоп --- */
@media (max-width: 900px) {
  .cycle { height: auto; }
  .cycle__pin { position: static; height: auto; padding: clamp(48px, 8vw, 80px) 0; }
  .cycle__space { height: auto; margin-inline: 0; overflow-x: visible; }
  .cycle__text { position: static; width: auto; transform: none; margin-bottom: 26px; }
  .cycle__eyebrow, .cycle__title, .cycle__lead { opacity: 1 !important; transform: none !important; }
  /* орбита с серебряным шаром остаётся - полосой над списком этапов */
  .cycle__sky {
    position: relative; inset: auto; height: 150px;
    margin: 0 calc(var(--pad) * -1) 26px;
  }
  .cycle__sky { transform: none; }
  .cycle__path--main { display: none; }
  .cycle__text { width: auto; }
  .cycle__eyebrow { font-size: .72rem; margin-bottom: 18px; }
  .cycle__title { font-size: clamp(1.35rem, 6.4vw, 2rem); line-height: 1.08; }
  .cycle__lead { width: auto; font-size: 1rem; margin-top: 14px; }
  .cstep {
    position: static; width: auto; margin: 0;
    opacity: 1 !important; transform: none !important;
    display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; text-align: left;
  }
  .cstep__ball { position: static; width: 54px; height: 54px; margin: 0; grid-row: span 2; }
  .cstep__num { font-size: .8rem; }
  .cstep__name { font-size: 1rem; margin: 0 0 6px; }
  .cstep__text { font-size: .9rem; }
  .cstep + .cstep { margin-top: 22px; }
  .cstep__ball { transform: none !important; opacity: 1 !important; }
}

/* --- собранная композиция без движения --- */
@media (prefers-reduced-motion: reduce) {
  .cycle__eyebrow, .cycle__title, .cycle__lead, .cstep, .cstep__ball { transition: none !important; }
}

/* ---------- Блок 2. Каталог возможностей ---------- */
.catalog__head { max-width: 620px; margin-bottom: clamp(16px, 2vw, 26px); }
.catalog__lead { max-width: 620px; color: var(--ink-muted); }

/* segmented control: во всю ширину списка, фиолетовый, с бегущим разрядом по контуру */
.segmented {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  width: calc(50% - clamp(28px, 3.4vw, 64px) / 2);
  padding: 6px; border-radius: var(--pill);
  background: linear-gradient(100deg, #240762 0%, #240762 54%, #2B08A2 100%);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 16px 36px -22px rgba(40, 2, 83, .8);
  margin: 0 0 clamp(20px, 2.4vw, 32px);
}
/* электрический разряд: узкая белая искра бежит по периметру */
.segmented::after {
  content: ""; position: absolute; inset: -2px; z-index: -1;
  border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--pulse-a),
    transparent 0 74%, rgba(255, 255, 255, .35) 82%, #fff 88%, rgba(255, 255, 255, .5) 92%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  filter: blur(1px);
  animation: pulseSpin 3.2s linear infinite;
}
.segmented__btn {
  border: 0; background: transparent; border-radius: var(--pill);
  padding: 12px 16px; font-family: var(--font-ui); font-weight: 500; font-size: .86rem;
  color: rgba(255, 255, 255, .8); white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.segmented__btn:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.segmented__btn.is-active { background: #fff; color: var(--brand-violet-deep); font-weight: 600; }

.catalog__cols {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(420px, 1fr);
  gap: clamp(28px, 3.4vw, 64px); align-items: start;
  padding-bottom: clamp(16px, 2.4vw, 40px);
}
.tabs__panel[hidden] { display: none; }

/* список технологий - тонкие разделители, без карточек */
.tech-list { list-style: none; margin: 0; padding: 0; }
.tech__label {
  padding: 8px 0 3px;
  font-family: var(--font-ui); font-size: .66rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .17em;
  color: var(--brand-violet);   /* фирменный тёмно-фиолетовый вместо оранжевого */
}
.tech-list { display: flex; flex-direction: column; gap: 7px; }
.tech__label:first-child { padding-top: 0; }
.tech { border: 0; }
.tech__btn {
  display: grid; grid-template-columns: auto auto 1fr auto auto; align-items: center; gap: 12px 16px;
  width: 100%; padding: 11px 16px; text-align: left;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(33, 22, 55, .07); border-radius: 16px;
  box-shadow: 0 10px 26px -22px rgba(33, 22, 55, .5);
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
/* маркер вместо иконки: цвета чередуются, на активной строке - белый */
.tech__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--brand-violet);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.tech:nth-child(3n+1) .tech__dot { background: var(--brand-orange); }
.tech:nth-child(3n+2) .tech__dot { background: var(--brand-violet); }
.tech:nth-child(3n)   .tech__dot { background: var(--ink); }
.tech__arrow { color: var(--ink-muted); font-size: 1rem; transition: transform .3s var(--ease), color .3s; }
.tech__num { font-family: var(--font-ui); font-size: .68rem; letter-spacing: .1em; color: var(--ink-muted); transition: color .3s; }
.tech__name {
  display: block; font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .02em; font-size: clamp(.92rem, 1.2vw, 1.1rem); color: var(--ink); transition: color .3s;
}
/* строка раскрывается при наведении и в активном состоянии */
.tech__desc {
  display: block; grid-column: 3; max-height: 0; opacity: 0; overflow: hidden;
  font-size: .88rem; line-height: 1.5; color: var(--ink-muted);
  transition: max-height .4s var(--ease), opacity .3s var(--ease), margin .4s var(--ease);
}
.tech:hover .tech__desc,
.tech.is-active .tech__desc { max-height: 5em; opacity: 1; margin-top: 4px; }

.tech__meta { padding: 5px 12px; border-radius: var(--pill); background: rgba(117, 69, 190, .08); font-family: var(--font-ui); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); white-space: nowrap; transition: color .3s; }




/* правая зона: изделие, вытянутые орбиты, карточка характеристик */
/* правая колонка: мокап и сразу под ним кнопка - не зависит от длины списка слева */
.viz-col {
  --spec-w: clamp(180px, 26%, 260px);   /* колонка под карточку характеристик */
  align-self: start;                    /* начинается от первой строки списка */
}
/* на десктопе мокап едет вместе со скроллом - пример виден на любой строке списка */
@media (min-width: 1201px) {
  .viz-col {
    position: sticky;
    top: clamp(88px, 11vh, 128px);
    align-self: start;                  /* sticky работает только на нерастянутом элементе */
  }
}
.viz-col__cta {
  position: relative; z-index: 3;
  margin-top: clamp(18px, 2.4vw, 40px);
  /* кнопка по центру всей правой колонки */
  text-align: center;
}
@media (max-width: 1200px) { .viz-col__cta { margin-top: 24px; } }

.viz {
  position: relative; aspect-ratio: 5 / 4; max-height: 62vh;
  padding-right: var(--spec-w);         /* товар центрируется левее - карточка его не закрывает */
  display: grid; place-items: center;
}
/* орбиты как в hero: тонкое размытое кольцо + светящиеся ядра по нему */
.viz__orbits {
  /* clip: вращающиеся роторы дают широкий бокс и тянут страницу вбок */
  position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: clip;
  --ink: 91, 45, 142;      /* цвет линии - триплет, как ждёт разметка орбит hero */
  --glow: 117, 69, 190;    /* цвет ядер */
  --gp: 0;                 /* без роста по скроллу */
}
/* собственная геометрия: круглые кольца с ядрами, независимо от овалов hero */
.vorb {
  position: absolute; top: 50%; left: 50%;
  aspect-ratio: 1 / 1; border-radius: 50%;
  transform: translate(-50%, -50%);
}
.viz__orbits .vorb--inner { width: 58%; }
.viz__orbits .vorb--mid   { width: 90%; }
.vorb__ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(var(--ink), .18);
  filter: blur(2px);
}
.vorb__orb {
  position: absolute; inset: 0;
  animation: var(--spin, vorbCW) var(--dur, 40s) linear infinite;
  animation-delay: var(--delay, 0s);
}
.vorb__orb::before {
  content: ""; position: absolute; top: calc(var(--sz) / -2); left: 50%; margin-left: calc(var(--sz) / -2);
  width: var(--sz); height: var(--sz); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0%, rgb(var(--glow)) 45%, transparent 72%);
  opacity: .8;
  filter: blur(4px) drop-shadow(0 0 12px rgba(var(--glow), .5));
  /* обратное вращение с тем же таймингом - ядро не кувыркается */
  animation: var(--spinR, vorbCCW) var(--dur, 40s) linear infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes vorbCW  { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes vorbCCW { from { transform: rotate(0); } to { transform: rotate(-360deg); } }
/* приглушённая пыль вокруг изделия */
.viz__dust { z-index: 1; color: #7545be; opacity: .45; }
.viz__glow {
  position: absolute; inset: 16%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(var(--tint, 117,69,190), .16), transparent 66%);
  filter: blur(46px); transition: background .6s var(--ease);
}
.viz__img {
  position: absolute; max-width: 84%; max-height: 92%; width: auto; height: auto; object-fit: contain;
  opacity: 0; transform: scale(.94) translateY(10px);
  filter: drop-shadow(0 26px 44px rgba(33, 22, 55, .2));
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
/* мелкий кадр: вдвое меньше и сдвинут вправо - карточка ложится поверх него */
.viz__img--sm { max-width: 74%; max-height: 84%; }
/* вертикальные кадры: ограничение по высоте душило их - даём больше */
.viz__img--tall { max-width: 54%; max-height: 108%; }
@media (max-width: 900px) {
  .viz__img--sm { max-width: 66%; max-height: 66%; }
  .viz__img--tall { max-width: 60%; max-height: 92%; }
}

.viz__img.is-active {
  opacity: 1; transform: none;
  /* лёгкое «дыхание» - стартует после появления, чтобы не спорить с переходом */
  animation: vizBreathe 6.5s ease-in-out .6s infinite;
}
@keyframes vizBreathe {
  0%, 100% { transform: translateY(0)     scale(1); }
  50%      { transform: translateY(-9px)  scale(1.018); }
}
.spec {
  position: absolute; right: calc(-1 * var(--spec-w) * .5); bottom: 12%; width: var(--spec-w);
  padding: 14px 16px; border-radius: 20px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(33, 22, 55, .07);
  box-shadow: 0 18px 40px -22px rgba(33, 22, 55, .4);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.spec.is-active { opacity: 1; transform: none; }
.spec__title {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .02em;
  font-size: .92rem; color: var(--ink); margin: 0 0 10px;
}
.spec__list { list-style: none; margin: 0; padding: 0; }
.spec__list li { position: relative; padding-left: 13px; font-size: .76rem; line-height: 1.45; color: var(--ink-muted); }
.spec__list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-orange); opacity: .7; }

/* ---------- Адаптив ---------- */
@media (max-width: 1200px) {
  .catalog__cols { grid-template-columns: 1fr; gap: 40px; }
  .viz { max-width: 560px; margin: 0 auto; aspect-ratio: 4 / 3; padding-right: 0; }
}
@media (max-width: 760px) {
  .segmented { width: 100%; grid-template-columns: 1fr; gap: 6px; }
  .segmented__btn { white-space: nowrap; }
  .tech__btn { grid-template-columns: auto 1fr; }
  .tech__meta { grid-column: 2; margin-top: 6px; }
  .spec { position: static; width: 100%; margin-top: 18px; }
  .viz { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cycle__path, .cycle__ball, .cycle__step, .cycle__eyebrow { transition: none !important; }
  .viz__img.is-active { animation: none !important; }
  .showcase__float, .showcase__shadow { animation: none !important; }
  /* ядра замирают на своих местах: позиции им ставит main.js один раз */
  .orbit__core { transition: none !important; }
}

@media (max-width: 1200px) {
    }
.btn-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; border-radius: var(--pill);
  background: linear-gradient(100deg, var(--brand-violet-deep), #240762 70%, #2B08A2);
  color: #fff; font-family: var(--font-ui); font-weight: 500; font-size: .92rem;
  letter-spacing: .02em;
  box-shadow: 0 18px 40px -20px rgba(40, 2, 83, .8);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-cta:hover { box-shadow: 0 24px 50px -20px rgba(40, 2, 83, .9); }
.btn-cta span { transition: transform .25s var(--ease); }
.btn-cta:hover span { transform: translateX(4px); }

/* ---------- Фиолетовая плашка с летящими частицами ---------- */
.promo {
  position: relative; overflow: hidden;
  margin-top: clamp(36px, 4.5vw, 64px);
  padding: clamp(26px, 3.4vw, 44px) clamp(24px, 3.4vw, 52px);
  border-radius: 26px;
  background: linear-gradient(104deg, #240762 0%, #240762 46%, #2B08A2 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(20px, 3vw, 48px); flex-wrap: wrap;
  box-shadow: 0 26px 60px -30px rgba(40, 2, 83, .9);
}
.promo__particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.promo__body { position: relative; z-index: 1; max-width: 660px; text-align: left; }
.promo__title {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .01em;
  font-size: clamp(1.5rem, 2.6vw, 2.3rem); line-height: 1.06; margin: 0 0 12px; color: #fff;
}
.promo__text {
  margin: 0; font-size: clamp(.95rem, 1.2vw, 1.05rem); line-height: 1.55; color: rgba(255, 255, 255, .82);
}
.promo__btn {
  position: relative; z-index: 1; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 22px 96px; border-radius: var(--pill);
  background: #fff; color: var(--brand-violet-deep);
  font-family: var(--font-ui); font-weight: 600; font-size: 1rem;
  transition: transform .25s var(--ease);
}

.promo__btn span { transition: transform .25s var(--ease); }
.promo__btn:hover span { transform: translateX(4px); }

@media (max-width: 900px) {
    .promo { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   ЯДРО ЛАБОРАТОРИИ - оборудование и реальные кадры цеха
   ============================================================ */
/* clip, а не hidden: не создаёт scroll-контейнер и не ломает sticky у сцены .mix внутри */
.labcore { position: relative; background: #ffffff; overflow: clip; }
/* подтон отдельным слоем, у верхней кромки прозрачный - стыка с белым не видно */
.labcore::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 12% 22%, rgba(117, 69, 190, .08), transparent 62%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 18%);
}
.labcore > .container { position: relative; z-index: 1; }
.labcore::before { display: none; }   /* орбитальная дуга не режет верхнюю кромку */
.labcore__grid {
  display: grid; grid-template-columns: minmax(320px, .85fr) minmax(420px, 1.15fr);
  gap: clamp(32px, 4vw, 72px); align-items: start;
  margin-top: clamp(28px, 3.4vw, 48px);
}
.labcore__sub {
  font-family: var(--font-ui); font-size: .68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .16em; color: var(--brand-violet); margin-bottom: 18px;
}
.equip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.equip { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.equip__num {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-violet-deep); color: #fff;
  font-family: var(--font-ui); font-size: .62rem; letter-spacing: .06em;
}
.equip__name {
  display: block; font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .02em; font-size: .98rem; color: var(--ink); margin-bottom: 5px;
}
.equip__text { display: block; font-size: .88rem; line-height: 1.55; color: var(--ink-muted); }

/* сетка кадров: два широких плана и шесть обычных */
.labcore__shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.shot {
  position: relative; margin: 0; overflow: hidden;
  border-radius: 16px; aspect-ratio: 4 / 3;
  background: linear-gradient(140deg, #f2edfb, #e9e3f7);
  border: 1px solid rgba(33, 22, 55, .07);
  display: grid; place-items: center;
}
.shot--wide { grid-column: span 3; aspect-ratio: 16 / 6; }
.shot__ph { color: rgba(91, 45, 142, .35); }
.shot__ph svg { width: 30px; height: 30px; }
.shot__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 14px; font-size: .74rem; color: var(--ink-muted);
  background: linear-gradient(to top, rgba(255, 255, 255, .92), rgba(255, 255, 255, 0));
}
.shot img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .labcore__grid { grid-template-columns: 1fr; }
  .labcore__shots { grid-template-columns: repeat(2, 1fr); }
  .shot--wide { grid-column: span 2; }
}

/* ============================================================
   ПРОИЗВОДСТВЕННАЯ СЕТЬ
   ============================================================ */
.network { background: #fff; }
.network__grid { display: grid; grid-template-columns: minmax(320px, 1.1fr) minmax(300px, .9fr); gap: clamp(32px, 4vw, 80px); margin-top: clamp(24px, 3vw, 40px); }
.network__text p { color: var(--ink-muted); }
.network__text p + p { margin-top: 14px; }
.network__sub, .samples__sub {
  font-family: var(--font-ui); font-size: .68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .16em; color: var(--brand-violet); margin-bottom: 16px;
}
.takes { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.takes--two { grid-template-columns: repeat(2, 1fr); gap: 9px 20px; }
.samples__note { margin-top: 18px; font-size: .9rem; line-height: 1.55; color: var(--ink-muted); max-width: 560px; }
.takes li { position: relative; padding-left: 20px; font-size: .93rem; color: var(--ink); }
.takes li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px;
  border-radius: 50%; background: var(--brand-violet); opacity: .55;
}
@media (max-width: 760px) { .network__grid { grid-template-columns: 1fr; } .takes--two { grid-template-columns: 1fr; } }

/* ============================================================
   КП БЕЗ ДОЛГОГО ОЖИДАНИЯ - контрастный тёмный блок
   ============================================================ */
.offer {
  --arc-h: clamp(140px, 15vw, 280px);   /* высота светлого купола сверху */
  /* clip, а не hidden: не создаёт scroll-контейнер и не ломает sticky у .offer__pin */
  position: relative; overflow: clip;
  height: 200vh; padding: 0;
  background: linear-gradient(112deg, #240762 0%, #240762 48%, #2B08A2 100%);
  color: #fff;
}
.offer__pin {
  /* sticky сам создаёт stacking context, поэтому z-index нужен здесь,
     иначе светлый купол (.offer::before, z-index 1) ляжет поверх контента */
  position: sticky; top: 0; z-index: 2; height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--arc-h) * .5) 0 clamp(32px, 5vh, 64px);
}
/* переход полукругом: огромная светлая окружность нижней шапкой заходит на яркий блок */
.offer::before {
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  left: 50%; transform: translateX(-50%);
  width: 190vw; aspect-ratio: 1 / 1; border-radius: 50%;
  top: calc(var(--arc-h) - 190vw);
  background: #fff;                     /* цвет секции выше */
}
.offer__particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.offer__inner {
  position: relative; z-index: 2; width: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(20px, 3vw, 52px); align-items: center;
}
.offer__text { max-width: 760px; }
.offer__text p { color: rgba(255, 255, 255, .82); }
.offer__text p + p { margin-top: 12px; }
.scheme {
  list-style: none; margin: clamp(32px, 4vw, 52px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px);
  counter-reset: none;
}
.scheme__item {
  padding: 22px 24px; border-radius: 20px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.scheme__num { display: block; font-family: var(--font-ui); font-size: .7rem; letter-spacing: .14em; color: rgba(255, 255, 255, .55); margin-bottom: 10px; }
.scheme__name { display: block; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; font-size: 1rem; margin-bottom: 8px; }
.scheme__text { display: block; font-size: .88rem; line-height: 1.55; color: rgba(255, 255, 255, .78); }
.offer__strong {
  margin-top: clamp(28px, 3.4vw, 44px);
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .02em;
  font-size: clamp(1.05rem, 1.7vw, 1.45rem); line-height: 1.3; max-width: 780px;
}
.offer__note {
  margin-top: 12px; display: inline-block; padding: 8px 16px; border-radius: var(--pill);
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
  font-family: var(--font-ui); font-size: .82rem; color: #fff;
}
/* внутри закреплённого экрана левая колонка становится компактнее */
.offer__pin .offer__title { font-size: clamp(1.55rem, 2.5vw, 2.4rem); margin-bottom: 14px; }
.offer__pin .offer__eyebrow { margin-bottom: 14px; }
.offer__pin .offer__text p { font-size: clamp(.86rem, 1vw, .95rem); line-height: 1.55; }
.offer__pin .scheme { grid-template-columns: 1fr; gap: 10px; margin-top: clamp(16px, 2.2vh, 28px); }
.offer__pin .scheme__item { padding: 12px 16px; border-radius: 14px; }
.offer__pin .scheme__num { margin-bottom: 4px; }
.offer__pin .scheme__name { font-size: .9rem; margin-bottom: 4px; }
.offer__pin .scheme__text { font-size: .78rem; line-height: 1.45; }
.offer__pin .offer__strong { margin-top: clamp(16px, 2.2vh, 30px); font-size: clamp(.95rem, 1.3vw, 1.2rem); }
.offer__pin .offer__note { margin-top: 10px; padding: 6px 14px; font-size: .74rem; }

/* на низких экранах ужимаем ритм, но ничего не прячем */
@media (max-height: 780px) {
  .offer__pin { padding: calc(var(--arc-h) * .38) 0 24px; }
  .offer__pin .offer__title { font-size: clamp(1.3rem, 1.9vw, 1.75rem); margin-bottom: 10px; }
  .offer__pin .offer__eyebrow { margin-bottom: 10px; }
  .offer__pin .offer__text p { font-size: .8rem; line-height: 1.45; }
  .offer__pin .offer__text p + p { margin-top: 8px; }
  .offer__pin .scheme { gap: 7px; margin-top: 12px; }
  .offer__pin .scheme__item { padding: 9px 13px; border-radius: 12px; }
  .offer__pin .scheme__name { font-size: .82rem; margin-bottom: 3px; }
  .offer__pin .scheme__text { font-size: .72rem; line-height: 1.4; }
  .offer__pin .offer__strong { margin-top: 12px; font-size: .92rem; }
  .offer__pin .offer__note { margin-top: 8px; font-size: .7rem; }
  .dayx { height: clamp(250px, 40vh, 340px); }
}

/* ============================================================
   СЦЕНА 2 - КП В ДЕНЬ ЗАЯВКИ
   Сфера идёт по эллиптической орбите; карточки собираются по мере
   прохождения своего сектора. Всё считается от прогресса (main.js).
   ============================================================ */
.offer__scene { position: relative; display: flex; flex-direction: column; align-items: center; gap: clamp(10px, 2vh, 22px); }
.dayx {
  position: relative; width: 100%;
  height: clamp(280px, 44vh, 420px);
  --rx: clamp(96px, 12vw, 150px);
  --ry: clamp(80px, 9.5vw, 124px);
}
/* огромное 24H выходит из глубины */
.dayx__num {
  position: absolute; left: 50%; top: 50%;
  font-family: var(--font-display); font-weight: 700; letter-spacing: .02em;
  font-size: clamp(3.6rem, 8vw, 7rem); line-height: 1;
  color: rgba(255, 255, 255, .16);
  transform: translate(-50%, -50%) scale(var(--num-s, .6));
  opacity: var(--num-o, 0);
  will-change: transform, opacity;
}
.dayx__ring {
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--rx) * 2); height: calc(var(--ry) * 2);
  margin: calc(var(--ry) * -1) 0 0 calc(var(--rx) * -1);
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%;
}
/* металлическая сфера: блик смещён влево-вверх */
.dayx__sphere {
  position: absolute; left: 50%; top: 50%;
  width: 26px; height: 26px; border-radius: 50%;
  margin: -13px 0 0 -13px;
  background: radial-gradient(circle at 32% 27%, #fff 0%, #dcdce6 18%, #9494a8 48%, #4a4a5a 76%, var(--brand-graphite) 100%);
  box-shadow: 0 8px 18px -6px rgba(10, 2, 26, .7), 0 0 22px rgba(255, 255, 255, .18);
  transform: translate(var(--sx, 0px), var(--sy, 0px));
  will-change: transform;
}
/* тонкая линия от сферы к карточке */
.dayx__link {
  position: absolute; left: 50%; top: 50%; height: 1px; width: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .06));
  transform-origin: 0 50%;
  transform: translate(var(--lx, 0px), var(--ly, 0px)) rotate(var(--ang, 0deg)) scaleX(var(--v, 0));
  opacity: calc(var(--v, 0) * .9);
  will-change: transform, opacity;
}
.dcard {
  position: absolute; left: 50%; top: 50%; width: 148px;
  padding: 10px 13px; border-radius: 14px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transform: translate(-50%, -50%) translate(var(--cx, 0px), var(--cy, 0px)) scale(calc(.86 + var(--v, 0) * .14));
  opacity: var(--v, 0);
  will-change: transform, opacity;
}
.dcard__name {
  display: block; font-family: var(--font-ui); font-size: .62rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .13em; color: rgba(255, 255, 255, .58); margin-bottom: 4px;
}
.dcard__val {
  display: block; font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .02em; font-size: .88rem; color: #fff;
}
.dayx__done {
  text-align: center;
  opacity: var(--v, 0); transform: translateY(calc((1 - var(--v, 0)) * 16px));
  will-change: transform, opacity;
}
.dayx__done-text {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; font-size: clamp(.86rem, 1.2vw, 1.05rem); color: #fff; margin-bottom: 12px;
}
.dayx__cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 22px; border-radius: var(--pill);
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3);
  font-family: var(--font-ui); font-weight: 500; font-size: .84rem; color: #fff;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.dayx__cta:hover { background: rgba(255, 255, 255, .24); transform: translateY(-2px); }

/* --- до 900px сцена разворачивается в обычный поток --- */
@media (max-width: 900px) {
  .offer { height: auto; }
  .offer__pin {
    position: static; height: auto;
    padding: calc(clamp(64px, 7vw, 118px) + var(--arc-h) * .55) 0 clamp(64px, 7vw, 118px);
  }
  .offer__inner { grid-template-columns: 1fr; gap: clamp(32px, 6vw, 52px); }
  .offer__pin .offer__title { font-size: clamp(1.9rem, 3.8vw, 3.1rem); margin-bottom: 18px; }
  .offer__pin .offer__text,
  .offer__pin .scheme__text { display: block; }
  .offer__pin .offer__text p { font-size: clamp(1rem, 1.15vw, 1.08rem); }
  .offer__pin .scheme__text { font-size: .88rem; line-height: 1.55; }
  .offer__pin .scheme__item { padding: 22px 24px; border-radius: 20px; }
  .dayx { height: auto; display: block; text-align: center; }
  .dayx__ring, .dayx__sphere, .dayx__link { display: none; }
  .dayx__num {
    position: static; display: block; margin-bottom: 18px;
    transform: none !important; opacity: 1 !important;
  }
  .dayx__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
  .dcard { position: static; width: auto; transform: none !important; opacity: 1 !important; text-align: left; }
  .dayx__done { opacity: 1 !important; transform: none !important; margin-top: 18px; }
}
@media (max-width: 860px) { .scheme { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .dayx__cta { transition: none; }
}

/* ============================================================
   ОТ ИДЕИ ДО РЕЗУЛЬТАТА - стопка карточек, раскладывается по скроллу
   ============================================================ */
.flow { position: relative; height: 560vh; background: #fff; }
.flow__pin { position: sticky; top: 0; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: clamp(70px, 9vh, 120px) 0 clamp(40px, 6vh, 70px); overflow: hidden; }
.flow__stack {
  position: relative; margin-top: clamp(20px, 3vh, 36px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  min-height: clamp(340px, 46vh, 460px);
}
.fcard {
  grid-area: 1 / 1 / 2 / 2;                    /* стартуют в одной ячейке - стопкой */
  padding: 22px 24px; border-radius: 20px;
  background: #fff; border: 1px solid rgba(33, 22, 55, .09);
  box-shadow: 0 18px 40px -26px rgba(33, 22, 55, .55);
  transform: translate(var(--tx, 0px), var(--ty, 0px)) rotate(var(--rot, 0deg)) scale(var(--sc, 1));
  opacity: var(--op, 1);
  transition: none; will-change: transform;
}
.fcard__num { display: block; font-family: var(--font-ui); font-size: .7rem; letter-spacing: .14em; color: var(--brand-violet); margin-bottom: 10px; }
.fcard__name { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; font-size: 1rem; margin-bottom: 8px; color: var(--ink); }
.fcard__text { font-size: .88rem; line-height: 1.55; color: var(--ink-muted); }
@media (max-width: 1100px) { .flow__stack { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  .flow { height: auto; }
  .flow__pin { position: static; min-height: 0; }
  .flow__stack { grid-template-columns: 1fr; min-height: 0; }
  .fcard { grid-area: auto; transform: none !important; opacity: 1 !important; }
}

/* ============================================================
   ШОУРУМ / ОБРАЗЦЫ
   ============================================================ */
.samples { background: linear-gradient(180deg, #faf9fd, #f4f1fb); }
.samples__grid { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(320px, .85fr); gap: clamp(28px, 4vw, 72px); margin-top: clamp(24px, 3vw, 40px); }
.visit {
  padding: clamp(22px, 2.6vw, 32px); border-radius: 24px;
  background: #fff; border: 1px solid rgba(33, 22, 55, .08);
  box-shadow: 0 20px 50px -34px rgba(33, 22, 55, .5);
}
.visit__title { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; font-size: 1.05rem; margin-bottom: 18px; }
.visit__row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(33, 22, 55, .07); font-size: .9rem; }
.visit__row span { color: var(--ink-muted); }
.visit__row b { text-align: right; }
.visit__btns { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 18px; }
.btn-ghost {
  display: inline-flex; align-items: center; padding: 15px 24px; border-radius: var(--pill);
  border: 1px solid rgba(91, 45, 142, .35); color: var(--brand-violet);
  font-family: var(--font-ui); font-weight: 500; font-size: .88rem;
  transition: background .25s var(--ease), transform .25s var(--ease);
}

.visit__map {
  aspect-ratio: 16 / 10; border-radius: 18px; display: grid; place-items: center; text-align: center;
  background: linear-gradient(140deg, #f2edfb, #e9e3f7); border: 1px dashed rgba(91, 45, 142, .3);
  color: rgba(91, 45, 142, .6); font-size: .82rem; padding: 16px;
}
@media (max-width: 860px) { .samples__grid { grid-template-columns: 1fr; } }

/* ============================================================
   МАКЕТЫ И ДИЗАЙН
   ============================================================ */
.artwork { background: #fff; }
.artwork__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 28px); margin-top: clamp(24px, 3vw, 40px); }
.pane {
  padding: clamp(24px, 2.8vw, 36px); border-radius: 22px;
  background: #faf9fd; border: 1px solid rgba(33, 22, 55, .08);
}
.pane--accent { background: linear-gradient(150deg, #f4efff, #ece4fb); border-color: rgba(117, 69, 190, .2); }
.pane__title { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; font-size: 1.1rem; margin-bottom: 12px; }
.pane__text { font-size: .93rem; line-height: 1.6; color: var(--ink-muted); margin-bottom: 14px; }
.artwork__note { margin-top: 20px; font-size: .86rem; color: var(--ink-muted); }
@media (max-width: 760px) { .artwork__grid { grid-template-columns: 1fr; } }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: linear-gradient(180deg, #f4f1fb, #faf9fd); }
.faq__wrap { margin-top: clamp(22px, 2.6vw, 36px); max-width: 900px; }
.faq__item {
  border-radius: 18px; background: #fff; border: 1px solid rgba(33, 22, 55, .08);
  padding: 4px 22px; margin-bottom: 10px;
  transition: border-color .25s var(--ease);
}
.faq__item[open] { border-color: rgba(117, 69, 190, .3); }
.faq__q {
  cursor: pointer; list-style: none; padding: 16px 30px 16px 0; position: relative;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .02em;
  font-size: .96rem; color: var(--ink);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; color: var(--brand-violet); transition: transform .25s var(--ease);
}
.faq__item[open] .faq__q::after { transform: translateY(-50%) rotate(45deg); }
.faq__a { padding: 0 0 18px; font-size: .92rem; line-height: 1.6; color: var(--ink-muted); }
.faq__list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.faq__list li { position: relative; padding-left: 18px; }
.faq__list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-orange); opacity: .7; }

/* ============================================================
   КВИЗ - контрастная градиентная плашка с частицами
   ============================================================ */
.quiz { position: relative; overflow: hidden; padding: clamp(60px, 7vw, 110px) 0; background: #fff; }
.quiz__particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.quiz__inner { position: relative; z-index: 1; }
.quiz__sub { max-width: 700px; color: var(--ink-muted); margin-bottom: clamp(26px, 3vw, 42px); }
.quiz__box {
  position: relative; overflow: hidden;
  padding: clamp(26px, 3.4vw, 46px); border-radius: 28px; color: #fff;
  background: linear-gradient(112deg, #240762 0%, #240762 46%, #2B08A2 100%);
  box-shadow: 0 30px 70px -34px rgba(40, 2, 83, .9);
}
.quiz__bar { height: 4px; border-radius: var(--pill); background: rgba(255, 255, 255, .18); overflow: hidden; }
.quiz__bar-fill { display: block; height: 100%; width: 20%; border-radius: var(--pill); background: #fff; transition: width .4s var(--ease); }
.quiz__count { margin: 10px 0 22px; font-family: var(--font-ui); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.quiz__count b { color: #fff; }

.q-step { border: 0; padding: 0; margin: 0; animation: fadeUp .4s var(--ease); }
.q-step[hidden] { display: none; }
.q-q { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(1.1rem, 1.8vw, 1.5rem); padding: 0; margin-bottom: 20px; }
.q-opts { display: flex; flex-direction: column; gap: 10px; }
.q-opts--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.q-opt {
  padding: 15px 20px; text-align: left; border-radius: 14px; color: #fff;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18);
  font-family: var(--font-body); font-size: .95rem;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.q-opt:hover { background: rgba(255, 255, 255, .13); transform: translateY(-2px); }
.q-opt.is-picked { background: rgba(255, 255, 255, .96); border-color: #fff; color: var(--brand-violet-deep); font-weight: 600; }
.q-hint {
  margin-top: 16px; padding: 13px 16px; border-radius: 14px;
  background: rgba(226, 102, 27, .16); border: 1px solid rgba(226, 102, 27, .4);
  font-size: .88rem; line-height: 1.5; color: #fff;
}
.q-hint[hidden] { display: none; }
.q-final { font-size: .95rem; line-height: 1.6; color: rgba(255, 255, 255, .84); margin-bottom: 20px; max-width: 620px; }
.q-field { display: block; margin-bottom: 14px; max-width: 460px; }
.q-field span { display: block; font-family: var(--font-ui); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .62); margin-bottom: 7px; }
.q-input {
  width: 100%; padding: 15px 18px; font-size: 1.02rem; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .26); background: rgba(255, 255, 255, .08); color: #fff;
  transition: border-color .25s;
}
.q-input::placeholder { color: rgba(255, 255, 255, .45); }
.q-input:focus { outline: none; border-color: #fff; }
.q-input.is-bad { border-color: #ff9a6e; }
.q-error { color: #ffbfa2; font-size: .88rem; margin-bottom: 14px; }
.q-error[hidden] { display: none; }
.q-submit {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 6px;
  padding: 16px 30px; border: 0; border-radius: var(--pill);
  background: #fff; color: var(--brand-violet-deep);
  font-family: var(--font-ui); font-weight: 600; font-size: .92rem;
  transition: transform .25s var(--ease);
}

.q-nav { margin-top: 20px; }
.q-back { background: none; border: 0; color: rgba(255, 255, 255, .7); font-family: var(--font-ui); font-size: .85rem; padding: 6px 2px; transition: color .2s; }
.q-back:hover { color: #fff; }
.q-back[hidden] { display: none; }
.q-thanks { text-align: center; padding: 16px 0; animation: fadeUp .5s var(--ease); }
.q-thanks[hidden] { display: none; }
.flask--lg { display: inline-block; margin-bottom: 14px; }
.q-thanks__title { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; font-size: 1.3rem; margin-bottom: 10px; }
.q-thanks__text { color: rgba(255, 255, 255, .82); max-width: 520px; margin: 0 auto; font-size: .95rem; line-height: 1.6; }

/* ============================================================
   ЗАГЛЯНИТЕ В ATOM LAB
   ============================================================ */
.visitus { position: relative; overflow: hidden; padding: clamp(60px, 7vw, 110px) 0; background: linear-gradient(180deg, #faf9fd, #f4f1fb); }
.visitus__particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.visitus__inner { position: relative; z-index: 1; }
.visitus__eyebrow { font-family: var(--font-ui); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; color: var(--brand-violet); margin-bottom: 16px; }
.visitus__title { color: var(--ink); }
.visitus__sub { max-width: 640px; color: var(--ink-muted); margin-bottom: clamp(26px, 3vw, 40px); }
.visitus__grid { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(340px, 1.2fr); gap: clamp(20px, 2.6vw, 40px); align-items: stretch; }
.vcard { padding: clamp(22px, 2.6vw, 32px); border-radius: 24px; background: #fff; border: 1px solid rgba(33, 22, 55, .08); box-shadow: 0 20px 50px -34px rgba(33, 22, 55, .5); }
.vcard__row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid rgba(33, 22, 55, .07); font-size: .9rem; }
.vcard__row span { color: var(--ink-muted); white-space: nowrap; }
.vcard__row b { text-align: right; }
.vcard__social { display: flex; gap: 10px; margin: 18px 0; }
.vcard__social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--brand-violet); background: rgba(117, 69, 190, .09); border: 1px solid rgba(117, 69, 190, .2); transition: background .25s, transform .25s; }
.vcard__social a:hover { background: rgba(117, 69, 190, .18); transform: translateY(-2px); }
.vcard__route { width: 100%; justify-content: center; }
.visitus__map { border-radius: 24px; min-height: 320px; display: grid; place-items: center; text-align: center; padding: 20px; background: linear-gradient(140deg, #f2edfb, #e9e3f7); border: 1px dashed rgba(91, 45, 142, .3); color: rgba(91, 45, 142, .6); font-size: .85rem; }
.visitus__shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: clamp(20px, 2.6vw, 34px); }
@media (max-width: 900px) { .visitus__grid { grid-template-columns: 1fr; } .visitus__shots { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   ФУТЕР - в языке верхнего меню
   ============================================================ */
.footer { position: relative; overflow: hidden; color: #fff; padding: clamp(52px, 6vw, 84px) 0 26px;
  background: radial-gradient(120% 130% at 50% 0%, #2B08A2, #240762 72%); }
.footer__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.5fr 1fr 1.1fr; gap: clamp(28px, 4vw, 64px); padding-bottom: clamp(30px, 4vw, 48px); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer .logo--footer { flex-direction: column; align-items: flex-start; gap: 3px; margin-bottom: 16px; }
.footer .logo__img { height: 48px; width: auto; }
.footer .logo__sub { font-family: var(--font-body); font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.footer__tagline { color: rgba(255, 255, 255, .74); max-width: 360px; font-size: .92rem; line-height: 1.6; margin-bottom: 14px; }
.footer__site { font-family: var(--font-ui); font-weight: 500; font-size: .86rem; color: var(--brand-orange); }
.footer__site:hover { text-decoration: underline; }
.footer__col-title { font-family: var(--font-ui); font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: rgba(255, 255, 255, .55); margin-bottom: 16px; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer__links a, .footer address a { color: rgba(255, 255, 255, .82); font-size: .9rem; }
.footer__links a:hover, .footer address a:hover { color: #fff; }
.footer address { font-style: normal; display: grid; gap: 9px; color: rgba(255, 255, 255, .82); font-size: .9rem; line-height: 1.5; }
.footer__bottom { position: relative; z-index: 2; padding-top: 22px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; color: rgba(255, 255, 255, .55); font-size: .85rem; }
.footer__cta { font-family: var(--font-ui); font-weight: 500; color: #fff; }
.footer__cta:hover { color: var(--brand-orange); }
@media (max-width: 900px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer__inner { grid-template-columns: 1fr; } }

/* ============================================================
   КНОПКИ: свечение по контуру + электрический импульс, белый текст
   ============================================================ */
@property --btn-a   { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --pulse-a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes btnSpin   { to { --btn-a: 360deg; } }
@keyframes pulseSpin { to { --pulse-a: 360deg; } }

.btn-cta, .promo__btn, .q-submit, .btn-ghost, .footer__cta {
  position: relative; isolation: isolate;
  transition: transform .25s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
/* оба слоя вырезаны по контуру - внутрь плашки свет не затекает */
.btn-cta::before, .promo__btn::before, .q-submit::before, .btn-ghost::before, .footer__cta::before,
.btn-cta::after,  .promo__btn::after,  .q-submit::after,  .btn-ghost::after,  .footer__cta::after {
  content: ""; position: absolute; z-index: -1; border-radius: inherit; opacity: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  transition: opacity .35s var(--ease);
}
/* 1. тонкая ровная граница - без градиента */
.btn-cta::before, .promo__btn::before, .q-submit::before, .btn-ghost::before, .footer__cta::before {
  inset: -1px; padding: 1px; filter: none;
  background: rgba(255, 255, 255, .3);
}
/* 2. электрический импульс - узкая яркая искра, бежит по периметру быстрее */
.btn-cta::after, .promo__btn::after, .q-submit::after, .btn-ghost::after, .footer__cta::after {
  inset: -2px; padding: 2px; filter: blur(1px);
  background: conic-gradient(from var(--pulse-a),
    transparent 0 78%, rgba(255, 255, 255, .35) 84%, #fff 89%, #F0A24A 93%, transparent 97%);
}
.btn-cta:hover::before, .promo__btn:hover::before, .q-submit:hover::before,
.btn-ghost:hover::before, .footer__cta:hover::before { opacity: 1; animation: none; }
.btn-cta:hover::after, .promo__btn:hover::after, .q-submit:hover::after,
.btn-ghost:hover::after, .footer__cta:hover::after { opacity: 1; animation: pulseSpin 2.4s linear infinite; }

/* при наведении заливка фирменная, текст белый - везде одинаково */
.btn-cta:hover, .promo__btn:hover, .q-submit:hover, .btn-ghost:hover, .footer__cta:hover {
  background: linear-gradient(100deg, #240762 0%, #240762 26%, #2B08A2 50%, #240762 74%, #240762 100%);
  background-size: 240% 100%;
  animation: btnShimmer 5s linear infinite;
  color: #fff; border-color: transparent; transform: translateY(-2px);
}
@keyframes btnShimmer { to { background-position: -240% 0; } }
.footer__cta:hover { background: none; animation: none; }
.btn-cta:hover span, .promo__btn:hover span, .q-submit:hover span { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  .btn-cta::before, .promo__btn::before, .q-submit::before, .btn-ghost::before, .footer__cta::before,
  .btn-cta::after,  .promo__btn::after,  .q-submit::after,  .btn-ghost::after,  .footer__cta::after { animation: none !important; }
}

/* ---- Активная строка каталога: фиолетовая заливка + светящийся контур ---- */
.tech__btn { position: relative; isolation: isolate; }
.tech:hover .tech__btn,
.tech.is-active .tech__btn {
  background: linear-gradient(100deg, #240762 0%, #240762 52%, #2B08A2 100%);
  border-color: rgba(255, 255, 255, .16);
  transform: translateX(4px);
  box-shadow: 0 16px 34px -20px rgba(40, 2, 83, .8);
}
/* содержимое строки инвертируется на светлое */
.tech:hover .tech__name,  .tech.is-active .tech__name  { color: #fff; }
.tech:hover .tech__desc,  .tech.is-active .tech__desc  { color: rgba(255, 255, 255, .82); }
.tech:hover .tech__dot,   .tech.is-active .tech__dot   { background: #fff; transform: scale(1.2); }
.tech:hover .tech__num,   .tech.is-active .tech__num   { color: #F0A24A; }
.tech:hover .tech__arrow, .tech.is-active .tech__arrow { color: #fff; transform: translateX(4px); }
.tech:hover .tech__meta,  .tech.is-active .tech__meta  { color: #fff; background: rgba(255, 255, 255, .18); }

/* содержимое строки поверх фона */
.tech__dot, .tech__num, .tech__body, .tech__meta, .tech__arrow { position: relative; z-index: 1; }

/* ============================================================
   СЦЕНА 1 - ЛАБОРАТОРИЯ ЦВЕТА
   Высокая секция + sticky-экран; уровень, цвет жидкости, струи,
   подписи и текст слева привязаны к прогрессу прокрутки (main.js).
   ============================================================ */
.mix {
  position: relative; z-index: 1;
  height: 220vh;
  margin-top: clamp(48px, 6vw, 96px);
  /* значения по умолчанию - их каждый кадр перезаписывает main.js */
  --liq-c: #C9C9D2;
  --liq-y: 375;
  --grad-on: 0;
}
.mix__pin {
  position: sticky; top: 0; height: 100svh;
  display: flex; align-items: center;
  padding: clamp(56px, 8vh, 96px) 0;
}
.mix__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .88fr);
  gap: clamp(24px, 4vw, 72px); align-items: center; width: 100%;
}

/* --- левая колонка --- */
.mix__eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-ui); font-size: .72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .17em; color: var(--brand-violet);
  margin-bottom: 18px;
}
.mix__eyebrow::after {
  content: ""; flex: 1; max-width: 130px; height: 1px;
  background: linear-gradient(90deg, rgba(226, 102, 27, .55), var(--brand-orange));
}
.mix__title {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .01em;
  font-size: clamp(1.9rem, 3.6vw, 3.2rem); line-height: 1; color: var(--ink); margin: 0 0 clamp(20px, 3vh, 34px);
}
.mix__title span { color: var(--brand-violet); }

/* шесть блоков лежат в одной ячейке грида: контейнер по высоте самого длинного */
.mix__steps { display: grid; max-width: 520px; }
.mix__step {
  grid-area: 1 / 1;
  opacity: 0; transform: translateY(26px);
  transition: opacity .42s var(--ease), transform .42s var(--ease);
  will-change: transform, opacity;
}
.mix__step.is-on { opacity: 1; transform: none; }
.mix__step.is-past { opacity: 0; transform: translateY(-26px); }
.mix__step-name {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; font-size: .86rem; color: var(--brand-violet); margin-bottom: 10px;
}
.mix__step-text {
  font-size: clamp(1rem, 1.25vw, 1.2rem); line-height: 1.55; color: var(--ink);
}

.mix__outro {
  margin-top: clamp(22px, 3.4vh, 40px);
  opacity: 0; transform: translateY(20px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  pointer-events: none;
}
.mix__outro.is-on { opacity: 1; transform: none; pointer-events: auto; }
.mix__quote {
  border-left: 3px solid var(--brand-orange); padding-left: 16px; margin-bottom: 22px;
  font-weight: 600; font-size: clamp(.98rem, 1.15vw, 1.1rem); line-height: 1.5; color: var(--ink);
}
.mix__cta { border-radius: var(--pill); }

/* --- правая колонка: тёмная панель, на ней мензурка --- */
.mix__visual {
  position: relative; display: grid; place-items: center;
  /* нижний отступ держит подпись ΔE, которая стоит под сценой (top: 100%) */
  padding: clamp(18px, 2.6vw, 34px) clamp(14px, 2.4vw, 30px) clamp(58px, 6vw, 76px);
  border-radius: 30px;
  background: radial-gradient(120% 100% at 30% 0%, var(--violet-mid) 0%, var(--violet-deep) 72%);
  box-shadow: 0 40px 90px -50px rgba(40, 2, 83, .8);
  overflow: hidden;
}
.mix__stage { position: relative; width: 100%; max-width: 380px; }
.beaker { display: block; width: 100%; height: auto; overflow: visible; }

/* стекло */
.beaker__glass, .beaker__spout {
  fill: none; stroke: rgba(255, 255, 255, .34); stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
}
.beaker__rim { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 2; }
.beaker__shine {
  fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 7; stroke-linecap: round;
}
/* жидкость: уровень задаётся сдвигом группы, не высотой прямоугольника */
.beaker__liquid { transform: translateY(calc(var(--liq-y, 375) * 1px)); will-change: transform; }
.beaker__fill { fill: var(--liq-c, #C9C9D2); }
.beaker__wave { animation: mixWave 7s linear infinite; }
@keyframes mixWave { to { transform: translateX(-200px); } }
/* фирменный перелив поверх сплошной заливки - только на последней стадии */
.beaker__sheen { opacity: var(--grad-on, 0); animation: mixSheen 6.5s ease-in-out infinite alternate; }
@keyframes mixSheen { from { transform: translateX(-150px); } to { transform: translateX(150px); } }

.beaker__scale path { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: 1.6; stroke-linecap: round; }
.beaker__scale text {
  font-family: var(--font-ui); font-size: 11px; font-weight: 500; letter-spacing: .05em;
  fill: rgba(255, 255, 255, .6); text-anchor: end;
}
.beaker__logo {
  font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: .06em;
  fill: rgba(255, 255, 255, .26); text-anchor: middle;
}

/* --- бутылочки и струи --- */
.pour__bottle {
  opacity: var(--bop, 0);
  transform: translateY(calc((1 - var(--bop, 0)) * -12px));
  will-change: transform, opacity;
}
.pour__body { fill: rgba(255, 255, 255, .13); stroke: rgba(255, 255, 255, .32); stroke-width: 2; }
.pour__cap  { fill: rgba(255, 255, 255, .5); }
.pour__ink, .pour__neck { fill: var(--tint, #fff); }
.pour__stream {
  fill: var(--tint, #fff); opacity: var(--op, 0);
  transform-box: fill-box; transform-origin: 50% 0;
  transform: scaleY(var(--len, 0));
  filter: blur(1.4px);
  will-change: transform, opacity;
}
/* короткая волна в точке касания: идёт по поверхности жидкости */
.pour__ripple {
  fill: none; stroke: rgba(255, 255, 255, .8); stroke-width: 1.6;
  transform-box: fill-box; transform-origin: 50% 50%;
  opacity: 0;
  animation: pourRing 1.1s linear infinite;
}
@keyframes pourRing {
  0%   { transform: translateY(calc(var(--liq-y, 375) * 1px)) scale(.3);  opacity: calc(var(--rip, 0) * .85); }
  100% { transform: translateY(calc(var(--liq-y, 375) * 1px)) scale(1.6); opacity: 0; }
}

/* --- лабораторные подписи --- */
.mix__tags { position: absolute; inset: 0; pointer-events: none; }
.mix__tag {
  position: absolute; display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; border-radius: 9px; white-space: nowrap;
  font-family: var(--font-ui); font-size: .62rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .13em; color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transform: translate(var(--tx, 0px), 14px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.mix__tag.is-on { opacity: 1; transform: translate(var(--tx, 0px), 0); }
/* подписи стоят выше мерной шкалы (она занимает низ мензурки) */
.mix__tag--a { left: 0;  top: 30%; }
.mix__tag--b { right: 0; top: 24%; }
.mix__tag--c { left: 0;  top: 48%; }
.mix__tag--d { right: 0; top: 43%; }
.mix__tag--e {
  left: 50%; --tx: -50%; top: 100%; margin-top: 8px;
  font-size: .74rem; padding: 9px 15px; letter-spacing: .11em;
  background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .3);
}
.mix__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(226, 102, 27, .22);
}

/* --- до 900px сцена разворачивается в обычный поток --- */
@media (max-width: 900px) {
  .mix { height: auto; }
  .mix__pin { position: static; height: auto; padding: 0; }
  .mix__grid { grid-template-columns: 1fr; gap: clamp(28px, 6vw, 44px); }
  .mix__visual { order: -1; }
  .mix__steps { display: block; max-width: none; }
  .mix__step { opacity: 1 !important; transform: none !important; }
  .mix__step + .mix__step { margin-top: 20px; }
  .mix__outro { opacity: 1 !important; transform: none !important; pointer-events: auto; }
  .mix__tag { opacity: 1 !important; transform: translate(var(--tx, 0px), 0) !important; }
  .pour { display: none; }
}
/* на узких экранах панель тесная - подписи ужимаем, чтобы не лезли на шкалу */
@media (max-width: 560px) {
  .mix__tag { font-size: .56rem; letter-spacing: .1em; padding: 5px 8px; }
  .mix__tag--e { font-size: .66rem; padding: 7px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .beaker__wave, .beaker__sheen, .pour__ripple { animation: none; }
  .mix__step, .mix__outro, .mix__tag { transition: none; }
}

@media (max-width: 1200px) { .segmented { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .segmented::after { animation: none; } }

/* H1 главной. Стоит над вращающимся заголовком карусели.
   НАСТОЯЩИЙ видимый текст, а не спрятанный ключ: скрытый текст и клоакинг -
   прямой запрет проекта и риск санкций.
   Первая версия 28.08.2026 была мельче (.72-.84rem, max-width 28ch) и на обеих
   ширинах ломалась на три строки мелким капсом - читалась как служебная подпись,
   а не как заголовок страницы. Увеличена и разведена в две строки.
   Цвет наследуется от --ink героя, поэтому строка живёт и на тёмных, и на
   светлых состояниях карусели, как и остальной текст блока. */
.showcase__h1 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(.82rem, 1.15vw, 1.02rem);
  line-height: 1.3;
  letter-spacing: .055em;
  text-transform: uppercase;
  color: rgba(var(--ink), .78);
  margin-bottom: 14px;
  max-width: 36ch;
}
@media (max-width: 640px) {
  .showcase__h1 { font-size: .78rem; letter-spacing: .04em; margin-bottom: 10px; max-width: 30ch; }
}

/* Резерв высоты под меняющийся текст карусели - лечение CLS.
   Карусель каждые три секунды подменяет заголовок и описание, а число строк
   у категорий разное. Блок скакал, и это давало прыжок вёрстки.
   Замер на живом домене 28.08.2026, Chrome for Testing, mobile: один сдвиг
   на 0.198 из общего CLS 0.210 - весь показатель держался на нём. На 390 и
   768 разброса нет (там колонка узкая и все варианты ложатся одинаково),
   поэтому резерв нужен только с 1024px.
   Значения - максимум, замеренный прокруткой ВСЕХ 18 категорий на каждой
   ширине, плюс небольшой запас:
       1024px  141..197  ->  200
       1200px  149..210  ->  215
       1440px  152..225  ->  230
       1920px  161..242  ->  246
   Меняешь тексты категорий в CATS или размер шрифта заголовка - перемеряй
   и правь эти числа, иначе CLS вернётся молча. */
@media (min-width: 1024px) { .showcase__copy { min-height: 200px; } }
@media (min-width: 1200px) { .showcase__copy { min-height: 215px; } }
@media (min-width: 1440px) { .showcase__copy { min-height: 230px; } }
@media (min-width: 1800px) { .showcase__copy { min-height: 246px; } }
