/* =====================================================
   Puws Cloud — стили лендинга
   ===================================================== */

:root {
  --bg: #000;
  --bg-2: #0a0a0a;
  --text: #fff;
  --text-secondary: rgba(255, 255, 255, 0.48);
  --text-tertiary: rgba(255, 255, 255, 0.3);

  --accent: #595959;
  --accent-2: #8c8c8c;
  --accent-3: #b8b8b8;

  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-strong: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.08);

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-pill: 100px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.3s var(--ease-soft);

  --max-w: 1200px;
  --pad-x: clamp(20px, 4vw, 64px);
}

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

/* scroll-behavior: auto — обязательно для Lenis в Chromium.
   Нативный smooth в Chrome / Edge / Opera борется с RAF-циклом Lenis
   и ломает плавность колеса. Firefox толерантнее, но единая настройка проще. */
html {
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
  background: #000;
}

body {
  font-family: 'Onest', system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(ellipse 90% 48% at 50% -18%, rgba(255, 255, 255, 0.07), transparent 62%),
    linear-gradient(180deg, #020202 0%, #040404 42%, #000 100%);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  min-height: 100vh;
  /* Editorial-нумерация секций (01–07) — счётчик инкрементится на .section */
  counter-reset: sec;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

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

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

/* =====================================================
   NAVBAR — scroll-linked "peel-off" (--peel: 0..1)
   Все свойства интерполируются через CSS calc() в зависимости
   от --peel, которое JS обновляет плавно при скролле.
   ===================================================== */
.navbar {
  --peel: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
  /* "Отступы" верх/право/лево раскрываются по мере отлепания */
  padding: calc(var(--peel) * 16px) calc(var(--peel) * 16px) 0;
}
.navbar__inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
  /* Max-width: ∞ → 1040px (на пике pill-state) */
  max-width: calc((1 - var(--peel)) * 100vw + var(--peel) * 1040px);

  /* Padding плавно стягивается */
  padding-block: calc(14px - var(--peel) * 4px);
  padding-inline: calc(clamp(24px, 4vw, 48px) - var(--peel) * 24px);

  /* Border-radius: 0 0 24 24 → 100 100 100 100 (top corners 0→100, bottom 24→100) */
  border-radius:
    calc(var(--peel) * 100px) calc(var(--peel) * 100px)
    calc(24px + var(--peel) * 76px) calc(24px + var(--peel) * 76px);

  /* Background opacity: 0.42 → 0.72 */
  background: rgba(9, 9, 11, calc(0.42 + var(--peel) * 0.3));

  /* Backdrop blur: 14px → 28px */
  backdrop-filter: blur(calc(14px + var(--peel) * 14px)) saturate(1.15);
  -webkit-backdrop-filter: blur(calc(14px + var(--peel) * 14px)) saturate(1.15);

  /* Border: проявляется по сторонам, нижняя всегда видна */
  border: 1px solid rgba(255, 255, 255, calc(0.04 + var(--peel) * 0.06));
  border-top-color: rgba(255, 255, 255, calc(var(--peel) * 0.08));

  /* Тень: 0 → большая мягкая */
  box-shadow:
    0 calc(var(--peel) * 22px) calc(var(--peel) * 60px + 4px) rgba(0, 0, 0, calc(var(--peel) * 0.55)),
    0 calc(var(--peel) * 6px) calc(var(--peel) * 18px) rgba(0, 0, 0, calc(var(--peel) * 0.32));
}

/* === Brand === */
.navbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 0.98rem;
  white-space: nowrap;
  flex: 1;
}
.navbar__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  flex-shrink: 0;
  /* width auto — следует за изображением */
}
.navbar__brand-mark img {
  height: 100%;
  width: auto;
  max-width: none;
  display: block;
  object-fit: contain;
  filter:
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.35))
    drop-shadow(0 0 14px rgba(255, 255, 255, 0.2))
    drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
}
.navbar__brand-mark svg {
  width: 36px;
  height: 36px;
  display: block;
}
.navbar__brand-name { transition: opacity 0.3s var(--ease-soft); }

/* === Nav links === */
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navbar__nav li a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s var(--ease-soft), background 0.2s var(--ease-soft);
  white-space: nowrap;
}
.navbar__nav li a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
/* Лёгкое стягивание nav-ссылок по мере отлепания */
.navbar__nav {
  gap: calc(4px - var(--peel) * 2px);
}
.navbar__nav li a {
  padding: calc(8px - var(--peel) * 2px) calc(14px - var(--peel) * 2px);
}

/* === Actions: lang + buttons === */
.navbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: flex-end;
}
.navbar__lang {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 4px;
}
.navbar__lang-btn {
  padding: 6px 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-tertiary);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.2s var(--ease-soft), transform 0.14s var(--ease-out);
}
.navbar__lang-btn:hover { color: rgba(255, 255, 255, 0.8); }
.navbar__lang-btn.is-active { color: #fff; font-weight: 600; }
.navbar__lang-btn:active { transform: scale(0.92); }
.navbar__lang-sep { color: var(--text-tertiary); font-size: 0.82rem; }

.navbar__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft), color 0.25s var(--ease-soft), transform 0.16s var(--ease-out), translate 0.25s var(--ease-soft);
  cursor: pointer;
}
.navbar__btn--ghost {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.navbar__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}
.navbar__btn--gradient {
  color: #050505;
  background: #f4f4f4;
  border: none;
  padding: 9px 17px;  /* +1px чтобы скомпенсировать удалённый border (визуально размер тот же) */
}
.navbar__btn--gradient:hover {
  background: #fff;
  transform: translateY(-1px);
}
/* Emil: тактильный отклик на нажатие */
.navbar__btn:active { transform: translateY(0) scale(0.97); }

/* === Адаптив === */
@media (max-width: 960px) {
  .navbar__nav { display: none; }
}
@media (max-width: 768px) {
  .navbar__actions { gap: 8px; }
  .navbar__btn { padding: 7px 14px; font-size: 0.85rem; }
}
@media (max-width: 480px) {
  .navbar__brand-name { display: none; }
  .navbar__lang { display: inline-flex; }
  .navbar__btn--ghost { padding: 6px 12px; }
  .navbar__btn--gradient { padding: 6px 12px; }
  .navbar__btn svg { display: none; }
}

/* =====================================================
   Background atmosphere
   ===================================================== */
.bg-blobs {
  --bg-drift-x: 0px;
  --bg-drift-y: 0px;
  --bg-grain-y: 0px;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  transform: none;
  will-change: auto;
  /* Перф: фиксированный inset:0 фон — size-containment no-op; бордим layout/paint
     (зеркалит .gx-atmos). Изолирует перерисовку атмосферы от контента. */
  contain: strict;
  background:
    radial-gradient(ellipse 70% 42% at 50% -12%, rgba(255, 255, 255, 0.045), transparent 68%),
    radial-gradient(ellipse 58% 38% at 50% 112%, rgba(255, 255, 255, 0.022), transparent 72%);
}
.bg-atlas {
  position: absolute;
  inset: -18vh -12vw;
  pointer-events: none;
  transform: none;
}

.bg-atlas--base {
  opacity: 0.5;
  transform: translate3d(var(--bg-drift-x), var(--bg-drift-y), 0);
  will-change: transform;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.012) 26%, transparent 54%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.008), transparent 42%);
  filter: blur(18px);
}

.bg-atlas--base::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 16vh;
  width: min(720px, 82vw);
  height: min(320px, 38vh);
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.06), transparent 68%);
  opacity: 0.3;
  filter: blur(38px);
}

.bg-atlas--grain {
  opacity: 0.06;
  mix-blend-mode: screen;
  transform: translate3d(0, var(--bg-grain-y), 0);
  will-change: transform;
  background:
    repeating-radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 5px);
  background-size: 150px 150px;
}

/* =====================================================
   Типографика
   ===================================================== */
.hero-title {
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  /* Переливание: слой 1 — узкий блик (sheen), периодически проезжает по тексту.
     Слой 2 — базовый вертикальный градиент white → 55%. */
  background:
    linear-gradient(115deg, transparent 0%, transparent 40%, rgba(255, 255, 255, 0.95) 50%, transparent 60%, transparent 100%),
    linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.55) 100%);
  background-size: 240% 100%, 100% 100%;
  background-position: 130% 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-align: center;
  margin-bottom: 24px;
  --hero-blur: 14px;
  /* Ревил заголовка = 3 свободных канала, поверх [data-anim="fade"] (opacity/transform)
     и titleSheen (background-position): curtain (clip-path) + rack focus (filter) +
     letter-settle (letter-spacing). Каналы не пересекаются — жесткая дисциплина как у
     gsap-слоя. Первый sheen отложен к концу curtain (~1.4s), чтобы свет «поймался»
     сразу после раскрытия. */
  animation:
    heroTitleReveal 1.05s var(--ease-out) 0.3s both,
    titleSheen 8.5s var(--ease-soft) 1.4s infinite;
}
@keyframes titleSheen {
  0%   { background-position: 130% 0, 0 0; }
  26%  { background-position: -70% 0, 0 0; }
  100% { background-position: -70% 0, 0 0; }
}
/* Ревил фирменного заголовка. curtain снизу-вверх (clip-path inset),
   rack focus blur→0, лёгкое стягивание трекинга к резтинг-значению -0.04em. */
@keyframes heroTitleReveal {
  0%   { clip-path: inset(0 0 100% 0); filter: blur(var(--hero-blur, 14px)); letter-spacing: -0.01em; }
  100% { clip-path: inset(0 0 0% 0);   filter: blur(0);                       letter-spacing: -0.04em; }
}

.section-title {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 560px;
  margin: 0;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 10px;
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

/* =====================================================
   Glassmorphism утилиты
   ===================================================== */
/* Уплощённый материал: тонкий бордер, лёгкий blur (полное удаление
   «отклеивает» карточки от светящегося фона), без стеклянных rim-бликов */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
}

.glass-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: border-color var(--transition), transform var(--transition);
  overflow: hidden;
  /* Перф: бордим инвалидацию перерисовки рамками карточки. overflow:hidden уже
     клипает контент → визуально идентично; box-shadow — декорация бокса,
     paint-containment его НЕ режет (lift-тень рендерится как прежде). */
  contain: paint;
}

.glass-card-lg {
  position: relative;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 64px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  contain: paint;
}

.glass-card:hover { border-color: rgba(255, 255, 255, 0.15); }

.glass-card > * { position: relative; z-index: 1; }

/* =====================================================
   Кнопки
   ===================================================== */
.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: var(--radius-pill);
  transition: background 0.25s var(--ease-soft), color 0.25s var(--ease-soft), box-shadow 0.25s var(--ease-soft), transform 0.16s var(--ease-out), translate 0.25s var(--ease-soft);
  cursor: pointer;
  white-space: nowrap;
}
.pill-btn:hover { transform: translateY(-2px); }
.pill-btn:active { transform: translateY(0) scale(0.97); }

.pill-btn--gradient {
  background: #f4f4f4;
  color: #050505;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.pill-btn--gradient:hover {
  background: #fff;
}

.pill-btn--outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.pill-btn--outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.pill-btn--white {
  background: #fff;
  color: #000;
}
.pill-btn--white:hover { background: #ededed; }

/* =====================================================
   Data-anim примитивы
   ===================================================== */
[data-anim="fade"] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
[data-anim="scroll"] {
  opacity: 0;
  transform: translateY(44px) scale(0.97);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
[data-anim].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
[data-delay="50"] { transition-delay: 0.05s; }
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="150"] { transition-delay: 0.15s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="250"] { transition-delay: 0.25s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="500"] { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  html { scroll-behavior: auto; }
}

/* =====================================================
   Radial fill: пилюля "разрастается" из центра во все стороны.
   Через clip-path ellipse — текст и иконка ВНУТРИ кнопки
   остаются на своих местах, не двигаются и не сжимаются,
   просто открываются по мере того как клипа раскрывается из точки.
   ===================================================== */
@keyframes btnFillFromCenter {
  0% {
    opacity: 0;
    clip-path: ellipse(0% 0% at 50% 50%);
    transform: scale(0.82);
  }
  20% {
    opacity: 1;
  }
  70% {
    transform: scale(1.025);   /* очень лёгкий overshoot */
  }
  100% {
    opacity: 1;
    clip-path: ellipse(130% 220% at 50% 50%);
    transform: scale(1);
  }
}
.btn-pop {
  animation: btnFillFromCenter 0.8s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--pop-base, 0ms) + var(--pop-i, 0) * 200ms);
  transform-origin: center center;
}
@media (prefers-reduced-motion: reduce) {
  .btn-pop {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =====================================================
   i18n: char-level reveal анимация при смене языка
   ===================================================== */
/* .lang-char СО default hidden-состоянием — спаны невидимы сразу после
   создания (до того как JS добавит .lang-revealing). Это убирает flash:
   раньше спаны рендерились видимыми ~1-2 кадра до старта анимации,
   и пользователь видел резкий "вспых" нового текста до начала reveal'а.

   ВАЖНО: display = inline (default для span), НЕ inline-block.
   Inline-block создаёт атомарные боксы со sub-pixel rounding на стыках
   слов, из-за чего контейнеры "пухли" на время анимации. */
.lang-char {
  /* Скрыто по умолчанию — animation проявит к видимости */
  opacity: 0;
  filter: blur(10px);
  /* Принудительно включаем kerning/ligatures */
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
  letter-spacing: inherit;
  font-family: inherit;
  font-weight: inherit;
}
.lang-revealing .lang-char {
  /* fill-mode "both" критично:
     - backwards = применяет "from" state ДО старта (во время animation-delay)
     - forwards  = ОСТАВЛЯЕТ "to" state после завершения (спан не возвращается
                   к default hidden)
     Без forwards после конца animation span вернулся бы к opacity:0 и пропал. */
  animation: charReveal 0.85s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * var(--step, 60ms));
}
@keyframes charReveal {
  from {
    opacity: 0;
    filter: blur(10px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}
/* Fade-out перед заменой. 0.5s + 8px blur — очень плавный wash effect.
   Согласовано с JS setTimeout (500ms) — fade полностью завершается перед swap'ом. */
.lang-fading,
[data-anim].is-visible.lang-fading {
  transition:
    opacity 0.5s var(--ease-soft),
    filter 0.5s var(--ease-soft),
    transform 0.5s var(--ease-soft);
  opacity: 0;
  filter: blur(8px);
  transform: translateY(-4px);
}
/* Стабильность layout во время swap */
[data-i18n] { min-height: 1em; }

@media (prefers-reduced-motion: reduce) {
  .lang-char {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }
  .lang-fading { opacity: 1 !important; filter: none !important; transform: none !important; }
}

/* =====================================================
   Секционные обёртки
   ===================================================== */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(80px, 12vw, 140px) var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
  counter-increment: sec;
}

/* Editorial-заголовок: слева крупный контурный индекс секции,
   справа — eyebrow → заголовок → подзаголовок, снизу hairline. */
.section__header {
  display: grid;
  grid-template-columns: clamp(48px, 6vw, 76px) 1fr;
  column-gap: clamp(16px, 2.5vw, 28px);
  align-items: start;
  text-align: left;
  margin-bottom: clamp(48px, 7vw, 80px);
}
.section__header > * {
  grid-column: 2;
  justify-self: start;
}
.section__header::before {
  content: counter(sec, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / span 3;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.28);
  padding-top: 4px; /* оптическое выравнивание с eyebrow */
}
.section__header::after {
  content: '';
  grid-column: 1 / -1;
  justify-self: stretch;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-top: clamp(18px, 3vw, 28px);
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  min-height: var(--vh, 100vh);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Padding учитывает И ширину И высоту вьюпорта.
     На коротких экранах (ноут + browser chrome) min() поджимает отступы,
     чтобы CTA-кнопки оставались выше fold. */
  padding:
    clamp(56px, min(9vw, 10svh), 100px)
    var(--pad-x)
    clamp(72px, min(14vw, 14svh), 170px);
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  left: 50%;
  top: 19%;
  width: min(720px, 86vw);
  height: min(320px, 40vh);
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.045), transparent 72%);
  opacity: 0.4;
  filter: blur(34px);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  width: 100%;
}

.hero__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
}

.hero__icon-wrap {
  /* Размер по меньшему из (ширина вьюпорта, высота вьюпорта, абсолютный кап).
     Это критично для коротких экранов (ноутбук + Chrome chrome): иначе иконка
     застывает на 420px и съедает весь вертикальный бюджет, кнопки уходят за фолд. */
  width: min(420px, 38vw, 40svh);
  aspect-ratio: 1;
  margin: clamp(2px, 0.6svh, 8px) 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  transform-style: preserve-3d;
  overflow: visible;
}
/* Safari: старый iOS (<15) не знает aspect-ratio → wrap схлопнулся бы в высоту 0.
   @supports-негация ИНЕРТНА на всех актуальных браузерах (там aspect-ratio есть),
   поэтому визуально ничего не меняется — только страховка для древнего iOS. */
@supports not (aspect-ratio: 1) {
  .hero__icon-wrap { height: min(420px, 38vw, 40svh); }
}
.hero__icon {
  display: block;
  max-width: 110%;
  max-height: 110%;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Никаких cursor-effects: только статичный наклон + float */
  transform: rotate(-8deg);
  filter:
    drop-shadow(0 0 56px rgba(255, 255, 255, 0.1))
    drop-shadow(0 32px 80px rgba(0, 0, 0, 0.7))
    drop-shadow(0 14px 32px rgba(0, 0, 0, 0.5));
  /* Пружинный entrance (один раз) + бесконечный float после */
  animation:
    heroIconPop 1.15s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s backwards,
    iconFloat 5s var(--ease-soft) 1.5s infinite;
  will-change: transform;
}
@keyframes heroIconPop {
  from { opacity: 0; transform: rotate(-8deg) scale(0.55); }
  to   { opacity: 1; transform: rotate(-8deg) scale(1); }
}
.hero:hover .hero__icon { transition: transform 0.18s ease-out; }

.hero__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  flex-shrink: 0;
  /* width auto — следует за natural aspect ratio облака */
}
.hero__logo-mark img {
  height: 100%;
  width: auto;
  max-width: none;
  display: block;
  object-fit: contain;
  /* Мягкая подсветка вокруг облака */
  filter:
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.35))
    drop-shadow(0 0 14px rgba(255, 255, 255, 0.2))
    drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
}
.hero__logo-mark svg {
  width: 34px;
  height: 34px;
  display: block;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 560px;
  /* Margin тоже сжимается на коротких экранах */
  margin-bottom: clamp(22px, 4svh, 40px);
}

.hero__actions {
  display: flex;
  gap: 14px;
  margin-bottom: clamp(18px, 3svh, 32px);
  flex-wrap: wrap;
  justify-content: center;
}

.hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}
.hero__meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.6);
  animation: pulse 2s var(--ease-soft) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.reveal-line {
  /* В ПОТОКЕ — последний элемент .hero__inner (column-flex, центрируется сам).
     Раньше был position:absolute; bottom:30px и на коротких/средних вьюпортах
     наезжал на кнопки и мету (линия «висела» среди текста — баг-репорт юзера).
     Теперь всегда ниже меты с постоянным вертикальным ритмом — аккуратно
     «подводит черту» под hero, текста после неё нет. Внутри hero__inner →
     тает вместе с hero-параллаксом на десктопе. */
  width: clamp(160px, 34%, 420px);
  height: 1px;
  margin-top: clamp(24px, 5svh, 52px);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14) 50%, transparent);
  transform-origin: center;
}
/* Ревил: «прочерчивается» от центра (scaleX) — в духе hairline-дивайдеров секций
   (.section__header::after). Одноразово, не луп → де-AI-safe. */
.reveal-line[data-anim="fade"] { transform: scaleX(0.4); }
.reveal-line[data-anim].is-visible { transform: scaleX(1); }

/* =====================================================
   FEATURES — BENTO GRID
   ===================================================== */
.features__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 220px;
  gap: 18px;
}

.feature-card,
.use-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: visible;
  /* ВАЖНО: эти карточки выпускают 3D-иконку за свои пределы (overflow:visible).
     glass-card задаёт contain:paint (перф), но paint-containment режет paint
     НЕЗАВИСИМО от overflow → клипал иконки. Отключаем containment ТОЛЬКО здесь. */
  contain: none;
  padding: 28px;
  min-height: 100%;
}
/* Card background-clip via pseudo, чтобы при overflow:visible сама плитка осталась обрезанной */
.feature-card,
.use-card {
  isolation: isolate;
}

/* Размеры карточек */
.feature-card--hero { grid-column: span 4; grid-row: span 2; }
.feature-card--lg   { grid-column: span 2; grid-row: span 2; }
.feature-card--wide { grid-column: span 4; grid-row: span 1; }
.feature-card--md   { grid-column: span 3; grid-row: span 1; }
.feature-card--sm   { grid-column: span 2; grid-row: span 1; }

/* Возможности */
.possibilities__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 240px;
  gap: 18px;
}
.use-card--hero { grid-column: span 4; }
.use-card--md   { grid-column: span 2; }
.use-card--lg   { grid-column: span 3; }

/* Контент-блок и 3D-иконка внутри карточки */
.card-icon-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  perspective: 1200px;
  transform-style: preserve-3d;
  overflow: visible;
}
.card-icon-3d {
  display: block;
  width: auto;
  height: auto;
  max-width: 95%;
  max-height: 100%;
  object-fit: contain;
  transform:
    translate3d(var(--tx, 0px), var(--ty, 0px), 0)
    translateY(-4%)
    rotate(var(--static-rot, -8deg))
    scale(var(--icon-scale, 1));
  transition: transform 0.55s var(--ease-out);
  filter:
    drop-shadow(0 24px 56px rgba(255, 255, 255, 0.08))
    drop-shadow(0 10px 22px rgba(0, 0, 0, 0.65));
  animation: iconFloat 5s var(--ease-soft) infinite;
  will-change: transform;
}
/* Когда курсор находится на карточке — реакция быстрее (tight follow) */
.feature-card:hover .card-icon-3d,
.use-card:hover .card-icon-3d {
  transition: transform 0.25s var(--ease-soft);
}
.feature-card:hover .card-icon-3d,
.use-card:hover .card-icon-3d {
  transition: transform 0.18s ease-out;
}
@keyframes iconFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}

.feature-card__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  pointer-events: none;
}
.feature-card__content > * { pointer-events: auto; }

/* LAYOUT — большие квадратные карточки: иконка сверху, контент снизу */
.feature-card--hero .card-icon-wrap,
.feature-card--lg .card-icon-wrap,
.use-card--lg .card-icon-wrap {
  bottom: 42%;
}
.use-card--lg .card-icon-wrap {
  bottom: 50%;
}
.feature-card--hero .card-icon-3d,
.use-card--hero .card-icon-3d {
  max-width: 60%;
  max-height: 115%;
}
.feature-card--lg .card-icon-3d,
.use-card--lg .card-icon-3d {
  max-width: 75%;
  max-height: 115%;
}

/* === Static rotations per position для динамичного "разброса" === */
.features__grid > article:nth-child(1) .card-icon-3d { --static-rot: -10deg; } /* Globe */
.features__grid > article:nth-child(2) .card-icon-3d { --static-rot:  12deg; } /* NVMe */
.features__grid > article:nth-child(3) .card-icon-3d { --static-rot:  -8deg; } /* Shield */
.features__grid > article:nth-child(4) .card-icon-3d { --static-rot:   6deg; } /* Server */
.features__grid > article:nth-child(5) .card-icon-3d { --static-rot: -14deg; } /* Clock */
.features__grid > article:nth-child(6) .card-icon-3d { --static-rot:  10deg; } /* Rocket */

.possibilities__grid > article:nth-child(1) .card-icon-3d { --static-rot:  -6deg; } /* Laptop */
.possibilities__grid > article:nth-child(2) .card-icon-3d { --static-rot:  10deg; } /* Robot */
.possibilities__grid > article:nth-child(3) .card-icon-3d { --static-rot: -12deg; } /* Gamepad */
.possibilities__grid > article:nth-child(4) .card-icon-3d { --static-rot:   8deg; } /* Lock */

/* Широкие/средние/маленькие — иконка справа, контент слева */
.feature-card--wide,
.feature-card--md,
.feature-card--sm,
.use-card--hero,
.use-card--md {
  flex-direction: row;
  align-items: stretch;
  gap: 16px;
}
.feature-card--wide .card-icon-wrap,
.feature-card--md .card-icon-wrap,
.feature-card--sm .card-icon-wrap,
.use-card--hero .card-icon-wrap,
.use-card--md .card-icon-wrap {
  position: absolute;
  inset: 0 0 0 auto;
  left: 55%;
  width: auto;
}
.feature-card--wide .card-icon-3d,
.feature-card--md .card-icon-3d,
.feature-card--sm .card-icon-3d,
.use-card--md .card-icon-3d {
  max-width: 80%;
  max-height: 75%;
}
/* Shield (DDoS) — компактная карточка, иконка делается крупнее
   с лёгким breakout-эффектом за зону */
.feature-card--sm .card-icon-3d {
  max-width: 130%;
  max-height: 115%;
}
.use-card--hero .card-icon-3d {
  max-width: 78%;
  max-height: 80%;
}
.feature-card--wide .feature-card__content,
.feature-card--md .feature-card__content,
.feature-card--sm .feature-card__content,
.use-card--hero .feature-card__content,
.use-card--md .feature-card__content {
  margin-top: auto;
  width: 55%;
  align-self: flex-end;
  padding-right: 8px;
}

/* Hero-карточка ещё крупнее: тег + увеличенный заголовок */
.feature-card--hero,
.use-card--hero {
  padding: 36px;
}
.feature-card--lg,
.use-card--lg {
  padding: 32px;
}

.feature-card__tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  width: max-content;
  margin-bottom: 4px;
}

/* Типографика больших карточек */
.feature-card--hero .card-title,
.use-card--hero .card-title {
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 6px;
}
.feature-card--lg .card-title,
.use-card--lg .card-title {
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.feature-card--wide .card-title {
  font-size: clamp(1.3rem, 1.7vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature-card--hero .card-text,
.use-card--hero .card-text {
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 38ch;
}
.feature-card--lg .card-text,
.use-card--lg .card-text {
  font-size: 0.97rem;
  line-height: 1.55;
}

/* Иконки шагов (Steps использовали .step__icon отдельно) */
.step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 18px;
}
.step__icon svg { width: 24px; height: 24px; }

/* =====================================================
   STEPS
   ===================================================== */
.steps__grid {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  align-items: stretch;
  gap: 16px;
}

.step {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Контурная «чертёжная» цифра шага */
.step__number {
  position: absolute;
  top: 22px;
  right: 22px;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22);
  transition: -webkit-text-stroke-color 0.45s var(--ease-soft);
}
.step:hover .step__number {
  -webkit-text-stroke-color: rgba(255, 255, 255, 0.5);
}

.step__connector {
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Пунктирный коннектор — чертёжная линия вместо градиентной */
.step__line {
  width: 100%;
  height: 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.16);
}

/* =====================================================
   COMPARE — Dual VS Cards
   Две стеклянные плиты side-by-side с тонким "vs"-разделителем.
   Левая — наш (glow, prominent, контраст). Правая — конкуренты
   (muted, scale 0.96, без glow). Сравнение читается сразу, без
   интеракций. На мобиле кладутся вертикально.
   ===================================================== */
.compare-vs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: clamp(16px, 2.5vw, 28px);
  max-width: 1100px;
  margin: 0 auto;
}

/* === Card === */
.compare-vs__card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.2vw, 40px) clamp(24px, 2.8vw, 36px);
  border-radius: var(--radius-lg);
  /* Лёгкий blur — плоский материал, не глянцевое стекло */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  /* Фиксированная min-height — иначе карточки прыгают по высоте,
     когда меняются факты разной длины (1 vs 2 строки текста). */
  min-height: clamp(360px, 46svh, 420px);
  transition: transform 0.5s var(--ease-out), border-color 0.4s var(--ease-soft);
}

/* US card — плоский материал, контраст за счёт бордера и сплошной top-линии */
.compare-vs__card--us {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 10px 24px rgba(0, 0, 0, 0.3);
}
/* Сплошная hairline по верхней грани — чертёжный акцент */
.compare-vs__card--us::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
  pointer-events: none;
  z-index: 1;
}

/* THEM card — то же, но приглушённое */
.compare-vs__card--them {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.008) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 6px 14px rgba(0, 0, 0, 0.22);
  transform: scale(0.97);
  transform-origin: center center;
}

/* Контент карточек поверх псевдо-элементов */
.compare-vs__head,
.compare-vs__single,
.compare-vs__counter { position: relative; z-index: 2; }

/* === Header (brand + title + tag) === */
.compare-vs__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.compare-vs__card--them .compare-vs__head {
  border-bottom-color: rgba(255, 255, 255, 0.04);
}

.compare-vs__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  flex-shrink: 0;
}
.compare-vs__brand svg { width: 18px; height: 18px; }
.compare-vs__brand--them {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.35);
}

.compare-vs__title {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
  flex: 1 1 auto;
}
.compare-vs__title--us  { color: #fff; }
.compare-vs__title--them {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
}

.compare-vs__tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.compare-vs__tag--us {
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.compare-vs__tag--them {
  color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* === Single fact (один пункт за раз, авто-cycle) === */
.compare-vs__single {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: clamp(24px, 4vw, 40px) 0;
  text-align: center;
  /* Длина transition = FADE_HALF_MS в JS (250ms).
     Content swap происходит ровно когда opacity=0 — текст полностью невидим. */
  transition:
    opacity 0.25s ease,
    filter 0.25s ease,
    transform 0.35s var(--ease-out);
}
/* Жирный blur(12px) делает текст полностью нечитаемым ещё ДО того как
   opacity достигнет 0. Глаз не успевает зацепиться за момент подмены. */
.compare-vs.is-fading .compare-vs__single {
  opacity: 0;
  filter: blur(12px);
  transform: scale(0.94);
}

/* Lock text height — 2 строки гарантированно зарезервировано,
   чтобы блок текста не "пульсировал" при смене 1-line ↔ 2-line фактов */
.compare-vs__text {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8em;  /* 2 lines * 1.4 line-height */
}

.compare-vs__mark {
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.compare-vs__single .compare-vs__mark {
  width: 56px;
  height: 56px;
}
.compare-vs__single .compare-vs__mark svg {
  width: 24px;
  height: 24px;
}
.compare-vs__mark--check {
  /* Плоское "блюдце" с тонким бордером — иконка фичи внутри */
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.95);
}
.compare-vs__mark--cross {
  /* Та же иконка, но ghosted */
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.28);
}

.compare-vs__text {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.4;
  font-weight: 500;
  max-width: 26ch;
}
.compare-vs__card--us .compare-vs__text {
  color: rgba(255, 255, 255, 0.95);
}
.compare-vs__card--them .compare-vs__text {
  color: rgba(255, 255, 255, 0.42);
}

/* === Counter "1 / 7" === */
.compare-vs__counter {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  font-size: 0.82rem;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.compare-vs__counter--them { border-top-color: rgba(255, 255, 255, 0.04); }
.compare-vs__counter--them { color: rgba(255, 255, 255, 0.25); }
.compare-vs__counter-sep { color: rgba(255, 255, 255, 0.18); }

/* === Swap animation (карточки меняются местами) === */
.compare-vs__card {
  transition:
    transform 1.1s cubic-bezier(0.45, 0, 0.18, 1),
    border-color 0.4s var(--ease-soft);
}
/* В swapped-state применяем translateX И сохраняем исходный scale
   (US без scale, THEM с scale(0.97)) — иначе карточки визуально "пухнут". */
.compare-vs.is-swapped .compare-vs__card--us {
  transform: translateX(var(--vs-swap-dx, 0px));
}
.compare-vs.is-swapped .compare-vs__card--them {
  transform: translateX(calc(-1 * var(--vs-swap-dx, 0px))) scale(0.97);
}

/* === Таймер обратного отсчёта до следующего свапа === */
.compare-vs__timer {
  grid-column: 1 / -1;  /* span all grid columns */
  justify-self: center;
  margin-top: clamp(20px, 3vw, 32px);
  width: min(280px, 65%);
  height: 4px;
  /* Track постоянно виден — иначе при scroll фоновые блобы за ним
     делают его невидимым в некоторых положениях. */
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
  /* Тонкая backdrop-blur — track всегда читается даже на light-областях фона */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.compare-vs__timer-fill {
  display: block;
  height: 100%;
  width: 0;
  /* Яркий fill с минимальным gradient — всегда чётко виден против track'а */
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 1) 100%);
  border-radius: inherit;
  animation: compareVsTimer var(--vs-cycle-ms, 5200ms) linear infinite;
}
.compare-vs.is-paused .compare-vs__timer-fill {
  animation-play-state: paused;
}
@keyframes compareVsTimer {
  from { width: 0; }
  to   { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .compare-vs__timer-fill {
    animation: none;
    width: 100%;
    opacity: 0.4;
  }
}

/* === Divider (vertical "vs") === */
.compare-vs__divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  align-self: stretch;
  padding: 0 4px;
}
.compare-vs__divider-line {
  flex: 1 1 auto;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}
.compare-vs__divider-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  /* VS-badge — плоская шайба с тонким бордером */
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 5px rgba(0, 0, 0, 0.5),
    0 6px 18px rgba(0, 0, 0, 0.4);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

/* === Responsive === */
@media (max-width: 900px) {
  .compare-vs {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 14px;
  }
  .compare-vs__card--them {
    transform: scale(1);  /* на мобиле без масштабирования — выглядит чище */
  }
  .compare-vs__divider {
    flex-direction: row;
    width: 100%;
    gap: 14px;
    padding: 4px 0;
  }
  .compare-vs__divider-line {
    width: auto;
    height: 1px;
    flex: 1 1 auto;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  }
  /* На мобиле swap отключён — карточки stacked вертикально,
     translateX вынес бы их за экран. Остаётся только cross-fade факта. */
  .compare-vs__card {
    z-index: 2;
  }
  .compare-vs__divider {
    position: relative;
    z-index: 1;
  }
  .compare-vs.is-swapped .compare-vs__card--us {
    transform: translateY(var(--vs-swap-dy, 0px));
  }
  .compare-vs.is-swapped .compare-vs__card--them {
    transform: translateY(calc(-1 * var(--vs-swap-dy, 0px)));
  }
}
@media (max-width: 480px) {
  .compare-vs__card { padding: 22px 18px; }
  .compare-vs__head { gap: 10px; padding-bottom: 16px; }
  .compare-vs__title { font-size: 1rem; }
  .compare-vs__tag { font-size: 0.62rem; padding: 3px 8px; }
  .compare-vs__item { min-height: 46px; gap: 12px; padding: 10px 2px; }
  .compare-vs__text { font-size: 0.9rem; }
  .compare-vs__score-num { font-size: 1.7rem; }
  .compare-vs__divider-badge { width: 42px; height: 42px; font-size: 0.7rem; }
}

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.testimonials__viewport {
  --edge-pull: 0;
  position: relative;
  isolation: isolate;
}
.testimonials__viewport::before,
.testimonials__viewport::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 3;
}
.testimonials__viewport::before {
  top: -18px;
  right: -18px;
  bottom: 74px;
  width: min(190px, 38vw);
  background:
    radial-gradient(ellipse at 100% 50%,
      rgba(255, 255, 255, calc(0.16 + var(--edge-pull) * 0.22)) 0%,
      rgba(212, 212, 212, calc(0.08 + var(--edge-pull) * 0.16)) 32%,
      transparent 72%);
  opacity: var(--edge-pull);
  transform: translateX(calc((1 - var(--edge-pull)) * 18px));
  filter: blur(0.4px);
}
.testimonials__viewport::after {
  top: 12px;
  right: -2px;
  bottom: 92px;
  width: 1px;
  border-radius: var(--radius-pill);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 16%,
    rgba(255, 255, 255, 0.96) 50%,
    rgba(255, 255, 255, 0.18) 84%,
    transparent 100%
  );
  box-shadow:
    0 0 14px rgba(255, 255, 255, 0.48),
    0 0 34px rgba(255, 255, 255, 0.2);
  opacity: calc(var(--edge-pull) * 0.95);
  transform: translateX(calc(var(--edge-pull) * -8px)) scaleY(calc(0.4 + var(--edge-pull) * 0.6));
  transform-origin: center;
}
.testimonials__viewport.is-edge-pulse::before {
  animation: testimonialsEdgeVeil 0.78s var(--ease-out);
}
.testimonials__viewport.is-edge-pulse::after {
  animation: testimonialsEdgeLine 0.78s var(--ease-out);
}
.testimonials__track {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  /* Lerp в JS управляет позицией — snap-proximity не мешает плавности */
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  scrollbar-width: none;
  padding: 4px 4px 24px;
  margin: 0 -4px;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  transform: translate3d(calc(var(--edge-pull) * -14px), 0, 0);
  transition: transform 0.46s var(--ease-out);
  will-change: transform;
}
.testimonials__track::-webkit-scrollbar { display: none; }
.testimonials__track.is-dragging,
.testimonials__track.is-animating {
  scroll-snap-type: none; /* snap отключён во время драга И инерции */
}
.testimonials__track.is-dragging {
  cursor: grabbing;
  transition: none;
}
.testimonials__track.is-dragging .test-card { pointer-events: none; }

.test-card {
  flex: 0 0 clamp(280px, 32vw, 380px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.test-card__stars {
  display: flex;
  gap: 4px;
  color: var(--accent-2);
}
.test-card__stars svg {
  width: 16px;
  height: 16px;
}

.test-card__quote {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
  flex-grow: 1;
}

.test-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.test-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-3) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}
.test-card__meta { display: flex; flex-direction: column; gap: 2px; }
.test-card__meta strong { font-weight: 600; font-size: 0.95rem; }
.test-card__meta span { font-size: 0.82rem; color: var(--text-tertiary); }

.testimonials__controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition), transform 0.16s var(--ease-out), translate var(--transition);
}
.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}
.carousel-btn:active:not(:disabled) { transform: translateY(0) scale(0.94); }
.carousel-btn:disabled,
.carousel-btn.is-disabled {
  opacity: 0.34;
  cursor: default;
  transform: none;
}
.carousel-btn:disabled {
  pointer-events: none;
}
.carousel-btn svg { width: 18px; height: 18px; }

@keyframes testimonialsEdgeVeil {
  0% { opacity: 0; transform: translateX(22px) scaleX(0.62); }
  28% { opacity: 0.9; transform: translateX(-4px) scaleX(1); }
  100% { opacity: 0; transform: translateX(-18px) scaleX(0.84); }
}
@keyframes testimonialsEdgeLine {
  0% { opacity: 0; transform: translateX(8px) scaleY(0.2); }
  32% { opacity: 1; transform: translateX(-7px) scaleY(1); }
  100% { opacity: 0; transform: translateX(-18px) scaleY(0.54); }
}

/* =====================================================
   FAQ
   ===================================================== */
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary { list-style: none; }

.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition), transform 0.14s var(--ease-out);
}
.faq-item__q:hover { color: var(--accent-2); }
.faq-item__q:active { transform: scale(0.99); }

.faq-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: transform 0.34s var(--ease-out), background 0.26s var(--ease-soft);
}
.faq-item__icon svg { width: 14px; height: 14px; }

.faq-item.is-open .faq-item__icon {
  transform: rotate(180deg);
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-2);
  border-color: rgba(255, 255, 255, 0.12);
}

.faq-item__a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-out);
}
.faq-item__a {
  overflow: hidden;
  min-height: 0;
}
.faq-item__a p {
  padding: 0 26px 22px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}
.faq-item.is-open .faq-item__a-wrap {
  grid-template-rows: 1fr;
}

/* =====================================================
   FINAL CTA
   ===================================================== */
.cta {
  position: relative;
  padding-top: clamp(76px, 10vw, 130px);
  padding-bottom: clamp(72px, 9vw, 120px);
  overflow: visible;
}
.cta__shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 3.4vw, 36px);
  text-align: center;
}
/* Dotted-grid: инженерная «миллиметровка» вместо светового halo.
   Точки тусклые (≤0.12), чтобы не спорить с плёночным зерном поверх. */
.cta__halo {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(820px, 94vw);
  height: min(340px, 46vw);
  transform: translate(-50%, -50%);
  background-image: radial-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1.5px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 30%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}
.cta__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta__copy .eyebrow {
  margin-bottom: 18px;
}
/* Индекс CTA (07) — продолжение editorial-нумерации секций */
.cta__copy::before {
  content: counter(sec, decimal-leading-zero);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.25);
  margin-bottom: 14px;
}
.cta__title {
  font-size: clamp(2.2rem, 4.8vw, 3.85rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin-bottom: 18px;
  /* Переливание — как у hero-title */
  background:
    linear-gradient(115deg, transparent 0%, transparent 40%, rgba(255, 255, 255, 0.95) 50%, transparent 60%, transparent 100%),
    linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.62) 100%);
  background-size: 240% 100%, 100% 100%;
  background-position: 130% 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  max-width: 720px;
}
/* Премиальный ОДИНОЧНЫЙ световой проход по заголовку. Класс .is-swept вешает
   GSAP при ревиле (вместо прежнего бесконечного «глинта»). both — держим
   финальное состояние (блик ушёл влево, виден чистый базовый градиент). */
@keyframes ctaTitleSweep {
  0%   { background-position: 135% 0, 0 0; }
  100% { background-position: -75% 0, 0 0; }
}
.cta__title.is-swept {
  animation: ctaTitleSweep 1.4s var(--ease-soft) both;
}
.cta__text {
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 500px;
}
.cta__dock {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(520px, 100%);
  padding: 0;
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.45s var(--ease-out);
}
.cta__dock:hover,
.cta__dock:focus-within {
  transform: translateY(-2px);
}
.cta__buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.cta__dock .pill-btn {
  min-width: 190px;
  min-height: 52px;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
}
.cta__dock .pill-btn--gradient {
  min-width: 210px;
}
/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  position: relative;
  z-index: 1;
  padding: 60px var(--pad-x) 32px;
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer__inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.8fr) minmax(130px, 0.8fr) minmax(180px, 1fr) minmax(190px, 1fr);
  gap: clamp(30px, 4vw, 52px);
  margin-bottom: 40px;
}
.footer__col { display: flex; flex-direction: column; gap: 14px; }
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
}
.footer__tag {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  line-height: 1.5;
  max-width: 360px;
}
.footer__title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.footer__list { display: flex; flex-direction: column; gap: 10px; }
.footer__list a,
.footer__legal-btn {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition), transform 0.14s var(--ease-out);
}
.footer__legal-btn {
  display: inline-flex;
  width: auto;
  padding: 0;
  text-align: left;
}
.footer__list a:hover,
.footer__legal-btn:hover { color: var(--accent-2); }
.footer__legal-btn:active { transform: scale(0.96); }
.footer__legal-btn:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.42);
  outline-offset: 4px;
  border-radius: 6px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  color: var(--text-tertiary);
  flex-wrap: wrap;
}

/* Едва заметная подпись автора в самом низу */
.footer__credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 14px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.1);
  transition: color 0.4s var(--ease-soft);
}
.footer__credit:hover { color: rgba(255, 255, 255, 0.35); }
.footer__credit-heart {
  width: 9px;
  height: 9px;
  color: rgba(255, 255, 255, 0.18);
  transition: color 0.4s var(--ease-soft), transform 0.4s var(--ease-out);
}
.footer__credit:hover .footer__credit-heart {
  color: rgba(255, 100, 120, 0.7);
  transform: scale(1.15);
}

/* =====================================================
   Legal documents
   ===================================================== */
.legal-modal__eyebrow {
  display: inline-flex;
  width: max-content;
  align-items: center;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  font-weight: 700;
}
.legal-modal__eyebrow { padding: 5px 11px; }

body.legal-modal-open { overflow: hidden; }
.legal-modal {
  --legal-origin-x: 50vw;
  --legal-origin-y: 50vh;
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  visibility: hidden;
  overscroll-behavior: contain;
}
.legal-modal.is-active {
  pointer-events: auto;
  visibility: visible;
}
.legal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
  opacity: 0;
  transition: opacity 0.36s var(--ease-soft);
}
.legal-modal.is-open .legal-modal__backdrop { opacity: 0; }
.legal-modal__panel {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
  background: #080808;
  clip-path: circle(10px at var(--legal-origin-x) var(--legal-origin-y));
  contain: paint;
  will-change: clip-path;
  transform: scale(0.992);
  transform-origin: var(--legal-origin-x) var(--legal-origin-y);
  transition:
    clip-path 1.08s cubic-bezier(0.2, 0, 0, 1),
    transform 1.08s cubic-bezier(0.2, 0, 0, 1);
}
.legal-modal__panel::before,
.legal-modal__panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.legal-modal__panel::before {
  z-index: 0;
  inset: 0;
  background:
    radial-gradient(circle at var(--legal-origin-x) var(--legal-origin-y), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04) 18vmax, transparent 42vmax),
    linear-gradient(180deg, #111 0%, #070707 46%, #020202 100%);
  opacity: 0;
  transform: scale(0.985);
  transform-origin: var(--legal-origin-x) var(--legal-origin-y);
  transition:
    opacity 0.7s var(--ease-soft),
    transform 1.08s cubic-bezier(0.2, 0, 0, 1);
}
.legal-modal__panel::after {
  z-index: 3;
  left: var(--legal-origin-x);
  top: var(--legal-origin-y);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.46);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
  transition:
    opacity 0.52s var(--ease-soft),
    transform 0.9s cubic-bezier(0.2, 0, 0, 1);
}
.legal-modal.is-preparing .legal-modal__panel {
  transition: none;
}
.legal-modal.is-preparing .legal-modal__panel::before,
.legal-modal.is-preparing .legal-modal__panel::after {
  transition: none;
}
.legal-modal.is-active .legal-modal__panel::after {
  opacity: 0.28;
}
.legal-modal.is-open .legal-modal__panel {
  clip-path: circle(150vmax at var(--legal-origin-x) var(--legal-origin-y));
  transform: scale(1);
}
.legal-modal.is-open .legal-modal__panel::before {
  opacity: 1;
  transform: scale(1);
}
.legal-modal.is-open .legal-modal__panel::after {
  opacity: 0;
  transform: translate(-50%, -50%) scale(88);
}
.legal-modal.is-closing .legal-modal__panel {
  clip-path: circle(10px at var(--legal-origin-x) var(--legal-origin-y));
  transform: scale(0.988);
  transition:
    clip-path 0.62s cubic-bezier(0.72, 0, 0.2, 1),
    transform 0.62s cubic-bezier(0.72, 0, 0.2, 1);
}
.legal-modal.is-closing .legal-modal__panel::before {
  opacity: 0.15;
  transform: scale(0.975);
  transition:
    opacity 0.3s var(--ease-soft),
    transform 0.62s cubic-bezier(0.72, 0, 0.2, 1);
}
.legal-modal.is-closing .legal-modal__panel::after {
  opacity: 0.26;
  transform: translate(-50%, -50%) scale(0.95);
  transition:
    opacity 0.26s var(--ease-soft),
    transform 0.46s cubic-bezier(0.72, 0, 0.2, 1);
}
.legal-modal__panel > * {
  position: relative;
  z-index: 1;
}
.legal-modal__header {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: max(20px, env(safe-area-inset-top)) clamp(18px, 4vw, 56px) 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d0d0d;
}
.legal-modal__header,
.legal-section-nav,
.legal-modal__body {
  opacity: 0;
  transform: translateY(18px) scale(0.992);
  transition:
    opacity 0.42s var(--ease-soft),
    transform 0.78s cubic-bezier(0.2, 0, 0, 1);
}
.legal-modal.is-open .legal-modal__header,
.legal-modal.is-open .legal-section-nav,
.legal-modal.is-open .legal-modal__body {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.legal-modal.is-open .legal-modal__header { transition-delay: 0.1s; }
.legal-modal.is-open .legal-section-nav { transition-delay: 0.16s; }
.legal-modal.is-open .legal-modal__body { transition-delay: 0.2s; }
.legal-modal.is-closing .legal-modal__header,
.legal-modal.is-closing .legal-section-nav,
.legal-modal.is-closing .legal-modal__body {
  opacity: 0;
  transform: translateY(-10px) scale(0.998);
  transition:
    opacity 0.18s var(--ease-soft),
    transform 0.28s var(--ease-soft);
  transition-delay: 0s;
}
.legal-section-nav[hidden] { display: none; }
.legal-section-nav {
  --legal-section-progress: 0;
  position: relative;
  z-index: 2;
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 10px;
  padding: 12px clamp(18px, 4vw, 56px);
  min-height: 64px;
  max-width: 100vw;
  background: #080808;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.legal-section-nav::after {
  content: "";
  position: absolute;
  z-index: 3;
  pointer-events: none;
  left: clamp(18px, 4vw, 56px);
  right: clamp(18px, 4vw, 56px);
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  transform: scaleX(var(--legal-section-progress));
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.48));
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.26);
  transition: transform 0.7s cubic-bezier(0.2, 0, 0, 1);
}
.legal-section-nav.is-jumping::after {
  transition-duration: 0.95s;
}
.legal-section-nav__track {
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
  touch-action: pan-x;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.legal-section-nav__track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}
.legal-section-nav__track::-webkit-scrollbar { display: none; }
.legal-section-nav__list {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 100%;
  padding: 5px 12px 7px;
  width: max-content;
}
.legal-section-nav__arrow,
.legal-section-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.62);
  transition:
    background 0.3s var(--ease-soft),
    border-color 0.3s var(--ease-soft),
    color 0.3s var(--ease-soft),
    transform 0.3s var(--ease-out);
}
.legal-section-nav__arrow {
  width: 38px;
  height: 38px;
}
.legal-section-nav__arrow:hover,
.legal-section-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.legal-section-nav__arrow:active,
.legal-section-chip:active { transform: translateY(0) scale(0.96); }
.legal-section-nav__arrow svg {
  width: 18px;
  height: 18px;
}
.legal-section-chip {
  gap: 8px;
  padding: 0 13px;
  white-space: nowrap;
  flex: 0 0 auto;
  -webkit-user-select: none;
  user-select: none;
}
.legal-section-chip__number {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.legal-section-chip__title {
  max-width: 19ch;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.82rem;
  text-overflow: ellipsis;
}
.legal-section-chip.is-active {
  background: #f3f3f3;
  border-color: #f3f3f3;
  color: #050505;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.legal-section-chip.is-active .legal-section-chip__title {
  color: rgba(0, 0, 0, 0.62);
}
.legal-modal__title-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-modal__title {
  margin: 0;
  font-size: clamp(1.45rem, 3.4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.035em;
}
.legal-modal__status {
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.9rem;
}
.legal-modal__actions {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.legal-modal__icon-btn {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.72);
  transition: background 0.24s var(--ease-soft), color 0.24s var(--ease-soft), transform 0.24s var(--ease-out);
}
.legal-modal__icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateY(-1px);
}
.legal-modal__icon-btn:active { transform: translateY(0) scale(0.94); }
.legal-modal__icon-btn svg {
  width: 18px;
  height: 18px;
}
.legal-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.24) transparent;
  scroll-behavior: auto;
  padding: clamp(24px, 4vw, 56px) var(--pad-x) max(54px, env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 220px),
    #050505;
}
.legal-modal__body::-webkit-scrollbar { width: 8px; }
.legal-modal__body::-webkit-scrollbar-track { background: transparent; }
.legal-modal__body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}
.legal-document {
  width: min(100%, 980px);
  margin: 0 auto;
}
.legal-document::after {
  content: "";
  display: block;
  height: clamp(340px, 55vh, 620px);
}
.legal-document__hero {
  position: relative;
  padding-bottom: clamp(26px, 4vw, 42px);
  margin-bottom: clamp(24px, 4vw, 44px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.legal-document__hero::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 4px;
  bottom: clamp(26px, 4vw, 42px);
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.08));
}
.legal-document__hero h1 {
  max-width: 17ch;
  margin: 14px 0 12px;
  color: #f7f7f7;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
.legal-document__lead,
.legal-document__meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.58;
}
.legal-document__meta { margin-top: 14px; color: rgba(255, 255, 255, 0.38); }
.legal-document h2 {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: baseline;
  gap: 18px;
  scroll-margin-top: 26px;
  margin: clamp(36px, 5vw, 64px) 0 16px;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.legal-document h2::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8px -18px -8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
  opacity: 0;
  transform: scaleX(0.96);
  transition: opacity 0.42s var(--ease-soft), transform 0.75s cubic-bezier(0.2, 0, 0, 1);
}
.legal-document h2.is-spotlit::after {
  opacity: 1;
  transform: scaleX(1);
}
.legal-document h2:first-child { margin-top: 0; }
.legal-document__section-number {
  color: rgba(255, 255, 255, 0.34);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.legal-document__section-title {
  min-width: 0;
}
.legal-document h3 {
  margin: 28px 0 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
}
.legal-document p,
.legal-document li {
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(0.95rem, 1.15vw, 1.02rem);
  line-height: 1.78;
}
.legal-document p {
  max-width: 790px;
  margin: 0 0 14px clamp(0px, 6vw, 68px);
}
.legal-document__hero .legal-document__lead,
.legal-document__hero .legal-document__meta {
  max-width: 790px;
  margin-left: 0;
}
.legal-document__hero .legal-document__meta {
  margin-top: 14px;
}
.legal-document__clause-number,
.legal-document__item-marker {
  color: rgba(255, 255, 255, 0.96);
  font-weight: 700;
}
.legal-document ul {
  display: grid;
  gap: 9px;
  max-width: 790px;
  margin: 10px 0 18px clamp(0px, 6vw, 68px);
  padding: 0;
}
.legal-document li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}
.legal-document a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 3px;
}
.legal-loading {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.legal-loading span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  animation: legalLoading 0.9s ease-in-out infinite;
}
.legal-loading span:nth-child(2) { animation-delay: 0.12s; }
.legal-loading span:nth-child(3) { animation-delay: 0.24s; }
@keyframes legalLoading {
  0%, 100% { transform: translateY(0); opacity: 0.34; }
  50% { transform: translateY(-8px); opacity: 1; }
}
.legal-error {
  width: min(100%, 680px);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}
.legal-error h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}
.legal-error p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}
.legal-error a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  color: #050505;
  font-weight: 700;
}

@supports not (clip-path: circle(10px at 10px 10px)) {
  .legal-modal__panel {
    clip-path: none;
    transform: translateY(18px) scale(0.96);
  }
  .legal-modal.is-open .legal-modal__panel {
    transform: translateY(0) scale(1);
  }
}

/* =====================================================
   Адаптив
   ===================================================== */
@media (max-width: 1100px) {
  .features__grid { grid-auto-rows: 200px; }
  .possibilities__grid { grid-auto-rows: 220px; }
}

@media (max-width: 960px) {
  /* Bento → упрощённая 4-колоночная сетка */
  .features__grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
  }
  .feature-card--hero { grid-column: span 4; grid-row: span 2; }
  .feature-card--lg   { grid-column: span 4; grid-row: span 1; flex-direction: row; }
  .feature-card--lg .card-icon-wrap { position: absolute; left: 55%; top: 0; bottom: 0; right: 0; }
  .feature-card--lg .feature-card__content { width: 55%; align-self: flex-end; }
  .feature-card--wide { grid-column: span 4; }
  .feature-card--md   { grid-column: span 2; }
  .feature-card--sm   { grid-column: span 2; }

  .possibilities__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }
  .use-card--hero { grid-column: span 2; }
  .use-card--md   { grid-column: span 2; }
  .use-card--lg   { grid-column: span 1; }

  .steps__grid { grid-template-columns: 1fr; }
  .step__connector {
    width: 1px;
    height: 32px;
    margin: 0 auto;
  }
  .step__connector .step__line {
    width: 0;
    height: 100%;
    border-top: none;
    border-left: 1px dashed rgba(255, 255, 255, 0.16);
  }

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

@media (max-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .legal-modal__header {
    align-items: stretch;
    flex-direction: column;
  }
  .legal-modal__actions {
    justify-content: flex-start;
  }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  /* Все bento в 1 колонку */
  .features__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 320px;
  }
  .feature-card--hero,
  .feature-card--lg,
  .feature-card--wide,
  .feature-card--md,
  .feature-card--sm {
    grid-column: span 1;
    grid-row: span 1;
    flex-direction: column;
  }
  .feature-card--hero { grid-row: span 1; }
  .feature-card--lg .card-icon-wrap,
  .feature-card--wide .card-icon-wrap,
  .feature-card--md .card-icon-wrap,
  .feature-card--sm .card-icon-wrap,
  .use-card--hero .card-icon-wrap,
  .use-card--md .card-icon-wrap {
    position: absolute;
    inset: 0;
    left: 0;
    bottom: 38%;
  }
  .feature-card--lg .feature-card__content,
  .feature-card--wide .feature-card__content,
  .feature-card--md .feature-card__content,
  .feature-card--sm .feature-card__content,
  .use-card--hero .feature-card__content,
  .use-card--md .feature-card__content {
    width: 100%;
    align-self: flex-end;
  }

  .possibilities__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 300px;
  }
  .use-card--hero,
  .use-card--md,
  .use-card--lg { grid-column: span 1; }

  .hero__actions { width: 100%; flex-direction: column; }
  .hero__actions .pill-btn { width: 100%; }
  .cta__buttons { width: 100%; flex-direction: column; }
  .cta__buttons .pill-btn { width: 100%; }
  .step__connector { display: none; }
  .glass-card { padding: 22px; }
  .glass-card-lg { padding: 28px; }
  .feature-card,
  .use-card { padding: 22px; }
  .feature-card--hero,
  .use-card--hero { padding: 24px; }
  .step__number { font-size: 2.5rem; top: 18px; right: 18px; }
  .faq-item__q { padding: 18px 20px; font-size: 1rem; }
  .faq-item__a p { padding: 0 20px 18px; }
  .compare__th, .compare__table tbody td { padding: 14px 16px; font-size: 0.9rem; }
}

/* =====================================================
   MOBILE POLISH PASS
   ===================================================== */
@media (max-width: 640px) {
  :root {
    --pad-x: clamp(16px, 5vw, 22px);
    --radius-md: 14px;
    --radius-lg: 18px;
  }

  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }
  body { font-size: 15px; }

  .bg-blobs {
    inset: 0;
    opacity: 0.72;
  }
  .bg-atlas--base {
    opacity: 0.48;
  }
  .bg-atlas--base::before {
    top: 14vh;
    width: 92vw;
    height: 32vh;
    opacity: 0.28;
  }
  .bg-atlas--grain {
    opacity: 0.05;
  }

  .navbar {
    padding: calc(var(--peel) * 10px) calc(var(--peel) * 10px) 0;
  }
  .navbar__inner {
    width: calc(100vw - var(--peel) * 20px);
    max-width: none;
    min-height: calc(64px - var(--peel) * 8px);
    gap: 8px;
    padding-block: calc(10px - var(--peel) * 2px);
    padding-inline: calc(16px - var(--peel) * 6px);
    border-radius:
      calc(var(--peel) * 100px) calc(var(--peel) * 100px)
      calc(22px + var(--peel) * 78px) calc(22px + var(--peel) * 78px);
  }
  .navbar__brand { min-width: 46px; gap: 0; }
  .navbar__brand-name { display: none; }
  .navbar__brand-mark { height: calc(40px - var(--peel) * 2px); }
  .navbar__actions {
    gap: 7px;
    margin-left: auto;
  }
  .navbar__lang {
    display: inline-flex;
    gap: 3px;
    margin-right: 0;
  }
  .navbar__lang-btn {
    min-height: 32px;
    padding: 5px 5px;
    font-size: 0.74rem;
  }
  .navbar__lang-sep {
    font-size: 0.74rem;
  }
  .navbar__btn {
    min-height: calc(40px - var(--peel) * 2px);
    padding: 8px 13px;
    font-size: 0.82rem;
  }
  .navbar__btn--gradient { padding: 8px 13px; }
  .navbar__btn svg { display: none; }

  .hero {
    align-items: flex-start;
    min-height: 100svh;
    padding: clamp(96px, 14svh, 118px) var(--pad-x) clamp(38px, 7svh, 64px);
  }
  .hero::before {
    top: 24%;
    width: 92vw;
    height: 30vh;
    opacity: 0.24;
  }
  .hero__inner {
    min-height: calc(100svh - clamp(150px, 22svh, 182px));
    justify-content: center;
  }
  .hero__logo {
    padding: 7px 15px 7px 8px;
    margin-bottom: 14px;
    font-size: 0.84rem;
  }
  .hero__logo-mark { height: 30px; }
  .hero__icon-wrap {
    width: min(210px, 54vw, 28svh);
    margin: 0 0 8px;
  }
  .hero-title {
    font-size: clamp(3rem, 15vw, 4rem);
    line-height: 0.92;
    margin-bottom: 14px;
  }
  .hero-subtitle {
    max-width: 32ch;
    font-size: 0.98rem;
    line-height: 1.45;
    margin-bottom: 22px;
  }
  .hero__actions {
    gap: 10px;
    margin-bottom: 16px;
  }
  .hero__meta {
    max-width: 32ch;
    /* Блочная строка вместо flex: точка-маркер идёт ИНЛАЙН с текстом и
       центрируется по ПЕРВОЙ строке (vertical-align:middle у .hero__meta-dot).
       Прежний flex + align-items:flex-start прижимал точку к верхней кромке
       лайн-бокса → при переносе текста на 2 строки она «уезжала» выше глифов
       (баг-репорт юзера). Десктоп (inline-flex, 1 строка) не затронут. */
    display: block;
    text-align: center;
    font-size: 0.76rem;
    line-height: 1.35;
  }
  .hero__meta-dot {
    /* во flex точка блокифицировалась (width/height работали); в block-строке
       нужен inline-block, чтобы 6px-размер применился. vertical-align:middle —
       центр по первой строке; margin-right заменяет flex gap. */
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
  }
  .reveal-line {
    width: clamp(130px, 52%, 260px);
    margin-top: clamp(20px, 4svh, 36px);
  }

  .section {
    scroll-margin-top: 88px;
    padding: 64px var(--pad-x);
  }
  .section__header { margin-bottom: 34px; }
  .eyebrow {
    padding: 5px 12px;
    margin-bottom: 14px;
    font-size: 0.68rem;
    letter-spacing: 0.07em;
  }
  .section-title {
    font-size: clamp(2rem, 9.2vw, 2.75rem);
    line-height: 1.04;
    margin-bottom: 12px;
  }
  .section-subtitle {
    max-width: 32ch;
    font-size: 0.94rem;
    line-height: 1.5;
  }
  .card-title {
    font-size: 1.12rem;
    line-height: 1.22;
  }
  .card-text {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .btn-pop { animation-duration: 0.95s; }
  .navbar .btn-pop { animation-delay: calc(120ms + var(--pop-i, 0) * 90ms); }
  .hero .btn-pop { animation-delay: calc(420ms + var(--pop-i, 0) * 120ms); }
  .pill-btn {
    min-height: 48px;
    padding: 13px 20px;
    font-size: 0.94rem;
  }

  .features__grid,
  .possibilities__grid {
    gap: 14px;
    grid-auto-rows: auto;
  }
  .feature-card,
  .use-card {
    min-height: 236px;
    padding: 20px;
    /* НЕ hidden: эти карточки намеренно выпускают 3D-PNG-иконку за край (как на
       десктопе). overflow:hidden РЕЗАЛ иконку «в блок» на мобиле (баг-репорт юзера).
       Горизонтальный скролл уже исключён через html,body{overflow-x:clip} выше →
       breakout безопасен. Зеркалит base .feature-card/.use-card{overflow:visible}. */
    overflow: visible;
  }
  .feature-card--hero,
  .use-card--hero {
    min-height: 252px;
    padding: 22px;
  }
  .feature-card--lg,
  .use-card--lg {
    min-height: 240px;
    padding: 21px;
  }
  .card-icon-wrap,
  .feature-card--lg .card-icon-wrap,
  .feature-card--wide .card-icon-wrap,
  .feature-card--md .card-icon-wrap,
  .feature-card--sm .card-icon-wrap,
  .use-card--hero .card-icon-wrap,
  .use-card--md .card-icon-wrap {
    inset: 0 0 auto auto;
    left: auto;
    right: -8px;
    top: 4px;
    bottom: auto;
    width: 58%;
    height: 54%;
    opacity: 0.92;
  }
  .feature-card--wide .card-icon-wrap,
  .feature-card--md .card-icon-wrap,
  .feature-card--sm .card-icon-wrap,
  .use-card--md .card-icon-wrap {
    width: 52%;
    height: 48%;
  }
  .card-icon-3d,
  .feature-card--hero .card-icon-3d,
  .feature-card--lg .card-icon-3d,
  .feature-card--wide .card-icon-3d,
  .feature-card--md .card-icon-3d,
  .feature-card--sm .card-icon-3d,
  .use-card--hero .card-icon-3d,
  .use-card--lg .card-icon-3d,
  .use-card--md .card-icon-3d {
    max-width: 110%;
    max-height: 110%;
  }
  .feature-card__content,
  .feature-card--lg .feature-card__content,
  .feature-card--wide .feature-card__content,
  .feature-card--md .feature-card__content,
  .feature-card--sm .feature-card__content,
  .use-card--hero .feature-card__content,
  .use-card--md .feature-card__content {
    width: 100%;
    max-width: 100%;
    padding-right: 0;
    align-self: flex-end;
  }
  .feature-card__tag {
    max-width: 100%;
    white-space: normal;
    font-size: 0.62rem;
    line-height: 1.2;
    padding: 5px 10px;
  }
  .feature-card--hero .card-title,
  .use-card--hero .card-title,
  .feature-card--lg .card-title,
  .use-card--lg .card-title,
  .feature-card--wide .card-title {
    font-size: clamp(1.22rem, 5.8vw, 1.48rem);
  }
  .feature-card--hero .card-text,
  .use-card--hero .card-text,
  .feature-card--lg .card-text,
  .use-card--lg .card-text {
    font-size: 0.9rem;
  }

  .steps__grid { gap: 12px; }
  .step {
    min-height: 0;
    padding: 22px;
  }
  .step__number {
    top: 16px;
    right: 18px;
    font-size: 2.25rem;
  }
  .step__icon {
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
  }

  .compare-vs { gap: 14px; }
  .compare-vs__card {
    min-height: 312px;
    padding: 22px 18px;
    border-radius: 16px;
  }
  .compare-vs__single {
    gap: 14px;
    padding: 18px 0 16px;
  }
  .compare-vs__single .compare-vs__mark {
    width: 48px;
    height: 48px;
  }
  .compare-vs__single .compare-vs__mark svg {
    width: 21px;
    height: 21px;
  }
  .compare-vs__text {
    min-height: 2.5em;
    max-width: 23ch;
    font-size: 0.95rem;
  }
  .compare-vs__counter { padding-top: 12px; }

  .testimonials__track {
    gap: 14px;
    padding-bottom: 18px;
  }
  .test-card {
    flex-basis: clamp(282px, 78vw, 330px);
    padding: 22px;
  }
  .test-card__quote {
    font-size: 0.94rem;
    line-height: 1.5;
  }
  .test-card__author { padding-top: 14px; }
  .testimonials__controls { margin-top: 22px; }
  .carousel-btn {
    width: 42px;
    height: 42px;
  }

  .faq__list { gap: 10px; }
  .faq-item.glass-card { padding: 0; }
  .faq-item__q {
    min-height: 58px;
    padding: 17px 18px;
    gap: 14px;
    font-size: 0.96rem;
    line-height: 1.3;
  }
  .faq-item__a p {
    padding: 0 18px 18px;
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .cta {
    padding-top: 66px;
    padding-bottom: 58px;
  }
  .cta::before {
    bottom: 34px;
    width: 86%;
    height: 38px;
    filter: blur(13px);
  }
  .cta__shell {
    gap: 24px;
  }
  .cta__halo {
    top: 42%;
    width: 120%;
    height: 240px;
    background-size: 20px 20px;
  }
  .cta__title { font-size: clamp(2rem, 9vw, 2.7rem); }
  .cta__text {
    font-size: 0.95rem;
    max-width: 32ch;
  }
  .cta__dock {
    width: min(100%, 420px);
    align-items: center;
  }
  .cta__buttons {
    gap: 10px;
    justify-content: center;
  }

  .footer {
    padding: 46px var(--pad-x) max(28px, env(safe-area-inset-bottom));
  }
  .footer__inner {
    gap: 28px;
    margin-bottom: 30px;
  }
  .legal-modal__header {
    display: block;
    min-height: auto;
    gap: 0;
    padding: max(12px, env(safe-area-inset-top)) 58px 10px 16px;
  }
  .legal-modal__title-wrap {
    gap: 5px;
  }
  .legal-modal__title {
    font-size: clamp(1.25rem, 6.2vw, 1.8rem);
    line-height: 1.02;
    letter-spacing: -0.028em;
  }
  .legal-modal__status {
    max-width: 32ch;
    font-size: 0.78rem;
    line-height: 1.25;
  }
  .legal-modal__actions {
    position: absolute;
    top: max(12px, env(safe-area-inset-top));
    right: 14px;
    justify-content: flex-end;
  }
  .legal-modal__icon-btn {
    width: 34px;
    height: 34px;
  }
  .legal-modal__icon-btn svg { width: 15px; height: 15px; }
  .legal-section-nav {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    gap: 6px;
    min-height: 52px;
    padding: 7px 10px;
  }
  .legal-section-nav::after {
    left: 10px;
    right: 10px;
    bottom: 3px;
  }
  .legal-section-nav__arrow {
    width: 32px;
    height: 32px;
  }
  .legal-section-nav__arrow svg {
    width: 15px;
    height: 15px;
  }
  .legal-section-chip {
    min-height: 32px;
    padding-inline: 10px;
    font-size: 0.78rem;
  }
  .legal-section-nav__list { padding-block: 4px 6px; }
  .legal-section-chip__title {
    max-width: 13ch;
  }
  .legal-modal__body {
    padding: 24px var(--pad-x) max(38px, env(safe-area-inset-bottom));
  }
  .legal-document__hero {
    padding-bottom: 24px;
    margin-bottom: 24px;
  }
  .legal-document__hero h1 {
    max-width: 100%;
    font-size: clamp(1.85rem, 8.8vw, 2.35rem);
    line-height: 1.08;
    letter-spacing: -0.032em;
  }
  .legal-document__hero::before {
    left: -12px;
  }
  .legal-document h2 {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    margin-top: 34px;
    scroll-margin-top: 18px;
  }
  .legal-document p,
  .legal-document ul {
    margin-left: 0;
  }
  .legal-document li {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px;
  }
  .footer__list { gap: 8px; }
  .footer__list a,
  .footer__legal-btn {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
  }

  .puws-transition {
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
  }
  .puws-transition__content {
    width: min(100% - 32px, 360px);
  }
  .puws-transition__close {
    top: max(16px, env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
  }
}

@media (max-width: 480px) {
  .navbar__inner {
    gap: 6px;
  }
  .navbar__actions {
    gap: 6px;
  }
  .navbar__lang {
    display: inline-flex;
    gap: 2px;
    margin-right: 0;
  }
  .navbar__lang-btn {
    min-height: 30px;
    padding: 5px 5px;
    font-size: 0.72rem;
  }
  .navbar__lang-sep {
    font-size: 0.72rem;
  }
  .navbar__btn {
    min-height: 36px;
    padding: 7px 11px;
    font-size: 0.78rem;
  }
  .navbar__btn--gradient {
    padding: 7px 12px;
  }
}

@media (max-width: 380px) {
  .navbar__inner { padding-inline: calc(14px - var(--peel) * 6px); }
  .navbar__brand { min-width: 42px; }
  .navbar__brand-mark { height: calc(36px - var(--peel) * 2px); }
  .navbar__actions { gap: 6px; }
  .navbar__lang-btn {
    padding-inline: 3px;
    font-size: 0.68rem;
  }
  .navbar__btn {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 0.76rem;
  }
  .navbar__btn--ghost { padding-inline: 9px; }
  .navbar__btn--gradient { padding-inline: 10px; }

  .hero-title { font-size: clamp(2.75rem, 14.5vw, 3.35rem); }
  .hero-subtitle { font-size: 0.94rem; }
  .section { padding-block: 56px; }
  .section-title { font-size: clamp(1.85rem, 9vw, 2.35rem); }
  .feature-card,
  .use-card {
    min-height: 226px;
    padding: 19px;
  }
  .feature-card--hero,
  .use-card--hero { min-height: 242px; }
  .test-card { flex-basis: min(300px, calc(100vw - 60px)); }
}

@media (max-width: 480px) and (max-height: 760px) {
  .legal-modal__header {
    padding-top: max(9px, env(safe-area-inset-top));
    padding-bottom: 8px;
  }
  .legal-modal__eyebrow {
    padding: 4px 9px;
    font-size: 0.62rem;
  }
  .legal-modal__title {
    font-size: clamp(1.12rem, 5.8vw, 1.55rem);
  }
  .legal-modal__status {
    font-size: 0.72rem;
  }
  .legal-modal__actions {
    top: max(9px, env(safe-area-inset-top));
  }
  .legal-section-nav {
    min-height: 48px;
    padding-block: 6px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .pill-btn:hover,
  .navbar__btn:hover,
  .carousel-btn:hover,
  .glass-card:hover,
  .cta__dock:hover,
  .legal-section-nav__arrow:hover,
  .legal-section-chip:hover,
  .legal-modal__icon-btn:hover,
  .footer__credit:hover .footer__credit-heart {
    transform: none;
  }
}

/* =====================================================
   Billing Transition — "Cloud Ascend" overlay
   Появляется при клике на register/logon кнопки. Облако со стрелкой
   вверх + поднимающиеся частицы (метафора аплоада в облако), потом
   редирект на my.puws.cloud в той же вкладке.
   ===================================================== */
.puws-transition {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.puws-transition.active {
  opacity: 1;
  pointer-events: all;
}
.puws-transition__bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}
.puws-transition__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  transform: scale(0.85);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out);
}
.puws-transition.active .puws-transition__content {
  transform: scale(1);
  opacity: 1;
}

/* === Cloud container — постоянно "живёт": плывёт вверх-вниз + покачивается === */
.puws-transition__cloud {
  position: relative;
  width: 150px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ptcFloat 3s ease-in-out infinite;
}
@keyframes ptcFloat {
  0%, 100% { transform: translateY(0)    rotate(-2.5deg); }
  50%      { transform: translateY(-9px) rotate(2.5deg); }
}
/* Пульсирующий glow за облаком */
.puws-transition__cloud::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 65%);
  animation: ptcGlow 2.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes ptcGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: 0.55; }
  50%      { transform: translate(-50%, -50%) scale(1.5); opacity: 0.12; }
}
/* Sonar-кольцо — расходящийся "сигнал" аплоада */
.puws-transition__cloud::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90px;
  height: 90px;
  margin: -45px 0 0 -45px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  animation: ptcRing 1.8s ease-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes ptcRing {
  0%   { transform: scale(0.5); opacity: 0.6; }
  100% { transform: scale(2.1); opacity: 0; }
}

/* === Cloud SVG — pop-in с overshoot bounce === */
.ptc-cloud {
  position: relative;
  z-index: 1;
  width: 128px;
  height: auto;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.55));
  animation: ptcCloudPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}
@keyframes ptcCloudPop {
  0%   { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* === Стрелка — медленный плавный подъём вверх (upload), без stretch === */
.ptc-arrow {
  position: absolute;
  top: 46%;
  left: 50%;
  width: 38px;
  height: 38px;
  color: #383838;
  z-index: 2;
  transform-origin: center;
  animation: ptcArrowRise 2.6s ease-in-out infinite;
}
@keyframes ptcArrowRise {
  0%   { transform: translate(-50%, -12%); opacity: 0; }
  25%  { transform: translate(-50%, -32%); opacity: 1; }
  75%  { transform: translate(-50%, -64%); opacity: 1; }
  100% { transform: translate(-50%, -86%); opacity: 0; }
}

/* === Частицы — busy data-stream вверх === */
.ptc-particle {
  position: absolute;
  bottom: 24%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  opacity: 0;
  animation: ptcParticle 1.5s ease-in-out infinite;
  pointer-events: none;
}
.ptc-particle:nth-child(3) { left: 32%; width: 4px; height: 4px; animation-delay: 0s;    }
.ptc-particle:nth-child(4) { left: 46%; width: 6px; height: 6px; animation-delay: 0.35s; }
.ptc-particle:nth-child(5) { left: 58%; width: 4px; height: 4px; animation-delay: 0.7s;  }
.ptc-particle:nth-child(6) { left: 68%; width: 5px; height: 5px; animation-delay: 1.05s; }
@keyframes ptcParticle {
  0%   { transform: translateY(10px) scale(0.4); opacity: 0; }
  40%  { opacity: 0.9; }
  100% { transform: translateY(-34px) scale(1);  opacity: 0; }
}

/* === Title / status / progress === */
.puws-transition__title {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.6) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.puws-transition__status {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  text-align: center;
}
.puws-transition__bar {
  width: 220px;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-top: 6px;
}
.puws-transition__bar-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), #fff);
  border-radius: var(--radius-pill);
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.puws-transition.active .puws-transition__bar-fill {
  width: 100%;
}

/* === Крестик закрытия (появляется после редиректа) === */
.puws-transition__close {
  position: absolute;
  top: clamp(20px, 4vw, 40px);
  right: clamp(20px, 4vw, 40px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  /* Скрыт по умолчанию — JS добавит .show-close после редиректа */
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s var(--ease-out),
              background 0.25s var(--ease-soft), color 0.25s var(--ease-soft),
              border-color 0.25s var(--ease-soft);
}
.puws-transition.show-close .puws-transition__close {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.puws-transition__close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.puws-transition__close:active { transform: scale(0.92); }
.puws-transition__close svg { width: 20px; height: 20px; }

/* === Фолбэк-ссылка "Кликни сюда если не перенаправило" === */
.puws-transition__fallback {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  /* Скрыт по умолчанию — JS добавит .show-fallback после паузы */
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s var(--ease-out), color 0.25s var(--ease-soft);
}
/* Стрелочка наследует цвет текста (currentColor) — в стиле текста */
.puws-transition__fallback-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
/* Подчёркивание только под текстом, не под иконкой */
.puws-transition__fallback span {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.25);
}
.puws-transition.show-fallback .puws-transition__fallback {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.puws-transition__fallback:hover {
  color: rgba(255, 255, 255, 0.9);
}
.puws-transition__fallback:hover span {
  text-decoration-color: rgba(255, 255, 255, 0.6);
}

/* Reduced-motion: overlay не показываем (JS делает мгновенный редирект) */
@media (prefers-reduced-motion: reduce) {
  .puws-transition { display: none !important; }
  .legal-modal__body { scroll-behavior: auto; }
  .legal-section-nav::after,
  .legal-section-chip,
  .legal-document h2::after {
    transition: none;
  }
}

/* =====================================================
   STYLE PASS — "Premium Atmosphere"
   Киношное зерно, виньетка, лучи, орбиты, spec-тикер,
   border-beam, cursor spotlight, watermark и микро-детали.
   ===================================================== */

/* --- Контрастное премиум-выделение текста --- */
::selection { background: rgba(255, 255, 255, 0.92); color: #000; }

/* --- Кастомный скроллбар --- */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 99px;
  border: 3px solid rgba(0, 0, 0, 0);
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); background-clip: padding-box; }

/* --- Page veil: единое плавное проявление страницы при загрузке.
       Закрывает любые промежуточные состояния первой отрисовки
       (paint-holding, поздний скролл-джамп, старт entrance-анимаций):
       вместо "появилось → пропало → появилось" — один мягкий fade-in. --- */
html::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 11000;
  background: #000;
  pointer-events: none;
  animation: pageReveal 0.8s var(--ease-soft) 0.12s forwards;
}
@keyframes pageReveal {
  to { opacity: 0; visibility: hidden; }
}
/* Reduced-motion: глобальный kill отключил бы анимацию и вуаль осталась
   бы чёрной навсегда — убираем её полностью. */
@media (prefers-reduced-motion: reduce) {
  html::before { content: none; }
}

/* --- Киновиньетка: мягкое затемнение краёв вьюпорта --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: radial-gradient(ellipse 130% 100% at 50% 40%, transparent 62%, rgba(0, 0, 0, 0.38) 100%);
}

/* --- Киношное зерно (SVG feTurbulence) поверх всего.
       mix-blend screen: тёмные пиксели шума невидимы, светлые
       едва подсвечивают — классический film-grain на dark UI. --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 10002;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: screen;
  opacity: 0.042;
}

/* --- Cursor spotlight: большой мягкий световой круг за курсором --- */
.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 680px;
  height: 680px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.018) 38%, transparent 64%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 60;
  opacity: 0;
  transition: opacity 0.7s var(--ease-soft);
  will-change: transform;
}
.cursor-glow.is-on { opacity: 1; }
@media (hover: none), (pointer: coarse), (max-width: 768px) {
  .cursor-glow { display: none; }
}

/* --- Hero: meta-строка — чистый левитирующий текст без подложки --- */
.hero__meta {
  color: rgba(255, 255, 255, 0.45);
}


/* --- Corner brackets: «видоискатель» на hover — четыре уголка-скобки
       внутри карточки. Инженерный hover-язык вместо бегущего блика. --- */
@media (hover: hover) and (pointer: fine) {
  .feature-card::after,
  .use-card::after,
  .step::after,
  .pricing-card::after,
  .adv-card::after {
    content: '';
    position: absolute;
    inset: 16px;
    z-index: 0;
    pointer-events: none;
    --bk: rgba(255, 255, 255, 0.45);
    background:
      linear-gradient(var(--bk), var(--bk)) left top / 12px 1px,
      linear-gradient(var(--bk), var(--bk)) left top / 1px 12px,
      linear-gradient(var(--bk), var(--bk)) right top / 12px 1px,
      linear-gradient(var(--bk), var(--bk)) right top / 1px 12px,
      linear-gradient(var(--bk), var(--bk)) left bottom / 12px 1px,
      linear-gradient(var(--bk), var(--bk)) left bottom / 1px 12px,
      linear-gradient(var(--bk), var(--bk)) right bottom / 12px 1px,
      linear-gradient(var(--bk), var(--bk)) right bottom / 1px 12px;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.35s var(--ease-soft), inset 0.35s var(--ease-out);
  }
  .feature-card:hover::after,
  .use-card:hover::after,
  .step:hover::after,
  .pricing-card:hover::after,
  .adv-card:hover::after {
    opacity: 1;
    inset: 10px;
  }
}

/* --- Hover-lift карточек через translate (не конфликтует с
       data-anim transform). Транзишены продублированы полностью,
       т.к. transition — shorthand и затирает data-anim-правила. --- */
.feature-card,
.use-card,
.step,
.test-card,
.pricing-card,
.adv-card {
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out),
    translate 0.5s var(--ease-out),
    border-color 0.35s var(--ease-soft),
    box-shadow 0.5s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .feature-card:hover,
  .use-card:hover,
  .step:hover,
  .test-card:hover,
  .pricing-card:hover,
  .adv-card:hover {
    translate: 0 -5px;
    box-shadow:
      0 22px 48px rgba(0, 0, 0, 0.45),
      0 6px 16px rgba(0, 0, 0, 0.3);
  }
}

/* --- Testimonials: классический вид — кавычка-watermark и «монетный» аватар --- */
.test-card {
  border-radius: 24px;
}
.test-card::after {
  content: '\201C';
  position: absolute;
  top: -10px;
  right: 16px;
  z-index: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 7.5rem;
  line-height: 1;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.test-card__avatar {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 0 0 3px rgba(255, 255, 255, 0.06),
    0 6px 14px rgba(0, 0, 0, 0.35);
}

/* --- FAQ: editorial-нумерация вопросов через CSS-counter --- */
.faq__list { counter-reset: faq-n; }
.faq-item { counter-increment: faq-n; }
.faq-item__q::before {
  content: counter(faq-n, decimal-leading-zero);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.26);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  min-width: 24px;
  transition: color 0.35s var(--ease-soft);
}
.faq-item__q span[data-i18n] { flex: 1 1 auto; }
.faq-item__q:hover::before,
.faq-item.is-open .faq-item__q::before { color: rgba(255, 255, 255, 0.65); }
.faq-item__a p { padding-left: 66px; }

/* --- Footer: гигантский брендовый watermark --- */
.footer { overflow: hidden; }
.footer__watermark {
  position: absolute;
  left: 50%;
  bottom: -0.32em;
  transform: translateX(-50%);
  z-index: 0;
  font-size: clamp(4.6rem, 13.5vw, 11rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  white-space: nowrap;
  /* Чертёжная обводка вместо градиентного «призрака» */
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}
.footer__inner,
.footer__bottom,
.footer__credit {
  position: relative;
  z-index: 1;
}

/* --- Современный перенос текста --- */
.section-title,
.cta__title,
.hero-subtitle { text-wrap: balance; }
.section-subtitle,
.card-text,
.test-card__quote { text-wrap: pretty; }

/* --- Мобильные поправки нового слоя --- */
@media (max-width: 640px) {
  body::before {
    background: radial-gradient(ellipse 150% 110% at 50% 40%, transparent 68%, rgba(0, 0, 0, 0.3) 100%);
  }
  body::after { opacity: 0.04; }
  .footer__watermark { font-size: clamp(3rem, 17vw, 4.6rem); bottom: -0.28em; }
  .test-card::after { font-size: 6rem; right: 10px; }
  .faq-item__a p { padding-left: 18px; }

  /* Editorial header: на мобиле индекс встаёт над eyebrow одной колонкой */
  .section__header {
    grid-template-columns: 1fr;
    column-gap: 0;
  }
  .section__header::before {
    grid-column: 1;
    grid-row: auto;
    font-size: 1.05rem;
    padding-top: 0;
    margin-bottom: 10px;
  }
  .section__header > * { grid-column: 1; }
  .section__header::after { margin-top: 16px; }
  .cta__copy::before { font-size: 1rem; margin-bottom: 10px; }
}

/* =====================================================
   STYLE PASS 2 — каскады, блики, частицы
   ===================================================== */

/* --- Bento: иконка слегка увеличивается при hover (вместе с shift к курсору) --- */
@media (hover: hover) and (pointer: fine) {
  .feature-card:hover .card-icon-3d,
  .use-card:hover .card-icon-3d {
    --icon-scale: 1.05;
  }
}

/* --- Section headers: каскадное появление eyebrow → title → subtitle --- */
.section__header .eyebrow,
.section__header .section-title,
.section__header .section-subtitle {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
.section__header.is-visible .eyebrow,
.section__header.is-visible .section-title,
.section__header.is-visible .section-subtitle {
  opacity: 1;
  transform: translateY(0);
}
.section__header.is-visible .section-title { transition-delay: 0.1s; }
.section__header.is-visible .section-subtitle { transition-delay: 0.2s; }
/* Совместимость с i18n-fade: при смене языка элемент обязан
   фейдиться по правилам .lang-fading, а не каскадным транзишеном. */
.section__header.is-visible .eyebrow.lang-fading,
.section__header.is-visible .section-title.lang-fading,
.section__header.is-visible .section-subtitle.lang-fading {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(-4px);
  transition:
    opacity 0.5s var(--ease-soft),
    filter 0.5s var(--ease-soft),
    transform 0.5s var(--ease-soft);
  transition-delay: 0s;
}

/* --- Плоские белые primary-кнопки: без бликов и стеклянных rim'ов --- */

/* «Волшебная пыль» удалена — спаны .bg-dust в HTML остаются скрытыми */
.bg-dust { display: none; }

/* --- Scrollspy: подсветка активного раздела в навигации --- */
.navbar__nav li a.is-current {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

/* --- Левитация чипов: hero-мета и eyebrow всех секций.
       Через свойство translate — не конфликтует ни с data-anim
       transform-транзишенами, ни с каскадом section__header. --- */
@keyframes chipFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -6px; }
}
.hero__meta {
  animation: chipFloat 5.5s ease-in-out infinite;
}
.section__header .eyebrow,
.cta__copy .eyebrow {
  animation: chipFloat 6.5s ease-in-out 0.6s infinite;
}

/* --- Eyebrow без подложки: чистая «парящая» типографика.
       Вместо стекла — разреженный uppercase без свечения. --- */
.section__header .eyebrow,
.cta__copy .eyebrow {
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: rgba(255, 255, 255, 0.58);
  letter-spacing: 0.2em;
}

/* =====================================================
   ТАРИФЫ (pricing) — инженерный editorial-каталог VPS.
   Карточки наследуют .glass-card + общий hover-язык
   (corner-brackets + lift). Анимации входа — родной data-anim;
   GSAP (desktop) досчитывает цену, заполняет меты и линейку.
   ===================================================== */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: start;
  gap: 14px;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: var(--radius-md);
}

/* Шапка карточки: кодовое имя слева, контурный индекс справа */
.pricing-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.pricing-card__code {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* Контурный индекс — «эхо» editorial-счётчиков секций (еле видно) */
.pricing-card__index {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.16);
  font-variant-numeric: tabular-nums;
}

.pricing-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

/* Спеки: метка / значение / тонкий мет ресурса */
.pricing-card__specs {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
/* Flex-wrap, а НЕ grid: мет вынесен на отдельную строку (flex-basis 100%),
   поэтому его ширина = ширине контента карточки и НЕ зависит от длины
   значения. Иначе длинное «160 GB NVMe» (nowrap) раздвигало строку и мет
   «выпирал» за остальные бары на max-карточке. */
.ps {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  row-gap: 6px;
  column-gap: 8px;
}
.ps-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.ps-val {
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.ps-meter {
  flex: 1 0 100%;
  width: 100%;
  position: relative;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
/* default scaleX(--fill) — финальное состояние для mobile / reduced-motion.
   На десктопе GSAP гонит scaleX 0 → --fill (см. oversell-gsap.js). */
.pricing-card__meter-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.55);
  transform-origin: left center;
  transform: scaleX(var(--fill, 1));
}

.pricing-card__foot {
  font-size: 0.71rem;
  line-height: 1.5;
  color: var(--text-tertiary);
  margin: 0 0 4px;
}
/* Флаг Польши — CSS-чип (две полосы), а НЕ emoji 🇵🇱: emoji рендерится по-разному
   на каждой платформе (Apple/Google/Win), часто как «PL»-плейсхолдер. Здесь —
   идентично везде. Декоративный (текст «Польша/Poland» рядом несёт смысл). */
/* Флаг Польши = Apple-эмодзи картинкой (одинаково на всех платформах), размером
   с текст и инлайн перед строкой pricing.foot. */
.pricing-card__foot .flag-pl {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.16em;
  margin-right: 4px;
}

/* Цена прижата к низу карточки — выравнивание по сетке */
.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-top: auto;
  padding-top: 16px;
}
.pricing-card__price-num {
  font-size: clamp(1.9rem, 2.6vw, 2.35rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.pricing-card__price-cur {
  align-self: flex-start;
  margin-top: 2px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}
.pricing-card__price-per {
  margin-left: 3px;
  font-size: 0.76rem;
  color: var(--text-tertiary);
}

/* CTA на всю ширину. Иерархия (Emil — направляем взгляд): обычные планы —
   outline, рекомендуемый (featured) — залитый белый primary. */
.pricing-card__cta {
  width: 100%;
  margin-top: 14px;
  padding: 12px 18px;
  font-size: 0.9rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
}
.pricing-card__cta svg { transition: transform 0.25s var(--ease-out); }
.pricing-card--featured .pricing-card__cta {
  background: #f4f4f4;
  border-color: transparent;
  color: #050505;
}
@media (hover: hover) and (pointer: fine) {
  .pricing-card__cta:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.32);
  }
  .pricing-card--featured .pricing-card__cta:hover {
    background: #fff;
    border-color: transparent;
  }
  .pricing-card__cta:hover svg { transform: translateX(3px); }
  .pricing-card__cta:active { transform: scale(0.97); }
}

/* Featured-план R7-2: премиальный акцент — ярче рамка, мягкий вертикальный
   градиент-подложка (светлее сверху) + бейдж в верхнем поле. */
.pricing-card--featured {
  padding-top: 36px;
  border-color: rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035));
}

/* ---------- «Живой» курсор-спотлайт на карточках (desktop) ----------
   Мягкое белое радиальное пятно следует за курсором (--mx/--my из JS,
   rAF-батч). Видно только на hover (opacity), карта clip'ается contain'ом.
   z0 — над фоном карточки, под контентом (.glass-card > * = z1). */
.pricing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%),
    rgba(255, 255, 255, 0.10), transparent 60%);
  opacity: 0;
  transition: opacity 0.45s var(--ease-soft);
}
/* Мет «оживает» — заполнение чуть ярче на hover */
.pricing-card__meter-fill {
  transition: background 0.4s var(--ease-soft);
}
@media (hover: hover) and (pointer: fine) {
  .pricing-card:hover::before { opacity: 1; }
  .pricing-card:hover .pricing-card__meter-fill {
    background: rgba(255, 255, 255, 0.78);
  }
}
.pricing-card__badge {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

/* Hairline под сеткой — прочерчивается GSAP (scaleX 0→1 на десктопе);
   дефолт scaleX(1) = финал для mobile / reduced-motion. */
.pricing__rule {
  display: block;
  width: 100%;
  height: 1px;
  margin-top: clamp(34px, 5vw, 60px);
  background: rgba(255, 255, 255, 0.12);
  transform-origin: left center;
  transform: scaleX(1);
}

/* Featured «приподнят» только в 5-колоночном desktop-раскладе.
   Лифт через margin (НЕ transform/translate) — чтобы не драться
   с data-anim reveal и hover-lift, которые владеют этими каналами.
   padding-top(+16) и margin-top(-16) выравнивают и верх, и низ. */
@media (min-width: 1201px) {
  .pricing-card--featured {
    margin-top: -16px;
  }
}

/* Адаптив: 5 → 3 → 2 → 1 колонок */
@media (max-width: 1200px) {
  .pricing__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (max-width: 768px) {
  .pricing__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pricing__grid { grid-template-columns: 1fr; }
  .pricing-card { padding: 22px; }
  .pricing-card--featured { padding-top: 38px; }
}

/* =====================================================
   ПРЕИМУЩЕСТВА (advantages) — карточки с line-иконками.
   Наследуют .glass-card + общий hover-язык (corner-brackets + lift).
   Иконки «прочерчиваются» на скролле (GSAP stroke-draw, desktop);
   дефолт (mobile / reduced-motion / без GSAP) — иконки полностью видимы.
   ===================================================== */
.adv__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.adv-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius-md);
}
.adv-card__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.adv-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.92);
  transition: border-color 0.35s var(--ease-soft), background 0.35s var(--ease-soft);
}
.adv-card__icon svg { width: 22px; height: 22px; }
.adv-card__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.adv-card__text {
  margin: 0 0 20px;
  color: var(--text-secondary);
}
.adv-card__more {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  transition: color 0.25s var(--ease-soft), transform 0.12s var(--ease-out);
}
.adv-card__more-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-out);
}
/* Emil: hover за media-query (тач не залипает), :active — отклик нажатия */
@media (hover: hover) and (pointer: fine) {
  .adv-card:hover .adv-card__icon {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
  }
  .adv-card__more:hover { color: #fff; }
  .adv-card__more:hover .adv-card__more-arrow { transform: translateX(4px); }
}
.adv-card__more:active { transform: scale(0.97); }

/* Адаптив 3 → 2 → 1 */
@media (max-width: 980px) {
  .adv__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .adv__grid { grid-template-columns: 1fr; }
  .adv-card { padding: 24px; }
}

/* =====================================================
   GSAP-СЛОЙ (ScrollTrigger) — атмосфера + скролл-рейка
   Аддитивный, десктоп-only. Элементы создаёт oversell-gsap.js.
   Палитра — монохром-хайрлайн, в духе editorial-фона.
   ===================================================== */
.gx-atmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
}
/* Гигантская контурная цифра активной секции — «эхо» editorial-счётчиков.
   НАМЕРЕННО еле видно (как bg-mark): атмосфера, не декор-кричалка. */
.gx-mark {
  position: absolute;
  top: 50%;
  right: clamp(2vw, 6vw, 9vw);
  transform: translateY(-50%);
  font-family: 'Onest', sans-serif;
  font-weight: 900;
  font-size: clamp(20rem, 42vw, 52rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.028);
  will-change: opacity, transform;
  opacity: 1;
  transition: opacity 0.18s var(--ease-soft);
  -webkit-mask-image: radial-gradient(120% 90% at 70% 50%, #000 35%, transparent 78%);
          mask-image: radial-gradient(120% 90% at 70% 50%, #000 35%, transparent 78%);
}
.gx-mark.is-swapping { opacity: 0; }
/* Дрейфующие печатные линейки — «сетка глубины» */
.gx-rule {
  position: absolute;
  left: -5vw;
  width: 110vw;
  height: 1px;
  background: rgba(255, 255, 255, 0.04);
  will-change: transform;
}
.gx-rule--a { top: 32%; }
.gx-rule--b { top: 68%; background: rgba(255, 255, 255, 0.03); }

/* --- Инженерная скролл-рейка (правый край) --- */
.gx-rail {
  position: fixed;
  right: clamp(10px, 1.4vw, 22px);
  top: 50%;
  transform: translateY(-50%);
  height: min(54vh, 520px);
  width: 1px;
  z-index: 60;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.55);
  font-family: 'Onest', sans-serif;
}
.gx-rail__track {
  position: absolute;
  inset: 0;
  width: 1px;
  left: 0;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.gx-rail__fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.85));
  transform: scaleY(0);
  transform-origin: top center;
  will-change: transform;
}
.gx-rail__indicator {
  position: absolute;
  left: -6px;
  top: 0;
  margin-top: -0.5px;
  width: 13px;
  height: 1px;
  background: #fff;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.4);
  transform-origin: center;
  will-change: top, transform;
}
.gx-rail__tick {
  position: absolute;
  left: 0;
  width: 5px;
  height: 1px;
  margin-top: -0.5px;
  background: rgba(255, 255, 255, 0.22);
  transition: width 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.gx-rail__tick.is-active {
  width: 9px;
  background: rgba(255, 255, 255, 0.7);
}
.gx-rail__pct {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.gx-rail__pct b { font-weight: 400; opacity: 0.45; }
.gx-rail__label {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
}

/* Сворачиваем слой там, где он не нужен (дублирует JS-гейт — на всякий случай) */
@media (max-width: 1024px) {
  .gx-rail { display: none; }
}
@media (max-width: 768px) {
  .gx-atmos, .gx-rail { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gx-atmos, .gx-rail { display: none !important; }
}

/* =====================================================
   ПЕРФ: пауза always-on анимаций вне вьюпорта.
   JS (initAnimationPause) вешает .is-anim-off через ОТДЕЛЬНЫЙ
   IntersectionObserver (rootMargin:200px) — пауза только пока элемент
   НЕ виден; возобновление за ~200px до показа. Визуально идентично:
   застывший кадр никогда не попадает в кадр пользователя. По специфичности
   (.X.is-anim-off .Y) эти правила перебивают базовый animation-shorthand,
   поэтому место в файле не важно.
   ===================================================== */
.hero.is-anim-off .hero-title,
.cta.is-anim-off .cta__title { animation-play-state: paused; }
.feature-card.is-anim-off .card-icon-3d,
.use-card.is-anim-off .card-icon-3d { animation-play-state: paused; }
.section__header.is-anim-off .eyebrow,
.hero.is-anim-off .hero__meta,
.cta__copy.is-anim-off .eyebrow { animation-play-state: paused; }
.hero.is-anim-off .hero__meta-dot { animation-play-state: paused; }

/* Частицы биллинг-оверлея крутятся 24/7, пока оверлей opacity:0 и не виден.
   Пауза, пока нет класса .active (JS ставит .active синхронно ДО 0.4s fade,
   поэтому к моменту видимости анимации уже идут). reduced-motion-правило
   .puws-transition{display:none} не затрагиваем. */
.puws-transition:not(.active) .puws-transition__cloud,
.puws-transition:not(.active) .puws-transition__cloud::before,
.puws-transition:not(.active) .puws-transition__cloud::after,
.puws-transition:not(.active) .ptc-arrow,
.puws-transition:not(.active) .ptc-cloud,
.puws-transition:not(.active) .ptc-particle { animation-play-state: paused; }

/* Перф (mobile): не пре-промоутим иконки в отдельные GPU-слои с крупными
   битмапами на телефонах (тач = нет mouse-tilt; on-demand промоут во время
   float-анимации всё равно остаётся). Снимает память слоёв. */
@media (max-width: 768px) {
  .card-icon-3d,
  .hero__icon { will-change: auto; }
}

/* =====================================================
   iOS SAFARI MOBILE HARDENING (≤768px)
   Симптом: при скролле вниз пролистанные секции ЧЕРНЕЮТ — мобильный
   WebKit при переполнении бюджета composited backing-stores сбрасывает
   тайлы основного скролл-слоя (промоутнутые подслои — 3D-иконки — выживают,
   поэтому парят на чёрном). Источники давления слоёв на мобиле:
   backdrop-filter на ~28 карточках + навбаре, contain, will-change,
   blur/mix-blend атмосферы и full-screen film-grain. Снимаем их ТОЛЬКО
   на мобиле. Десктоп (Lenis/GSAP/glass/атмосфера) не затронут.
   ===================================================== */
@media (max-width: 768px) {
  /* 1. Долой backdrop-filter — каждый давал отдельный дорогой backdrop-слой.
     Фон карточек НЕ трогаем (иначе перекроем заливку .pricing-card--featured);
     задний план под ними — почти однородный тёмный, блюр визуально не нужен. */
  .glass,
  .glass-card,
  .glass-card-lg {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    contain: none;
  }
  /* Навбар — fixed поверх скролла: без блюра нужен плотный фон, иначе контент
     просвечивает. Перебивает peel-driven полупрозрачность. */
  .navbar__inner {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(9, 9, 11, 0.92);
  }

  /* 2. Снимаем постоянный will-change и упрощаем фон-атмосферу. */
  .bg-blobs { contain: none; }
  .bg-atlas--base {
    filter: none;        /* было blur(18px) */
    transform: none;     /* было scroll-linked translate3d */
    will-change: auto;
  }
  .bg-atlas--base::before { display: none; }   /* было blur(38px) */
  .bg-atlas--grain { display: none; }          /* mix-blend screen + will-change */
  .testimonials__track,
  .legal-modal__panel { will-change: auto; }

  /* 3. Полноэкранное кино-зерно (mix-blend:screen) — невидимо на телефоне
     (opacity 0.042), но держит дорогой композит-слой поверх всего. */
  body::after { display: none; }
}

/* =====================================================
   MOBILE OPTIMIZATION PASS (v143) — проф. UX/UI-оптимизация мобайла.
   Тезис аудита: гасим always-on CSS-петли и мёртвый scroll-вес, освобождаем
   моушн/GPU-бюджет, тратим его на ОДНУ лёгкую GSAP-ветку (oversell-gsap.js):
   title clip-wipe + count-up цен + прочерчивание иконок «Преимуществ». Итог —
   меньше непрерывного движения, плотнее/легче, лучше тач+a11y. ≤768/≤640,
   десктоп НЕ затронут. Источник: мульти-дименшн аудит мобайла.
   ===================================================== */

/* ---------- 1. PERF: стоп always-on CSS-петлям ---------- */
@media (max-width: 768px) {
  /* 3D-иконки карточек (×10): стоп iconFloat + одна дешёвая тень вместо двух.
     Статичный rotate/breakout сохранён — «разброс» иконок остаётся. */
  .card-icon-3d {
    animation: none;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.6));
  }
  /* Hero-иконка (рядом с LCP): оставляем pop-entrance, убираем infinite float,
     три drop-shadow → одна. */
  .hero__icon {
    animation: heroIconPop 1.15s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s backwards;
    filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.6));
  }
  /* Hero-title: на мобиле titleSheen не гоняем (repaint клипнутого текста каждый
     кадр — дорого), но ОДНОРАЗОВЫЙ ревил оставляем: curtain + мягкий rack focus,
     без infinite-петли. Так заголовок «оживает» на старте и тут же замирает. */
  .hero-title {
    --hero-blur: 7px;
    animation: heroTitleReveal 0.75s var(--ease-out) 0.3s both;
    background-position: 130% 0, 0 0;
  }
  /* chipFloat (≈9 translate-петель) — стоп. pulse на .hero__meta-dot оставляем
     (дешёвый opacity-only, сигнал «online» — осмысленный). */
  .hero__meta,
  .section__header .eyebrow,
  .cta__copy .eyebrow {
    animation: none;
    translate: 0 0;
  }
}

/* ---------- 2. A11Y: тач-таргеты ≥44px + safe-area + контраст ---------- */
@media (max-width: 768px) {
  /* На скролл-топе (peel=0) верхний паддинг навбара = 0 → бренд/кнопки уходят
     под чёлку. Добавляем safe-area-inset-top. */
  .navbar { padding-top: calc(env(safe-area-inset-top) + var(--peel) * 10px); }
  /* Самый плотный/промахиваемый кластер: RU/EN + Войти/Регистрация → ≥44px. */
  .navbar__lang-btn {
    min-height: 44px;
    min-width: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
  }
  .navbar__btn { min-height: 44px; }
}
/* Ключевой value-prop hero почти не читался (white .3 = 2.49:1 @ 0.76rem). */
@media (max-width: 640px) {
  .hero__meta { color: rgba(255, 255, 255, 0.6); }
}

/* ---------- 3. EMIL: тактильный отклик нажатия на всё кликабельное ----------
   На тач сейчас фидбэка нет (hover за media-query). Бенто-карточки реально ведут
   на биллинг — нажатие обязано «отвечать». Явные свойства, не transition:all. */
@media (hover: none) and (pointer: coarse) {
  .feature-card:active,
  .use-card:active,
  .step:active,
  .adv-card:active,
  .pricing-card:active {
    transform: scale(0.985);
    transition: transform 0.13s var(--ease-out);
  }
  .faq-item__q:active {
    transform: scale(0.97);
    transform-origin: left center;
  }
}

/* ---------- 4. ПЛОТНОСТЬ: hero 88svh, высоты, ритм, счётчик ---------- */
@media (max-width: 640px) {
  /* Hero поджимаем кверху: 88svh — край первой карточки выглядывает (scroll-cue),
     уходит большая пустота сверху/снизу. */
  .hero {
    min-height: 88svh;
    padding: clamp(84px, 12svh, 100px) var(--pad-x) clamp(26px, 5svh, 40px);
  }
  .hero__inner { min-height: 0; justify-content: flex-start; }

  /* Высота карточек по контенту — снимаем ~600-700px мёртвой пустоты. */
  .feature-card,
  .use-card { min-height: 176px; padding: 18px; }
  .feature-card--hero,
  .use-card--hero { min-height: 196px; }
  .feature-card--lg,
  .use-card--lg { min-height: 176px; }

  /* Секции плотнее по вертикали. */
  .section { padding: 52px var(--pad-x); }
  .section__header { margin-bottom: 26px; }

  /* Editorial-счётчик секции: сплошная заливка вместо ghost-stroke 1px@.28
     (на OLED — смазь). Унифицируем с языком счётчика FAQ (0.72rem/700). */
  .section__header::before,
  .cta__copy::before {
    -webkit-text-stroke: 0;
    color: rgba(255, 255, 255, 0.34);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    margin-bottom: 8px;
  }

  /* Единственный tag-стикер на одной карточке ломает ритм 1-кол стека. */
  .feature-card__tag { display: none; }

  /* Каскад заголовков снап-нее (0.85s + 0.2s тяжело на скорости свайпа). */
  .section__header .eyebrow,
  .section__header .section-title,
  .section__header .section-subtitle { transition-duration: 0.55s; }
  .section__header.is-visible .section-title { transition-delay: 0.06s; }
  .section__header.is-visible .section-subtitle { transition-delay: 0.12s; }
}
@media (max-width: 380px) {
  .section { padding-block: 46px; }
  .feature-card,
  .use-card { min-height: 168px; }
  .feature-card--hero,
  .use-card--hero { min-height: 188px; }
}

/* ---------- 5. USE-CASES «Возможности» (02): 2 колонки ---------- */
@media (max-width: 640px) {
  .possibilities__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .possibilities__grid .use-card { min-height: 150px; padding: 15px; }
  .possibilities__grid .use-card .card-title { font-size: 1rem; line-height: 1.18; }
  .possibilities__grid .use-card .card-text { font-size: 0.82rem; }
}

/* ---------- 6. ТАРИФЫ (04): ПРЕМИУМ-КАРУСЕЛЬ (НЕ одна колонка) ----------
   Свайп-карусель: одна БОГАТАЯ карта в фокусе (меты ресурсов видны, цена крупно),
   соседние выглядывают по краям, снап по центру, кликабельный дотс-индикатор
   (генерит JS — initPricingCarousel), активная карта по центру — ярче рамка +
   подъём. Count-up цены (GSAP) работает. Все 5 планов, БЕЗ длинной колонны. */
@media (max-width: 640px) {
  .pricing__grid {
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--pad-x) * -1);   /* full-bleed «от стекла до стекла» */
    padding: 8px var(--pad-x) 14px;
    scroll-padding-inline: var(--pad-x);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    align-items: stretch;
  }
  .pricing__grid::-webkit-scrollbar { display: none; }
  .pricing-card {
    flex: 0 0 82%;
    max-width: 340px;
    scroll-snap-align: center;
    padding: 24px 22px;
    transition: border-color 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft);
  }
  .pricing-card--featured { padding-top: 34px; }
  /* Активная (по центру) карта — ярче рамка + лёгкий подъём (без transform —
     не дерёмся с data-anim/GSAP). */
  .pricing-card.is-focused {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.42);
  }
  /* foot повторяется на всех 5 (уже в подзаголовке) → прячем. Меты ОСТАВЛЯЕМ
     (визуальная ценность богатой карты). */
  .pricing-card__foot { display: none; }
  .pricing-card__name { margin-bottom: 14px; }
  .pricing-card__price { margin-top: 6px; }
  .pricing-card__price-num { font-size: 2.7rem; }
  .pricing-card__cta { min-height: 48px; }
  .pricing__rule { display: none; }

  /* Дотс-индикатор (генерит JS только когда карусель реально скроллится) */
  .pricing__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
  }
  .pricing__dot {
    width: 24px; height: 24px; padding: 0; border: 0; background: none;
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    -webkit-tap-highlight-color: transparent;
  }
  .pricing__dot::before {
    content: '';
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.24);
    transition: background 0.3s var(--ease-soft), transform 0.3s var(--ease-out), width 0.3s var(--ease-out);
  }
  .pricing__dot.is-active::before {
    background: rgba(255, 255, 255, 0.88);
    width: 18px; border-radius: 4px;   /* активный — «таблетка» */
  }
}

/* ---------- 7. ПРЕИМУЩЕСТВА (05): свайп-дек (креативно) ----------
   6 карточек из вертикального стека → горизонтальный snap-дек: одна высота
   вместо шести экранов, листается свайпом, край следующей карточки выглядывает
   (affordance). Иконки «прочерчиваются» при входе секции (GSAP mobile-ветка).
   CSS scroll-snap — нативно, без JS. Редундантные «подробнее →» скрыты. */
@media (max-width: 640px) {
  .adv__grid {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    /* full-bleed: дек тянется «от стекла до стекла» */
    margin-inline: calc(var(--pad-x) * -1);
    padding: 4px var(--pad-x) 8px;
    scroll-padding-inline: var(--pad-x);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .adv__grid::-webkit-scrollbar { display: none; }
  .adv-card {
    flex: 0 0 80%;
    scroll-snap-align: center;
    min-height: 0;
    padding: 22px;
  }
  .adv-card__more { display: none; }
  .adv-card__text { margin-bottom: 0; }
}
