/* ============================================================================
   SEO-аудит — Лендинг v2
   Дизайн-система по Design.md + улучшения: glow, depth, motion, gauge.
   Палитра: brand #2563EB, semantic только в индикаторах, многослойные тени.
   Шрифт: Inter. tabular-nums на числах. Mobile-first.
   ========================================================================== */

/* === 1. Переменные === */
:root {
  /* Основные */
  --bg: #F8F9FA;
  --surface: #FFFFFF;
  --text-main: #1A1D20;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --text-faint: #D1D5DB;
  --brand: #2563EB;
  --brand-hover: #1D4ED8;
  --brand-soft: #EFF6FF;
  --brand-border: #DBEAFE;
  --brand-glow: rgba(37, 99, 235, 0.35);
  --brand-glow-soft: rgba(37, 99, 235, 0.10);

  /* Семантические — ТОЛЬКО статус-индикаторы */
  --success: #10B981;
  --warning: #D97706;
  --danger:  #EF4444;

  /* Нейтральные границы */
  --border: #E5E7EB;
  --border-soft: #D1D5DB;
  --divider: #F3F4F6;
  --surface-alt: #F8F9FA;

  /* Многослойные diffuse-тени (depth + ambient glow) */
  --shadow-sm: 0 1px 3px rgba(10, 13, 16, 0.06), 0 0 24px rgba(10, 13, 16, 0.03);
  --shadow-md: 0 2px 8px rgba(10, 13, 16, 0.08), 0 0 48px rgba(10, 13, 16, 0.04);
  --shadow-lg: 0 8px 32px rgba(10, 13, 16, 0.10), 0 0 64px rgba(10, 13, 16, 0.05);
  --shadow-hover: 0 4px 16px rgba(10, 13, 16, 0.10), 0 0 64px var(--brand-glow-soft);
  --shadow-brand: 0 4px 12px var(--brand-glow);

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* Скругления */
  --r-card: 14px;
  --r-input: 12px;
  --r-btn: 10px;
  --r-btn-sm: 8px;
  --r-badge: 11px;
  --r-score: 12px;
  --r-icon: 10px;

  /* Размеры */
  --container: 1140px;
  --container-narrow: 640px;
  --nav-h: 64px;
}

/* === 2. Reset & base === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-main);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Subtle radial overlay для глубины */
  background-image: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(37, 99, 235, 0.04), transparent 70%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}
h1, h2, h3, h4, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--brand); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--text-main); }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input { font: inherit; }

.skip-link {
  position: absolute; top: -100px; left: 8px; z-index: 100;
  background: var(--brand); color: #fff; padding: 8px 16px;
  border-radius: var(--r-btn-sm);
}
.skip-link:focus { top: 8px; color: #fff; }

/* === 3. Контейнер === */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 60px;
}
.container--narrow { max-width: var(--container-narrow); }

@media (max-width: 1280px) { .container { max-width: 960px; } }
@media (max-width: 768px) { .container { padding: 0 32px; } }
@media (max-width: 640px) { .container { padding: 0 24px; } }
@media (max-width: 480px) { .container { padding: 0 16px; } }

/* === 4. Кнопки === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--r-btn);
  transition: background 0.2s var(--ease-smooth), transform 0.2s var(--ease-out), box-shadow 0.3s var(--ease-smooth);
  text-align: center;
  line-height: 1;
}
.btn--primary {
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  padding: 14px 28px;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--brand-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-brand);
}
.btn--primary:active { transform: translateY(0); }
.btn--primary:focus-visible { outline: 2px solid var(--brand-glow); outline-offset: 2px; }
.btn--ghost {
  background: var(--surface);
  color: var(--text-main);
  border: 1px solid var(--border);
  font-size: 15px;
  padding: 14px 28px;
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { border-color: var(--brand-border); transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.btn--lg { padding: 16px 36px; font-size: 16px; }
.btn--sm { font-size: 13px; padding: 0 20px; height: 32px; border-radius: var(--r-btn-sm); }
.btn--input {
  font-size: 14px;
  font-weight: 600;
  padding: 0 22px;
  height: 44px;
  border-radius: var(--r-btn);
  flex-shrink: 0;
}
.btn--input:hover { background: var(--brand-hover); transform: translateY(-1px); box-shadow: var(--shadow-brand); }
.btn--input:active { transform: translateY(0); }
.btn--input:focus-visible { outline: 2px solid var(--brand-glow); outline-offset: 2px; }
.btn--block { width: 100%; }

/* === 5. Навбар === */
.navbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-main); }
.brand:hover { color: var(--text-main); }
.brand__logo {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--brand); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px var(--brand-glow);
}
.brand__name { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.navbar__nav { display: flex; gap: 28px; }
.navbar__link { color: var(--text-secondary); font-size: 14px; font-weight: 500; transition: color 0.15s; }
.navbar__link:hover { color: var(--text-main); }
.navbar__cta { color: #fff; }
.navbar__cta:hover { color: #fff; }

@media (max-width: 768px) {
  .navbar__nav { display: none; }
}

/* === 6. Hero === */
.hero { padding-top: 46px; padding-bottom: 56px; text-align: center; }
.hero__title {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.15;
  max-width: 720px;
  margin: 0 auto;
}
.hero__accent { color: var(--brand); }
.hero__subtitle {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 42px;
  max-width: 560px;
  margin-left: auto; margin-right: auto;
}
@media (max-width: 480px) {
  .hero__title { font-size: 28px; }
  .hero__subtitle { font-size: 15px; margin-top: 24px; }
}

/* === 7. URL-инпут === */
.url-input {
  position: relative;
  max-width: 600px;
  margin: 42px auto 0;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-input);
  height: 56px;
  box-shadow: var(--shadow-md);
  transition: border-color 0.2s, box-shadow 0.3s;
}
.url-input:focus-within {
  border-color: var(--brand);
  box-shadow: 0 2px 8px rgba(10, 13, 16, 0.08), 0 0 0 3px var(--brand-glow-soft);
}
.url-input--error { border-color: var(--danger); }
.url-input__icon {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1.5px solid var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 12px 0 14px;
  flex-shrink: 0;
}
.url-input__field {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  height: 100%;
  font-size: 15px;
  color: var(--text-main);
  padding-right: 12px;
}
.url-input__field::placeholder { color: var(--text-faint); }
.url-input .btn--input { margin-right: 8px; }
.url-input__hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 14px;
  text-align: center;
}
.url-input__hint--error { color: var(--danger); }

@media (max-width: 480px) {
  .url-input { height: 52px; }
  .url-input .btn--input { padding: 0 14px; font-size: 13px; height: 40px; }
  .url-input__icon { margin: 0 8px 0 10px; width: 22px; height: 22px; }
}

/* Hero proof badges */
.hero__proof {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 24px; margin-top: 32px;
}
.hero__proof-item {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-secondary);
}
.hero__proof-item svg { color: var(--brand); }

/* === 8. Секции общие === */
.section { padding: 56px 0; }
.section--how { padding-top: 64px; }
.section--pricing { padding-top: 64px; }
.section--compare { padding-top: 0; }
.section--audit { padding-top: 60px; }
.section--cta { padding: 48px 0 64px; }
.section--legal { padding-top: 60px; padding-bottom: 80px; }
.section--payment { padding-top: 80px; padding-bottom: 120px; }

.eyebrow {
  font-size: 13px; font-weight: 600;
  letter-spacing: 3px;
  color: var(--text-secondary);
  text-align: center;
  text-transform: uppercase;
}
.eyebrow::after {
  content: ""; display: block;
  width: 40px; height: 1px; background: var(--border);
  margin: 12px auto 0;
}
.section__title {
  font-size: 28px; font-weight: 600; letter-spacing: -0.02em;
  color: var(--text-main);
  text-align: center;
  margin-top: 20px;
  max-width: 640px; margin-left: auto; margin-right: auto;
}
@media (max-width: 480px) { .section__title { font-size: 22px; } }

/* === 9. Preview-карточка === */
.preview-section { padding-top: 38px; }
.preview-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
  padding: 24px 30px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: center;
  /* Layered depth: inner top highlight */
  position: relative;
  overflow: hidden;
}
.preview-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.15), transparent);
}
@media (max-width: 640px) {
  .preview-card { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
}

/* Score-блок с radial gauge */
.score-block {
  background: var(--surface-alt);
  border-radius: var(--r-score);
  padding: 20px;
  text-align: center;
  min-height: 160px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  position: relative;
}
.score-block__gauge {
  position: relative;
  width: 120px; height: 120px;
  margin-bottom: 8px;
}
.score-block__gauge svg {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.score-block__gauge-bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 8;
}
.score-block__gauge-fill {
  fill: none;
  stroke: var(--brand);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s var(--ease-out), stroke 0.4s;
}
.score-block__gauge-fill[data-level="good"] { stroke: var(--success); }
.score-block__gauge-fill[data-level="warning"] { stroke: var(--warning); }
.score-block__gauge-fill[data-level="critical"] { stroke: var(--danger); }
.score-block__number {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: baseline; gap: 2px;
}
.score-block__value {
  font-size: 36px; font-weight: 600; color: var(--text-main);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.score-block__suffix { font-size: 13px; color: var(--text-muted); }
.score-block__label { font-size: 10px; font-weight: 600; color: var(--text-secondary); letter-spacing: 1.5px; text-transform: uppercase; }
.score-block__dynamic {
  margin-top: 4px;
  font-size: 11px; color: var(--success);
  display: inline-flex; align-items: center; gap: 4px;
}

/* Топ-3 проблемы */
.preview-issues__label {
  font-size: 13px; font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.preview-issues__list { display: flex; flex-direction: column; gap: 12px; }
.preview-issues__list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--text-main);
  line-height: 1.45;
}
.preview-issues__list .status__dot { margin-top: 6px; flex-shrink: 0; }

/* CTA под сводкой */
.preview-cta { max-width: 760px; margin: 32px auto 0; text-align: center; }
.preview-cta__info { font-size: 13px; color: var(--text-secondary); margin-bottom: 18px; }
.preview-cta__buttons { display: flex; flex-direction: column; align-items: center; gap: 12px; }
@media (min-width: 640px) {
  .preview-cta__buttons { flex-direction: row; justify-content: center; }
}

/* Loading / error */
.preview-loading, .preview-error {
  max-width: 760px; margin: 32px auto 0;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 24px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); box-shadow: var(--shadow-sm);
}
.preview-error { color: var(--danger); }

.spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === 10. Steps === */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1080px; margin: 40px auto 0;
  justify-content: center;
}
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-smooth), border-color 0.2s;
  min-height: 160px;
  position: relative;
  overflow: hidden;
}
/* Inner top highlight — layered depth */
.step-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.08), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--brand-border);
}
.step-card:hover::before { opacity: 1; }
.step-card__num {
  width: 36px; height: 36px; border-radius: var(--r-icon);
  background: var(--brand-soft); color: var(--brand);
  font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.step-card__title { font-size: 15px; font-weight: 600; color: var(--text-main); margin-bottom: 6px; }
.step-card__text { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* === 11. Таблицы === */
.blocks-table, .compare-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin: 40px auto 0;
  max-width: 1140px;
  overflow-x: auto;
}
.blocks-table table, .compare-table table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.blocks-table thead, .compare-table thead {
  background: var(--surface-alt);
  height: 44px;
}
.blocks-table th, .compare-table th {
  font-size: 12px; font-weight: 600; letter-spacing: 1px;
  color: var(--text-secondary);
  text-align: left;
  padding: 0 24px;
}
.blocks-table th:last-child, .blocks-table td:last-child,
.compare-table th:last-child, .compare-table td:last-child { text-align: right; }
.blocks-table td, .compare-table td {
  padding: 22px 24px;
  border-bottom: 1px solid var(--divider);
  font-size: 13px;
  vertical-align: middle;
}
.blocks-table tbody tr:last-child td, .compare-table tbody tr:last-child td { border-bottom: 0; }
.blocks-table tbody tr:hover, .compare-table tbody tr:hover { background: var(--surface-alt); transition: background 0.1s; }

.blocks-table td:first-child { font-weight: 500; color: var(--text-main); }
.blocks-table td:nth-child(2) { color: var(--text-secondary); font-weight: 400; }
.blocks-table td:nth-child(3) { color: var(--text-muted); font-weight: 400; }

.compare-table td:first-child { font-weight: 500; color: var(--text-main); }
.compare-table td { color: var(--text-secondary); text-align: center; }
.compare-table td:first-child { text-align: left; }
.compare-table__us { color: var(--text-main) !important; font-weight: 600 !important; }
.compare-table th.compare-table__us { color: var(--brand) !important; }

/* === 12. Статус-индикатор === */
.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-secondary); font-weight: 400;
}
.status__dot {
  width: 8px; height: 8px; border-radius: 50%;
  opacity: 0.7; display: inline-block;
}
.status__dot--ok { background: var(--success); }
.status__dot--warning { background: var(--warning); }
.status__dot--danger { background: var(--danger); }

/* === 13. Pricing === */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 800px; margin: 40px auto 0;
  justify-items: center;
}
@media (max-width: 768px) { .pricing-grid { grid-template-columns: 1fr; gap: 24px; } }

.pricing-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  width: 360px; max-width: 100%;
  display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-smooth), border-color 0.2s;
  overflow: hidden;
}
/* Layered depth highlight */
.pricing-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.08), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.pricing-card:hover::before { opacity: 1; }
.pricing-card--pro { border: 2px solid var(--brand); }
.pricing-card--pro .pricing-card__label { color: var(--brand); }
.pricing-card__badge {
  position: absolute; top: -12px; right: 20px;
  background: var(--brand); color: #fff;
  font-size: 10px; font-weight: 600;
  border-radius: var(--r-badge);
  padding: 4px 12px;
  box-shadow: 0 2px 8px var(--brand-glow);
  animation: badge-pulse 2.5s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 2px 8px var(--brand-glow); }
  50% { box-shadow: 0 2px 16px var(--brand-glow); }
}
.pricing-card__label {
  font-size: 12px; font-weight: 600; letter-spacing: 2px;
  color: var(--text-secondary);
}
.pricing-card__price {
  font-size: 36px; font-weight: 600; color: var(--text-main);
  font-variant-numeric: tabular-nums; margin-top: 6px;
}
.pricing-card__desc { font-size: 13px; color: var(--text-secondary); margin-top: 6px; margin-bottom: 18px; }
.pricing-card__list { display: flex; flex-direction: column; gap: 10px; flex: 1; margin-bottom: 22px; }
.pricing-card__list li {
  font-size: 13px; color: var(--text-main);
  padding-left: 22px; position: relative;
  line-height: 1.5;
}
.pricing-card__list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--text-main); font-weight: 600;
}
.pricing-card__btn { margin-top: auto; }
.pricing-card__note {
  font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 10px;
}

.payment-methods {
  margin-top: 28px; text-align: center;
  font-size: 13px; color: var(--text-secondary);
  display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; align-items: center;
}
.payment-methods__label { color: var(--text-muted); }
.payment-methods__items { color: var(--text-main); font-weight: 500; }
.payment-methods__provider { color: var(--text-muted); }
.payment-note {
  margin-top: 12px; text-align: center;
  font-size: 12px; color: var(--text-muted);
}

/* === 14. FAQ === */
.faq {
  max-width: 760px; margin: 40px auto 0;
  display: flex; flex-direction: column; gap: 12px;
}
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq__item[open] { border-color: var(--brand-border); box-shadow: var(--shadow-md); }
.faq__q {
  cursor: pointer;
  padding: 18px 24px;
  font-size: 15px; font-weight: 500; color: var(--text-main);
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  font-size: 20px; font-weight: 400; color: var(--text-secondary);
  transition: transform 0.3s var(--ease-out);
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a {
  padding: 0 24px 20px;
  font-size: 14px; color: var(--text-secondary); line-height: 1.6;
}

/* === 15. Final CTA === */
.final-cta {
  text-align: center;
  padding: 48px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.15), transparent);
}
.final-cta__title { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; color: var(--text-main); }
.final-cta__text { font-size: 15px; color: var(--text-secondary); margin-top: 12px; margin-bottom: 28px; }

/* === 16. Footer === */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer__inner {
  padding-top: 40px; padding-bottom: 30px;
  text-align: center;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: left;
  max-width: 700px;
  margin: 0 auto 32px;
}
@media (max-width: 640px) {
  .footer__cols { grid-template-columns: 1fr; gap: 20px; text-align: center; }
}
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__title { font-size: 13px; font-weight: 600; color: var(--text-main); margin-bottom: 4px; }
.footer__link {
  font-size: 13px; color: var(--text-secondary);
  text-decoration: none;
}
.footer__link:hover { color: var(--text-main); }
.footer__link--muted { color: var(--text-muted); cursor: default; }
.footer__disclaimer {
  font-size: 12px; color: var(--text-muted); line-height: 1.6;
  max-width: 560px; margin: 0 auto 8px;
}
.footer__copy { font-size: 12px; color: var(--text-muted); }

/* === 17. Модальное окно (checkout) === */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 13, 16, 0.4);
  backdrop-filter: blur(2px);
}
.modal__panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  width: 100%; max-width: 420px;
  animation: modal-in 0.3s var(--ease-out);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.modal__close {
  position: absolute; top: 8px; right: 12px;
  font-size: 24px; color: var(--text-muted);
  line-height: 1; padding: 4px 8px;
}
.modal__close:hover { color: var(--text-main); }
.modal__title { font-size: 22px; font-weight: 600; color: var(--text-main); }
.modal__text { font-size: 14px; color: var(--text-secondary); margin-top: 8px; margin-bottom: 20px; }
.modal__url { color: var(--text-main); font-weight: 500; word-break: break-all; }
.modal__form { display: flex; flex-direction: column; gap: 14px; }
.modal__summary {
  font-size: 14px; color: var(--text-secondary);
  padding: 12px 16px; background: var(--surface-alt); border-radius: var(--r-input);
  text-align: center;
}
.modal__summary strong { color: var(--text-main); font-size: 16px; font-variant-numeric: tabular-nums; }
.modal__note { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 4px; }

/* Поля формы */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.field__input {
  height: 44px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-input);
  padding: 0 14px;
  font-size: 14px; color: var(--text-main);
  background: var(--surface);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field__input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow-soft); }
.field__input::placeholder { color: var(--text-faint); }

/* === 18. Страница аудита === */
.audit {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
  padding: 36px;
  text-align: center;
}
.audit__head { margin-bottom: 32px; }
.audit__title { font-size: 24px; font-weight: 600; color: var(--text-main); margin-top: 12px; }
.audit__subtitle { font-size: 14px; color: var(--text-secondary); margin-top: 6px; }

.audit-progress { margin: 24px 0; }
.audit-progress__bar {
  height: 8px; border-radius: 4px;
  background: var(--border); overflow: hidden;
}
.audit-progress__fill {
  height: 100%; border-radius: 4px;
  background: var(--brand);
  transition: width 0.5s var(--ease-out);
}
.audit-progress__percent {
  margin-top: 10px; font-size: 13px; color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

/* Этапы */
.audit-steps {
  list-style: none;
  display: flex; justify-content: space-between;
  margin: 32px 0;
  position: relative;
}
.audit-steps::before {
  content: ""; position: absolute; top: 6px; left: 5%; right: 5%;
  height: 2px; background: var(--border); z-index: 0;
}
.audit-step {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  flex: 1;
}
.audit-step__dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}
.audit-step__label {
  font-size: 12px; color: var(--text-muted);
  transition: color 0.3s;
}
.audit-step.is-active .audit-step__dot { background: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 0 12px var(--brand-glow); }
.audit-step.is-active .audit-step__label { color: var(--text-main); font-weight: 500; }
.audit-step.is-done .audit-step__dot {
  background: var(--success);
  box-shadow: 0 0 0 1px var(--success);
}
.audit-step.is-done .audit-step__label { color: var(--text-secondary); }
@media (max-width: 480px) {
  .audit-step__label { font-size: 10px; }
}

/* Блоки аудита */
.audit-blocks { margin: 24px 0; text-align: left; }
.audit-blocks__label {
  font-size: 12px; font-weight: 600; letter-spacing: 1px;
  color: var(--text-secondary); text-transform: uppercase;
  margin-bottom: 12px; text-align: center;
}
.audit-blocks__list { display: flex; flex-direction: column; gap: 8px; }
.audit-blocks__list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-main);
  padding: 10px 14px;
  background: var(--surface-alt); border-radius: var(--r-btn-sm);
}
.audit-blocks__list .status__dot { width: 8px; height: 8px; border-radius: 50%; opacity: 0.7; flex-shrink: 0; }
.audit-blocks__list .block-name { flex: 1; }
.audit-blocks__list .block-state { font-size: 12px; color: var(--text-secondary); }

/* Результат */
.audit-result {
  margin: 32px 0 16px;
  padding: 32px;
  background: var(--brand-soft);
  border-radius: var(--r-card);
  border: 1px solid var(--brand-border);
}
.audit-result__icon {
  color: var(--brand);
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  background: var(--surface);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.audit-result__title { font-size: 22px; font-weight: 600; color: var(--text-main); }
.audit-result__text { font-size: 14px; color: var(--text-secondary); margin: 8px 0 22px; }
.audit-result__email { font-size: 13px; color: var(--text-secondary); margin-top: 14px; }
.audit-result__email strong { color: var(--text-main); }

/* Ошибка / возврат */
.audit-failed {
  margin: 32px 0 16px;
  padding: 32px;
  background: #FEF2F2;
  border-radius: var(--r-card);
  border: 1px solid #FECACA;
}
.audit-failed__icon {
  color: var(--danger);
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  background: var(--surface);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.audit-failed__title { font-size: 22px; font-weight: 600; color: var(--text-main); }
.audit-failed__text { font-size: 14px; color: var(--text-secondary); margin: 8px 0 22px; }

.audit__hint { font-size: 13px; color: var(--text-muted); margin-top: 20px; }
.audit__timeout { font-size: 13px; color: var(--warning); margin-top: 12px; }

/* === 19. Страницы оплаты === */
.payment-status {
  text-align: center;
  padding: 48px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
}
.payment-status__icon {
  width: 64px; height: 64px; margin: 0 auto 20px;
  background: var(--brand-soft); color: var(--brand);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.payment-status__icon--fail { background: #FEF2F2; color: var(--danger); }
.payment-status__title { font-size: 24px; font-weight: 600; color: var(--text-main); }
.payment-status__text { font-size: 15px; color: var(--text-secondary); margin: 12px 0 24px; }
.payment-status__buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.payment-status__link { color: var(--brand); }
.payment-status__fallback { margin-top: 20px; font-size: 13px; color: var(--text-muted); }

/* === 20. Юридические страницы === */
.legal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-md);
  padding: 36px;
}
.legal__title { font-size: 24px; font-weight: 600; color: var(--text-main); margin-top: 12px; }
.legal__warning {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px;
  background: #FFFBEB; border: 1px solid #FDE68A; border-radius: var(--r-input);
  color: var(--warning);
  font-size: 13px;
  margin: 20px 0;
}
.legal__warning svg { flex-shrink: 0; margin-top: 1px; }
.legal__warning span { color: var(--text-secondary); }
.legal__subtitle { font-size: 16px; font-weight: 600; color: var(--text-main); margin-bottom: 14px; }
.legal__list { display: flex; flex-direction: column; gap: 10px; }
.legal__list li {
  font-size: 14px; color: var(--text-secondary); line-height: 1.6;
  padding-left: 20px; position: relative;
}
.legal__list li::before {
  content: "—"; position: absolute; left: 0; color: var(--text-muted);
}
.legal__updated { font-size: 12px; color: var(--text-muted); margin-top: 24px; }
.legal__contact { font-size: 14px; color: var(--text-secondary); margin-top: 8px; }
.legal__contact a { color: var(--brand); }

/* === 21. Scroll reveal (staggered) === */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for grouped elements */
.steps .step-card.reveal:nth-child(1) { transition-delay: 0ms; }
.steps .step-card.reveal:nth-child(2) { transition-delay: 80ms; }
.steps .step-card.reveal:nth-child(3) { transition-delay: 160ms; }
.steps .step-card.reveal:nth-child(4) { transition-delay: 240ms; }

.pricing-grid .pricing-card.reveal:nth-child(1) { transition-delay: 0ms; }
.pricing-grid .pricing-card.reveal:nth-child(2) { transition-delay: 100ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .spinner { animation: none; }
  .pricing-card__badge { animation: none; }
  html { scroll-behavior: auto; }
  .btn--primary:hover, .btn--input:hover, .step-card:hover, .pricing-card:hover { transform: none; }
}

/* === 22. Утилиты === */
[hidden] { display: none !important; }
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }