/* ═══════════════════════════════════════════════════════════════════════════
   «Солнышко» — таксопарк Москвы. Светлая тема, акцент солнечно-жёлтый.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Montserrat лежит у нас на сервере: ни одного обращения к чужим доменам. */
@font-face {
  font-family: 'Montserrat'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/static/fonts/montserrat-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Montserrat'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/static/fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
                 U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/static/fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                 U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Поле */
  --bg:          #FFFFFF;
  --bg-2:        #F7F8FA;
  --bg-3:        #EEF0F4;
  --line:        rgba(0, 0, 0, .08);
  --line-2:      rgba(0, 0, 0, .14);

  /* Солнце */
  --sun:         #FFD400;
  --sun-2:       #FFE24D;
  --sun-deep:    #C9A400;
  --sun-glow:    rgba(255, 212, 0, .34);

  /* Текст */
  --ink:         #15171C;
  --ink-2:       #5B616B;
  --ink-3:       #8A919C;

  /* Состояния */
  --ok:          #0E9F58;
  --warn:        #B45309;
  --bad:         #DC2626;
  --info:        #1B5CFF;

  /* Карточки */
  --glass:       #FFFFFF;
  --glass-2:     #F7F8FA;
  /* Плёнка поверх страницы: липкая шапка, нижняя панель, плашка тарифа.
     Отдельно от --glass, потому что она полупрозрачная. */
  --glass-veil:  rgba(255, 255, 255, .94);
  --blur:        saturate(140%) blur(14px);

  --wrap:        1240px;
  --r:           18px;
  --r-s:         12px;
  --r-l:         22px;

  --shadow:      0 2px 14px rgba(20, 23, 28, .05);
  --shadow-lg:   0 14px 40px rgba(20, 23, 28, .10);
  --shadow-sun:  0 8px 22px rgba(255, 212, 0, .35);

  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* Единая сетка высот. Раньше высота кнопок и полей получалась из
     line-height × font-size и «плавала» (38.8 / 51.3 / 52.8 / 57.3 px),
     поэтому кнопка рядом с полем была ниже на 1–2 px. Теперь высота задана
     числом, а не выводится из шрифта. */
  --h-sm: 40px;   /* .btn--sm, .chip */
  --h-md: 52px;   /* .btn, .inp, .sel, радио-кнопки */
  --h-lg: 58px;   /* .btn--lg */
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--font);
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Фоновое свечение: мягкий солнечный свет сверху и городской свет снизу */
body::before { content: none; }
body > * { position: relative; z-index: 1; }

img, video { max-width: 100%; height: auto; display: block; }

/* Встроенная иконка без своего класса должна быть размером со строку,
   иначе SVG разворачивается на 300×150 и ломает заголовок.
   Правила с классами (.btn svg, .spec svg и прочие) это перекрывают. */
svg { width: 1.05em; height: 1.05em; vertical-align: -.14em; flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 800; letter-spacing: -.03em; line-height: 1.06; }
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.375rem); }
h3 { font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.2; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--sun); color: var(--ink); }

:focus-visible {
  /* Жёлтое кольцо на белом фоне почти не видно (контраст ~1.4:1), поэтому
     кольцо тёмное. Радиус не задаём: раньше фокус с клавиатуры «квадратил»
     скруглённые кнопки и чипсы до 6px. */
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
a:not([class]):focus-visible { border-radius: 4px; }

/* ── Каркас ───────────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(48px, 7vw, 92px) 0; }
.section--tight { padding: clamp(32px, 4vw, 52px) 0; }
.muted { color: var(--ink-2); }
.dim   { color: var(--ink-3); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--sun); border-radius: 2px; }

.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--ink-2); max-width: 62ch; }

.head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 34px;
}
/* У последнего элемента в левой колонке нет нижнего отступа: во flex-контейнере
   margin заголовка не схлопывается и «прибивал» кнопку справа на 19px ниже
   текста заголовка. */
.head-row > * > :last-child { margin-bottom: 0; }

/* ── Шапка ────────────────────────────────────────────────────────────────── */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: var(--glass-veil);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--line);
}
.hdr__in { display: flex; align-items: center; gap: 18px; height: 70px; }

.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.16rem; letter-spacing: -.04em; flex-shrink: 0; }
/* Знак парка — картинка из фирменного логотипа, уже со скруглением и фоном */
.logo__mark { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: block; object-fit: contain; }
/* Город филиала — второй строкой под названием парка. В Москве настройка
   пуста, и замок остаётся однострочным, каким был. */
.logo__txt { display: flex; flex-direction: column; line-height: 1.04; }
.logo__city {
  font-style: normal; font-size: .605rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-3); margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  padding: 9px 13px; border-radius: 10px; font-size: .94rem; font-weight: 600; color: var(--ink);
  transition: color .18s, background .18s;
}
.nav a:hover { color: var(--ink); background: var(--bg-2); }
.nav a.on { color: var(--ink); font-weight: 700; }

.hdr__cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.hdr__phone { font-weight: 700; font-size: .96rem; white-space: nowrap; line-height: 1.25; }
.hdr__phone small { display: block; font-size: .7rem; font-weight: 500; color: var(--ink-3); line-height: 1.25; }

.burger {
  /* Высота как у .btn--sm: бургер стоит в одном ряду с кнопкой «Оставить заявку». */
  display: none; width: var(--h-sm); height: var(--h-sm); border: 1px solid var(--line-2);
  background: var(--glass); border-radius: 11px; cursor: pointer;
  align-items: center; justify-content: center; margin-left: auto;
  transition: background .18s, border-color .18s, transform .12s var(--ease);
}
.burger:hover { background: var(--bg-2); border-color: var(--ink); }
.burger:active { background: var(--bg-3); transform: scale(.92); }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
}
.burger span::before { top: -6px; } .burger span::after { top: 6px; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: flex; }
  .hdr__cta .btn--ghost { display: none; }
}
@media (max-width: 560px) { .hdr__phone { display: none; } }

.drawer {
  position: fixed; inset: 0; z-index: 90; display: none;
  background: rgba(8, 9, 12, .82); backdrop-filter: blur(6px);
}
.drawer.open { display: block; }
.drawer__panel {
  position: absolute; top: 0; right: 0; width: min(360px, 88vw); height: 100%;
  background: var(--glass); border-left: 1px solid var(--line); box-shadow: -20px 0 60px rgba(20,23,28,.16);
  padding: 22px; overflow-y: auto;
  animation: slideIn .26s var(--ease);
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
.drawer__panel a {
  display: block; padding: 13px 14px; border-radius: 12px; color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.drawer__panel a:hover, .drawer__panel a.on { color: var(--ink); }
.drawer__close {
  width: 100%; margin-top: 18px; padding: 12px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--line-2); cursor: pointer; color: var(--ink-2);
}

/* ── Кнопки ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  /* Высота задана числом, вертикальных паддингов нет: так .btn, .inp и .sel
     совпадают до пикселя и кнопка из одной иконки (мобильный «Найти») не
     проваливается до 46px. */
  min-height: var(--h-md); padding: 0 22px; line-height: 1.2;
  border-radius: 12px; border: 1px solid transparent;
  font-weight: 800; font-size: .94rem; cursor: pointer; white-space: nowrap;
  transition: transform .16s var(--ease), box-shadow .22s, background .18s, border-color .18s, opacity .18s;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--sun {
  background: var(--sun);
  color: #15171C; box-shadow: var(--shadow-sun);
}
.btn--sun:hover { background: var(--sun-2); box-shadow: 0 16px 40px rgba(255, 212, 0, .32); transform: translateY(-2px); }

.btn--ghost { background: var(--glass); border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { background: var(--bg-2); border-color: var(--ink); }

.btn--line { background: var(--glass); border-color: var(--line-2); color: var(--ink); }
/* Наведение у .btn--line такое же, как у .btn--ghost: раньше менялась только рамка. */
.btn--line:hover { background: var(--bg-2); border-color: var(--ink); color: var(--ink); }

.btn--danger { background: #FEF2F2; border-color: #FBB4B4; color: #B91C1C; }
.btn--danger:hover { background: #FEE2E2; }

.btn--sm { min-height: var(--h-sm); padding: 0 14px; font-size: .84rem; border-radius: 10px; }
.btn--lg { min-height: var(--h-lg); padding: 0 28px; font-size: 1rem; border-radius: 13px; }
.btn--wide { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .55; pointer-events: none; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Первый экран ─────────────────────────────────────────────────────────── */
.hero { padding: clamp(40px, 6vw, 76px) 0 clamp(36px, 5vw, 60px); }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 4vw, 56px); align-items: center;
}
/* minmax(0,…), а не 1fr: иначе колонка не ужимается ниже min-content карточки
   «Как получить машину» и на узком экране текст уезжает за край. */
@media (max-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 1fr); } }

.hero h1 { margin-bottom: 18px; }
.hero h1 b { color: var(--ink); font-weight: 800; }
.hero__sub { font-size: clamp(1.03rem, 1.7vw, 1.22rem); color: var(--ink-2); max-width: 54ch; margin-bottom: 28px; }
.hero__btns { margin-bottom: 30px; }

.trust {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px; margin-top: 26px;
}
.trust__i {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 15px; border-radius: var(--r-s);
  background: var(--bg-2);
  font-size: .87rem; font-weight: 600; color: var(--ink);
}
.trust__i svg { width: 17px; height: 17px; color: var(--sun-deep); flex-shrink: 0; }

.counters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.counter {
  padding: 13px 18px; border-radius: var(--r-s);
  background: var(--bg-2); border: 1px solid transparent;
}
.counter b { display: block; font-size: 1.5rem; line-height: 1.1; color: var(--ink); letter-spacing: -.035em; font-weight: 800; }
.counter span { font-size: .8rem; color: var(--ink-3); }

/* Слайдер автомобилей на первом экране */
.shot {
  position: relative; border-radius: var(--r-l); overflow: hidden;
  border: 1px solid var(--line-2); background: var(--bg-2);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.shot__track { display: flex; height: 100%; transition: transform .55s var(--ease); }
.shot__slide { min-width: 100%; height: 100%; position: relative; }
.shot__slide img { width: 100%; height: 100%; object-fit: cover; }
.shot__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 20px 18px;
  background: linear-gradient(to top, rgba(20, 23, 28, .9) 10%, transparent); color: #fff;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 14px;
}
.shot__cap h4 { margin: 0 0 3px; font-size: 1.06rem; }
.shot__cap p { margin: 0; font-size: .84rem; color: rgba(255,255,255,.75); }
.shot__price { font-weight: 800; color: var(--sun); white-space: nowrap; font-size: 1.04rem; }
.shot__dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 3; }
.shot__dot {
  width: 7px; height: 7px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(255, 255, 255, .34); transition: width .25s, background .25s;
}
.shot__dot.on { width: 22px; border-radius: 4px; background: var(--sun); }
.shot__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .94); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink);
  backdrop-filter: blur(6px); transition: background .18s;
}
.shot__nav:hover { background: var(--sun); color: var(--ink); }
.shot__nav--prev { left: 12px; } .shot__nav--next { right: 12px; }

/* ── Стеклянные карточки ──────────────────────────────────────────────────── */
.card {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 22px;
}
.card--pad-l { padding: clamp(22px, 3vw, 34px); }
.card--sun { border-color: rgba(255, 212, 0, .55); background: #FFFCEB; }
.card--hover { transition: transform .22s var(--ease), border-color .22s, box-shadow .22s; }
.card--hover:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow-lg); }

/* Элемент сетки по умолчанию не ужимается меньше своего содержимого и
   распирает колонку. Разрешаем ужиматься — иначе на телефоне уезжает вправо. */
.grid > *, .cars > *, .adm-grid > *, .adm-grid--2 > * { min-width: 0; }

.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.ico-card__ic {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--sun); color: var(--ink); margin-bottom: 14px;
}
.ico-card__ic svg { width: 22px; height: 22px; }
.ico-card h3 { font-size: 1.08rem; margin-bottom: 7px; }
.ico-card p { font-size: .92rem; color: var(--ink-2); margin: 0; }

/* ── Статусы автомобиля ───────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; white-space: nowrap;
  border: 1px solid transparent;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.pill--free    { color: #0A7A3C; background: #E8F8EF; border-color: #A9E2C4; }
.pill--free::before { box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: beat 2s infinite; }
@keyframes beat {
  0%   { box-shadow: 0 0 0 0 rgba(14, 159, 88, .45); }
  70%  { box-shadow: 0 0 0 7px rgba(14, 159, 88, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 159, 88, 0); }
}
.pill--booked  { color: #92400E; background: #FEF5E0; border-color: #F3D493; }
.pill--soon    { color: #1348C4; background: #EAF1FF; border-color: #BACDFF; }
.pill--service { color: var(--ink-3); background: var(--bg-2); border-color: var(--line); }
.pill--plain   { color: var(--ink); background: var(--glass); border-color: var(--line); font-weight: 700; }
.pill--plain::before { display: none; }
/* Мелкий вариант: метка на фотографии в карточке витрины */
.pill--sm { padding: 3px 9px 3px 8px; font-size: .7rem; gap: 5px; border-radius: 999px; }
.pill--sm::before { width: 5px; height: 5px; }

/* ── Карточка автомобиля ──────────────────────────────────────────────────── */
.cars { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }

.car {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow);
  transition: transform .24s var(--ease), border-color .24s, box-shadow .24s;
}
.car:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.car.is-out { opacity: .72; }

.car__media { position: relative; aspect-ratio: 16 / 10; background: var(--bg-2); overflow: hidden; }
.car__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.car:hover .car__media img { transform: scale(1.045); }
.car__status { position: absolute; top: 10px; right: 10px; z-index: 3; }
.car__tariff {
  position: absolute; bottom: 10px; right: 10px; z-index: 3;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px 4px 7px; border-radius: 9px; font-size: .73rem; font-weight: 700;
  background: var(--glass-veil); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.car__tariff svg { width: 15px; height: 15px; stroke-width: 1.7; color: var(--ink-2); }
.shots__count {
  position: absolute; bottom: 11px; left: 12px; z-index: 3;
  padding: 3px 9px; border-radius: 7px; font-size: .72rem; font-weight: 700;
  color: #fff; background: rgba(21, 23, 28, .55); backdrop-filter: none;
}
.shots__count b { font-weight: 800; }

.car__body { padding: 17px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.car__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.car__head-t { min-width: 0; }
.car__name { font-size: 1.1rem; font-weight: 700; margin: 0 0 3px; letter-spacing: -.025em; }
.car__sub { font-size: .83rem; color: var(--ink-3); margin: 0; }

/* ── Госномер: табличка как на машине ─────────────────────────────────────
   Пропорции и разбивка настоящего номера: буква, три цифры, две буквы,
   справа код региона и RUS с флагом. Водитель узнаёт свою машину по номеру,
   поэтому он нарисован, а не набран строкой. */
.plate {
  display: inline-flex; align-items: stretch; flex-shrink: 0;
  background: linear-gradient(#fff, #F4F5F7);
  border: 1.5px solid #15171c; border-radius: 4px; overflow: hidden;
  color: #15171c; line-height: 1; font-weight: 800;
  box-shadow: 0 1px 2px rgba(21, 23, 28, .18), inset 0 1px 0 rgba(255, 255, 255, .9);
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
  white-space: nowrap; user-select: all;
}
/* На настоящем номере буквы ниже цифр — повторяем пропорцию */
.plate__main { display: flex; align-items: baseline; padding: 5px 6px 5px 7px; font-size: .78rem; letter-spacing: .055em; }
.plate__main b { font-weight: 800; font-size: 1.14em; letter-spacing: .06em; margin: 0 .12em; }
.plate__reg {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  padding: 3px 5px; border-left: 1.5px solid #15171c;
}
.plate__num { font-size: .66rem; letter-spacing: .04em; }
.plate__rus { display: flex; align-items: center; gap: 2px; font-size: .4rem; font-weight: 700; letter-spacing: .1em; }
.plate__flag {
  width: 8px; height: 5px; border-radius: 1px; flex-shrink: 0;
  background: linear-gradient(to bottom, #fff 0 33.3%, #0039A6 33.3% 66.6%, #D52B1E 66.6% 100%);
  box-shadow: 0 0 0 .5px rgba(21, 23, 28, .45);
}
.plate--raw .plate__main { font-size: .78rem; letter-spacing: .08em; }
.car.is-out .plate { filter: grayscale(.4); }

.car__specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 15px; }
.spec {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 9px; border-radius: 8px; font-size: .76rem; color: var(--ink-2);
  background: var(--bg-2); border: 1px solid var(--line);
}
.spec svg { width: 13px; height: 13px; opacity: .75; }

.car__price {
  /* Блок цены тянется на всё свободное место и сверху привязан к линии, а кнопка
     прижата вниз (см. ниже). Раньше блок прижимался вниз целиком, и строка цены
     у соседних карточек отличалась на 13–17px: у одних есть «Освободится…»,
     у других двухстрочный «выкуп». */
  margin-top: 0; padding-top: 14px; border-top: 1px solid var(--line);
  flex: 1; display: flex; flex-direction: column;
}
.car__price > .btn { margin-top: auto; }
/* Строка цены резервирует высоту двухстрочного блока «выкуп»: цена всегда на одной линии. */
.car__price-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 13px; min-height: 40px; }
.car__rub { font-size: 1.3rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.car__rub small { font-size: .78rem; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.car__buyout { font-size: .77rem; color: var(--ink-3); text-align: right; }
.car__buyout b { color: var(--ink-2); display: block; }
.car__when { font-size: .79rem; color: var(--info); margin-bottom: 11px; }

/* ── Фильтры ──────────────────────────────────────────────────────────────── */
.filters {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 18px; margin-bottom: 26px;
}
.filters__grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); }
.filters__foot { display: flex; gap: 11px; align-items: center; flex-wrap: wrap; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); }
.filters__count { font-size: .9rem; color: var(--ink-2); margin-right: auto; }

/* На телефоне фильтры свёрнуты: до первой машины должно быть близко. */
.filters__toggle { display: none; }
@media (max-width: 760px) {
  .filters__toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    width: 100%; min-height: var(--h-md); padding: 0 14px; border-radius: var(--r-s); cursor: pointer;
    background: var(--glass); border: 1px solid var(--line-2); color: var(--ink);
    font-weight: 700; font-size: .93rem;
    transition: background .18s, border-color .18s, transform .12s var(--ease);
  }
  .filters__toggle:hover { background: var(--bg-2); border-color: var(--ink); }
  .filters__toggle:active { transform: scale(.985); background: var(--bg-3); }
  .filters__toggle span { display: inline-flex; align-items: center; gap: 9px; }
  .filters__toggle svg { width: 17px; height: 17px; color: var(--sun); }
  .filters__toggle-c:not(:empty) {
    min-width: 22px; height: 22px; border-radius: 999px; justify-content: center;
    background: var(--sun); color: #15171C; font-size: .78rem; font-weight: 800;
  }
  .filters__grid { display: none; margin-top: 14px; }
  .filters.open .filters__grid { display: grid; }
  .filters:not(.open) .filters__foot { margin-top: 12px; padding-top: 12px; }
}
.filters__count b { color: var(--ink); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip {
  /* Фиксированная высота и flex-центровка: чипсы-ссылки (<a>) и чипсы-кнопки
     (<button>) иначе отличаются на пару пикселей из-за разной внутренней вёрстки. */
  display: inline-flex; align-items: center; gap: 5px;
  min-height: var(--h-sm); padding: 0 17px; border-radius: 999px; font-size: .87rem; line-height: 1.2;
  font-weight: 700; cursor: pointer; white-space: nowrap;
  background: var(--glass); border: 1px solid var(--line); color: var(--ink);
  box-shadow: var(--shadow); transition: background .18s, border-color .18s, color .18s, transform .12s var(--ease);
}
.chip:hover { border-color: var(--line-2); background: var(--bg-2); }
.chip:active { transform: scale(.95); }
.chip.on:hover { background: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip b { font-weight: 800; }

/* ── Формы ────────────────────────────────────────────────────────────────── */
.field { display: block; margin-bottom: 15px; }
.field__label { display: block; font-size: .83rem; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.field__label i { color: var(--bad); font-style: normal; }
.field__hint { font-size: .78rem; color: var(--ink-3); margin-top: 6px; }
.field__err { font-size: .8rem; color: #FF9A90; margin-top: 6px; }

.inp, .sel, .txt {
  width: 100%; padding: 13px 15px; border-radius: var(--r-s);
  background: var(--bg-2); border: 1px solid transparent;
  color: var(--ink); transition: border-color .18s, background .18s, box-shadow .18s;
  appearance: none;
  /* Размер шрифта задан явно: поле наследовало его от родителя, и в карточке
     .lead (1.18rem) на главной оно выходило 57px вместо 52px. */
  font-size: 1rem; line-height: 1.4;
}
/* Однострочные поля = высота кнопки. Для date/time Chrome добавляет свои
   внутренние отступы (54.8px), поэтому высота жёстко фиксируется. */
.inp, .sel { height: var(--h-md); padding-top: 0; padding-bottom: 0; }
.inp:hover, .sel:hover, .txt:hover { border-color: var(--line-2); }
.inp:focus, .sel:focus, .txt:focus { border-color: var(--ink); background: var(--glass); outline: none; }
/* Рамка меняет цвет, но на светлом фоне её мало: добавляем мягкое солнечное свечение. */
.inp:focus-visible, .sel:focus-visible, .txt:focus-visible { box-shadow: 0 0 0 3px var(--sun-glow); }
.inp::placeholder, .txt::placeholder { color: var(--ink-3); }
.inp[aria-invalid="true"] { border-color: var(--bad); }
.txt { min-height: 96px; resize: vertical; }
.sel {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A919C' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 17px;
  padding-right: 40px; cursor: pointer;
}
.sel option { background: var(--glass); color: var(--ink); }

.radio-row { display: flex; gap: 9px; flex-wrap: wrap; }
.radio-row input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-row label {
  /* Высота равна полю ввода (52px), в паре с .inp[type=time] ряд ровный. */
  display: inline-flex; align-items: center;
  min-height: var(--h-md); padding: 0 17px; border-radius: var(--r-s); cursor: pointer;
  font-size: .9rem; line-height: 1.2; font-weight: 700;
  background: var(--glass); border: 1px solid var(--line-2); color: var(--ink);
  transition: background .18s, border-color .18s, color .18s, transform .12s var(--ease);
}
.radio-row label:hover { border-color: var(--ink); background: var(--bg-2); }
.radio-row label:active { transform: scale(.97); }
.radio-row input:checked + label:hover { background: var(--ink); }
.radio-row input:checked + label { background: var(--ink); border-color: var(--ink); color: #fff; }
.radio-row input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--ink-2); margin-bottom: 15px; cursor: pointer; }
.check input { width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--sun); flex-shrink: 0; }
.check a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

.form-grid { display: grid; gap: 0 15px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.alert {
  padding: 14px 17px; border-radius: var(--r-s); margin-bottom: 18px; font-size: .92rem;
  border: 1px solid; display: flex; gap: 11px; align-items: flex-start;
}
.alert svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 1px; }
.alert--bad  { background: #FEF2F2; border-color: #FBB4B4; color: #991B1B; }
.alert--ok   { background: #ECFDF3; border-color: #A9E2C4; color: #0A7A3C; }
.alert--info { background: #EFF5FF; border-color: #BACDFF; color: #1348C4; }
.alert--sun  { background: #FFFBE8; border-color: #F3D493; color: #7A5B00; }

.note { font-size: .79rem; color: var(--ink-3); line-height: 1.5; }

/* ── Таймер брони ─────────────────────────────────────────────────────────── */
.hold {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px 22px; border-radius: var(--r);
  background: #FFFBE8;
  border: 1px solid #F3D493;
}
.hold__clock {
  font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; color: #7A5B00;
  letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1;
}
.hold__t { font-size: .85rem; color: var(--ink-2); }
.hold.is-over { background: #FEF2F2; border-color: #FBB4B4; }
.hold.is-over .hold__clock { color: var(--bad); }

/* ── Галерея автомобиля ───────────────────────────────────────────────────── */
.gal { display: grid; gap: 11px; }
.gal__main {
  position: relative; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line-2); background: var(--bg-3); aspect-ratio: 16 / 10;
}
.gal__main img { width: 100%; height: 100%; object-fit: cover; }
.gal__thumbs { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.gal__thumb {
  width: 92px; height: 66px; flex-shrink: 0; border-radius: 10px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; background: var(--bg-3); padding: 0;
}
.gal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gal__thumb.on { border-color: var(--sun); }

/* ── Таблицы ──────────────────────────────────────────────────────────────── */
.tbl-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--glass); box-shadow: var(--shadow); }
.tbl { width: 100%; border-collapse: collapse; font-size: .89rem; min-width: 560px; }
.tbl th, .tbl td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { font-size: .82rem; color: var(--ink-3); font-weight: 600; white-space: nowrap; background: var(--glass); }
.tbl tbody tr:hover { background: var(--bg-2); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── Шаги, FAQ, подвал ────────────────────────────────────────────────────── */
.steps { counter-reset: s; display: grid; gap: 14px; }
.step {
  display: flex; gap: 17px; padding: 18px 20px; border-radius: var(--r);
  background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.step::before {
  counter-increment: s; content: counter(s);
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 11px;
  display: grid; place-items: center; font-weight: 800;
  background: var(--sun); color: var(--ink);
}
.step h4 { margin: 2px 0 5px; font-size: 1.02rem; }
.step p { margin: 0; font-size: .9rem; color: var(--ink-2); }

.acc { display: grid; gap: 10px; }
.acc__i { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.acc__q {
  width: 100%; text-align: left; padding: 19px 22px; cursor: pointer;
  background: none; border: 0; font-weight: 700; font-size: 1rem; color: var(--ink);
  display: flex; gap: 14px; align-items: center; justify-content: space-between;
}
.acc__q:hover { color: var(--ink); }
.acc__q::after {
  content: "+"; width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%;
  background: var(--bg-2); color: var(--ink);
  display: grid; place-items: center; font-size: 1.15rem; font-weight: 600; line-height: 1;
  transition: transform .24s, background .18s;
}
.acc__q:hover::after { background: var(--sun); }
.acc__i.open .acc__q::after { content: "−"; background: var(--sun); }
.acc__a { display: none; padding: 0 22px 20px; font-size: .95rem; color: var(--ink-2); line-height: 1.6; }
.acc__i.open .acc__a { display: block; }

.ftr { border-top: 1px solid var(--line); background: var(--bg-2); padding: 52px 0 26px; margin-top: 48px; }
.ftr__grid { display: grid; gap: 30px; grid-template-columns: 1.4fr repeat(3, 1fr); margin-bottom: 34px; }
@media (max-width: 880px) { .ftr__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ftr__grid { grid-template-columns: 1fr; } }
.ftr h5 { font-size: .88rem; color: var(--ink); margin: 0 0 13px; font-weight: 800; }
.ftr a { display: block; padding: 5px 0; font-size: .91rem; color: var(--ink-2); }
.ftr a:hover { color: var(--ink); }
.ftr__bottom {
  border-top: 1px solid var(--line); padding-top: 22px;
  display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap;
  font-size: .81rem; color: var(--ink-3);
}

/* ── Мобильная панель действий ────────────────────────────────────────────── */
.mbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 70; display: none;
  gap: 9px; padding: 11px 14px calc(11px + env(safe-area-inset-bottom));
  background: var(--glass-veil); backdrop-filter: var(--blur);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 22px rgba(20,23,28,.08);
}
.mbar .btn { flex: 1; padding: 0 10px; font-size: .9rem; }
@media (max-width: 760px) {
  .mbar { display: flex; }
  /* Запас под панель включает «чёлку» iPhone, иначе последняя строка страницы прячется под ней. */
  body.has-mbar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* ── Появление при прокрутке ──────────────────────────────────────────────
   Отключено намеренно: содержимое видно сразу, без ожидания скрипта. */
.rv { opacity: 1 !important; transform: none !important; }

/* ── Вспомогательное ──────────────────────────────────────────────────────── */
.stack-s > * + * { margin-top: 9px; }
.stack   > * + * { margin-top: 16px; }
.stack-l > * + * { margin-top: 28px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row--between { justify-content: space-between; }
.hide-m { display: initial; }
@media (max-width: 700px) { .hide-m { display: none; } }
.only-m { display: none; }
@media (max-width: 700px) { .only-m { display: initial; } }

.dl { display: grid; gap: 0; }
.dl__r { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.dl__r:last-child { border-bottom: 0; }
.dl__r dt { color: var(--ink-3); margin: 0; }
.dl__r dd { margin: 0; text-align: right; font-weight: 600; }

.empty { text-align: center; padding: 56px 24px; }
.empty__ic { width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 18px; display: grid; place-items: center; background: var(--bg-2); color: var(--ink-3); }
.empty h3 { margin-bottom: 8px; }
.empty p { color: var(--ink-2); max-width: 44ch; margin: 0 auto 20px; }

.ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: var(--bg-2);
  color: rgba(20, 23, 28, .13);
}
.ph svg { width: 38%; max-width: 110px; height: auto; }

.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 24px; padding-bottom: 1px; }
.tabs a {
  padding: 11px 15px; font-size: .91rem; font-weight: 600; color: var(--ink-3);
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.tabs a:hover { color: var(--ink-2); }
.tabs a.on { color: var(--ink); border-bottom-color: var(--ink); }

.map { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); min-height: 280px; background: var(--bg-3); }
.map iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ═══ Блоки главной страницы ═══════════════════════════════════════════════ */

.crumbs { display: flex; gap: 8px; font-size: .84rem; color: var(--ink-3); margin-bottom: 20px; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }

/* Четыре факта на первом экране */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(142px, 1fr)); gap: 10px; margin-bottom: 26px; }
.fact {
  padding: 18px 20px; border-radius: var(--r);
  background: var(--bg-2); border: 1px solid transparent;
}
.fact b { display: block; font-size: 1.22rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; color: var(--ink); }
.fact span { display: block; font-size: .8rem; color: var(--ink-2); margin-top: 4px; line-height: 1.35; }
.fact--ok b { color: var(--ok); }

.lead.card { position: relative; }

/* Прайс-таблица */
.tbl__cap {
  caption-side: top; text-align: left; padding: 18px 16px 14px;
  font-size: .85rem; font-weight: 800; color: var(--ink);
}
.tbl--price { min-width: 860px; }
.tbl--price td { padding: 13px 14px; }
.tbl__model { font-weight: 700; display: block; }
.tbl__model:hover { text-decoration: underline; }
.mini-y { display: block; font-size: .76rem; color: var(--ink-3); margin-top: 2px; }
.tbl__price { font-size: 1rem; color: var(--ink); }

/* Условия аренды */
.terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 10px; }
.terms__i {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 18px 20px; border-radius: var(--r);
  background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: .92rem; font-weight: 600; color: var(--ink);
}
.terms__i > span:first-child {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: var(--sun); color: var(--ink); display: grid; place-items: center;
}
.terms__i > span:first-child svg { width: 14px; height: 14px; stroke-width: 3; }

/* Калькулятор за неделю */
.week__out { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 10px; }
.week__i {
  padding: 20px 22px; border-radius: var(--r);
  background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.week__i span { display: block; font-size: .85rem; color: var(--ink-3); margin-bottom: 6px; }
.week__i b { font-size: 1.85rem; font-weight: 800; color: var(--ink); letter-spacing: -.035em; }

/* Отзывы */
.rating { display: flex; align-items: center; gap: 9px; font-size: .92rem; flex-wrap: wrap; }
.rating b { font-size: 1.2rem; }
.rating a { color: var(--ink); text-decoration: underline; }
.rating__stars { color: var(--sun-deep); letter-spacing: .08em; }

@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact b { font-size: 1.15rem; }
}

/* ═══ Большое меню услуг в шапке ═══════════════════════════════════════════ */
.nav__drop { position: relative; }
.nav__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 13px; border-radius: 10px; font-size: .93rem; font-weight: 500;
  background: none; border: 0; color: var(--ink); font-weight: 600; cursor: pointer;
  transition: color .18s, background .18s;
}
.nav__btn svg { width: 15px; height: 15px; transition: transform .2s; }
.nav__btn:hover, .nav__btn[aria-expanded="true"] { color: var(--ink); background: var(--bg-2); }
.nav__btn[aria-expanded="true"] svg { transform: rotate(180deg); }

.mega {
  position: absolute; top: calc(100% + 12px); left: -14px; z-index: 80;
  width: min(1120px, calc(100vw - 48px));
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 24px 60px rgba(20, 23, 28, .14);
  animation: megaIn .16s var(--ease);
}
@keyframes megaIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mega__in {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(188px, 1fr));
  gap: 6px 18px; padding: 22px 24px;
}
.mega__col h6 {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .11em;
  color: var(--ink-3); margin: 0 0 9px; font-weight: 800;
}
.mega__col a {
  display: block; padding: 5px 0; font-size: .875rem; color: var(--ink-2); line-height: 1.35;
}
.mega__col a:hover { color: var(--ink); text-decoration: underline; }
.mega__col--cta { border-left: 1px solid var(--line); padding-left: 18px; }
.mega__col--cta a b { color: var(--ink); }

/* Разделы услуг в мобильном меню */
.drawer__grp { border-bottom: 1px solid var(--line); }
.drawer__grp-t {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 13px 14px; background: none; border: 0; cursor: pointer;
  color: var(--ink-2); font-size: .95rem; font-weight: 600; text-align: left;
}
.drawer__grp-t i {
  width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .2s; flex-shrink: 0;
}
.drawer__grp.open .drawer__grp-t { color: var(--ink); }
.drawer__grp.open .drawer__grp-t i { transform: rotate(225deg) translateY(-2px); }
.drawer__grp-b { padding: 0 14px 10px; }
.drawer__grp-b a { border: 0 !important; padding: 7px 0 !important; font-size: .88rem; }

/* Разделы на странице услуг */
.svc-grp { margin-bottom: 30px; }
.svc-grp__t {
  font-size: 1.15rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 800;
}
.svc-grp__t span {
  font-size: .72rem; padding: 2px 8px; border-radius: 999px; letter-spacing: 0;
  background: var(--glass); border: 1px solid var(--line); color: var(--ink-3); font-weight: 700;
}
.svc-grp__t::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Широкий подвал с разделами услуг */
.ftr__grid--wide { grid-template-columns: 1.5fr repeat(6, 1fr); gap: 26px 22px; }
@media (max-width: 1240px) { .ftr__grid--wide { grid-template-columns: 1.4fr repeat(3, 1fr); } }
@media (max-width: 880px)  { .ftr__grid--wide { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px)  { .ftr__grid--wide { grid-template-columns: 1fr; } }


/* ═══ Чередование секций, как в образце ══════════════════════════════════ */
.section--grey { background: var(--bg-2); }
.section--grey + .section--grey { padding-top: 0; }
.hero { background: var(--bg); }

/* Пункты меню не переносятся по словам */
.nav a, .nav__btn { white-space: nowrap; }

/* На узком экране кнопка заявки из шапки убирается: действия есть в нижней панели */
@media (max-width: 560px) {
  .hdr__cta .btn--sun { display: none; }
  .hdr__in { gap: 10px; }
  .logo { font-size: 1.08rem; }
}


/* ═══ Карточки сопутствующих услуг: жёлтая шапка с иконкой ════════════════ */
.svc-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.svc-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s;
}
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.svc-card__top {
  height: 86px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--sun-2), var(--sun));
  color: var(--ink); position: relative; overflow: hidden;
}
.svc-card__top::after {
  content: ""; position: absolute; right: -26px; top: -26px;
  width: 110px; height: 110px; border-radius: 50%; background: rgba(255, 255, 255, .22);
}
.svc-card__top svg { width: 30px; height: 30px; position: relative; z-index: 1; stroke-width: 1.8; }
.svc-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.svc-card__body b { font-size: 1.02rem; font-weight: 800; margin-bottom: 7px; }
.svc-card__d { font-size: .89rem; color: var(--ink-2); line-height: 1.45; }
.svc-card__more { margin-top: 14px; font-size: .87rem; font-weight: 800; display: inline-flex; align-items: center; gap: 7px; }
.svc-card:hover .svc-card__more { text-decoration: underline; }

/* ═══ Отзывы ══════════════════════════════════════════════════════════════ */
.revs { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: stretch; }
.rev { background: var(--bg-3); border-radius: var(--r); padding: 20px 22px; display: flex; flex-direction: column; height: 100%; }
.rev__meta { display: block; }
.rev__stars { color: var(--sun); letter-spacing: .1em; margin: 0 0 10px; font-size: .95rem; }
.rev__text { font-size: .9rem; color: var(--ink-2); line-height: 1.55; margin: 0 0 16px; flex: 1 1 auto; }
.rev__who { display: block; margin: 0; padding-top: 12px; border-top: 1px solid rgba(0,0,0,.07); }
.rev__who b { display: block; font-size: .89rem; font-weight: 800; }
.rev__who span { display: block; margin-top: 3px; font-size: .78rem; color: var(--ink-3); white-space: normal; }

/* ═══ Жёлтая полоса призыва ═══════════════════════════════════════════════ */
.band { background: var(--sun); padding: clamp(36px, 5vw, 60px) 0; }
.band__in { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.band h2 { margin: 0 0 8px; max-width: 18ch; }
.band p { margin: 0; color: rgba(21, 23, 28, .72); font-weight: 600; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2a2f38; transform: translateY(-2px); }
.btn--onsun { background: #fff; color: var(--ink); border-color: rgba(21,23,28,.14); }
.btn--onsun:hover { background: rgba(255,255,255,.75); }

/* ═══ Тёмный подвал, как в образце ════════════════════════════════════════ */
.ftr { background: #1A1D22; border-top: 0; color: #C9CDD4; }
.ftr .note { color: #8F959E; }
.ftr h5 { color: #fff; }
.ftr a { color: #C9CDD4; }
.ftr a:hover { color: #fff; }
.ftr .logo { color: #fff; }
.ftr__bottom { border-top: 1px solid rgba(255, 255, 255, .1); color: #8F959E; }
.ftr .card { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); box-shadow: none; }
.ftr .card p { color: #fff; }
.ftr .btn--line { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); color: #fff; }
.ftr .btn--line:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: #fff; }

/* Мало карточек — растягиваем на всю ширину, как в образце */
[data-cars] { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
/* На главной каждая карточка обёрнута в <div data-tariff> (по нему работает
   фильтр тарифов). Обёртка растягивается по сетке, а сама карточка внутри — нет,
   поэтому в одном ряду карточки были 520 и 490px. Делаем обёртку flex-контейнером.
   :not([hidden]) — чтобы скрытие фильтром по-прежнему работало. */
[data-cars] > div:not([hidden]) { display: flex; }
[data-cars] > div > .car { flex: 1; min-width: 0; }

/* Калькулятор дохода: кнопки-прямоугольники, активная жёлтая */
.week__lbl { font-size: .9rem; font-weight: 700; color: var(--ink); margin: 0 0 11px; }
.week__lbl + .chips { margin-bottom: 24px; }
.chips--sq .chip {
  /* Настоящие квадраты 48×48: раньше высота была 47.6 при минимальной ширине 48. */
  min-width: 48px; min-height: 48px; justify-content: center; text-align: center;
  border-radius: 10px; padding: 0 14px; font-weight: 700; font-size: .95rem;
}
.chips--sq .chip.on { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.week__out { margin-top: 2px; }


/* ═══ Выравнивание и состояния (дизайн-аудит) ═════════════════════════════ */

/* Карточки услуг: строка «длительность + Записаться» прижата к низу карточки.
   Раньше кнопки в одном ряду стояли на разной высоте (разброс до 31px), потому
   что у карточек с короткими описаниями кнопка поднималась вверх. */
.svc-grp .grid > .card { display: flex; flex-direction: column; }
.svc-grp .grid > .card > .row:last-child { margin-top: auto; }

/* Правило «.ftr a» (отступы и display:block для ссылок-списков) перебивало
   .btn: кнопка «Войти по номеру» в подвале теряла центровку иконки, была
   ниже остальных (34.6px) и серый текст лежал на жёлтом фоне. */
.ftr a.btn { display: inline-flex; padding: 0 14px; font-size: .84rem; color: var(--ink); }
.ftr a.btn:hover { color: var(--ink); }
.ftr a.btn--line { color: #fff; }
.ftr a.btn--line:hover { color: #fff; }

/* Страница заканчивается цветной полосой (.band) или серой секцией: белый
   зазор 48px перед тёмным подвалом выглядел как просвет. */
main:has(> .band:last-child) + .ftr,
main:has(> .section--grey:last-child) + .ftr { margin-top: 0; }

/* Ссылки в подвале и тёмные плашки: кольцо фокуса светлое, иначе его не видно. */
.ftr :focus-visible { outline-color: #fff; }
.band .btn--dark:focus-visible { outline-color: var(--ink); }

/* ── Состояния нажатия ──────────────────────────────────────────────────────
   Раньше :active у .btn был один (сдвиг на 1px), а у .btn--sun/.btn--dark его
   перебивал :hover (подъём на 2px, правило объявлено позже и не слабее по
   специфичности), так что нажатие жёлтой кнопки выглядело как наведение.
   Селекторы с :hover:active сильнее и стоят последними. */
.btn:active, .btn:hover:active {
  transform: translateY(1px) scale(.97);
  transition-duration: .06s;
}
.btn--sun:active, .btn--sun:hover:active {
  background: color-mix(in srgb, var(--sun) 86%, #000);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .16);
}
.btn--ghost:active, .btn--line:active, .btn--ghost:hover:active, .btn--line:hover:active {
  background: var(--bg-3); border-color: var(--ink);
}
.btn--dark:active, .btn--dark:hover:active { background: #000; }
.btn--onsun:active, .btn--onsun:hover:active { background: rgba(255, 255, 255, .55); }
.btn--danger:active, .btn--danger:hover:active { background: #FCCACA; }
.ftr .btn--line:active { background: rgba(255, 255, 255, .22); }

/* Остальные кликабельные элементы без состояний */
.logo { transition: opacity .18s, transform .12s var(--ease); }
.logo:hover { opacity: .8; }
.logo:active { transform: scale(.97); }

.hdr__phone { transition: opacity .18s; }
.hdr__phone:hover { text-decoration: underline; text-underline-offset: 3px; }
.hdr__phone:active { opacity: .6; }

.nav a:active, .nav__btn:active { background: var(--bg-3); }

.drawer__panel a:hover { background: var(--bg-2); }
.drawer__panel a:active { background: var(--bg-3); }
.drawer__close { transition: background .18s, border-color .18s, transform .12s var(--ease); }
.drawer__close:hover { background: var(--bg-3); border-color: var(--ink); color: var(--ink); }
.drawer__close:active { transform: scale(.98); }
.drawer__grp-t { transition: color .18s, background .18s; border-radius: 12px; }
.drawer__grp-t:hover { color: var(--ink); background: var(--bg-2); }
.drawer__grp-t:active { background: var(--bg-3); }

.shot__nav { transition: background .18s, transform .12s var(--ease); }
.shot__nav:active { transform: translateY(-50%) scale(.9); }
.shot__dot:hover { background: rgba(255, 255, 255, .7); }
.shot__dot.on:hover { background: var(--sun); }

.gal__thumb { transition: border-color .18s, opacity .18s; }
.gal__thumb:hover { border-color: var(--line-2); }
.gal__thumb.on:hover { border-color: var(--sun); }
.gal__thumb:active { opacity: .75; }

.acc__q { transition: color .18s; }
.acc__q:active::after { background: var(--sun-2); transform: scale(.9); }
.acc__q:focus-visible { outline-offset: -3px; border-radius: var(--r); }

.tabs a { transition: color .18s, border-color .18s; }
.tabs a:hover { border-bottom-color: var(--line-2); }
.tabs a:active { color: var(--ink); }

.car__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.svc-card:active, .card--hover:active { transform: translateY(-1px); }
.car:active { transform: translateY(-2px); }

.crumbs a:active, .ftr a:active { opacity: .7; }
.check:hover { color: var(--ink); }

/* ═══ Слайдер фотографий в карточке автомобиля ════════════════════════════
   Машина держится по центру кадра, сверху и снизу лёгкое затемнение,
   чтобы метки статуса и тарифа читались на любом снимке. */
.shots { position: absolute; inset: 0; overflow: hidden; }
.shots__track { display: flex; height: 100%; transition: transform .6s var(--ease); will-change: transform; }
.shots__i { min-width: 100%; height: 100%; display: block; }
.shots__i img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;   /* кадр держим по центру машины */
  display: block;
}
/* Затемнение сверху и снизу — тонкое, фотографию не портит */
.shots__fade {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    linear-gradient(to bottom, rgba(14, 16, 20, .34) 0%, rgba(14, 16, 20, 0) 26%),
    linear-gradient(to top,    rgba(14, 16, 20, .30) 0%, rgba(14, 16, 20, 0) 24%);
}
.shots__dots {
  position: absolute; left: 0; right: 0; bottom: 10px; z-index: 3;
  display: flex; justify-content: center; gap: 5px;
}
.shots__dot {
  width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .45); box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  transition: width .22s var(--ease), background .22s;
}
.shots__dot:hover { background: rgba(255, 255, 255, .8); }
.shots__dot.on { width: 20px; border-radius: 3px; background: var(--sun); }

/* Стрелки — появляются при наведении на карточку */
.shots__arr {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%) scale(.85);
  width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: var(--ink);
  background: rgba(255, 255, 255, .92); box-shadow: 0 2px 8px rgba(21, 23, 28, .22);
  opacity: 0; transition: opacity .18s, transform .18s var(--ease), background .18s;
}
.shots__arr svg { width: 15px; height: 15px; stroke-width: 2.2; }
.shots__arr--l { left: 8px; }
.shots__arr--r { right: 8px; }
.car:hover .shots__arr, .shots:focus-within .shots__arr { opacity: 1; transform: translateY(-50%) scale(1); }
.shots__arr:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
@media (hover: none) { .shots__arr { display: none; } }

/* Полоска времени до следующего кадра: видно, что лента живая */
.shots__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 3; background: rgba(255, 255, 255, .22); }
.shots__bar i { display: block; height: 100%; width: 0; background: var(--sun); }

/* Активный кадр медленно приближается — лента не выглядит статичной картинкой */
.car:hover .shots__i img { transform: none; }
.shots__i.on img { animation: shotzoom 7s var(--ease) forwards; }
@keyframes shotzoom { from { transform: scale(1); } to { transform: scale(1.07); } }
.car__media .ph { position: relative; z-index: 0; }

@media (prefers-reduced-motion: reduce) {
  .shots__track { transition: none; }
  .shots__i.on img { animation: none; }
  .shots__bar { display: none; }
}

/* Порядок получения машины на первом экране */
.howto__list { counter-reset: hw; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.howto__list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.howto__list li::before {
  counter-increment: hw; content: counter(hw);
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sun); color: var(--ink); font-weight: 800; font-size: .82rem;
}
.howto__list b { grid-column: 2; font-size: .95rem; font-weight: 700; }
.howto__list span { grid-column: 2; font-size: .85rem; color: var(--ink-2); margin-top: 2px; }
.howto__list li { row-gap: 2px; }

/* Кнопки мессенджеров кол-центра: фирменные цвета только на иконке */
.contacts { gap: 8px; }
.ct svg { width: 17px; height: 17px; }
.ct--max svg { color: #6E4BFF; }
.ct--wa  svg { color: #25D366; }
.ct--tg  svg { color: #229ED9; }
.ct:hover { border-color: var(--ink); }

/* ═══ Главные решения на главной: аренда, выкуп, лицензия ══════════════════
   Карточка целиком — ссылка, внизу настоящая кнопка: видно, что тут делают,
   а не «подробнее». */
.svcf-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin-bottom: 20px; }
.svcf {
  display: flex; flex-direction: column; min-width: 0;
  padding: 24px 22px 22px; border-radius: var(--r);
  background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow);
  color: inherit; text-decoration: none;
  transition: transform .22s var(--ease), box-shadow .22s, border-color .22s;
}
.svcf:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.svcf--sun { background: #FFFCEB; border-color: rgba(255, 212, 0, .6); }
.svcf__ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--sun); color: var(--ink); margin-bottom: 14px; flex-shrink: 0;
}
.svcf--sun .svcf__ico { background: #fff; }
.svcf__ico svg { width: 23px; height: 23px; stroke-width: 1.9; }
.svcf__t { font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 7px; }
.svcf__d { font-size: .9rem; color: var(--ink-2); line-height: 1.5; }
.svcf__tag {
  display: inline-flex; align-self: flex-start; margin: 14px 0 18px;
  padding: 5px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2);
}
.svcf--sun .svcf__tag { background: #fff; border-color: rgba(255, 212, 0, .7); color: var(--ink); }
.svcf__tag--ok { background: #E8F8EF; border-color: #A9E2C4; color: #0A7A3C; }
.svcf__btn { margin-top: auto; pointer-events: none; }

/* Остальные услуги — строкой «таблеток» */
.svc-more { display: flex; flex-wrap: wrap; gap: 9px; }
.svc-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 999px; font-size: .87rem; font-weight: 600;
  background: var(--glass); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none;
  transition: border-color .18s, color .18s, transform .18s var(--ease);
}
.svc-chip svg { width: 14px; height: 14px; opacity: .45; transition: transform .18s var(--ease), opacity .18s; }
.svc-chip:hover { color: var(--ink); border-color: var(--ink); transform: translateY(-2px); }
.svc-chip:hover svg { opacity: 1; transform: translateX(2px); }
.svc-chip--all { background: var(--ink); border-color: var(--ink); color: #fff; }
.svc-chip--all svg { opacity: .85; }
.svc-chip--all:hover { color: #fff; }

/* Строка синхронизации: когда последний раз тянули статусы из базы парка */
.sync { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--ink-3); margin: 0; }
.sync__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex-shrink: 0; box-shadow: 0 0 0 0 rgba(14, 159, 88, .45); animation: beat 2.4s infinite; }

/* Номерная плашка поверх фотографии — слева сверху, как на самой машине */
.gal__main { position: relative; }
.plate--on-photo { position: absolute; top: 16px; left: 16px; z-index: 2; box-shadow: 0 3px 10px rgba(21, 23, 28, .35); }
@media (max-width: 640px) { .plate--on-photo { top: 12px; left: 12px; } }
.plate--lg .plate__main { font-size: 1.12rem; padding: 7px 9px 7px 10px; }
.plate--lg .plate__num { font-size: .92rem; }
.plate--lg .plate__rus { font-size: .5rem; }
.plate--lg .plate__flag { width: 10px; height: 6px; }

/* ── Карточка: номер, выкуп, что включено, площадка ──────────────────────── */
.plate--on-card {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  box-shadow: 0 2px 7px rgba(21, 23, 28, .32);
}
.plate--on-card .plate__main { font-size: .72rem; padding: 4px 5px 4px 6px; }
.plate--on-card .plate__num { font-size: .6rem; }
.plate--on-card .plate__rus { font-size: .36rem; }
.plate--on-card .plate__flag { width: 7px; height: 4px; }

.tag {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  padding: 4px 9px; border-radius: 8px; font-size: .72rem; font-weight: 700; white-space: nowrap;
}
.tag svg { width: 13px; height: 13px; }
.tag--buyout { color: #6B4B00; background: #FFF6D6; border: 1px solid rgba(255, 212, 0, .75); }

.car__inc, .car__where {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: .8rem; color: var(--ink-3); line-height: 1.4; margin: 0 0 8px;
}
.car__inc svg, .car__where svg { width: 13px; height: 13px; flex-shrink: 0; margin-top: 2px; opacity: .7; }
.car__where { margin-bottom: 14px; }
.car__when { color: var(--info); font-weight: 700; }
.car__when--ok { color: var(--ok); }

/* Вторая кнопка в карточке — тихая, чтобы не спорить с «Забронировать» */
.btn--plain {
  background: transparent; border: 1px solid transparent; color: var(--ink-3); font-weight: 700;
}
.btn--plain:hover { color: var(--ink); background: var(--bg-2); }
.car__price > .btn + .btn { margin-top: 6px; }

/* ═══ AI-помощник ═════════════════════════════════════════════════════════
   Единственный тёмный остров на светлом сайте: так его видно с любой
   страницы, и он не спорит с жёлтыми кнопками парка. */
.ai { position: fixed; right: 20px; bottom: 20px; z-index: 60; }
@media (max-width: 760px) { .ai { right: 14px; bottom: 14px; } }
/* На телефоне снизу своя панель с кнопками — поднимаемся над ней */
body.has-mbar .ai { bottom: 20px; }
/* Нижняя панель занимает 76px плюс «чёлка» — поднимаем помощника над ней */
@media (max-width: 760px) { body.has-mbar .ai { bottom: calc(86px + env(safe-area-inset-bottom)); } }

.ai__fab {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 8px 16px 8px 8px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12);
  background: #15171C; color: #fff; box-shadow: 0 10px 30px rgba(21, 23, 28, .32);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.ai__fab:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(21, 23, 28, .4); }
.ai__fab-t { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.ai__fab-t b { font-size: .86rem; font-weight: 800; }
.ai__fab-t span { font-size: .72rem; color: rgba(255, 255, 255, .6); display: inline-flex; align-items: center; gap: 5px; }
@media (max-width: 560px) { .ai__fab { padding: 8px; } .ai__fab-t { display: none; } }

.ai__ava {
  position: relative; width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; color: #15171C;
  background: linear-gradient(145deg, var(--ai-lime, #C8F000), #9FD400);
}
.ai__ava svg { width: 24px; height: 24px; stroke-width: 1.7; }
.ai__ava--sm { width: 36px; height: 36px; }
.ai__ava--sm svg { width: 20px; height: 20px; }
.ai__spark {
  position: absolute; right: -4px; bottom: -4px; width: 19px; height: 19px; border-radius: 50%;
  display: grid; place-items: center; background: #15171C; color: var(--ai-lime, #C8F000);
  border: 2px solid #15171C;
}
.ai__spark svg { width: 11px; height: 11px; stroke-width: 1.6; }
.ai__on { width: 7px; height: 7px; border-radius: 50%; background: var(--ai-lime, #C8F000); display: inline-block; }

.ai__panel {
  position: absolute; right: 0; bottom: calc(100% + 12px);
  width: min(380px, calc(100vw - 28px)); max-height: min(620px, calc(100vh - 120px));
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 20px; border: 1px solid rgba(255, 255, 255, .1);
  background: #15171C; color: #fff; box-shadow: 0 24px 60px rgba(21, 23, 28, .45);
}
.ai__panel[hidden] { display: none; }

.ai__head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.ai__who { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.ai__who b { font-size: .95rem; font-weight: 800; }
.ai__who span { font-size: .75rem; color: rgba(255, 255, 255, .55); display: inline-flex; align-items: center; gap: 6px; }
.ai__x {
  margin-left: auto; width: 32px; height: 32px; border-radius: 10px; cursor: pointer;
  border: 0; background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .7); display: grid; place-items: center;
}
.ai__x:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.ai__x svg { width: 15px; height: 15px; }

.ai__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ai__msg {
  max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: .89rem; line-height: 1.5;
  white-space: pre-wrap; word-break: break-word;
}
.ai__msg--bot { align-self: flex-start; background: rgba(255, 255, 255, .07); border-bottom-left-radius: 6px; }
.ai__msg--me { align-self: flex-end; background: var(--ai-lime, #C8F000); color: #15171C; font-weight: 600; border-bottom-right-radius: 6px; }
.ai__msg a { color: var(--ai-lime, #C8F000); }
.ai__msg--me a { color: #15171C; }
.ai__msg--wait { color: rgba(255, 255, 255, .5); font-style: normal; }
.ai__msg--wait i { display: inline-block; width: 5px; height: 5px; margin-right: 3px; border-radius: 50%; background: currentColor; animation: aidot 1.2s infinite; }
.ai__msg--wait i:nth-child(2) { animation-delay: .18s; }
.ai__msg--wait i:nth-child(3) { animation-delay: .36s; }
@keyframes aidot { 0%, 60%, 100% { opacity: .25 } 30% { opacity: 1 } }

/* Оценка ответа — тихая строка под сообщением помощника */
.ai__rate { align-self: flex-start; display: flex; align-items: center; gap: 8px; font-size: .74rem; color: rgba(255, 255, 255, .45); margin: -4px 0 2px 2px; }
.ai__rate button { cursor: pointer; border: 0; background: none; color: inherit; font: inherit; padding: 2px 4px; border-radius: 6px; }
.ai__rate button:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.ai__rate.done { color: var(--ai-lime, #C8F000); }

.ai__quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.ai__chip {
  padding: 7px 11px; border-radius: 999px; cursor: pointer; font-size: .76rem; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, .14); background: transparent; color: rgba(255, 255, 255, .82);
  transition: background .16s, color .16s, border-color .16s;
}
.ai__chip:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.ai__chip--op { border-color: var(--ai-lime, #C8F000); color: var(--ai-lime, #C8F000); }
.ai__chip--op:hover { background: var(--ai-lime, #C8F000); color: #15171C; }

.ai__form { display: flex; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid rgba(255, 255, 255, .08); }
.ai__inp {
  flex: 1; min-width: 0; padding: 11px 14px; border-radius: 12px; font: inherit; font-size: .88rem;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #fff;
}
.ai__inp::placeholder { color: rgba(255, 255, 255, .4); }
.ai__inp:focus { outline: none; border-color: var(--ai-lime, #C8F000); }
.ai__send {
  width: 42px; flex-shrink: 0; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--ai-lime, #C8F000); color: #15171C; display: grid; place-items: center;
}
.ai__send:hover { filter: brightness(1.06); }
.ai__send svg { width: 17px; height: 17px; stroke-width: 2.2; }
.ai__send[disabled] { opacity: .5; cursor: default; }

.ai__op { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.ai__op[hidden] { display: none; }
.ai__op-t { margin: 0; font-size: .82rem; color: rgba(255, 255, 255, .7); }
.ai__op-row { display: flex; gap: 8px; }
.ai__op .btn--plain { color: rgba(255, 255, 255, .6); }
.ai__op .btn--plain:hover { color: #fff; background: rgba(255, 255, 255, .08); }

.ai__foot { margin: 0; padding: 0 16px 14px; font-size: .71rem; line-height: 1.45; color: rgba(255, 255, 255, .4); }
.ai__foot a { color: rgba(255, 255, 255, .65); }

@media (prefers-reduced-motion: reduce) { .ai__fab, .ai__msg--wait i { transition: none; animation: none; } }

/* Оценка звёздами в форме отзыва: нажал — закрасились слева направо */
.stars-pick { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars-pick input { position: absolute; opacity: 0; width: 0; height: 0; }
.stars-pick label {
  font-size: 2rem; line-height: 1; cursor: pointer; color: var(--line-2);
  transition: color .14s, transform .14s var(--ease);
}
.stars-pick label:hover, .stars-pick label:hover ~ label,
.stars-pick input:checked ~ label { color: var(--sun); }
.stars-pick label:hover { transform: scale(1.12); }
.stars-pick input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* ═══ Приведи друга ═══════════════════════════════════════════════════════ */
/* Полоса на главной: заметная, но не кричит — жёлтый уже работает в кнопках */
.ref-band {
  display: flex; align-items: center; gap: 18px; text-decoration: none; color: inherit;
  padding: 22px clamp(18px, 2.6vw, 30px); border-radius: var(--r);
  background: linear-gradient(100deg, #FFFCEB 0%, #FFF6D0 100%);
  border: 1px solid rgba(255, 212, 0, .65);
  transition: transform .22s var(--ease), box-shadow .22s;
}
.ref-band:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ref-band__ic {
  width: 56px; height: 56px; flex-shrink: 0; border-radius: 16px; display: grid; place-items: center;
  background: var(--sun); color: var(--ink);
}
.ref-band__ic svg { width: 28px; height: 28px; stroke-width: 1.8; }
.ref-band__t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ref-band__t b { font-size: clamp(1.05rem, 2.2vw, 1.3rem); font-weight: 800; letter-spacing: -.025em; }
.ref-band__t span { font-size: .9rem; color: var(--ink-2); line-height: 1.45; }
.ref-band__go {
  margin-left: auto; flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
  font-size: .9rem; font-weight: 800; white-space: nowrap;
}
.ref-band__go svg { width: 15px; height: 15px; transition: transform .18s var(--ease); }
.ref-band:hover .ref-band__go svg { transform: translateX(3px); }
@media (max-width: 760px) {
  .ref-band { flex-wrap: wrap; gap: 14px; }
  .ref-band__go { margin-left: 0; width: 100%; }
}

/* Шапка страницы акции */
.ref-hero {
  text-align: center; padding: clamp(28px, 4vw, 46px) clamp(20px, 3vw, 38px);
  border-radius: var(--r); background: linear-gradient(160deg, #FFFCEB 0%, #FFEFA8 100%);
  border: 1px solid rgba(255, 212, 0, .7);
}
.ref-hero__ic {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px; display: grid; place-items: center;
  background: var(--glass); color: var(--ink); box-shadow: var(--shadow);
}
.ref-hero__ic svg { width: 32px; height: 32px; stroke-width: 1.8; }
.ref-hero .eyebrow { justify-content: center; }
.ref-hero h1 { margin: 10px 0 14px; }
.ref-hero h1 b { color: var(--ink); }
.ref-hero__sub { max-width: 46ch; margin: 0 auto 24px; font-size: 1.02rem; color: var(--ink-2); line-height: 1.55; }

/* ═══════════════════════════════════════════════════════════════════════════
   ТЕЛЕФОН: товар выше служебного
   Владелец открыл сайт с телефона и сказал, что «много чего не показывает».
   Технически всё было на месте, но до первой машины в каталоге нужно было
   прокрутить почти два экрана, а помощник выглядел безымянным кружком.
   Ниже только мобильные правила и размеры номерной плашки — сетка десктопа
   и планшета не меняется.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Страница автомобиля: три области ─────────────────────────────────────
   На широком экране слева фотографии и подробности, справа липкая колонка
   с ценой и бронью. На телефоне порядок другой: фото → цена и кнопка →
   характеристики. Раньше вся правая колонка уходила под таблицы, и на
   телефоне до названия машины и кнопки «Забронировать» было ~2000px. */
.car-page {
  display: grid; align-items: start;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  grid-template-areas: "gal side" "main side";
  /* По вертикали — как раньше (22px между галереей и «Характеристиками»),
     по горизонтали — прежний зазор между колонками. */
  row-gap: 22px; column-gap: clamp(22px, 3vw, 40px);
}
.car-page__gal  { grid-area: gal; min-width: 0; }
.car-page__side { grid-area: side; min-width: 0; position: sticky; top: 90px; }
.car-page__main { grid-area: main; min-width: 0; margin-top: 0; }

@media (max-width: 960px) {
  .car-page {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "gal" "side" "main";
    gap: 18px;
  }
  .car-page__side { position: static; }
}

/* ── Госномер: читается с телефона ────────────────────────────────────────
   Плашка на фотографии была набрана тем же мелким кеглем, что и в карточке
   витрины, и на светлом кадре терялась. Номер — то, по чему водитель узнаёт
   свою машину, поэтому он крупнее и с более плотной тенью. */
.plate--on-photo { box-shadow: 0 4px 14px rgba(21, 23, 28, .45); }
.plate--on-photo .plate__main { font-size: 1rem; padding: 6px 8px 6px 9px; }
.plate--on-photo .plate__num  { font-size: .84rem; }
.plate--on-photo .plate__rus  { font-size: .46rem; }
.plate--on-photo .plate__flag { width: 9px; height: 6px; }
@media (max-width: 640px) {
  .plate--on-photo .plate__main { font-size: .94rem; padding: 5px 7px 5px 8px; }
  .plate--on-photo .plate__num  { font-size: .8rem; }
}

@media (max-width: 760px) {
  /* Номер в карточке витрины: было .72rem — с вытянутой руки не прочитать */
  .plate--on-card { top: 9px; left: 9px; box-shadow: 0 2px 9px rgba(21, 23, 28, .42); }
  .plate--on-card .plate__main { font-size: .84rem; padding: 5px 6px 5px 7px; }
  .plate--on-card .plate__num  { font-size: .68rem; }
  .plate--on-card .plate__rus  { font-size: .4rem; }
  .plate--on-card .plate__flag { width: 8px; height: 5px; }
}

/* ── Каталог: машины начинаются сразу ─────────────────────────────────────
   Заголовок в три строки, подзаголовок, строка синхронизации, семь чипсов
   в три ряда и карточка фильтров — и ни одной машины на первом экране. */
.cat-head h1   { margin-bottom: 12px; }
.cat-head .lead { margin-bottom: 18px; }
.cat-head .sync { margin-bottom: 26px; }

@media (max-width: 760px) {
  .section--tight { padding: 20px 0 30px; }
  .cat-head .eyebrow { margin-bottom: 9px; }
  .cat-head h1 { font-size: 1.66rem; margin-bottom: 8px; }
  /* Подзаголовок повторяет то, что и так видно по карточкам */
  .cat-head .lead { display: none; }
  .cat-head .sync { margin-bottom: 14px; font-size: .79rem; }

  /* Чипсы — одна строка с прокруткой, от края до края экрана */
  .chips--scroll {
    flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden;
    margin: 0 -20px 14px; padding: 3px 20px 7px;
    scrollbar-width: none; -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
  }
  .chips--scroll::-webkit-scrollbar { display: none; }
  .chips--scroll .chip { scroll-snap-align: start; }

  /* Свёрнутые фильтры — просто кнопка, без карточки и без нижнего ряда */
  .filters { padding: 0; margin-bottom: 18px; background: none; border: 0; box-shadow: none; }
  .filters.open { padding: 14px; background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow); }
  .filters:not(.open) .filters__foot { display: none; }
  /* Открытые фильтры — в два столбца: восемь полей в один ряд давали 950px */
  .filters__grid { margin-top: 12px; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters__grid .field__label { font-size: .78rem; margin-bottom: 5px; }
  /* Кегль полей не трогаем (16px, иначе iOS зумит страницу при фокусе) —
     место под длинный пункт выигрываем на отступах и стрелке. */
  .filters__grid .sel { padding-left: 12px; padding-right: 32px; background-position: right 10px center; }
  .filters__grid .inp { padding-left: 12px; padding-right: 12px; }
}

/* ── Длинная надпись на кнопке во всю ширину ──────────────────────────────
   «Смотреть свободные автомобили» не влезало в 375px и обрезалось: у .btn
   стоит white-space: nowrap. В нижней панели перенос не нужен — там коротко. */
@media (max-width: 560px) {
  .btn--wide { white-space: normal; padding-left: 14px; padding-right: 14px; line-height: 1.25; }
  .mbar .btn { white-space: nowrap; }
}

/* Галочка согласия: 19px — мелковато для пальца */
@media (max-width: 760px) { .check input { width: 22px; height: 22px; } }

/* ── Помощник на телефоне ─────────────────────────────────────────────────
   Подпись скрывалась на ширине ≤560px, оставался зелёный кружок без слов —
   владелец решил, что помощника на сайте нет. Теперь подпись видна всегда,
   кнопка стала у́же за счёт кегля, а не за счёт смысла. */
@media (max-width: 560px) {
  .ai__fab { padding: 6px 14px 6px 6px; gap: 9px; }
  .ai__fab-t { display: flex; }
  .ai__fab-t b { font-size: .79rem; }
  .ai__fab-t span { font-size: .66rem; }
  .ai__ava--sm { width: 34px; height: 34px; }
  .ai__ava--sm svg { width: 19px; height: 19px; }
  .ai__spark { width: 16px; height: 16px; right: -3px; bottom: -3px; }
  .ai__spark svg { width: 9px; height: 9px; }
}

/* Цельный логотип: машина и название одной картинкой. Горизонтальный замок
   шире квадратного знака, поэтому меряем его по высоте — иначе название
   становится нечитаемым на телефоне. */
.logo__full { height: clamp(44px, 5.4vw, 62px); width: auto; display: block; }
@media (max-width: 560px) { .logo__full { height: 38px; } }

