/* ─────────────────────────────────────────────────────────────────────────
   landing.css — маркетинговый лендинг Aunimeda CRM (crm.aunimeda.com/ + /en).

   Дизайн НАМЕРЕННО не Animus (тёмный techno-стиль основного сайта): продуктовый
   SaaS-лендинг — светлый, скруглённый, один индиго-градиент, мягкие тени.
   Отдельный продукт → отдельный визуальный язык.

   Страница статическая, ноль JS, CSP style-src 'self' без inline:
   ВСЕ стили здесь, ВСЯ анимация — CSS-keyframes (мокап CRM в hero,
   4 use-case-виньетки, чат ИИ-ассистента). Циклы построены так, что
   БАЗОВОЕ состояние каждого элемента = осмысленный «конечный кадр»:
   при prefers-reduced-motion анимации гасятся и остаётся статичная картинка.
   Лежит в frontend/public/ → Vite копирует в build/landing.css.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --bg:         #f6f7fb;
  --bg-soft:    #eef1f8;
  --surface:    #ffffff;
  --ink:        #0e1633;
  --muted:      #5a6584;
  --faint:      #8a93ad;
  --line:       #e3e7f2;

  --brand:      #4f5bf0;
  --brand-2:    #8b5cf6;
  --brand-ink:  #3c46d6;
  --brand-soft: #eef0fe;
  --grad:       linear-gradient(120deg, #4f5bf0, #8b5cf6);

  --ok:         #10b981;
  --ok-ink:     #0c7c5c;
  --ok-soft:    #e3f7ef;
  --warn-ink:   #b45309;
  --warn-soft:  #fdf0dc;

  --dark-panel:   #10142e;
  --dark-panel-2: #181d3f;
  --dark-ink:     #eceffc;
  --dark-muted:   #a6aecb;
  --dark-line:    rgba(255, 255, 255, 0.09);

  --shadow-sm:  0 1px 2px rgba(14, 22, 51, 0.06), 0 4px 12px -4px rgba(14, 22, 51, 0.08);
  --shadow-lg:  0 2px 4px rgba(14, 22, 51, 0.05), 0 24px 60px -20px rgba(14, 22, 51, 0.18);

  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 9px;

  --font: 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system,
          'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Code', Consolas, 'SF Mono', Menlo, monospace;

  --maxw: 1120px;
  --pad:  clamp(20px, 4vw, 44px);

  /* длительности циклов анимации */
  --loop:  14s;  /* мокап CRM в hero        */
  --scene: 9s;   /* use-case-виньетки       */
  --chat:  13s;  /* диалог ИИ-ассистента    */

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0b1020;
    --bg-soft:   #0e142c;
    --surface:   #151b38;
    --ink:       #e9ecfa;
    --muted:     #a3abc7;
    --faint:     #7c86a8;
    --line:      #262e54;
    --brand:     #7c8cff;
    --brand-2:   #a78bfa;
    --brand-ink: #a5b0ff;
    --brand-soft:#1e2450;
    --ok-ink:    #4ade9d;
    --ok-soft:   #123a2e;
    --warn-ink:  #fbbf24;
    --warn-soft: #3a2c10;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 16px -6px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 28px 60px -20px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

/* ── База ─────────────────────────────────────────────────────────────── */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--brand-soft);
  color: var(--brand-ink);
  border-radius: 6px;
  padding: 2px 7px;
  white-space: nowrap;
}

.lp-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

.lp-skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg);
  padding: 10px 18px; border-radius: 0 0 10px 0; z-index: 100;
}
.lp-skip:focus { left: 0; }

/* ── Типографика секций ───────────────────────────────────────────────── */

.lp-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--brand-ink);
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
  border-radius: 999px;
  padding: 5px 14px;
  margin: 0 0 18px;
}
.lp-kicker::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--grad);
}

h1, h2, h3 { margin: 0; font-weight: 750; letter-spacing: -0.02em; line-height: 1.12; }

.lp-h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; }

.lp-lead {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 8px;
}

.lp-sec { padding: clamp(56px, 8vw, 104px) 0; scroll-margin-top: 64px; }
.lp-sec--soft { background: var(--bg-soft); }
.lp-center { text-align: center; }
.lp-center .lp-lead { margin-left: auto; margin-right: auto; }

/* ── Кнопки ───────────────────────────────────────────────────────────── */

.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 16px; font-weight: 650;
  border-radius: 999px;
  padding: 13px 26px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
}
.lp-btn:hover { text-decoration: none; transform: translateY(-1px); }

.lp-btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(79, 91, 240, 0.55);
}
.lp-btn--primary:hover { box-shadow: 0 14px 30px -8px rgba(79, 91, 240, 0.65); }

.lp-btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.lp-btn--sm { font-size: 14px; padding: 9px 18px; }

.lp-cta-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

/* ── Шапка ────────────────────────────────────────────────────────────── */

.lp-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.lp-header-in {
  display: flex; align-items: center; gap: 18px;
  height: 64px;
}

.lp-logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 17px; font-weight: 750; letter-spacing: -0.01em;
  color: var(--ink);
  margin-right: auto;
}
.lp-logo:hover { text-decoration: none; }
.lp-logo b {
  font-weight: 750;
  background: var(--grad);
  color: #fff;
  border-radius: 8px;
  padding: 2px 9px;
  font-size: 14px; letter-spacing: 0.06em;
}

.lp-lang {
  display: inline-flex;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  font-size: 13px; font-weight: 650;
}
.lp-lang a {
  padding: 5px 13px; border-radius: 999px; color: var(--muted);
}
.lp-lang a:hover { text-decoration: none; color: var(--ink); }
.lp-lang a.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ── Hero ─────────────────────────────────────────────────────────────── */

.lp-hero {
  position: relative;
  padding: clamp(52px, 7vw, 92px) 0 clamp(40px, 5vw, 64px);
  text-align: center;
  overflow: hidden;
}

.lp-h1 {
  font-size: clamp(34px, 5.6vw, 62px);
  max-width: 820px;
  margin: 0 auto 20px;
}
.lp-h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lp-hero-lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
  max-width: 660px;
  margin: 0 auto;
}

.lp-hero-checks {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px 24px;
  list-style: none; padding: 0;
  margin: 26px 0 0;
  font-size: 14.5px; font-weight: 600; color: var(--muted);
}
.lp-hero-checks li { display: inline-flex; align-items: center; gap: 7px; }
.lp-hero-checks svg { color: var(--ok); flex: none; }

/* сцена с мокапом */
.lp-stage {
  position: relative;
  max-width: 940px;
  margin: clamp(40px, 5vw, 60px) auto 0;
}
.lp-stage::before {
  /* градиентное свечение позади окна */
  content: '';
  position: absolute; inset: -8% -12%;
  background:
    radial-gradient(42% 55% at 28% 30%, color-mix(in srgb, var(--brand) 26%, transparent), transparent 70%),
    radial-gradient(40% 52% at 74% 62%, color-mix(in srgb, var(--brand-2) 24%, transparent), transparent 70%);
  filter: blur(10px);
  z-index: 0;
  animation: kf-blob 16s ease-in-out infinite alternate;
}
@keyframes kf-blob {
  from { transform: translateY(-8px) scale(1); }
  to   { transform: translateY(10px) scale(1.05); }
}

/* ── Мокап окна CRM ───────────────────────────────────────────────────── */

.lp-app {
  position: relative; z-index: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
  font-size: 13.5px;
}

.lp-app-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.lp-app-dots { display: flex; gap: 6px; flex: none; }
.lp-app-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.lp-app-dots i:first-child { background: #f87171; }
.lp-app-dots i:nth-child(2) { background: #fbbf24; }
.lp-app-dots i:last-child  { background: #34d399; }
.lp-app-url {
  flex: 1; max-width: 380px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 16px;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lp-app-url b { color: var(--brand-ink); font-weight: 650; }

.lp-app-body { display: grid; grid-template-columns: 200px 1fr; }

/* сайдбар мокапа */
.lp-app-side {
  border-right: 1px solid var(--line);
  padding: 18px 14px;
  display: flex; flex-direction: column; gap: 4px;
  background: color-mix(in srgb, var(--bg-soft) 55%, var(--surface));
}
.lp-app-biz {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 13.5px;
  margin-bottom: 14px;
}
.lp-app-biz i {
  width: 30px; height: 30px; flex: none;
  border-radius: 9px;
  background: var(--grad);
  color: #fff;
  display: grid; place-items: center;
  font-style: normal; font-weight: 750; font-size: 14px;
}
.lp-app-nav {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 9px;
  color: var(--muted); font-weight: 600;
}
.lp-app-nav svg { flex: none; opacity: 0.85; }
.lp-app-nav.is-on { background: var(--brand-soft); color: var(--brand-ink); }
/* пункты сайдбара — якоря на карточки возможностей */
a.lp-app-nav:hover {
  text-decoration: none;
  background: var(--brand-soft); color: var(--brand-ink);
}

/* основная область мокапа */
.lp-app-main { padding: 18px 20px 20px; position: relative; }

.lp-app-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.lp-app-title { margin: 0; font-weight: 750; font-size: 16px; letter-spacing: -0.01em; }
.lp-app-title small { display: block; font-weight: 550; font-size: 12px; color: var(--faint); }

.lp-bell {
  position: relative;
  width: 34px; height: 34px;
  border: 1px solid var(--line); border-radius: 10px;
  display: grid; place-items: center;
  color: var(--muted);
  background: var(--surface);
}
.lp-bell u {
  position: absolute; top: -5px; right: -5px;
  min-width: 17px; height: 17px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 10.5px; font-weight: 750; font-style: normal; text-decoration: none;
  display: grid; place-items: center;
  animation: kf-badge var(--loop) infinite;
}
@keyframes kf-badge {
  0%, 8%    { transform: scale(0); }
  12%       { transform: scale(1.25); }
  15%, 93%  { transform: scale(1); }
  98%, 100% { transform: scale(0); }
}

/* мини-KPI */
.lp-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.lp-kpi {
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 10px 12px;
  background: var(--surface);
}
.lp-kpi small { display: block; font-size: 11px; font-weight: 600; color: var(--faint); }
.lp-kpi-num { font-size: 18px; font-weight: 750; letter-spacing: -0.02em; }

/* кросс-фейд числа: два значения одно поверх другого.
   Базовое состояние (reduced-motion) = финальное значение v2. */
.lp-swap { display: inline-grid; }
.lp-swap > * { grid-area: 1 / 1; white-space: nowrap; }
.lp-swap .v1 { opacity: 0; animation: kf-swap1 var(--loop) infinite; }
.lp-swap .v2 { animation: kf-swap2 var(--loop) infinite; }
@keyframes kf-swap1 {
  0%, 48%   { opacity: 1; }
  52%, 94%  { opacity: 0; }
  98%, 100% { opacity: 1; }
}
@keyframes kf-swap2 {
  0%, 48%   { opacity: 0; }
  52%, 94%  { opacity: 1; }
  98%, 100% { opacity: 0; }
}

/* расписание */
.lp-sched { display: flex; flex-direction: column; gap: 8px; }
.lp-row {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 9px 12px;
  background: var(--surface);
}
.lp-row time {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--brand-ink);
  background: var(--brand-soft);
  border-radius: 7px; padding: 3px 8px;
  flex: none;
}
.lp-row-info { flex: 1; min-width: 0; line-height: 1.3; }
.lp-row-info b { display: block; font-weight: 700; font-size: 13.5px; }
.lp-row-info span { font-size: 12px; color: var(--faint); }

.lp-chip {
  flex: none;
  font-size: 11.5px; font-weight: 700;
  border-radius: 999px; padding: 4px 11px;
  white-space: nowrap;
}
.lp-chip--ok   { background: var(--ok-soft);   color: var(--ok-ink); }
.lp-chip--wait { background: var(--warn-soft); color: var(--warn-ink); }

/* «прилетающая» запись: скелетон ↔ контент, без сдвига раскладки */
.lp-row--new { display: grid; position: relative; animation: kf-newrow var(--loop) infinite; }
@keyframes kf-newrow {
  0%, 9%    { border-style: dashed; }
  10%, 97%  { border-style: solid; }
  98%, 100% { border-style: dashed; }
}
.lp-row--new > div { grid-area: 1 / 1; display: flex; align-items: center; gap: 12px; }

.lp-row-skel { opacity: 0; animation: kf-skel var(--loop) infinite; }
.lp-row-skel i {
  height: 12px; border-radius: 6px;
  background: var(--bg-soft);
}
.lp-row-skel .s1 { width: 46px; height: 20px; border-radius: 7px; }
.lp-row-skel .s2 { flex: 1; max-width: 180px; }
.lp-row-skel .s3 { width: 70px; height: 20px; border-radius: 999px; margin-left: auto; }
@keyframes kf-skel {
  0%       { opacity: 1; }
  5%       { opacity: 0.4; }
  9%       { opacity: 1; }
  12%, 95% { opacity: 0; }
  100%     { opacity: 1; }
}

.lp-row-real { animation: kf-real var(--loop) infinite; }
@keyframes kf-real {
  0%, 10%   { opacity: 0; transform: translateX(10px); }
  14%, 94%  { opacity: 1; transform: none; }
  99%, 100% { opacity: 0; transform: translateX(10px); }
}

/* статус новой записи: «новая» → «подтверждена» */
.lp-chip-swap { display: inline-grid; flex: none; margin-left: auto; }
.lp-chip-swap > * { grid-area: 1 / 1; margin-left: 0; }
.lp-chip-swap .lp-chip--wait { opacity: 0; animation: kf-chipwait var(--loop) infinite; }
.lp-chip-swap .lp-chip--ok   { animation: kf-chipok var(--loop) infinite; }
@keyframes kf-chipwait {
  0%, 10%   { opacity: 0; }
  14%, 42%  { opacity: 1; }
  46%, 100% { opacity: 0; }
}
@keyframes kf-chipok {
  0%, 42%   { opacity: 0; transform: scale(0.8); }
  48%, 94%  { opacity: 1; transform: scale(1); }
  99%, 100% { opacity: 0; }
}

/* тост «новая запись» поверх окна */
.lp-toast {
  position: absolute; top: 14px; right: 16px; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 10px 14px;
  font-size: 12.5px; line-height: 1.35;
  max-width: 250px;
  animation: kf-toast var(--loop) infinite;
}
.lp-toast i {
  width: 30px; height: 30px; flex: none;
  border-radius: 9px;
  background: var(--brand-soft); color: var(--brand-ink);
  display: grid; place-items: center; font-style: normal;
}
.lp-toast b { display: block; font-size: 12.5px; color: var(--ink); }
.lp-toast span { color: var(--faint); font-size: 11.5px; }
@keyframes kf-toast {
  0%, 3%    { opacity: 0; transform: translateY(-10px); }
  7%, 32%   { opacity: 1; transform: none; }
  38%, 100% { opacity: 0; transform: translateY(-10px); }
}

/* плавающий бейдж ИИ у мокапа */
.lp-float-ai {
  position: absolute; z-index: 2;
  left: clamp(-14px, -1vw, 0px); bottom: 34px;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--dark-panel); color: var(--dark-ink);
  border: 1px solid var(--dark-line);
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  padding: 9px 16px;
  font-size: 13px; font-weight: 650;
  animation: kf-float 6s ease-in-out infinite alternate;
}
.lp-float-ai:hover { text-decoration: none; }
.lp-float-ai i {
  width: 8px; height: 8px; flex: none; border-radius: 50%;
  background: var(--ok);
  animation: kf-pulse 2.2s infinite;
}
@keyframes kf-float { from { transform: translateY(0); } to { transform: translateY(-10px); } }
@keyframes kf-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45); }
  70%  { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ── Бегущая строка ниш ───────────────────────────────────────────────── */

.lp-marquee {
  border-block: 1px solid var(--line);
  padding: 16px 0;
  overflow: hidden;
  background: var(--surface);
}
.lp-marquee-track {
  display: flex; gap: 12px; width: max-content;
  animation: kf-marquee 36s linear infinite;
}
.lp-marquee span {
  flex: none;
  font-size: 13.5px; font-weight: 650; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 18px;
  background: var(--bg);
}
@keyframes kf-marquee { to { transform: translateX(-50%); } }

/* ── Шаги ─────────────────────────────────────────────────────────────── */

.lp-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 40px;
  counter-reset: step;
  text-align: left;
}
.lp-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 26px 24px 24px;
}
.lp-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: inline-grid; place-items: center;
  font-size: 13px; font-weight: 750;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad); color: #fff;
  margin-bottom: 14px;
}
.lp-step h3 { font-size: 18px; margin-bottom: 8px; }
.lp-step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ── Возможности ──────────────────────────────────────────────────────── */

.lp-feats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 40px;
  text-align: left;
}
.lp-feat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  scroll-margin-top: 84px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.lp-feat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.lp-feat-ic {
  width: 44px; height: 44px;
  border-radius: 13px;
  background: var(--brand-soft); color: var(--brand-ink);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.lp-feat h3 { font-size: 17px; margin-bottom: 7px; }
.lp-feat p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ── Use-cases ────────────────────────────────────────────────────────── */

.lp-cases {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  margin-top: 40px;
  text-align: left;
}
.lp-case {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.lp-case-body { padding: 22px 24px 24px; }
.lp-case-tag {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--brand-ink);
  margin-bottom: 8px;
}
.lp-case-body h3 { font-size: 19px; margin-bottom: 8px; }
.lp-case-body p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* общая сцена виньетки */
.lp-scene {
  position: relative;
  background:
    radial-gradient(80% 90% at 70% 0%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 70%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 24px;
  min-height: 218px;
  display: grid; place-items: center;
  overflow: hidden;
  font-size: 13px;
}
.lp-scene-card {
  width: 100%; max-width: 330px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
}

/* — сцена 1: салон, выбор слота — */
.sc-svc {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font-weight: 700; font-size: 13.5px;
  padding-bottom: 10px; margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.sc-svc span { font-weight: 550; color: var(--faint); font-size: 12px; white-space: nowrap; }
.sc-slots { display: flex; gap: 8px; }
.sc-slot {
  flex: 1; text-align: center;
  font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--line); border-radius: 9px;
  padding: 8px 4px;
  color: var(--muted);
  background: var(--surface);
}
.sc-slot--pick {
  /* базовое состояние = выбран (финальный кадр для reduced-motion) */
  background-color: var(--brand); border-color: var(--brand); color: #fff;
  animation: kf-pick var(--scene) infinite;
}
@keyframes kf-pick {
  0%, 20%  { background-color: var(--surface); border-color: var(--line); color: var(--muted); }
  30%, 96% { background-color: var(--brand);   border-color: var(--brand); color: #fff; }
  100%     { background-color: var(--surface); border-color: var(--line); color: var(--muted); }
}
.sc-booked {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px;
  background: var(--ok-soft); color: var(--ok-ink);
  border-radius: 9px; padding: 8px 12px;
  font-weight: 700; font-size: 12.5px;
  animation: kf-rise var(--scene) infinite;
}
.sc-booked svg { flex: none; }
@keyframes kf-rise {
  0%, 48%  { opacity: 0; transform: translateY(8px); }
  56%, 94% { opacity: 1; transform: none; }
  100%     { opacity: 0; transform: translateY(8px); }
}

/* — сцена 2: клиника, карточка клиента — */
.sc-client {
  display: flex; align-items: center; gap: 11px;
  padding-bottom: 10px; margin-bottom: 11px;
  border-bottom: 1px solid var(--line);
}
.sc-ava {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: grid; place-items: center;
  font-weight: 750; font-size: 12.5px; font-style: normal;
}
.sc-client b { display: block; font-size: 13.5px; line-height: 1.25; }
.sc-client small { color: var(--faint); font-size: 11.5px; }
.sc-visits { margin-left: auto; }
.sc-visits.lp-swap .v1 { animation-duration: var(--scene); }
.sc-visits.lp-swap .v2 { animation-duration: var(--scene); }
.sc-hist { display: flex; flex-direction: column; gap: 7px; }
.sc-visit {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 12.5px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 11px;
}
.sc-visit b { color: var(--ink); font-weight: 650; }
.sc-visit time { color: var(--faint); font-family: var(--mono); font-size: 11px; }
.sc-visit--new {
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
  background: var(--brand-soft);
  animation: kf-visit var(--scene) infinite;
}
.sc-visit--new b { color: var(--brand-ink); }
@keyframes kf-visit {
  0%, 34%  { opacity: 0; transform: translateY(-7px); }
  44%, 95% { opacity: 1; transform: none; }
  100%     { opacity: 0; transform: translateY(-7px); }
}

/* — сцена 3: фитнес, заполняемость группы — */
.sc-class {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font-weight: 700; font-size: 13.5px;
  margin-bottom: 12px;
}
.sc-class span { font-weight: 550; color: var(--faint); font-size: 12px; }
.sc-cap { margin-bottom: 10px; }
.sc-cap-top {
  display: flex; justify-content: space-between;
  font-size: 12px; font-weight: 600; color: var(--muted);
  margin-bottom: 7px;
}
.sc-cap-top .lp-swap .v1 { animation-duration: var(--scene); }
.sc-cap-top .lp-swap .v2 { animation-duration: var(--scene); }
.sc-bar {
  height: 9px; border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
}
.sc-bar i {
  display: block; height: 100%; border-radius: 999px;
  background: var(--grad);
  width: 88%;
  animation: kf-bar var(--scene) infinite;
}
@keyframes kf-bar {
  0%, 12%  { width: 37%; }
  62%, 96% { width: 88%; }
  100%     { width: 37%; }
}
.sc-full {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--warn-soft); color: var(--warn-ink);
  border-radius: 999px; padding: 5px 12px;
  font-weight: 700; font-size: 11.5px;
  animation: kf-rise var(--scene) infinite;
}

/* — сцена 4: автосервис, заказ-наряд — */
.sc-order { display: flex; flex-direction: column; gap: 7px; }
.sc-line {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 12.5px; color: var(--muted);
}
.sc-line b { color: var(--ink); font-weight: 650; }
.sc-line data { font-family: var(--mono); font-size: 12px; color: var(--ink); }
.sc-line--a1 { animation: kf-line1 var(--scene) infinite; }
.sc-line--a2 { animation: kf-line2 var(--scene) infinite; }
.sc-line--a3 { animation: kf-line3 var(--scene) infinite; }
@keyframes kf-line1 {
  0%, 6%   { opacity: 0; transform: translateX(-8px); }
  13%, 96% { opacity: 1; transform: none; }
  100%     { opacity: 0; }
}
@keyframes kf-line2 {
  0%, 18%  { opacity: 0; transform: translateX(-8px); }
  25%, 96% { opacity: 1; transform: none; }
  100%     { opacity: 0; }
}
@keyframes kf-line3 {
  0%, 30%  { opacity: 0; transform: translateX(-8px); }
  37%, 96% { opacity: 1; transform: none; }
  100%     { opacity: 0; }
}
.sc-total {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line);
  margin-top: 5px; padding-top: 10px;
  font-weight: 750; font-size: 13.5px;
}
.sc-total data { font-family: var(--mono); }
.sc-total .lp-swap .v1 { animation-duration: var(--scene); }
.sc-total .lp-swap .v2 { animation-duration: var(--scene); }
.sc-paid {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ok-soft); color: var(--ok-ink);
  border-radius: 999px; padding: 4px 11px;
  font-weight: 750; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
  animation: kf-stamp var(--scene) infinite;
}
@keyframes kf-stamp {
  0%, 58%  { opacity: 0; transform: scale(1.5) rotate(-8deg); }
  66%, 95% { opacity: 1; transform: scale(1) rotate(-3deg); }
  100%     { opacity: 0; }
}

/* ── Блок ИИ-ассистента ───────────────────────────────────────────────── */

.lp-ai {
  background: var(--dark-panel);
  color: var(--dark-ink);
  border-radius: calc(var(--r-lg) + 6px);
  overflow: hidden;
  position: relative;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(32px, 5vw, 56px);
}
.lp-ai::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(55% 80% at 100% 0%, rgba(139, 92, 246, 0.28), transparent 65%),
    radial-gradient(50% 70% at 0% 100%, rgba(79, 91, 240, 0.30), transparent 65%);
  pointer-events: none;
}
.lp-ai > * { position: relative; }
.lp-ai .lp-kicker {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #cdd3ff;
}
.lp-ai .lp-h2 { color: #fff; }
.lp-ai-copy > p { color: var(--dark-muted); font-size: 16px; max-width: 460px; }
.lp-ai-copy a { color: #b9c2ff; }
.lp-ai-points {
  list-style: none; padding: 0; margin: 18px 0 0;
  display: flex; flex-direction: column; gap: 10px;
  color: var(--dark-ink); font-size: 15px; font-weight: 550;
}
.lp-ai-points li { display: flex; align-items: center; gap: 10px; }
.lp-ai-points svg { color: #7ee2b8; flex: none; }
.lp-ai .lp-cta-row { justify-content: flex-start; }
.lp-ai .lp-btn--ghost {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* чат-мокап */
.lp-chat {
  align-self: center;
  background: var(--dark-panel-2);
  border: 1px solid var(--dark-line);
  border-radius: var(--r-lg);
  padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 13.5px; line-height: 1.45;
  box-shadow: var(--shadow-lg);
}
.lp-chat-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 12px; margin-bottom: 4px;
  border-bottom: 1px solid var(--dark-line);
  font-weight: 700; font-size: 13px;
}
.lp-chat-head i {
  width: 30px; height: 30px; flex: none; border-radius: 9px;
  background: var(--grad); color: #fff;
  display: grid; place-items: center; font-style: normal; font-weight: 750;
}
.lp-chat-head small { display: block; font-weight: 550; color: #7ee2b8; font-size: 11px; }

.lp-msg {
  max-width: 85%;
  border-radius: 14px;
  padding: 9px 13px;
}
.lp-msg--in  {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border-bottom-left-radius: 4px;
}
.lp-msg--out {
  align-self: flex-end;
  background: var(--grad); color: #fff;
  border-bottom-right-radius: 4px;
}
.lp-msg--m1 { animation: kf-msg1 var(--chat) infinite; }
.lp-msg--m2 { animation: kf-msg2 var(--chat) infinite; }
.lp-msg--m3 { animation: kf-msg3 var(--chat) infinite; }
.lp-msg--m4 { animation: kf-msg4 var(--chat) infinite; }
@keyframes kf-msg1 {
  0%, 3%   { opacity: 0; transform: translateY(8px); }
  8%, 96%  { opacity: 1; transform: none; }
  100%     { opacity: 0; }
}
@keyframes kf-msg2 {
  0%, 30%  { opacity: 0; transform: translateY(8px); }
  36%, 96% { opacity: 1; transform: none; }
  100%     { opacity: 0; }
}
@keyframes kf-msg3 {
  0%, 52%  { opacity: 0; transform: translateY(8px); }
  58%, 96% { opacity: 1; transform: none; }
  100%     { opacity: 0; }
}
@keyframes kf-msg4 {
  0%, 74%  { opacity: 0; transform: translateY(8px); }
  80%, 96% { opacity: 1; transform: none; }
  100%     { opacity: 0; }
}

.lp-typing {
  align-self: flex-start;
  display: flex; gap: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px; border-bottom-left-radius: 4px;
  padding: 12px 14px;
  opacity: 0;
  animation: kf-typing-wrap var(--chat) infinite;
}
.lp-typing i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--dark-muted);
  animation: kf-typing-dot 1s infinite;
}
.lp-typing i:nth-child(2) { animation-delay: 0.18s; }
.lp-typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes kf-typing-wrap {
  0%, 12%   { opacity: 0; }
  16%, 30%  { opacity: 1; }
  34%, 58%  { opacity: 0; }
  62%, 74%  { opacity: 1; }
  78%, 100% { opacity: 0; }
}
@keyframes kf-typing-dot {
  0%, 100% { transform: translateY(0);    opacity: 0.5; }
  40%      { transform: translateY(-4px); opacity: 1; }
}

/* ── Безопасность ─────────────────────────────────────────────────────── */

.lp-secure {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 36px;
  text-align: left;
}
.lp-secure-item {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface);
  padding: 18px;
}
.lp-secure-item svg { color: var(--brand-ink); margin-bottom: 10px; }
.lp-secure-item h3 { font-size: 15px; margin-bottom: 5px; }
.lp-secure-item p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ── Финальный CTA ────────────────────────────────────────────────────── */

.lp-final {
  position: relative;
  background: var(--grad);
  border-radius: calc(var(--r-lg) + 6px);
  color: #fff;
  text-align: center;
  padding: clamp(40px, 6vw, 72px) var(--pad);
  overflow: hidden;
}
.lp-final::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(60% 90% at 50% -10%, rgba(255, 255, 255, 0.22), transparent 60%);
  pointer-events: none;
}
.lp-final > * { position: relative; }
.lp-final .lp-h2 { color: #fff; }
.lp-final p { color: rgba(255, 255, 255, 0.86); max-width: 560px; margin: 0 auto; font-size: 17px; }
.lp-final .lp-btn--primary {
  background: #fff; color: var(--brand-ink);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.35);
}
.lp-final .lp-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff; box-shadow: none;
}
.lp-final-note { margin-top: 22px; font-size: 14px; }
.lp-final-note code { background: rgba(255, 255, 255, 0.15); color: #fff; }

/* ── Подвал ───────────────────────────────────────────────────────────── */

.lp-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 40px;
  font-size: 14px; color: var(--faint);
}
.lp-footer .lp-wrap {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px;
}
.lp-footer p { margin: 0; margin-right: auto; }
.lp-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.lp-footer a { color: var(--muted); }
.lp-footer a:hover { color: var(--ink); }

/* ── Адаптив ──────────────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .lp-feats, .lp-steps { grid-template-columns: repeat(2, 1fr); }
  .lp-secure { grid-template-columns: repeat(2, 1fr); }
  .lp-ai { grid-template-columns: 1fr; }
  .lp-chat { max-width: 480px; width: 100%; justify-self: center; }
}

@media (max-width: 720px) {
  .lp-cases { grid-template-columns: 1fr; }
  .lp-app-body { grid-template-columns: 1fr; }
  .lp-app-side { display: none; }
  .lp-kpis { gap: 8px; }
  .lp-kpi { padding: 8px 10px; }
  .lp-kpi-num { font-size: 15px; }
  .lp-float-ai { position: static; margin: 14px auto 0; animation: none; width: fit-content; }
  .lp-toast { max-width: 210px; }
}

@media (max-width: 560px) {
  .lp-feats, .lp-steps, .lp-secure { grid-template-columns: 1fr; }
  .lp-header-in { gap: 10px; }
  .lp-header .lp-btn { display: none; }
  .lp-row-info span { display: none; }
  .lp-app-url { font-size: 10.5px; }
  .lp-hero-checks { flex-direction: column; align-items: center; gap: 8px; }
}

/* ── Reduced motion: гасим всё, остаются осмысленные статичные кадры ──── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  /* элементы, спрятанные в базовом состоянии, при выключенной анимации не нужны */
  .lp-row-skel, .lp-chip-swap .lp-chip--wait, .lp-swap .v1, .lp-typing { display: none; }
}
