:root {
  --yellow: #f5ae0b;
  --yellow-deep: #d99500;
  --asphalt: #17212b;
  --asphalt-2: #24303c;
  --concrete: #eceef0;
  --line: #d5d9dd;
  --grey: #5f6a75;
  --white: #fff;
  --display: "Exo 2", "Arial Narrow", sans-serif;
  --body: "Golos Text", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--asphalt);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; }
h2 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; font-style: italic; letter-spacing: -0.01em; }
h3 { font-size: 22px; font-weight: 800; }
.muted { color: var(--grey); }

.head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 40px; flex-wrap: wrap; }
.head p { max-width: 42ch; margin: 0; color: var(--grey); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 24px; border-radius: 3px; border: 2px solid transparent;
  font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s;
}
.btn--yellow { background: var(--yellow); color: var(--asphalt); }
.btn--yellow:hover { background: #ffc12e; }
.btn--ghost { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); }
.btn--dark { background: var(--asphalt); color: var(--white); }
.btn--dark:hover { background: var(--asphalt-2); }
.btn--wide { width: 100%; }

/* header */
.top { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top__in { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 96px; }
.brand__name { font: italic 900 24px/1 var(--display); color: var(--yellow-deep); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--yellow-deep); }
.top__phone { font-weight: 700; text-decoration: none; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.top__phone svg { color: var(--yellow-deep); }
.burger, .nav__order, .callbar { display: none; }
section[id] { scroll-margin-top: 68px; }
.step { display: flex; }
.step input { text-align: center; border-radius: 0; min-width: 0; -moz-appearance: textfield; }
.step input::-webkit-inner-spin-button, .step input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.step button {
  flex: none; width: 46px; border: 1px solid #b9c0c7; background: var(--concrete); color: var(--asphalt);
  font: 600 22px/1 var(--body); cursor: pointer;
}
.step button:first-child { border-radius: 3px 0 0 3px; border-right: 0; }
.step button:last-child { border-radius: 0 3px 3px 0; border-left: 0; }
.step button:active { background: var(--yellow); }

/* hero: фото автопарку на весь перший екран */
.hero {
  position: relative; color: var(--white); overflow: hidden; background: var(--asphalt);
  min-height: calc(100vh - 68px); display: flex; flex-direction: column; justify-content: flex-end;
}
.hero::before {
  content: ""; position: absolute; inset: 0 0 60px 0;
  background:
    linear-gradient(90deg, rgba(23,33,43,.96) 0%, rgba(23,33,43,.82) 34%, rgba(23,33,43,0) 64%),
    url(img/fleet-wide.jpg) right bottom / cover no-repeat;
}
.hero__in { position: relative; width: 100%; padding-top: 72px; padding-bottom: 72px; }
.hero h1 {
  font-size: clamp(38px, 5.4vw, 72px); font-weight: 900; font-style: italic;
  letter-spacing: -0.015em; max-width: 12ch;
}
.hero__text { max-width: 560px; }
.hero__lead { font-size: 19px; color: #d3d9de; max-width: 46ch; margin: 24px 0 32px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__note { font-size: 14px; color: #9aa5b0; margin: 20px 0 0; }

/* the road: asphalt shoulder with a yellow dashed lane line, slanted like the logo */
.road {
  position: relative; height: 96px; flex: none;
  background: var(--asphalt-2);
  clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%);
}
.road::before {
  content: ""; position: absolute; left: -2%; right: -2%; top: 52%; height: 8px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 64px, transparent 64px 104px);
  transform: rotate(-1.6deg);
  animation: drive 1.4s linear infinite;
}
@keyframes drive { to { background-position: -104px 0; } }
@media (prefers-reduced-motion: reduce) { .road::before { animation: none; } }

/* facts */
.facts { background: var(--yellow); }
.facts__in { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 34px 24px 34px 0; display: flex; flex-direction: column; gap: 8px; }
.fact + .fact { padding-left: 24px; border-left: 2px dashed rgba(23,33,43,.35); }
.fact b { font: italic 900 clamp(40px, 5vw, 60px)/1 var(--display); }
.fact small { font-size: .42em; margin-left: 4px; font-style: normal; font-weight: 800; }
.fact span { font-size: 15px; max-width: 24ch; }

/* fleet */
.fleet { padding: 110px 0 100px; }
.lineup {
  display: flex; align-items: flex-end; gap: 0;
  box-shadow: inset 0 -10px 0 var(--asphalt);
  overflow-x: auto; scrollbar-width: thin;
}
.car {
  flex: 0 0 auto; width: var(--w); background: none; border: 0; padding: 0 0 12px; cursor: pointer;
  font: inherit; color: inherit; text-align: left; position: relative;
  border-bottom: 10px solid var(--asphalt); padding-right: 8px;
}
.car img { width: 100%; mix-blend-mode: multiply; filter: grayscale(.2); opacity: .55; transition: opacity .2s, filter .2s; }
.car span { display: block; font-weight: 600; font-size: 15px; margin-top: 6px; white-space: nowrap; }
.car small { color: var(--grey); font-size: 13px; }
.car:hover img { opacity: .85; }
.car[aria-selected="true"] img { opacity: 1; filter: none; }
.car[aria-selected="true"] { border-bottom-color: var(--yellow); }


.spec {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 0;
  margin-top: 40px; border: 1px solid var(--line);
}
.spec__main { padding: 32px; }
.spec__main h3 { font-size: 34px; font-style: italic; }
.spec__fits { margin: 14px 0 26px; color: var(--grey); max-width: 52ch; }
.spec__dims { display: flex; gap: 40px; flex-wrap: wrap; margin: 0; }
.spec__dims dt { font-size: 14px; color: var(--grey); }
.spec__dims dd { margin: 2px 0 0; font: 800 26px/1.1 var(--display); }
.spec__price { background: var(--asphalt); color: var(--white); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.spec__price div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 1px solid #34414e; padding-bottom: 14px; }
.spec__price span { color: #b5bec7; }
.spec__price b { font: italic 800 30px/1 var(--display); color: var(--yellow); white-space: nowrap; }
.spec__price .btn { margin-top: auto; }

/* prices */
.prices { background: var(--concrete); padding: 100px 0; }
.prices__in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.prices__in > * { min-width: 0; }
.prices__table .muted { margin: 14px 0 28px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 480px; }
th { text-align: left; font-weight: 500; color: var(--grey); font-size: 14px; padding: 0 12px 10px 0; border-bottom: 2px solid var(--asphalt); }
td { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); }
td:first-child { font-weight: 600; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
tbody tr { cursor: pointer; }
tbody tr:hover td { background: rgba(245,174,11,.12); }
.prices h3 { margin: 40px 0 8px; }
.extras { list-style: none; padding: 0; margin: 0; }
.extras li { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.extras li span:last-child { font-weight: 600; white-space: nowrap; }
.extras__note { font-size: 14px; margin: 12px 0 0; }

.calc { background: var(--white); padding: 30px; border-top: 6px solid var(--yellow); display: flex; flex-direction: column; gap: 16px; position: sticky; top: 92px; }
.calc h3 { margin-bottom: 4px; }
.calc label, .order__form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--grey); }
.calc__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
select, input {
  font: 500 17px/1.2 var(--body); color: var(--asphalt);
  padding: 12px 12px; border: 1px solid #b9c0c7; border-radius: 3px; background: var(--white); width: 100%;
}
select:focus, input:focus { outline: 2px solid var(--yellow); outline-offset: 0; border-color: var(--asphalt); }
.calc__sum { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; border-top: 1px solid var(--line); }
.calc__sum span { color: var(--grey); }
.calc__sum output { font: italic 900 40px/1 var(--display); }
.calc__fine { font-size: 13px; color: var(--grey); margin: -6px 0 4px; }

/* reviews */
.reviews { padding: 110px 0; }
.reviews__grid { columns: 2; column-gap: 56px; }
.rev { break-inside: avoid; margin: 0 0 44px; padding-left: 22px; border-left: 4px solid var(--yellow); }
.rev p { margin: 0 0 14px; font-size: 18px; }
.rev footer { font-weight: 600; font-size: 15px; }
.rev footer span { display: block; font-weight: 400; color: var(--grey); }

/* faq */
.faq { background: var(--asphalt); color: var(--white); padding: 100px 0; }
.faq__in { display: grid; grid-template-columns: 1fr 1.8fr; gap: 56px; }
.faq h2 { max-width: 8ch; }
details { border-bottom: 1px solid #34414e; }
summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-weight: 600; font-size: 18px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -10px;
  border-right: 3px solid var(--yellow); border-bottom: 3px solid var(--yellow);
  transform: rotate(45deg); transition: transform .2s;
}
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details p { margin: 0 0 24px; color: #c7ced5; max-width: 62ch; }

/* order */
.order { background: var(--yellow); padding: 80px 0; }
.order__in { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.order h2 { font-size: clamp(30px, 4vw, 44px); }
.order p { margin: 16px 0 0; font-size: 18px; }
.order p a { font-weight: 700; }
.order__form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.order__form label { color: var(--asphalt); }
.order__form input { border-color: rgba(23,33,43,.4); }
.order__wide { grid-column: 1 / -1; }
.order__form .btn { grid-column: 1 / -1; justify-self: start; }
.order__msg { grid-column: 1 / -1; margin: 0; font-weight: 600; min-height: 1.5em; }

.foot { background: var(--asphalt); color: #9aa5b0; padding: 26px 0; font-size: 14px; }
.foot__in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--white); text-decoration: none; font-weight: 600; }

/* responsive */
@media (max-width: 960px) {
  .nav { display: none; }
  .top__phone { margin-left: auto; }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(23,33,43,.92) 0%, rgba(23,33,43,.85) 55%, rgba(23,33,43,0) 80%),
      url(img/fleet-wide.jpg) 72% bottom / auto 100% no-repeat;
  }
  .hero__in { padding-bottom: 34vh; }
  .prices__in, .faq__in, .order__in { grid-template-columns: 1fr; }
  .facts__in { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 2px dashed rgba(23,33,43,.35); }
  .spec { grid-template-columns: 1fr; }
  .calc { position: static; }
  .reviews__grid { columns: 1; }
}
@media (max-width: 960px) {
  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 10px; margin-left: 4px; order: 3;
    background: none; border: 0; cursor: pointer;
  }
  .burger span { display: block; height: 2px; background: var(--asphalt); transition: transform .2s, opacity .2s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav.is-open {
    display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
    box-shadow: 0 12px 24px rgba(23,33,43,.12);
  }
  .nav.is-open a { padding: 14px 0; border-bottom: 1px solid var(--concrete); font-size: 18px; }
  .nav.is-open .nav__order { display: block; border: 0; margin-top: 12px; text-align: center; background: var(--yellow); border-radius: 3px; font-weight: 600; }
  .top__in { position: relative; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .top__in { height: 60px; gap: 8px; }
  section[id] { scroll-margin-top: 60px; }
  .nav.is-open { padding: 4px 16px 16px; }
  .top__phone span { display: none; }
  .top__phone { width: 44px; height: 44px; justify-content: center; border-radius: 50%; background: var(--yellow); }
  .top__phone svg { color: var(--asphalt); }
  .hero { min-height: auto; }
  .hero h1 { font-size: 36px; }
  .hero__lead { font-size: 16px; margin: 16px 0 24px; }
  .hero__cta .btn { padding: 16px 20px; }
  .head { margin-bottom: 24px; gap: 10px; }
  h2 { font-size: 34px; }
  .facts__in { grid-template-columns: 1fr 1fr; }
  .fact, .fact + .fact { padding: 20px 12px 20px 0; border: 0; }
  .fact:nth-child(even) { padding-left: 14px; border-left: 2px dashed rgba(23,33,43,.35); }
  .fact:nth-child(n+3) { border-top: 2px dashed rgba(23,33,43,.35); }
  .fact b { font-size: 34px; }
  .fact span { font-size: 13px; line-height: 1.4; }
  .lineup { margin: 0 -16px; padding: 0 16px; scroll-snap-type: x mandatory; scroll-padding: 0 16px; box-shadow: inset 0 -10px 0 var(--asphalt); }
  .car { width: calc(var(--w) * .72); scroll-snap-align: start; padding-right: 4px; }
  .car span { font-size: 14px; }
  .spec { margin-top: 24px; }
  .spec__main h3 { font-size: 28px; }
  .spec__fits { margin: 10px 0 18px; font-size: 15px; }
  .spec__dims { gap: 14px 28px; }
  .spec__dims dd { font-size: 22px; }
  .spec__price { gap: 12px; }
  .spec__price div { padding-bottom: 10px; }
  .spec__price b { font-size: 24px; }
  .spec__price span { font-size: 15px; }
  /* таблиця цін стає блоками: назва машини і три значення під нею */
  table { min-width: 0; }
  thead { display: none; }
  tbody tr { display: grid; grid-template-columns: repeat(3, 1fr); padding: 14px 0; border-bottom: 1px solid var(--line); }
  td { border: 0; padding: 0; }
  td:first-child { grid-column: 1 / -1; margin-bottom: 8px; font-size: 17px; }
  td.num::before { content: attr(data-label); display: block; font-size: 12px; color: var(--grey); margin-bottom: 2px; white-space: normal; }
  .extras li { flex-direction: column; gap: 2px; }
  .prices h3 { margin-top: 28px; }
  .calc__sum output { font-size: 34px; }
  .rev { padding-left: 16px; margin-bottom: 32px; }
  .rev p { font-size: 16px; }
  .faq__in { gap: 16px; }
  .faq h2 { max-width: none; }
  summary { font-size: 16px; padding: 18px 40px 18px 0; }
  .order { padding: 56px 0; }
  .order__in { gap: 28px; }
  .order h2 { font-size: 28px; }
  .order p { font-size: 16px; }
  .order__form .btn { justify-self: stretch; }
  .foot { padding-bottom: 96px; }
  .foot__in { flex-direction: column; gap: 6px; }
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--line);
  }
  .callbar .btn { padding: 14px 8px; font-size: 15px; }
  .brand img { width: 72px; }
  .brand__name { font-size: 20px; }
  .hero__in { padding: 32px 16px 200px; }
  .hero::before { background-size: auto, auto 320px; }
  .fleet, .reviews, .prices, .faq { padding: 56px 0; }
  body { font-size: 16px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .spec__main, .spec__price, .calc { padding: 22px; }
  .order__form { grid-template-columns: 1fr; }
}
