:root {
  --bg: #f6f3ec;
  --surface: #ffffff;
  --ink: #10243a;
  --ink-2: #4b5c6e;
  --line: #e2dccf;
  --navy: #0b2f4a;
  --navy-2: #134a73;
  --accent: #ff9f1c;
  --accent-2: #ffb84d;
  --accent-ink: #241500;
  --tg: #229ed9;
  --ok: #1f8a4c;
  --err: #c0392b;
  --r: 14px;
  --r-sm: 10px;
  --shadow: 0 10px 30px rgba(11, 47, 74, .14);
  --max: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding-bottom: 76px;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy-2); }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 12px; }
.muted { color: var(--ink-2); }
.is-hidden { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 760px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border: 2px solid transparent; border-radius: 12px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .08s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px rgba(255, 159, 28, .35); }
.btn--primary:hover { background: var(--accent-2); }
.btn--primary[disabled] { opacity: .65; cursor: progress; }
.btn--tg { background: var(--tg); color: #fff; }
.btn--tg:hover { background: #1b8fc7; }
.btn--ghost { background: transparent; color: var(--navy-2); border-color: var(--line); min-height: 40px; padding: 0 16px; }
.btn--ghost:hover { border-color: var(--navy-2); background: #f1f6fa; }
.btn--block { width: 100%; }

/* Шапка */
.header { position: sticky; top: 0; z-index: 30; background: var(--navy); color: #fff; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 19px; }
.logo__mark { width: 32px; height: 32px; flex: none; }
.header__nav { display: none; gap: 24px; }
.header__nav a { color: #cfe0ee; text-decoration: none; font-weight: 600; }
.header__nav a:hover { color: #fff; }
.header .btn--tg { min-height: 40px; padding: 0 14px; font-size: 14px; white-space: nowrap; }
.hide-sm { display: none; }

/* Первый экран */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 420px at 88% -10%, #1c6397 0%, transparent 62%),
    linear-gradient(180deg, var(--navy), #0a2740);
}
.hero__route { display: none; position: absolute; inset: 0; width: 100%; height: 100%; opacity: .35; pointer-events: none; }
.hero__inner { position: relative; display: grid; gap: 28px; padding: 32px 16px 40px; }
.eyebrow { color: var(--accent-2); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.hero h1 { font-size: clamp(28px, 6.5vw, 46px); font-weight: 800; margin-bottom: 16px; text-wrap: balance; }
.hero__lead { font-size: 17px; color: #d6e5f1; max-width: 560px; margin-bottom: 20px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: #eaf2f8; }
.tick {
  flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Форма */
.card { background: var(--surface); color: var(--ink); border-radius: 18px; box-shadow: var(--shadow); }
.form { padding: 20px; }
.form__title { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.form__hint { color: var(--ink-2); font-size: 14px; margin-bottom: 16px; }
.grid2 { display: grid; gap: 12px; }
.field { display: block; margin: 0 0 12px; padding: 0; border: 0; min-width: 0; }
.field__label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; padding: 0; }
.field__label i { font-style: normal; font-weight: 500; opacity: .8; }
.field input[type="text"], .field input[type="date"], .field input[type="time"], .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: #fff; color: var(--ink); font: inherit; font-size: 16px;
}
.field textarea { resize: vertical; min-height: 70px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(255, 184, 77, .55); border-color: var(--accent); }
.field.has-error input, .field.has-error select { border-color: var(--err); }
.field__error { display: block; color: var(--err); font-size: 13px; min-height: 0; margin-top: 4px; }
.field__error:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600;
  background: #fff; color: var(--ink); user-select: none;
}
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--accent-2); outline-offset: 1px; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); margin: 4px 0 4px; cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--navy); }
.form .field__error[data-error-for="consent"] { margin: 0 0 8px; }
.form .btn--block { margin-top: 10px; }
.form__status { margin: 10px 0 0; font-size: 14px; min-height: 0; }
.form__status:empty { display: none; }
.form__status.is-error { color: var(--err); }
.form__done { text-align: center; padding: 10px 0; }
.form__done .btn { margin-top: 8px; }
.done__icon {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--ok); color: #fff; font-size: 28px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* Секции */
.section { padding: 48px 0; }
.section--alt { background: #fffdf8; border-block: 1px solid var(--line); }
.section__title { font-size: clamp(24px, 4.5vw, 34px); font-weight: 800; margin-bottom: 12px; text-wrap: balance; }
.section__lead { color: var(--ink-2); max-width: 720px; margin-bottom: 24px; }

/* Направления */
.routes { display: grid; gap: 28px; }
.routes__title { font-size: 18px; margin-bottom: 12px; }
.routes__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.route {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px;
}
.route__main { grid-column: 1; font-weight: 700; }
.route__arrow { margin: 0 8px; color: var(--accent); }
.route__meta { grid-column: 1; font-size: 13px; color: var(--ink-2); }
.route__meta:empty { display: none; }
.route__price { grid-column: 2; grid-row: 1; text-align: right; font-weight: 800; white-space: nowrap; }
.route__price--ask { font-weight: 600; font-size: 13px; color: var(--ink-2); white-space: normal; max-width: 130px; }
.route .btn { grid-column: 2; grid-row: 2; min-height: 36px; padding: 0 14px; margin-top: 4px; }
.route__meta { grid-row: 2; }

/* Шаги */
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.step__n {
  display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 10px;
}
.step h3, .mini h3 { font-size: 18px; margin-bottom: 6px; }
.step p, .mini p { color: var(--ink-2); margin: 0; font-size: 15px; }

.cards { display: grid; gap: 14px; margin-top: 24px; }
.mini { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }

/* FAQ */
.faq { margin-top: 20px; display: grid; gap: 10px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0 16px; }
.faq__item summary {
  cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 700; position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 400; color: var(--navy-2);
}
.faq__item[open] summary::after { content: "–"; }
.faq__item p { color: var(--ink-2); padding-bottom: 16px; margin: 0; }

/* Призыв */
.cta { background: var(--navy); color: #fff; padding: 40px 0; }
.cta__inner { display: grid; gap: 20px; }
.cta h2 { font-size: clamp(22px, 4vw, 30px); margin-bottom: 6px; }
.cta p { color: #cfe0ee; margin: 0; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Подвал */
.footer { padding: 32px 0 24px; font-size: 14px; }
.footer__inner { display: grid; gap: 16px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-2); }
.footer__note { color: var(--ink-2); font-size: 13px; margin: 0; max-width: 760px; }

/* Нижняя панель на телефоне */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
  backdrop-filter: blur(6px); transition: transform .2s ease;
}
.mobile-cta .btn--primary { flex: 1; }
.mobile-cta.is-away { transform: translateY(110%); }

/* Юридические страницы */
.legal { padding: 40px 0 56px; }
.legal h1 { font-size: clamp(26px, 5vw, 36px); margin-bottom: 8px; }
.legal h2 { font-size: 20px; margin: 28px 0 8px; }
.legal p, .legal li { color: #2b3d50; }
.legal ul { padding-left: 20px; }

@media (min-width: 640px) {
  .grid2 { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .routes__list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .header__nav { display: flex; }
  .header .btn--tg { font-size: 15px; padding: 0 18px; }
  .hide-sm { display: inline; }
  .hero__route { display: block; }
  .hero__inner { grid-template-columns: 1.02fr .98fr; align-items: start; gap: 48px; padding: 64px 16px 72px; }
  .form { padding: 26px; }
  .section { padding: 72px 0; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .routes__list { grid-template-columns: repeat(2, 1fr); }
  .cta__inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer__inner { grid-template-columns: 1fr auto; align-items: start; }
  .footer__note { grid-column: 1 / -1; }
  .mobile-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .mobile-cta { transition: none; }
}
