/* =========================================
   SLAVA RENT — Main Stylesheet
   ========================================= */

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-tertiary: #1a1a1a;
    --accent: #5eead4;
    --accent-hover: #2dd4bf;
    --accent-soft: rgba(94, 234, 212, 0.15);
    --accent-border: rgba(94, 234, 212, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #d4d4d4;
    --text-muted: #a3a3a3;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.15);
    --warning: #f5b341;
    --danger: #ef4444;
    --success: #5eead4;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-pill: 999px;
    --transition: all 0.2s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: clip; /* clip не ломает sticky, в отличие от hidden */
    max-width: 100vw;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== HEADER (округлённая шапка-капсула) ========== */
.header {
    position: sticky;
    top: 16px;
    z-index: 100;
    padding: 0 16px;
    margin-top: 16px;
}

.header__inner {
    max-width: 1280px;
    margin: 0 auto;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 8px 20px 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo img {
    height: 56px;
    width: 56px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--accent-border);
}

.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-size: 16px; font-weight: 600; letter-spacing: 1px; }
.logo__name .accent { color: var(--accent); }
.logo__tagline {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 2px;
}

/* --- Маленькое лого в шапке --- */
.logo--mini img {
    height: 40px;
    width: 40px;
    box-shadow: 0 0 0 2px rgba(94, 234, 212, 0.18), 0 4px 14px rgba(94, 234, 212, 0.18);
    transition: var(--transition);
}

.logo--mini .logo__name { font-size: 15px; letter-spacing: 1.4px; }
.logo--mini .logo__tagline { font-size: 9px; letter-spacing: 1.8px; }
.logo--mini:hover img { transform: scale(1.05); }
.logo--mini:hover .logo__name .accent { text-shadow: 0 0 12px rgba(94, 234, 212, 0.6); }

/* --- Большое лого + слоган под шапкой --- */
.logo-banner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 16px 32px;
    text-align: center;
    overflow: hidden;
}

.logo-banner__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 720px;
    height: 360px;
    transform: translate(-50%, -50%);
    background:
        radial-gradient(ellipse at center, var(--accent-soft) 0%, transparent 60%),
        radial-gradient(circle at 30% 50%, rgba(94, 234, 212, 0.08) 0%, transparent 50%);
    filter: blur(20px);
    pointer-events: none;
    z-index: 0;
}

.logo--hero {
    position: relative;
    z-index: 1;
    flex-direction: column;
    gap: 18px;
    padding: 8px;
}

.logo--hero .logo__ring {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, transparent 60%);
    padding: 2px;
    box-shadow:
        0 0 0 1px var(--accent-border),
        0 0 60px rgba(94, 234, 212, 0.35),
        0 20px 50px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.logo--hero .logo__ring::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px dashed rgba(94, 234, 212, 0.35);
    animation: logoSpin 18s linear infinite;
    pointer-events: none;
}

@keyframes logoSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo--hero .logo__ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
    object-fit: cover;
}

.logo--hero:hover .logo__ring {
    box-shadow:
        0 0 0 1px var(--accent),
        0 0 80px rgba(94, 234, 212, 0.55),
        0 20px 50px rgba(0, 0, 0, 0.5);
}

.logo--hero .logo__text { align-items: center; }

.logo--hero .logo__name {
    font-size: 38px;
    letter-spacing: 4px;
    font-weight: 700;
    background: linear-gradient(180deg, #ffffff 0%, #d4d4d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo--hero .logo__name .accent {
    -webkit-text-fill-color: var(--accent);
    text-shadow: 0 0 24px rgba(94, 234, 212, 0.5);
}

.logo--hero .logo__tagline {
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--accent);
    margin-top: 8px;
}

.logo-banner__slogan {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 28px;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    font-style: italic;
}

.logo-banner__slogan-line {
    display: inline-block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.logo-banner__slogan-text { white-space: nowrap; }
.logo-banner__slogan .accent { color: var(--accent); font-style: normal; font-weight: 600; }

.logo-banner__sub {
    position: relative;
    z-index: 1;
    margin-top: 10px;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.nav { display: flex; gap: 28px; flex: 1; justify-content: center; }

.nav a {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 6px 0;
    white-space: nowrap;
}

.nav a:hover, .nav a.active { color: var(--accent); }

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.header__actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }

.header__phone {
    color: var(--accent);
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
}

.header__switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,0.02);
    font-size: 12px;
    color: var(--text-muted);
    transition: var(--transition);
}

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

.header__switch-icon {
    color: var(--accent);
    display: flex;
    align-items: center;
    margin-right: 2px;
}

.header__switch a {
    padding: 2px 6px;
    border-radius: var(--radius-pill);
    transition: var(--transition);
    color: var(--text-muted);
    font-weight: 500;
}

.header__switch a:hover { color: var(--text-primary); }

.header__switch a.active {
    color: var(--bg-primary);
    background: var(--accent);
}

/* Совместимость со старым классом */
.header__lang { /* теперь это просто .header__switch */ }
.header__lang-icon { color: var(--accent); display: flex; align-items: center; }

.btn-mobile-menu { display: none; }

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.btn--primary { background: var(--accent); color: var(--bg-primary); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn--outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.btn--sm { padding: 8px 16px; font-size: 13px; }
.btn--lg { padding: 14px 28px; font-size: 15px; }
.btn--block { width: 100%; }

/* ========== HERO ========== */
.hero { padding: 64px 0 40px; position: relative; overflow: hidden; }

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 48px;
}

.hero__eyebrow {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 16px;
    font-weight: 500;
}

.hero__title {
    font-size: 52px;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero__title .accent { color: var(--accent); }

.hero__subtitle {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 480px;
}

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

.hero__visual {
    position: relative;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--accent-soft) 0%, transparent 60%);
    opacity: 0.6;
    pointer-events: none;
}

.hero__visual img {
    max-height: 100%;
    z-index: 1;
    position: relative;
    border-radius: 16px;
}

/* ========== SEARCH BOX ========== */
.search-box {
    background: var(--bg-secondary);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr 0.7fr;
    gap: 16px;
    align-items: end;
    margin-bottom: 64px;
}

.search-box__field label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 500;
}

.search-box__field--accent label { color: var(--accent); }

.search-box__field input,
.search-box__field select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-strong);
    color: var(--text-primary);
    font-size: 14px;
    padding: 8px 0;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.search-box__field input:focus,
.search-box__field select:focus { border-bottom-color: var(--accent); }

.search-box__field select {
    cursor: pointer;
    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' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%235eead4' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    padding-right: 20px;
}

.search-box__field option { background: var(--bg-secondary); color: var(--text-primary); }

/* ========== STATS ========== */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 32px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat__value { font-size: 32px; font-weight: 600; color: var(--accent); margin-bottom: 4px; }
.stat__label { font-size: 13px; color: var(--text-muted); }

/* ========== SECTION ========== */
.section { padding: 80px 0; }
.section__head { text-align: center; margin-bottom: 48px; }

.section__eyebrow {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 500;
}

.section__title {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section__subtitle { color: var(--text-muted); font-size: 15px; max-width: 600px; margin: 0 auto; }
.section__head--left { text-align: left; }
.section__head--left .section__subtitle { margin: 0; }

/* ========== CATALOG ========== */
.catalog {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    padding: 48px 0;
}

.filters {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 110px;
}

.filters__title {
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 500;
}

.filter-group { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.filter-group__label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 500;
}

.checkbox-list { display: flex; flex-direction: column; gap: 8px; }

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.checkbox-item:hover { color: var(--text-primary); }

.checkbox-item input {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid var(--border-strong);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: var(--transition);
}

.checkbox-item input:checked { background: var(--accent); border-color: var(--accent); }

.checkbox-item input:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid var(--bg-primary);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.pill-group { display: flex; gap: 6px; flex-wrap: wrap; }

.pill {
    padding: 6px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    background: transparent;
}

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

/* ========== CAR CARDS ========== */
.catalog__results { display: flex; flex-direction: column; gap: 20px; }

.catalog__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.catalog__count { font-size: 14px; color: var(--text-muted); }

.catalog__sort {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.catalog__sort select {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.car-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.car-card:hover { border-color: var(--accent-border); transform: translateY(-2px); }

.car-card__image {
    background: var(--bg-tertiary);
    aspect-ratio: 16 / 10;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.car-card__image img { width: 100%; height: 100%; object-fit: cover; }
.car-card__image-placeholder { width: 80%; height: auto; opacity: 0.5; }

.car-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 10px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.car-card__hot {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: var(--bg-primary);
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    letter-spacing: 1px;
}

.car-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}

.car-card__head { display: flex; justify-content: space-between; align-items: flex-start; }
.car-card__name { font-size: 16px; font-weight: 500; }
.car-card__year { font-size: 12px; color: var(--text-muted); }

.car-card__specs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-muted);
}

.car-card__spec { display: inline-flex; align-items: center; gap: 4px; }
.car-card__spec::after { content: '·'; margin-left: 4px; }
.car-card__spec:last-child::after { display: none; }

.car-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
}

.car-card__price { display: flex; align-items: baseline; gap: 4px; }
.car-card__price-value { font-size: 20px; font-weight: 600; color: var(--accent); }
.car-card__price-unit { font-size: 12px; color: var(--text-muted); }

/* ========== FEATURES ========== */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.feature {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
}

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

.feature__icon {
    width: 44px;
    height: 44px;
    background: var(--accent-soft);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 16px;
}

.feature__title { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.feature__text { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ========== PAGE LAYOUT ========== */
.page-head { padding: 56px 0 32px; border-bottom: 1px solid var(--border); }

.breadcrumbs {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs__separator { color: var(--accent); }

.page-head__title {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.page-head__subtitle { font-size: 15px; color: var(--text-muted); }

/* ========== CAR DETAIL ========== */
.car-detail {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    padding: 48px 0;
}

.car-detail__main { display: flex; flex-direction: column; gap: 24px; }

.car-detail__gallery {
    background: var(--bg-secondary);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-lg);
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.car-detail__gallery svg { width: 70%; }
.car-detail__gallery .car-card__hot { top: 16px; left: 16px; right: auto; }

/* ========== Галерея авто (новая) ========== */
.gallery { display: flex; flex-direction: column; gap: 10px; }

.gallery__main {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-lg);
    aspect-ratio: 16 / 10;
    overflow: hidden;
    user-select: none;
}

.gallery__main .car-card__hot { top: 16px; left: 16px; right: auto; z-index: 3; }

.gallery--empty .gallery__main { display: flex; align-items: center; justify-content: center; }
.gallery--empty .gallery__main svg { width: 70%; }

.gallery__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
    cursor: zoom-in;
}

.gallery__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid var(--accent-border);
    backdrop-filter: blur(10px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.gallery__arrow:hover { background: var(--accent); color: var(--bg-primary); border-color: var(--accent); transform: translateY(-50%) scale(1.06); }
.gallery__arrow--prev { left: 16px; }
.gallery__arrow--next { right: 16px; }
.gallery__arrow svg { width: 24px; height: 24px; }

.gallery__counter {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(10, 10, 10, 0.75);
    border: 1px solid var(--border-strong);
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(8px);
    z-index: 2;
}

.gallery__zoom {
    position: absolute;
    bottom: 14px;
    left: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.7);
    border: 1px solid var(--border-strong);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(8px);
    z-index: 2;
}
.gallery__zoom:hover { background: var(--accent); color: var(--bg-primary); border-color: var(--accent); }

/* Превьюшки */
.gallery__thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
    padding-bottom: 4px;
}
.gallery__thumbs::-webkit-scrollbar { height: 6px; }
.gallery__thumbs::-webkit-scrollbar-track { background: transparent; }
.gallery__thumbs::-webkit-scrollbar-thumb { background: var(--accent-border); border-radius: 3px; }

.gallery__thumb {
    flex: 0 0 auto;
    width: 110px;
    height: 72px;
    padding: 0;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-tertiary);
    transition: var(--transition);
}
.gallery__thumb:hover { border-color: var(--accent-border); transform: translateY(-2px); }
.gallery__thumb.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 6px 18px rgba(94, 234, 212, 0.35);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gallery__fullscreen-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--accent-border);
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    align-self: flex-start;
    margin-top: 4px;
}
.gallery__fullscreen-btn:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

/* ========== Lightbox (полный экран) ========== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    animation: lbFade 0.2s ease;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

@keyframes lbFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lightbox[hidden] { display: none; }

.lightbox__image {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    user-select: none;
}

.lightbox__close,
.lightbox__arrow {
    position: absolute;
    background: rgba(20,20,20,0.7);
    border: 1px solid var(--border-strong);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}
.lightbox__close:hover,
.lightbox__arrow:hover { background: var(--accent); color: var(--bg-primary); border-color: var(--accent); }

.lightbox__close {
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
}

.lightbox__arrow {
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
}
.lightbox__arrow--prev { left: 24px; }
.lightbox__arrow--next { right: 24px; }

.lightbox__counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20,20,20,0.7);
    border: 1px solid var(--border-strong);
    color: #fff;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(8px);
}

@media (max-width: 768px) {
    .gallery__arrow { width: 38px; height: 38px; }
    .gallery__thumb { width: 72px; height: 48px; }
    .lightbox__close { top: 12px; right: 12px; width: 38px; height: 38px; }
    .lightbox__arrow { width: 44px; height: 44px; }
    .lightbox__arrow--prev { left: 8px; }
    .lightbox__arrow--next { right: 8px; }
}

.car-detail__title { font-size: 28px; font-weight: 600; margin-bottom: 4px; }

.car-detail__class-line {
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.car-detail__description {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.spec-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
}

.spec-card__label {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.spec-card__value { font-size: 14px; color: var(--accent); font-weight: 500; }

.feature-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.feature-tag {
    padding: 6px 12px;
    border: 1px solid var(--accent-border);
    color: var(--accent);
    border-radius: 20px;
    font-size: 12px;
}

/* Условия аренды */
.terms-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.terms-block__title { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.terms-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.terms-item { display: flex; gap: 12px; }

.terms-item__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--accent-soft);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.terms-item__label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.terms-item__value { font-size: 14px; color: var(--text-primary); font-weight: 500; }

/* Боковая панель брони */
.booking-card {
    background: var(--bg-secondary);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 110px;
}

.booking-card__price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.booking-card__price-value { font-size: 32px; font-weight: 600; color: var(--accent); }
.booking-card__price-unit { font-size: 14px; color: var(--text-muted); }

.booking-card__form { display: flex; flex-direction: column; gap: 14px; }

.booking-card__form label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.booking-card__form input,
.booking-card__form select,
.booking-card__form textarea {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: var(--transition);
}

.booking-card__form input:focus,
.booking-card__form select:focus,
.booking-card__form textarea:focus { border-color: var(--accent); }

.booking-card__form textarea { resize: vertical; min-height: 60px; }

.booking-card__summary {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-top: 8px;
    font-size: 13px;
}

.booking-card__summary-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    color: var(--text-muted);
}

.booking-card__summary-row.total {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    color: var(--text-primary);
    font-weight: 600;
}

.booking-card__summary-row.total span:last-child {
    color: var(--accent);
    font-size: 18px;
}

.booking-card__note {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ========== Поля даты/времени бронирования ========== */
.booking-dates { display: flex; flex-direction: column; gap: 10px; }
.booking-dates__row {
    display: grid;
    grid-template-columns: 1fr 110px;
    gap: 8px;
}
.booking-dates__field { position: relative; }
.booking-dates__field input,
.booking-dates__field select {
    width: 100%;
    padding: 10px 12px 10px 36px;
    background: var(--bg-primary);
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
}
.booking-dates__field input:focus,
.booking-dates__field select:focus { border-color: var(--accent); outline: none; }
.booking-dates__field--time select {
    padding-right: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%235eead4' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.booking-dates__field--time select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 8px;
}
.booking-dates__field::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 32px;
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    opacity: 0.7;
}
.booking-dates__field--date::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235eead4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
}
.booking-dates__field--time::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235eead4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
}

/* ========== Flatpickr — стилизация под нашу тему ========== */
.flatpickr-calendar {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--accent-border) !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5) !important;
    border-radius: var(--radius-lg) !important;
    color: var(--text-primary) !important;
    font-family: 'Inter', sans-serif !important;
}
.flatpickr-calendar.arrowTop::before { border-bottom-color: var(--accent-border) !important; }
.flatpickr-calendar.arrowTop::after  { border-bottom-color: var(--bg-secondary) !important; }
.flatpickr-months .flatpickr-month,
.flatpickr-current-month input.cur-year {
    color: var(--text-primary) !important;
    fill: var(--text-primary) !important;
}
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month { color: var(--accent) !important; fill: var(--accent) !important; }
.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg { fill: var(--accent-hover) !important; }
.flatpickr-weekdays { background: transparent !important; }
.flatpickr-weekday { color: var(--text-muted) !important; background: transparent !important; }
.flatpickr-day {
    color: var(--text-primary) !important;
    border-radius: 6px !important;
}
.flatpickr-day.today { border-color: var(--accent) !important; }
.flatpickr-day.today:not(.selected) { color: var(--accent) !important; }
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: var(--bg-primary) !important;
    font-weight: 600;
}
.flatpickr-day:hover {
    background: var(--accent-soft) !important;
    border-color: var(--accent-border) !important;
}
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay { color: var(--text-muted) !important; opacity: 0.4; }
.flatpickr-time { border-top: 1px solid var(--border) !important; }
.flatpickr-time input { color: var(--text-primary) !important; background: transparent !important; }
.flatpickr-time .flatpickr-time-separator,
.flatpickr-time .flatpickr-am-pm { color: var(--text-secondary) !important; }
.flatpickr-time input:hover,
.flatpickr-time .flatpickr-am-pm:hover { background: var(--accent-soft) !important; }
.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}
.numInputWrapper:hover { background: var(--accent-soft) !important; }
.numInputWrapper span.arrowUp:after  { border-bottom-color: var(--accent) !important; }
.numInputWrapper span.arrowDown:after { border-top-color: var(--accent) !important; }

/* ========== ALERT ========== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-size: 14px;
    border: 1px solid;
}

.alert--success {
    background: var(--accent-soft);
    border-color: var(--accent-border);
    color: var(--accent);
}

.alert--error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

/* ========== CONTACTS ========== */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
    padding: 48px 0;
}

.contact-info { display: flex; flex-direction: column; gap: 16px; }

.contact-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: var(--transition);
}

.contact-card:hover { border-color: var(--accent-border); }

.contact-card__icon {
    width: 44px;
    height: 44px;
    background: var(--accent-soft);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-card__label {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.contact-card__value { font-size: 16px; font-weight: 500; }
.contact-card__value a:hover { color: var(--accent); }

.contact-form {
    background: var(--bg-secondary);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.contact-form__title { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.contact-form__subtitle { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }

.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }

.form-group textarea { resize: vertical; min-height: 100px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ========== ABOUT ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 48px 0;
}

.about-text p { color: var(--text-secondary); font-size: 15px; line-height: 1.8; margin-bottom: 16px; }
.about-text h3 { font-size: 22px; font-weight: 600; margin: 24px 0 12px; }

.about-visual {
    background: var(--bg-secondary);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-lg);
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.about-visual img { max-width: 80%; max-height: 80%; border-radius: 12px; }

/* ========== TERMS PAGE ========== */
.terms-content { padding: 48px 0; max-width: 900px; }
.terms-section { margin-bottom: 48px; }

.terms-section h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--accent);
}

.terms-section h3 { font-size: 17px; font-weight: 500; margin: 20px 0 8px; }

.terms-section p,
.terms-section li {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 8px;
}

.terms-section ul { list-style: none; padding-left: 0; }
.terms-section li { position: relative; padding-left: 20px; }

.terms-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.terms-highlight {
    background: var(--bg-secondary);
    border-left: 3px solid var(--accent);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin: 20px 0;
}

.terms-highlight strong { color: var(--accent); }

/* ========== FOOTER ========== */
.footer {
    background: #050505;
    padding: 64px 0 24px;
    border-top: 1px solid var(--border);
    margin-top: 80px;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer__about p {
    color: var(--text-muted);
    font-size: 13px;
    margin: 16px 0;
    line-height: 1.6;
}

.footer__title {
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-weight: 500;
}

.footer__list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__list a { color: var(--text-muted); font-size: 13px; }
.footer__list a:hover { color: var(--accent); }

.footer__socials { display: flex; gap: 8px; margin-top: 16px; }

.footer__socials a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

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

.footer__bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 12px;
}

/* ========== МОБИЛЬНОЕ МЕНЮ ========== */
.mobile-overlay[hidden] { display: none !important; }
.mobile-menu[hidden]    { display: none !important; }

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.mobile-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 90vw;
    background: var(--bg-secondary);
    border-left: 1px solid var(--accent-border);
    z-index: 201;
    transform: translateX(105%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}
.mobile-menu__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1.4px;
}
.mobile-menu__brand img {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--accent-border);
}
.mobile-menu__close {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.mobile-menu__close:hover { color: var(--accent); border-color: var(--accent); }

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.mobile-menu__nav a {
    padding: 14px 22px;
    font-size: 16px;
    color: var(--text-primary);
    border-left: 3px solid transparent;
    transition: var(--transition);
}
.mobile-menu__nav a:hover,
.mobile-menu__nav a:active {
    color: var(--accent);
    background: var(--accent-soft);
    border-left-color: var(--accent);
}

.mobile-menu__group {
    padding: 14px 22px;
    border-bottom: 1px solid var(--border);
}
.mobile-menu__group-label {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.mobile-menu__pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.mobile-menu__pills a {
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-strong);
    color: var(--text-secondary);
    font-size: 13px;
    transition: var(--transition);
}
.mobile-menu__pills a.active {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
    font-weight: 500;
}

.mobile-menu__cta {
    padding: 18px 22px;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.mobile-menu__socials {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.mobile-menu__socials a {
    width: 42px; height: 42px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transition: var(--transition);
}
.mobile-menu__socials a:hover { transform: translateY(-2px) scale(1.06); }

/* ========== ПЛАВАЮЩАЯ ПАНЕЛЬ СОЦСЕТЕЙ ========== */
.fab-contacts {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 90;
}

.fab-contacts a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
    position: relative;
}

.fab-contacts a:hover { transform: translateY(-2px) scale(1.06); }

.fab-contacts__whatsapp { background: #25D366; }
.fab-contacts__telegram { background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%); }
.fab-contacts__instagram {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.fab-contacts a::after {
    content: attr(aria-label);
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 15, 15, 0.95);
    color: #fff;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    white-space: nowrap;
    border: 1px solid var(--border-strong);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.fab-contacts a:hover::after { opacity: 1; }

.fab-contacts a svg { width: 22px; height: 22px; }

/* Анимированный «пульс» для WhatsApp */
.fab-contacts__whatsapp::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    animation: fabPulse 2s infinite;
}

@keyframes fabPulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
    70%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) {
    .fab-contacts {
        right: 12px;
        bottom: calc(16px + env(safe-area-inset-bottom));
        gap: 8px;
    }
    .fab-contacts a { width: 46px; height: 46px; }
    .fab-contacts a::after { display: none; }
}

/* Социальные ссылки в футере (цветные на hover) */
.footer__socials a.social--whatsapp:hover  { color: #25D366; border-color: #25D366; }
.footer__socials a.social--telegram:hover  { color: #2AABEE; border-color: #2AABEE; }
.footer__socials a.social--instagram:hover { color: #dc2743; border-color: #dc2743; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .catalog,
    .car-detail,
    .contacts-grid,
    .about-grid { grid-template-columns: 1fr; }
    
    .filters,
    .booking-card { position: static; }
    
    .features { grid-template-columns: repeat(2, 1fr); }
    .footer__inner { grid-template-columns: 1fr 1fr; }
    .terms-list { grid-template-columns: 1fr; }
    .specs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    /* Большая картинка авто в hero-секции — скрываем на планшете и мобильном
       (визуально дублирует круглый лого над hero) */
    .hero__visual { display: none !important; }
    .hero__inner { grid-template-columns: 1fr !important; gap: 24px; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }

    .header { padding: 0 8px; top: 8px; }
    .header__inner { padding: 8px 12px 8px 8px; gap: 8px; }

    .nav,
    .header__phone,
    .header__switch { display: none; }
    
    .logo img { height: 44px; width: 44px; }
    .logo__name { font-size: 14px; }
    .logo__tagline { display: none; }

    .logo--mini img { height: 36px; width: 36px; }
    .logo--mini .logo__name { font-size: 13px; }

    .logo-banner { padding: 36px 16px 20px; }
    .logo--hero .logo__ring { width: 100px; height: 100px; }
    .logo--hero .logo__name { font-size: 26px; letter-spacing: 3px; }
    .logo--hero .logo__tagline { font-size: 10px; letter-spacing: 2px; display: block; }

    .logo-banner__slogan { font-size: 16px; gap: 10px; margin-top: 18px; }
    .logo-banner__slogan-line { width: 28px; }
    .logo-banner__slogan-text { white-space: normal; }
    .logo-banner__sub { font-size: 10px; letter-spacing: 2px; }
    
    .btn-mobile-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: var(--bg-secondary);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        color: var(--text-primary);
    }
    
    .hero { padding: 32px 0 24px; }
    .hero__inner { grid-template-columns: 1fr; gap: 24px; }
    .hero__title { font-size: 36px; }
    /* .hero__visual скрыт правилом выше (max-width: 1024px) */
    
    .search-box { grid-template-columns: 1fr; gap: 12px; }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    
    .section { padding: 48px 0; }
    .section__title { font-size: 28px; }
    .page-head__title { font-size: 28px; }
    
    .features { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    
    .footer__inner { grid-template-columns: 1fr; gap: 32px; }
    .footer__bottom { flex-direction: column; gap: 8px; }

    /* Галерея авто на мобильном */
    .gallery__arrow { width: 38px; height: 38px; }
    .gallery__arrow svg { width: 18px; height: 18px; }
    .gallery__arrow--prev { left: 8px; }
    .gallery__arrow--next { right: 8px; }
    .gallery__counter { bottom: 10px; right: 10px; font-size: 11px; padding: 3px 8px; }
    .gallery__zoom { bottom: 10px; left: 10px; width: 32px; height: 32px; }
    .gallery__thumb { width: 72px; height: 50px; }
    .gallery__fullscreen-btn { width: 100%; justify-content: center; }

    .lightbox__close { top: 12px; right: 12px; width: 38px; height: 38px; }
    .lightbox__arrow { width: 44px; height: 44px; }
    .lightbox__arrow--prev { left: 8px; }
    .lightbox__arrow--next { right: 8px; }
    .lightbox__counter { bottom: 14px; font-size: 11px; padding: 5px 12px; }
}

/* ========== Очень узкие экраны (iPhone SE, маленькие Android) ========== */
@media (max-width: 400px) {
    .container { padding: 0 12px; }

    .logo--mini img { height: 32px; width: 32px; }
    .logo--mini .logo__name { font-size: 12px; letter-spacing: 1.2px; }

    .logo-banner { padding: 28px 14px 16px; }
    .logo--hero .logo__ring { width: 88px; height: 88px; }
    .logo--hero .logo__name { font-size: 22px; letter-spacing: 2px; }
    .logo--hero .logo__tagline { font-size: 9px; letter-spacing: 1.5px; }

    .logo-banner__slogan { font-size: 14px; gap: 8px; margin-top: 14px; }
    .logo-banner__slogan-line { width: 16px; }
    .logo-banner__sub { font-size: 9px; letter-spacing: 1px; }

    .hero__title { font-size: 30px; }
    .hero__subtitle { font-size: 14px; }
    .section__title { font-size: 24px; }
    .page-head__title { font-size: 24px; }

    .car-detail__title { font-size: 22px; }
    .booking-card { padding: 16px; }
    .booking-card__price-value { font-size: 26px; }
}
