/* ============================================================
 * Лендинг (/) — премиум-позиционирование.
 * Подключается только из views/landing.html через <link rel="stylesheet">.
 * Не загружается на остальных страницах панели.
 * ============================================================ */

/* ---------- Фон главного экрана ---------- */
.lp-bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
}
.lp-bg::before {
  content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 700px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(34, 197, 94, .18), transparent 70%);
  filter: blur(40px);
}
.lp-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000, transparent 70%);
          mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000, transparent 70%);
}

/* ---------- Eyebrow (премиум-пилюля над h1) ---------- */
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(34, 197, 94, .08);
  border: 1px solid rgba(34, 197, 94, .3);
  color: #34d399;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
}
.lp-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #34d399; box-shadow: 0 0 12px #34d399;
  animation: lp-pulse 2s ease-in-out infinite;
}
@keyframes lp-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Hero-типографика ---------- */
.lp-h1 {
  font-size: clamp(36px, 6vw, 68px); line-height: 1.05;
  letter-spacing: -0.025em; font-weight: 800; color: #fff;
}
.lp-sub {
  color: #94a3b8;
  font-size: clamp(15px, 1.5vw, 19px); line-height: 1.55;
}

/* ---------- KPI-метрики в hero ---------- */
.lp-stat { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.lp-stat .num {
  color: #fff; font-size: 28px; font-weight: 700; letter-spacing: -.02em;
}
.lp-stat .num .unit { color: #34d399; font-size: 18px; font-weight: 600; margin-left: 2px; }
.lp-stat .lbl {
  color: #64748b; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .08em;
}

/* ---------- Премиальная карточка features (стиль hero dashboard) ---------- */
.lp-card {
  position: relative; padding: 26px 22px; border-radius: 20px;
  background: linear-gradient(180deg, #0f1518 0%, #0a0e10 100%);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 24px 60px -36px rgba(0, 0, 0, .6),
              0 0 0 1px rgba(34, 197, 94, .03);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.lp-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 70% at 50% 0%, rgba(34, 197, 94, .07), transparent 60%);
  opacity: 0; transition: opacity .25s ease;
}
.lp-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, .4);
  box-shadow: 0 20px 40px -20px rgba(34, 197, 94, .25);
}
.lp-card:hover::before { opacity: 1; }
.lp-card .lp-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(34, 197, 94, .18), rgba(34, 197, 94, .06));
  border: 1px solid rgba(34, 197, 94, .3);
  display: flex; align-items: center; justify-content: center;
  color: #34d399; margin-bottom: 18px;
}
.lp-card .lp-icon svg { width: 22px; height: 22px; }
.lp-card h3 {
  color: #fff; font-weight: 600; font-size: 17px;
  margin-bottom: 8px; letter-spacing: -.01em;
}
.lp-card p { color: #94a3b8; font-size: 14px; line-height: 1.55; }

/* ---------- Заголовки секций (стиль hero-eyebrow) ---------- */
.lp-section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(34, 197, 94, .08); border: 1px solid rgba(34, 197, 94, .3);
  color: #34d399; font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 16px;
}
.lp-section-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #34d399; box-shadow: 0 0 10px #34d399;
  animation: lp-pulse 2s ease-in-out infinite;
}
/* Когда eyebrow центрирован в text-center секции — он сам себя выровняет inline-flex. */
.lp-section-h2 {
  font-size: clamp(28px, 4vw, 44px); line-height: 1.1;
  letter-spacing: -.02em; font-weight: 700; color: #fff;
}
.lp-section-sub {
  color: #94a3b8; font-size: 16px; line-height: 1.6; max-width: 640px;
}

/* ---------- Step-num в «Как работает» ---------- */
.lp-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(34, 197, 94, .07);
  border: 1px solid rgba(34, 197, 94, .28);
  color: #34d399; font-weight: 700; font-size: 13px;
  font-family: ui-monospace, Menlo, monospace;
  letter-spacing: .04em;
  flex-shrink: 0;
}

/* ---------- Pricing tier (стиль hero dashboard) ---------- */
.lp-tier {
  position: relative; padding: 30px 26px; border-radius: 22px;
  background: linear-gradient(180deg, #0f1518 0%, #0a0e10 100%);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 28px 70px -36px rgba(0, 0, 0, .7),
              0 0 0 1px rgba(34, 197, 94, .03);
  display: flex; flex-direction: column; gap: 18px;
  transition: all .25s ease;
}
.lp-tier:hover { border-color: rgba(34, 197, 94, .4); transform: translateY(-3px); }
.lp-tier.featured {
  border-color: rgba(34, 197, 94, .55);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, .4),
              0 24px 60px -24px rgba(34, 197, 94, .5);
  background: linear-gradient(180deg, rgba(34, 197, 94, .08) 0%, #0c1213 60%);
}
.lp-tier .tier-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px 12px; border-radius: 999px;
  background: linear-gradient(135deg, #16a34a, #34d399); color: #062012;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.lp-tier .tier-name {
  color: #cbd5e1; font-weight: 600; font-size: 14px; letter-spacing: .02em;
}
.lp-tier .tier-price {
  color: #fff; font-weight: 800; font-size: 38px;
  letter-spacing: -.03em; line-height: 1;
}
.lp-tier .tier-price .tier-rub {
  color: #34d399; font-size: 20px; margin-left: 4px; font-weight: 700;
}
.lp-tier .tier-price .tier-from {
  color: #64748b; font-size: 13px; font-weight: 500;
  display: block; margin-bottom: 4px; letter-spacing: 0;
}
.lp-tier ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.lp-tier li {
  display: flex; gap: 10px; align-items: flex-start;
  color: #cbd5e1; font-size: 14px; line-height: 1.45;
}
.lp-tier li svg { width: 16px; height: 16px; color: #34d399; flex-shrink: 0; margin-top: 2px; }

/* ---------- FAQ accordion — стиль hero ---------- */
.lp-faq {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background: linear-gradient(180deg, #0f1518 0%, #0a0e10 100%);
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, .5);
  transition: border-color .15s;
}
.lp-faq + .lp-faq { margin-top: 10px; }
.lp-faq[open] { border-color: rgba(34, 197, 94, .35); }
.lp-faq summary {
  cursor: pointer; padding: 18px 22px;
  color: #e2e8f0; font-weight: 500; font-size: 15px;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after {
  content: '+'; color: #34d399; font-size: 22px;
  line-height: 0; transform: translateY(-2px); transition: transform .2s;
}
.lp-faq[open] summary::after { content: '−'; }
.lp-faq .faq-body {
  padding: 0 22px 18px 22px;
  color: #94a3b8; font-size: 14px; line-height: 1.6;
}
.lp-faq .faq-body code {
  background: #1b1f2a; padding: 1px 5px; border-radius: 4px; color: #cbd5e1;
}

/* ---------- Final CTA-band (legacy, теперь не используется) ---------- */
.lp-cta-band {
  padding: 56px 32px; border-radius: 28px; text-align: center;
  background: radial-gradient(120% 100% at 50% 0%, rgba(34, 197, 94, .15), #0c1314 70%);
  border: 1px solid rgba(34, 197, 94, .3);
  box-shadow: 0 30px 80px -30px rgba(34, 197, 94, .4);
}

/* ---------- Viewport-fit секции (.lp-screen) ----------
 * Каждая секция занимает минимум высоту экрана и центрирует контент.
 * Если контент длиннее экрана — секция растёт, контент по-прежнему виден целиком.
 * Так разделы воспринимаются «по экрану», а не сплошной лентой.
 */
.lp-screen {
  min-height: 100vh;
  min-height: 100dvh;          /* мобильные: учитывает динамическую UI-панель */
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 767px) {
  /* На мобиле viewport-fit убираем — секции получают авто-высоту,
     иначе короткие блоки выглядят странно полупустыми, а длинные обрезаются. */
  .lp-screen { min-height: auto; padding: 60px 0; }
}

/* ---------- Split-grid финальная секция (две карточки) ---------- */
.lp-final-card {
  position: relative; padding: 36px 32px;
  border-radius: 22px;
  background: linear-gradient(180deg, #11181a 0%, #0c1213 100%);
  border: 1px solid rgba(255, 255, 255, .07);
  display: flex; flex-direction: column; gap: 16px;
  min-height: 360px;
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.lp-final-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 197, 94, .35);
  box-shadow: 0 20px 50px -25px rgba(34, 197, 94, .3);
}
.lp-final-card .lp-final-num {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px; color: rgba(255, 255, 255, .18);
  letter-spacing: .12em; font-weight: 700;
  margin-left: auto;
  flex-shrink: 0;
}
.lp-final-card-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}
.lp-final-card-header .lp-section-eyebrow {
  margin-bottom: 0;
}
.lp-final-card .lp-final-title {
  color: #fff; font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(24px, 3vw, 34px); line-height: 1.1;
}
.lp-final-card .lp-final-text {
  color: #94a3b8; font-size: 14.5px; line-height: 1.6;
  flex: 1;
}
.lp-final-card .lp-final-foot {
  display: flex; align-items: center; gap: 8px;
  color: #64748b; font-size: 12px;
  margin-top: 4px;
}
.lp-final-card .lp-final-foot .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #34d399; box-shadow: 0 0 10px rgba(34, 197, 94, .7);
  animation: lp-pulse 2s ease-in-out infinite;
}
.lp-final-card .lp-final-foot .dot.dot-amber {
  background: #fbbf24; box-shadow: 0 0 10px rgba(251, 191, 36, .7);
}

/* Левая (primary) — emerald-glow по углу */
.lp-final-card.lp-final-primary {
  background: linear-gradient(180deg, rgba(34, 197, 94, .07) 0%, #0c1213 70%);
  border-color: rgba(34, 197, 94, .35);
}
.lp-final-card.lp-final-primary::before {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(34, 197, 94, .25), transparent 70%);
  filter: blur(20px); pointer-events: none;
}

/* Правая (support) — нейтральная, акцент сбоку */
.lp-final-card.lp-final-support::before {
  content: ''; position: absolute; bottom: -100px; left: -100px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(56, 189, 248, .15), transparent 70%);
  filter: blur(20px); pointer-events: none;
}

/* TG-карточка */
.lp-final-card.lp-final-tg {
  background: linear-gradient(180deg, rgba(44, 165, 224, .06) 0%, #0c1213 70%);
  border-color: rgba(44, 165, 224, .22);
}
.lp-final-card.lp-final-tg::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(44, 165, 224, .18), transparent 70%);
  filter: blur(20px); pointer-events: none;
}
.lp-final-card.lp-final-tg:hover {
  border-color: rgba(44, 165, 224, .45);
  box-shadow: 0 20px 50px -25px rgba(44, 165, 224, .2);
}

/* ===========================================================================
 * HERO — 2-колоночный, viewport-fit
 * =========================================================================== */
.lp-hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
}
@media (max-width: 1023px) {
  .lp-hero { padding: 80px 0 50px; min-height: auto; }
}

.lp-hero .lp-h1 { font-size: clamp(34px, 4.8vw, 58px); line-height: 1.05; }
.lp-hero .lp-eyebrow { font-size: 11px; }
@media (max-width: 767px) {
  .lp-hero { padding: 60px 0 40px; text-align: center; }
  .lp-hero .lp-trust {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    justify-items: stretch;
  }
  .lp-hero .lp-trust .pill {
    justify-content: center;
    width: 100%;
  }
  .lp-hero .lp-stat { align-items: center; }

  .lp-card { padding: 16px 14px; border-radius: 14px; }
  .lp-card .lp-icon {
    width: 36px; height: 36px; border-radius: 9px;
    margin-bottom: 12px;
  }
  .lp-card .lp-icon svg { width: 18px; height: 18px; }
  .lp-card h3 { font-size: 13px; margin-bottom: 6px; }
  .lp-card p { font-size: 12px; line-height: 1.5; }
}

/* ---------- Right column: dashboard mock + floating cards ---------- */
.lp-hero-right { position: relative; }

.lp-dash-card {
  position: relative;
  background: linear-gradient(180deg, #0f1518 0%, #0a0e10 100%);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 22px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8),
              0 0 0 1px rgba(34, 197, 94, .04);
  padding: 18px;
  overflow: hidden;
  transform: perspective(1200px) rotateY(-3deg) rotateX(2deg);
  transition: transform .35s ease;
}
.lp-dash-card:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
@media (max-width: 1023px) {
  .lp-dash-card { transform: none; }
}

.lp-dash-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, rgba(34, 197, 94, .07), transparent 60%);
}

.lp-dash-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  margin-bottom: 12px;
}
.lp-dash-title {
  display: flex; align-items: center; gap: 8px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px; color: #94a3b8;
}
.lp-dash-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #34d399; box-shadow: 0 0 10px rgba(34, 197, 94, .8);
  animation: lp-pulse 2s ease-in-out infinite;
}
.lp-dash-time {
  font-size: 10.5px; color: #34d399;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(34, 197, 94, .12);
  border: 1px solid rgba(34, 197, 94, .3);
  letter-spacing: .15em; text-transform: uppercase;
}

.lp-dash-rows { display: flex; flex-direction: column; gap: 6px; }

.lp-dash-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 10px;
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .04);
}

.lp-dash-avatar {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #0b0d12;
}
.lp-dash-avatar.a { background: linear-gradient(135deg, #34d399, #16a34a); }
.lp-dash-avatar.b { background: linear-gradient(135deg, #38bdf8, #0284c7); }
.lp-dash-avatar.c { background: linear-gradient(135deg, #a78bfa, #6d28d9); }
.lp-dash-avatar.d { background: linear-gradient(135deg, #fbbf24, #d97706); }

.lp-dash-info { flex: 1; min-width: 0; }
.lp-dash-name { color: #e2e8f0; font-size: 12.5px; font-weight: 500;
                white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-dash-meta { color: #64748b; font-size: 10.5px; font-family: ui-monospace, Menlo, monospace;
                white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }

.lp-dash-badge {
  font-size: 9.5px; padding: 2px 8px; border-radius: 999px;
  letter-spacing: .08em; text-transform: uppercase; font-weight: 600; flex-shrink: 0;
}
.lp-dash-badge.ok   { background: rgba(34, 197, 94, .15); color: #34d399; }
.lp-dash-badge.warn { background: rgba(251, 191, 36, .15); color: #fbbf24; }

.lp-dash-foot {
  display: flex; align-items: flex-end; gap: 14px;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .05);
}
.lp-dash-foot-l { flex-shrink: 0; }
.lp-dash-kpi-num { color: #fff; font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.lp-dash-kpi-lbl { color: #64748b; font-size: 10.5px; margin-top: 4px;
                   text-transform: uppercase; letter-spacing: .08em; }

.lp-dash-chart {
  flex: 1; height: 50px; align-self: flex-end;
}
.lp-dash-chart svg { width: 100%; height: 100%; }
.lp-chart-area {
  fill: url(#lp-cg);
  opacity: 0;
  animation: lp-chart-fade 3.2s ease-in-out infinite;
}
.lp-chart-line {
  fill: none;
  stroke: #34d399;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(34, 197, 94, .75));
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: lp-chart-draw 3.2s ease-in-out infinite;
}
@keyframes lp-chart-draw {
  0%         { stroke-dashoffset: 260; opacity: 1; }
  70%        { stroke-dashoffset: 0;   opacity: 1; }
  88%, 100%  { stroke-dashoffset: 0;   opacity: 0; }
}
@keyframes lp-chart-fade {
  0%   { opacity: 0; }
  35%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { opacity: 0; }
}

/* ---------- Bot activity feed ---------- */
.lp-bot-shop {
  display: flex; align-items: center; gap: 10px;
  padding: 0 2px 12px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  margin-bottom: 8px;
}
.lp-bot-shop-info { flex: 1; min-width: 0; }
.lp-bot-shop-name { color: #e2e8f0; font-size: 13.5px; font-weight: 600; display: block; }
.lp-bot-shop-bal  { color: #64748b; font-size: 10.5px; font-family: ui-monospace, Menlo, monospace; }

.lp-bot-feed { display: flex; flex-direction: column; }
.lp-bot-event {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 6px 6px; border-radius: 8px;
  transition: background .15s;
}
.lp-bot-event:hover { background: rgba(255,255,255,.025); }

.lp-bot-dot {
  width: 7px; height: 7px; border-radius: 50%;
  flex-shrink: 0; margin-top: 4px;
}
.dot-green { background: #34d399; box-shadow: 0 0 7px rgba(52,211,153,.65); }
.dot-gold  { background: #fbbf24; box-shadow: 0 0 7px rgba(251,191,36,.55); }
.dot-blue  { background: #60a5fa; box-shadow: 0 0 7px rgba(96,165,250,.5); }
.dot-slate { background: #475569; }

.lp-bot-time {
  color: #475569; font-size: 10px; font-family: ui-monospace, Menlo, monospace;
  flex-shrink: 0; margin-top: 2px; width: 34px;
}
.lp-bot-body { flex: 1; min-width: 0; }
.lp-bot-text { color: #cbd5e1; font-size: 12px; font-weight: 500; line-height: 1.3; }
.lp-bot-sub  {
  color: #475569; font-size: 10.5px;
  font-family: ui-monospace, Menlo, monospace;
  margin-top: 1px; line-height: 1.3;
}

/* ---------- Плавающие плашки поверх dashboard ---------- */
.lp-float {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(11, 16, 18, .9);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  border: 1px solid rgba(34, 197, 94, .35);
  border-radius: 12px;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .8);
  animation: lp-float 4s ease-in-out infinite;
}
.lp-float-a { top: -10px; left: -22px; animation-delay: 0s; }
.lp-float-b { bottom: 30px; right: -28px; animation-delay: 1.2s; }
@keyframes lp-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.lp-float-icon {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(34, 197, 94, .15); color: #34d399;
}
.lp-float-icon svg { width: 16px; height: 16px; }
.lp-float-icon.icon-amber { background: rgba(251, 191, 36, .15); color: #fbbf24; }
.lp-float-title { color: #fff; font-size: 12px; font-weight: 600; }
.lp-float-sub   { color: #64748b; font-size: 10.5px; margin-top: 1px; }

@media (max-width: 1023px) {
  .lp-float-a { top: -8px; left: 8px; }
  .lp-float-b { bottom: 8px; right: 8px; }
}
@media (max-width: 480px) {
  .lp-float { padding: 7px 10px; }
  .lp-float-title { font-size: 11px; }
  .lp-float-sub { display: none; }
}

/* ---------- Сжатие огромных пустот между секциями ---------- */
.lp-screen { padding: 40px 0; position: relative; }
.lp-screen > div { padding-top: 20px !important; padding-bottom: 20px !important; }
hr.lp-divider { margin: 0 auto; }

/* Каждая секция получает мягкий emerald-glow по центру/углу (стиль hero) */
.lp-screen::before {
  content: ''; position: absolute; pointer-events: none; z-index: -1;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 80%; max-width: 900px; height: 360px;
  background: radial-gradient(closest-side, rgba(34, 197, 94, .08), transparent 70%);
  filter: blur(40px);
  opacity: .8;
}
#how.lp-screen::before     { top: 50%; transform: translate(-50%, -50%); }
#features.lp-screen::before { top: -60px; }
#pricing.lp-screen::before { bottom: -60px; top: auto; }
#faq.lp-screen::before     { top: 30%; }

/* ===========================================================================
 * Заполнение пустоты — дополнительные блоки в каждой секции
 * =========================================================================== */

/* ---------- Tech-stack полоса (features) — стиль hero ---------- */
.lp-stack-strip {
  padding: 24px 24px;
  border-radius: 18px;
  background: linear-gradient(180deg, #0f1518 0%, #0a0e10 100%);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 24px 60px -36px rgba(0, 0, 0, .6);
}
.lp-stack-strip-label {
  font-size: 11px; color: #64748b; text-transform: uppercase;
  letter-spacing: .12em; text-align: center; margin-bottom: 14px;
}
.lp-stack-strip-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.lp-stack-chip {
  display: flex; align-items: center; justify-content: center;
  padding: 7px 14px; border-radius: 999px;
  background: #0f1518;
  border: 1px solid rgba(255, 255, 255, .08);
  color: #cbd5e1; font-size: 12.5px; font-weight: 500;
  text-align: center;
  transition: all .15s ease;
}
.lp-stack-chip:hover { border-color: rgba(34,197,94,.4); color: #34d399; }

/* ---------- HOW: timeline + step-time бейдж ---------- */
.lp-how-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
}
.lp-how-grid::before {
  content: ''; position: absolute; top: 50px; left: 8%; right: 8%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(34,197,94,.35), transparent);
  pointer-events: none; z-index: 0;
  opacity: 0; transition: opacity 0.8s ease 0.3s;
}
.lp-how-grid.line-visible::before { opacity: 1; }
.lp-how-card { position: relative; z-index: 1; }
.lp-how-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.lp-how-time {
  font-size: 11px; color: #34d399; font-family: ui-monospace, Menlo, monospace;
  padding: 3px 8px; border-radius: 6px;
  background: rgba(34, 197, 94, .12);
  border: 1px solid rgba(34, 197, 94, .25);
}
@media (max-width: 767px) {
  .lp-how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-how-grid::before { display: none; }
}

/* ---------- Mini-cards (how / pricing) — стиль hero ---------- */
.lp-mini-card {
  padding: 20px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #0f1518 0%, #0a0e10 100%);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, .6);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  transition: border-color .15s ease, transform .15s ease;
}
.lp-mini-card:hover { transform: translateY(-2px); }
.lp-mini-card:hover { border-color: rgba(34,197,94,.35); }
.lp-mini-num {
  color: #fff; font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -.02em;
  background: linear-gradient(135deg, #fff, #34d399);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lp-mini-lbl { color: #94a3b8; font-size: 12px; line-height: 1.35; }
.lp-mini-ico { width: 22px; height: 22px; color: #34d399; }

/* ---------- Pricing — guarantee-полоса ---------- */
.lp-guarantee {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(34, 197, 94, .08), rgba(34, 197, 94, 0));
  border: 1px solid rgba(34, 197, 94, .25);
}
.lp-guarantee-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(34, 197, 94, .15); color: #34d399;
}
.lp-guarantee-icon svg { width: 22px; height: 22px; }
.lp-guarantee-title { color: #fff; font-weight: 600; font-size: 15px; }
.lp-guarantee-text  { color: #94a3b8; font-size: 13px; margin-top: 3px; line-height: 1.4; }

@media (max-width: 480px) {
  .lp-guarantee { flex-direction: column; text-align: center; padding: 16px; }
}

/* ---------- FAQ CTA — стиль hero dashboard ---------- */
.lp-faq-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(34,197,94,.07) 0%, #0a0e10 70%);
  border: 1px solid rgba(34, 197, 94, .35);
  box-shadow: 0 24px 60px -32px rgba(34, 197, 94, .3);
}
.lp-faq-cta-title { color: #fff; font-weight: 600; font-size: 15px; }
.lp-faq-cta-text  { color: #94a3b8; font-size: 13px; margin-top: 3px; }
@media (max-width: 480px) {
  .lp-faq-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .lp-faq-cta a { text-align: center; }
}

/* ---------- Stack section: benchmarks (стиль hero) ---------- */
.lp-bench {
  padding: 20px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #0f1518, #0a0e10);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, .6);
  text-align: center;
  transition: border-color .15s ease, transform .15s ease;
}
.lp-bench:hover { transform: translateY(-2px); }
.lp-bench:hover { border-color: rgba(34,197,94,.4); }
.lp-bench-num {
  color: #fff; font-weight: 800; font-size: 28px; line-height: 1;
  letter-spacing: -.03em;
}
.lp-bench-num span { color: #34d399; font-size: 14px; margin-left: 2px; font-weight: 600; }
.lp-bench-lbl { color: #94a3b8; font-size: 11.5px; margin-top: 6px; line-height: 1.35; }

/* ===========================================================================
 * MOBILE OPTIMIZATION (≤ 767px) для всех новых блоков
 * =========================================================================== */
@media (max-width: 767px) {
  .lp-screen { padding: 30px 0; }
  .lp-screen > div { padding-top: 12px !important; padding-bottom: 12px !important; }
  .lp-section-h2 { font-size: 24px !important; line-height: 1.15; }
  .lp-section-sub { font-size: 14px; }

  /* Stack chips: 3 columns overflows on 375px (cells ~90px, chips ~108px) → 2 cols */
  .lp-stack-strip { padding: 16px 14px; }
  .lp-stack-strip-row { grid-template-columns: repeat(2, 1fr); }
  .lp-stack-chip { font-size: 11.5px; padding: 5px 10px; }

  /* Hero h1: clamp(34px,4.8vw,58px) = 34px on 375px; "Премиальная платформа" overflows line */
  .lp-hero .lp-h1 { font-size: 28px !important; line-height: 1.1; }

  /* Benchmarks: 3 tight columns on small phones — 1 col stacked */
  .lp-bench-grid { grid-template-columns: 1fr !important; }

  .lp-mini-num { font-size: 22px; }
  .lp-mini-lbl { font-size: 11.5px; }
  .lp-mini-card { padding: 12px 10px; }

  .lp-bench { padding: 14px 10px; }
  .lp-bench-num { font-size: 22px; }
  .lp-bench-num span { font-size: 12px; }
  .lp-bench-lbl { font-size: 11px; }

  /* Dashboard card: compact on single-column layout */
  .lp-dash-card { padding: 14px; border-radius: 14px; }
  .lp-dash-row { padding: 7px 8px; gap: 8px; }
  .lp-dash-foot { gap: 10px; margin-top: 10px; padding-top: 10px; }
  .lp-dash-kpi-num { font-size: 18px; }
  .lp-dash-chart { height: 40px; }

  .lp-guarantee-title, .lp-faq-cta-title { font-size: 14px; }
  .lp-guarantee-text,  .lp-faq-cta-text  { font-size: 12.5px; }

  hr.lp-divider { margin: 8px auto; }

  /* Floating badges cover KPI stats and dash-card header on single-column layout. */
  .lp-float { display: none !important; }

  /* Hero-right: top gap when stacked below text */
  .lp-hero-right { margin-top: 28px; }

  /* CTA support card: long email/text must not overflow button */
  .lp-final-card a.btn-ghost,
  .lp-final-card a.btn-primary {
    word-break: break-word;
    overflow-wrap: anywhere;
    font-size: 12.5px;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* Final cards: compact on small screens, single column, custom order */
  .lp-final-card { padding: 24px 20px; min-height: auto; }
  .lp-final-card .lp-final-num { font-size: 11px; }
  .lp-final-card .lp-section-eyebrow { align-self: flex-start; }
  .lp-final-grid { display: flex !important; flex-direction: column !important; gap: 16px !important; }
  .lp-final-tg      { order: 1; }
  .lp-final-support { order: 2; }
  .lp-final-primary { order: 3; }

  /* Terminal: prevent monospace code overflow */
  .lp-terminal .term-body { font-size: 11.5px; padding: 16px; word-break: break-all; }

  /* Pricing tiers: 2+1 layout on mobile */
  .lp-tier { padding: 16px 12px; border-radius: 14px; gap: 10px; }
  .lp-tier .tier-name { font-size: 12px; }
  .lp-tier .tier-price { font-size: 22px; }
  .lp-tier .tier-price .tier-rub { font-size: 11px; margin-left: 2px; }
  .lp-tier .tier-price .tier-from { font-size: 10px; margin-bottom: 2px; }
  .lp-tier ul { gap: 6px; }
  .lp-tier li { font-size: 11px; gap: 6px; line-height: 1.35; }
  .lp-tier li svg { width: 12px; height: 12px; margin-top: 1px; flex-shrink: 0; }
  .lp-tier .tier-badge { font-size: 9px; padding: 3px 8px; top: -10px; }
  .lp-tier a.btn-ghost,
  .lp-tier a.btn-primary { font-size: 11px; padding: 8px 6px; border-radius: 10px; text-align: center; }
  .lp-tier .tier-price[style] { font-size: 18px !important; }
  /* Бизнес-карточка горизонтальная на мобиле */
  .lp-tier.col-span-2 ul { columns: 2; gap: 12px; }
  .lp-tier.col-span-2 ul li { break-inside: avoid; }
}


/* ===========================================================================
 * EXTRA SMALL SCREENS (≤ 480px) — iPhone SE, Galaxy A-series
 * =========================================================================== */
@media (max-width: 480px) {
  /* h1 even smaller — "Премиальная платформа" at 34px = 411px in 280px container */
  .lp-hero .lp-h1 { font-size: 24px !important; }

  /* Benchmarks: 1-col already from 767px block, but ensure it on very small too */
  .lp-bench-grid { grid-template-columns: 1fr !important; }
  /* Lay them out horizontally instead — row feels less bloated */
  .lp-bench { display: flex; align-items: center; gap: 14px; text-align: left; }
  .lp-bench-num { font-size: 26px; flex-shrink: 0; }
  .lp-bench-lbl { font-size: 12px; line-height: 1.3; }

  /* Stack chips: ensure 2-col at 480px */
  .lp-stack-strip-row { grid-template-columns: repeat(2, 1fr); }

  /* Dash card: hide last row (bar chart + KPI) to reduce hero-right height */
  .lp-dash-foot { display: none; }

  /* Pricing: collapse to 1-col on very small screens to avoid cramped 2-col */
  .lp-tier.col-span-2 ul { columns: 1; }
}

/* ===========================================================================
 * SCROLL REVEAL
 * =========================================================================== */
.lp-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.lp-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.lp-reveal[data-delay="0"] { transition-delay: 0.00s; }
.lp-reveal[data-delay="1"] { transition-delay: 0.10s; }
.lp-reveal[data-delay="2"] { transition-delay: 0.20s; }
.lp-reveal[data-delay="3"] { transition-delay: 0.30s; }

/* ===========================================================================
 * DESKTOP PAGE BACKGROUND DECORATIONS (≥ 768px only)
 * =========================================================================== */
@media (min-width: 768px) {
  .lp-page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
  }
  .lp-page-bg-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(ellipse 120% 100% at 50% 40%, #000 10%, transparent 75%);
            mask-image: radial-gradient(ellipse 120% 100% at 50% 40%, #000 10%, transparent 75%);
  }
  .lp-page-bg-orb-1 {
    position: absolute;
    width: 700px; height: 700px;
    left: -280px; top: 8%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(34,197,94,0.08), transparent);
    filter: blur(80px);
  }
  .lp-page-bg-orb-2 {
    position: absolute;
    width: 600px; height: 600px;
    right: -220px; top: 42%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(34,197,94,0.06), transparent);
    filter: blur(90px);
  }
  .lp-page-bg-orb-3 {
    position: absolute;
    width: 500px; height: 500px;
    left: 25%; bottom: 8%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(34,197,94,0.05), transparent);
    filter: blur(70px);
  }
  .lp-page-bg-lines {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(90deg, rgba(34,197,94,0.03) 1px, transparent 1px),
      linear-gradient(rgba(34,197,94,0.02) 1px, transparent 1px);
    background-size: 80px 80px;
  }
}

/* ---------- Тонкий разделитель ---------- */
.lp-divider {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .1), transparent);
}

/* ---------- Trust-strip пилюли ---------- */
.lp-trust {
  display: flex; gap: 10px 22px; flex-wrap: wrap;
  justify-content: center; align-items: center;
}
.lp-trust .pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #94a3b8; font-size: 12.5px;
}
.lp-trust .pill svg { width: 13px; height: 13px; color: #34d399; }

/* ---------- Terminal-mock (stack section) ---------- */
.lp-terminal {
  padding: 0; overflow: hidden;
}
.lp-terminal .term-head {
  background: #0a0e10; padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  display: flex; gap: 8px; align-items: center;
}
.lp-terminal .term-head .dot {
  width: 11px; height: 11px; border-radius: 50%;
}
.lp-terminal .term-head .dot.r { background: #ff5f57; }
.lp-terminal .term-head .dot.y { background: #febc2e; }
.lp-terminal .term-head .dot.g { background: #28c840; }
.lp-terminal .term-head .term-title {
  margin-left: 12px; color: #64748b; font-size: 12px;
  font-family: ui-monospace, Menlo, monospace;
}
.lp-terminal .term-body {
  padding: 22px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12.5px; line-height: 1.7; color: #cbd5e1;
}
.lp-terminal .term-body .ok    { color: #34d399; }
.lp-terminal .term-body .muted { color: #64748b; }
.lp-terminal .term-body .warn  { color: #fbbf24; }
.lp-terminal .term-body .summary { margin-top: 10px; color: #34d399; }
