/* ParkGPT — рекламный сайт. Тёмная тема по макетам от 05.09.2026.
   Ни одного внешнего ресурса: у страницы Content-Security-Policy с
   default-src 'self', и любой import или шрифт с CDN не загрузится молча.
   Шрифты системные, иконки — инлайновый SVG.

   Светлой темы намеренно нет. В макетах ночная сцена и синее свечение — это
   и есть характер бренда; вторая тема здесь не «поддержка предпочтений», а
   второй дизайн, который придётся рисовать и поддерживать. */

:root {
  --accent: #2F80FF;
  --accent-strong: #1B6FF3;
  --accent-dark: #1559C8;
  --accent-soft: rgba(47, 128, 255, .14);
  --accent-line: rgba(88, 148, 255, .32);

  --success: #34C759;
  --success-soft: rgba(52, 199, 89, .14);
  --warn: #FFB020;
  --error: #FF5A52;
  --error-soft: rgba(255, 90, 82, .14);

  /* Фон страницы и «стекло» панелей. Панель всегда светлее фона: в макете
     карточки лежат на фоне, а не нарисованы на нём. */
  --bg: #060B14;
  --bg-alt: #0A121F;
  --panel: #0E1A2E;
  --panel-2: #12213A;
  --line: rgba(96, 140, 205, .18);
  --line-strong: rgba(96, 140, 205, .34);

  --text: #EAF1FB;
  --text-dim: #C3D2E8;
  --muted: #8FA4C4;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, .45);
  --glow: 0 8px 26px rgba(27, 111, 243, .35);

  --radius: 16px;
  --radius-lg: 24px;
  --wrap: 1200px;

  /* Сцена первого экрана: пока рисованный SVG, ждём растровые иллюстрации. */
  --sc-sky-1: #16294A;
  --sc-sky-2: #070D18;
  --sc-far: #17294A;
  --sc-ground: #0B1524;
  --sc-body: #C9D8EE;
  --sc-glass: #6E9BE0;
  --sc-post: #55688A;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; color: var(--text); }
h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 760; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 730; }
h3 { font-size: 19px; font-weight: 660; }
p { margin: 0 0 14px; }

[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 860px; }
.muted { color: var(--muted); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: 12px 18px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

/* --- Кнопки --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-weight: 630;
  cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn::after { content: "→"; font-size: 1.05em; opacity: .85; }
.btn-no-arrow::after { content: none; }

.btn-primary { background: var(--accent-strong); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { background: var(--accent); }

.btn-ghost { background: rgba(255, 255, 255, .05); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }

.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn-block { width: 100%; }

/* --- Шапка ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 11, 20, .86);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo-mark { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2.2; }
.logo-mark rect { fill: rgba(47, 128, 255, .16); }
.logo-p { stroke-linecap: round; }
.logo-text { font-size: 21px; font-weight: 750; letter-spacing: -0.02em; }
.logo-accent { color: var(--accent); }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--text-dim); font-size: 15.5px; font-weight: 520; }
.nav a:hover { color: #fff; text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.header-phone { color: var(--text); font-weight: 640; white-space: nowrap; }

.burger {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; justify-content: center; gap: 5px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
}
.burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

/* --- Первый экран --------------------------------------------------------- */
/* Экран — панель со скруглением, как в макете: сцена внутри неё, а не фоном
   всей страницы. Так изображение можно заменить, не трогая раскладку. */
.hero { padding: 28px 0 8px; }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 36px;
  align-items: center;
  padding: 52px 44px 0;
  background: radial-gradient(900px 420px at 78% 8%, #1B3768 0%, transparent 62%), var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  color: #A9C7FF;
  font-size: 14px;
  font-weight: 560;
}

.hero h1 { margin-bottom: 18px; }
.lead { max-width: 34em; color: var(--text-dim); font-size: 18.5px; margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.hero-text { padding-bottom: 44px; }
.hero-art { display: flex; justify-content: center; align-self: end; }
.scene { width: 100%; height: auto; }

/* Полоса цифр — на всю ширину панели, поверх нижнего края сцены. */
.hero-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0 -44px;
  padding: 26px 44px;
  background: rgba(6, 11, 20, .55);
  border-top: 1px solid var(--line);
  list-style: none;
  text-align: center;
}
.hero-facts li { display: flex; flex-direction: column; gap: 4px; }
.hero-facts b {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 750;
  color: var(--accent);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.hero-facts span { font-size: 14.5px; line-height: 1.35; color: var(--muted); }

.sc-sky-top { stop-color: var(--sc-sky-1); }
.sc-sky-bottom { stop-color: var(--sc-sky-2); }
.sc-far rect { fill: var(--sc-far); }
.sc-ground { fill: var(--sc-ground); }
.sc-road rect { fill: rgba(255, 255, 255, .12); }
.sc-post rect { fill: var(--sc-post); }
.sc-lens { fill: var(--accent); }
.sc-boom { fill: #E8EDF6; }
.sc-car rect { fill: var(--sc-body); }
.sc-glass { fill: var(--sc-glass); }
.sc-wheel { fill: #0B1524; stroke: var(--sc-post); stroke-width: 3; }
.sc-plate rect { fill: #fff; }
.sc-plate-band { fill: var(--accent-strong) !important; }
.sc-plate-country { fill: #fff; font: 700 14px/1 system-ui, sans-serif; }
.sc-plate-text { fill: #101828; font: 700 30px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 1px; }

/* --- Секции --------------------------------------------------------------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }

.section-title { max-width: 22em; }
.section-lead { max-width: 46em; color: var(--muted); font-size: 17.5px; margin-bottom: 32px; }
.section-note { max-width: 46em; margin-top: 26px; color: var(--muted); font-size: 16px; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card p:last-child { margin-bottom: 0; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; }

.pain h3 { color: var(--text); }

.module .ic { width: 28px; height: 28px; margin-bottom: 14px; }

/* Уголок со стрелкой, как в макете: подсказывает, что карточка кликабельна
   или раскрывается, но не притворяется кнопкой. */
.module::after, .segment::after {
  content: "›";
  position: absolute;
  right: 16px;
  bottom: 12px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
}

.ic { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.segment {
  display: flex;
  flex-direction: column;
  color: inherit;
  padding-bottom: 28px;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.segment:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-md);
}
.link-more { margin-top: auto; padding-top: 14px; color: var(--accent); font-weight: 640; }
.link-more::after { content: " →"; }

/* --- Шаги ----------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps-5 { grid-template-columns: repeat(5, 1fr); }

.step { padding-top: 30px; }
.step-num {
  position: absolute;
  top: -14px;
  left: 24px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--accent-strong);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  box-shadow: var(--glow);
}

/* --- Заметка -------------------------------------------------------------- */
.note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 26px;
  padding: 20px 22px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
}
.note .ic { flex: none; width: 24px; height: 24px; margin-top: 2px; }
.note p { margin: 0; font-size: 16px; color: var(--text-dim); }
.note-accent { background: var(--success-soft); border-color: rgba(52, 199, 89, .3); }
.note-accent .ic { stroke: var(--success); }

/* --- Метрики -------------------------------------------------------------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}
.metric {
  padding: 24px;
  background: linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.metric b {
  display: block;
  font-size: 40px;
  font-weight: 760;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.metric span { display: block; margin-top: 6px; font-size: 14.5px; color: var(--muted); line-height: 1.35; }

/* --- Цены ----------------------------------------------------------------- */
.price { display: flex; flex-direction: column; }
.price-tag { margin-top: auto; padding-top: 14px; font-weight: 680; color: var(--text); }
.price-main { border-color: var(--accent-line); box-shadow: var(--shadow-md); }

/* --- Вопросы -------------------------------------------------------------- */
.faq { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-size: 17.5px;
  font-weight: 620;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
}
.faq[open] summary::after { content: "−"; }
.faq p { margin: 0 0 16px; color: var(--muted); max-width: 60em; }

/* --- Форма ---------------------------------------------------------------- */
.section-cta { background: var(--bg-alt); }

.lead-form {
  background: linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 15px; font-weight: 600; color: var(--text-dim); }
.req { color: var(--error); margin-left: 3px; }

.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  background: rgba(6, 11, 20, .6);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  font-size: 16px;  /* меньше 16px — iOS увеличивает страницу при фокусе */
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6E82A3; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field input.bad, .field select.bad { border-color: var(--error); background: var(--error-soft); }
.field select option { background: var(--panel); color: var(--text); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Ловушка для ботов. Не display:none — часть ботов такие поля пропускает. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 20px;
  font-size: 15px;
  color: var(--muted);
}
.consent input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }

.form-msg {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--error-soft);
  border: 1px solid rgba(255, 90, 82, .35);
  color: #FFB4AE;
  font-size: 15.5px;
}
.form-ok { background: var(--success-soft); border-color: rgba(52, 199, 89, .35); color: #93E5AC; }
.form-alt { margin: 16px 0 0; text-align: center; color: var(--muted); font-size: 15px; }

/* --- Подвал --------------------------------------------------------------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); color: var(--muted); padding: 52px 0 24px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; }
.footer-col h3 { color: var(--text); font-size: 16px; margin-bottom: 12px; }
.footer-col p { margin: 0 0 8px; font-size: 15.5px; }
.footer-col a { color: var(--text-dim); }
.footer-col a:hover { color: #fff; }
.footer-about { margin-top: 14px; max-width: 30em; font-size: 15.5px; color: var(--muted); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--muted);
}

/* --- Плавающая кнопка на телефоне ---------------------------------------- */
.sticky-cta {
  display: none;
  position: fixed;
  left: 16px; right: 16px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 40;
  padding: 16px;
  background: var(--accent-strong);
  color: #fff;
  border-radius: 14px;
  text-align: center;
  font-weight: 660;
  box-shadow: var(--glow);
}
.sticky-cta:hover { text-decoration: none; }

/* --- Подстраницы ---------------------------------------------------------- */
.page-hero {
  padding: 44px 0 52px;
  background: radial-gradient(900px 420px at 80% 0%, #1B3768 0%, transparent 62%), var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 16em; }
.page-hero .lead { margin-bottom: 22px; }

.crumbs { margin: 0 0 16px; font-size: 14.5px; color: var(--muted); }
.crumbs a { color: var(--text-dim); }
.crumbs-page { color: var(--muted); }
.crumbs-page a { color: var(--accent); }

.checklist { margin: 0 0 20px; padding: 0; list-style: none; }
.checklist li { position: relative; padding: 0 0 12px 32px; color: var(--text-dim); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 4px; top: 8px;
  width: 12px; height: 7px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

.prose { max-width: 42em; }
.prose p, .prose li { color: var(--text-dim); }
.prose h2 { margin-top: 34px; font-size: 24px; }
.prose h3 { margin-top: 24px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }

/* --- Контакты ------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card { display: flex; flex-direction: column; gap: 6px; text-align: center; align-items: center; }
.contact-card .ic { width: 28px; height: 28px; margin-bottom: 6px; }
.contact-card b { font-size: 18px; color: var(--text); }
.contact-card a { font-size: 18px; font-weight: 640; }

/* --- Экран «спасибо» ------------------------------------------------------ */
.thanks-mark {
  width: 68px; height: 68px;
  margin-bottom: 22px;
  fill: none;
  stroke: var(--success);
  stroke-width: 2;
}
.thanks-title span { color: var(--success); }

/* --- Раскладка на узких экранах ------------------------------------------ */
@media (max-width: 1040px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps, .steps-5 { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; padding: 40px 28px 0; }
  .hero-text { padding-bottom: 24px; }
  .hero-art { order: -1; max-width: 560px; }
  .hero-facts { margin: 0 -28px; padding: 22px 28px; grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .burger { display: flex; }
  .header-phone { display: none; }
  .site-header { position: relative; }
}

@media (max-width: 720px) {
  .section { padding: 48px 0; }
  .hero { padding: 16px 0 0; }
  .hero-inner { padding: 30px 18px 0; border-radius: 20px; }
  .hero-facts { margin: 0 -18px; padding: 18px; gap: 14px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps, .steps-5 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .lead-form { padding: 20px; }
  .sticky-cta { display: block; }
  body { padding-bottom: 76px; }
}

/* --- Движение ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .btn:hover, .segment:hover { transform: none; }
}
