/* ==========================================================================
   SEO Радар - Стили основного лендинга
   Шрифтовая пара: Geologica / Piazzolla
   Только короткое тире (-) во всех комментариях и текстах.
   ========================================================================== */

:root {
  /* Типографика */
  --font-sans: 'Geologica', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Piazzolla', Georgia, serif;

  /* Палитра */
  --bg-deep: #07090E;
  --bg-surface: #0E131F;
  --bg-surface-elevated: #141C2E;
  --bg-card: rgba(16, 23, 38, 0.75);
  --bg-card-hover: rgba(22, 32, 54, 0.9);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(56, 189, 248, 0.35);

  /* Текст */
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  /* Акценты */
  --accent-cyan: #38BDF8;
  --accent-blue: #0284C7;
  --accent-blue-hover: #0369A1;
  --accent-emerald: #10B981;
  --accent-amber: #F59E0B;
  --accent-rose: #F43F5E;

  /* Размеры и сетка */
  --container-max: 1240px;
  --header-height: 80px;
  --header-height-mobile: 64px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Сброс стилей */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Контейнер */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369A1 0%, #075985 100%);
  box-shadow: 0 6px 24px rgba(2, 132, 199, 0.5);
  transform: translateY(-2px);
  color: #FFFFFF;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: var(--border-subtle);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: #FFFFFF;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.btn-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  flex-shrink: 0;
}

/* Типографика секций */
.section-tag {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 48px;
}

.section-desc.center {
  margin-left: auto;
  margin-right: auto;
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   Шапка (Header)
   Условие: держит ОДНУ строку при любой ширине экрана.
   Логотип: векторный знак + HTML-текст (Piazzolla, >=44px десктоп, >=32px моб)
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.header-scrolled {
  background-color: rgba(7, 9, 14, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
  flex-wrap: nowrap;
}

/* Логотип: знак + обычный HTML-текст рядом */
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  min-height: 48px;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.site-logo:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.logo-mark-svg {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  flex-shrink: 0;
  display: block;
  color: inherit;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-logo:hover .logo-mark-svg {
  transform: scale(1.08);
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: currentColor;
  white-space: nowrap;
  line-height: 1;
}

/* Меню шапки */
.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  color: var(--accent-cyan);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Бургер-кнопка */
.burger-btn {
  display: none;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
  color: var(--text-primary);
  flex-shrink: 0;
}

.burger-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.burger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-btn.open span:nth-child(2) {
  opacity: 0;
}

.burger-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Мобильная шторка меню */
.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: rgba(7, 9, 14, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 99;
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer .nav-link {
  font-size: 1.1rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-drawer .mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

/* ==========================================================================
   Главный экран (Hero)
   Главный медиа-эффект: крупный герой с приглушением
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: calc(var(--header-height) + 32px);
  padding-bottom: 60px;
}

/* Растровый светлый фон с параллаксом */
.hero-media-backdrop {
  position: absolute;
  inset: -20px;
  background: url('../images/hero_workspace.jpg') no-repeat center center;
  background-size: cover;
  z-index: 1;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

/* Тонкая тёмная вуаль (строго до 20%, норма брифа до 25%) */
.hero-veil {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 14, 0.18);
  z-index: 2;
}

/* Интерактивный canvas со световыми преломлениями */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

/* Локальный градиент под строкой для четкой читаемости */
.hero-readable-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 35% 50%, rgba(7, 9, 14, 0.88) 0%, rgba(7, 9, 14, 0.65) 45%, rgba(7, 9, 14, 0.1) 80%);
  z-index: 4;
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

/* Текстовая колонка первого экрана */
.hero-content {
  max-width: 640px;
}

.hero-overtitle {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.25vw, 1.22rem);
  color: #E2E8F0;
  line-height: 1.55;
  margin-bottom: 32px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.hero-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-badge-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent-emerald);
}

/* ==========================================================================
   Фирменный приём: До/после с перетаскиваемым разделителем на реальном кейсе
   Кадр один, границу двигает человек
   ========================================================================== */

.hero-compare-wrapper {
  width: 100%;
  max-width: 560px;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compare-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
}

.compare-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  display: inline-block;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.compare-header-hint {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* Карточка-контейнер сравнения */
.compare-card {
  --split-pos: 50%;
  --card-width: 560px;
  position: relative;
  width: 100%;
  height: 390px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #0B101D;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
  outline: none;
}

.compare-card:focus-visible {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.3);
}

/* Слой ДО аудита (базовый, красный) */
.compare-layer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.layer-before {
  background: radial-gradient(circle at top right, rgba(239, 68, 68, 0.12), transparent 70%), #0D1322;
  z-index: 1;
}

/* Слой ПОСЛЕ аудита (зеленый, поверх, обрезается по ширине) */
.layer-after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--split-pos, 50%);
  overflow: hidden;
  border-right: 2px solid var(--accent-cyan);
  background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.15), transparent 70%), #08131C;
  z-index: 2;
  padding: 0;
}

/* Внутренний контейнер слоя ПОСЛЕ - имеет фиксированную ширину всей карточки */
.compare-layer-inner {
  width: var(--card-width, 560px);
  min-width: 300px;
  height: 100%;
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Статус-бар */
.compare-state-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.state-pill {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.pill-bad {
  background: rgba(239, 68, 68, 0.2);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.pill-good {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.state-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Шкалы оценок */
.compare-gauges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.compare-gauge-col {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 4px;
  text-align: center;
}

.compare-gauge-col.bad .gauge-val-box {
  color: #F87171;
}

.compare-gauge-col.warn .gauge-val-box {
  color: #FBBF24;
}

.compare-gauge-col.good .gauge-val-box {
  color: #34D399;
}

.gauge-val-box {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 4px;
}

.gauge-lbl {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* Список проблем / решений */
.compare-issues {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.issue-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  line-height: 1.35;
}

.issue-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.badge-critical {
  background: rgba(239, 68, 68, 0.2);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-success {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.issue-desc {
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Разделитель ползунка */
.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split-pos, 50%);
  transform: translateX(-50%);
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

.divider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
}

.divider-knob {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0B101D;
  border: 2px solid var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: ew-resize;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.divider-knob:hover {
  transform: scale(1.1);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.8);
}

.divider-knob svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

/* Нижняя панель сравнения */
.compare-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 4px;
}

.compare-note {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.compare-toggles {
  display: inline-flex;
  gap: 6px;
}

.btn-toggle-view {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-toggle-view:hover,
.btn-toggle-view.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

/* ==========================================================================
   Секция 2: Где работает (Платформы)
   ========================================================================== */

.platforms-section {
  padding: 100px 0;
  position: relative;
  background: var(--bg-deep);
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.platform-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.platform-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.platform-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.platform-icon-box svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
}

.platform-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
}

.platform-handle {
  font-size: 0.88rem;
  color: var(--accent-cyan);
  font-family: var(--font-sans);
}

.platform-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.platform-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.platform-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.platform-features svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent-emerald);
  flex-shrink: 0;
}

/* ==========================================================================
   Секция 3: Как это работает (4 шага)
   ========================================================================== */

.steps-section {
  padding: 100px 0;
  background: var(--bg-surface);
  position: relative;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition);
  position: relative;
}

.step-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.step-number {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-cyan);
  opacity: 0.85;
  margin-bottom: 16px;
  line-height: 1;
}

.step-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.step-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   Секция 4: Что проверяет бот (Адаптивная сетка)
   Никакого горизонтального переполнения при 390px / 360px!
   ========================================================================== */

.features-section {
  padding: 100px 0;
  background: var(--bg-deep);
  position: relative;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  align-items: stretch;
}

.feature-card {
  flex: 0 1 360px;
  width: 100%;
  max-width: 380px;
  box-sizing: border-box;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.feature-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.feature-icon-box svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.feature-number {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-muted);
}

.feature-card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.feature-card-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 24px;
  flex-grow: 1;
}

.feature-preview-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: auto;
}

.cwv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.cwv-table tr:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.cwv-table td {
  padding: 6px 0;
}

.cwv-label {
  color: var(--text-secondary);
}

.cwv-value {
  text-align: right;
  font-weight: 600;
  color: var(--accent-cyan);
}

.feature-check-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.check-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 0.78rem;
  color: var(--text-primary);
}

.code-snippet {
  font-family: monospace;
  background: #0B0F19;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  color: #7DD3FC;
  font-size: 0.8rem;
  line-height: 1.4;
  overflow-x: auto;
  max-width: 100%;
}

/* ==========================================================================
   Секция 5: Тарифы (Pricing)
   Строго 5 позиций: Текстовый (0 ₽), PDF (149 ₽), Пакет 10 PDF (990 ₽),
   Pro (2 490 ₽), Агентство (4 990 ₽).
   Неполный ряд всегда стоит по центру (Правило 121)!
   ========================================================================== */

.pricing-section {
  padding: 100px 0;
  background: var(--bg-surface);
  position: relative;
}

.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 32px;
}

.pricing-card {
  flex: 0 1 224px;
  min-width: 210px;
  max-width: 280px;
  box-sizing: border-box;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.pricing-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.pricing-card.featured {
  border-color: var(--accent-cyan);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-cyan);
  color: #07090E;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

.pricing-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.pricing-cost-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.pricing-cost {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.pricing-period {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.pricing-limit-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  min-height: 38px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  flex-grow: 1;
}

.pricing-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.pricing-features-list svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-card .btn {
  width: 100%;
}

.pricing-footnote {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Секция 6: Частые вопросы (FAQ - ровно 5 вопросов)
   ========================================================================== */

.faq-section {
  padding: 100px 0;
  background: var(--bg-deep);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1.08rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  stroke: var(--accent-cyan);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.6;
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 24px 24px;
}

/* ==========================================================================
   Секция 7: Финальный CTA
   ========================================================================== */

.final-cta-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-deep) 0%, #0A111F 100%);
  position: relative;
  text-align: center;
}

.final-cta-card, .cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 60px 32px;
  max-width: 860px;
  margin: 0 auto;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.final-cta-card::before, .cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
}

.final-cta-title, .cta-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.final-cta-desc, .cta-desc {
  font-size: 1.12rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
}

.final-cta-btns, .cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   Подвал (Footer)
   ========================================================================== */

.site-footer {
  background: #04060A;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 40px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  margin-top: 12px;
  color: var(--text-muted);
  max-width: 320px;
  font-size: 0.88rem;
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links-list a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Кнопка возврата наверх (Back to Top)
   ========================================================================== */

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(14, 19, 31, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, border-color 0.2s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.25);
}

.progress-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 3;
}

.ring-fill {
  fill: none;
  stroke: var(--accent-cyan);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 138.23;
  stroke-dashoffset: 138.23;
  transition: stroke-dashoffset 0.1s linear;
}

.arrow-icon {
  width: 20px;
  height: 20px;
  z-index: 2;
}

/* ==========================================================================
   Адаптивность (Media Queries)
   Проверено на 1920, 1440, 1280, 1024, 768, 480, 390, 360 px.
   ========================================================================== */

@media (max-width: 1024px) {
  .header-nav {
    display: none;
  }
  .burger-btn {
    display: flex;
  }
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-badges {
    justify-content: center;
  }
  .hero-compare-wrapper {
    margin: 0 auto;
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: var(--header-height-mobile);
  }
  .container {
    padding: 0 16px;
  }
  .site-logo {
    height: 44px;
    min-height: 44px;
    gap: 10px;
  }
  .logo-mark-svg {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  .logo-text {
    font-size: 1.45rem;
  }
  .platforms-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card {
    flex: 0 1 260px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-actions .btn {
    display: none;
  }
}

@media (max-width: 480px) {
  .site-logo {
    height: 34px;
    min-height: 34px;
    gap: 8px;
  }
  .logo-mark-svg {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
  }
  .logo-text {
    font-size: 1.25rem;
  }
  .hero-title {
    font-size: 1.95rem;
  }
  .hero-compare-wrapper {
    max-width: 100%;
  }
  .compare-card {
    height: 420px;
  }
  .compare-layer, .compare-layer-inner {
    padding: 16px 12px;
    gap: 12px;
  }
  .state-desc {
    display: none;
  }
  .compare-gauges {
    gap: 6px;
  }
  .compare-gauge-col {
    padding: 6px 2px;
  }
  .gauge-val-box {
    font-size: 1.05rem;
  }
  .gauge-lbl {
    font-size: 0.65rem;
  }
  .issue-row {
    padding: 6px 8px;
    font-size: 0.75rem;
    gap: 6px;
  }
  .issue-badge {
    font-size: 0.62rem;
    padding: 1px 4px;
  }
  .compare-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .feature-card {
    flex: 0 1 100%;
    max-width: 100%;
    padding: 22px 16px;
  }
  .pricing-card {
    flex: 0 1 100%;
    max-width: 100%;
  }
  .platform-card {
    padding: 24px 16px;
  }
  .final-cta-card, .cta-card {
    padding: 36px 16px;
  }
}

@media (max-width: 390px) {
  .site-logo {
    height: 34px;
    min-height: 34px;
    gap: 6px;
  }
  .logo-mark-svg {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }
  .logo-text {
    font-size: 1.15rem;
  }
  .hero-title {
    font-size: 1.8rem;
  }
}

/* Уважение к prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-media-backdrop {
    transform: none !important;
  }
  .hero-canvas {
    display: none !important;
  }
  .back-to-top:hover {
    transform: none !important;
  }
  .pulse-indicator {
    animation: none !important;
  }
}
