/* ==========================================================================
   Авто-Балтика — базовые переменные
   ========================================================================== */
:root {
  --ink: #16212e;
  --ink-soft: #4b5a6a;
  --bg: #f3f6f8;
  --surface: #ffffff;
  --line: #dbe3e9;
  --steel-50: #eef3f7;
  --steel-200: #b9cddc;
  --steel-500: #3d6d94;
  --steel-600: #2c5674;
  --steel-700: #1f4258;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --container: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; color: var(--ink-soft); line-height: 1.55; }

button { font-family: inherit; cursor: pointer; }

/* ==========================================================================
   Кнопки
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 14px 30px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--steel-600);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(31, 66, 88, .55);
}
.btn--primary:hover {
  background: var(--steel-700);
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -10px rgba(31, 66, 88, .6);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--steel-700);
  border-color: var(--steel-200);
}
.btn--ghost:hover {
  background: var(--steel-50);
  border-color: var(--steel-500);
  transform: translateY(-1px);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 246, 248, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  letter-spacing: .01em;
  color: var(--steel-700);
}
.site-header .btn { padding: 11px 22px; font-size: 14px; }

/* ==========================================================================
   Hero — full-bleed
   ========================================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 38%;
  transform: scale(1.02);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 24, 33, .72) 0%, rgba(20, 34, 46, .58) 45%, rgba(22, 42, 56, .78) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding-top: 90px;
  padding-bottom: 90px;
  color: #fff;
}
.hero__brand {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(32px, 6vw, 68px);
  letter-spacing: .01em;
  margin: 0 0 18px;
  color: #eef3f7;
  opacity: .92;
}
.hero__title {
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.08;
  font-weight: 500;
  color: #fff;
  margin-bottom: 22px;
  max-width: 14ch;
}
.hero__desc {
  font-size: 18px;
  color: #d7e2ea;
  max-width: 46ch;
  margin-bottom: 36px;
}
.hero .btn--primary { padding: 16px 36px; font-size: 16px; }

/* ==========================================================================
   Fade-in motion
   ========================================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp .8s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Benefits — text list, editorial
   ========================================================================== */
.benefits {
  padding: 96px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.benefits__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.benefits__item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.benefits__item:first-child { border-top: none; }
.benefits__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 34px;
  color: var(--steel-500);
}
.benefits__text h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.benefits__text p { max-width: 56ch; }

/* ==========================================================================
   Fleet strip
   ========================================================================== */
.fleet {
  padding: 96px 0;
}
.fleet__head {
  max-width: 46ch;
  margin-bottom: 44px;
}
.fleet__head h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 10px;
}
.fleet__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.fleet__item { margin: 0; }
.fleet__frame {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.fleet__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.fleet__item:hover .fleet__frame img { transform: scale(1.04); }
.fleet__tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(22, 33, 46, .82);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 6px 12px;
  border-radius: 999px;
}
.fleet__tag--transit { background: rgba(61, 109, 148, .88); }
.fleet__item figcaption {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink);
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: var(--steel-700);
  padding: 72px 0;
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 32px);
  max-width: 22ch;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 32px 0 40px;
  background: var(--bg);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-soft);
}
.site-footer__legal { max-width: 62ch; }
.site-footer__link {
  color: var(--steel-600);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.site-footer__link:hover { text-decoration: underline; }

/* ==========================================================================
   Modal / quiz
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.is-open { display: flex; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 24, 33, .58);
  backdrop-filter: blur(3px);
  animation: fadeIn .25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 18px;
  padding: 40px 36px 32px;
  box-shadow: 0 30px 60px -20px rgba(15, 24, 33, .4);
  animation: modalPop .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes modalPop {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--steel-50);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  transition: background-color .2s ease;
}
.modal__close:hover { background: var(--steel-200); }

.modal__progress {
  height: 3px;
  background: var(--line);
  border-radius: 999px;
  margin-bottom: 28px;
  overflow: hidden;
}
.modal__progress-bar {
  display: block;
  height: 100%;
  width: 25%;
  background: var(--steel-500);
  border-radius: 999px;
  transition: width .35s ease;
}

.quiz-step__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--steel-500);
  margin-bottom: 10px;
}
.quiz-step h2 {
  font-size: 24px;
  line-height: 1.25;
  margin-bottom: 8px;
}
.quiz-step__hint {
  font-size: 14px;
  margin-bottom: 18px;
}

.quiz-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
  background: var(--steel-50);
  color: var(--ink);
  transition: border-color .2s ease, background-color .2s ease;
}
.quiz-input:focus {
  outline: none;
  border-color: var(--steel-500);
  background: #fff;
}
.quiz-step[data-step="1"] .quiz-input { margin-top: 6px; }

.quiz-options {
  display: grid;
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 6px;
}
.quiz-option {
  text-align: left;
  padding: 15px 18px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--steel-50);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  transition: border-color .2s ease, background-color .2s ease, transform .15s ease;
}
.quiz-option:hover { border-color: var(--steel-500); transform: translateX(2px); }
.quiz-option.is-selected {
  background: var(--steel-600);
  border-color: var(--steel-600);
  color: #fff;
}

.quiz-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}

.quiz-error {
  color: #c0392b;
  font-size: 13px;
  margin: 4px 0 0;
}

.quiz-success { text-align: center; padding: 24px 0; }
.quiz-success h2 { margin-bottom: 10px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 780px) {
  .fleet__row { grid-template-columns: 1fr; }
  .benefits__item { grid-template-columns: 56px 1fr; }
  .cta-band__inner { justify-content: center; text-align: center; }
  .hero__inner { padding-top: 64px; padding-bottom: 64px; }
  .site-header .btn { padding: 9px 16px; font-size: 13px; }
}

/* intl-tel-input */
.phone-field { width: 100%; margin-top: 10px; }
.phone-field .iti { width: 100%; }
.phone-field .quiz-input { width: 100%; }
.phone-field input.error, input[name="name"].error { border-color: #c45c4a !important; }
