:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --ink: #0f1218;
  --muted: #646b78;
  --line: #e3e6eb;
  --dark: #0f1218;
  --dark-2: #181c24;
  --accent: #ff5a1f;
  --accent-ink: #ffffff;
  --accent-soft: #fff0ea;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(15, 18, 24, .08);
}

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

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border: 0; border-radius: 12px; cursor: pointer;
  font: 700 16px/1 inherit; font-family: inherit;
  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 8px 20px rgba(255, 90, 31, .35); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; }

/* Шапка */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(15, 18, 24, .92); backdrop-filter: blur(12px);
  color: #fff;
}
.header__inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: .04em; }
.logo__mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent); color: #fff; font-size: 18px;
}
.nav { display: flex; gap: 24px; margin-left: 12px; font-weight: 600; font-size: 15px; }
.nav a { opacity: .75; transition: opacity .15s; }
.nav a:hover { opacity: 1; }
.header__phone { margin-left: auto; font-weight: 700; white-space: nowrap; }
.burger { display: none; }

/* Первый экран */
.hero {
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(255, 90, 31, .28), transparent 60%),
    radial-gradient(700px 400px at 10% 100%, rgba(80, 110, 255, .18), transparent 60%),
    var(--dark);
  color: #fff;
  padding: 72px 0 96px;
}
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.badge {
  display: inline-block; padding: 8px 14px; 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(38px, 6vw, 64px); font-weight: 800; margin: 20px 0 18px; }
.hero__lead { font-size: 18px; color: rgba(255, 255, 255, .72); max-width: 520px; }
.hero__stats { display: flex; gap: 36px; list-style: none; padding: 0; margin: 36px 0 0; }
.hero__stats b { display: block; font-size: 28px; font-weight: 800; }
.hero__stats span { color: rgba(255, 255, 255, .6); font-size: 14px; }

.search {
  background: var(--surface); color: var(--ink);
  border-radius: 22px; padding: 28px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
  display: grid; gap: 14px;
}
.search__title { font-size: 22px; }
.search__hint { font-size: 14px; color: var(--muted); min-height: 21px; }
.search__hint b { color: var(--ink); }

/* Поля формы */
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); min-width: 0; }
.field input, .field select {
  width: 100%; height: 48px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface);
  font: 600 15px inherit; font-family: inherit; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input.invalid { border-color: #e5484d; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Преимущества */
.perks {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: -48px; position: relative;
}
.perk { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.perk__icon { font-size: 26px; margin-bottom: 10px; }
.perk h3 { font-size: 17px; margin-bottom: 4px; }
.perk p { color: var(--muted); font-size: 14px; }

/* Секции */
.section { padding: 88px 0; }
.section--alt { background: var(--surface); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section__head p { margin-top: 8px; }
.section h2 + .steps, .section h2 + .reviews { margin-top: 32px; }

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

/* Карточки авто */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.car {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); 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(15, 18, 24, .14); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.car__img {
  position: relative; aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, #eef0f4, #dfe3ea);
  display: grid; place-items: center;
}
.car__img img { width: 100%; height: 100%; object-fit: cover; }
.car__img svg { width: 70%; color: #b9c0cc; }
.car__tag {
  position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 99px;
  background: rgba(255, 255, 255, .92); font-size: 12px; font-weight: 800;
}
.car__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.car__title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.car__title h3 { font-size: 20px; }
.car__year { color: var(--muted); font-weight: 600; font-size: 14px; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.specs li { padding: 6px 10px; border-radius: 8px; background: var(--bg); font-size: 13px; font-weight: 600; color: var(--muted); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.tiers div { padding: 10px 8px; text-align: center; }
.tiers div + div { border-left: 1.5px solid var(--line); }
.tiers span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.tiers b { font-size: 16px; }
.tiers .is-active { background: var(--accent-soft); }
.tiers .is-active b { color: var(--accent); }
.car__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.car__total { font-size: 13px; color: var(--muted); }
.car__total b { display: block; font-size: 20px; color: var(--ink); }
.empty { grid-column: 1 / -1; text-align: center; padding: 48px; color: var(--muted); }

/* Шаги */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 24px; border-radius: var(--radius); background: var(--bg); display: grid; gap: 6px; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 8px;
  border-radius: 12px; background: var(--accent); color: #fff; font-weight: 800;
}
.steps b { font-size: 18px; }
.steps span { color: var(--muted); font-size: 15px; }

/* Условия */
.terms { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
.terms > div p { margin-top: 12px; font-size: 17px; }
.terms__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.terms__list li { background: var(--surface); border-radius: 14px; padding: 18px 20px; display: grid; gap: 2px; box-shadow: var(--shadow); }
.terms__list span { color: var(--muted); font-size: 15px; }

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

/* Вопросы */
.faq { max-width: 820px; }
.faq h2 { margin-bottom: 24px; }
.faq details { background: var(--surface); border-radius: 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
.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: 24px; font-weight: 500; color: var(--accent); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* Призыв */
.cta { padding: 0 0 88px; }
.cta__inner {
  background: linear-gradient(120deg, var(--accent), #ff8a3d); color: #fff;
  border-radius: 24px; padding: 44px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cta__inner p { opacity: .9; margin-top: 8px; font-size: 17px; }
.cta .btn--accent { background: #fff; color: var(--accent); }

/* Подвал */
.footer { background: var(--dark); color: #fff; padding: 48px 0; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer p { margin-top: 8px; }
.footer__muted { color: rgba(255, 255, 255, .55); }
.footer a:hover { color: var(--accent); }

/* Кнопка Telegram */
.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(960px, 100% - 24px); max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: 22px; background: var(--surface); color: var(--ink);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .35);
}
.modal::backdrop { background: rgba(15, 18, 24, .6); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .2s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg);
  font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink);
}
.booking { position: relative; display: grid; grid-template-columns: 1fr 320px; }
.booking__car { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; padding: 24px 72px 20px 28px; border-bottom: 1.5px solid var(--line); }
.booking__car h2 { font-size: 26px; }
.booking__car p { font-size: 14px; font-weight: 600; }
.booking__img { width: 120px; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, #eef0f4, #dfe3ea); display: grid; place-items: center; flex: none; }
.booking__img img { width: 100%; height: 100%; object-fit: cover; }
.booking__img svg { width: 80%; color: #b9c0cc; }
.booking__body { padding: 24px 28px 28px; display: grid; gap: 16px; align-content: start; }
.group { border: 0; padding: 0; margin: 0; }
.group legend { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; padding: 0; }
.options { display: grid; gap: 8px; }
.option {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 15px;
  transition: border-color .15s, background .15s;
}
.option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.option input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.option em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 14px; white-space: nowrap; }
.form-error { color: #d93036; font-weight: 600; font-size: 14px; min-height: 0; }
.form-error:empty { display: none; }

.summary { background: var(--bg); padding: 24px; display: flex; flex-direction: column; gap: 14px; border-bottom-right-radius: 22px; }
.summary__rows { display: grid; gap: 10px; font-size: 14px; }
.summary__rows div { display: flex; justify-content: space-between; gap: 12px; }
.summary__rows span { color: var(--muted); }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1.5px dashed var(--line); }
.summary__total span { font-weight: 700; }
.summary__total b { font-size: 30px; font-weight: 800; }
.summary__note { font-size: 13px; color: var(--muted); }

.success { padding: 56px 32px; text-align: center; display: grid; justify-items: center; gap: 14px; }
.success[hidden] { display: none; }
.success__icon { width: 72px; height: 72px; border-radius: 50%; background: #e6f8ee; color: #1f9d55; display: grid; place-items: center; font-size: 36px; font-weight: 800; }
.success p { color: var(--muted); max-width: 420px; }

/* Адаптив */
@media (max-width: 1020px) {
  .nav, .header__cta { display: none; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .terms { grid-template-columns: 1fr; gap: 24px; }
  .reviews { grid-template-columns: 1fr; }
}
@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: 68px; left: 0; right: 0; background: var(--dark); padding: 8px 16px 16px;
  }
  .nav.is-open a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .hero { padding: 40px 0 80px; }
  .hero__stats { gap: 22px; }
  .hero__stats b { font-size: 22px; }
  .search { padding: 22px; }
  .perks { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .grid { grid-template-columns: 1fr; }
  .steps, .terms__list { grid-template-columns: 1fr; }
  .cta__inner { padding: 30px 24px; }
  .footer__inner { grid-template-columns: 1fr; }
  .booking { grid-template-columns: 1fr; }
  .booking__car { padding: 20px 64px 16px 20px; }
  .booking__img { width: 84px; }
  .booking__car h2 { font-size: 21px; }
  .booking__body { padding: 20px; }
  .summary { border-radius: 0 0 22px 22px; position: sticky; bottom: 0; }
}
@media (max-width: 420px) {
  .field-row { grid-template-columns: 1fr; }
}

/* photo credits (CC BY / CC BY-SA require attribution) */
.footer__credits { font-size: 12px; margin-top: 28px; line-height: 1.5; }
.footer__credits a { text-decoration: underline; text-underline-offset: 2px; }
.footer__credits:empty { display: none; }
