/* Лендинг lidvanto. Цвета модулей те же, что в CRM: Telegram CRM — бирюзовый, трекер — янтарный,
   реклама — розовый, ИИ — фиолетовый. Заголовки — Unbounded, текст и макеты продукта — Inter. */

@font-face {
  font-family: "Unbounded";
  src: url("fonts/unbounded-cyrillic.3a5ed4d11365.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  src: url("fonts/unbounded-latin.8616dc355070.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../crm_public/fonts/inter/inter-cyrillic.7af197bf2ea6.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  src: url("../crm_public/fonts/inter/inter-latin.4b73e2ff3024.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Палитра CRM: графит сайдбара, нейтральные серые рабочей области, чёрные кнопки. */
  --ink: #1a1a1a;
  --ink-2: #262626;
  --ink-3: #303030;
  --paper: #f1f1f1;
  --card: #ffffff;
  --line: #e3e3e3;
  --text: #303030;
  --muted: #616161;
  --crm: #0891b2;
  --tracker: #d97706;
  --ads: #e11d48;
  --ai: #7c3aed;
  --good: #16a34a;
  --bad: #dc2626;
  --display: "Unbounded", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .9, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body.lp {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ui-focus, #005bd3); outline-offset: 3px; border-radius: 6px; }

.lp-wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }

/* --- Кнопки ------------------------------------------------------------------ */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: 600 14.5px/1 var(--body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.lp-btn:hover { transform: translateY(-1px); }
.lp-btn--lg { height: 52px; padding: 0 24px; border-radius: 14px; font-size: 16px; }
.lp-btn--primary { background: #303030; color: #fff; }
.lp-btn--primary:hover { background: #1a1a1a; }
/* На графитовых блоках основная кнопка светлая — как белая кнопка на тёмных карточках CRM. */
:is(.lp-header, .lp-hero, .lp-final) .lp-btn--primary { background: #fff; color: #1a1a1a; }
:is(.lp-header, .lp-hero, .lp-final) .lp-btn--primary:hover { background: #ebebeb; }
.lp-btn--ghost { color: inherit; }
.lp-btn--ghost:hover { background: rgba(255, 255, 255, .08); }
.lp-btn--light { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; }
.lp-btn--light:hover { background: rgba(255, 255, 255, .14); }
/* --- Шапка ------------------------------------------------------------------- */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(26, 26, 26, .96);
  color: #fff;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.lp-header__inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.lp-logo { display: inline-flex; align-items: center; gap: 10px; font: 700 18px/1 var(--display); letter-spacing: -.01em; text-decoration: none; }
.lp-nav { display: flex; gap: 4px; margin-right: auto; }
.lp-nav a { padding: 8px 12px; border-radius: 10px; color: rgba(255, 255, 255, .72); font-size: 14.5px; text-decoration: none; transition: color .2s, background-color .2s; }
.lp-nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.lp-header__actions { display: flex; gap: 8px; }

/* --- Первый экран ------------------------------------------------------------ */
.lp-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .07) 1px, transparent 0) 0 0 / 28px 28px,
    var(--ink);
  color: #fff;
}
.lp-hero__copy { display: grid; justify-items: center; text-align: center; }
.lp-hero__title {
  margin: 0;
  max-width: 16em;
  font: 800 clamp(34px, 4.6vw, 60px)/1.06 var(--display);
  letter-spacing: -.03em;
  text-wrap: balance;
}
.lp-nowrap { white-space: nowrap; } /* «соло-арбитражников» не рвём по дефису */
@media (max-width: 560px) { .lp-nowrap { white-space: normal; } } /* на телефоне слово шире экрана — пусть переносится */
.lp-hero__lead { max-width: 34em; margin: 22px 0 0; color: rgba(255, 255, 255, .74); font-size: 18px; line-height: 1.55; }
.lp-hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.lp-hero__facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin: 24px 0 0; padding: 0; list-style: none; color: rgba(255, 255, 255, .62); font-size: 14px; }
.lp-hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.lp-hero__facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #34d399; }

/* Демо: вкладки с прогрессом и окно продукта */
.lp-demo { position: relative; margin-top: 56px; }
.lp-demo__tabs { display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.lp-demo__tabs::-webkit-scrollbar { display: none; }
.lp-demo__tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 11px;
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .7);
  font: 600 13.5px/1 var(--body);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.lp-demo__tab:hover { color: #fff; }
.lp-demo__tab[aria-selected="true"] { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); color: #fff; }
.lp-demo__tab-icon { display: inline-flex; width: 16px; height: 16px; }
.lp-demo__tab-icon svg { width: 16px; height: 16px; fill: currentColor; }
.lp-demo__progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: #fff; }
.lp-demo__tab[aria-selected="true"] .lp-demo__progress { animation: lp-progress var(--tab-dur, 8s) linear forwards; }
@keyframes lp-progress { to { width: 100%; } }

.lp-window {
  position: relative;
  /* Окно целиком влезает в экран под шапкой: ширина ограничена высотой (пропорции холста 1200×760) */
  max-width: min(100%, calc((100svh - 140px) * var(--lp-ratio, 1.579)));
  margin-inline: auto;
  border-radius: 18px;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .06);
  overflow: hidden;
}
.lp-window__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #1a1a1a; }
.lp-window__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3a; }
.lp-window__bar span { margin-left: 10px; color: #8f8f8f; font-size: 12px; }

/* --- Движок сцен: шаги появляются по своему времени (landing.js) -------------- */
.lp-scene { position: relative; }
.lp-scene [data-at]:not([data-count]) {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.lp-scene [data-at].is-on { opacity: 1; transform: none; }
.lp-scene [data-anim="drop"] { transform: translateY(-14px); }
.lp-scene [data-anim="pop"] { transform: scale(.7); }
.lp-scene [data-anim="rise"] { transform: translateY(16px); }
.lp-scene [data-anim="fill"]:not([data-count]) { opacity: 1; width: 0; transform: none; transition: width var(--dur, 1.6s) var(--ease); }
.lp-scene [data-anim="fill"].is-on { width: var(--to); }
.lp-swap-flash { animation: lp-flash .7s var(--ease); }
@keyframes lp-flash { 0% { transform: scale(.85); } 60% { transform: scale(1.08); } 100% { transform: none; } }
.lp-scene.is-static [data-at] { transition: none !important; }

/* --- Макеты продукта: настоящие экраны CRM --------------------------------------
   Разметка и стили — из самой CRM (ui.css, crm_sidebar.css). Здесь только оболочка окна,
   масштаб под ширину экрана и то, чего нет в дизайн-системе (мессенджер, шаги автозалива). */
.lp-shot { position: relative; overflow: hidden; }
.lp-shot__canvas { width: calc(var(--w, 1200) * 1px); zoom: var(--z, .6); }
.lp-app { display: grid; grid-template-columns: 248px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: 760px; background: #1a1a1a; text-align: left; }
.lp-app__sidebar.crm-sidebar { position: relative; top: auto; z-index: auto; height: 100%; width: 248px; overflow: hidden; transform: none; }
.lp-app__sidebar .crm-sidebar__inner { height: 100%; }
.lp-app img.crm-sidebar__group-logo { display: inline-block; }
.lp-app .crm-sidebar__brand-logo { display: inline-block; }
.lp-app__sidebar .crm-sidebar__search[hidden] { display: flex; }
.lp-app__fake-input { display: flex; align-items: center; color: var(--ui-text-subdued, #8f8f8f); }
.lp-app__sidebar .lp-app__fake-input { color: var(--sb-muted); font-size: 13px; }
.lp-app__user { display: flex; align-items: center; gap: 10px; padding: 10px 8px 2px; }
.lp-app__user-ava { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #34d399; color: #064e3b; font: 700 11px/1 var(--ui-font); }
.lp-app__user-text { display: grid; color: var(--sb-text); font-size: 12.5px; line-height: 1.25; }
.lp-app__user-text small { color: var(--sb-muted); font-size: 11.5px; }
.lp-app__main { position: relative; min-width: 0; height: 100%; overflow: hidden; border-radius: 12px 0 0 12px; background: var(--ui-bg); }
.lp-panel { height: 100%; }
.lp-panel[hidden] { display: none; }
.lp-page { position: relative; height: 100%; overflow: hidden; }
.lp-frame .lp-page { height: auto; padding-bottom: 24px; }
.lp-frame .lp-page:has(> .lp-toast) { padding-bottom: 76px; }
.lp-frame { border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -36px rgba(26, 26, 26, .5); }

.lp-page .ui-table td, .lp-page .ui-table th { white-space: nowrap; }
.lp-page .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.lp-roi { color: var(--ui-success-text, #15803d); font-weight: 700; }
.lp-roi--low { color: var(--ui-critical-text, #b91c1c); }
.lp-row-hot { transition: background-color .4s; }
.lp-row-hot.is-done td { background: color-mix(in srgb, var(--ui-success-surface, #dcfce7) 55%, #fff); }
.lp-row-new.is-on td { animation: lp-row-flash 1.8s var(--ease); }
@keyframes lp-row-flash { from { background: color-mix(in srgb, var(--ui-success-surface, #dcfce7) 70%, #fff); } }
.lp-card-gap { margin-top: 16px; }
.lp-muted { color: var(--ui-text-subdued); font-size: 12.5px; }
.lp-muted b { color: var(--ui-text-strong); font-variant-numeric: tabular-nums; }
.lp-saved { color: var(--ui-text-subdued); font-size: 12.5px; }
.lp-saved b { color: var(--ui-success-text); font-size: 15px; font-variant-numeric: tabular-nums; }
.lp-count { min-width: 28px; padding: 2px 8px; border-radius: 999px; background: var(--ui-neutral-surface); color: var(--ui-text-strong); font-size: 12px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.lp-fakebtn.is-done { background: var(--ui-success-text, #15803d); border-color: transparent; color: #fff; transform: scale(.97); }
.lp-progress { height: 6px; margin: 12px 16px 8px; border-radius: 999px; background: var(--ui-neutral-surface); overflow: hidden; }
.lp-progress i { display: block; height: 100%; border-radius: inherit; background: var(--ui-section); }
.lp-page .ui-badge.is-swapped { background: var(--ui-success-surface); color: var(--ui-success-text); }

/* Шаги мастера автозалива — как в разделе TikTok Ads */
.lp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.lp-steps li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--ui-radius-card); background: var(--ui-surface); color: var(--ui-text-subdued); font-size: 13px; box-shadow: var(--ui-shadow-card); }
.lp-steps i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ui-border-strong); font-style: normal; font-size: 12px; font-weight: 700; }
.lp-steps li.is-done i { background: var(--ui-success-surface); color: var(--ui-success-text); box-shadow: none; }
.lp-steps li.is-current { color: var(--ui-text-strong); font-weight: 600; box-shadow: var(--ui-shadow-card), inset 0 0 0 1.5px #303030; }
.lp-steps li.is-current i { background: #303030; color: #fff; box-shadow: none; }

/* Мессенджер — настоящая разметка раздела CRM (landing/_messenger.html) на crm-messenger.css + messenger-ui.css.
   Здесь только то, что нужно макету: высота под окно, текст в поле ввода и меню шаблонов над ним. */
.lp-crm, .lp-crm .chat-layout { height: 100%; }
.lp-crm .chat-layout { position: relative; }
.lp-crm .chat-input { position: relative; }
.lp-crm .chat-input .input-with-icon { position: relative; }
.lp-composer-text { position: absolute; top: 50%; left: 14px; translate: 0 -50%; color: var(--ui-text-subdued, #8a8a8a); font-size: 14px; pointer-events: none; }
.lp-composer-text .is-done { display: none; }
.lp-composer-text:has(.lp-composer-typed.is-on:not(.is-done)) .lp-composer-ph { display: none; }
.lp-composer-typed { color: var(--ui-text-strong, #303030); }
.lp-composer-typed.is-typing::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 1px; background: currentColor; vertical-align: -2px; animation: lp-caret .8s steps(1) infinite; }
.lp-crm .lp-slash { position: absolute; left: 16px; right: 72px; bottom: calc(100% - 6px); z-index: 5; display: block; }
.lp-scene .lp-slash.is-done { opacity: 0; transform: translateY(6px); }
.lp-crm .lp-toast { bottom: 96px; }
/* В CRM названия воронок длинные и этапы всегда встают отдельной строкой — фиксируем этот вид. */
.lp-crm .system-message-text { flex-basis: 100%; }

/* Медиатека креативов */
.lp-media { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 14px 16px 16px; }
.lp-media__item { display: grid; gap: 8px; margin: 0; }
.lp-media__thumb { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 10px; background: linear-gradient(160deg, hsl(var(--h) 80% 70%), hsl(calc(var(--h) + 40) 70% 45%)); overflow: hidden; }
.lp-media__thumb::before { content: ""; position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: rgba(255, 255, 255, .88) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l8 5-8 5z' fill='%23303030'/%3E%3C/svg%3E") 55% 50% / 16px no-repeat; }
.lp-media__thumb i { position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: 6px; background: rgba(0, 0, 0, .5); color: #fff; font-size: 11px; font-style: normal; font-weight: 600; }
.lp-media__item.is-done .lp-media__thumb { animation: lp-shimmer .6s var(--ease); }
@keyframes lp-shimmer { 50% { filter: brightness(1.25) saturate(1.2); } }
.lp-media__item figcaption { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12.5px; }
.lp-media__item figcaption b { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }

/* Чекбокс-шаги автоворонки: галочка появляется, когда шаг пройден */
.lp-scene .lp-checklist .ui-checklist__item:not(.is-done) .ui-checklist__mark svg { opacity: 0; }
.lp-checklist .ui-checklist__item { transition: opacity .3s; }
.lp-scene .lp-checklist .ui-checklist__item:not(.is-done) { opacity: .55; }

/* ИИ-помощник */
.lp-ai { display: flex; flex-direction: column; min-height: 300px; }
.lp-ai__feed { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 16px; }
.lp-ai__q { align-self: flex-end; max-width: 80%; margin: 0; padding: 10px 14px; border-radius: 14px; background: #2b2b2b; color: #fff; font-size: 13.5px; line-height: 1.45; }
.lp-ai__q.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; background: currentColor; vertical-align: -2px; animation: lp-caret .8s steps(1) infinite; }
.lp-ai__a { align-self: flex-start; max-width: 86%; padding: 12px 14px; border-radius: 14px; background: var(--ui-surface-subdued, #f7f7f7); box-shadow: 0 0 0 1px var(--ui-border); }
.lp-ai__a p { margin: 0; font-size: 13.5px; }
.lp-ai__actions { display: flex; gap: 8px; margin-top: 10px; }
.lp-ai__done { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin: 0; color: var(--ui-success-text); font-size: 13px; font-weight: 600; }
.lp-ai__done svg { width: 14px; height: 14px; }
.lp-ai__composer { display: flex; gap: 10px; padding: 12px 16px 16px; border-top: 1px solid var(--ui-divider); }
.lp-ai__composer .ui-input { flex: 1; height: 40px; padding: 0 12px; }
.lp-typing { display: inline-flex; gap: 4px; align-self: flex-start; margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--ui-surface-subdued, #f2f2f2); box-shadow: 0 0 0 1px var(--ui-border); }
.lp-typing i { width: 6px; height: 6px; border-radius: 50%; background: #9a9a9a; animation: lp-dots 1s infinite; }
.lp-typing i:nth-child(2) { animation-delay: .15s; }
.lp-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes lp-dots { 50% { transform: translateY(-4px); opacity: .5; } }
.lp-typing.is-done { display: none; }

/* Тосты в макетах — как ui-toast в CRM */
.lp-toast {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 12px;
  background: #1f1f1f;
  color: #fff;
  font: 500 13.5px/1.3 var(--ui-font);
  white-space: nowrap;
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .6);
  translate: -50% 0;
}
.lp-toast--good::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .2); }
.lp-toast__icon { display: inline-flex; width: 16px; height: 16px; color: #fda4af; }
.lp-toast__icon svg { width: 16px; height: 16px; fill: currentColor; }
.lp-good { color: var(--ui-success-text, #15803d); }
.lp-brand { display: inline-flex; width: 18px; height: 18px; }
.lp-brand svg { width: 100%; height: 100%; }
@keyframes lp-caret { 50% { opacity: 0; } }

/* --- Путь денег ------------------------------------------------------------- */
.lp-flow { padding: 104px 0 96px; }
.lp-h2 { max-width: 20em; margin: 0; font: 800 clamp(30px, 3.6vw, 46px)/1.08 var(--display); letter-spacing: -.025em; color: var(--ink); text-wrap: balance; }
.lp-h3 { margin: 14px 0 0; font: 700 clamp(22px, 2.3vw, 30px)/1.15 var(--display); letter-spacing: -.02em; color: var(--ink); }
.lp-lead { max-width: 40em; margin: 16px 0 0; color: var(--muted); font-size: 17px; }
.lp-flow__track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 56px 0 0; padding: 0; list-style: none; }
.lp-flow__node { position: relative; display: grid; justify-items: center; gap: 6px; padding: 0 10px; text-align: center; }
.lp-flow__node b { margin-top: 10px; color: var(--ink); font-size: 15px; }
.lp-flow__node small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.lp-flow__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--card);
  color: var(--c);
  box-shadow: 0 0 0 1px var(--line), 0 14px 28px -18px rgba(26, 26, 26, .5);
  animation: lp-node 6s var(--ease) infinite;
  animation-delay: calc(var(--i, 0) * 1.1s);
}
.lp-flow__icon svg { width: 28px; height: 28px; fill: currentColor; }
.lp-flow__node:nth-child(1) { --i: 0; }
.lp-flow__node:nth-child(2) { --i: 1; }
.lp-flow__node:nth-child(3) { --i: 2; }
.lp-flow__node:nth-child(4) { --i: 3; }
.lp-flow__node:nth-child(5) { --i: 4; }
@keyframes lp-node {
  0%, 12%, 100% { transform: none; box-shadow: 0 0 0 1px var(--line), 0 14px 28px -18px rgba(26, 26, 26, .5); }
  5% { transform: translateY(-4px) scale(1.06); box-shadow: 0 0 0 2px var(--c), 0 18px 30px -16px var(--c); }
}
/* Линия между шагами: бегущие точки — данные идут дальше по цепочке. */
.lp-flow__node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 31px;
  left: calc(50% + 40px);
  width: calc(100% - 80px);
  height: 3px;
  border-radius: 999px;
  background: radial-gradient(circle, #b5b5b5 1.5px, transparent 2px) 0 50% / 12px 3px repeat-x;
  animation: lp-march 1.2s linear infinite;
}
@keyframes lp-march { to { background-position: 12px 50%; } }
.lp-flow__meters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 52px; border-radius: 18px; background: var(--ink); color: #fff; overflow: hidden; }
.lp-flow__meters div { padding: 20px 22px; }
.lp-flow__meters div + div { border-left: 1px solid rgba(255, 255, 255, .08); }
.lp-flow__meters small { display: block; color: rgba(255, 255, 255, .6); font-size: 13px; }
.lp-flow__meters b { font: 700 26px/1.3 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lp-flow__meters .lp-good { color: #4ade80; }
.lp-flow__meters b.is-bump { animation: lp-bump .5s var(--ease); }
@keyframes lp-bump { 40% { color: #a5f3fc; } }

/* --- Возможности ------------------------------------------------------------ */
.lp-features { padding: 24px 0 64px; }
.lp-feature { padding: 64px 0; }
.lp-feature__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; }
.lp-feature--flip .lp-feature__copy { order: 2; }
.lp-feature__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); }
.lp-feature__icon svg { width: 24px; height: 24px; fill: currentColor; }
.lp-points { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.lp-points li { position: relative; padding-left: 26px; color: var(--text); font-size: 16px; }
.lp-points li::before { content: ""; position: absolute; top: .45em; left: 0; width: 14px; height: 14px; border-radius: 50%; background: color-mix(in srgb, var(--c) 18%, #fff); box-shadow: inset 0 0 0 4px var(--c); }
.lp-feature__soon { display: flex; align-items: center; gap: 8px; margin: 20px 0 0; color: var(--muted); font-size: 14.5px; }
/* --- Тарифы ----------------------------------------------------------------- */
.lp-pricing { padding: 104px 0 88px; }
/* Конструктор тарифа из CRM (plans.css): отступ от заголовка и липкий итог под шапкой лендинга (64px). */
.lp-pricing .pb { margin-top: 40px; }
.lp-pricing .pb-summary { top: calc(var(--pb-summary-top, 16px) + 64px); }
.lp-pricing .pb-layout { scroll-margin-top: 80px; }
/* Базовые стили страницы CRM, на которые опирается конструктор (в CRM их дают base.css и ui.css). */
.lp-pricing .pb { font-family: var(--ui-font, var(--body)); font-size: 13px; line-height: 1.45; }
.lp-pricing .pb [hidden] { display: none !important; }
:where(.lp-pricing .pb) :where(h2, h3, h4) { line-height: 1.2; }
:where(.lp-pricing .pb) :where(svg) { vertical-align: middle; }
:where(.lp-pricing .pb) :where(input, button, select, textarea) { margin: 0; font-family: inherit; font-size: inherit; line-height: inherit; }
/* --- Вопросы ---------------------------------------------------------------- */
.lp-faq { padding: 40px 0 104px; }
.lp-faq__inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; }
.lp-faq__list { display: grid; gap: 10px; }
.lp-faq__more { max-width: 22em; margin: 16px 0 0; color: var(--muted); font-size: 15px; }
.lp-faq details { border-radius: 16px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.lp-faq summary { position: relative; padding: 18px 56px 18px 20px; font-size: 16px; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: ""; position: absolute; top: 50%; right: 22px; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .25s var(--ease); }
.lp-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.lp-faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* --- Финал и подвал --------------------------------------------------------- */
.lp-final { padding: 96px 0; background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .07) 1px, transparent 0) 0 0 / 28px 28px, var(--ink); color: #fff; text-align: center; }
.lp-final__inner { display: grid; justify-items: center; gap: 18px; }
.lp-final__title { max-width: 18em; margin: 0; font: 800 clamp(30px, 4vw, 48px)/1.08 var(--display); letter-spacing: -.025em; text-wrap: balance; }
.lp-final p { margin: 0; color: rgba(255, 255, 255, .7); font-size: 17px; }
.lp-footer { padding: 28px 0; background: var(--ink); color: rgba(255, 255, 255, .6); border-top: 1px solid rgba(255, 255, 255, .06); }
.lp-footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.lp-footer .lp-logo { color: #fff; font-size: 16px; }
.lp-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-right: auto; } /* на телефоне ссылки переносятся, а не растягивают страницу */
.lp-footer nav a { font-size: 14px; text-decoration: none; }
.lp-footer nav a:hover { color: #fff; }

/* --- Адаптив ---------------------------------------------------------------- */
@media (max-width: 1080px) {
  .lp-feature__inner, .lp-faq__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .lp-feature--flip .lp-feature__copy { order: 0; }
    .lp-nav { display: none; }
  .lp-header__actions { margin-left: auto; }
}
@media (max-width: 720px) {
  .lp-wrap { width: min(1200px, 100% - 32px); }
  .lp-hero { padding: 48px 0 64px; }
  .lp-header__actions .lp-btn--ghost { display: none; }
  .lp-demo__tabs { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .lp-demo__tab { justify-content: center; }
  .lp-demo { margin-top: 36px; }
  .lp-flow__track { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .lp-flow__node { grid-template-columns: 64px minmax(0, 1fr); justify-items: start; column-gap: 16px; text-align: left; }
  .lp-flow__icon { grid-row: span 2; }
  .lp-flow__node b { margin-top: 8px; }
  .lp-flow__node:not(:last-child)::after { top: 72px; left: 31px; width: 3px; height: 20px; background: radial-gradient(circle, #b5b5b5 1.5px, transparent 2px) 50% 0 / 3px 8px repeat-y; animation: none; }
  .lp-flow__meters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-flow__meters div:nth-child(odd) { border-left: 0; }
    /* На телефоне макет без меню CRM и уже — иначе экран сжимается до нечитаемого */
  .lp-window { --lp-ratio: 1.281; }
  .lp-window .lp-shot { --lp-w: 820; }
  .lp-frame .lp-shot { --lp-w: 620; }
  .lp-app { grid-template-columns: minmax(0, 1fr); height: 640px; }
  .lp-app__sidebar.crm-sidebar { display: none; }
  .lp-app__main { border-radius: 0; }
}

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