/* ============================================================================
   SEO-посадочные (/{slug}).

   Серверная и клиентская версии рисуют одну разметку, поэтому стили общие:
   иначе при подмене DOM после загрузки JS получился бы скачок макета.

   Палитра берётся из бренд-токенов сайта (:root в styles.css):
   --bg #0b0b0f, --card #1a1a22, --text #f6f7fb, --muted #8b8d98.
   Акцент — лаймовый #b4ff39, он же на кнопках каталога.
   ============================================================================ */

.lp {
  --lp-accent: #b4ff39;
  --lp-line: rgba(255, 255, 255, .09);
  --lp-surface: rgba(255, 255, 255, .035);
  --lp-radius: 20px;

  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 20px 96px;
}

/* ── Хлебные крошки ─────────────────────────────────────────────────────── */
.lp .explore-breadcrumbs {
  font-size: 13px;
  color: var(--muted, #8b8d98);
  padding: 12px 0 4px;
}
.lp .breadcrumb-link { color: var(--muted, #8b8d98); text-decoration: none; }
.lp .breadcrumb-link:hover { color: var(--lp-accent); }
.lp .breadcrumb-current { color: rgba(255, 255, 255, .45); }

/* ── Hero: две колонки, текст слева, демонстрация справа ────────────────── */
.lp-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  padding: 24px 0 8px;
}

.lp-h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 7vw, 60px);
  line-height: 1.04;
  letter-spacing: -.03em;
  font-weight: 700;
  color: #fff;
  /* Мягкий градиент вместо плоского белого — заголовок «дышит» */
  background: linear-gradient(180deg, #ffffff 30%, rgba(255, 255, 255, .72) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lp-lead {
  margin: 0 0 28px;
  max-width: 34em;
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.55;
  color: rgba(246, 247, 251, .68);
}

.lp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 32px;
  border-radius: 999px;
  background: var(--lp-accent);
  color: #0b0b0f;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -.01em;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(180, 255, 57, .22);
  transition: transform .18s ease, box-shadow .18s ease;
}
.lp-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 34px rgba(180, 255, 57, .3);
}
.lp-cta:active { transform: translateY(0); }

.lp-hero-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: rgba(246, 247, 251, .4);
}

.lp-hero-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--lp-surface);
  /* Глубина тенью, а не рамкой — кадр выглядит объектом, а не блоком */
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
}
.lp-hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--lp-line);
  pointer-events: none;
}
.lp-hero-video {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #14141b;
}

/* ── Секции ─────────────────────────────────────────────────────────────── */
.lp-section { margin-top: 72px; }

.lp-section-title {
  margin: 0 0 24px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 650;
  color: #fff;
}

.lp-prose p {
  margin: 0 0 16px;
  max-width: 42em;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(246, 247, 251, .62);
}
.lp-prose p:last-child { margin-bottom: 0; }

/* ── Блоки-модификаторы: карточки на подложке ───────────────────────────── */
.lp-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.lp-feature {
  padding: 26px 24px;
  border-radius: var(--lp-radius);
  background: var(--lp-surface);
  border: 1px solid var(--lp-line);
  transition: background .2s ease, border-color .2s ease;
}
.lp-feature:hover {
  background: rgba(255, 255, 255, .055);
  border-color: rgba(255, 255, 255, .14);
}
.lp-feature-title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 620;
  letter-spacing: -.01em;
  color: #fff;
}
.lp-feature-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(246, 247, 251, .6);
}

/* ── Сетка шаблонов ─────────────────────────────────────────────────────── */
.lp-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  /* Максимум 3 в ряд: auto-fill давал 6 узких колонок на десктопе */
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.lp-card {
  display: block;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--lp-surface);
  border: 1px solid var(--lp-line);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease;
}
.lp-card:hover {
  transform: translateY(-3px);
  border-color: rgba(180, 255, 57, .4);
}
.lp-card img,
.lp-card-ph {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #14141b;
}
.lp-card-title {
  display: block;
  padding: 10px 12px 12px;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(246, 247, 251, .8);
}

/* ── FAQ: тонкие разделители вместо коробок ─────────────────────────────── */
.lp-faq { border-top: 1px solid var(--lp-line); }
.lp-faq-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--lp-line);
}
.lp-faq-q {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 620;
  letter-spacing: -.01em;
  color: #fff;
}
.lp-faq-a {
  margin: 0;
  max-width: 46em;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(246, 247, 251, .58);
}

/* ── Перекрёстные ссылки ────────────────────────────────────────────────── */
.lp-related {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.lp-related a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-radius: 14px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-line);
  color: rgba(246, 247, 251, .85);
  font-size: 15px;
  font-weight: 550;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.lp-related a::after {
  content: '→';
  color: rgba(255, 255, 255, .3);
  transition: transform .2s ease, color .2s ease;
}
.lp-related a:hover {
  background: rgba(255, 255, 255, .055);
  border-color: rgba(180, 255, 57, .35);
  color: #fff;
}
.lp-related a:hover::after {
  color: var(--lp-accent);
  transform: translateX(3px);
}

.lp-loading {
  padding: 96px 0;
  text-align: center;
  color: rgba(246, 247, 251, .35);
}

/* ── Планшет ────────────────────────────────────────────────────────────── */
@media (min-width: 700px) {
  .lp-features { grid-template-columns: repeat(2, 1fr); }
  .lp-related { grid-template-columns: repeat(2, 1fr); }
  .lp-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

/* ── Десктоп: hero в две колонки ────────────────────────────────────────── */
@media (min-width: 980px) {
  .lp { padding: 8px 32px 128px; }
  .lp-hero {
    grid-template-columns: 1.05fr .95fr;
    gap: 64px;
    padding: 48px 0 24px;
    /* Ограничение сверху: на очень высоких экранах 78vh раздувает hero
       в пустое полотно, и первая секция уезжает далеко за сгиб. */
    min-height: min(78vh, 700px);
  }
  .lp-hero-visual { max-width: 460px; margin-left: auto; }
  .lp-section { margin-top: 104px; }
  .lp-features { grid-template-columns: repeat(3, 1fr); }
}

/* Уважаем системную настройку: движение мешает части пользователей */
@media (prefers-reduced-motion: reduce) {
  .lp-cta, .lp-card, .lp-related a, .lp-related a::after { transition: none; }
  .lp-cta:hover, .lp-card:hover { transform: none; }
}
