/* ==========================================================================
   CarRentalGE — Дизайн-система «тёмный премиум» (2025)
   Тёмный фон #0B0F14, glassmorphism-карточки, бирюзовый (teal) + янтарный
   (amber) акценты, градиентные заголовки, Inter (self-host, см. base.html).
   Самодостаточный CSS: токены в :root, полный layout (header/footer/hero),
   компоненты (карточки, кнопки, формы, отзывы, FAQ, фильтры каталога).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Дизайн-токены (CSS custom properties)
   -------------------------------------------------------------------------- */
:root {
    /* Палитра (тёмная тема) */
    --bg: #0B0F14;
    --bg-alt: #0F141B;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-strong: rgba(255, 255, 255, 0.07);
    --ink: #F1F5F9;
    --ink-2: #CBD5E1;
    --muted: #8B98A9;
    --line: rgba(255, 255, 255, 0.09);
    --accent: #2DD4BF;
    --accent-dark: #14B8A6;
    --accent-soft: rgba(45, 212, 191, 0.12);
    --amber: #F59E0B;
    --amber-soft: rgba(245, 158, 11, 0.14);
    --danger: #F87171;
    --white: #FFFFFF;

    /* Градиенты */
    --grad-text: linear-gradient(100deg, #FFFFFF 20%, #2DD4BF 65%, #F59E0B 110%);
    --grad-hero: radial-gradient(1200px 600px at 20% -10%, rgba(45, 212, 191, 0.18), transparent 60%),
        radial-gradient(900px 500px at 85% 0%, rgba(245, 158, 11, 0.10), transparent 55%),
        linear-gradient(180deg, #0B0F14 0%, #0D1420 100%);
    --grad-btn: linear-gradient(100deg, #14B8A6, #2DD4BF);

    /* Радиусы */
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    /* Тени */
    --shadow: 0 1px 3px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, .45), 0 24px 64px rgba(0, 0, 0, .4);
    --glow-accent: 0 0 0 1px rgba(45, 212, 191, .25), 0 8px 32px rgba(45, 212, 191, .15);

    /* Layout */
    --container: 1200px;
    --header-h: 68px;

    /* Шрифт (Inter подключается в base.html из static/fonts, fallback — системный) */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
        Helvetica, Arial, sans-serif;

    /* Переходы */
    --t-fast: 0.15s ease;
    --t: 0.25s ease;
}

/* --------------------------------------------------------------------------
   2. Reset-минимум + база
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

/* Alpine.js: скрывать элементы с x-cloak до инициализации (анти-мигание) */
[x-cloak] {
    display: none !important;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--t-fast);
}

a:hover {
    color: var(--accent-dark);
}

/* SVG-иконки интерфейса (замена эмодзи): цвет наследуется от color родителя,
   inline-block с вертикальным выравниванием по тексту. */
.icon {
    display: inline-block;
    vertical-align: -0.15em;
    flex-shrink: 0;
}

/* Иконка в строке с текстом (теги, ссылки): выравнивание по центру. */
.tag--icon,
.link--icon {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.link--icon .icon,
.tag--icon .icon {
    vertical-align: middle;
}

h1, h2, h3, h4 {
    color: var(--ink);
    letter-spacing: -0.02em;
}

::selection {
    background: rgba(45, 212, 191, 0.35);
    color: #fff;
}

/* Тонкий тёмный скроллbar (webkit) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}

/* --------------------------------------------------------------------------
   3. Layout-примитивы
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 20px;
}

.section {
    padding: 72px 0;
}

.section--alt {
    background: var(--bg-alt);
}

.section__head {
    max-width: 720px;
    margin-bottom: 40px;
}

.section__head--center {
    margin-inline: auto;
    text-align: center;
}

.section__title {
    font-size: clamp(1.7rem, 3.2vw, 2.5rem);
    font-weight: 800;
    color: var(--ink);
}

.section__subtitle {
    margin-top: 12px;
    color: var(--muted);
    font-size: 1.05rem;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   4. Кнопки
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--t), color var(--t), border-color var(--t),
        transform var(--t-fast), box-shadow var(--t);
}

.btn:active {
    transform: translateY(1px);
}

.btn--primary {
    background: var(--ink);
    color: #0B0F14;
}

.btn--primary:hover {
    background: #FFFFFF;
    color: #0B0F14;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn--accent {
    background: var(--grad-btn);
    color: #06201C;
    font-weight: 700;
}

.btn--accent:hover {
    color: #06201C;
    transform: translateY(-1px);
    box-shadow: var(--glow-accent);
    filter: brightness(1.06);
}

.btn--ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
}

.btn--ghost:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}

.btn--lg {
    padding: 16px 30px;
    font-size: 1.02rem;
}

.btn--block {
    width: 100%;
}

/* --------------------------------------------------------------------------
   5. Шапка
   -------------------------------------------------------------------------- */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 15, 20, 0.78);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--line);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--header-h);
}

.logo {
    display: inline-flex;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
    text-decoration: none;
}

.logo:hover {
    color: var(--ink);
}

/* Бренд-блок: SVG-знак + словесный знак «CaRental».
   Знак слегка приподнимается при ховере — живая, но сдержанная анимация. */
.logo__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo__mark {
    display: block;
    flex: 0 0 auto;
    transition: transform var(--t-fast);
}

a.logo:hover .logo__mark {
    transform: translateY(-1px);
}

.logo__word {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo__brand--footer .logo__word {
    font-size: 1.4rem;
}

.logo__accent {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--accent);
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav__link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-2);
    transition: color var(--t-fast);
}

.nav__link:hover {
    color: var(--accent);
}

.nav__link[aria-current="page"],
.nav__link[aria-current="true"] {
    color: var(--accent);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Селектор города в шапке: форма POST /set-city, select с авто-сабмитом. */
.city-select {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Pin-иконка слева: акцентный цвет, подсказывает что это селектор города. */
.city-select__pin {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    color: var(--accent);
    pointer-events: none;
    z-index: 1;
}
.city-select__pin .icon {
    width: 16px;
    height: 16px;
}

/* Селектор города в шапке: спокойная «таблетка» в общем стиле контролов.
   Акцент — только pin-иконка слева; никаких зелёных обводок и свечений
   вокруг всего поля (раньше выглядело криво и кричаще). */
.city-select__select {
    width: auto;
    min-width: 0;
    padding: 7px 30px 7px 32px;  /* отступ слева под pin */
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
    background-color: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background-position: right 10px center;
    transition: border-color var(--t-fast), background-color var(--t-fast);
}

.city-select__select:hover {
    border-color: var(--accent-dark);
}

.city-select__select:focus-visible {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Бургер */
.header__burger {
    display: none;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.header__burger span {
    position: relative;
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform var(--t), opacity var(--t-fast);
}

.header__burger span::before,
.header__burger span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform var(--t);
}

.header__burger span::before { top: -6px; }
.header__burger span::after { top: 6px; }

/* Мобильное меню (выпадающее, Alpine) */
.mobile-menu {
    display: none;
    border-bottom: 1px solid var(--line);
    background: var(--bg-alt);
    padding: 8px 20px 20px;
}

.mobile-menu__link {
    display: block;
    padding: 12px 4px;
    font-weight: 500;
    color: var(--ink-2);
    border-bottom: 1px solid var(--line);
}

.mobile-menu__link:last-of-type {
    border-bottom: none;
}

.mobile-menu__link:hover {
    color: var(--accent);
}

.mobile-menu__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.mobile-menu .city-select__select {
    width: 100%;
}

/* --------------------------------------------------------------------------
   6. Подвал
   -------------------------------------------------------------------------- */
.footer {
    background: #080B0F;
    border-top: 1px solid var(--line);
    color: #94A3B8;
    padding: 56px 0 32px;
}

.footer a {
    color: #94A3B8;
}

.footer a:hover {
    color: var(--accent);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 40px;
}

.footer__brand {
    max-width: 320px;
}

.footer__brand .logo {
    color: var(--ink);
}

.footer__desc {
    margin-top: 14px;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #7C8B9E;
}

.footer__col h4 {
    margin-bottom: 16px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
}

.footer__link {
    display: block;
    padding: 6px 0;
    font-size: 0.95rem;
}

.footer__contact {
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer__contact a {
    display: block;
}

.contact-info__social {
    margin-top: 6px;
}

.contact-info__social .social-links__item {
    width: 32px;
    height: 32px;
}

/* Соцсети/мессенджеры (футер + мобильное меню) */
.social-links {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

/* Строка «телефон + иконки мессенджеров» */
.footer__contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.social-links--inline {
    margin-top: 0;
}

.social-links--inline .social-links__item {
    width: 32px;
    height: 32px;
}

/* В футере .footer__contact a { display: block } перебивает inline-flex —
   возвращаем flex-центровку иконкам (специфичность выше). */
.footer__contact a.social-links__item,
a.social-links__item {
    display: inline-flex;
}

.social-links__item .icon {
    display: block;
    flex: none;
}

.social-links__caption {
    font-size: 0.85rem;
    color: #7C8B9E;
}

.social-links__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    line-height: 1;
    color: #94A3B8;
    transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}

.social-links__item:hover {
    color: #fff;
    border-color: var(--accent);
    background: rgba(45, 212, 191, 0.08);
}

.social-links__item--wa:hover { color: #25D366; border-color: #25D366; background: rgba(37, 211, 102, 0.08); }
.social-links__item--tg:hover { color: #229ED9; border-color: #229ED9; background: rgba(34, 158, 217, 0.08); }
.social-links__item--ig:hover { color: #E1306C; border-color: #E1306C; background: rgba(225, 48, 108, 0.08); }

/* Телефон и соцссылки в мобильном меню */
.mobile-menu__contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.mobile-menu__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--ink);
    padding: 6px 4px;
}

.mobile-menu__phone:hover {
    color: var(--accent);
}

.social-links--mobile {
    margin-top: 0;
}

.social-links--mobile .social-links__caption {
    color: var(--ink-2);
}

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    color: #7C8B9E;
}

.footer__bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 82vh;
    padding: 96px 0 120px;
    background: var(--grad-hero);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    isolation: isolate;
    overflow: hidden;
}

/* Затемнение/виньетка поверх фоновой картинки (когда hero с фото) */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        180deg,
        rgba(11, 15, 20, 0.25) 0%,
        rgba(11, 15, 20, 0.55) 60%,
        rgba(11, 15, 20, 0.85) 100%
    );
}

/* Фото на фоне hero (если задано inline-стилем) дополнительно гасится
   градиентом выше; здесь — декоративная «сетка» поверх градиентного фона. */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
    pointer-events: none;
}

.hero__inner {
    color: var(--white);
}

.hero__title {
    font-size: clamp(2.4rem, 5.2vw, 4.2rem);
    font-weight: 800;
    max-width: 18ch;
    line-height: 1.06;
    letter-spacing: -0.03em;
}

/* Градиентный акцент в заголовке (оборачивается в .text-gradient или span) */
.hero__title .text-gradient,
.text-gradient {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero__subtitle {
    margin-top: 20px;
    max-width: 54ch;
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    line-height: 1.55;
    color: rgba(241, 245, 249, 0.85);
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.hero .eyebrow {
    color: var(--accent);
}

/* Компактный hero для внутренних страниц (Каталог, Контакты, FAQ, Бронирование) */
.hero--compact {
    min-height: 260px;
    padding: 48px 0 52px;
}

.hero--compact .hero__title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.hero--compact .hero__subtitle {
    margin-top: 10px;
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
}

.hero--compact .breadcrumb {
    margin-bottom: 16px;
}

.hero--compact .breadcrumb a,
.hero--compact .breadcrumb__sep {
    color: rgba(255, 255, 255, 0.7);
}

.hero--compact .breadcrumb a:hover {
    color: var(--accent);
}

.hero--compact .breadcrumb [aria-current="page"] {
    color: var(--white);
}

/* Селектор города в hero: крупные «пилюли» городов (radio → POST). */
.city-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.city-pills__label {
    font-size: 0.85rem;
    color: var(--muted);
    align-self: center;
    margin-right: 4px;
}

.city-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink-2);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: border-color var(--t-fast), background var(--t-fast),
        color var(--t-fast), box-shadow var(--t-fast);
}

.city-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.city-pill[aria-pressed="true"],
.city-pill--active {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent) inset;
}

/* --------------------------------------------------------------------------
   8. Search-bar (карточка поиска / фильтры) — glassmorphism
   -------------------------------------------------------------------------- */
.search-bar {
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 22px;
}

.search-bar__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.search-bar__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-bar__field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
}

/* Панель фильтров каталога: те же стили, что у search-bar, + липкое
   поведение на десктопе (сайдбар) обеспечивает .catalog-layout. */
.filters-panel {
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.filters-panel__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 16px;
}

/* Чипы активных фильтров (снятие одним кликом — ссылка без параметра). */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid rgba(45, 212, 191, 0.35);
    border-radius: var(--radius-pill);
}

.filter-chip:hover {
    color: var(--accent-dark);
    border-color: var(--accent);
}

.filter-chip__x {
    font-weight: 700;
    opacity: 0.7;
}

/* --------------------------------------------------------------------------
   9. Формы
   -------------------------------------------------------------------------- */
.input,
.select,
textarea.input {
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color var(--t-fast), box-shadow var(--t-fast),
        background var(--t-fast);
}

.input::placeholder {
    color: var(--muted);
}

.input:focus,
.select:focus,
textarea.input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface-strong);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238B98A9' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* Опции select в тёмной теме: браузер рендерит нативный список, но цвет
   текста/фона задаём, чтобы не было белого на белом (Windows/Android). */
.select option {
    background: #0F141B;
    color: var(--ink);
}

/* --------------------------------------------------------------------------
   10. Карточка авто — glass
   -------------------------------------------------------------------------- */
.car-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}

.car-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: rgba(45, 212, 191, 0.35);
}

.car-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-alt);
}

/* SVG-заглушка авто без фото: центрированная приглушённая иконка на
   градиентном тёмном фоне — вместо битой картинки или default-car. */
.car-card__noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--muted);
    background: linear-gradient(135deg, var(--bg-alt), var(--surface-strong));
}
.car-card__noimg .icon {
    width: 56px;
    height: 56px;
    opacity: 0.6;
}

/* SVG-аватар отзыва (вместо буквы): тот же градиентный круг, но иконка. */
.review-card__avatar--svg {
    font-size: 0;  /* сброс font-metrics, чтобы иконка центрировалась точно */
}
.review-card__avatar--svg .icon {
    width: 22px;
    height: 22px;
}

/* ===== Блок «Задать вопрос» + «Мои вопросы» (главная, под FAQ) ===== */
.ask-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: start;
}
@media (max-width: 860px) {
    .ask-grid { grid-template-columns: 1fr; gap: 28px; }
}

.ask-form-wrap .section__title { margin-top: 6px; }
.ask-form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ask-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 520px) {
    .ask-form__row { grid-template-columns: 1fr; }
}
.ask-form .btn { align-self: flex-start; }

/* «Мои вопросы»: список вопросов посетителя (виден только ему по cookie). */
.ask-my__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--ink);
}
.ask-my__item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 12px;
}
.ask-my__q {
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}
.ask-my__a {
    font-size: 0.92rem;
    color: var(--ink-2);
    border-top: 1px dashed var(--line);
    padding-top: 10px;
    line-height: 1.55;
}
.ask-my__a-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    color: var(--accent);
    margin-right: 4px;
}
.ask-my__pending {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--amber);
    border-top: 1px dashed var(--line);
    padding-top: 10px;
}
.ask-my__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    padding: 40px 24px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    color: var(--muted);
}
.ask-my__empty .icon { opacity: 0.5; }

.car-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t);
}

.car-card:hover .car-card__media img {
    transform: scale(1.05);
}

.car-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
}

.car-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px;
}

.car-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
}

.car-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--muted);
}

.car-card__meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--muted);
}

.car-card__footer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.car-card__price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.car-card__price .unit {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0;
}

.car-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}

.car-card__arrow {
    display: inline-block;
    transition: transform var(--t);
}

.car-card:hover .car-card__arrow {
    transform: translateX(4px);
}

/* Toolbar сортировки каталога (select с авто-сабмитом, фильтры — hidden). */
.sort-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 20px;
}

.sort-bar__label {
    font-size: 0.9rem;
    color: var(--muted);
}

.sort-bar__select {
    width: auto;
    min-width: 190px;
}

@media (max-width: 640px) {
    .sort-bar {
        justify-content: stretch;
    }
    .sort-bar__select {
        flex: 1;
        min-width: 0;
    }
}

/* --------------------------------------------------------------------------
   11. Бейджи, теги, цены, статистика
   -------------------------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink-2);
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.badge--accent {
    color: #06201C;
    background: var(--accent);
    border-color: var(--accent);
}

.badge--soft {
    color: var(--accent);
    background: var(--accent-soft);
    border-color: transparent;
}

.badge--amber {
    color: var(--amber);
    background: var(--amber-soft);
    border-color: rgba(245, 158, 11, 0.35);
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.82rem;
    color: var(--ink-2);
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.price {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--ink);
}

.price .unit {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--muted);
}

.stat__value {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.stat__label {
    margin-top: 4px;
    font-size: 0.9rem;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   12. Сетки
   -------------------------------------------------------------------------- */
.grid {
    display: grid;
    gap: 24px;
}

.grid--cars {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.grid--features {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid--stats {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.grid--reviews {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* --------------------------------------------------------------------------
   13. Feature (преимущество) — glass
   -------------------------------------------------------------------------- */
.feature {
    padding: 28px 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}

.feature:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    border-color: rgba(45, 212, 191, 0.3);
}

.feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    font-size: 1.4rem;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 50%;
}

.feature__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
}

.feature__text {
    margin-top: 8px;
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   14. Отзывы (testimonial / review) + звёзды
   -------------------------------------------------------------------------- */
.testimonial,
.review-card {
    display: flex;
    flex-direction: column;
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color var(--t), transform var(--t);
}

.review-card:hover {
    border-color: rgba(45, 212, 191, 0.3);
    transform: translateY(-2px);
}

.testimonial__text,
.review-card__text {
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--ink-2);
}

.testimonial__author,
.review-card__footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
}

.testimonial__name,
.review-card__name {
    font-weight: 700;
    color: var(--ink);
}

.testimonial__role,
.review-card__meta {
    font-size: 0.85rem;
    color: var(--muted);
}

/* Аватар-инициал */
.review-card__avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 800;
    color: #06201C;
    background: var(--grad-btn);
    border-radius: 50%;
}

/* Звёздный рейтинг: «заполненность» управляется шириной внутреннего спана
   (inline style из шаблона, % = rating/5*100). */
.stars {
    position: relative;
    display: inline-block;
    font-size: 1rem;
    line-height: 1;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.18);
}

.stars::before {
    content: "★★★★★";
}

.stars__fill {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
    color: var(--amber);
}

.stars__fill::before {
    content: "★★★★★";
}

/* Компактная горизонтальная лента отзывов на мобильных (scroll-snap). */
.reviews-row {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

@media (max-width: 640px) {
    .reviews-row {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 14px;
        padding-bottom: 8px;
        margin-inline: -20px;
        padding-inline: 20px;
        -webkit-overflow-scrolling: touch;
    }

    .reviews-row > * {
        flex: 0 0 82%;
        scroll-snap-align: start;
    }
}

/* Заглушка секции отзывов (когда отзывов ещё нет): карточка-призыв. */
.reviews-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 40px 24px;
    text-align: center;
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
}

.reviews-empty__icon {
    display: inline-flex;
    color: var(--accent);
    opacity: 0.85;
}

.reviews-empty__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
}

.reviews-empty__text {
    margin: 0 0 8px;
    max-width: 460px;
    color: var(--ink-2);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   14b. Плитки городских гайдов (каталог, под выдачей)
   Карточка: картинка-плейсхолдер + градиентный оверлей с иконкой и титлом.
   -------------------------------------------------------------------------- */
.guide-tiles__grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.guide-tile {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    transition: transform var(--t-fast), border-color var(--t-fast);
}

.guide-tile:hover {
    transform: translateY(-2px);
    border-color: var(--accent-dark);
}

.guide-tile__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.guide-tile__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    padding: 16px;
    background: linear-gradient(180deg, rgba(11, 15, 20, 0) 30%, rgba(11, 15, 20, 0.88) 100%);
}

.guide-tile__icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
}

.guide-tile__title {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
}

.guide-tile__cta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}

/* ЧПУ-ссылки фильтров каталога (под селектами): компактные ссылки на
   сегментные URL — индексируемые страницы под каждый параметр. */
.filter-seo-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.filter-seo-link {
    padding: 3px 10px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ink-2);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: color var(--t-fast), border-color var(--t-fast);
}

.filter-seo-link:hover {
    color: var(--accent);
    border-color: var(--accent-dark);
}

.filter-seo-link--active,
.filter-seo-link[aria-current="page"] {
    color: var(--accent);
    border-color: var(--accent-dark);
    background: var(--accent-soft);
}

/* SEO-текст ЧПУ-страницы под выдачей каталога. */
.catalog-seo-text {
    margin-top: 28px;
    padding: 20px 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.catalog-seo-text p {
    margin: 0;
    color: var(--ink-2);
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   15. Breadcrumb
   -------------------------------------------------------------------------- */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--muted);
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb__sep {
    color: var(--line);
}

.breadcrumb [aria-current="page"] {
    color: var(--ink-2);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   16. Переключатель языка (lang-switcher)
   -------------------------------------------------------------------------- */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
}

.lang-switcher a {
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--muted);
    border-radius: var(--radius-pill);
    transition: background var(--t-fast), color var(--t-fast);
}

.lang-switcher a:hover {
    color: var(--ink);
}

.lang-switcher a[aria-current="true"],
.lang-switcher a[aria-current="page"] {
    background: var(--surface-strong);
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}

/* Тёмный вариант переключателя (в hero / тёмных секциях) */
.lang-switcher--inverse {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.16);
}

.lang-switcher--inverse a {
    color: rgba(255, 255, 255, 0.7);
}

.lang-switcher--inverse a:hover {
    color: var(--white);
}

.lang-switcher--inverse a[aria-current="true"],
.lang-switcher--inverse a[aria-current="page"] {
    background: var(--white);
    color: #0B0F14;
}

/* --------------------------------------------------------------------------
   17. Утилиты
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.d-flex { display: flex; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }

/* --------------------------------------------------------------------------
   18. Страница 404 (центрированная карточка)
   -------------------------------------------------------------------------- */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-h));
    padding: 64px 20px;
    background: var(--bg);
}

.error-card {
    max-width: 480px;
    width: 100%;
    padding: 48px 40px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.error-card__code {
    font-size: clamp(3.5rem, 10vw, 6rem);
    font-weight: 800;
    line-height: 1;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.04em;
}

.error-card__title {
    margin-top: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink);
}

.error-card__text {
    margin-top: 10px;
    color: var(--muted);
}

.error-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 28px;
}

/* --------------------------------------------------------------------------
   19. Адаптивность
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer__brand {
        grid-column: 1 / -1;
        max-width: none;
    }
}

@media (max-width: 900px) {
    /* Показываем бургер, прячем десктоп-навигацию */
    .header__burger {
        display: inline-flex;
    }

    .nav {
        display: none;
    }

    .header__actions .btn--hide-mobile {
        display: none;
    }

    /* Селектор города в шапке прячем — он дублируется в мобильном меню */
    .header__actions .city-select {
        display: none;
    }

    /* Мобильное меню разворачивается под шапкой (Alpine x-show) */
    .mobile-menu {
        display: block;
    }

    .search-bar__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 48px 0;
    }

    .hero {
        min-height: 72vh;
        padding: 72px 0 96px;
    }

    .hero--compact {
        min-height: 200px;
        padding: 32px 0 40px;
    }

    .search-bar__grid {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .header__actions {
        gap: 10px;
    }

    .lang-switcher a {
        padding: 4px 8px;
        font-size: 0.72rem;
    }
}

/* --------------------------------------------------------------------------
   20. Reduced motion / print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    .header,
    .footer,
    .hero__cta,
    .mobile-menu {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }
}

/* --------------------------------------------------------------------------
   21. Карточка авто как ссылка + детали (Фаза 3)
   -------------------------------------------------------------------------- */
a.car-card {
    color: inherit;
    text-decoration: none;
}

a.car-card:hover .car-card__title {
    color: var(--accent);
}

/* --- Сетка характеристик в карточке авто --- */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.spec {
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.spec__label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.spec__value {
    margin-top: 2px;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--ink);
}

/* --- Двухколоночный layout карточки авто (главное + sticky-сайдбар) --- */
.car-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
    align-items: start;
}

.car-main {
    min-width: 0;
}

.car-aside {
    position: sticky;
    top: 24px;
}

.price-card {
    padding: 24px;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.price-card__main {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-card__amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.03em;
}

.price-card__unit {
    font-size: 0.9rem;
    color: var(--muted);
}

.price-table {
    width: 100%;
    margin-top: 18px;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.price-table th,
.price-table td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

.price-table th {
    font-weight: 500;
    color: var(--muted);
}

.price-table td {
    font-weight: 600;
    color: var(--ink);
    text-align: right;
}

@media (max-width: 900px) {
    .car-layout {
        grid-template-columns: 1fr;
    }

    .car-aside {
        position: static;
    }
}

/* --- Большое фото в карточке авто (zoom-эффект на ховере) --- */
.car-hero {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-alt);
    border: 1px solid var(--line);
}

.car-hero img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform var(--t);
}

.car-hero:hover img {
    transform: scale(1.03);
}

.car-hero__badge {
    position: absolute;
    top: 16px;
    left: 16px;
}

/* --- Карточка города (на главной) --- */
.city-card {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    color: var(--white);
    text-decoration: none;
    background: var(--bg-alt);
}

.city-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity var(--t), transform var(--t);
}

.city-card:hover img {
    opacity: 0.7;
    transform: scale(1.04);
}

.city-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    background: linear-gradient(
        180deg,
        rgba(11, 15, 20, 0.05) 0%,
        rgba(11, 15, 20, 0.75) 100%
    );
}

.city-card__name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
}

.city-card__hint {
    margin-top: 4px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

/* --- Шаги «Как это работает» --- */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 28px 24px 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    counter-increment: step;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.step::before {
    content: counter(step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 14px;
    font-weight: 700;
    color: #06201C;
    background: var(--grad-btn);
    border-radius: 50%;
}

.step__title {
    font-weight: 700;
    color: var(--ink);
}

.step__text {
    margin-top: 8px;
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
}

/* --- CTA-полоса --- */
.cta-band {
    position: relative;
    padding: 72px 0;
    background:
        radial-gradient(800px 300px at 50% 0%, rgba(45, 212, 191, 0.14), transparent 65%),
        #080B0F;
    border-top: 1px solid var(--line);
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.cta-band__title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--white);
}

.cta-band__text {
    margin: 12px auto 24px;
    max-width: 52ch;
    color: rgba(241, 245, 249, 0.8);
}

/* --- Заголовок секции с ссылкой «Весь каталог» справа --- */
.section__head--row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    max-width: none;
    flex-wrap: wrap;
}

/* ==========================================================================
   22. Информационные страницы (about/contacts/faq/privacy/terms)
   ========================================================================== */

/* Узкий контейнер для текстовых страниц (privacy/terms) — читаемая длина строки */
.container--narrow {
    max-width: 760px;
}

/* Подзаголовок под .section__title */
.section__intro {
    margin: 12px 0 0;
    max-width: 62ch;
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--muted);
}

/* --- Типографика длинных текстов (about/faq/privacy/terms) --- */
.prose {
    margin-top: 28px;
    max-width: 70ch;
}

.prose p {
    margin: 0 0 16px;
    font-size: 1.0rem;
    line-height: 1.75;
    color: var(--ink-2);
}

.prose h2 {
    margin: 36px 0 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ink);
}

.prose h2:first-child {
    margin-top: 0;
}

.prose ul,
.prose ol {
    margin: 0 0 16px;
    padding-left: 22px;
    line-height: 1.75;
    color: var(--ink-2);
}

.prose a {
    color: var(--accent);
    text-decoration: underline;
}

/* --- Карточка статистики (обёртка stat__value/stat__label) --- */
.stat {
    text-align: center;
}

/* --- Контакты: двухколоночный layout --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 40px;
    align-items: start;
}

.contact-info__title {
    margin: 0 0 24px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ink);
}

.contact-info__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.contact-info__item:last-child {
    border-bottom: none;
}

.contact-info__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: var(--accent-soft);
    border-radius: 50%;
}

.contact-info__label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.contact-info__value {
    display: block;
    margin-top: 2px;
    font-size: 1.0rem;
    color: var(--ink);
}

a.contact-info__value:hover {
    color: var(--accent);
}

.contact-form {
    padding: 32px;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* --- Поля формы (используются в ContactForm и далее в бронировании) --- */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.field__label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-2);
}

.field__label .req {
    color: var(--danger);
}

.field__error {
    font-size: 0.82rem;
    color: var(--danger);
}

/* --- Flash-сообщения --- */
.flash {
    margin: 20px 0;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    line-height: 1.5;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    color: var(--ink-2);
}

.flash--success {
    background: rgba(45, 212, 191, 0.10);
    border: 1px solid rgba(45, 212, 191, 0.35);
    color: var(--accent);
}

.flash--error,
.flash--danger {
    background: rgba(248, 113, 113, 0.10);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: var(--danger);
}

/* --- FAQ: аккордеоны --- */
.faq {
    margin-top: 36px;
    max-width: 820px;
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item:first-child {
    border-top: 1px solid var(--line);
}

.faq-item__q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 4px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    color: var(--ink);
    cursor: pointer;
}

.faq-item__q:hover {
    color: var(--accent);
}

.faq-item__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1;
    color: var(--accent);
    transition: transform var(--t-fast);
}

.faq-item__icon--open {
    transform: rotate(45deg);
}

.faq-item__a {
    padding: 0 4px 22px;
    color: var(--ink-2);
    line-height: 1.7;
}

.faq-empty {
    margin-top: 36px;
    padding: 32px;
    text-align: center;
    color: var(--muted);
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}

/* --- Адаптивность информационных страниц --- */
@media (max-width: 760px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-form {
        padding: 24px 20px;
    }
}

/* --------------------------------------------------------------------------
   23. Страница бронирования
   -------------------------------------------------------------------------- */
.booking-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    margin-top: 40px;
    align-items: start;
}

.booking-form {
    padding: 32px;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Сетка формы: 2 колонки, comment/email — на всю ширину. */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

.form-grid__full {
    grid-column: 1 / -1;
}

/* --- Сайдбар --- */
.booking-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 24px;
}

/* Сводка выбранного авто */
.booking-summary {
    padding: 24px;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.booking-summary__title {
    margin: 0 0 16px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.booking-summary__img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    background: var(--bg-alt);
}

.booking-summary__name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}

.booking-summary__price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 12px;
}

.booking-summary__price span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
}

.booking-summary__link {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

.booking-summary__link:hover {
    text-decoration: underline;
}

/* Заглушка, когда авто не выбрано */
.booking-summary--empty {
    text-align: center;
    padding: 32px 24px;
}

.booking-summary__hint {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

/* SVG-заглушка превью (авто не выбрано): приглушённый акцент, крупная иконка
   «авто + вопрос» — визуально подсказывает, что нужно выбрать автомобиль. */
.booking-summary__placeholder {
    text-align: center;
    padding: 8px 4px 4px;
}
.booking-summary__hint--svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    margin-bottom: 16px;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1.5px dashed var(--accent);
    border-radius: 50%;
    opacity: 0.9;
}
.booking-summary__hint--svg .icon {
    width: 56px;
    height: 56px;
}
.booking-summary__selected[hidden],
.booking-summary__placeholder[hidden],
.booking-summary__img[hidden],
.booking-summary__price[hidden] {
    display: none !important;
}

.booking-summary__sub {
    margin: 8px 0 20px;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
}

/* Шаги «что дальше» */
.booking-steps {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.booking-steps__title {
    margin: 0 0 20px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
}

.booking-steps__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.booking-steps__list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.booking-steps__num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #06201C;
    background: var(--grad-btn);
    border-radius: 50%;
}

.booking-steps__list strong {
    display: block;
    font-size: 0.95rem;
    color: var(--ink);
    margin-bottom: 2px;
}

.booking-steps__list p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.4;
}

/* Контактный телефон */
.booking-phone {
    padding: 20px 24px;
    background: var(--accent-soft);
    border: 1px solid rgba(45, 212, 191, 0.25);
    border-radius: var(--radius);
    text-align: center;
}

.booking-phone__label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 4px;
}

.booking-phone__value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
}

/* Адаптивность бронирования */
@media (max-width: 900px) {
    .booking-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .booking-sidebar {
        position: static;
        order: -1;
    }

    .booking-form {
        padding: 24px 20px;
    }
}

@media (max-width: 560px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* --------------------------------------------------------------------------
   24. Каталог: layout с сайдбаром фильтров
   -------------------------------------------------------------------------- */
.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

.catalog-layout__aside {
    position: sticky;
    top: calc(var(--header-h) + 16px);
}

.catalog-layout__aside .search-bar__grid,
.catalog-layout__aside .filters-panel .search-bar__grid {
    grid-template-columns: 1fr;
}

@media (max-width: 900px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .catalog-layout__aside {
        position: static;
    }
}

/* --------------------------------------------------------------------------
   25. Reveal-анимации (появление секций при скролле, IntersectionObserver)
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal--visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
