:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --ink: #0b1626;
  --muted: #5f6b7c;
  --line: #e1e5eb;
  --navy: #0b1626;
  --navy-2: #13233a;
  --accent: #f5a524;
  --accent-ink: #1a1203;
  --accent-soft: #fff4dd;
  --green: #1f9d55;
  --green-soft: #e3f6ea;
  --blue: #2563eb;
  --blue-soft: #e5edff;
  --amber: #b26a00;
  --amber-soft: #fff1d6;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(11, 22, 38, .07);
  --display: 'Unbounded', 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); line-height: 1.5;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-family: var(--display); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(24px, 3.4vw, 36px); }
p { margin: 0; }
.muted { color: var(--muted); }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px; border: 0; border-radius: 14px; cursor: pointer;
  font-family: inherit; font-weight: 800; font-size: 16px; line-height: 1;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:active { transform: scale(.98); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { box-shadow: 0 10px 24px rgba(245, 165, 36, .4); }
.btn--light { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .2); }
.btn--light:hover { background: rgba(255, 255, 255, .16); }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; }

/* Шапка */
.header { position: sticky; top: 0; z-index: 20; background: rgba(11, 22, 38, .94); backdrop-filter: blur(12px); color: #fff; }
.header__inner { display: flex; align-items: center; gap: 28px; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: .02em; }
.logo__mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, #ffc65c, var(--accent)); color: var(--accent-ink); font-size: 13px;
}
.nav { display: flex; gap: 22px; margin-left: 8px; font-weight: 600; font-size: 15px; }
.nav a { opacity: .72; transition: opacity .15s; }
.nav a:hover { opacity: 1; }
.header__phone { margin-left: auto; font-weight: 700; white-space: nowrap; }
.burger { display: none; }

/* Первый экран */
.hero {
  color: #fff; padding: 76px 0 112px;
  background:
    radial-gradient(800px 480px at 90% 10%, rgba(245, 165, 36, .22), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(37, 99, 235, .25), transparent 60%),
    linear-gradient(180deg, var(--navy), var(--navy-2));
}
.hero__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.flags { display: flex; gap: 8px; flex-wrap: wrap; }
.flags span { padding: 7px 13px; border-radius: 99px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); font-size: 14px; font-weight: 600; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); margin: 22px 0 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { font-size: 18px; color: rgba(255, 255, 255, .72); max-width: 560px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero__facts { display: flex; gap: 36px; list-style: none; padding: 0; margin: 40px 0 0; flex-wrap: wrap; }
.hero__facts b { display: block; font-family: var(--display); font-size: 22px; }
.hero__facts span { color: rgba(255, 255, 255, .58); font-size: 14px; }

.hero__card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 26px; padding: 28px; }
.route { display: grid; }
.route__point { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; align-items: center; }
.route__point span {
  grid-row: span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  background: rgba(255, 255, 255, .08); font-size: 24px;
}
.route__point small { color: rgba(255, 255, 255, .55); font-size: 13px; }
.route__point--end span { background: var(--accent); }
.route__line { width: 2px; height: 22px; margin: 6px 0 6px 25px; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .35) 0 4px, transparent 4px 8px); }

/* Гарантии */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -56px; position: relative; }
.perk { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: grid; gap: 4px; border-top: 4px solid var(--accent); }
.perk b { font-size: 17px; }
.perk span { color: var(--muted); font-size: 14px; }

/* Секции */
.section { padding: 92px 0; }
.section--alt { background: var(--surface); }
.section--dark { background: var(--navy); color: #fff; }
.section__head { margin-bottom: 36px; max-width: 720px; }
.section__head p { margin-top: 10px; font-size: 17px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* Поля */
.field { display: grid; gap: 7px; font-size: 13px; font-weight: 700; color: var(--muted); min-width: 0; border: 0; padding: 0; margin: 0; }
.field input:not([type="radio"]):not([type="range"]) {
  width: 100%; height: 50px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface);
  font-family: inherit; font-weight: 700; font-size: 16px; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input.invalid { border-color: #e5484d; }
.field__hint { font-weight: 600; color: var(--muted); min-height: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 44px !important; }
.input-suffix b { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 16px; }

/* Переключатели-сегменты */
.seg { display: flex; gap: 4px; padding: 4px; background: var(--bg); border-radius: 14px; }
.seg label { flex: 1; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 10px; border-radius: 11px;
  font-weight: 700; font-size: 15px; color: var(--muted); transition: all .15s; white-space: nowrap;
}
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(11, 22, 38, .1); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }
.seg--small span { height: 38px; font-size: 14px; }

/* Калькулятор */
.calc { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border-radius: 26px; box-shadow: var(--shadow); overflow: hidden; }
.calc__form { padding: 32px; display: grid; gap: 20px; align-content: start; }
.calc__result { padding: 32px; background: var(--navy); color: #fff; display: flex; flex-direction: column; gap: 16px; }
.calc__rows { display: grid; gap: 12px; }
.calc__rows div { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.calc__rows span { color: rgba(255, 255, 255, .62); }
.calc__rows b { white-space: nowrap; }
.calc__total { display: grid; gap: 2px; padding-top: 18px; margin-top: auto; border-top: 1px dashed rgba(255, 255, 255, .22); }
.calc__total span { color: rgba(255, 255, 255, .62); font-weight: 600; }
.calc__total b { font-family: var(--display); font-size: clamp(30px, 4vw, 40px); color: var(--accent); }
.calc__total small { color: rgba(255, 255, 255, .62); font-size: 14px; }
.calc__warn { background: rgba(245, 165, 36, .14); color: #ffd58a; border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600; }
.calc__note { color: rgba(255, 255, 255, .5); font-size: 13px; text-align: center; }

/* Фильтры и каталог */
.filters { display: grid; gap: 10px; justify-items: end; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 10px 16px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 14px; color: var(--ink); transition: all .15s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }
.car { background: var(--bg); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; animation: rise .35s ease both; }
.car:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11, 22, 38, .12); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.car__img { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(160deg, #e9edf3, #d8dee8); display: grid; place-items: center; }
.car__img img { width: 100%; height: 100%; object-fit: cover; }
.car__img svg { width: 72%; color: #b3bccb; }
.car__badges { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; gap: 8px; }
.tag { padding: 6px 12px; border-radius: 99px; font-size: 12px; font-weight: 800; background: rgba(255, 255, 255, .94); }
.tag--green { background: var(--green-soft); color: var(--green); }
.tag--blue { background: var(--blue-soft); color: var(--blue); }
.tag--amber { background: var(--amber-soft); color: var(--amber); }
.car__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.car__body h3 { font-size: 18px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 0; }
.specs div { display: grid; }
.specs dt { color: var(--muted); font-size: 12px; font-weight: 600; }
.specs dd { margin: 0; font-weight: 700; font-size: 14px; }
.car__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1.5px solid var(--line); }
.car__price small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.car__price b { font-family: var(--display); font-size: 20px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 48px; color: var(--muted); }

/* Этапы */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.timeline li { counter-increment: s; position: relative; padding: 26px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 6px; align-content: start; }
.timeline li::before {
  content: '0' counter(s); font-family: var(--display); font-size: 14px; color: var(--accent);
  margin-bottom: 6px;
}
.timeline b { font-size: 18px; }
.timeline span { color: var(--muted); font-size: 15px; }
.timeline em { font-style: normal; font-weight: 700; font-size: 13px; color: var(--ink); background: var(--bg); justify-self: start; padding: 5px 10px; border-radius: 8px; margin-top: 6px; }

/* Кредит */
.credit { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.credit__lead { color: rgba(255, 255, 255, .7); font-size: 17px; margin-top: 14px; }
.credit__list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.credit__list li { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.credit__list li::before { content: '✓'; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 14px; flex: none; }
.credit__calc { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 24px; padding: 28px; display: grid; gap: 20px; }
.field--light { color: rgba(255, 255, 255, .7); }
.field--light output { color: #fff; }
.field--light input:not([type="range"]) { background: rgba(255, 255, 255, .08) !important; border-color: rgba(255, 255, 255, .14) !important; color: #fff !important; }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 24px; }
.credit__result { display: grid; gap: 2px; padding: 18px 20px; border-radius: 16px; background: rgba(255, 255, 255, .06); }
.credit__result span { color: rgba(255, 255, 255, .62); font-weight: 600; font-size: 14px; }
.credit__result b { font-family: var(--display); font-size: 32px; color: var(--accent); }
.credit__result small { color: rgba(255, 255, 255, .5); font-size: 13px; }

/* Отзывы */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { margin: 0; padding: 26px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 12px; align-content: start; }
.stars { color: var(--accent); letter-spacing: 2px; }
.review blockquote { margin: 0; font-size: 16px; }
.review figcaption { color: var(--muted); font-weight: 600; font-size: 14px; }

/* Вопросы */
.faq { max-width: 860px; }
.faq h2 { margin-bottom: 28px; }
.faq details { background: var(--bg); border-radius: 16px; margin-bottom: 10px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 500; color: var(--amber); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* Заявка */
.lead { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.lead > div > p { margin-top: 12px; font-size: 17px; }
.offices { display: grid; gap: 12px; margin-top: 28px; }
.office { background: var(--surface); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); display: grid; }
.office span { color: var(--muted); font-size: 15px; }
.lead__form { background: var(--surface); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); display: grid; gap: 16px; position: relative; }
.lead__form--modal { padding: 0; box-shadow: none; margin-top: 20px; }
.form-error { color: #d93036; font-weight: 600; font-size: 14px; }
.form-error:empty { display: none; }
.form-note { font-size: 12px; color: var(--muted); text-align: center; }
.form-success { position: absolute; inset: 0; background: var(--surface); border-radius: inherit; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; padding: 24px; animation: rise .3s ease; }
.form-success[hidden] { display: none; }
.form-success__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: 30px; font-weight: 800; margin-bottom: 6px; }
.form-success b { font-size: 20px; }
.form-success span { color: var(--muted); }

/* Подвал */
.footer { background: var(--navy); color: #fff; padding: 48px 0; }
.footer__inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; align-items: start; }
.footer p { margin-top: 8px; }
.footer__muted { color: rgba(255, 255, 255, .5); font-size: 14px; }
.footer a:hover { color: var(--accent); }
.footer__credits { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .35); font-size: 12px; }
.footer__credits a { text-decoration: underline; text-underline-offset: 2px; }

.tg-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 15; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #2aabee; color: #fff; box-shadow: 0 10px 24px rgba(42, 171, 238, .45); transition: transform .15s;
}
.tg-float:hover { transform: scale(1.07); }

/* Окно */
.modal { width: min(480px, 100% - 24px); padding: 0; border: 0; border-radius: 24px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px rgba(0, 0, 0, .35); }
.modal::backdrop { background: rgba(11, 22, 38, .6); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .2s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal__body { padding: 32px 28px 28px; }
.modal__body h2 { font-size: 24px; padding-right: 40px; }
.modal__body > p { margin-top: 8px; }
.modal__close { position: absolute; top: 16px; right: 16px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg); font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink); }

/* Адаптив */
@media (max-width: 1060px) {
  .nav, .header__cta { display: none; }
  .hero__inner, .credit, .lead { grid-template-columns: 1fr; gap: 40px; }
  .hero__card { max-width: 480px; }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .calc { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .filters { justify-items: start; }
}
@media (max-width: 760px) {
  .header__phone { display: none; }
  .burger { display: grid; place-items: center; margin-left: auto; width: 42px; height: 42px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .08); cursor: pointer; }
  .burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; position: relative; content: ''; }
  .burger span::before { position: absolute; top: -6px; }
  .burger span::after { position: absolute; top: 6px; }
  .nav.is-open { display: flex; flex-direction: column; gap: 0; margin: 0; position: absolute; top: 70px; left: 0; right: 0; background: var(--navy); padding: 8px 16px 16px; }
  .nav.is-open a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .hero { padding: 44px 0 88px; }
  .hero__card { display: none; }
  .hero__facts { gap: 20px; }
  .perks { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .calc__form, .calc__result { padding: 22px; }
  .grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .credit__calc, .lead__form { padding: 22px; }
  .lead__form--modal { padding: 0; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .field-row { grid-template-columns: 1fr; }
  .seg span { font-size: 13px; padding: 0 6px; }
}
