/* ═══════════════════════════════════════════════════════════════
   Mangustin Capital — лендинг (статика, без фреймворков).
   Один CSS-файл. Токены цвета взяты из платформы (тема «blue» —
   дефолт приложения, frontend/src/index.css). Префикс --lp-* ,
   чтобы не пересекаться ни с чем.

   Направление: «дорогой минимализм» — near-black база, крупная
   типографика, много воздуха, один сдержанный акцент (мягкий
   near-white, как primary-кнопка в платформе).
   ═══════════════════════════════════════════════════════════════ */

/* Не-цветовые токены — общие для обеих тем */
:root {
  /* Радиусы (из платформы) */
  --lp-r-lg: 24px;
  --lp-r-md: 16px;
  --lp-r-sm: 12px;

  /* Типографика */
  --lp-font: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Сетка (как у vercel.com: max-width 1448 + поля 24 → видимый контент ровно 1400) */
  --lp-maxw:   1448px;
  --lp-gutter: clamp(16px, 4vw, 24px); /* 16px телефон → 24px десктоп */
  --lp-nav-h:  64px;

  /* Тайминги анимаций */
  --lp-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ═══════════════ Тёмная тема (= платформа «black») — она же дефолт ═══════════════
   frontend/src/index.css → [data-theme="black"] */
:root,
[data-theme="dark"] {
  color-scheme: dark;

  --lp-bg:          #000000;   /* page-bg */
  --lp-surface:     #0A0A0A;   /* card-bg */
  --lp-surface-2:   #111111;   /* card-hover */
  --lp-border:      #1A1A1A;   /* border */
  --lp-border-soft: rgba(255, 255, 255, 0.06);

  --lp-text:    #FFFFFF;       /* text-primary */
  --lp-text-2:  #888888;       /* text-secondary */
  --lp-muted:   #444444;       /* muted */

  --lp-accent:       #FFFFFF;  /* accent */
  --lp-accent-hover: #E0E0E0;  /* accent-hover */
  --lp-on-accent:    #000000;  /* btn-dark-fg */

  --lp-up:     #2ECC71;
  --lp-down:   #E74C3C;
  --lp-blue:   #0984E3;
  --lp-purple: #9D4EDD;
  --lp-green:  #2ECC71;
  --lp-amber:  #F59E0B;

  --lp-selection: rgba(255, 255, 255, 0.16);
}

/* ═══════════════ Светлая тема (= платформа «white») ═══════════════
   frontend/src/index.css → [data-theme="white"] */
[data-theme="light"] {
  color-scheme: light;

  --lp-bg:          #FFFFFF;   /* page-bg */
  --lp-surface:     #FFFFFF;   /* card-bg */
  --lp-surface-2:   #F5F5F5;   /* card-hover */
  --lp-border:      #E0E0E0;   /* border */
  --lp-border-soft: rgba(0, 0, 0, 0.06);

  --lp-text:    #0D0D0D;       /* text-primary */
  --lp-text-2:  #555555;       /* text-secondary */
  --lp-muted:   #AAAAAA;       /* muted */

  --lp-accent:       #000000;  /* accent */
  --lp-accent-hover: #222222;  /* accent-hover */
  --lp-on-accent:    #FFFFFF;  /* btn-dark-fg */

  --lp-up:     #1A7F37;
  --lp-down:   #CF222E;
  --lp-blue:   #0969DA;
  --lp-purple: #8250DF;
  --lp-green:  #1A7F37;
  --lp-amber:  #9A6700;

  --lp-selection: rgba(0, 0, 0, 0.12);
}

/* ═══════════════ Reset / base ═══════════════ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--lp-nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
  /* Скролл-элемент = html; клипаем горизонталь здесь, иначе страницу можно утащить вправо.
     clip не создаёт скролл-контейнер (sticky цел), вертикальный скролл не трогает. */
  overflow-x: clip;
  /* Фон и на html: иначе в overscroll-области снизу видна чужая (чёрная) подложка. */
  background: var(--lp-bg);
}

body.lp {
  font-family: var(--lp-font);
  background: var(--lp-bg);
  color: var(--lp-text);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;   /* clip, а не hidden: не создаёт скролл-контейнер (иначе низ страницы не долистывается) */
  /* Плавная смена темы (без мигания на старте — тему ставим инлайн-скриптом до отрисовки) */
  transition: background-color 0.3s var(--lp-ease), color 0.3s var(--lp-ease);
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--lp-selection); }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.028em; line-height: 1.05; }

/* Иконка из спрайта */
.ic { width: 1.15em; height: 1.15em; flex-shrink: 0; }

/* ═══════════════ Раскладка ═══════════════ */
.lp-container {
  width: 100%;
  max-width: var(--lp-maxw);
  margin-inline: auto;
  padding-inline: var(--lp-gutter);
}

/* Базовый ритм секций — щедрый воздух */
.lp-section { padding-block: clamp(72px, 12vw, 160px); }

.lp-section__tag {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-text-2);
  margin-bottom: 20px;
}
.lp-section__title {
  font-size: clamp(1.8rem, 4.2vw, 3rem);
  max-width: 18ch;
}
.lp-section__lead {
  margin-top: 20px;
  max-width: 52ch;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--lp-text-2);
  font-weight: 300;
}

/* ═══════════════ Reveal-on-scroll (JS ставит .is-visible) ═══════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--lp-ease), transform 0.7s var(--lp-ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ═══════════════ Кнопки ═══════════════ */
/* Кнопки — как на платформе: скруглённый прямоугольник (radius 12px),
   залитая вторичная, мягкое свечение primary на hover. */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding-inline: 18px;
  border-radius: var(--lp-r-sm); /* 12px — как --radius-sm в платформе */
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background 0.2s var(--lp-ease), border-color 0.2s var(--lp-ease),
              color 0.2s var(--lp-ease), box-shadow 0.2s var(--lp-ease),
              transform 0.2s var(--lp-ease), opacity 0.2s;
}
.lp-btn:active { transform: translateY(1px); }
.lp-btn .ic { width: 1.05em; height: 1.05em; }

.lp-btn--solid {
  background: var(--lp-accent);
  color: var(--lp-on-accent);
}
.lp-btn--solid:hover {
  background: var(--lp-accent-hover);
  /* мягкое свечение цветом акцента — работает в обеих темах */
  box-shadow: 0 4px 16px color-mix(in srgb, var(--lp-accent) 22%, transparent);
}

/* Вторичная — залитая card-hover + border (как .btn-secondary в платформе) */
.lp-btn--ghost {
  background: var(--lp-surface-2);
  color: var(--lp-text);
  border: 1px solid var(--lp-border);
}
.lp-btn--ghost:hover { background: var(--lp-surface); border-color: var(--lp-text-2); }

.lp-btn--lg { height: 48px; padding-inline: 24px; font-size: 0.98rem; }

/* ═══════════════ Навигация ═══════════════ */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--lp-nav-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--lp-bg) 72%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--lp-ease), background 0.3s var(--lp-ease);
}
.lp-nav[data-scrolled] {
  border-bottom-color: var(--lp-border-soft);
}
.lp-nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lp-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
/* Логотип-марка меняется под тему: белая на тёмной, тёмная на светлой */
.lp-logo__mark {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  /* Относительный путь (от styles.css) — работает и через file://, и на dev, и в проде */
  background: center / contain no-repeat url('assets/logo-mark-light.svg');
}
[data-theme="light"] .lp-logo__mark { background-image: url('assets/logo-mark-dark.svg'); }
.lp-logo__word { font-size: 1rem; letter-spacing: -0.02em; }

.lp-nav__links {
  display: flex;
  gap: 28px;
  font-size: 0.9rem;
  /* Ссылки — слева, сразу после логотипа (доп. отступ от лого) */
  margin-left: 16px;
}
.lp-nav__links a { color: var(--lp-text-2); transition: color 0.2s; }
.lp-nav__links a:hover { color: var(--lp-text); }

/* CTA прижимаем к правому краю */
.lp-nav__cta { display: flex; align-items: center; gap: 10px; margin-left: auto; }
/* Кнопки в шапке чуть компактнее общих (в hero остаются крупными) */
.lp-nav__cta .lp-btn { height: 34px; padding-inline: 14px; font-size: 0.85rem; }

.lp-burger { display: none; margin-left: auto; margin-right: -8px; padding: 8px; color: var(--lp-text); }
.lp-burger .ic { width: 24px; height: 24px; }

/* Мобильное меню */
.lp-mobile {
  position: fixed;
  inset: var(--lp-nav-h) 0 auto 0;
  /* Подложка как у шапки — фрост (полупрозрачность + блюр). Меню вынесено из шапки,
     поэтому собственный backdrop-filter работает корректно. */
  background: color-mix(in srgb, var(--lp-bg) 80%, transparent);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid var(--lp-border-soft);
  padding: 12px var(--lp-gutter) 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--lp-ease), transform 0.25s var(--lp-ease);
  z-index: 99;
}
.lp-mobile.is-open { opacity: 1; transform: none; pointer-events: auto; }
/* Только прямые ссылки-разделы (не кнопки в .lp-mobile__cta — иначе перебивает их цвет/размер) */
.lp-mobile > a { padding: 12px 4px; color: var(--lp-text-2); font-size: 1.05rem; }
.lp-mobile > a:hover { color: var(--lp-text); }
/* Кнопки — в ряд, по всей ширине меню, чуть крупнее; стили (цвета) как на десктопе */
.lp-mobile__cta { display: flex; flex-direction: row; gap: 10px; margin-top: 16px; }
.lp-mobile__cta .lp-btn { flex: 1; height: 46px; font-size: 0.95rem; }

/* ═══════════════ АКТ 1 · Hero (скелет) ═══════════════ */
.lp-hero {
  padding-block: clamp(64px, 12vw, 140px) clamp(48px, 8vw, 96px);
  text-align: center;
}
.lp-hero__eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lp-text-2);
  margin-bottom: 24px;
}
.lp-hero__title {
  font-size: clamp(2.4rem, 6.5vw, 4.5rem);
  max-width: 16ch;
  margin-inline: auto;
  text-wrap: balance;   /* ровные по длине строки заголовка */
}
.lp-hero__sub {
  margin: 24px auto 0;
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: var(--lp-text-2);
  font-weight: 300;
  text-align: justify;   /* по ширине — ровным прямоугольником */
}
.lp-hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 36px;
}
.lp-hero__visual { margin-top: clamp(48px, 8vw, 88px); }

/* Сцена задаёт 3D-перспективу для наклона карточки */
.lp-scene { perspective: 1300px; }

/* Браузерная рамка со скриншотом — стартует наклонённой, JS распрямляет по скроллу */
.lp-browser {
  max-width: 1200px;
  margin-inline: auto;
  border-radius: var(--lp-r-md);
  overflow: hidden;
  border: 1px solid var(--lp-border);
  background: var(--lp-surface);
  box-shadow:
    0 40px 80px -34px rgba(0, 0, 0, 0.6),
    0 8px 24px -14px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  transform-style: preserve-3d;
  transform-origin: 50% 0%;
  transform: rotateX(20deg) scale(1.04); /* стартовое состояние (scrollY=0); JS обновляет */
  will-change: transform;
}
.lp-browser__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: var(--lp-surface-2);
  border-bottom: 1px solid var(--lp-border);
}
.lp-browser__dots { display: inline-flex; gap: 7px; }
.lp-browser__dots i { width: 11px; height: 11px; border-radius: 50%; }
.lp-browser__dots i:nth-child(1) { background: #ff5f57; }
.lp-browser__dots i:nth-child(2) { background: #febc2e; }
.lp-browser__dots i:nth-child(3) { background: #28c840; }
.lp-browser__url {
  margin-left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--lp-text-2);
  background: var(--lp-bg);
  border: 1px solid var(--lp-border);
  border-radius: 7px;
  padding: 4px 12px;
}
.lp-browser__url .ic { width: 13px; height: 13px; }
.lp-browser__body { background: var(--lp-bg); font-size: 0; }
.lp-browser__body img { display: block; width: 100%; height: auto; }

/* ═══════════════ АКТ 2 · Проблема (фрагментация капитала) ═══════════════ */
.lp-problem { text-align: center; padding-top: clamp(28px, 4.5vw, 64px); }
/* Заголовок + описание одним блоком (bold-лид + приглушённое продолжение), как в Linear */
.lp-problem__lead {
  max-width: 700px;
  margin: 20px auto 0;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.4;
  font-weight: 300;
  color: var(--lp-text-2);
  text-align: justify; /* по ширине — текст ровным прямоугольником */
}
.lp-problem__lead strong { color: var(--lp-text); font-weight: 600; }

/* Иллюстрация «разбросано → ?» */
.lp-frag {
  position: relative;
  width: 100%;
  max-width: 1080px;
  /* отриц. margin «съедает» пустой верх контейнера (~24% над верхними нодами),
     поднимая иллюстрацию ближе к тексту без искажения кривых */
  margin: clamp(-72px, -4vw, -20px) auto 0;
  aspect-ratio: 2 / 1; /* шире — ноды по бокам, «?» в центре */
}
.lp-frag__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lp-frag__lines-m { display: none; }   /* мобильные линии — только в узком медиа-запросе */
/* Базовые пунктирные S-дуги (viewBox 2:1 совпадает с боксом → без искажений) */
.lp-frag__line {
  fill: none;
  stroke: var(--lp-text-2);
  stroke-opacity: 0.4;
  stroke-width: 1;
  stroke-dasharray: 5 5;
  vector-effect: non-scaling-stroke; /* держим 1px на экране при любом масштабе */
}
/* Бегущий «блик» — короткий яркий сегмент, идущий по линии к центру */
.lp-frag__glint {
  fill: none;
  stroke: var(--lp-text);
  stroke-width: 1.6;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 6 94; /* pathLength=100 → 6 ярких, 94 пусто */
  stroke-dashoffset: 100;
  opacity: 0;
}
/* Ноды-сервисы — «разбросаны» абсолютным позиционированием */
.lp-frag__node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: var(--lp-r-sm);
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--lp-text);
  white-space: nowrap;
  overflow: hidden; /* обрезаем шайн-проблеск по скруглению */
  box-shadow: 0 8px 24px -14px rgba(0, 0, 0, 0.5);
}
.lp-frag__node .ic { width: 16px; height: 16px; color: var(--lp-text-2); }
/* Шайн-проблеск, пробегающий по контейнеру */
.lp-frag__node::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, color-mix(in srgb, var(--lp-text) 16%, transparent) 50%, transparent 65%);
  transform: translateX(-130%);
  pointer-events: none;
}
/* «?» — точка схождения, тоже прямоугольник (как ноды), но пунктирный и приглушённый */
.lp-frag__q {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;                 /* квадрат — равные стороны */
  overflow: hidden;             /* обрезаем перелив по скруглению */
  border-radius: var(--lp-r-sm);
  border: 1.5px dashed var(--lp-border);
  background: var(--lp-bg);
  cursor: pointer;
  transition: border-color 0.35s var(--lp-ease), box-shadow 0.35s var(--lp-ease);
}
/* Перелив — световой блик, бегущий по квадрату */
.lp-frag__q::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 34%,
    color-mix(in srgb, var(--lp-text) 20%, transparent) 50%, transparent 66%);
  background-size: 250% 100%;
  animation: q-shimmer 3.2s linear infinite;
  pointer-events: none;
}
@keyframes q-shimmer {
  from { background-position: 160% 0; }
  to   { background-position: -60% 0; }
}
/* «?» и логотип — стопкой в одной ячейке, переключаются по наведению */
.lp-frag__q-mark,
.lp-frag__q-logo {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  transition: opacity 0.3s var(--lp-ease), transform 0.3s var(--lp-ease);
}
.lp-frag__q-mark { font-size: 1.6rem; font-weight: 600; line-height: 1; color: var(--lp-muted); }
.lp-frag__q-logo {
  width: 30px;
  height: 30px;
  background: center / contain no-repeat url('assets/logo-mark-light.svg');
  opacity: 0;
  transform: scale(0.55);
}
[data-theme="light"] .lp-frag__q-logo { background-image: url('assets/logo-mark-dark.svg'); }
/* Наведение: «?» уходит, логотип появляется, квадрат подсвечивается акцентом */
.lp-frag__q:hover {
  border-style: solid;
  border-color: var(--lp-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--lp-accent) 14%, transparent),
              0 14px 34px -12px color-mix(in srgb, var(--lp-accent) 45%, transparent);
}
.lp-frag__q:hover .lp-frag__q-mark { opacity: 0; transform: scale(0.55); }
.lp-frag__q:hover .lp-frag__q-logo { opacity: 1; transform: scale(1); }

/* ── Появление: ноды всплывают по очереди → линии → «?» (медленно) ── */
.js .lp-frag__node,
.js .lp-frag__line,
.js .lp-frag__q { opacity: 0; }

.lp-frag.is-in .lp-frag__node { animation: frag-node-in 0.7s var(--lp-ease) both; }
.lp-frag.is-in .lp-frag__node:nth-of-type(1) { animation-delay: 0.10s; }
.lp-frag.is-in .lp-frag__node:nth-of-type(2) { animation-delay: 0.22s; }
.lp-frag.is-in .lp-frag__node:nth-of-type(3) { animation-delay: 0.34s; }
.lp-frag.is-in .lp-frag__node:nth-of-type(4) { animation-delay: 0.46s; }
.lp-frag.is-in .lp-frag__node:nth-of-type(5) { animation-delay: 0.58s; }
.lp-frag.is-in .lp-frag__node:nth-of-type(6) { animation-delay: 0.70s; }
.lp-frag.is-in .lp-frag__line { animation: frag-fade 0.9s var(--lp-ease) 0.9s both; }
.lp-frag.is-in .lp-frag__q { animation: frag-q-in 0.6s var(--lp-ease) 1.15s both; }

/* ── Постоянные микро-анимации (после появления) ── */
.lp-frag.is-in .lp-frag__glint { animation: frag-glint 2.6s linear 1.9s infinite; }
.lp-frag.is-in .lp-frag__node::after { animation: frag-shine 4.2s ease-in-out 2.2s infinite; }
.lp-frag.is-in .lp-frag__node:nth-of-type(1)::after { animation-delay: 2.2s; }
.lp-frag.is-in .lp-frag__node:nth-of-type(2)::after { animation-delay: 2.9s; }
.lp-frag.is-in .lp-frag__node:nth-of-type(3)::after { animation-delay: 3.6s; }
.lp-frag.is-in .lp-frag__node:nth-of-type(4)::after { animation-delay: 2.55s; }
.lp-frag.is-in .lp-frag__node:nth-of-type(5)::after { animation-delay: 3.25s; }
.lp-frag.is-in .lp-frag__node:nth-of-type(6)::after { animation-delay: 3.95s; }

@keyframes frag-node-in {
  from { opacity: 0; transform: translate(-50%, -50%) translateY(14px); }
  to   { opacity: 1; transform: translate(-50%, -50%) translateY(0); }
}
@keyframes frag-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes frag-q-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.82); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
/* Блик бежит от ноды к «?» и гаснет у цели */
@keyframes frag-glint {
  0%   { stroke-dashoffset: 100; opacity: 0; }
  10%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
/* Проблеск по контейнеру: пробегает и отдыхает */
@keyframes frag-shine {
  0%        { transform: translateX(-130%); }
  35%, 100% { transform: translateX(130%); }
}
/* Бегущий пунктир по линиям (перелив к центру) */
@keyframes dash-flow {
  to { stroke-dashoffset: -10; }
}

/* Планшет/мобилка: без scatter — ноды в компактную сетку 2×N, линии прячем */
@media (max-width: 820px) {
  .lp-frag {
    aspect-ratio: auto;
    max-width: 460px;
    margin: clamp(20px, 4vw, 36px) auto 0;   /* сбрасываем отрицательный margin — иначе наезжает на текст */
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
  }
  .lp-frag__lines { display: none; }         /* десктопные S-дуги прячем */
  .lp-frag__lines-m {                         /* мобильные сходящиеся линии — за нодами */
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    z-index: 0;
  }
  .lp-frag__node {
    position: relative;        /* relative + z-index, чтобы ноды были над линиями */
    z-index: 1;
    left: auto !important;     /* сбрасываем инлайновые left/top десктопного scatter */
    top: auto !important;
    transform: none;
    box-shadow: none;
    justify-content: center;   /* иконка+текст по центру ноды */
    white-space: nowrap;
  }
  /* Блик-перелив нодам на мобильном — непрерывный, со сдвигом по нодам */
  .lp-frag__node::after { display: block; }
  .lp-frag.is-in .lp-frag__node::after { animation-duration: 3s; animation-delay: 0s; }
  .lp-frag.is-in .lp-frag__node:nth-of-type(2)::after { animation-delay: 0.5s; }
  .lp-frag.is-in .lp-frag__node:nth-of-type(3)::after { animation-delay: 1s; }
  .lp-frag.is-in .lp-frag__node:nth-of-type(4)::after { animation-delay: 1.5s; }
  .lp-frag.is-in .lp-frag__node:nth-of-type(5)::after { animation-delay: 2s; }
  .lp-frag.is-in .lp-frag__node:nth-of-type(6)::after { animation-delay: 2.5s; }
  /* Линии переливаются — бегущий пунктир к «?» */
  .lp-frag.is-in .lp-frag__lines-m .lp-frag__line {
    animation: frag-fade 0.6s var(--lp-ease) both, dash-flow 1.3s linear infinite;
  }
  .lp-frag__q,
  .lp-frag__hub {
    position: relative;
    z-index: 1;
    left: auto;
    top: auto;
    transform: none;
    grid-column: 1 / -1;       /* «?» на всю ширину под нодами */
    justify-self: center;
    margin-top: 4px;
  }
  /* в сетке transform занят раскладкой — анимируем только прозрачностью */
  .lp-frag.is-in .lp-frag__node,
  .lp-frag.is-in .lp-frag__q,
  .lp-frag.is-in .lp-frag__hub { animation-name: frag-fade; }
}
@media (max-width: 380px) {
  .lp-frag { grid-template-columns: 1fr; max-width: 260px; }  /* совсем узко — в одну колонку */
  .lp-frag__lines-m { display: none; }   /* в одну колонку сходящиеся линии не ложатся */
}

/* ═══════════════ АКТ 3 · Решение (единая система) ═══════════════ */
.lp-solution { text-align: center; padding-top: clamp(28px, 4.5vw, 64px); }
.lp-solution__lead {
  max-width: 700px;
  margin: 20px auto 0;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.4;
  font-weight: 300;
  color: var(--lp-text-2);
  text-align: justify;
}
.lp-solution__lead strong { color: var(--lp-text); font-weight: 600; }

/* Поддерживаемые активы — сетка карточек с иконками */
.lp-assets { margin-top: clamp(36px, 5vw, 60px); }
.lp-assets__label {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--lp-text-2);
  margin-bottom: 30px;
}
.lp-assets__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));   /* minmax(0,…) — колонки сжимаются, не распирают сетку */
  gap: 14px;
  max-width: 980px;
  margin: 0 auto;
  /* затухание снизу — вдвое слабее (низ гаснет до 50%, а не до полной прозрачности) */
  -webkit-mask-image: linear-gradient(to bottom, #000 74%, rgba(0, 0, 0, 0.5) 100%);
  mask-image: linear-gradient(to bottom, #000 74%, rgba(0, 0, 0, 0.5) 100%);
}
.lp-asset {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;                 /* даём карточке сжиматься в узкой колонке */
  padding: 20px 22px;
  border-radius: var(--lp-r-md);
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  transition: border-color 0.25s var(--lp-ease), background 0.25s var(--lp-ease),
              box-shadow 0.25s var(--lp-ease);
}
/* Hover: проявляется брендовый цвет рынка (var(--c)) */
.lp-asset:hover {
  border-color: color-mix(in srgb, var(--c) 55%, var(--lp-border));
  background: color-mix(in srgb, var(--c) 8%, var(--lp-surface));
  box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--c) 40%, transparent);
}
.lp-asset .ic { width: 24px; height: 24px; color: var(--lp-text-2); flex-shrink: 0; transition: color 0.25s var(--lp-ease); }
.lp-asset:hover .ic { color: var(--c); }
.lp-asset span { font-size: 1rem; font-weight: 500; text-align: left; min-width: 0; }
.lp-asset--more { border-style: dashed; }
.lp-asset--more .ic,
.lp-asset--more span { color: var(--lp-text-2); }

/* Появление карточек по очереди (индекс --i задаёт задержку) */
.js .lp-asset { opacity: 0; }
.lp-assets.is-in .lp-asset {
  animation: lp-card-in 0.5s var(--lp-ease) both;
  animation-delay: calc(var(--i) * 0.045s);
}
@keyframes lp-card-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 780px) { .lp-assets__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .lp-assets__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* компактнее, чтобы подписи влезали в одну строку без переноса */
  .lp-asset { padding: 15px 14px; gap: 10px; }
  .lp-asset .ic { width: 20px; height: 20px; }
  .lp-asset span { font-size: 0.85rem; white-space: nowrap; }
}

/* ═══════════════ АКТ 4 · Способы учёта (3 карточки) ═══════════════ */
.lp-methods { text-align: center; }
.lp-methods__title {
  max-width: 20ch;
  margin: 20px auto 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-wrap: balance;
}
.lp-methods__grid {
  margin: clamp(44px, 6vw, 68px) auto 0;
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: left;
}
.lp-feature-card {
  padding: 28px;
  border-radius: var(--lp-r-lg);
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  transition: border-color 0.25s var(--lp-ease), box-shadow 0.25s var(--lp-ease);
}
.lp-feature-card:hover {
  border-color: var(--lp-text-2);
  box-shadow: 0 18px 44px -22px rgba(0, 0, 0, 0.7);
}
.lp-feature-card__ic {
  width: 48px;
  height: 48px;
  border-radius: var(--lp-r-md);
  display: grid;
  place-items: center;
  background: var(--lp-surface-2);
  border: 1px solid var(--lp-border);
  margin-bottom: 22px;
}
.lp-feature-card__ic .ic { width: 24px; height: 24px; color: var(--lp-text); }
.lp-feature-card__title { font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.lp-feature-card__desc {
  color: var(--lp-text-2);
  font-weight: 300;
  font-size: 0.98rem;
  line-height: 1.55;
}

/* Появление карточек по очереди */
.js .lp-feature-card { opacity: 0; }
.lp-methods__grid.is-in .lp-feature-card {
  animation: lp-card-in 0.55s var(--lp-ease) both;
  animation-delay: calc(var(--i) * 0.1s);
}

@media (max-width: 760px) {
  .lp-methods__grid { grid-template-columns: 1fr; max-width: 440px; }
}

/* ═══════════════ Продукт · Showcase (скриншот платформы) ═══════════════ */
.lp-showcase { text-align: center; }
.lp-showcase__lead {
  max-width: 700px;
  margin: 20px auto 0;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.4;
  font-weight: 300;
  color: var(--lp-text-2);
  text-align: justify;
}
.lp-showcase__lead strong { color: var(--lp-text); font-weight: 600; }
/* Карусель-coverflow: центральный слайд полный, боковые полупрозрачные и выглядывают */
.lp-carousel {
  position: relative;
  /* full-bleed: карусель во всю ширину экрана — боковые слайды выходят за контейнер */
  margin: clamp(44px, 6vw, 76px) calc(50% - 50vw) 0;
  width: 100vw;
  --slide-w: min(1200px, 84vw); /* прежний идеальный размер активного слайда */
}
.lp-carousel__viewport {
  display: flex;
  gap: 24px;
  /* center, а не stretch: иначе в коротком ландшафте (iOS Safari) flex-растяжение
     переопределяет aspect-ratio → слайд вытягивается (низкий+широкий) и фото ужимается по бокам */
  align-items: center;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* поля центрируют активный слайд; боковые выглядывают за контейнер к краям экрана */
  padding-inline: calc((100% - var(--slide-w)) / 2);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.lp-carousel__viewport::-webkit-scrollbar { display: none; }
.lp-slide {
  flex: 0 0 var(--slide-w);
  scroll-snap-align: center;
  margin: 0;
  aspect-ratio: 7 / 4; /* = родное соотношение скриншотов (~1.748), фото без искажений/кропа */
  border-radius: var(--lp-r-lg);
  overflow: hidden;
  border: 1px solid var(--lp-border);
  background: var(--lp-surface);
  box-shadow: 0 6px 18px -12px rgba(0, 0, 0, 0.35);   /* чуть-чуть — на белом не тяжело */
  opacity: 0.35;
  transform: scale(0.95);
  transition: opacity 0.45s var(--lp-ease), transform 0.45s var(--lp-ease);
  cursor: pointer;
}
.lp-slide.is-active { opacity: 1; transform: scale(1); cursor: default; }
.lp-slide img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }

/* ── Стрелки пролистывания (карусель «Интерфейс» + ряд «Анализ») ── */
/* Пара стрелок — внизу справа под каруселью/рядом, по кромке контента */
.lp-cnav-group {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: clamp(16px, 2vw, 24px);
  padding-inline: max(var(--lp-gutter), calc((100vw - 1400px) / 2));
}
/* На сенсорных экранах стрелки не нужны — листают свайпом; вместо них — подсказка */
.lp-swipe-hint { display: none; }
@media (hover: none) {
  .lp-cnav-group { display: none; }
  .lp-swipe-hint {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    margin-top: clamp(14px, 2vw, 20px);
    padding-inline: max(var(--lp-gutter), calc((100vw - 1400px) / 2));
    color: var(--lp-text-2);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
  }
  .lp-swipe-hint__arrows { display: inline-flex; align-items: center; }
  .lp-swipe-hint__arrows .ic {
    width: 15px;
    height: 15px;
    margin-left: -7px;
    color: var(--lp-text);
    animation: swipe-wave 1.6s var(--lp-ease) infinite;
  }
  .lp-swipe-hint__arrows .ic:nth-child(2) { animation-delay: 0.16s; }
}
@keyframes swipe-wave {
  0%       { transform: translateX(-2px); opacity: 0.2; }
  45%      { transform: translateX(3px);  opacity: 1; }
  90%, 100% { transform: translateX(-2px); opacity: 0.2; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-swipe-hint__arrows .ic { animation: none; opacity: 0.7; }
}
.lp-cnav {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--lp-text);
  background: var(--lp-surface-2);
  border: 1px solid var(--lp-border);
  cursor: pointer;
  transition: background 0.2s var(--lp-ease), border-color 0.2s var(--lp-ease), transform 0.15s var(--lp-ease);
}
.lp-cnav:hover { background: var(--lp-surface); border-color: var(--lp-text-2); }
.lp-cnav:active { transform: scale(0.94); }
.lp-cnav .ic { width: 20px; height: 20px; }
@media (max-width: 640px) {
  .lp-cnav { width: 40px; height: 40px; }
}

/* ═══════════════ ВОЗМОЖНОСТИ · Анализ (6 карточек со свечением) ═══════════════ */
.lp-analysis { text-align: center; }
/* Заголовок: bold-лид + приглушённое продолжение (по центру) */
.lp-analysis__lead {
  max-width: 700px;
  margin: 20px auto 0;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.4;
  font-weight: 300;
  color: var(--lp-text-2);
  text-align: justify;
}
.lp-analysis__lead strong { color: var(--lp-text); font-weight: 600; }
/* Ряд full-bleed (обёртка relative — на ней позиционируются стрелки) */
.lp-analysis__row {
  position: relative;
  margin: clamp(40px, 5vw, 60px) calc(50% - 50vw) 0;
  width: 100vw;
}
.lp-analysis__grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-inline: max(var(--lp-gutter), calc((100vw - 1400px) / 2));
  /* снап учитывает паддинг — первая карточка стоит у края контейнера, а не экрана */
  scroll-padding-inline: max(var(--lp-gutter), calc((100vw - 1400px) / 2));
  scrollbar-width: none;
  -ms-overflow-style: none;
  text-align: left;
}
.lp-analysis__grid::-webkit-scrollbar { display: none; }

.lp-analysis-card {
  position: relative;
  overflow: hidden;
  flex: 0 0 clamp(280px, 30vw, 350px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--lp-r-lg);
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  transition: border-color 0.25s var(--lp-ease), box-shadow 0.25s var(--lp-ease);
}
/* Цветное свечение сверху — как на референсе */
.lp-analysis-card::before {
  content: '';
  position: absolute;
  top: -55%;
  left: 50%;
  width: 82%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle at center, color-mix(in srgb, var(--c) 34%, transparent), transparent 64%);
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.3s var(--lp-ease);
  z-index: 0;
}
.lp-analysis-card > * { position: relative; z-index: 1; }
.lp-analysis-card:hover {
  border-color: color-mix(in srgb, var(--c) 45%, var(--lp-border));
  box-shadow: 0 22px 54px -26px color-mix(in srgb, var(--c) 42%, transparent);
}
.lp-analysis-card:hover::before { opacity: 0.85; }

.lp-analysis-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.lp-analysis-card__ic {
  width: 44px;
  height: 44px;
  border-radius: var(--lp-r-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--c) 14%, var(--lp-surface-2));
  border: 1px solid color-mix(in srgb, var(--c) 26%, var(--lp-border));
}
.lp-analysis-card__ic .ic { width: 22px; height: 22px; color: var(--c); }
.lp-analysis-card__title { font-size: 1.08rem; font-weight: 600; }
.lp-analysis-card__desc { color: var(--lp-text-2); font-weight: 300; font-size: 0.94rem; line-height: 1.5; }

/* ── Тематические визуалы снизу карточки ── */
.lp-viz { display: block; width: 100%; height: 92px; margin-top: auto; padding-top: 22px; box-sizing: content-box; }
.lp-viz .vstroke { fill: none; stroke: var(--c); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lp-viz .vdash { stroke-dasharray: 5 5; }
.lp-viz .vfill { fill: var(--c); fill-opacity: 0.12; stroke: none; }
.lp-viz .vdot { fill: var(--c); stroke: none; }
.lp-viz .vdim { fill: none; stroke: var(--lp-border); stroke-width: 1.5; stroke-linecap: round; }

/* Фундаментальный — мини-таблица */
.lp-viz-table { margin-top: auto; padding-top: 20px; font-size: 0.82rem; }
.lp-viz-table__row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; padding: 7px 0; border-top: 1px solid var(--lp-border-soft); }
.lp-viz-table__row > * { text-align: right; font-variant-numeric: tabular-nums; min-width: 30px; }
.lp-viz-table__row > :first-child { text-align: left; color: var(--lp-text-2); }
.lp-viz-table__row b { color: var(--c); font-weight: 600; }
.lp-viz-table__row--head { border-top: none; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; }
.lp-viz-table__row--head > * { color: var(--lp-muted); }

/* Макро — визуал-мессенджер */
.lp-viz-chat { margin-top: auto; padding-top: 22px; display: flex; flex-direction: column; gap: 9px; }
.lp-viz-chat__in,
.lp-viz-chat__out { max-width: 80%; padding: 10px 12px; border-radius: 13px; display: flex; flex-direction: column; gap: 6px; }
.lp-viz-chat__in { align-self: flex-start; background: var(--lp-surface-2); border-bottom-left-radius: 4px; }
.lp-viz-chat__out { align-self: flex-end; background: color-mix(in srgb, var(--c) 24%, var(--lp-surface-2)); border-bottom-right-radius: 4px; }
.lp-viz-chat u { display: block; height: 7px; border-radius: 4px; background: var(--lp-muted); opacity: 0.5; text-decoration: none; }
.lp-viz-chat__out u { background: var(--c); opacity: 0.75; }
.lp-viz-chat u.w1 { width: 90px; } .lp-viz-chat u.w2 { width: 62px; } .lp-viz-chat u.w3 { width: 74px; }

.lp-viz-news { margin-top: auto; padding-top: 22px; display: flex; flex-direction: column; gap: 13px; }
.lp-viz-news > div { display: flex; align-items: center; gap: 11px; }
.lp-viz-news i { width: 9px; height: 9px; border-radius: 2px; background: var(--c); flex-shrink: 0; opacity: 0.85; }
.lp-viz-news u { flex: 1; height: 8px; border-radius: 4px; background: var(--lp-surface-2); text-decoration: none; }
.lp-viz-news u.short { flex: 0 0 60%; }

.lp-viz-sent { margin-top: auto; padding-top: 24px; }
.lp-viz-sent__bar { position: relative; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--lp-down), var(--lp-text-2) 55%, var(--c)); }
.lp-viz-sent__dot { position: absolute; top: 50%; left: 74%; width: 16px; height: 16px; border-radius: 50%; background: var(--c); border: 3px solid var(--lp-surface); transform: translate(-50%, -50%); }
.lp-viz-sent__labels { display: flex; justify-content: space-between; margin-top: 11px; font-size: 0.72rem; color: var(--lp-muted); }

/* Появление карточек по очереди */
.js .lp-analysis-card { opacity: 0; }
.lp-analysis__grid.is-in .lp-analysis-card {
  animation: lp-card-in 0.55s var(--lp-ease) both;
  animation-delay: calc(var(--i) * 0.08s);
}

/* ═══════════════ AI · самый красивый блок ═══════════════ */
/* Аврора-свечение (inset:-16% + анимация scale/translate) вылезает за правую кромку
   и раздвигает страницу вбок. Обрезаем по секции: overflow-x:clip не создаёт скролл-
   контейнер (в отличие от hidden) — sticky в «Сценариях» не ломается, а overflow-y
   остаётся visible. Свечение по-прежнему бликует внутри секции. */
.lp-ai { overflow-x: clip; }
.lp-ai__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
/* Текст в стиле Linear — жирный лид + приглушённое продолжение */
.lp-ai__lead {
  margin: 20px auto 0;
  max-width: 700px;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.4;
  font-weight: 300;
  color: var(--lp-text-2);
  text-align: justify;
}
.lp-ai__lead strong { color: var(--lp-text); font-weight: 600; }

/* Обёртка чата + аурора-свечение */
.lp-ai__chat-wrap { position: relative; }
.lp-ai__glow {
  position: absolute;
  inset: -16%;
  z-index: 0;
  filter: blur(64px);
  opacity: 0.5;
  pointer-events: none;
  background:
    radial-gradient(38% 40% at 28% 28%, #0984E3, transparent 72%),
    radial-gradient(40% 42% at 76% 36%, #9D4EDD, transparent 72%),
    radial-gradient(48% 46% at 50% 84%, #14B8A6, transparent 72%);
  animation: ai-aurora 16s ease-in-out infinite alternate;
}
@keyframes ai-aurora {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  50%  { transform: translate(3%, -2%) scale(1.08) rotate(6deg); }
  100% { transform: translate(-3%, 2%) scale(1.02) rotate(-4deg); }
}

/* Стеклянная карточка чата */
.lp-ai__chat {
  position: relative;
  z-index: 1;
  padding: 20px;
  border-radius: var(--lp-r-lg);
  border: 1px solid var(--lp-border);
  background: color-mix(in srgb, var(--lp-surface) 82%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 40px 90px -44px rgba(0, 0, 0, 0.75);
  overflow: hidden;
}
.lp-ai__chat-head { display: flex; align-items: center; gap: 11px; padding-bottom: 16px; border-bottom: 1px solid var(--lp-border-soft); }
.lp-ai__avatar {
  width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(135deg, #0984E3, #9D4EDD);
  color: #fff;
}
.lp-ai__avatar .ic { width: 20px; height: 20px; }
.lp-ai__id { display: flex; flex-direction: column; gap: 1px; }
.lp-ai__name { font-weight: 600; font-size: 0.95rem; }
.lp-ai__ctx { font-size: 0.75rem; color: var(--lp-muted); }

.lp-ai__msgs { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.lp-ai__msg--user {
  align-self: flex-end;
  max-width: 86%;
  padding: 11px 15px;
  border-radius: 16px;
  border-bottom-right-radius: 5px;
  background: var(--lp-accent);
  color: var(--lp-on-accent);
  font-size: 0.94rem;
  font-weight: 500;
}
.lp-ai__bot { display: flex; gap: 10px; align-items: flex-start; max-width: 94%; }
.lp-ai__avatar--sm { width: 30px; height: 30px; border-radius: 9px; margin-top: 2px; }
.lp-ai__avatar--sm .ic { width: 16px; height: 16px; }
.lp-ai__msg--bot {
  background: var(--lp-surface-2);
  border: 1px solid var(--lp-border);
  padding: 13px 16px;
  border-radius: 16px;
  border-top-left-radius: 5px;
  font-size: 0.94rem;
  line-height: 1.55;
}
.lp-ai__msg--bot b { font-weight: 600; }
.lp-ai__msg--bot b.up { color: var(--lp-up); }
.lp-ai__msg--bot b.down { color: var(--lp-down); }
.lp-ai__list { list-style: none; margin: 9px 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.lp-ai__list li { display: flex; align-items: center; gap: 9px; }
.lp-ai__list i { width: 7px; height: 7px; border-radius: 50%; background: var(--d); flex-shrink: 0; }

/* Стриминг ответа: реплика юзера → пузырь бота → строки по очереди */
.js .lp-ai__msg--user,
.js .lp-ai__bot,
.js .lp-ai__ln { opacity: 0; }
.lp-ai__chat-wrap.is-in .lp-ai__msg--user { animation: ai-line 0.5s var(--lp-ease) 0.2s both; }
.lp-ai__chat-wrap.is-in .lp-ai__bot { animation: ai-line 0.45s var(--lp-ease) 0.65s both; }
.lp-ai__chat-wrap.is-in .lp-ai__ln { animation: ai-line 0.5s var(--lp-ease) both; animation-delay: calc(0.7s + var(--i) * 0.28s); }
@keyframes ai-line {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 860px) {
  .lp-ai__grid { grid-template-columns: 1fr; }
  .lp-ai__lead { max-width: none; }
}

/* ═══════════════ Интерактивные доски (канва) ═══════════════ */
.lp-boards { text-align: center; }
.lp-boards__lead {
  max-width: 700px;
  margin: 20px auto 0;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.4;
  font-weight: 300;
  color: var(--lp-text-2);
  text-align: justify;
}
.lp-boards__lead strong { color: var(--lp-text); font-weight: 600; }
.lp-boards__frame {
  margin: clamp(44px, 6vw, 76px) auto 0;
  max-width: 1120px;
  border-radius: var(--lp-r-lg);
  overflow: hidden;
  border: 1px solid var(--lp-border);
  box-shadow:
    0 50px 100px -44px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.03);
}
.lp-boards__frame img { display: block; width: 100%; height: auto; }

/* ═══════════════ Сценарии использования · sticky-нарратив ═══════════════ */
.lp-scenarios { text-align: center; }
.lp-scenarios__title {
  margin: 20px auto 0;
  max-width: 20ch;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-wrap: balance;
}

/* Раскладка: слева — колонка шагов (скролл), справа — залипающая сцена */
.lp-scn {
  margin-top: clamp(40px, 6vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 104px);
  text-align: left;
  align-items: stretch;
}

/* ── Левая колонка: шаги ── */
.lp-scn-step {
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.32;
  transition: opacity 0.5s var(--lp-ease);
}
.lp-scn-step.is-active { opacity: 1; }
html:not(.js) .lp-scn-step { opacity: 1; }        /* без JS не оставляем блёклым */

.lp-scn-step__no {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--lp-text-2);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.lp-scn-step__soon {
  letter-spacing: normal;
  font-size: 0.68rem;
  color: var(--lp-text-2);
  background: var(--lp-surface-2);
  border: 1px solid var(--lp-border);
  border-radius: 999px;
  padding: 2px 9px;
}
.lp-scn-step__title {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  text-wrap: balance;
}
.lp-scn-step__desc {
  color: var(--lp-text-2);
  font-weight: 300;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.62;
  max-width: 44ch;
}
.lp-scn-step .lp-btn { margin-top: 28px; }
.lp-scn-step__media { display: none; }            /* инлайновый визуал — только на мобильных */

/* ── Правая колонка: залипающая сцена, crossfade визуалов ── */
.lp-scn-stage__inner {
  position: sticky;
  top: calc(var(--lp-nav-h) + clamp(24px, 6vh, 60px));
  aspect-ratio: 7 / 4;
  border-radius: var(--lp-r-lg);
  border: 1px solid var(--lp-border);
  background: var(--lp-surface);
  overflow: hidden;
  box-shadow: 0 50px 120px -50px rgba(0, 0, 0, 0.7);
}
.lp-scn-visual {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.7s var(--lp-ease), transform 0.7s var(--lp-ease);
  pointer-events: none;
}
.lp-scn-visual.is-active { opacity: 1; transform: none; }
html:not(.js) .lp-scn-visual:first-child { opacity: 1; transform: none; }
.lp-scn-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.lp-scn-visual--mock {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lp-surface-2);
  padding: clamp(24px, 4vw, 56px);
}
.lp-scn-visual--mock .lp-collab { width: min(100%, 460px); }

/* Рамка инлайнового (мобильного) визуала */
.lp-scn-frame {
  border-radius: var(--lp-r-lg);
  overflow: hidden;
  border: 1px solid var(--lp-border);
  box-shadow: 0 40px 90px -44px rgba(0, 0, 0, 0.72);
}
.lp-scn-frame img { display: block; width: 100%; height: auto; }

@media (prefers-reduced-motion: reduce) {
  .lp-scn-visual { transition: none; }
  .lp-scn-step { transition: none; }
}

/* Мокап совместной работы (сценарий 4) */
.lp-collab {
  padding: 24px;
  border-radius: var(--lp-r-lg);
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  box-shadow: 0 40px 90px -44px rgba(0, 0, 0, 0.6);
}
.lp-collab__head { margin-bottom: 18px; }
.lp-collab__title { font-weight: 600; font-size: 1.05rem; }
.lp-collab__members { display: flex; margin-bottom: 22px; }
.lp-collab__members span {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.82rem; font-weight: 600; color: #fff;
  background: var(--a); border: 2px solid var(--lp-surface);
  margin-left: -8px;
}
.lp-collab__members span:first-child { margin-left: 0; }
.lp-collab__more { color: var(--lp-text-2) !important; background: var(--lp-surface-2) !important; }
.lp-collab__rows { display: flex; flex-direction: column; gap: 8px; }
.lp-collab__rows > div {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border-radius: 12px;
  background: var(--lp-surface-2); font-size: 0.9rem; color: var(--lp-text-2);
}
.lp-collab__rows b { color: var(--lp-text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Планшет/мобилка: одна колонка, залипающая сцена скрыта, у каждого шага — свой визуал */
@media (max-width: 900px) {
  .lp-scn { grid-template-columns: 1fr; gap: 0; }
  .lp-scn__stage { display: none; }
  .lp-scn-step {
    min-height: 0;
    opacity: 1;
    display: block;
    padding-block: clamp(40px, 8vw, 64px);
    border-top: 1px solid var(--lp-border-soft);
  }
  .lp-scn-step:first-child { border-top: none; padding-top: 0; }
  .lp-scn-step__desc { max-width: none; }
  .lp-scn-step__media { display: block; margin-top: 28px; }
}

/* ═══════════════ Развитие (идео-таймлайн + функции со статусом) ═══════════════ */
.lp-roadmap { text-align: center; }
.lp-roadmap__title {
  margin: 20px auto 0;
  max-width: 20ch;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-wrap: balance;
}

/* Линия времени: 4 фазы, горизонтальный коннектор поверх точек */
.lp-timeline {
  position: relative;
  margin-top: clamp(48px, 7vw, 88px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.5vw, 36px);
  align-items: start;
}
.lp-timeline__track {
  position: absolute;
  top: 6px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, var(--lp-text-2), var(--lp-border));
}
.lp-timeline__step {
  position: relative;
  padding-top: 34px;
  text-align: center;
}
.lp-timeline__dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--lp-bg);
  border: 2px solid var(--lp-text-2);
}
.lp-timeline__step.is-now .lp-timeline__dot {
  background: var(--lp-accent);
  border-color: var(--lp-accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--lp-accent) 16%, transparent);
}
.lp-timeline__when {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--lp-text-2);
  margin-bottom: 12px;
}
.lp-timeline__text {
  font-size: clamp(1.02rem, 1.4vw, 1.3rem);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.01em;
  max-width: 22ch;
  margin-inline: auto;
}
/* Список функций под фазой — центрированный блок, пункты выровнены влево */
.lp-timeline__feat {
  list-style: none;
  margin: clamp(20px, 2.5vw, 28px) auto 0;
  padding: 0;                 /* убираем дефолтный отступ <ul> */
  display: inline-flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.lp-timeline__feat li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--lp-text);
}
/* Маркеры статуса: готово=check (зелёный) · в работе=шестерёнка (янтарь) · план=часы (серый) */
.lp-mk {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.lp-mk--done { color: var(--lp-up); }
.lp-mk--dev  { color: #F59E0B; transform-origin: center; animation: gear-spin 7s linear infinite; }
.lp-mk--plan { color: var(--lp-text-2); }
/* шестерёнки «в разработке» медленно крутятся — «работа идёт» */
@keyframes gear-spin { to { transform: rotate(360deg); } }

/* Появление «оживлённое»: линия чертится, точки выскакивают с пружинкой,
   заголовки и пункты всплывают каскадом, активный узел «Сегодня» пульсирует.
   Класс .is-in ставит IntersectionObserver (app.js). Базовые задержки фаз — в --sd. */
.lp-timeline__step:nth-of-type(1) { --sd: 0.06s; }
.lp-timeline__step:nth-of-type(2) { --sd: 0.20s; }
.lp-timeline__step:nth-of-type(3) { --sd: 0.34s; }
.lp-timeline__step:nth-of-type(4) { --sd: 0.48s; }

.lp-timeline__track  { transition: transform 0.9s var(--lp-ease); }
.lp-timeline__dot    { transition: scale 0.55s cubic-bezier(0.34, 1.56, 0.64, 1); }  /* пружинка */
.lp-timeline__when,
.lp-timeline__text   { transition: opacity 0.55s var(--lp-ease), transform 0.55s var(--lp-ease); }
.lp-timeline__feat li { transition: opacity 0.5s var(--lp-ease), transform 0.5s var(--lp-ease); }

/* стартовые (скрытые) состояния — только при активном JS */
html.js .lp-timeline__track   { transform: scaleX(0); transform-origin: left center; }
html.js .lp-timeline__dot     { scale: 0; }                 /* отдельное свойство scale — не ломает translateX/мобилку */
html.js .lp-timeline__when,
html.js .lp-timeline__text    { opacity: 0; transform: translateY(14px); }
html.js .lp-timeline__feat li { opacity: 0; transform: translateY(10px); }

/* при входе в кадр — каскад по фазам */
.lp-timeline.is-in .lp-timeline__track { transform: scaleX(1); }
.lp-timeline.is-in .lp-timeline__dot   { scale: 1; transition-delay: var(--sd); }
.lp-timeline.is-in .lp-timeline__when  { opacity: 1; transform: none; transition-delay: calc(var(--sd) + 0.06s); }
.lp-timeline.is-in .lp-timeline__text  { opacity: 1; transform: none; transition-delay: calc(var(--sd) + 0.10s); }
.lp-timeline__feat li:nth-child(1) { --li: 0; }
.lp-timeline__feat li:nth-child(2) { --li: 1; }
.lp-timeline__feat li:nth-child(3) { --li: 2; }
.lp-timeline__feat li:nth-child(4) { --li: 3; }
.lp-timeline.is-in .lp-timeline__feat li {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--sd) + 0.20s + var(--li) * 0.07s);
}

/* активный узел «Сегодня» — лёгкая непрерывная пульсация свечения (после появления) */
.lp-timeline.is-in .lp-timeline__step.is-now .lp-timeline__dot {
  animation: tl-pulse 2.6s var(--lp-ease) 1.1s infinite;
}
@keyframes tl-pulse {
  0%, 100% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--lp-accent) 16%, transparent); }
  50%      { box-shadow: 0 0 0 9px color-mix(in srgb, var(--lp-accent) 5%, transparent); }
}

/* Бегущая полоска-«комета» по линии таймлайна (туда-сюда) */
.lp-timeline__track::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 72px;
  height: 3px;
  transform: translateY(-50%);
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--lp-accent), transparent);
  box-shadow: 0 0 8px color-mix(in srgb, var(--lp-accent) 35%, transparent);
  opacity: 0;
  pointer-events: none;
}
.lp-timeline.is-in .lp-timeline__track::after {
  animation: tl-runner 2.8s ease-in-out 1s infinite alternate;
}
@keyframes tl-runner {
  from { left: 0; opacity: 1; }
  to   { left: calc(100% - 72px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-timeline__track, .lp-timeline__dot,
  .lp-timeline__when, .lp-timeline__text, .lp-timeline__feat li { transition: none; }
  html.js .lp-timeline__track { transform: scaleX(1); }
  html.js .lp-timeline__dot   { scale: 1; }
  html.js .lp-timeline__when,
  html.js .lp-timeline__text  { opacity: 1; transform: none; }
  html.js .lp-timeline__feat li { opacity: 1; transform: none; }
  .lp-timeline.is-in .lp-timeline__step.is-now .lp-timeline__dot { animation: none; }
  .lp-timeline.is-in .lp-timeline__track::after { animation: none; opacity: 0; }
  .lp-mk--dev { animation: none; }
}

@media (max-width: 860px) {
  /* линия времени → вертикальная лента */
  .lp-timeline { grid-template-columns: 1fr; gap: 0; }
  .lp-timeline__track { display: none; }
  .lp-timeline__step {
    text-align: left;
    padding: 0 0 34px 30px;
    border-left: 1px solid var(--lp-border);
  }
  .lp-timeline__step:last-child { border-left-color: transparent; padding-bottom: 0; }
  .lp-timeline__dot { top: 3px; left: -7px; transform: none; }
  .lp-timeline__text { max-width: none; }
  .lp-timeline__feat { display: flex; margin-left: 0; }
  /* Бегущий блик по вертикальной линии (замена горизонтальной «кометы») */
  .lp-timeline.is-in::after {
    content: "";
    position: absolute;
    left: -1px;
    top: 0;
    width: 3px;
    height: 30px;
    border-radius: 3px;
    background: linear-gradient(transparent, var(--lp-accent), transparent);
    animation: tl-vrun 3s ease-in-out infinite;
    pointer-events: none;
  }
}
@keyframes tl-vrun {
  0%   { top: 0; opacity: 0; }
  15%  { opacity: 0.85; }
  85%  { opacity: 0.85; }
  100% { top: calc(100% - 30px); opacity: 0; }
}

/* ═══════════════ Цена ═══════════════ */
/* Шапка — тот же «лид», что и в остальных секциях (эталон — Solution):
   центрированный блок 700px с текстом по ширине, яркая ключевая фраза. */
.lp-pricing { text-align: center; }
.lp-pricing__lead {
  max-width: 700px;
  margin: 20px auto 0;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.4;
  font-weight: 300;
  color: var(--lp-text-2);
  text-align: justify;
}
.lp-pricing__lead strong { color: var(--lp-text); font-weight: 600; }

.lp-price-grid {
  margin: clamp(40px, 5vw, 64px) auto 0;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 30px);
  text-align: left;
  align-items: stretch;
}
.lp-price {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--lp-r-lg);
  border: 1px solid var(--lp-border);
  background: var(--lp-surface);
}
.lp-price--featured {
  border-color: color-mix(in srgb, var(--lp-accent) 42%, var(--lp-border));
  box-shadow: 0 40px 90px -60px rgba(0, 0, 0, 0.6);
}
.lp-price--soon { background: transparent; }

.lp-price__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.lp-price__name { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.lp-price__badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 4px 11px;
  border-radius: 999px;
  color: var(--lp-text-2);
  background: var(--lp-surface-2);
  border: 1px solid var(--lp-border);
  white-space: nowrap;
}
.lp-price__badge--now {
  color: var(--lp-on-accent);
  background: var(--lp-accent);
  border-color: transparent;
}

.lp-price__cost { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.lp-price__amount { font-size: clamp(2.3rem, 4vw, 2.9rem); font-weight: 600; letter-spacing: -0.03em; }
.lp-price__amount--soon { font-size: clamp(1.6rem, 3vw, 2rem); color: var(--lp-text-2); font-weight: 500; }
.lp-price__note {
  color: var(--lp-text-2);
  font-weight: 300;
  font-size: 0.96rem;
  line-height: 1.5;
  margin-bottom: 28px;
  max-width: 32ch;
}

.lp-price__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 32px;   /* сбрасываем дефолтные margin/padding <ul>, чтобы список был вровень слева */
  padding: 0;
}
.lp-price__features li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.98rem;
  font-weight: 300;
  color: var(--lp-text);
}
.lp-price__features .ic {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--lp-up);
}
.lp-price--soon .lp-price__features li { color: var(--lp-text-2); }
.lp-price--soon .lp-price__features .ic { color: var(--lp-text-2); }

.lp-price__cta { width: 100%; margin-top: auto; }
.lp-price__cta.is-soon { cursor: default; opacity: 0.75; }
.lp-price__cta.is-soon:hover { background: var(--lp-surface-2); border-color: var(--lp-border); }
.lp-price__cta.is-soon:active { transform: none; }

@media (max-width: 720px) {
  .lp-price-grid { grid-template-columns: 1fr; }
}

/* ═══════════════ FAQ (аккордеон, нативный <details>) ═══════════════ */
.lp-faq { text-align: center; }
.lp-faq__title {
  margin: 20px auto 0;
  max-width: 20ch;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-wrap: balance;
}
.lp-faq__list {
  margin: clamp(40px, 6vw, 72px) auto 0;
  max-width: 760px;
  text-align: left;
  border-top: 1px solid var(--lp-border-soft);
}
.lp-faq__item { border-bottom: 1px solid var(--lp-border-soft); }
.lp-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 2.5vw, 28px) 4px;
  cursor: pointer;
  list-style: none;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--lp-text);
  transition: opacity 0.2s var(--lp-ease);
}
.lp-faq__q::-webkit-details-marker { display: none; }   /* убрать дефолтный треугольник Safari/Chrome */
.lp-faq__q:hover { opacity: 0.7; }
/* Индикатор «+» → «−»: две палочки, вертикальная поворачивается в горизонталь при раскрытии */
.lp-faq__pm {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.lp-faq__pm::before,
.lp-faq__pm::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--lp-text-2);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--lp-ease), background 0.2s var(--lp-ease);
}
.lp-faq__pm::after { transform: translate(-50%, -50%) rotate(90deg); }        /* вертикальная палочка → «+» */
.lp-faq__item[open] .lp-faq__pm::after { transform: translate(-50%, -50%) rotate(0deg); } /* поворот в горизонталь → «−» */
.lp-faq__item[open] .lp-faq__pm::before,
.lp-faq__item[open] .lp-faq__pm::after { background: var(--lp-text); }
.lp-faq__a {
  padding: 0 4px clamp(22px, 2.5vw, 30px);
  max-width: 60ch;
  color: var(--lp-text-2);
  font-weight: 300;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.6;
}
.lp-faq__a strong { color: var(--lp-text); font-weight: 600; }
/* мягкое появление ответа при раскрытии */
.lp-faq__item[open] .lp-faq__a { animation: faq-open 0.35s var(--lp-ease); }
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-faq__pm::before,
  .lp-faq__pm::after { transition: none; }
  .lp-faq__item[open] .lp-faq__a { animation: none; }
}

/* ═══════════════ Принцип (ценностное заявление, не дисклеймер) ═══════════════ */
/* Текст — тот же «лид» в стиле Linear, что в остальных секциях (эталон — Solution). */
.lp-principle { text-align: center; }
.lp-principle__lead {
  max-width: 700px;
  margin: 20px auto 0;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.4;
  font-weight: 300;
  color: var(--lp-text-2);
  text-align: justify;
}
.lp-principle__lead strong { color: var(--lp-text); font-weight: 600; }

/* ═══════════════ Финальный CTA (без подложки, в стиле Vercel) ═══════════════ */
/* Никакой карточки — крупный заголовок и кнопки прямо на фоне страницы. */
.lp-cta__inner { text-align: center; }
.lp-cta__title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 20ch;
  margin-inline: auto;
  text-wrap: balance;
}
.lp-cta__sub {
  margin: 20px auto 0;
  max-width: 46ch;
  color: var(--lp-text-2);
  font-weight: 300;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.5;
}
.lp-cta__actions {
  margin-top: clamp(28px, 4vw, 40px);
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════ Trust-полоса (скелет) ═══════════════ */
.lp-sources { padding-block: clamp(40px, 6vw, 64px); border-top: 1px solid var(--lp-border-soft); }
.lp-sources__label {
  text-align: center;
  font-size: 0.85rem;
  color: var(--lp-muted);
  margin-bottom: 24px;
}
.lp-sources__row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  justify-content: center;
  align-items: center;
  color: var(--lp-text-2);
  font-weight: 500;
}

/* ═══════════════ Секции-фичи (скелет alternate) ═══════════════ */
.lp-feature { border-top: 1px solid var(--lp-border-soft); }

/* ═══════════════ Финальный CTA (скелет) ═══════════════ */
.lp-cta { text-align: center; }
.lp-cta__title { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 20ch; margin-inline: auto; }
.lp-cta__sub { margin: 20px auto 32px; color: var(--lp-text-2); font-weight: 300; max-width: 40ch; }

/* ═══════════════ Футер (скелет) ═══════════════ */
.lp-footer { border-top: 1px solid var(--lp-border); padding-block: clamp(44px, 6vw, 72px) 32px; }

/* Верхняя строка — бренд слева, переключатель темы справа */
.lp-footer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(40px, 5vw, 60px);
}

/* Сетка колонок ссылок */
.lp-footer__top {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 44px 24px;
}
.lp-footer__h {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--lp-text);
  margin-bottom: 18px;
}
.lp-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.lp-footer__col a {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--lp-text-2);
  transition: color 0.2s var(--lp-ease);
}
.lp-footer__col a:hover { color: var(--lp-text); }

/* Нижняя строка — копирайт слева, статус справа */
.lp-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(44px, 6vw, 72px);
}
.lp-footer__legal {
  color: var(--lp-text-2);
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.55;
  max-width: 640px;
}
.lp-footer__status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--lp-text-2);
  white-space: nowrap;
}
.lp-footer__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lp-up);
  animation: fs-pulse 2.4s var(--lp-ease) infinite;
}
@keyframes fs-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--lp-up) 45%, transparent); }
  70%  { box-shadow: 0 0 0 6px color-mix(in srgb, var(--lp-up) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--lp-up) 0%, transparent); }
}

@media (max-width: 1080px) {
  .lp-footer__top { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  .lp-footer__top { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .lp-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════ Переключатель темы (сегментированная «пилюля») ═══════════════ */
.lp-theme {
  display: inline-flex;
  align-items: center;
  align-self: center;   /* не растягиваться по высоте соседнего блока в футер-flex */
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--lp-border);
  background: var(--lp-surface);
}
.lp-theme__btn {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: var(--lp-muted);
  transition: color 0.2s var(--lp-ease), background 0.2s var(--lp-ease);
}
.lp-theme__btn:hover { color: var(--lp-text-2); }
.lp-theme__btn[aria-pressed="true"] {
  color: var(--lp-text);
  /* Полупрозрачный «чип» — читается и на чёрной, и на белой теме */
  background: color-mix(in srgb, var(--lp-text) 12%, transparent);
}
.lp-theme__btn .ic { width: 15px; height: 15px; }

/* ═══════════════ Адаптив ═══════════════ */
@media (max-width: 860px) {
  .lp-nav__links,
  .lp-nav__cta { display: none; }
  .lp-burger { display: inline-flex; }
  .lp-logo__word { font-size: 0.95rem; }
}

/* ═══════════════ prefers-reduced-motion ═══════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .lp-browser { transform: none; } /* без 3D-наклона — карточка ровная */
  .lp-frag__glint { display: none; }         /* без бегущего блика */
  .lp-frag__node::after { display: none; }   /* без проблеска */
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
