/* E-Car — light theme after byd.com: Montserrat, pill buttons, floating glass header, cut-out cars on mist. */
:root {
  --ink: #000;
  --graphite: #252728;
  --muted: #63666b;
  --line: #e4e5e7;
  --mist: #f7f7f7;
  --mist-2: #ececed;
  --paper: #fff;
  --focus: #0077c8;
  --ok: #18794e;
  --ok-bg: #e6f4ec;
  --warn: #8a5300;
  --warn-bg: #fcf1d9;
  --wait: #3b4656;
  --wait-bg: #eceff3;
  --danger: #b42318;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;
  --shadow: 0 8px 28px rgba(15, 17, 20, 0.08);
  --gutter: clamp(16px, 3vw, 40px);
  --max: 1440px;
  --font: Montserrat, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
html.is-locked { overflow: hidden; }
body { margin: 0; font: 400 16px/1.6 var(--font); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.i { width: 20px; height: 20px; flex: none; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--graphite); color: #fff; }
.skip:focus { top: 16px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 28px; border: 1.5px solid transparent; border-radius: 999px;
  font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn .i { width: 18px; height: 18px; }
.btn--sm { min-height: 38px; padding: 8px 18px; font-size: 13px; }
.btn--block { width: 100%; }
.btn--dark { background: var(--graphite); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--outline { border-color: var(--graphite); background: transparent; color: var(--graphite); }
.btn--outline:hover { background: var(--graphite); color: #fff; }
.btn--light { background: #fff; color: #000; }
.btn--light:hover { background: rgba(255, 255, 255, 0.85); }
.btn--glass { border-color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.12); color: #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn--glass:hover { background: rgba(255, 255, 255, 0.24); }
.btn--ghost { background: var(--mist); color: var(--graphite); }
/* «Консультант» in the header: the pill's spark and its «online» dot */
.hdr__cta .i { width: 16px; height: 16px; margin-right: 6px; }
.hdr__dot { flex: none; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: #1f9d55; box-shadow: 0 0 0 3px rgba(31, 157, 85, 0.18); }
.menu .btn .i { width: 18px; height: 18px; margin-right: 8px; }
.btn--ghost:hover { background: var(--mist-2); }
.btn:disabled { opacity: 0.55; cursor: progress; }
.linklike { padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }

/* ---------- header ---------- */
/* The floating glass pill. On computers it opens into the menu card itself: site.js sets its height to the open panel's,
   the row (logo, sections, contacts) keeps to the top, the panel is under it, and .hdr__scrim dims and blurs the page. */
.hdr { position: fixed; z-index: 50; top: 12px; left: var(--gutter); right: var(--gutter); display: flex; justify-content: center; pointer-events: none; }
.hdr__bar {
  --bar-h: 64px;
  position: relative; pointer-events: auto; display: flex; align-items: flex-start; gap: 24px; width: 100%; max-width: calc(var(--max) - 80px);
  height: var(--bar-h); padding: 0 10px 0 28px; border: 1px solid rgba(255, 255, 255, 0.65); border-radius: 32px;
  background: rgba(255, 255, 255, 0.76); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 6px 30px rgba(15, 17, 20, 0.1);
}
.hdr__bar > * { height: calc(var(--bar-h) - 2px); }
/* computers: the bar clips its panels while it grows; clip, not hidden — focus moving into a panel must not scroll the bar */
@media (min-width: 1101px) { .hdr__bar { overflow: hidden; overflow: clip; } }
.hdr__logo { display: flex; flex: none; align-items: center; }
.hdr__logo img { width: 112px; }
.hdr__nav { display: flex; align-items: center; }
.hdr__end { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.hdr__phone { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.hdr__phone .i { width: 18px; height: 18px; }
.hdr__burger { display: none; width: 44px; height: 44px; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.hdr__burger .i { width: 24px; height: 24px; }
.hdr__burger .i + .i, .hdr__burger[aria-expanded="true"] .i:first-child { display: none; }
.hdr__burger[aria-expanded="true"] .i + .i { display: block; }
.hdr__msg, .hdr__reach { display: grid; flex: none; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--graphite); cursor: pointer; }
.hdr__msg:hover, .hdr__reach:hover { background: rgba(37, 39, 40, 0.07); }
.hdr__reach { display: none; width: 42px; height: 42px; }
/* «Увійти» / «Кабінет» (src/account.js): signed in, site.js puts the name's initial in place of the icon. The word shows on wide
   screens; below 1400 px the icon alone (the word stays its name); phones: in the menu (.menu__acc), the bar has no room */
.hdr__acc { display: inline-flex; flex: none; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; color: var(--graphite); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.hdr__acc:hover { background: rgba(37, 39, 40, 0.07); }
.hdr__ava { display: grid; flex: none; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--graphite); color: #fff; font-size: 13px; font-style: normal; line-height: 1; }
@media (max-width: 1399px) {
  .hdr__acc { justify-content: center; width: 40px; height: 40px; padding: 0; }
  .hdr__acc span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 640px) { .hdr__acc { display: none; } }
.menu__acc { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 16px; border-radius: 16px; background: var(--mist); font-weight: 600; text-decoration: none; }
.menu__acc .i, .menu__acc .hdr__ava { width: 28px; height: 28px; }
/* phones: slides away while scrolling down, back on the way up (site.js; not with reduced motion). The bar moves, not
   .hdr: a transform on .hdr would make it the containing block of the fixed .menu */
.hdr__bar { transition: height 0.32s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.3s, box-shadow 0.3s, transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1); }
.hdr.is-away .hdr__bar { transform: translateY(calc(-100% - 16px)); }

/* ---------- header menu, computers: «Каталог», «Купівля», «Власникам» open as panels of the bar (site.js) ---------- */
.nav { display: flex; gap: 2px; }
.nav__top {
  display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; border: 0; border-radius: 999px; background: transparent;
  color: var(--graphite); font-size: 14px; font-weight: 500; line-height: 1.6; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.nav__top .i { width: 14px; height: 14px; margin-right: -4px; transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
.nav__top:hover, .nav__top[aria-expanded="true"] { background: rgba(37, 39, 40, 0.07); }
.nav__top[aria-expanded="true"] .i { transform: rotate(180deg); }
.nav__top.is-here, .nav__top[aria-current] { font-weight: 600; } /* the section this page is in */
.hdr__scrim {
  position: fixed; inset: 0; background: rgba(18, 19, 21, 0.3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0s 0.3s;
}
.hdr.is-mm .hdr__scrim { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.45s; }
.hdr.is-mm .hdr__bar { background: #fff; box-shadow: 0 30px 90px rgba(15, 17, 20, 0.22); transition-duration: 0.46s; }
.mm {
  position: absolute; top: calc(var(--bar-h) - 2px); left: 0; right: 0; max-height: calc(100vh - var(--bar-h) - 40px); overflow-y: auto;
  padding: 10px 28px 28px; visibility: hidden; opacity: 0; transition: opacity 0.15s, visibility 0s 0.15s;
}
.mm.is-open { visibility: visible; opacity: 1; transition: opacity 0.2s; }
/* the opening: the columns rise in one after another (--i) while the bar grows */
.mm__col { opacity: 0; transform: translateY(14px); transition: opacity 0.15s, transform 0s 0.15s; }
.mm.is-open .mm__col {
  opacity: 1; transform: none;
  transition: opacity 0.4s calc(0.08s + var(--i, 0) * 0.05s), transform 0.6s calc(0.08s + var(--i, 0) * 0.05s) cubic-bezier(0.2, 0.7, 0.2, 1);
}
.mm__h { margin-bottom: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.mm--catalog { display: grid; grid-template-columns: minmax(180px, 230px) minmax(0, 1fr) minmax(250px, 30%); grid-template-rows: auto 1fr; column-gap: 40px; }
.mm--catalog > .mm__show { grid-column: 3; grid-row: 1 / 3; }
.mm__more { grid-column: 1 / 3; align-self: end; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; margin: 20px -14px 0; }
.mm__all { margin-top: 14px; }
.mm__brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); column-gap: 24px; }
.mm--buy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 300px); align-items: start; column-gap: 32px; }
.mm__items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 12px; margin-inline: -14px; }
.mm__aside { display: grid; justify-items: start; gap: 6px; padding: 22px 24px 24px; border-radius: 20px; background: var(--mist); }
.mm__aside-t { font-size: 17px; font-weight: 700; }
.mm__aside p + p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.mm__aside .btn { margin-top: 10px; }
@media (max-width: 1279px) { .mm--buy .mm__items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* the showroom: the car of the brand under the pointer, its name and price; the lights come on as the panel opens */
.mm__show { display: grid; align-content: start; }
.mm__slide { grid-area: 1 / 1; display: grid; gap: 12px; color: var(--graphite); text-decoration: none; opacity: 0; visibility: hidden; transition: opacity 0.5s, visibility 0s 0.5s; }
.mm__slide.is-on { opacity: 1; visibility: visible; transition: opacity 0.5s; }
.mm__ph { overflow: hidden; aspect-ratio: 16 / 9; border-radius: 20px; background: #1d1f21; }
.mm__ph img { width: 100%; height: 100%; object-fit: cover; transition: filter 1.2s 0.12s cubic-bezier(0.4, 0, 0.2, 1), transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.mm__slide:not(.is-on) .mm__ph img { transform: scale(1.04); }
.mm:not(.is-open) .mm__ph img { filter: brightness(0.3) saturate(0.4); transform: scale(1.08); }
.mm__cap { display: grid; gap: 1px; padding-inline: 2px; }
.mm__cap b { font-size: 17px; font-weight: 700; line-height: 1.3; }
.mm__cap > span { color: var(--muted); font-size: 13px; }
.mm__cap > .mm__price { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px; color: var(--graphite); font-size: 16px; font-weight: 700; }
.mm__slide:hover b { text-decoration: underline; text-underline-offset: 4px; }
/* pieces of both menus: an availability row, a brand, a page with its icon */
.mst, .mbr { display: flex; align-items: center; gap: 10px; min-height: 42px; margin-inline: -12px; padding: 8px 12px; border-radius: 12px; color: var(--graphite); font-size: 15px; font-weight: 500; text-decoration: none; }
.mst:hover, .mbr:hover { background: var(--mist); }
.mst__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #8c94a0; }
.mst__dot--instock { background: #1f9d55; }
.mst__dot--transit { background: #e0a12b; }
.mst__n { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.mbr b { color: var(--muted); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.mi {
  display: flex; align-items: flex-start; gap: 14px; width: 100%; padding: 14px; border: 0; border-radius: 16px; background: none;
  color: var(--graphite); font: inherit; text-align: left; text-decoration: none; cursor: pointer;
}
.mi:hover { background: var(--mist); }
.mi__ic { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--mist); }
.mi:hover .mi__ic { background: #fff; }
.mi__t { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; }
.mi__d { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.mi__d b { color: var(--graphite); font-weight: 600; }
.mi[aria-current] .mi__t, .mst[aria-current] .mst__l { text-decoration: underline; text-underline-offset: 4px; }
/* reduced motion: the panel is there at once (the durations are cut for the whole site above, these are the delays) */
@media (prefers-reduced-motion: reduce) { .hdr__scrim, .mm, .mm__col, .mm__slide, .mm__ph img { transition-delay: 0s !important; } }

/* ---------- header menu, phones and tablets: the burger's full-screen menu, the consultant pinned at the bottom ---------- */
.menu {
  position: fixed; inset: 0; z-index: -1; display: flex; flex-direction: column; gap: 32px;
  padding: 96px var(--gutter) 0; overflow-y: auto; overscroll-behavior: contain; background: #fff; pointer-events: auto;
}
.menu:not([hidden]) { animation: menu-in 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-10px); } }
.menu__nav { display: grid; gap: 36px; }
.menu__h { margin-bottom: 12px; font-size: 22px; font-weight: 700; }
.menu__sub { margin: 20px 0 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.menu__stat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.menu .mst { display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: center; gap: 0 8px; min-height: 80px; margin: 0; padding: 12px 16px; border-radius: 16px; background: var(--mist); }
.menu .mst__n { grid-area: 1 / 1 / 2 / 3; margin: 0; font-size: 24px; font-weight: 700; line-height: 1.25; }
.menu .mst__dot { grid-area: 2 / 1; }
.menu .mst__l { grid-area: 2 / 2; font-size: 14px; line-height: 1.35; }
.menu .mst--all { background: var(--graphite); color: #fff; }
.menu .mst--all .mst__l { grid-column: 1 / 3; }
.menu__brands { display: flex; flex-wrap: wrap; gap: 8px; }
.menu .mbr { min-height: 44px; margin: 0; padding: 9px 16px; border-radius: 999px; background: var(--mist); }
.menu .mbr:hover { background: var(--mist-2); }
.menu__items { display: grid; gap: 2px; margin: 12px -14px 0; }
.menu__h + .menu__items { margin-top: 0; }
.menu__phones a { display: block; padding: 4px 0; font-size: 18px; font-weight: 600; text-decoration: none; }
.menu__phones + .msgs { margin-top: 12px; }
.menu__addr { display: grid; margin-top: 16px; font-weight: 600; text-decoration: none; }
.menu__addr span { color: var(--muted); font-size: 14px; font-weight: 400; }
.menu__cta {
  position: sticky; bottom: 0; z-index: 1; display: grid; gap: 8px; margin: auto calc(var(--gutter) * -1) 0;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff;
}
@media (min-width: 640px) {
  .menu__stat { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .menu__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu__cta { grid-template-columns: 1fr 1fr; }
}
/* Telegram · Viber pills: menu, phone sheet, home «Контакти» */
.msgs { display: flex; flex-wrap: wrap; gap: 8px; }
.msgs .btn { min-height: 44px; padding: 10px 18px; }
.msgs .btn:hover { text-decoration: none; }
.sec--mist .msgs .btn { background: #fff; }
.sec--mist .msgs .btn:hover { background: var(--mist-2); }

@media (max-width: 1100px) {
  .hdr__nav { display: none; }
  .hdr__burger { display: grid; }
}
@media (max-width: 700px) { .hdr__phone span { display: none; } } /* room for Telegram · Viber on small tablets */
@media (min-width: 1101px) and (max-width: 1240px) { /* small laptops: room for the menu's sections */
  .hdr__bar { gap: 16px; }
  .nav__top { padding-inline: 10px; }
}
@media (min-width: 1101px) and (max-width: 1200px) { .hdr__msg { display: none; } } /* Telegram, Viber: in «Контакти» and the footer */
@media (max-width: 640px) {
  .hdr { top: 8px; }
  .hdr__bar { --bar-h: 56px; gap: 6px; padding: 0 4px 0 14px; border-radius: 28px; }
  .hdr__logo img { width: 88px; }
  .hdr__end { gap: 0; }
  .hdr__msg { display: none; }
  .hdr__cta { min-height: 36px; margin-right: 2px; padding: 6px 10px; }

  .hdr__burger, .js .hdr__reach { width: 38px; height: 38px; }
  .js .hdr__phone { display: none; }
  .js .hdr__reach { display: grid; }
}
@media (max-width: 389px) { /* 360–375 px: the pill keeps its word, the «online» dot steps aside */
  .hdr__logo img { width: 80px; }
  .hdr__cta { padding-inline: 8px; }
  .hdr__dot { display: none; }
}

/* ---------- sections ---------- */
.sec { padding-block: clamp(64px, 8vw, 112px); }
.sec--mist { background: var(--mist); }
.sec__head { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-bottom: clamp(28px, 4vw, 48px); text-align: center; }
.sec__title { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.15; }
.sec__lead { max-width: 62ch; color: var(--muted); font-size: 17px; }
.page-head { padding-top: clamp(112px, 12vw, 148px); padding-bottom: 28px; }
.page-head h1 { font-size: clamp(32px, 4vw, 52px); line-height: 1.1; }
.page-head .sec__lead { margin-top: 12px; }

/* ---------- hero ---------- */
/* Slides like byd.com: video under a gradient, text rising in when the slide comes in, progress bars per slide. */
.hero { position: relative; height: 100svh; min-height: 640px; max-height: 1000px; overflow: hidden; background: #1c1d1f; color: #fff; }
.hero__fallback, .hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* the new slide wipes in over the old one like a curtain; the old one stays whole underneath until it is covered */
.hero__slide { position: absolute; inset: 0; display: flex; align-items: flex-end; visibility: hidden; clip-path: inset(0 0 0 100%); transition: clip-path 0s 1s, visibility 0s 1s; }
.hero__slide.is-active { z-index: 1; visibility: visible; clip-path: inset(0); transition: clip-path 0.9s cubic-bezier(0.65, 0, 0.35, 1); }
.hero__slide::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.36) 38%, rgba(0, 0, 0, 0) 68%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.66) 100%);
}
.hero__media { transform: scale(1.06); }
.hero__slide.is-shown .hero__media { transform: scale(1); transition: transform 12s linear; }
.hero__inner { position: relative; z-index: 1; padding-bottom: clamp(132px, 17vh, 176px); }
.hero__title { max-width: 17ch; font-size: clamp(38px, 5.2vw, 72px); line-height: 1.04; letter-spacing: -0.025em; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25); }
.hero__title--model { font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
/* phones: the long title only crowds the photo — the count of cars below says it (owner, 22.10.2026); it stays for search and
   screen readers */
@media (max-width: 600px) { .hero__title:not(.hero__title--model) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.hero__trust { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: rgba(255, 255, 255, 0.9); font-size: 15px; font-weight: 500; } /* the dealer's licence */
.hero__trust .i { flex: none; width: 22px; height: 22px; color: #5dd39e; }
.hero__link { display: inline-flex; align-items: center; gap: 8px; padding: 12px 8px; border: 0; background: none; color: #fff; font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; cursor: pointer; }
.hero__link .i { width: 16px; height: 16px; }
.js .hero__inner > * { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .hero__slide.is-shown .hero__inner > * { opacity: 1; transform: none; }
.js .hero__inner > :nth-child(2) { transition-delay: 0.1s; }
.js .hero__inner > :nth-child(3) { transition-delay: 0.2s; }
.js .hero__inner > :nth-child(4) { transition-delay: 0.3s; }

.hero__nav { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(36px, 5vh, 56px); display: flex; align-items: flex-end; gap: 20px; }
.hero__dots { display: flex; flex: 1; gap: 20px; }
.hero__dot { display: grid; flex: 1 1 0; gap: 10px; min-width: 0; max-width: 190px; padding: 8px 0; border: 0; background: none; color: rgba(255, 255, 255, 0.66); font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; }
.hero__dot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero__dot[aria-current="true"] { color: #fff; }
.hero__bar { display: block; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, 0.3); }
.hero__bar i { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__pause { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero__pause .i { width: 18px; height: 18px; }
.hero__pause .i + .i, .hero__pause[aria-pressed="true"] .i:first-child { display: none; }
.hero__pause[aria-pressed="true"] .i + .i { display: block; }
@media (max-width: 700px) {
  .hero__slide::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.12) 30%, rgba(0, 0, 0, 0.78) 100%); }
  .hero__inner { padding-bottom: 108px; }
  .hero__nav { bottom: 28px; gap: 12px; }
  .hero__dots { gap: 8px; }
  .hero__dot span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } /* the button keeps its name */
}

/* ---------- segmented tabs ---------- */
.tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--mist-2); }
.tabs button { padding: 10px 20px; border: 0; border-radius: 999px; background: transparent; color: var(--graphite); font-size: 14px; font-weight: 500; cursor: pointer; }
.tabs button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); font-weight: 600; }
@media (max-width: 600px) {
  /* the whole width in equal parts: «Усі» as wide as the others (owner, 22.10.2026: it was squeezed); narrower ones still scroll */
  .tabs { display: flex; width: 100%; flex-wrap: nowrap; justify-content: flex-start; gap: 2px; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: 1 0 0; min-width: max-content; padding: 9px 12px; font-size: 13px; }
}

/* ---------- model showcase rail ---------- */
.models { padding-bottom: clamp(56px, 7vw, 96px); }
.rail__track {
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  display: grid; grid-auto-flow: column; grid-auto-columns: min(560px, 86vw); gap: 20px;
  padding: 8px var(--edge) 28px; scroll-padding-inline: var(--edge); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > * { scroll-snap-align: start; }
.rail__nav { display: flex; justify-content: center; }
.rail__pill { display: inline-flex; align-items: center; gap: 14px; max-width: calc(100% - 2 * var(--gutter)); padding: 6px; border-radius: 999px; background: var(--mist-2); }
.rail__btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; }
.rail__btn:disabled { opacity: 0.4; cursor: default; }
.rail__dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; } /* many models: wrap, never widen the page */
.rail__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: #b5b7bb; cursor: pointer; transition: width 0.2s, background-color 0.2s; }
.rail__dots button[aria-current="true"] { width: 24px; background: var(--graphite); }
@media (max-width: 600px) {
  .rail__pill { gap: 8px; }
  .rail__dots { gap: 4px; }
  .rail__dots button { width: 6px; height: 6px; }
  .rail__dots button[aria-current="true"] { width: 16px; }
}
.models__all { margin-top: 36px; text-align: center; }

.mcard { display: flex; flex-direction: column; padding: 28px 28px 24px; border-radius: var(--r-lg); background: #fff; box-shadow: 0 2px 12px rgba(15, 17, 20, 0.05); }
.mcard__body { color: var(--muted); font-size: 14px; }
.mcard__name { margin-top: 2px; font-size: clamp(22px, 2vw, 28px); font-weight: 700; line-height: 1.15; letter-spacing: 0; text-transform: uppercase; }
.mcard__price { margin-top: 4px; font-size: 15px; }
.mcard__price b { font-size: 22px; font-weight: 700; }
.mcard__img { width: 100%; height: clamp(180px, 20vw, 270px); margin: 12px 0 20px; object-fit: contain; filter: drop-shadow(0 22px 14px rgba(0, 0, 0, 0.16)); }
.mcard__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.mcard__cta .btn { padding-inline: 12px; }
@media (max-width: 480px) { .mcard { padding: 22px 18px 18px; } .mcard__cta { grid-template-columns: 1fr; } }

/* ---------- about: text + image ---------- */
.split { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: clamp(32px, 5vw, 80px); padding-block: 0 clamp(64px, 8vw, 112px); }
.split h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.15; }
.split p { max-width: 56ch; margin-top: 16px; color: var(--muted); }
.split .btn { margin-top: 28px; }
.split__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-lg); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- maps ---------- */
.mapbox { height: clamp(380px, 48vw, 560px); overflow: hidden; border-radius: var(--r-lg); background: var(--mist); }
.mapbox iframe { display: block; width: 100%; height: 100%; border: 0; }
.mapbox--office { height: 340px; margin-top: 48px; }
.mapbox--facade { display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; }
.mapbox--facade .i { width: 40px; height: 40px; }
.mapbox--facade p { max-width: 36ch; color: var(--muted); }

/* ---------- contacts + forms ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(32px, 5vw, 80px); }
.contact__title { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; }
.contact .sec__lead { margin-top: 12px; }
.contact__list { display: grid; gap: 18px; margin-top: 32px; }
.contact__list dt { color: var(--muted); font-size: 13px; font-weight: 500; }
.contact__list dd { margin-top: 2px; font-size: 17px; font-weight: 500; line-height: 1.6; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { text-decoration: underline; }
.card { padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.lead { display: grid; gap: 16px; }
.lead__title, .lead__head h2 { font-size: 24px; line-height: 1.2; }
.lead__head { padding-right: 40px; }
.lead__item { margin-top: 6px; color: var(--muted); font-size: 14px; }
.lead__fields { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field span { color: var(--muted); font-size: 13px; font-weight: 500; }
.field input { width: 100%; height: 52px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; font-size: 16px; }
.field input:focus { border-color: var(--graphite); outline: none; }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.lead__error { color: var(--danger); font-size: 14px; }
.seg { min-width: 0; margin: 0; padding: 0; border: 0; }
.seg legend { margin-bottom: 6px; padding: 0; color: var(--muted); font-size: 13px; font-weight: 500; }
.seg__opts { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--mist-2); }
.seg label { position: relative; display: flex; flex: 1 1 0; min-width: 0; }
.seg input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span { display: flex; flex: 1; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px; border-radius: 999px; color: var(--graphite); font-size: 14px; font-weight: 500; white-space: nowrap; }
.seg .i { width: 18px; height: 18px; }
.seg input:checked + span { background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 420px) { .seg .i { display: none; } .seg span { padding-inline: 4px; } }
.lead__fine { color: var(--muted); font-size: 12px; }
.lead__done { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: var(--r-sm); background: var(--ok-bg); color: var(--ok); }
.lead__done .i { width: 24px; height: 24px; }
.lead.is-done .lead__fields, .lead.is-done [type="submit"], .lead.is-done .lead__fine { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- dialogs ---------- */
.modal { width: min(520px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: var(--r-lg); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25); }
.modal::backdrop { background: rgba(10, 11, 12, 0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open] { animation: pop 0.22s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.modal__box { position: relative; padding: 32px 28px 24px; }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--mist); cursor: pointer; }
.modal--video { width: min(1100px, calc(100% - 32px)); background: #000; }
.modal--video .modal__box { padding: 0; }
.modal--video .modal__close { background: rgba(255, 255, 255, 0.9); }
.video { aspect-ratio: 16 / 9; }
.modal--sheet { width: min(420px, calc(100% - 32px)); }
.modal--sheet .modal__box { display: grid; gap: 12px; }
.modal--sheet .msgs { flex-direction: column; } /* one button per row */
.reach__title { padding-right: 48px; font-size: 22px; line-height: 1.25; }
.reach__hours { color: var(--muted); font-size: 13px; text-align: center; }
@media (max-width: 640px) { /* a bottom sheet on phones */
  .modal--sheet { width: 100%; max-width: none; margin: auto 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .modal--sheet[open] { animation: sheet-up 0.25s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .modal--sheet .modal__box { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}
@keyframes sheet-up { from { transform: translateY(100%); } }
/* Viber on a computer (site.js): where to write when viber:// opens nothing. Empty = invisible but still a live region */
.toast {
  position: fixed; z-index: 95; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100% - 32px);
  padding: 12px 20px; border-radius: var(--r-sm); background: var(--graphite); color: #fff; font-size: 14px; transform: translateX(-50%);
}
.toast:empty { padding: 0; opacity: 0; pointer-events: none; }
.video iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- catalog cards (the catalog page itself: catalog.css) ---------- */
.select select {
  height: 44px; padding: 0 42px 0 18px; border: 1.5px solid var(--line); border-radius: 999px; appearance: none; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23252728' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center / 14px;
  font-size: 14px; font-weight: 500;
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; padding-bottom: 96px; }

.badge { display: inline-flex; align-items: center; gap: 6px; width: max-content; padding: 5px 12px 5px 10px; border-radius: 999px; background: var(--wait-bg); color: var(--wait); font-size: 12px; font-weight: 600; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--instock { background: var(--ok-bg); color: var(--ok); }
.badge--transit { background: var(--warn-bg); color: var(--warn); }
.badge--owner { background: var(--mist-2); color: var(--ink); } /* «Від власника» (src/owner.js) */
.badge--verified { background: var(--ok-bg); color: var(--ok); } /* «Перевірено E-Car» */

.ccard { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; transition: box-shadow 0.2s; }
.ccard:hover { box-shadow: var(--shadow); }
.ccard__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist); }
.ccard__media img { width: 100%; height: 100%; object-fit: cover; }
/* a cut-out car on the showroom floor: the backdrop zoomed to the band between the «ecar» sign and its reflection in the
   floor, so the sign doesn't repeat in every card nor sit under the status (showroom.webp: sign 12–28 %, reflection 75–88 %) */
.ccard__media.studio { background-position: 50% 53%; background-size: auto 222%; }
.ccard__media.studio img { padding-top: 12cqw; }
/* a 360° frame keeps room around the car: zoom in like the viewer, wheels stay on the floor line */
.ccard__media.studio img[src^="/spin/"] { padding: 0; transform: scale(1.5); transform-origin: 50% 90%; }
.ccard__ask { position: absolute; left: 50%; bottom: 10px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.85); color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; transform: translateX(-50%); } /* no photo of this car yet */
.ccard__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ccard__body { display: flex; flex: 1; flex-direction: column; padding: 16px 22px 22px; }
/* «Порівняти» next to «Детальніше», above the card-wide link (public/js/compare.js); not on the photo — the «ecar» sign is there */
.ccard__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.ccard__cmp {
  position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px;
  padding: 8px 12px; border: 1.5px solid var(--graphite); border-radius: 999px; background: #fff; color: var(--graphite);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.ccard__cmp:hover { background: var(--mist); }
/* «+», pressed «✓»: one icon in the stylesheet instead of an SVG in each of 50 cards */
.ccard__cmp::before {
  content: ""; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ccard__cmp[aria-pressed="true"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4 4L18.5 7.5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4 4L18.5 7.5'/%3E%3C/svg%3E");
}
.ccard__cmp[aria-pressed="true"] { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); }
html:not(.js) .ccard__cmp { visibility: hidden; }
/* on/off switch: <input class="switch" type="checkbox" role="switch"> (catalog filters, compare page) */
.switch {
  position: relative; flex: none; width: 42px; height: 26px; margin: 0; border: 1.5px solid #85888d; border-radius: 999px;
  background: #fff; appearance: none; cursor: pointer; transition: background-color 0.2s, border-color 0.2s;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #85888d;
  transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.2s;
}
.switch:checked { border-color: var(--graphite); background: var(--graphite); }
.switch:checked::after { background: #fff; transform: translateX(16px); }
.ccard__name { font-size: 20px; font-weight: 700; }
.ccard__name a { text-decoration: none; }
.ccard__name a::after { content: ""; position: absolute; inset: 0; }
.ccard__trim { margin-top: 2px; color: var(--muted); font-size: 14px; }
.ccard__specs { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 8px; margin: 16px 0 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.ccard__specs li { font-size: 14px; font-weight: 600; white-space: nowrap; }
.ccard__specs span, .ccard__specs small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.ccard__foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin-top: auto; }
.price { font-size: 22px; font-weight: 700; white-space: nowrap; }
.price--ask { color: var(--muted); font-size: 16px; font-weight: 600; }
/* «У кредит $881/міс» / «перший внесок …»: src/credit.js cardCredit */
.ccard__credit { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px; padding: 8px 8px 8px 12px; border: 0; border-radius: var(--r-sm); background: var(--mist); color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; line-height: 1.35; text-align: left; cursor: pointer; transition: background-color 0.15s; }
.ccard__credit:hover { background: var(--mist-2); }
.ccard__credit-go { margin-left: auto; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ccard__credit .i { flex: none; width: 22px; height: 22px; }
.ccard__credit b { font-weight: 700; }
.empty { padding: 48px var(--gutter) 120px; text-align: center; }
.empty h2 { font-size: 26px; }
.empty p { max-width: 46ch; margin: 10px auto 24px; color: var(--muted); }

/* ---------- car page: public/css/car.css; shared here — crumbs, the studio backdrop (catalog cards too), bands ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: clamp(100px, 10vw, 120px); color: var(--muted); font-size: 13px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* E-Car showroom: the cut-out car stands on the glossy floor under the lit ecar sign, with a contact shadow and a
   reflection (no reflection in Firefox). --floor: from the wheels to the bottom edge, in cqw of the box width. */
.studio {
  --floor: 6cqw;
  position: relative; isolation: isolate; container-type: inline-size;
  background: #e8e9eb url(/img/showroom.webp) 50% 0 / cover no-repeat;
}
.studio::after {
  content: ""; position: absolute; z-index: -1; left: 14%; right: 14%; bottom: calc(var(--floor) - 2cqw); height: 4cqw;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.42), transparent);
}
.studio img {
  padding: 17cqw 6cqw var(--floor); object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.3));
  -webkit-box-reflect: below calc(var(--floor) * -2) linear-gradient(transparent 82%, rgba(255, 255, 255, 0.28));
}

.band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 96px; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg); background: var(--mist); }
.band h2 { font-size: 24px; }
.band p { margin-top: 6px; color: var(--muted); }

/* ---------- accessories ---------- */
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; padding-bottom: 96px; }
.acard { display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.acard__media { aspect-ratio: 1; overflow: hidden; border-radius: var(--r-md); }
.acard__media img { width: 100%; height: 100%; object-fit: contain; }
.acard__name { font-size: 16px; font-weight: 600; line-height: 1.35; }
.acard__desc { color: var(--muted); font-size: 14px; }
.acard__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.acard .price { font-size: 20px; }

/* ---------- text pages ---------- */
.prose { max-width: 760px; padding-bottom: 96px; }
.prose h2 { margin: 32px 0 10px; font-size: 22px; }
.prose p + p { margin-top: 12px; }
.nf { min-height: 60vh; }
.nf__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- footer ---------- */
.ftr { padding-top: 64px; background: var(--mist); font-size: 14px; }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 48px; }
.ftr__brand p { max-width: 34ch; margin-top: 16px; color: var(--muted); }
.ftr__app { margin-top: 24px; }
.ftr__brand p.ftr__app-title { margin: 0 0 10px; color: var(--graphite); font-size: 13px; font-weight: 600; }
/* E-Car Club app badges (src/layout.js storeBadges), sized and drawn like the stores' own; two-class selectors win over «.ftr a» */
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.stores .store { position: relative; display: inline-flex; align-items: center; gap: 10px; min-width: 176px; height: 56px; padding: 0 18px 0 14px;
  border: 1px solid #a6a6a6; border-radius: 10px; background: #000; color: #fff; line-height: 1.05; text-decoration: none; }
.stores .store svg { width: 30px; height: 30px; flex: none; }
.stores .store > span { display: grid; gap: 2px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.stores .store small { font-size: 11px; font-weight: 500; letter-spacing: 0; }
.stores a.store { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.stores a.store:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18); text-decoration: none; }
.stores a.store:focus-visible { outline: 2px solid var(--ok); outline-offset: 2px; }
.stores .store--soon { cursor: default; }
.stores .store--soon svg, .stores .store--soon > span { opacity: 0.55; }
.store__soon { position: absolute; top: -8px; right: -6px; padding: 2px 8px; border-radius: 999px; background: var(--ok); color: #fff; font-size: 10px; font-style: normal; font-weight: 700; line-height: 1.4; }
.stores--sm .store { min-width: 148px; height: 44px; padding: 0 14px 0 11px; border-radius: 8px; }
.stores--sm .store svg { width: 24px; height: 24px; }
.stores--sm .store > span { font-size: 16px; }
.stores--sm .store small { font-size: 9.5px; }
@media (prefers-reduced-motion: reduce) { .stores a.store { transition: none; } .stores a.store:hover { transform: none; } }
.ftr h2 { margin-bottom: 14px; font-size: 14px; font-weight: 700; }
.ftr li + li { margin-top: 8px; }
.ftr a, .ftr .linklike { color: var(--graphite); text-decoration: none; }
.ftr a:hover, .ftr .linklike:hover { text-decoration: underline; }
.ftr__social { display: flex; gap: 8px; margin-top: 20px; }
.ftr__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; }
.ftr__social a:hover { background: var(--graphite); color: #fff; }
.ftr__msgs { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.ftr__msgs a { display: inline-flex; align-items: center; gap: 6px; }
.ftr__msgs .i { width: 18px; height: 18px; }
.ftr__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
@media (max-width: 900px) { .ftr__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ftr__grid { grid-template-columns: 1fr; } }

/* ---------- motion: everything below is decoration and switches off with "reduce motion" ---------- */

/* cars drive into the model rail when it scrolls into view and when a tab changes the list */
@media (prefers-reduced-motion: no-preference) {
  .js [data-drive-in] .mcard__img {
    opacity: 0; transform: translateX(-90px) scale(0.96);
    transition: opacity 0.7s ease, transform 1.1s cubic-bezier(0.16, 0.84, 0.3, 1);
    transition-delay: calc(min(var(--i, 0), 4) * 90ms);
  }
  .js [data-drive-in].is-in .mcard__img { opacity: 1; transform: none; }
  .js [data-drive-in].is-in .mcard:hover .mcard__img { transform: translateX(8px) scale(1.04); transition-delay: 0s; }
}

/* page-to-page: the car photo in the catalog grows into the big photo on its page (Chrome, Safari) */
@view-transition { navigation: auto; }
/* the bar, not .hdr: a named element is a backdrop root, and the glass and the menu's scrim inside .hdr must see the page */
.hdr__bar { view-transition-name: header; }
::view-transition-group(*) { animation-duration: 0.45s; animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1); }

@media (prefers-reduced-motion: reduce) {
  .hero__media { transform: none; transition: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* «Прибуде ≈ 30 жовт.» under a car on the way (etaLine in src/eta.js) */
.eta { display: flex; align-items: center; gap: 6px; color: var(--warn); font-size: 13px; font-weight: 600; }
.eta .i { width: 16px; height: 16px; }

/* Questions and answers a page shows and gives search engines as FAQPage (brand pages, «Електромобіль у кредит») */
.qa { padding-bottom: 64px; }
.qa > * { max-width: 860px; }
.qa h2 { margin-bottom: 4px; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; }
.qa h3 { margin-top: 24px; font-size: 18px; line-height: 1.35; }
.qa p { margin-top: 6px; color: var(--muted); }

/* «Фото моделі»: a car shown with its model's photos (src/data.js modelSet) */
.car__model-photo { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
