/* SEO landing pages v3 — modern SaaS layout (extends landing.css) */

.lp-page {
  --lp-accent: var(--accent, #F97316);
  --lp-accent-soft: color-mix(in srgb, var(--lp-accent) 12%, transparent);
  --lp-accent-ring: color-mix(in srgb, var(--lp-accent) 28%, transparent);
  --lp-section-gap: clamp(56px, 8vw, 96px);
  --lp-radius: 16px;
  --lp-radius-sm: 12px;
  --lp-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --lp-shadow-lg: 0 4px 6px rgba(15, 23, 42, 0.04), 0 24px 48px rgba(15, 23, 42, 0.08);
  --lp-border: var(--border);
  --lp-surface: var(--bg-card);
  --lp-deep: var(--surface);
  --lp-muted: var(--text-muted);
  --lp-text: var(--text-main);
  --lp-footer-bg: #121416;
  --lp-footer-fg: rgba(255, 255, 255, 0.78);
  --lp-footer-fg-muted: rgba(255, 255, 255, 0.58);
  --lp-footer-fg-subtle: rgba(255, 255, 255, 0.45);
  --lp-footer-border: rgba(255, 255, 255, 0.12);
  --lp-max: 1120px;
  --lp-nav-h: calc(72px + env(safe-area-inset-top, 0px));
  background: var(--lp-deep);
  overflow-x: clip;
  padding-top: var(--lp-nav-h);
}

/* ИСПРАВЛЕНИЕ (2026-07-15): SEO/блог — тёмная тема через tokens.css (--bg-card, --border и т.д.) */
html.dark-theme .lp-page {
  --lp-deep: var(--bg-deep);
  --lp-footer-bg: #0a0c0f;
  --lp-footer-fg: rgba(243, 244, 246, 0.82);
  --lp-footer-fg-muted: rgba(243, 244, 246, 0.62);
  --lp-footer-fg-subtle: rgba(243, 244, 246, 0.48);
  --lp-footer-border: rgba(255, 255, 255, 0.1);
  --lp-shadow: 0 1px 2px rgba(0, 0, 0, 0.28), 0 8px 24px rgba(0, 0, 0, 0.38);
  --lp-shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.32), 0 24px 48px rgba(0, 0, 0, 0.42);
}
html.dark-theme .lp-page .lp-compare-table .lp-col-yes {
  color: var(--badge-success-fg, #34d399);
}
html.dark-theme .lp-page .lp-cta-strip {
  background: linear-gradient(
    135deg,
    var(--bg-card) 0%,
    color-mix(in srgb, var(--accent) 32%, var(--bg-card)) 100%
  );
  border: 1px solid var(--lp-border);
}
html.dark-theme .lp-page .lp-faq-q::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* ИСПРАВЛЕНИЕ (2026-07-15): fixed nav — sticky ломается из-за overflow-x:clip на body.lp-page */
body.lp-page > nav.landing-nav,
body.lp-page > nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 200;
  transform: none !important;
}
body.lp-page > nav.landing-nav.nav-hidden,
body.lp-page > nav.nav-hidden {
  transform: none !important;
}

body.lp-page .nav-inner {
  min-width: 0;
  flex-wrap: nowrap;
}
body.lp-page .nav-logo {
  min-width: 0;
  max-width: 45%;
}
body.lp-page .nav-logo-mark {
  flex-shrink: 0;
}
body.lp-page .nav-drawer {
  min-width: 0;
  flex-shrink: 1;
}
body.lp-page .nav-links {
  gap: clamp(16px, 2.5vw, 32px);
}
body.lp-page .nav-links a {
  white-space: nowrap;
}
body.lp-page .nav-cta {
  flex-shrink: 0;
}
@media (max-width: 960px) {
  body.lp-page .nav-links,
  body.lp-page .nav-cta .btn-outline {
    display: none;
  }
  body.lp-page .nav-toggle {
    display: flex;
  }
  body.lp-page .nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(280px, 82vw);
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 0 0 calc(24px + env(safe-area-inset-bottom, 0px));
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
    z-index: 160;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.2s ease;
    overflow-y: auto;
    visibility: hidden;
    pointer-events: none;
  }
  body.nav-open.lp-page .nav-drawer,
  body.lp-page.nav-open .nav-drawer {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  body:not(.nav-open).lp-page .nav-drawer {
    width: 0;
    min-width: 0;
    padding: 0;
    border: none;
    overflow: hidden;
  }
  body.lp-page .nav-drawer-header,
  body.lp-page .nav-drawer-divider {
    display: flex !important;
  }
  body.lp-page .nav-drawer-divider {
    display: block !important;
  }
  body.lp-page .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    flex: 0;
    padding: 8px 12px;
  }
  body.lp-page .nav-cta {
    flex-direction: column;
    padding: 0 12px;
    gap: 8px;
  }
  body.lp-page .nav-cta .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }
}

.lp-page .container {
  width: 100%;
  max-width: var(--lp-max, 1120px);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 24px);
}

.lp-faq > .container {
  display: flex;
  flex-direction: column;
}

.lp-section > .container {
  width: 100%;
}

.lp-page main {
  overflow-x: clip;
}

/* ── Breadcrumb ── */
.lp-breadcrumb-bar {
  background: var(--lp-surface);
  border-bottom: 1px solid var(--lp-border);
  padding: 12px 0;
}
.lp-breadcrumb {
  font-size: 13px;
}
.lp-breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  list-style: none;
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--lp-deep);
  border: 1px solid var(--lp-border);
  width: fit-content;
  max-width: 100%;
}
.lp-breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  color: var(--lp-muted);
  font-weight: 500;
}
.lp-breadcrumb-list li:not(:last-child)::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin: 0 6px;
  opacity: 0.4;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lp-breadcrumb-list li[aria-current="page"] {
  color: var(--lp-text);
  font-weight: 600;
}
.lp-breadcrumb-list a {
  color: var(--lp-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.lp-breadcrumb-list a:hover { color: var(--lp-accent); }

/* ── Sections ── */
.lp-section {
  padding: var(--lp-section-gap) 0;
  position: relative;
}
.lp-section--surface {
  background: var(--lp-surface);
  border-block: 1px solid var(--lp-border);
}
.lp-section--tint {
  background: linear-gradient(180deg, var(--lp-surface) 0%, var(--lp-deep) 100%);
}
.lp-section--narrow .container { max-width: 760px; }
.lp-section__head {
  max-width: 640px;
  margin-bottom: clamp(28px, 4vw, 40px);
}
.lp-section__head--center {
  text-align: center;
  margin-inline: auto;
}

/* auto-style bare sections in main (legacy markup) */
.lp-page main > section:not(.lp-hero):not(.lp-section):not(.lp-faq):not(.lp-limits) {
  padding: var(--lp-section-gap) 0;
}
.lp-page main > section:not(.lp-hero):not(.lp-section):not(.lp-faq):not(.lp-limits):nth-of-type(even) {
  background: var(--lp-surface);
  border-block: 1px solid var(--lp-border);
}

/* ── Typography ── */
.lp-eyebrow,
.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lp-accent);
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--lp-accent-soft);
  border: 1px solid var(--lp-accent-ring);
}
.lp-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.125rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  color: var(--lp-text);
}
.lp-section-sub,
.lp-lead {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.65;
  color: var(--lp-muted);
  max-width: 42rem;
}
.lp-section-sub { margin-bottom: 0; }
.lp-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--lp-muted);
  max-width: 42rem;
}
.lp-text + .lp-text { margin-top: 12px; }
.lp-text--narrow { max-width: 36rem; }

/* ── Hero ── */
.lp-hero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 80px);
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, var(--lp-accent-soft), transparent 70%),
    var(--lp-surface);
  border-bottom: 1px solid var(--lp-border);
}
.lp-hero--compact { padding-block: clamp(36px, 5vw, 56px); }
.lp-hero-grid {
  display: grid;
  gap: clamp(32px, 5vw, 48px);
  align-items: center;
}
@media (min-width: 900px) {
  .lp-hero-grid--split { grid-template-columns: 1.05fr 0.95fr; }
}
.lp-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4.5vw, 3.25rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--lp-text);
}
.lp-hero .lp-lead { max-width: 36rem; }
.lp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 32px);
}
.lp-hero-actions .btn {
  min-height: 48px;
  padding-inline: 22px;
  font-size: 15px;
  border-radius: var(--lp-radius-sm);
}
.lp-trust-line {
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--lp-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.lp-trust-line::before {
  content: '';
  display: none;
}

/* Hero visual / mock */
.lp-hero-visual { position: relative; }
.lp-mock {
  border-radius: var(--lp-radius);
  border: 1px solid var(--lp-border);
  background: var(--lp-surface);
  padding: clamp(16px, 3vw, 24px);
  box-shadow: var(--lp-shadow-lg);
  position: relative;
  overflow: hidden;
}
.lp-mock::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--lp-accent-soft) 0%, transparent 55%);
  pointer-events: none;
}
.lp-mock-header {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 16px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lp-mock-header::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lp-accent);
  flex-shrink: 0;
  box-shadow: none;
}
.lp-mock-dots {
  display: inline-flex;
  gap: 5px;
  margin-right: 4px;
}
.lp-mock-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--lp-accent) 55%, transparent);
}
.lp-mock-dots span:first-child { background: var(--lp-accent); }
.lp-mock-row {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 8px;
  background: var(--lp-deep);
  font-size: 14px;
  line-height: 1.45;
  position: relative;
  border: 1px solid transparent;
}
.lp-mock-row--active {
  background: var(--lp-accent-soft);
  border-color: var(--lp-accent-ring);
  font-weight: 500;
}

/* ── Stats strip ── */
.lp-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) {
  .lp-stats { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
.lp-stat {
  padding: clamp(16px, 3vw, 24px);
  border-radius: var(--lp-radius);
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  box-shadow: var(--lp-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.lp-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--lp-shadow-lg);
}
.lp-stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--lp-accent);
  letter-spacing: -0.02em;
}
.lp-stat-label {
  font-size: 13px;
  line-height: 1.45;
  color: var(--lp-muted);
  margin-top: 6px;
}

/* ── Feature / pain cards ── */
.lp-pain-grid,
.lp-feature-grid {
  display: grid;
  gap: 20px;
  counter-reset: lp-card;
}
@media (min-width: 640px) {
  .lp-pain-grid,
  .lp-feature-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (min-width: 960px) {
  .lp-pain-grid--3,
  .lp-feature-grid--3 { grid-template-columns: repeat(3, 1fr); }
}
.lp-pain-card,
.lp-feature-card {
  position: relative;
  isolation: isolate;
  padding: clamp(24px, 3.5vw, 32px);
  border-radius: var(--lp-radius);
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  box-shadow: var(--lp-shadow);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  height: 100%;
  overflow: hidden;
}
.lp-pain-card::before,
.lp-feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, var(--lp-accent-soft) 0%, transparent 55%);
  opacity: 0.35;
  z-index: 0;
}
.lp-pain-card::after,
.lp-feature-card:not(:has(.lp-feature-card__icon))::after {
  counter-increment: lp-card;
  content: counter(lp-card, decimal-leading-zero);
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--lp-accent);
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--lp-accent-soft);
  border: 1px solid var(--lp-accent-ring);
  z-index: 1;
}
.lp-pain-card:hover,
.lp-feature-card:hover {
  border-color: color-mix(in srgb, var(--lp-accent) 30%, var(--lp-border));
  box-shadow: var(--lp-shadow-lg);
  transform: translateY(-4px);
}
.lp-pain-card:hover::before,
.lp-feature-card:hover::before { opacity: 0.55; }
.lp-feature-card__icon {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 18px;
  background: var(--lp-accent-soft);
  border: 1px solid var(--lp-accent-ring);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--lp-accent) 12%, transparent);
}
.lp-pain-card h3,
.lp-feature-card h3 {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--lp-text);
  padding-right: 48px;
}
.lp-pain-card p,
.lp-feature-card p {
  position: relative;
  z-index: 1;
  color: var(--lp-muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

/* Fit / not-fit columns */
.lp-fit-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 768px) {
  .lp-fit-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
.lp-fit-card {
  padding: clamp(24px, 4vw, 32px);
  border-radius: var(--lp-radius);
  border: 1px solid var(--lp-border);
  background: var(--lp-surface);
  box-shadow: var(--lp-shadow);
  height: 100%;
}
.lp-fit-card--yes {
  border-color: color-mix(in srgb, #059669 25%, var(--lp-border));
  background: linear-gradient(180deg, color-mix(in srgb, #059669 6%, var(--lp-surface)) 0%, var(--lp-surface) 100%);
}
.lp-fit-card--no {
  border-color: color-mix(in srgb, #6366f1 20%, var(--lp-border));
  background: linear-gradient(180deg, color-mix(in srgb, #6366f1 5%, var(--lp-surface)) 0%, var(--lp-surface) 100%);
}
.lp-fit-card h3 {
  font-size: 1.125rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lp-fit-card--yes h3::before { content: '\2713'; color: #059669; font-weight: 700; }
.lp-fit-card--no h3::before { content: '→'; color: #6366f1; font-weight: 700; }

/* ── Callout ── */
.lp-callout {
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--lp-radius);
  border: 1px solid var(--lp-accent-ring);
  background: var(--lp-accent-soft);
  margin: 24px 0;
}
.lp-callout p {
  margin: 0;
  color: var(--lp-text);
  line-height: 1.65;
  font-size: 15px;
}
.lp-limits {
  padding: var(--lp-section-gap) 0;
  background: var(--lp-surface);
  border-block: 1px solid var(--lp-border);
}
.lp-limits h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: 16px;
}
.lp-limits ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
  max-width: 42rem;
}
.lp-limits li {
  padding-left: 24px;
  position: relative;
  color: var(--lp-muted);
  line-height: 1.6;
  font-size: 15px;
}
.lp-limits li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lp-accent);
}

/* ── Comparison table ── */
.lp-compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px;
  padding: 4px;
}
.lp-compare-table {
  width: 100%;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  overflow: hidden;
  background: var(--lp-surface);
  box-shadow: var(--lp-shadow);
}
.lp-compare-table thead {
  background: var(--lp-deep);
}
.lp-compare-table th,
.lp-compare-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--lp-border);
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}
.lp-compare-table tr:last-child td { border-bottom: none; }
.lp-compare-table th {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--lp-muted);
}
.lp-compare-table td:first-child {
  font-weight: 600;
  color: var(--lp-text);
  background: color-mix(in srgb, var(--lp-deep) 50%, var(--lp-surface));
}
.lp-compare-table .lp-col-yes { color: #047857; }
.lp-compare-table .lp-col-muted { color: var(--lp-muted); }

@media (max-width: 767px) {
  .lp-compare-wrap { overflow: visible; }
  .lp-compare-table,
  .lp-compare-table thead,
  .lp-compare-table tbody,
  .lp-compare-table tr,
  .lp-compare-table td,
  .lp-compare-table th {
    display: block;
    width: 100%;
  }
  .lp-compare-table thead { display: none; }
  .lp-compare-table tr {
    margin-bottom: 16px;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-sm);
    overflow: hidden;
    box-shadow: var(--lp-shadow);
    background: var(--lp-surface);
  }
  .lp-compare-table td {
    border: none;
    border-bottom: 1px solid var(--lp-border);
    padding: 12px 16px;
    background: transparent;
  }
  .lp-compare-table td:last-child { border-bottom: none; }
  .lp-compare-table td:first-child {
    background: var(--lp-deep);
    font-size: 15px;
    padding-top: 14px;
  }
  .lp-compare-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--lp-muted);
    margin-bottom: 4px;
  }
  /* 2-col tables without data-label: use nth-child hints */
  .lp-compare-table--2col td:nth-child(2)::before {
    content: 'Решение';
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--lp-muted);
    margin-bottom: 4px;
  }
}

/* ── Steps / scenarios ── */
.lp-scenarios { padding: 0; }
.lp-scenario-track {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 12px;
  position: relative;
  padding-left: 28px;
}
.lp-scenario-track::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--lp-accent) 0%,
    color-mix(in srgb, var(--lp-accent) 35%, var(--lp-border)) 100%
  );
  border-radius: 2px;
}
.lp-scenario {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  position: relative;
  padding: 0;
  margin: 0;
}
@media (min-width: 768px) {
  .lp-scenario {
    grid-template-columns: minmax(120px, 148px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
  }
}
.lp-scenario::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lp-accent);
  box-shadow: 0 0 0 4px var(--lp-accent-soft);
  z-index: 1;
}
.lp-scenario-time {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  color: var(--lp-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--lp-accent-soft);
  border: 1px solid var(--lp-accent-ring);
  width: 100%;
  max-width: 148px;
  line-height: 1.35;
  text-align: center;
}
.lp-scenario-body {
  padding: clamp(18px, 2.5vw, 24px);
  border-radius: var(--lp-radius-sm);
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  box-shadow: var(--lp-shadow);
  min-width: 0;
}
.lp-scenario > div:not(.lp-scenario-time):not(.lp-scenario-body) {
  padding: clamp(18px, 2.5vw, 24px);
  border-radius: var(--lp-radius-sm);
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  box-shadow: var(--lp-shadow);
  min-width: 0;
}
.lp-scenario h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  color: var(--lp-text);
}
.lp-scenario-body h3 { margin-top: 0; }
.lp-scenario > div:not(.lp-scenario-time):not(.lp-scenario-body) h3 { margin-top: 0; }
.lp-scenario p {
  color: var(--lp-muted);
  line-height: 1.65;
  font-size: 15px;
  margin: 0;
}

/* ── Checklist ── */
.lp-checklist {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.lp-checklist li {
  padding-left: 28px;
  position: relative;
  color: var(--lp-muted);
  font-size: 15px;
  line-height: 1.55;
}
.lp-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--lp-accent-soft);
  border: 1px solid var(--lp-accent-ring);
}
.lp-checklist li::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 5px;
  width: 5px;
  height: 9px;
  border: solid var(--lp-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ── FAQ ── */
.lp-faq {
  padding: var(--lp-section-gap) 0;
  background: linear-gradient(180deg, var(--lp-deep) 0%, var(--lp-surface) 40%, var(--lp-surface) 100%);
  border-block: 1px solid var(--lp-border);
}
.lp-faq .lp-section__head {
  max-width: 560px;
  margin-bottom: clamp(28px, 4vw, 40px);
}
.lp-faq-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
}
.lp-faq-item {
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  background: var(--lp-surface);
  overflow: hidden;
  box-shadow: var(--lp-shadow);
  transition: border-color 0.2s, box-shadow 0.25s;
}
.lp-faq-item:hover {
  border-color: color-mix(in srgb, var(--lp-accent) 25%, var(--lp-border));
}
.lp-faq-item.open {
  border-color: color-mix(in srgb, var(--lp-accent) 35%, var(--lp-border));
  box-shadow: var(--lp-shadow-lg);
}
.lp-faq-q {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.45;
  margin: 0;
  padding: 20px 52px 20px 20px;
  color: var(--lp-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
  position: relative;
}
button.lp-faq-q { cursor: pointer; }
.lp-faq-q::after {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  opacity: 0.45;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s, opacity 0.2s;
}
.lp-faq-item.open .lp-faq-q::after {
  transform: rotate(180deg);
  opacity: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f97316' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.lp-faq-item.open .lp-faq-q { color: var(--lp-accent); }
.lp-faq-a {
  color: var(--lp-muted);
  line-height: 1.7;
  font-size: 15px;
  margin: 0;
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.lp-faq-item.open .lp-faq-a {
  max-height: 480px;
  padding: 0 20px 20px;
}

/* ── In-page CTA strip ── */
.lp-cta-strip {
  padding: clamp(32px, 5vw, 48px);
  border-radius: var(--lp-radius);
  background: linear-gradient(135deg, var(--lp-text) 0%, color-mix(in srgb, var(--lp-text) 85%, var(--lp-accent)) 100%);
  color: #fff;
  text-align: center;
  box-shadow: var(--lp-shadow-lg);
}
.lp-cta-strip .lp-section-title {
  color: #fff;
  margin-bottom: 12px;
}
.lp-cta-strip .lp-text {
  color: rgba(255, 255, 255, 0.82);
  margin-inline: auto;
  max-width: 36rem;
}
.lp-cta-strip .lp-hero-actions {
  justify-content: center;
  margin-top: 24px;
}

/* ── Related + final CTA (from render.py) ── */
.lp-related {
  padding: clamp(48px, 7vw, 72px) 0;
  background: var(--lp-deep);
  border-top: 1px solid var(--lp-border);
}
.lp-related-header {
  margin-bottom: clamp(24px, 4vw, 32px);
}
.lp-related-header .lp-eyebrow { margin-bottom: 10px; }
.lp-related-title {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--lp-text);
}
.lp-related-grid {
  display: grid;
  gap: 12px;
}
@media (min-width: 640px) {
  .lp-related-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (min-width: 960px) {
  .lp-related-grid { grid-template-columns: repeat(3, 1fr); }
}
.lp-related-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--lp-radius-sm);
  border: 1px solid var(--lp-border);
  background: var(--lp-surface);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--lp-text);
  box-shadow: var(--lp-shadow);
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s, color 0.2s;
}
.lp-related-card:hover {
  border-color: color-mix(in srgb, var(--lp-accent) 30%, var(--lp-border));
  background: var(--lp-surface);
  box-shadow: var(--lp-shadow-lg);
  transform: translateY(-2px);
  color: var(--lp-accent);
}
.lp-related-card__title { line-height: 1.35; flex: 1; min-width: 0; }
.lp-related-card__arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--lp-accent-soft);
  color: var(--lp-accent);
  font-size: 16px;
  transition: transform 0.2s, background 0.2s;
}
.lp-related-card:hover .lp-related-card__arrow {
  transform: translateX(3px);
  background: color-mix(in srgb, var(--lp-accent) 18%, transparent);
}
/* legacy pill links in blog index */
.lp-related-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--lp-border);
  background: var(--lp-surface);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--lp-text);
}

.lp-final-cta {
  padding: 0 0 clamp(48px, 8vw, 80px);
  background: var(--lp-deep);
}
.lp-final-cta .cta-box {
  margin-top: 0;
  border-radius: var(--lp-radius);
  box-shadow: var(--lp-shadow-lg);
  border: 1px solid var(--lp-border);
}
.lp-final-cta .btn { min-height: 48px; border-radius: var(--lp-radius-sm); }

/* ── Blog ── */
.lp-blog-list {
  display: grid;
  gap: 16px;
  padding: 0;
}
@media (min-width: 640px) {
  .lp-blog-list { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
.lp-blog-card {
  display: block;
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--lp-radius);
  border: 1px solid var(--lp-border);
  background: var(--lp-surface);
  box-shadow: var(--lp-shadow);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  height: 100%;
}
.lp-blog-card:hover {
  border-color: var(--lp-accent-ring);
  box-shadow: var(--lp-shadow-lg);
  transform: translateY(-2px);
}
.lp-blog-card h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--lp-text);
  line-height: 1.35;
}
.lp-blog-card p {
  color: var(--lp-muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}
.lp-blog-card__tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--lp-accent);
  margin-bottom: 10px;
}

/* ── Article prose ── */
.lp-article {
  padding: clamp(32px, 5vw, 48px) 0 clamp(56px, 8vw, 96px);
  max-width: 720px;
}
.lp-article .lp-eyebrow { margin-bottom: 12px; }
.lp-article h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.lp-article > p:first-of-type {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--lp-muted);
  margin-bottom: 32px;
}
.lp-article h2 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  margin: 40px 0 12px;
  letter-spacing: -0.02em;
  color: var(--lp-text);
}
.lp-article h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 28px 0 10px;
}
.lp-article p {
  margin-bottom: 16px;
  color: var(--lp-text);
  line-height: 1.75;
  font-size: 16px;
}
.lp-article ul,
.lp-article ol {
  margin: 0 0 20px;
  padding-left: 1.25em;
  line-height: 1.7;
}
.lp-article li { margin-bottom: 8px; color: var(--lp-muted); }
.lp-article a { color: var(--lp-accent); }
.lp-article .lp-step-card {
  padding: 20px 24px;
  border-radius: var(--lp-radius-sm);
  border: 1px solid var(--lp-border);
  background: var(--lp-surface);
  margin: 24px 0;
  box-shadow: var(--lp-shadow);
}
.lp-article .lp-step-card h2 {
  margin-top: 0;
  font-size: 1.125rem;
}

.lp-section--article {
  background: var(--lp-surface);
}
.lp-section--article .lp-article {
  max-width: 720px;
  margin: 0 auto;
  padding-top: 0;
}

.lp-callout {
  padding: 20px 24px;
  border-radius: var(--lp-radius-sm);
  border: 1px solid var(--lp-border);
  background: var(--lp-deep);
  margin: 28px 0;
}
.lp-callout--accent {
  border-color: var(--lp-accent-ring);
  background: var(--lp-accent-soft);
}
.lp-callout h2 {
  margin-top: 0 !important;
  font-size: 1.125rem !important;
}
.lp-callout ul,
.lp-callout ol {
  margin-bottom: 0;
}

.lp-hero-grid .lp-mock:not(.lp-hero-visual .lp-mock) {
  border-radius: var(--lp-radius);
  border: 1px solid var(--lp-border);
  box-shadow: var(--lp-shadow-lg);
  overflow: hidden;
}
@media (min-width: 768px) {
  .lp-hero-grid--split > .lp-mock {
    align-self: center;
  }
}

/* ── Footer ── */
/* ИСПРАВЛЕНИЕ (2026-07-17): фон футера — фиксированный тёмный, не var(--lp-text) (в dark-theme текст светлый → белый футер) */
.lp-footer {
  border-top: 1px solid var(--lp-footer-border);
  background: var(--lp-footer-bg);
  color: var(--lp-footer-fg);
  padding: clamp(40px, 6vw, 56px) 0 clamp(32px, 5vw, 48px);
}
.lp-footer-grid {
  display: grid;
  gap: 32px 24px;
}
@media (min-width: 768px) {
  .lp-footer-grid {
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 40px 32px;
  }
}
.lp-footer-brand .lp-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  margin-bottom: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}
.lp-footer-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-footer-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.lp-footer-logo-text {
  letter-spacing: -0.02em;
}
.lp-footer-tagline {
  font-size: 13px;
  line-height: 1.55;
  color: var(--lp-footer-fg-muted);
  margin: 0;
  max-width: 240px;
}
.lp-footer-col-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-footer-fg-subtle);
  margin: 0 0 14px;
}
.lp-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lp-footer-links a {
  font-size: 14px;
  color: var(--lp-footer-fg);
  text-decoration: none;
  line-height: 1.45;
  transition: color 0.2s;
}
.lp-footer-links a:hover { color: #fff; }

.lp-footer-social {
  margin-top: 16px;
}
.lp-footer-social-link {
  display: inline-flex;
  color: var(--lp-footer-fg);
  transition: color 0.2s, opacity 0.2s;
}
.lp-footer-social-link:hover {
  color: #fff;
  opacity: 0.9;
}

.lp-footer-legal {
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--lp-footer-border);
  font-size: 12px;
  line-height: 1.65;
  color: var(--lp-footer-fg-muted);
}
.lp-footer-legal a {
  color: var(--lp-footer-fg);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lp-footer-legal a:hover { color: #fff; }

.lp-footer-doclinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--lp-footer-border) 70%, transparent);
}
.lp-footer-doclinks a {
  font-size: 13px;
  color: var(--lp-footer-fg);
  text-decoration: none;
  line-height: 1.45;
  transition: color 0.2s;
}
.lp-footer-doclinks a:hover { color: #fff; }
@media (max-width: 639px) {
  .lp-footer-doclinks {
    flex-direction: column;
    gap: 10px;
  }
}

/* ── Pricing teaser ── */
.lp-pricing-teaser {
  padding: clamp(40px, 6vw, 56px) 0;
  text-align: center;
}
.lp-pricing-teaser .plan-price {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.lp-pricing-teaser .plan-note {
  color: var(--lp-muted);
  margin-top: 8px;
  font-size: 15px;
}

/* ── Utilities ── */
.lp-section-pad { padding: var(--lp-section-gap) 0; }
.lp-u-mt { margin-top: 24px; }
.lp-u-center { text-align: center; }
.lp-u-hide-mobile { display: none; }
@media (min-width: 768px) {
  .lp-u-hide-mobile { display: block; }
}

/* ── Mobile safety ── */
@media (max-width: 430px) {
  .lp-page .container {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .lp-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .lp-hero-actions .btn + .btn { margin-top: 0; }
  pre, .lp-mock { font-size: 12px; overflow-x: auto; max-width: 100%; }
}

html, body.lp-page { overflow-x: clip; max-width: 100vw; }
