/* ==========================================================================
   CITIZE.RU — Почтовые рассылки
   Единая таблица стилей: 2 цветовые темы, адаптив, анимации
   ========================================================================== */

/* ---------- Дизайн-токены: дневная тема (по умолчанию) ---------- */
:root {
  --bg:          #f2f5fb;
  --bg-alt:      #e8edf7;
  --surface:     #ffffff;
  --text:        #16203a;
  --muted:       #5b6778;
  --accent:      #2f5cff;
  --accent-2:    #7b2ff7;
  --success:     #0e9f6e;
  --danger:      #d64545;
  --border:      rgba(22, 32, 58, 0.12);
  --header-bg:   rgba(255, 255, 255, 0.82);
  --footer-bg:   #0b1120;
  --footer-text: #c3cbdb;
  --grad:        linear-gradient(135deg, #2f5cff 0%, #7b2ff7 100%);
  --grad-soft:   linear-gradient(135deg, rgba(47, 92, 255, 0.12), rgba(123, 47, 247, 0.12));
  --shadow:      0 10px 30px rgba(22, 32, 58, 0.10);
  --shadow-lg:   0 18px 50px rgba(22, 32, 58, 0.16);
  --radius:      16px;
  --header-h:    72px;
}

/* ---------- Ночная тема ---------- */
[data-theme="dark"] {
  --bg:          #0c1222;
  --bg-alt:      #111a30;
  --surface:     #16223c;
  --text:        #e9eef9;
  --muted:       #9dabc4;
  --accent:      #5d8bff;
  --accent-2:    #a06bff;
  --success:     #2ee6a8;
  --danger:      #ff6b6b;
  --border:      rgba(233, 238, 249, 0.14);
  --header-bg:   rgba(12, 18, 34, 0.85);
  --footer-bg:   #060a14;
  --footer-text: #8e9cb6;
  --grad:        linear-gradient(135deg, #5d8bff 0%, #a06bff 100%);
  --grad-soft:   linear-gradient(135deg, rgba(93, 139, 255, 0.16), rgba(160, 107, 255, 0.16));
  --shadow:      0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg:   0 18px 50px rgba(0, 0, 0, 0.55);
}

/* ---------- Сброс и база ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  transition: background-color 0.35s ease, color 0.35s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg, iframe { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--accent-2); }

.container { width: min(1200px, 92%); margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border: none;
  border-radius: 12px;
  background: var(--grad);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(47, 92, 255, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(47, 92, 255, 0.45); color: #ffffff; }
.btn:active { transform: translateY(-1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
  box-shadow: none;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; }

/* ---------- Шапка ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.35s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Бренд CITIZE.RU: лёгкое вздрагивание строго при наведении */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
  white-space: nowrap;
}
.brand-text {
  display: inline-block; /* transform не применяется к строчным элементам */
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.brand:hover .brand-text { animation: brand-shake 0.55s ease-in-out; }
@keyframes brand-shake {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  20%      { transform: translateX(-1.5px) rotate(-1.5deg); }
  40%      { transform: translateX(1.5px) rotate(1.5deg); }
  60%      { transform: translateX(-1px) rotate(-1deg); }
  80%      { transform: translateX(1px) rotate(1deg); }
}

/* Навигация */
.nav-list { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-list a {
  display: block;
  padding: 9px 16px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 15.5px;
  transition: color 0.25s ease, background-color 0.25s ease;
}
.nav-list a:hover { color: var(--accent); background: var(--grad-soft); }

/* Переключатель темы */
.theme-toggle {
  width: 46px; height: 46px;
  flex: 0 0 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.35s ease;
}
.theme-toggle:hover { transform: rotate(18deg) scale(1.08); border-color: var(--accent); color: var(--accent); }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }

/* Бургер */
.burger {
  display: none;
  width: 46px; height: 46px;
  flex: 0 0 46px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.25s ease;
}
.burger span {
  width: 22px; height: 2.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger.active span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ---------- Hero (секция «Рассылки») ---------- */
.hero {
  padding: calc(var(--header-h) + 70px) 0 90px;
  background:
    radial-gradient(900px 420px at 85% 0%, var(--grad-soft), transparent 65%),
    var(--bg);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--grad-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 22px;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-lead { font-size: 19px; color: var(--muted); max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; }

/* ---------- Секции ---------- */
.section { padding: 92px 0; }
.section:nth-of-type(even) { background: var(--bg-alt); }

.section-head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.section-tag {
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--grad-soft);
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.section-title { font-size: clamp(27px, 3.6vw, 40px); font-weight: 800; line-height: 1.2; }
.section-desc { margin-top: 16px; color: var(--muted); font-size: 18px; }

/* Карточки */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--grad);
  color: #ffffff;
  margin-bottom: 18px;
  box-shadow: 0 8px 18px rgba(47, 92, 255, 0.3);
}
.card h3 { font-size: 18.5px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* Шаги */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; }
.step { text-align: center; padding: 26px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: transform 0.3s ease; }
.step:hover { transform: translateY(-5px); }
.step-num {
  width: 48px; height: 48px;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 19px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* ---------- Результаты: инфографика ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 56px; }
.metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}
.metric:hover { transform: translateY(-6px); }
.metric-value {
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1.1;
}
.metric-label { margin-top: 10px; color: var(--muted); font-size: 15px; }

.charts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.chart-card h3 { font-size: 17px; margin-bottom: 20px; text-align: center; }

.donut-wrap { display: flex; justify-content: center; }
.donut-arc {
  transition: stroke-dashoffset 1.4s cubic-bezier(0.25, 0.8, 0.3, 1);
  stroke-dashoffset: 100;
}
.visible .donut-arc { stroke-dashoffset: 78; }
.donut-label { font-size: 26px; font-weight: 800; fill: var(--text); }
.donut-sublabel { font-size: 11px; fill: var(--muted); }

.bars { display: flex; flex-direction: column; gap: 18px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 46px; align-items: center; gap: 12px; font-size: 14.5px; }
.bar-track { height: 12px; border-radius: 999px; background: var(--bg-alt); overflow: hidden; }
.bar-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--grad);
  transition: width 1.3s cubic-bezier(0.25, 0.8, 0.3, 1);
}
.visible .bar-fill { width: var(--w); }
.bar-val { font-weight: 700; text-align: right; }

.line-chart { width: 100%; height: auto; }
.line-path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.25, 0.8, 0.3, 1);
}
.visible .line-path { stroke-dashoffset: 0; }
.line-dot { opacity: 0; transition: opacity 0.4s ease; }
.visible .line-dot { opacity: 1; }
.visible .line-dot:nth-of-type(1) { transition-delay: 0.15s; }
.visible .line-dot:nth-of-type(2) { transition-delay: 0.35s; }
.visible .line-dot:nth-of-type(3) { transition-delay: 0.55s; }
.visible .line-dot:nth-of-type(4) { transition-delay: 0.75s; }
.visible .line-dot:nth-of-type(5) { transition-delay: 0.95s; }
.visible .line-dot:nth-of-type(6) { transition-delay: 1.15s; }

.chart-note { margin-top: 40px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- Тарифы ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 440px)); justify-content: center; gap: 30px; }
.plan-card {
  position: relative;
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 34px;
  box-shadow: var(--shadow);
  color: var(--text);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.plan-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--grad);
}
.plan-card:hover {
  transform: translateY(-9px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
  color: var(--text);
}
.plan-name { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.plan-price { font-size: clamp(30px, 3.4vw, 40px); font-weight: 800; margin-bottom: 24px; }
.plan-price span { font-size: 16px; font-weight: 600; color: var(--muted); }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.plan-features li { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 15.5px; }
.plan-features svg { flex: 0 0 20px; margin-top: 3px; color: var(--success); }
.plan-cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); }
.plan-card:hover .plan-cta { color: var(--accent-2); }

/* ---------- Отзывы ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.review-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.review-card:hover { transform: translateY(-7px) scale(1.015); box-shadow: var(--shadow-lg); }
.review-head { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 48px; height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 800;
  font-size: 19px;
  user-select: none;
}
.review-name { font-weight: 700; font-size: 15.5px; line-height: 1.3; }
.review-text {
  color: var(--muted);
  font-size: 14.5px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Заказ: карта + форма ---------- */
.order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: stretch; }
.order-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.map-frame {
  width: 100%;
  flex: 1 1 auto;
  min-height: 380px;
  border: 0;
  border-radius: 14px;
}
.contact-line { display: flex; align-items: center; gap: 14px; font-size: 15.5px; }
.contact-line svg { flex: 0 0 22px; color: var(--accent); }
.contact-line a { font-weight: 700; }

.order-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px 32px;
  box-shadow: var(--shadow);
}
.order-form-card h3 { font-size: 22px; margin-bottom: 6px; }
.order-form-card > p { color: var(--muted); font-size: 15px; margin-bottom: 24px; }

.field { margin-bottom: 18px; }
.field > label {
  display: block;
  font-weight: 700;
  font-size: 14.5px;
  margin-bottom: 8px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font-size: 15.5px;
  font-family: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 92, 255, 0.15);
}
.field input.is-invalid { border-color: var(--danger); }
.field .field-error { display: none; color: var(--danger); font-size: 13px; margin-top: 6px; }
.field.has-error .field-error { display: block; }

.captcha-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--grad-soft);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 8px;
}
.captcha-line svg { flex: 0 0 22px; color: var(--accent); }

.policy-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); margin: 22px 0; }
.policy-row input[type="checkbox"] {
  width: 20px; height: 20px;
  flex: 0 0 20px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}
.order-submit { width: 100%; }

.form-status { display: none; margin-top: 18px; padding: 14px 18px; border-radius: 12px; font-size: 14.5px; white-space: pre-line; }
.form-status.show { display: block; }
.form-status.ok  { background: rgba(14, 159, 110, 0.12); color: var(--success); border: 1px solid rgba(14, 159, 110, 0.4); }
.form-status.err { background: rgba(214, 69, 69, 0.10); color: var(--danger); border: 1px solid rgba(214, 69, 69, 0.4); }

/* Honeypot */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

/* ---------- Подвал ---------- */
.footer {
  margin-top: auto;
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 34px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 14.5px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer-links a { color: var(--footer-text); font-size: 14.5px; }
.footer-links a:hover { color: #ffffff; }

/* ---------- Cookie-баннер ---------- */
.consent-banner {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 300;
  width: min(860px, 94vw);
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 24px 26px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  animation: consent-in 0.5s ease;
}
.consent-banner.consent-visible { display: flex; }
@keyframes consent-in {
  from { opacity: 0; transform: translateX(-50%) translateY(30px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.consent-text { font-size: 14.5px; color: var(--muted); }
.consent-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.consent-links a { font-size: 14px; font-weight: 700; }
.consent-check { display: flex; align-items: center; gap: 10px; font-size: 14.5px; cursor: pointer; }
.consent-check input { width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer; }
.consent-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Кнопка «вверх» ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 14px;
  background: var(--grad);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(47, 92, 255, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}
.to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px); }

/* ---------- Появление при скролле ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease var(--delay, 0s), transform 0.7s ease var(--delay, 0s); }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .donut-arc, .line-path { stroke-dashoffset: 78; }
  .visible .line-path { stroke-dashoffset: 0; }
  .bar-fill { width: var(--w); }
}

/* ---------- Внутренние страницы (политики, правила) ---------- */
.page-wrap { flex: 1 0 auto; padding: calc(var(--header-h) + 60px) 0 80px; }
.legal-article {
  max-width: 860px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(26px, 5vw, 56px);
  box-shadow: var(--shadow);
}
.legal-article h1 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 8px; }
.legal-date { color: var(--muted); font-size: 14.5px; margin-bottom: 34px; }
.legal-article h2 { font-size: 21px; margin: 32px 0 12px; }
.legal-article h3 { font-size: 17.5px; margin: 22px 0 10px; }
.legal-article p, .legal-article li { color: var(--muted); font-size: 15.5px; margin-bottom: 10px; }
.legal-article ul { padding-left: 22px; margin-bottom: 14px; }
.legal-article strong { color: var(--text); }
.legal-back { margin-top: 40px; }

/* ---------- Страницы ошибок ---------- */
.error-page { flex: 1 0 auto; display: grid; place-items: center; padding: calc(var(--header-h) + 60px) 0 80px; }
.error-card { text-align: center; max-width: 620px; padding: 0 20px; }
.error-code {
  font-size: clamp(90px, 18vw, 170px);
  font-weight: 800;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: error-pop 0.7s cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes error-pop {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}
.error-title { font-size: clamp(22px, 3.4vw, 32px); font-weight: 800; margin: 18px 0 12px; }
.error-desc { color: var(--muted); margin-bottom: 32px; font-size: 17px; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1100px) {
  .cards-grid, .steps, .metrics { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .charts { grid-template-columns: 1fr 1fr; }
  .charts .chart-card:first-child { grid-column: 1 / -1; }
}

@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-art { max-width: 480px; margin: 0 auto; }
  .hero-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .order-grid { grid-template-columns: 1fr; }
  .map-frame { min-height: 340px; }
}

@media (max-width: 860px) {
  .burger { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 99;
    background: var(--header-bg);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  .nav.open { max-height: 420px; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 4vw 20px;
  }
  .nav-list a { padding: 13px 16px; font-size: 16.5px; }
  .section { padding: 70px 0; }
  .plans { grid-template-columns: minmax(0, 440px); }
}

@media (max-width: 768px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .charts { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards-grid, .steps, .metrics { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--header-h) + 44px); padding-bottom: 64px; }
  .section { padding: 58px 0; }
  .brand { font-size: 20px; }
  .order-form-card { padding: 26px 20px; }
  .order-info { padding: 18px; }
  .to-top { right: 14px; bottom: 14px; width: 48px; height: 48px; }
  .consent-banner { bottom: 10px; padding: 18px; }
  .consent-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 420px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 92px 1fr 42px; font-size: 13px; }
}

