/*
 * Общие стили SEO-лендингов и страниц лид-магнитов.
 * Подключается вместе с /blog/blog.css (оттуда — переменные, navbar, footer, FAQ).
 *
 * Существующие /pricing и /integrations/* держат те же правила инлайном и сюда
 * не переезжали: диф ради нулевой пользы для пользователя.
 */

/* ── Hero ── */
.hero { background: linear-gradient(135deg, #4e27a5 0%, #6d3de6 100%); color: #fff; padding: 80px 0 64px; }
.hero h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 16px; max-width: 800px; }
.hero p { font-size: 1.125rem; color: rgba(255,255,255,0.85); max-width: 700px; }
.hero .meta {
  display: inline-block; background: rgba(255,255,255,0.15);
  padding: 4px 12px; border-radius: 999px; font-size: 0.875rem; margin-bottom: 16px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero-actions .btn-primary {
  display: inline-block; background: #fff; color: var(--primary-700);
  padding: 14px 32px; border-radius: 10px; font-weight: 700;
}
.hero-actions .btn-primary:hover { background: var(--primary-50); }
.hero-actions .btn-ghost {
  display: inline-block; border: 1px solid rgba(255,255,255,0.4); color: #fff;
  padding: 14px 28px; border-radius: 10px; font-weight: 600;
}
.hero-actions .btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* ── Секции ── */
.features { padding: 64px 0; }
.features.alt { background: #f9fafb; }
.features h2 { font-size: 1.75rem; font-weight: 800; color: #111827; margin-bottom: 12px; }
.features .section-lead { color: #4b5563; font-size: 1.0625rem; max-width: 760px; margin-bottom: 32px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px; }
.feature-card h3 { font-size: 1.0625rem; font-weight: 700; color: #111827; margin-bottom: 10px; }
.feature-card p { color: #4b5563; font-size: 0.9375rem; line-height: 1.6; }
.feature-card p + p { margin-top: 10px; }

.how { padding: 64px 0; background: #f9fafb; }
.how h2 { font-size: 1.75rem; font-weight: 800; color: #111827; margin-bottom: 24px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; counter-reset: step; }
.step { background: #fff; border-radius: 12px; padding: 24px; position: relative; padding-left: 64px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 16px; top: 22px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary-600); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 1rem; font-weight: 700; color: #111827; margin-bottom: 6px; }
.step p { color: #4b5563; font-size: 0.9375rem; line-height: 1.5; }

.final-cta { background: linear-gradient(135deg, var(--primary-700), var(--primary-500)); color: #fff; padding: 64px 0; text-align: center; }
.final-cta h2 { font-size: 1.875rem; font-weight: 800; margin-bottom: 12px; }
.final-cta p { color: rgba(255,255,255,0.85); margin-bottom: 24px; max-width: 620px; margin-left: auto; margin-right: auto; }
.final-cta a.btn { display: inline-block; background: #fff; color: var(--primary-700); padding: 14px 32px; border-radius: 10px; font-weight: 700; }
.final-cta a.btn:hover { background: var(--primary-50); }
.final-cta .note { font-size: 0.875rem; color: rgba(255,255,255,0.7); margin-top: 16px; margin-bottom: 0; }

/* ── Текстовые блоки лендинга ──
   Типографика .article-body живёт только внутри статьи, а лендингам тоже нужен
   читаемый длинный текст — иначе контентная часть выглядит как сноска. */
.prose { max-width: 820px; }
.prose p { color: #374151; margin-bottom: 20px; font-size: 1.0625rem; line-height: 1.75; }
.prose ul, .prose ol { margin: 0 0 24px; color: #374151; padding-left: 1.5rem; }
.prose li { margin-bottom: 10px; font-size: 1.0625rem; line-height: 1.7; }
.prose h3 { font-size: 1.25rem; font-weight: 700; color: #111827; margin: 36px 0 14px; }
.prose strong { color: #111827; font-weight: 700; }
.prose a { color: var(--primary-700); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--primary-600); }
.prose blockquote {
  border-left: 4px solid var(--primary-500); background: var(--primary-50);
  padding: 20px 24px; margin: 32px 0; font-style: italic; color: #374151;
  border-radius: 0 12px 12px 0;
}
.prose > :last-child { margin-bottom: 0; }

/* ── Таблицы сравнения ──
   Обёртка со скроллом обязательна: на 360px таблица из 4 колонок иначе
   растягивает body и ломает всю страницу горизонтальным скроллом. */
.compare-wrap { overflow-x: auto; margin: 24px 0; -webkit-overflow-scrolling: touch; }
.compare-table {
  width: 100%; min-width: 640px; border-collapse: collapse;
  font-size: 0.9375rem; background: #fff;
  border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.compare-table thead { background: var(--primary-50); }
.compare-table th {
  text-align: left; padding: 12px 16px; font-weight: 700;
  color: var(--primary-800); border-bottom: 2px solid var(--primary-200);
}
.compare-table td { padding: 12px 16px; border-bottom: 1px solid #f3f4f6; color: #374151; vertical-align: top; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover { background: #f9fafb; }
.compare-table .yes { color: #059669; font-weight: 700; }
.compare-table .no { color: #9ca3af; }
.compare-hint { font-size: 0.875rem; color: #6b7280; margin-top: -8px; }

/* ── «Кому не подойдёт» ──
   Фирменный блок честных ограничений: он же снижает долю нецелевых заявок. */
.not-for {
  border: 1px solid #fde68a; background: #fffbeb;
  border-radius: 12px; padding: 24px 28px; margin: 24px 0;
}
.not-for h3 { font-size: 1.0625rem; font-weight: 700; color: #92400e; margin-bottom: 12px; }
.not-for ul { margin: 0; padding-left: 1.25rem; color: #78350f; }
.not-for li { margin-bottom: 8px; font-size: 0.9375rem; line-height: 1.6; }
.not-for li:last-child { margin-bottom: 0; }

/* ── Тарифы (тизер на лендинге) ── */
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 24px 0; }
.plan-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px; }
.plan-card.featured { border-color: var(--primary-400); box-shadow: 0 4px 16px rgba(109,61,230,0.12); }
.plan-card h3 { font-size: 1.125rem; font-weight: 700; color: #111827; margin-bottom: 8px; }
.plan-card .price { font-size: 1.75rem; font-weight: 800; color: var(--primary-700); }
.plan-card .price span { font-size: 0.875rem; font-weight: 500; color: #6b7280; }
.plan-card p { color: #4b5563; font-size: 0.9375rem; line-height: 1.6; margin-top: 10px; }

/* ── CTA на лид-магнит внутри контента ── */
.magnet-cta {
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  border: 1px solid var(--primary-200); background: var(--primary-50);
  border-radius: 16px; padding: 24px 28px; margin: 40px 0;
}
.magnet-cta .magnet-cta-text { flex: 1 1 320px; }
.magnet-cta h3 { font-size: 1.125rem; font-weight: 700; color: #111827; margin-bottom: 6px; }
.magnet-cta p { color: #4b5563; font-size: 0.9375rem; margin: 0; line-height: 1.6; }
.magnet-cta a.btn {
  display: inline-block; background: var(--primary-600); color: #fff;
  font-weight: 700; padding: 12px 24px; border-radius: 10px; white-space: nowrap;
}
.magnet-cta a.btn:hover { background: var(--primary-700); }

/* ── Форма получения PDF ── */
.magnet-form-block {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 16px;
  padding: 32px; margin: 40px 0; box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.magnet-form-block h2 { font-size: 1.375rem; font-weight: 800; color: #111827; margin-bottom: 8px; }
.magnet-form-block .form-lead { color: #4b5563; font-size: 0.9375rem; margin-bottom: 24px; line-height: 1.6; }

.magnet-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.magnet-form .field { display: flex; flex-direction: column; gap: 6px; }
.magnet-form .field.full { grid-column: 1 / -1; }
.magnet-form label { font-size: 0.875rem; font-weight: 600; color: #374151; }
.magnet-form input[type="text"], .magnet-form input[type="email"] {
  font-family: inherit; font-size: 1rem; color: #111827;
  padding: 12px 14px; border: 1px solid #d1d5db; border-radius: 10px;
  background: #fff; transition: border-color 0.2s, box-shadow 0.2s;
}
.magnet-form input[type="text"]:focus, .magnet-form input[type="email"]:focus {
  outline: none; border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(124,92,242,0.15);
}
.magnet-form input[aria-invalid="true"] { border-color: #dc2626; }
.magnet-form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; color: #4b5563; line-height: 1.5; }
.magnet-form .consent input { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; }
.magnet-form .consent a { color: var(--primary-700); text-decoration: underline; }
.magnet-form button {
  font-family: inherit; font-size: 1rem; font-weight: 700; color: #fff;
  background: var(--primary-600); border: none; border-radius: 10px;
  padding: 14px 32px; cursor: pointer; transition: background 0.2s;
  justify-self: start;
}
.magnet-form button:hover:not(:disabled) { background: var(--primary-700); }
.magnet-form button:disabled { background: #9ca3af; cursor: not-allowed; }
/* Honeypot: убираем из потока и из фокуса, но не display:none —
   часть ботов игнорирует скрытые через display поля. */
.magnet-form .hp {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0;
}
.magnet-error {
  grid-column: 1 / -1; color: #b91c1c; background: #fef2f2;
  border: 1px solid #fecaca; border-radius: 10px; padding: 12px 16px;
  font-size: 0.9375rem;
}
.magnet-note { font-size: 0.8125rem; color: #9ca3af; margin-top: 16px; }

.magnet-success {
  border: 1px solid #a7f3d0; background: #ecfdf5; border-radius: 12px;
  padding: 24px 28px; text-align: center;
}
.magnet-success h3 { font-size: 1.125rem; font-weight: 700; color: #065f46; margin-bottom: 8px; }
.magnet-success p { color: #047857; font-size: 0.9375rem; margin-bottom: 20px; }
.magnet-success a.btn {
  display: inline-block; background: var(--primary-600); color: #fff;
  font-weight: 700; padding: 12px 28px; border-radius: 10px;
}
.magnet-success a.btn:hover { background: var(--primary-700); }

/* ── Чек-лист с ячейками для оценки ── */
.checklist { margin: 24px 0; }
.checklist-group { margin-bottom: 32px; }
.checklist-group h3 {
  font-size: 1.0625rem; font-weight: 700; color: #111827;
  margin-bottom: 12px; display: flex; justify-content: space-between;
  align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.checklist-group h3 .max { font-size: 0.8125rem; font-weight: 600; color: #6b7280; white-space: nowrap; }
.checklist-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid #f3f4f6;
}
.checklist-item:first-of-type { border-top: 1px solid #f3f4f6; }
.checklist-item .num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 6px;
  background: var(--primary-50); color: var(--primary-700);
  font-size: 0.8125rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.checklist-item .body { flex: 1; }
.checklist-item .body strong { display: block; color: #111827; font-size: 1rem; margin-bottom: 4px; }
.checklist-item .body span { color: #4b5563; font-size: 0.9375rem; line-height: 1.6; }

/* ── Карточки шаблонов (хаб /templates/) ── */
.template-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.template-card {
  display: block; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px;
  padding: 28px; transition: box-shadow 0.3s, transform 0.3s;
}
.template-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
.template-card .tag {
  display: inline-block; background: var(--primary-50); color: var(--primary-700);
  font-size: 0.75rem; font-weight: 600; padding: 4px 12px; border-radius: 100px;
  margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.04em;
}
.template-card h3 { font-size: 1.1875rem; font-weight: 700; color: #111827; margin-bottom: 10px; line-height: 1.35; }
.template-card p { color: #6b7280; font-size: 0.9375rem; line-height: 1.6; margin-bottom: 16px; }
.template-card .more { color: var(--primary-700); font-weight: 600; font-size: 0.9375rem; }

@media (max-width: 768px) {
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 1.875rem; }
  .hero p { font-size: 1rem; }
  .features, .how { padding: 48px 0; }
  .features h2, .how h2 { font-size: 1.375rem; }
  .final-cta h2 { font-size: 1.5rem; }
  .prose p, .prose li { font-size: 1rem; }
  .magnet-form-block { padding: 24px 20px; }
  .magnet-cta { padding: 20px; }
}
