/* ============================================================
   Planetag — лендинг, стили поверх GOS Design System.
   Всё через CSS-переменные gos-ds, минимум хардкода.
   ============================================================ */

:root {
  /* Локальные токены лендинга поверх gos-ds */
  --lp-panel-dark: #0a0f16;
  --lp-browser-red: var(--lp-browser-red);
  --lp-browser-amber: var(--lp-browser-amber);
}

html, body {
  margin: 0; padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Длинные слова — разрешаем разрыв только если иначе никак. Без автодефисов. */
h1, h2, h3 {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}

/* Доступные focus-states — видимые при клавиатурной навигации, скрытые при клике мышью */
:focus { outline: none; }
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
/* Для элементов, где outline-offset неудобен (формы) — box-shadow */
.lp-field input:focus-visible,
.lp-field textarea:focus-visible,
.lp-field select:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Respect `prefers-reduced-motion` — выключаем декоративные анимации */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.lp-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(14px, 3vw, 24px);  /* на узких экранах отступ меньше, чтобы влезли заголовки */
}
.lp-container--narrow { max-width: 840px; }

/* ============ NAV ============ */
/* Sprint 22 v53: явный сброс top:0 и margin-top:0 с !important — на случай если
   у пользователя в кеше осталась старая версия с top:36px (от убранной плашки
   lp-audience-switch). */
.lp-nav {
  position: sticky;
  top: 0 !important;
  margin-top: 0 !important;
  z-index: 130;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px 32px;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
body { padding-top: 0 !important; margin-top: 0 !important; }

/* Sprint 22 v53: акцентный пункт в навигации — кросс-ссылка на параллельный
   лендинг («Генплан посёлков» / «Генплан ЖК»). Заменил собой некрасивую
   тёмную плашку-свитч сверху. */
.lp-nav-link--alt {
  color: var(--accent) !important;
  font-weight: 600;
  padding: 6px 14px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
.lp-nav-link--alt:hover {
  background: var(--accent);
  color: var(--white) !important;
}
.lp-mobile-link--alt {
  color: var(--accent) !important;
  font-weight: 600;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 8px;
}
.lp-nav.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.96);
}
.lp-nav .logo { flex-shrink: 0; }

.lp-nav-links {
  display: flex;
  gap: 6px;
  margin-left: auto;
  margin-right: auto;
}
.lp-nav-links a {
  padding: 8px 14px;
  color: var(--text2);
  font: 500 13px var(--font);
  border-radius: var(--radius-sm);
  transition: all var(--dur-fast) var(--ease-out);
}
.lp-nav-links a:hover { color: var(--accent); background: var(--accent-soft); }

.lp-nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.lp-burger {
  display: none;
  position: relative;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  margin-left: auto;
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast) var(--ease-out);
  z-index: 120;
}
.lp-burger:hover { background: var(--accent-soft); }
.lp-burger-lines {
  position: absolute;
  top: 50%; left: 50%;
  width: 22px;
  height: 16px;
  transform: translate(-50%, -50%);
}
.lp-burger-lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.32s var(--ease-out), opacity 0.2s var(--ease-out), top 0.32s var(--ease-out);
}
.lp-burger-lines span:nth-child(1) { top: 0; }
.lp-burger-lines span:nth-child(2) { top: 7px; }
.lp-burger-lines span:nth-child(3) { top: 14px; }
/* Open state: анимация в крест */
.lp-nav.is-menu-open .lp-burger-lines span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.lp-nav.is-menu-open .lp-burger-lines span:nth-child(2) { opacity: 0; }
.lp-nav.is-menu-open .lp-burger-lines span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* ============ MOBILE MENU (fullscreen) ============ */
.lp-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease-out);
}
.lp-mobile-menu[hidden] { display: none; }
.lp-mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lp-mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 22, 0.58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lp-mobile-menu-panel {
  position: absolute;
  top: 0; right: 0;
  width: min(88vw, 360px);
  height: 100dvh;
  padding: 72px 20px 28px;
  background: var(--white);
  box-shadow: -20px 0 60px -20px rgba(15, 23, 42, 0.2);
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.22, 0.9, 0.28, 1.02);
}
.lp-mobile-menu.is-open .lp-mobile-menu-panel {
  transform: translateX(0);
}

/* Текстовая close-кнопка в самой панели — явный путь выхода */
.lp-mobile-menu-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--panel2);
  border: 0;
  color: var(--text);
  font: 600 13px var(--font);
  cursor: pointer;
  z-index: 2;
}
.lp-mobile-menu-close:hover { background: var(--border); }
.lp-mobile-link {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  min-height: 48px;
  color: var(--text);
  font: 600 16px var(--font);
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.lp-mobile-link:hover,
.lp-mobile-link:active {
  background: var(--accent-soft);
  color: var(--accent);
}
.lp-mobile-menu-actions {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lp-mobile-menu-actions .btn {
  justify-content: center;
  text-align: center;
}

/* ============ HERO ============ */
.lp-hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}
.lp-hero::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at center, var(--accent-soft), transparent 70%);
  z-index: 0;
  pointer-events: none;
  opacity: 0.65;
}
.lp-hero .lp-container {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 11px var(--font);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--white);
}
.lp-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: lp-pulse 2.4s ease-in-out infinite;
}

.lp-hero h1 {
  font: 800 clamp(20px, 3.8vw, 42px) var(--font-h, var(--font));
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0 0 20px;
  color: var(--text);
  text-transform: uppercase;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: manual;
}
.lp-hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.lp-lede {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--text2);
  max-width: 56ch;
  margin: 0 0 36px;
  line-height: 1.55;
}

.lp-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn-lg {
  padding: 14px 26px !important;
  font-size: 15px !important;
  min-height: 48px;
}
.btn-block { width: 100%; justify-content: center; min-height: 44px; }

.lp-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.lp-stat-num {
  font: 800 clamp(24px, 3vw, 36px) var(--font-h, var(--font));
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--text);
}
.lp-stat-num em { color: var(--accent); font-style: normal; }
.lp-stat-k {
  font: 500 11px var(--font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.4;
}

/* Trust-strip — корпоративные сигналы под Hero */
.lp-hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  list-style: none;
  padding: 22px 0 0;
  margin: 28px 0 0;
  border-top: 1px solid var(--border);
}
.lp-hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
/* точка-разделитель между пунктами (кроме последнего) */
.lp-hero-trust li:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -16px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-strong, #d1d6e0);
  transform: translateY(-50%);
}
.lp-hero-trust svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--accent);
  stroke-width: 2.4;
}
.lp-hero-trust span {
  font: 500 12px/1.3 var(--font);
  color: var(--text2);
  letter-spacing: 0;
}
.lp-hero-trust b {
  color: var(--text);
  font: 700 13px/1.2 var(--font);
  letter-spacing: -0.005em;
  margin-right: 4px;
}
/* На десктопе — текст в одну строку (b и описание подряд) */
.lp-hero-trust b::after {
  content: ' ';
}
.lp-hero-trust span br { display: none; }

@media (max-width: 900px) {
  .lp-hero-trust {
    gap: 14px 0;
    padding-top: 18px;
    margin-top: 20px;
    flex-direction: column;
    align-items: flex-start;
  }
  .lp-hero-trust li:not(:last-child)::after { display: none; }
  .lp-hero-trust b { font-size: 13px; }
}

/* ============ Hero visual — анимированное демо виджета ============ */
.lp-hero-visual { position: relative; }

.lp-hero-demo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  isolation: isolate;
}
/* Пауза анимаций когда пользователь навёл курсор — можно разглядеть */
.lp-hero-demo:hover * { animation-play-state: paused !important; }

.lp-hero-plan {
  width: 100%;
  height: 100%;
  display: block;
}

/* ========= Лоты — подсветка по расписанию ========= */
.lp-hero-lot {
  fill: rgba(16, 163, 111, 0.14);
  stroke: #10a36f;
  stroke-width: 1.8;
  vector-effect: non-scaling-stroke;
  transform-origin: center;
  transform-box: fill-box;
}
.lp-hero-lot--reserved {
  fill: rgba(217, 119, 6, 0.16);
  stroke: #d97706;
}

/* Каждый лот «активируется» в свой кусок общего 16-секундного цикла */
.lp-hero-lot--1 { animation: lp-demo-lot-1 16s ease-in-out infinite; }
.lp-hero-lot--2 { animation: lp-demo-lot-2 16s ease-in-out infinite; }
.lp-hero-lot--3 { animation: lp-demo-lot-3 16s ease-in-out infinite; }

@keyframes lp-demo-lot-1 {
  0%, 9%, 26%, 100% {
    fill: rgba(16,163,111,0.14);
    filter: none;
    stroke-width: 1.8;
  }
  12%, 22% {
    fill: rgba(16,163,111,0.38);
    filter: drop-shadow(0 2px 8px rgba(16,163,111,0.5));
    stroke-width: 2.6;
  }
}
@keyframes lp-demo-lot-2 {
  0%, 30%, 50%, 100% {
    fill: rgba(217,119,6,0.16);
    filter: none;
    stroke-width: 1.8;
  }
  34%, 46% {
    fill: rgba(217,119,6,0.38);
    filter: drop-shadow(0 2px 8px rgba(217,119,6,0.5));
    stroke-width: 2.6;
  }
}
@keyframes lp-demo-lot-3 {
  0%, 54%, 86%, 100% {
    fill: rgba(16,163,111,0.14);
    filter: none;
    stroke-width: 1.8;
  }
  58%, 82% {
    fill: rgba(16,163,111,0.38);
    filter: drop-shadow(0 2px 8px rgba(16,163,111,0.5));
    stroke-width: 2.6;
  }
}

/* ========= Курсор — летает между лотами ========= */
.lp-hero-cursor {
  position: absolute;
  top: 92%;
  left: 92%;
  transform-origin: 2px 2px;      /* остриё стрелки */
  pointer-events: none;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.2));
  animation: lp-demo-cursor 16s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  z-index: 5;                      /* выше тултипов (4), но ниже модалки успеха (6) */
}
@keyframes lp-demo-cursor {
  0%   { top: 92%; left: 92%; opacity: 0; transform: scale(1); }
  3%   { opacity: 1; }

  /* Сцена 1 — клик по лоту 1 (31%, 32%) */
  10%  { top: 32%; left: 31%; opacity: 1; transform: scale(1); }
  13%  { top: 32%; left: 31%; transform: scale(0.82); }
  16%  { top: 32%; left: 31%; transform: scale(1); }
  24%  { top: 32%; left: 31%; transform: scale(1); }

  /* Сцена 2 — клик по лоту 2 (71%, 42%) */
  32%  { top: 42%; left: 71%; opacity: 1; transform: scale(1); }
  35%  { top: 42%; left: 71%; transform: scale(0.82); }
  38%  { top: 42%; left: 71%; transform: scale(1); }
  46%  { top: 42%; left: 71%; transform: scale(1); }

  /* Сцена 3a — клик по лоту 3 (36%, 69%) */
  56%  { top: 69%; left: 36%; opacity: 1; transform: scale(1); }
  60%  { top: 69%; left: 36%; transform: scale(0.82); }
  63%  { top: 69%; left: 36%; transform: scale(1); }
  70%  { top: 69%; left: 36%; transform: scale(1); }

  /* Сцена 3b — курсор точно над кнопкой «Забронировать» внутри попапа (69%, 78%) */
  78%  { top: 78%; left: 69%; opacity: 1; transform: scale(1); }
  81%  { top: 78%; left: 69%; transform: scale(0.82); }
  84%  { top: 78%; left: 69%; transform: scale(1); }
  88%  { top: 78%; left: 69%; opacity: 1; transform: scale(1); }

  /* Уходит ВВЕРХ по диагонали, появляется модалка успеха */
  96%  { top: 10%; left: 96%; opacity: 0; transform: scale(1); }
  100% { top: 92%; left: 92%; opacity: 0; }
}

/* ========= Ripple при клике — срабатывает 4 раза за цикл ========= */
.lp-hero-ripple {
  position: absolute;
  width: 40px; height: 40px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  margin: -20px 0 0 -20px;
  animation: lp-demo-ripple 16s linear infinite;
  z-index: 5;                      /* выше тултипа — ripple по кнопке виден */
}
@keyframes lp-demo-ripple {
  0%, 12%, 18%, 34%, 40%, 59%, 65%, 80%, 86%, 100% {
    opacity: 0;
    transform: scale(0.3);
  }

  /* Клик 1 — лот 1 */
  13% { top: 32%; left: 31%; opacity: 0.8; transform: scale(0.3); border-color: var(--accent); }
  17% { top: 32%; left: 31%; opacity: 0;   transform: scale(1.4); border-color: var(--accent); }

  /* Клик 2 — лот 2 (reserved, оранжевое кольцо) */
  35% { top: 42%; left: 71%; opacity: 0.8; transform: scale(0.3); border-color: #d97706; }
  39% { top: 42%; left: 71%; opacity: 0;   transform: scale(1.4); border-color: #d97706; }

  /* Клик 3 — лот 3 */
  60% { top: 69%; left: 36%; opacity: 0.8; transform: scale(0.3); border-color: var(--accent); }
  64% { top: 69%; left: 36%; opacity: 0;   transform: scale(1.4); border-color: var(--accent); }

  /* Клик 4 — кнопка «Забронировать» */
  81% { top: 78%; left: 69%; opacity: 0.8; transform: scale(0.3); border-color: var(--accent); }
  85% { top: 78%; left: 69%; opacity: 0;   transform: scale(1.4); border-color: var(--accent); }
}

/* ========= Попапы с данными лота ========= */
.lp-hero-tip {
  position: absolute;
  min-width: 220px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  box-shadow: 0 14px 36px -12px rgba(15, 23, 42, 0.28),
              0 2px 6px rgba(15, 23, 42, 0.08);
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  pointer-events: none;
  z-index: 4;
}
.lp-hero-tip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.lp-hero-tip-head strong {
  font: 700 13px var(--font);
  color: var(--text);
}
.lp-hero-tip-badge {
  font: 700 9px var(--font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 4px;
}
.lp-hero-tip-badge--free     { color: #0a6b48; background: rgba(16,163,111,0.16); }
.lp-hero-tip-badge--reserved { color: #7c3f04; background: rgba(217,119,6,0.18); }

.lp-hero-tip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}
.lp-hero-tip-grid > div {
  font: 600 12px var(--font);
  color: var(--text);
  white-space: nowrap;
}
.lp-hero-tip-grid > div span {
  display: block;
  font: 600 9px var(--font);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 2px;
}

.lp-hero-tip-btn {
  margin-top: 10px;
  text-align: center;
  padding: 8px;
  background: var(--accent);
  color: var(--white);
  border-radius: 6px;
  font: 700 11px var(--font);
  letter-spacing: 0.02em;
}

/* Позиционирование каждого попапа рядом со «своим» лотом */
/* Лот 1 — верхний-левый → тултип справа-сверху */
.lp-hero-tip--1 { top: 18%; left: 48%; }
/* Лот 2 — верхний-правый (reserved) → тултип слева, для визуального контраста */
.lp-hero-tip--2 { top: 30%; left: 14%; }
/* Лот 3 — нижний-левый → тултип справа от лота (внизу справа) */
.lp-hero-tip--3 { top: 52%; left: 48%; }

/* Появление/исчезновение синхронизировано с кликом курсора */
.lp-hero-tip--1 { animation: lp-demo-tip-1 16s cubic-bezier(0.2, 0.9, 0.3, 1.05) infinite; }
.lp-hero-tip--2 { animation: lp-demo-tip-2 16s cubic-bezier(0.2, 0.9, 0.3, 1.05) infinite; }
.lp-hero-tip--3 { animation: lp-demo-tip-3 16s cubic-bezier(0.2, 0.9, 0.3, 1.05) infinite; }

@keyframes lp-demo-tip-1 {
  0%, 14%, 26%, 100% { opacity: 0; transform: translateY(6px) scale(0.96); }
  17%, 24%           { opacity: 1; transform: translateY(0)   scale(1); }
}
@keyframes lp-demo-tip-2 {
  0%, 36%, 50%, 100% { opacity: 0; transform: translateY(6px) scale(0.96); }
  40%, 46%           { opacity: 1; transform: translateY(0)   scale(1); }
}
/* Попап 3 должен оставаться видимым с момента клика по лоту
   до клика по кнопке «Забронировать» — внутри него находится кнопка, которую жмёт курсор */
@keyframes lp-demo-tip-3 {
  0%, 62%, 86%, 100% { opacity: 0; transform: translateY(6px) scale(0.96); }
  65%, 82%           { opacity: 1; transform: translateY(0)   scale(1); }
}

/* ========= Модалка успеха — финал цикла ========= */
.lp-hero-success {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  max-width: 300px;
  padding: 26px 22px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow:
    0 40px 80px -20px rgba(15, 23, 42, 0.45),
    0 6px 20px rgba(15, 23, 42, 0.08);
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  pointer-events: none;
  z-index: 6;
  animation: lp-demo-success 16s cubic-bezier(0.2, 0.9, 0.3, 1.1) infinite;
}
.lp-hero-success-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 auto 14px;
  position: relative;
  box-shadow: 0 8px 20px rgba(15, 190, 97, 0.35);
}
/* Галочка: центрируется через translate + поправка на оптический центр */
.lp-hero-success-mark::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 17px;
  border: solid var(--white);
  border-width: 0 3px 3px 0;
  transform: translate(-50%, -60%) rotate(45deg);
  transform-origin: center;
}
.lp-hero-success-title {
  font: 800 22px var(--font-h, var(--font));
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.1;
}
.lp-hero-success-text {
  font: 500 13px var(--font);
  color: var(--text2);
  line-height: 1.5;
}

@keyframes lp-demo-success {
  0%, 85%, 100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
  }
  89%, 96% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Reduced motion — отключаем всё, показываем статичную композицию */
@media (prefers-reduced-motion: reduce) {
  .lp-hero-demo *,
  .lp-hero-cursor,
  .lp-hero-ripple,
  .lp-hero-tip,
  .lp-hero-success { animation: none !important; }
  .lp-hero-cursor, .lp-hero-ripple, .lp-hero-success { opacity: 0; }
  .lp-hero-tip--1 { opacity: 1; transform: none; }
}

/* ============ Общие секции ============ */
.lp-section {
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
.lp-section--panel {
  background: var(--panel2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.lp-section-head { margin-bottom: 56px; max-width: 680px; }
.lp-section-head--centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.lp-section-label {
  display: inline-block;
  font: 600 11px var(--font);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  padding: 5px 12px;
  background: var(--accent-soft);
  border-radius: var(--radius-pill);
}
.lp-section-label-meta {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-left: 4px;
}
.lp-section-label--inv {
  color: var(--white);
  background: rgba(255,255,255,0.14);
}
.lp-section-head h2 {
  font: 800 clamp(20px, 2.7vw, 32px) var(--font-h, var(--font));
  letter-spacing: -0.01em;
  line-height: 1.14;
  margin: 0 0 12px;
  text-transform: uppercase;
  word-break: normal;
  overflow-wrap: break-word;
}
.lp-section-head h2 em { color: var(--accent); font-style: normal; }
.lp-section-head p {
  color: var(--text2);
  font-size: 16px;
  margin: 0;
  max-width: 56ch;
}
.lp-section-head--centered p { margin-left: auto; margin-right: auto; }

/* ============ TRUST (нам доверяют) — бесшовный слайдер ============ */
.lp-trust {
  padding: 60px 0 56px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.lp-trust-label {
  text-align: center;
  font: 600 11px var(--font);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}

/* Окно: скрывает переполнение и даёт мягкий фейд по краям */
.lp-trust-window {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg,
    transparent 0,
    black 6%,
    black 94%,
    transparent 100%);
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0,
    black 6%,
    black 94%,
    transparent 100%);
}

/* Лента — едет влево, дубликат обеспечивает бесшовный цикл */
.lp-trust-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: lp-trust-scroll 40s linear infinite;
  will-change: transform;
}
.lp-trust-track:hover { animation-play-state: paused; }

@keyframes lp-trust-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }   /* сдвиг на половину = на длину первого набора */
}

.lp-trust-item {
  flex: 0 0 auto;
  min-width: 220px;
  height: 88px;
  padding: 18px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
  font: 600 13px var(--font);
  color: var(--muted);
  letter-spacing: 0.03em;
  line-height: 1.35;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-fast) var(--ease-out);
  filter: grayscale(1);
  opacity: 0.78;
  user-select: none;
}
/* Вариант для логотипов-картинок: <img class="lp-trust-img"> внутри .lp-trust-item */
.lp-trust-item img,
.lp-trust-img {
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
  display: block;
}
.lp-trust-item:hover {
  filter: grayscale(0);
  opacity: 1;
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 780px) {
  .lp-trust { padding: 40px 0 36px; }
  .lp-trust-item { min-width: 180px; height: 72px; font-size: 12px; }
  .lp-trust-track { gap: 14px; animation-duration: 30s; }
}

/* reduced-motion — останавливаем ленту */
@media (prefers-reduced-motion: reduce) {
  .lp-trust-track { animation: none; }
}

/* ============ VIDEO ============ */
.lp-video-section {
  padding: 90px 0;
  background: var(--panel2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.lp-video-frame {
  max-width: 980px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: var(--text);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.28);
  position: relative;
}
.lp-video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* === Нативное HTML5-видео — wrapper с кастомной Play-кнопкой === */
/* Когда внутри фрейма native-обёртка, снимаем 16:9-обрезку: видео покажется
   в своих натуральных пропорциях, фрейм подстроится под высоту видео. */
.lp-video-frame:has(.lp-video-wrap) {
  aspect-ratio: auto;
  background: transparent;
  box-shadow: none;
  border-radius: 18px;
  overflow: visible;
}
.lp-video-wrap {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.28);
}
.lp-video-native {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;          /* не «съедает» весь экран на больших мониторах */
  background: #000;
  /* На постере и видео сохраняем пропорции — без обрезки и без чёрных полос */
  object-fit: contain;
}

/* Крупная круглая Play-кнопка поверх постера */
.lp-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  /* лёгкий dim-эффект на постере, чтобы кнопка читалась поверх любого кадра */
  transition: background 0.2s ease;
}
.lp-video-play:hover {
  background: rgba(0, 0, 0, 0.18);
}
.lp-video-play-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -6px rgba(15, 190, 97, 0.5),
              0 0 0 6px rgba(255, 255, 255, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lp-video-play-circle svg {
  margin-left: 4px;          /* визуальная компенсация треугольника */
}
.lp-video-play:hover .lp-video-play-circle {
  transform: scale(1.06);
  box-shadow: 0 14px 32px -6px rgba(15, 190, 97, 0.6),
              0 0 0 10px rgba(255, 255, 255, 0.22);
}
.lp-video-play:focus-visible .lp-video-play-circle {
  outline: 3px solid #fff;
  outline-offset: 4px;
}
/* После клика — прячем кнопку, оставляем нативный <video> с controls */
.lp-video-wrap.is-playing .lp-video-play { display: none; }
.lp-video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 40px;
  text-align: center;
  color: var(--white);
  background:
    radial-gradient(circle at 30% 20%, rgba(15, 190, 97, 0.3), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(15, 190, 97, 0.15), transparent 50%),
    var(--lp-panel-dark);
}
.lp-video-icon {
  flex-shrink: 0;
  width: 72px; height: 72px;
  min-width: 72px; min-height: 72px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  color: var(--white);
  padding-left: 6px;
  box-shadow: 0 6px 18px -4px rgba(15, 190, 97, 0.25);
}
.lp-video-placeholder > div:last-child { max-width: 100%; }

/* ============ STEPS ============ */
.lp-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: lp-step;
}
.lp-steps li {
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
  position: relative;
}
.lp-steps li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.lp-step-num {
  display: block;
  font: 800 13px var(--font-h, var(--font));
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 18px;
}
.lp-steps li h3 {
  font: 700 18px var(--font);
  margin: 0 0 8px;
}
.lp-steps li p {
  color: var(--text2);
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

/* ============ FEATURES ============ */
.lp-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.lp-feature {
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.lp-feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.lp-feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  position: relative;
}
.lp-feature-icon::before {
  content: '';
  width: 24px;
  height: 24px;
  background: var(--accent);
  mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat;
  mask-position: center; -webkit-mask-position: center;
  mask-size: contain; -webkit-mask-size: contain;
}
.lp-feature-icon[data-icon="plan"]::before { -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'><path d='M3 3h8v8H3zM13 3h8v8h-8zM3 13h8v8H3zM13 13h8v8h-8z'/></svg>"); mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'><path d='M3 3h8v8H3zM13 3h8v8h-8zM3 13h8v8H3zM13 13h8v8h-8z'/></svg>"); }
.lp-feature-icon[data-icon="tour"]::before { -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'><path d='M12 2l3 7h7l-5.5 4.5 2 7L12 16l-6.5 4.5 2-7L2 9h7z'/></svg>"); mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'><path d='M12 2l3 7h7l-5.5 4.5 2 7L12 16l-6.5 4.5 2-7L2 9h7z'/></svg>"); }
.lp-feature-icon[data-icon="crm"]::before { -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'><path d='M2 4h20v4H2zM2 10h20v4H2zM2 16h20v4H2z'/></svg>"); mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'><path d='M2 4h20v4H2zM2 10h20v4H2zM2 16h20v4H2z'/></svg>"); }
.lp-feature-icon[data-icon="admin"]::before { -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'><path d='M12 2l10 6v8L12 22 2 16V8z'/></svg>"); mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'><path d='M12 2l10 6v8L12 22 2 16V8z'/></svg>"); }
.lp-feature-icon[data-icon="speed"]::before { -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'><path d='M13 2L3 14h7l-1 8 10-12h-7z'/></svg>"); mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'><path d='M13 2L3 14h7l-1 8 10-12h-7z'/></svg>"); }
.lp-feature-icon[data-icon="brand"]::before { -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'><path d='M12 3a9 9 0 100 18 3 3 0 010-6h3a6 6 0 000-12z'/></svg>"); mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'><path d='M12 3a9 9 0 100 18 3 3 0 010-6h3a6 6 0 000-12z'/></svg>"); }

.lp-feature h3 {
  font: 700 17px var(--font);
  margin: 0 0 8px;
}
.lp-feature p {
  color: var(--text2);
  font-size: 14px;
  margin: 0;
  line-height: 1.55;
}

/* ============ TARIFFS ============ */
.lp-tariffs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}
.lp-tariff {
  padding: 36px 30px 30px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  position: relative;
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
  display: flex;
  flex-direction: column;
}
.lp-tariff:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.lp-tariff--popular {
  border-color: var(--accent);
  box-shadow: 0 12px 28px -16px rgba(15, 23, 42, 0.14);
}
.lp-tariff-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font: 600 11px var(--font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
}
.lp-tariff-name {
  font: 600 13px var(--font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.lp-tariff-price {
  font: 800 clamp(26px, 2.6vw, 34px) var(--font-h, var(--font));
  letter-spacing: -0.02em;
  margin: 12px 0 4px;
  line-height: 1;
}
.lp-tariff-price span {
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  margin-left: 4px;
}
.lp-tariff-sub {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 24px;
}
.lp-tariff ul {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  flex: 1;
}
.lp-tariff li {
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
  color: var(--text2);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.lp-tariff li::before {
  content: '';
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  background: var(--accent);
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'><path d='M20 6L9 17l-5-5 1.5-1.5L9 14l9.5-9.5z'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'><path d='M20 6L9 17l-5-5 1.5-1.5L9 14l9.5-9.5z'/></svg>");
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}
.lp-tariff li:last-child { border-bottom: 0; }

.lp-tariff-sub b {
  color: var(--text);
  font-weight: 700;
}

.lp-tariff-pro {
  display: inline-block;
  vertical-align: 2px;
  font: 700 10px var(--font);
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-soft, rgba(15,190,97,.12));
  padding: 3px 7px;
  border-radius: 4px;
  margin-left: 4px;
}

p.lp-tariffs-note-bottom {
  display: block;
  text-align: center;
  font-size: 15px;
  color: var(--text2);
  margin: 24px auto 0;
  padding: 14px 28px;
  background: var(--accent-soft, rgba(15,190,97,.08));
  border-radius: var(--radius-pill, 999px);
  width: fit-content;
  max-width: 100%;
  border: 1px dashed var(--accent);
  box-sizing: border-box;
}
p.lp-tariffs-note-bottom b {
  color: var(--accent);
  font-weight: 700;
}

/* ============ PRICING — единый блок с табами ============ */
.lp-pricing { background: var(--bg); }

/* ─── Sprint 22 v45: упрощённая секция → ссылка на /tariffs.php ─── */
.lp-pricing--simple { background: var(--panel2); }
.lp-pricing-cta {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
}
.lp-pricing-cta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
}
.lp-pricing-cta-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 500 14.5px var(--font);
  color: var(--text);
}
.lp-pricing-cta-list li svg {
  flex: 0 0 22px;
  width: 22px; height: 22px;
  color: var(--accent);
}
.lp-pricing-cta-list li b {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.lp-pricing-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.lp-pricing-cta-actions .btn { min-width: 240px; }
@media (max-width: 640px) {
  .lp-pricing-cta { padding: 26px 22px; border-radius: 20px; }
  .lp-pricing-cta-list { grid-template-columns: 1fr; gap: 12px; }
  .lp-pricing-cta-actions .btn { min-width: 0; width: 100%; }
}

/* Якоря для backward-compat #tariffs, #packages, #box — фиксируем offset под фикс. шапку */
.lp-anchor {
  display: block;
  position: relative;
  top: -90px;
  visibility: hidden;
  pointer-events: none;
  height: 0;
}

/* Контейнер табов */
.lp-pricing-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  max-width: 920px;
  margin: 0 auto 36px;
  box-shadow: var(--shadow-sm);
}
.lp-pricing-tab {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 16px 18px;
  border-radius: 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: inherit;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  position: relative;
}
.lp-pricing-tab:hover:not(.is-active) {
  background: var(--accent-soft);
}
.lp-pricing-tab.is-active {
  background: var(--accent);
  box-shadow: 0 8px 20px -6px rgba(15,190,97,.45);
}
.lp-pricing-tab-num {
  font: 700 11px/1 var(--font);
  letter-spacing: 0.18em;
  color: var(--muted);
  transition: color var(--dur-fast) var(--ease-out);
}
.lp-pricing-tab-title {
  font: 700 17px/1.15 var(--font-h, var(--font));
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color var(--dur-fast) var(--ease-out);
}
.lp-pricing-tab-desc {
  font: 500 12px/1.35 var(--font);
  color: var(--text2);
  transition: color var(--dur-fast) var(--ease-out);
}
.lp-pricing-tab.is-active .lp-pricing-tab-num,
.lp-pricing-tab.is-active .lp-pricing-tab-title,
.lp-pricing-tab.is-active .lp-pricing-tab-desc {
  color: var(--white);
}
.lp-pricing-tab.is-active .lp-pricing-tab-num {
  color: rgba(255,255,255,0.7);
}
.lp-pricing-tab.is-active .lp-pricing-tab-desc {
  color: rgba(255,255,255,0.88);
}

/* Панели */
.lp-pricing-panel { display: none; animation: lp-pricing-fade .28s var(--ease-out); }
.lp-pricing-panel.is-active { display: block; }
.lp-pricing-panel[hidden] { display: none; }

@keyframes lp-pricing-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Интро-параграф панели (заменяет старый h2 каждой секции) */
.lp-pricing-intro {
  text-align: center;
  font-size: 15px;
  color: var(--text2);
  max-width: 720px;
  margin: 0 auto 30px;
  line-height: 1.55;
}
.lp-pricing-intro strong { color: var(--text); font-weight: 600; }
.lp-pricing-intro--inv { color: rgba(255,255,255,0.85); }
.lp-pricing-intro--inv strong { color: var(--white); }

/* Тёмная заливка для панели Enterprise */
.lp-pricing-panel--dark {
  background: var(--text);
  color: var(--white);
  border-radius: 20px;
  padding: 48px clamp(20px, 4vw, 56px);
  margin-top: 8px;
}
.lp-pricing-panel--dark .lp-box-list li {
  color: rgba(255,255,255,0.88);
}
.lp-pricing-panel--dark .lp-box-list li::before {
  background: var(--accent);
}
.lp-pricing-panel--dark code {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

/* Адаптив для табов */
@media (max-width: 760px) {
  .lp-pricing-tabs {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 6px;
    border-radius: 14px;
  }
  .lp-pricing-tab {
    padding: 12px 14px;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  .lp-pricing-tab-num {
    flex-shrink: 0;
    font-size: 10px;
  }
  .lp-pricing-tab-title {
    font-size: 15px;
    flex: 1;
  }
  .lp-pricing-tab-desc {
    font-size: 11px;
    text-align: right;
  }
  .lp-pricing-panel--dark {
    padding: 28px 20px;
    border-radius: 14px;
  }
}

/* ============ CAPABILITIES (Возможности сервиса) ============ */
.lp-capabilities { background: var(--bg); }

.lp-capabilities-grid {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 40px;
  align-items: start;
}

/* — Левая колонка: заголовок + список — */
.lp-capabilities-list .lp-section-head {
  margin-bottom: 28px;
}
.lp-capabilities-list .lp-section-head h2 {
  font-size: clamp(22px, 2.4vw, 30px);
}
.lp-capabilities-list .lp-section-head p {
  max-width: none;
  font-size: 14px;
}

.lp-cap-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lp-cap-item {
  appearance: none;
  width: 100%;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  font-family: inherit;
  text-align: left;
  transition: background var(--dur-fast) var(--ease-out);
  position: relative;
}
.lp-cap-item:hover { background: var(--white); }
.lp-cap-item.is-active {
  background: var(--white);
  box-shadow: 0 4px 14px -6px rgba(15,23,42,0.08);
}

.lp-cap-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--accent);
  transition: transform var(--dur-fast) var(--ease-out);
}
.lp-cap-icon svg { width: 20px; height: 20px; }
.lp-cap-item.is-active .lp-cap-icon { transform: scale(1.05); }

/* Цветовые тона для иконок */
.lp-cap-icon[data-tone="blue"]   { background: #3b82f6; }
.lp-cap-icon[data-tone="teal"]   { background: #14b8a6; }
.lp-cap-icon[data-tone="green"]  { background: #0fbe61; }
.lp-cap-icon[data-tone="orange"] { background: #f97316; }
.lp-cap-icon[data-tone="yellow"] { background: #eab308; }
.lp-cap-icon[data-tone="red"]    { background: #ef4444; }
.lp-cap-icon[data-tone="indigo"] { background: #6366f1; }
.lp-cap-icon[data-tone="purple"] { background: #a855f7; }

.lp-cap-name {
  font: 600 15px/1.3 var(--font);
  color: var(--text);
}

/* — Правая колонка: превью — */
.lp-capabilities-preview {
  position: sticky;
  top: 100px;
  display: block;
  min-height: 420px;
}

.lp-cap-panel {
  display: none;
  background: var(--white);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 12px 40px -16px rgba(15,23,42,0.12);
  animation: lp-cap-fade .3s var(--ease-out);
}
.lp-cap-panel.is-active { display: block; }
.lp-cap-panel[hidden]   { display: none; }

@keyframes lp-cap-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lp-cap-panel-text h3 {
  font: 800 clamp(20px, 2vw, 26px)/1.2 var(--font-h, var(--font));
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 10px;
}
.lp-cap-panel-text p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text2);
  margin: 0 0 24px;
}

/* Плейсхолдер картинки — стилизованная рамка под планшет */
.lp-cap-panel-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--bg) 0%, var(--accent-soft) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.lp-cap-panel-img::before {
  content: 'скриншот в&nbsp;разработке';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font: 500 12px var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: .55;
}
/* Когда подгрузишь реальную картинку через background-image — текст спрячется */
.lp-cap-panel-img[style*="background-image"]::before { display: none; }

/* Адаптив */
@media (max-width: 960px) {
  .lp-capabilities-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .lp-capabilities-preview {
    position: static;
    min-height: 0;
  }
  .lp-cap-panel { padding: 24px; }
}

@media (max-width: 600px) {
  .lp-cap-items { gap: 2px; }
  .lp-cap-item { padding: 10px 12px; gap: 12px; }
  .lp-cap-icon { width: 36px; height: 36px; border-radius: 9px; }
  .lp-cap-icon svg { width: 18px; height: 18px; }
  .lp-cap-name { font-size: 14px; }
  .lp-cap-panel { padding: 20px; border-radius: 16px; }
  .lp-cap-panel-img { border-radius: 12px; aspect-ratio: 4/3; }
}

/* ============ SETUP SERVICES ============ */
.lp-setup {
  margin-top: 60px;
  padding: 40px 36px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.lp-setup-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.lp-setup-head h3 {
  font: 800 24px var(--font-h, var(--font));
  letter-spacing: -0.005em;
  margin: 0;
  text-transform: uppercase;
}
.lp-setup-head p {
  color: var(--text2);
  font-size: 14px;
  margin: 0;
  max-width: 480px;
}
.lp-setup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.lp-setup-item {
  padding: 22px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}
.lp-setup-size {
  font: 500 11px var(--font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.lp-setup-price {
  font: 800 26px var(--font-h, var(--font));
  letter-spacing: -0.01em;
  color: var(--text);
}
.lp-setup-hint {
  font-size: 12px;
  color: var(--text2);
  margin-top: 4px;
}

/* ============ BOX SOLUTION ============ */
.lp-section--dark {
  background: var(--lp-panel-dark);
  color: var(--white);
  border: 0;
}
/* Тонкая акцент-линия сверху вместо radial blur glow */
.lp-section--dark::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 190, 97, 0.5), transparent);
  pointer-events: none;
}
.lp-box {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
}
.lp-box-left, .lp-box-right { min-width: 0; }
.lp-box-list code {
  display: inline-block;
  max-width: 100%;
  padding: 2px 8px;
  margin: 0 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  font: 500 13px var(--pt-font-mono, ui-monospace, monospace);
  color: rgba(255, 255, 255, 0.9);
  overflow-wrap: anywhere;
  word-break: break-all;
}
.lp-box-left h2 {
  color: var(--white);
  font: 800 clamp(22px, 2.8vw, 36px) var(--font-h, var(--font));
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0 0 20px;
  text-transform: uppercase;
  word-break: normal;
  overflow-wrap: break-word;
}
.lp-box-left h2 em { color: var(--accent); font-style: normal; }
.lp-box-left p {
  color: rgba(255,255,255,0.72);
  font-size: 16px;
  margin: 0 0 24px;
  line-height: 1.55;
}
.lp-box-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: rgba(255,255,255,0.85);
  font-size: 14.5px;
}
.lp-box-list li {
  padding: 9px 0 9px 28px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.lp-box-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 14px;
  width: 14px; height: 14px;
  background: var(--accent);
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'><path d='M20 6L9 17l-5-5 1.5-1.5L9 14l9.5-9.5z'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'><path d='M20 6L9 17l-5-5 1.5-1.5L9 14l9.5-9.5z'/></svg>");
  mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat;
}
.lp-box-right {
  padding: 40px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  backdrop-filter: blur(8px);
}
.lp-box-price {
  text-align: center;
  margin-bottom: 24px;
}
.lp-box-price-label {
  font: 500 11px var(--font);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}
.lp-box-price-num {
  font: 800 clamp(32px, 4vw, 48px) var(--font-h, var(--font));
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1;
}
.lp-box-price-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-top: 10px;
  line-height: 1.4;
}
/* Высокая специфичность чтобы переживать любые ресеты в gos-ds */
.lp-box .btn-accent,
button.btn-accent,
a.btn-accent {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 14px 26px !important;
  background: var(--accent) !important;
  color: var(--white) !important;
  border: 0 !important;
  border-radius: var(--radius-sm) !important;
  font: 600 15px var(--font) !important;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease-out);
  box-shadow: 0 6px 18px rgba(15, 190, 97, 0.35);
  width: 100%;
}
.lp-box .btn-accent:hover,
button.btn-accent:hover,
a.btn-accent:hover {
  background: var(--accent2, #0ea65a) !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(15, 190, 97, 0.45);
}

/* ============ FAQ ============ */
.lp-faq { display: grid; gap: 8px; }
.lp-faq details {
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.lp-faq details[open] { border-color: var(--accent); }
.lp-faq summary {
  font: 600 16px var(--font);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 32px;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  width: 18px; height: 18px;
  margin-top: -9px;
  background: var(--muted);
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'><path d='M7 10l5 5 5-5z'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'><path d='M7 10l5 5 5-5z'/></svg>");
  mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat;
  transition: transform 0.3s ease;
}
.lp-faq details[open] summary::after {
  transform: rotate(-180deg);
  background: var(--accent);
}
.lp-faq details p {
  margin: 14px 0 0;
  color: var(--text2);
  font-size: 15px;
  line-height: 1.6;
}

/* ============ FORM ============ */
.lp-section--form {
  background: var(--panel2);
  border-top: 1px solid var(--border);
}
.lp-form-wrap {
  background: var(--white);
  padding: 48px 48px 40px;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.lp-form { display: grid; gap: 14px; }
.lp-field > span {
  display: block;
  font: 500 11px var(--font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.lp-field input,
.lp-field textarea,
.lp-field select {
  width: 100%;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  outline: none;
  font: 400 15px var(--font);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.lp-field input:focus,
.lp-field textarea:focus,
.lp-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.lp-field textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}
.lp-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
  background: var(--white) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23525252' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 14px center;
  cursor: pointer;
}

.lp-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
  cursor: pointer;
}
.lp-check input {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent);
  width: 20px; height: 20px;
}
.lp-check a { color: var(--accent); }

.lp-form-error {
  padding: 12px 16px;
  background: var(--danger-soft, #fee2e2);
  border: 1px solid rgba(225, 29, 72, 0.3);
  color: var(--danger, #b91c1c);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.lp-form-success {
  text-align: center;
  padding: 40px 20px 30px;
}
.lp-success-mark {
  width: 72px; height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -6px rgba(15, 190, 97, 0.5);
  animation: lp-pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
/* Галка-чекмарк через transform-центрирование. Высота больше ширины, угол 45°
   делает из «палочки» правильную галочку. translate смещает чуть вверх-влево —
   зрительно центрирует не геометрический центр прямоугольника, а пересечение
   линий, где визуально «сидит» галка. */
.lp-success-mark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 26px;
  border: solid var(--white);
  border-width: 0 3.5px 3.5px 0;
  transform: translate(-50%, -60%) rotate(45deg);
  animation: lp-check 0.35s 0.2s ease forwards;
  opacity: 0;
}
.lp-form-success h3 {
  font: 800 28px var(--font-h, var(--font));
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.lp-form-success p {
  color: var(--text2);
  margin: 0 auto;
  max-width: 420px;
  font-size: 15px;
}
.lp-success-close {
  margin: 24px auto 0;
  min-width: 180px;
}

/* ============ COOKIE BANNER ============ */
/* Sticky-плашка снизу страницы; появляется с лёгким slide-up. */
.lp-cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  max-width: 940px;
  margin: 0 auto;
  padding: 16px 22px;
  border-radius: 14px;
  background: var(--text);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px -12px rgba(15, 23, 42, 0.4),
              0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.2, 0, 0, 1);
}
.lp-cookie.is-on {
  opacity: 1;
  transform: translateY(0);
}
.lp-cookie-text {
  flex: 1 1 320px;
  min-width: 0;
  font-size: 13px;
  line-height: 1.5;
}
.lp-cookie-text strong {
  display: block;
  font: 700 14px var(--font-h, var(--font));
  color: #fff;
  letter-spacing: 0.005em;
  margin-bottom: 4px;
}
.lp-cookie-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12.5px;
}
.lp-cookie-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lp-cookie-text a:hover { color: #fff; }
.lp-cookie-actions { flex-shrink: 0; }
.lp-cookie-accept {
  min-width: 140px;
  padding: 10px 20px !important;
}

@media (max-width: 600px) {
  .lp-cookie {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 14px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .lp-cookie-actions { display: flex; }
  .lp-cookie-accept { width: 100%; }
}

/* ============ FOOTER ============ */
.lp-footer {
  padding: 60px 0 30px;
  background: var(--lp-panel-dark);
  color: rgba(255,255,255,0.65);
}
.lp-footer .logo-brand,
.lp-footer .logo-product {
  color: var(--white);
}
.lp-footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1.3fr 1fr;
  gap: 60px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.lp-footer-label {
  font: 600 11px var(--font);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
}
.lp-footer-contacts a,
.lp-footer-links a,
.lp-footer-services a {
  display: block;
  padding: 4px 0;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  transition: color var(--dur-fast) var(--ease-out);
}
.lp-footer-contacts a:hover,
.lp-footer-links a:hover,
.lp-footer-services a:hover { color: var(--accent); }

.lp-footer-all {
  display: inline-flex !important;
  margin-top: 12px;
  padding: 8px 14px !important;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-pill);
  font-weight: 600 !important;
  color: var(--accent) !important;
  transition: all var(--dur-fast) var(--ease-out);
}
.lp-footer-all:hover {
  border-color: var(--accent);
  background: rgba(15, 190, 97, 0.1);
}
.lp-footer-bot {
  padding-top: 24px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ============ ANIMATIONS ============ */
@keyframes lp-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.6; }
}
@keyframes lp-pulse-play {
  0%, 100% { box-shadow: 0 10px 30px rgba(15, 190, 97, 0.4); }
  50%      { box-shadow: 0 10px 50px rgba(15, 190, 97, 0.7); }
}
@keyframes lp-pop {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}
@keyframes lp-check { to { opacity: 1; } }

/* ============ STAT CALLOUT (53% watch 3D first) ============ */
.lp-stat-callout {
  padding: 40px 0;
  background: var(--bg);
  overflow: hidden;
}
.lp-stat-callout-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 28px 36px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.lp-stat-callout-num {
  flex-shrink: 0;
}
.lp-stat-callout-num-v {
  font: 800 clamp(56px, 7vw, 84px) var(--font-h, var(--font));
  letter-spacing: -0.03em;
  line-height: 0.9;
  color: var(--accent);
  display: inline-block;
}
.lp-stat-callout-num-v span {
  font-size: 0.5em;
  margin-left: 2px;
  vertical-align: super;
  color: var(--accent);
  font-weight: 700;
}
.lp-stat-callout-text {
  color: var(--text);
  font: 500 clamp(14px, 1.4vw, 18px) var(--font);
  line-height: 1.4;
}
.lp-stat-callout-text em {
  color: var(--accent);
  font-style: normal;
  font-weight: 700;
}
.lp-stat-callout-cta {
  flex-shrink: 0;
  font: 600 13px var(--font);
  letter-spacing: 0.01em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.lp-stat-callout-cta:hover {
  background: var(--accent);
  color: var(--white);
}
.lp-stat-callout-ast {
  color: var(--accent);
  font-weight: 700;
}
.lp-stat-callout-note {
  margin: 12px 0 0;
  padding: 0 4px;
  font: 400 12px var(--font);
  color: var(--muted);
  letter-spacing: 0.01em;
}

@media (max-width: 900px) {
  .lp-stat-callout-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 14px;
    padding: 26px 22px;
  }
  .lp-stat-callout-num-v { font-size: 64px; }
  .lp-stat-callout-text  { font-size: 15.5px; line-height: 1.45; }
  .lp-stat-callout-cta { justify-self: center; padding: 12px 18px; font-size: 12px; }
  .lp-stat-callout-note { text-align: center; padding: 0 12px; }
}

/* ============ PACKAGES (3D-tours + floor) ============ */
.lp-pack-section {
  position: relative;
  background: var(--panel2);
  border-top: 1px solid var(--border);
}
.lp-pack-section .lp-section-head {
  max-width: none;
}
.lp-pack-section .lp-section-head p {
  max-width: none;
}
.lp-pack-section .lp-section-head p strong {
  color: var(--text);
  font-weight: 600;
}

/* Превью-карточки над пакетами */
.lp-pack-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.lp-pack-preview-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 14px 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.lp-pack-preview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
button.lp-pack-preview-card {
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
  display: block;
}
button.lp-pack-preview-card:hover .lp-pack-preview-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--accent);
}
button.lp-pack-preview-card:hover .lp-pack-preview-inner--tour img {
  transform: scale(1.04);
}
button.lp-pack-preview-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.lp-pack-preview-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font: 600 10px var(--font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(10, 15, 22, 0.72);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
}
.lp-pack-preview-inner {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 200 / 130;
  background: var(--panel2);
}
.lp-pack-preview-inner svg { width: 100%; height: 100%; display: block; }
.lp-pack-preview-inner--tour {
  position: relative;
  background: linear-gradient(135deg, #0fbe61, #0a8f48);
}
.lp-pack-preview-inner--tour img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}
.lp-pack-preview-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(15, 190, 97, 0.92);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.3);
  transition: transform var(--dur-med) var(--ease-out), background var(--dur-med) var(--ease-out);
}
.lp-pack-preview-inner--plan svg rect[fill^="rgba(15,190,97"] {
  animation: lp-pack-plan-fade 3.2s ease-in-out infinite;
}
.lp-pack-preview-inner--plan svg rect:nth-of-type(4) { animation-delay: 0.2s; }
.lp-pack-preview-inner--plan svg rect:nth-of-type(5) { animation-delay: 0.4s; }
.lp-pack-preview-inner--plan svg rect:nth-of-type(6) { animation-delay: 0.6s; }
@keyframes lp-pack-plan-fade {
  0%, 100% { fill: rgba(15, 190, 97, 0.10); }
  50%      { fill: rgba(15, 190, 97, 0.28); }
}
.lp-pack-preview-inner--widget {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 0;
}
/* Изображение-гиф в плашках (2D-план / виджет): если файла нет — fallback на SVG */
.lp-pack-preview-inner--plan   > img,
.lp-pack-preview-inner--widget > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lp-pack-preview-inner--plan   > svg.lp-pack-preview-fallback,
.lp-pack-preview-inner--widget > .lp-pack-preview-fallback {
  width: 100%;
  height: 100%;
  display: none;  /* показываем только если img не загрузилась (onerror) */
}
.lp-pack-preview-widget-fallback { flex-direction: column; }
.lp-pack-preview-widget-head {
  display: flex;
  gap: 4px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--panel2);
}
.lp-pack-preview-widget-head span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border-strong);
}
.lp-pack-preview-widget-head span:first-child { background: var(--lp-browser-red); }
.lp-pack-preview-widget-head span:nth-child(2) { background: var(--lp-browser-amber); }
.lp-pack-preview-widget-head span:nth-child(3) { background: var(--accent); }
.lp-pack-preview-widget-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px;
}
.lp-pack-preview-lot {
  border-radius: 6px;
  border: 1.5px solid;
  animation: lp-pack-lot 2.6s ease-in-out infinite;
}
.lp-pack-preview-lot--free     { background: rgba(15, 190, 97, 0.14);  border-color: rgba(15, 190, 97, 0.5); }
.lp-pack-preview-lot--reserved { background: rgba(245, 158, 11, 0.18); border-color: rgba(245, 158, 11, 0.55); animation-delay: 0.4s; }
.lp-pack-preview-lot--sold     { background: rgba(239, 68, 68, 0.16);  border-color: rgba(239, 68, 68, 0.5);  animation-delay: 0.8s; }
.lp-pack-preview-lot:nth-child(3) { animation-delay: 1.2s; }
@keyframes lp-pack-lot {
  0%, 100% { transform: scale(1);    filter: brightness(1); }
  50%      { transform: scale(1.03); filter: brightness(1.08); }
}
.lp-pack-preview-cap {
  margin-top: 10px;
  font: 500 12px var(--font);
  color: var(--text2);
  text-align: center;
}

/* Карточки пакетов */
.lp-packs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.lp-pack {
  position: relative;
  padding: 30px 28px 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.lp-pack:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px -16px rgba(15, 23, 42, 0.18);
}
.lp-pack--popular {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 14px 32px -18px rgba(15, 23, 42, 0.14);
}
.lp-pack-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font: 700 11px var(--font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.lp-pack-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px dashed var(--border);
}
.lp-pack-count {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.lp-pack-count-num {
  font: 800 56px var(--font-h, var(--font));
  letter-spacing: -0.03em;
  line-height: 0.9;
  color: var(--accent);
}
.lp-pack-count-num--inf {
  color: var(--text2);
}
.lp-pack-count-word {
  font: 700 15px var(--font-h, var(--font));
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}
.lp-pack-bonus {
  font: 600 11px var(--font);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
}
.lp-pack--custom .lp-pack-bonus {
  color: var(--text2);
  background: var(--panel2);
}
.lp-pack-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lp-pack-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  color: var(--text2);
  line-height: 1.5;
}
.lp-pack-list li span {
  display: inline-block;
  margin-left: 6px;
  font: 600 10px var(--font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 6px;
  border-radius: 4px;
  vertical-align: middle;
}
.lp-pack-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 4px;
  width: 16px; height: 16px;
  background: var(--accent);
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'><path d='M20 6L9 17l-5-5 1.5-1.5L9 14l9.5-9.5z'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'><path d='M20 6L9 17l-5-5 1.5-1.5L9 14l9.5-9.5z'/></svg>");
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}
.lp-pack-price {
  margin-bottom: 18px;
}
.lp-pack-price-num {
  display: block;
  font: 800 clamp(24px, 2.4vw, 30px) var(--font-h, var(--font));
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}
.lp-pack-price-sub {
  display: block;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ============ LIVE DEMO ============ */
.lp-demo-section {
  background: var(--panel2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.lp-demo-section .lp-container {
  max-width: min(1760px, 96vw);
  padding-left: 16px;
  padding-right: 16px;
}
.lp-demo-frame {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 30px 60px -24px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}
.lp-demo-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--panel2);
  border-bottom: 1px solid var(--border);
}
.lp-demo-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.lp-demo-dot--r { background: var(--lp-browser-red); }
.lp-demo-dot--y { background: var(--lp-browser-amber); }
.lp-demo-dot--g { background: var(--accent); }
.lp-demo-url {
  margin-left: 10px;
  font: 500 12px var(--font);
  letter-spacing: 0.04em;
  color: var(--muted);
}
.lp-demo-iframe {
  display: block;
  width: 100%;
  /* Высота подстраивается под экран: viewport - шапка - padding + большие запасы */
  height: min(calc(100dvh - 120px), 1400px);
  min-height: 640px;
  border: 0;
  background: var(--bg);
}
@media (max-width: 780px) {
  .lp-demo-iframe {
    height: min(calc(100dvh - 80px), 900px);
    min-height: 600px;
  }
}

/* Poster-заглушка — не даёт iframe грузить 720px до первого клика */
.lp-demo-poster {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: clamp(360px, 54vh, 560px);
  border: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(15, 190, 97, 0.08), transparent 60%),
    var(--bg);
  cursor: pointer;
  text-align: center;
  padding: 32px 24px;
  transition: background var(--dur-med) var(--ease-out);
}
.lp-demo-poster:hover {
  background:
    radial-gradient(circle at 50% 35%, rgba(15, 190, 97, 0.14), transparent 60%),
    var(--bg);
}
.lp-demo-poster-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 480px;
}
.lp-demo-poster-icon {
  flex-shrink: 0;
  width: 72px; height: 72px;
  min-width: 72px; min-height: 72px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: var(--white);
  padding-left: 4px;
  box-shadow: 0 6px 18px -4px rgba(15, 190, 97, 0.25);
  transition: transform var(--dur-med) var(--ease-out);
}
.lp-demo-poster:hover .lp-demo-poster-icon { transform: scale(1.05); }
.lp-demo-poster-title {
  font: 700 clamp(18px, 2.2vw, 24px) var(--font-h, var(--font));
  color: var(--text);
  letter-spacing: -0.01em;
}
.lp-demo-poster-hint {
  font-size: 14px;
  color: var(--text2);
  max-width: 420px;
}
@media (max-width: 780px) {
  .lp-demo-poster { height: 360px; padding: 24px 18px; }
}

/* ============ STICKY MOBILE CTA (появляется после 30% скролла) ============ */
.lp-sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 105;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 18px;
  background: var(--accent);
  color: var(--white);
  font: 700 14px var(--font);
  letter-spacing: 0.01em;
  border: 0;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 24px -8px rgba(15, 190, 97, 0.35),
              0 2px 6px rgba(15, 23, 42, 0.14);
  cursor: pointer;
  opacity: 0;
  transform: translateY(120%);
  transition: opacity 0.28s var(--ease-out), transform 0.32s var(--ease-out);
}
.lp-sticky-cta[hidden] { display: none !important; }
.lp-sticky-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.lp-sticky-cta:hover { filter: brightness(1.08); }
.lp-sticky-cta-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 780px) {
  .lp-sticky-cta { display: inline-flex; }
}
/* Когда открыто мобильное меню — sticky CTA прячется */
.lp-nav.is-menu-open ~ .lp-sticky-cta { opacity: 0 !important; transform: translateY(120%) !important; pointer-events: none; }

/* ============ DEMO MODAL (CTA тарифов/пакетов) ============ */
.lp-demo-modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease-out);
}
.lp-demo-modal.is-open { opacity: 1; }
.lp-demo-modal[hidden] { display: none; }
.lp-demo-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 15, 22, 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: zoom-out;
}
.lp-demo-modal-card {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -20px rgba(15, 23, 42, 0.45);
  padding: 32px 32px 28px;
  transform: translateY(8px) scale(0.98);
  transition: transform var(--dur-med) var(--ease-out);
}
.lp-demo-modal.is-open .lp-demo-modal-card {
  transform: translateY(0) scale(1);
}
.lp-demo-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--panel2);
  color: var(--text2);
  border: 0;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.lp-demo-modal-close:hover {
  background: var(--border);
  color: var(--text);
  transform: rotate(90deg);
}
.lp-demo-modal-head {
  margin-bottom: 20px;
}
.lp-demo-modal-head h3 {
  font: 800 clamp(22px, 3vw, 30px) var(--font-h, var(--font));
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 8px 0 8px;
  text-transform: uppercase;
}
.lp-demo-modal-head p {
  color: var(--text2);
  font-size: 14px;
  margin: 0;
}
.lp-demo-form-success { text-align: center; padding: 10px 0; }

@media (max-width: 560px) {
  .lp-demo-modal { padding: 0; }
  .lp-demo-modal-card {
    width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
    padding: 52px 20px 28px;
  }
}

/* ============ TOUR MODAL ============ */
.lp-tour-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease-out);
}
.lp-tour-modal.is-open { opacity: 1; }
.lp-tour-modal[hidden] { display: none; }
.lp-tour-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 22, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: zoom-out;
}
.lp-tour-modal-card {
  position: relative;
  width: min(1280px, 96vw);
  height: min(820px, 92vh);
  background: var(--lp-panel-dark);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
  transform: translateY(8px) scale(0.98);
  transition: transform var(--dur-med) var(--ease-out);
}
.lp-tour-modal.is-open .lp-tour-modal-card {
  transform: translateY(0) scale(1);
}
.lp-tour-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.lp-tour-modal-close:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: rotate(90deg);
}
.lp-tour-modal-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: var(--lp-panel-dark);
}
@media (max-width: 780px) {
  .lp-tour-modal { padding: 0; }
  .lp-tour-modal-card { width: 100vw; height: 100vh; border-radius: 0; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .lp-hero .lp-container { grid-template-columns: 1fr; gap: 40px; }
  .lp-hero-visual { max-width: 520px; margin: 0 auto; }
  .lp-steps { grid-template-columns: repeat(2, 1fr); }
  .lp-features, .lp-tariffs { grid-template-columns: repeat(2, 1fr); }
  .lp-tariffs .lp-tariff:last-child { grid-column: 1 / -1; max-width: calc(50% - 10px); }
  .lp-setup-grid { grid-template-columns: 1fr; }
  .lp-packs { grid-template-columns: repeat(2, 1fr); }
  .lp-packs .lp-pack:last-child { grid-column: 1 / -1; }
  .lp-pack-preview { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .lp-box { grid-template-columns: 1fr; gap: 32px; }
}

/* Нав-бар переключается на бургер раньше, чем основной контент, чтобы не налезало */
@media (max-width: 960px) {
  .lp-nav { padding: 12px 16px; gap: 12px; }
  .lp-nav-links { display: none; }
  .lp-nav-actions { display: none; }
  .lp-burger { display: inline-flex; margin-left: auto; }
  .lp-nav .logo { gap: 8px; }
  .lp-nav .logo-product { display: none; }  /* скрываем "ИНТЕРАКТИВ" — остаётся бейдж + GOS */
}

@media (max-width: 780px) {

  .lp-hero { padding: 48px 0 60px; }
  .lp-hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; padding-top: 20px; }

  .lp-section { padding: 60px 0; }
  .lp-video-section { padding: 60px 0; }
  .lp-video-frame { border-radius: 14px; }
  .lp-video-wrap  { border-radius: 14px; }
  .lp-video-play-circle {
    width: 64px; height: 64px;
    box-shadow: 0 8px 20px -4px rgba(15, 190, 97, 0.5),
                0 0 0 4px rgba(255, 255, 255, 0.18);
  }
  .lp-video-play-circle svg { width: 24px; height: 24px; }
  .lp-video-native { max-height: 70vh; }

  .lp-steps, .lp-features, .lp-tariffs { grid-template-columns: 1fr; }
  .lp-tariffs .lp-tariff:last-child { max-width: 100%; }

  .lp-setup { padding: 28px 22px; }
  .lp-setup-head { flex-direction: column; gap: 8px; }

  .lp-pack-preview { grid-template-columns: 1fr; }
  .lp-packs { grid-template-columns: 1fr; }
  .lp-pack { padding: 24px 22px; }
  .lp-pack-count-num { font-size: 44px; }
  .lp-demo-iframe { height: 560px; }

  .lp-box-right { padding: 28px 22px; }

  .lp-form-wrap { padding: 32px 22px 28px; }

  .lp-footer-top { grid-template-columns: 1fr; gap: 28px; }
}
