/*
 * Стили лендинга (landing.html). Подключаются ПОСЛЕ legal.css и переопределяют
 * его книжную колонку 800px на широкую маркетинговую раскладку: legal.css
 * задуман для юридических текстов, где длинная строка вредит чтению, а лендингу
 * нужны сетки карточек и двухколоночный hero.
 *
 * Почему отдельный файл, а не расширение legal.css: legal.css — общий стиль
 * четырёх юридических страниц, и любая маркетинговая правка не должна им
 * уезжать. Палитра, радиусы и рамки берём из тех же CSS-переменных, чтобы
 * лендинг визуально не отрывался от оферты/политики.
 */

body {
  /* Снимаем «книжную» колонку legal.css — лендинг раскладываем контейнерами. */
  max-width: none;
  padding: 0;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 64px 0;
}

section:nth-of-type(even) {
  background: #f7f9fc;
}

h2 {
  font-size: 28px;
  line-height: 1.25;
  margin: 0 0 8px;
}

.section-lead {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 32px;
  max-width: 720px;
}

/* ── Блок 0: липкая шапка ─────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
}

.site-nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent);
}

.header-cta {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

/* ── Кнопки ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: #1a43b8;
  color: #fff;
}

.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--large {
  padding: 14px 28px;
  font-size: 16px;
}

/* ── Блок 1: hero ─────────────────────────────────────────────────────── */

.hero {
  padding: 72px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.2;
  margin: 0 0 16px;
}

.hero .lead {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 28px;
}

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

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.badges li {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  margin: 0;
}

.hero-figure {
  margin: 0;
}

.hero-figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(23, 25, 28, 0.08);
}

.hero-figure figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}

/* ── Карточки (шаги, режимы, тарифы) ──────────────────────────────────── */

.cards {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.cards--steps {
  grid-template-columns: repeat(5, 1fr);
  counter-reset: step;
}

.cards--modes {
  grid-template-columns: repeat(3, 1fr);
}

.cards--pricing {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* Номер шага рисуем CSS-счётчиком, чтобы порядок этапов жил в разметке,
   а не в хардкоде цифр — при перестановке этапов номера не рассинхронятся. */
.cards--steps .card::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}

.card--mini {
  border-style: dashed;
}

/* Плашка-бесплатность: комплаенс разрешает рекламировать только первую
   правку (FREE_INCLUDED_EDITS = 1) — поэтому отдельный акцентный стиль,
   чтобы не размывать формулировку среди прочего текста. */
.free-tag {
  display: inline-block;
  background: #ecfdf3;
  color: #067647;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  margin-top: 10px;
}

/* ── Блок 4: доверие ──────────────────────────────────────────────────── */

.trust-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.trust-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 15px;
}

.trust-list strong {
  display: block;
  margin-bottom: 4px;
}

/* ── Блок 5: типы документов ──────────────────────────────────────────── */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0 0 16px;
  list-style: none;
}

.chips li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  background: #fff;
  margin: 0;
}

/* ── Блок 6: тарифы ───────────────────────────────────────────────────── */

.price-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin: 4px 0 8px;
}

.plan-strip {
  margin: 28px 0 16px;
  padding: 16px 20px;
  background: var(--accent-soft);
  border-radius: 10px;
  font-size: 15px;
}

.pricing-notes {
  font-size: 14px;
  color: var(--muted);
}

.pricing-notes small {
  display: block;
  margin-top: 6px;
  font-size: 13px;
}

/* ── Блок 7: FAQ ──────────────────────────────────────────────────────── */

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 10px;
}

.faq summary {
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

.faq details p {
  margin: 12px 0 0;
  font-size: 15px;
}

/* ── Блок 8: дисклеймер ───────────────────────────────────────────────── */

.disclaimer h2 {
  font-size: 20px;
}

.disclaimer .callout {
  font-size: 14px;
}

/* ── Блок 9: футер ────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 64px;
  font-size: 14px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin: 0;
}

/* ── Адаптив ──────────────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 32px;
  }

  .cards--steps,
  .cards--pricing {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards--modes {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
  }
}

@media (max-width: 560px) {
  section {
    padding: 44px 0;
  }

  .hero {
    padding: 44px 0 36px;
  }

  .hero h1 {
    font-size: 27px;
  }

  .cards--steps,
  .cards--pricing,
  .trust-list {
    grid-template-columns: 1fr;
  }

  .header-cta .btn {
    padding: 8px 12px;
    font-size: 13px;
  }
}
