﻿:root {
    --bg-dark: #0f141a;
    --bg-overlay: rgba(9, 12, 16, 0.65);
    --text: #ffffff;
    --muted: #c7d0dc;
    --accent: #ffffff;
    --card-bg: #ffffff;
    --card-text: #1e2430;
    --shadow: 0 30px 80px rgba(10, 15, 20, 0.45);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Montserrat", system-ui, -apple-system, sans-serif;
    background: #f3f5f8;
    color: #10151b;
}

.boxcars {
    min-height: 100vh;
}

.contacts-page {
    min-height: 0;
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.hero {
    position: relative;
    background:
        linear-gradient(135deg, #2f3b4a, #0d1217 70%);
    color: var(--text);
    overflow: hidden;
    border-bottom-left-radius: 48px;
    border-bottom-right-radius: 48px;
    display: grid;
    align-items: center;
    justify-content: center;
    padding: 90px 0 110px;
    min-height: 72vh;
}

.site-header {
    background: var(--bg-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 700;
    letter-spacing: 1px;
}

.logo a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.logo img {
    height: 28px;
    width: auto;
    display: block;
}

.primary-nav .menu {
    display: flex;
    gap: 18px;
    list-style: none;
    font-size: 14px;
    color: var(--muted);
    align-items: center;
    margin: 0;
    padding: 0;
}

.primary-nav a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    height: 100%;
    line-height: 1;
}

.primary-nav a:hover {
    color: var(--text);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Burger button */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.burger-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.25s ease;
}

/* Mobile menu overlay */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1200;
}

.mobile-menu.is-open {
    display: block;
}

.mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    animation: fadeIn 0.2s ease;
}

.mobile-menu-drawer {
    position: absolute;
    top: 0;
    right: 0;
    width: min(300px, 85%);
    height: 100%;
    background: #0f141a;
    display: flex;
    flex-direction: column;
    padding: 24px 24px 40px;
    gap: 32px;
    animation: slideInRight 0.25s ease;
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}

.mobile-menu-close {
    align-self: flex-end;
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 8px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    flex-shrink: 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    transition: color 0.2s ease;
}

.mobile-nav a:last-child {
    border-bottom: none;
}

.mobile-nav a:hover {
    color: #ffffff;
}

.mobile-menu-contacts {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: auto;
}

.mobile-menu-phone {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.mobile-menu-social {
    display: flex;
    gap: 10px;
}

.header-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-link {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transition: background 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.header-phone {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.link {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
}

.button {
    border: none;
    background: var(--accent);
    color: #0f141a;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(15, 20, 26, 0.25);
}

.button:focus,
.button:active,
.button:visited {
    text-decoration: none;
}

.button.ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-content {
    padding: 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-kicker {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 14px;
}

.hero-content h1 {
    font-size: clamp(36px, 6vw, 56px);
    margin-bottom: 16px;
}

.hero-sub {
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto 28px;
    font-size: 16px;
}

.hero-actions {
    display: inline-flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.help-hero {
    min-height: 72vh;
}

.help-page .hero-sub {
    max-width: 720px;
}

.help-steps {
    padding: 56px 0 84px;
}

.help-steps-head {
    margin-bottom: 26px;
}

.help-steps-head h2 {
    font-size: 30px;
    color: #0f172a;
    margin-bottom: 8px;
}

.help-steps-head p {
    font-size: 14px;
    color: #64748b;
    max-width: 760px;
    line-height: 1.6;
}

.help-steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 980px;
    margin: 0 auto;
}

.help-step-card {
    position: relative;
    display: grid;
    grid-template-columns: 54px 1fr;
    align-items: start;
    column-gap: 16px;
    background: #ffffff;
    border: 1px solid #ebf0fa;
    border-radius: 14px;
    padding: 18px 20px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.help-step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(17, 43, 80, 0.08);
}

.help-step-card:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 46px;
    top: calc(100% + 2px);
    width: 2px;
    height: 12px;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.28), rgba(37, 99, 235, 0.12));
}

.help-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.14);
    color: #2563eb;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 0;
}

.help-step-card p,
.help-step-text {
    margin: 0;
    font-size: 15px;
    color: #364152;
    line-height: 1.5;
}



.brands {
    position: relative;
    margin-top: -60px;
    padding: 80px 0 100px;
}

.brands .container {
    background: var(--card-bg);
    border-radius: 40px;
    padding: 48px 48px 56px;
    box-shadow: var(--shadow);
}

.brands-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.brands-header h2 {
    font-size: 22px;
    color: var(--card-text);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.brand-card {
    background: #f6f7fb;
    border-radius: 18px;
    padding: 20px 16px;
    display: grid;
    place-items: center;
    gap: 12px;
    text-align: center;
    color: var(--card-text);
    box-shadow: inset 0 0 0 1px #eef0f5;
}

.brand-card h3 {
    font-size: 14px;
    font-weight: 600;
}

.brand-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #ffffff;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #334155;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
}

.vehicles {
    padding: 60px 0 100px;
}

.vehicles-hero {
    background: linear-gradient(135deg, #2f3b4a, #0d1217 70%);
    padding-bottom: 40px;
}

.cars-hero {
    position: relative;
    padding: 96px 0 80px;
    color: var(--text);
    border-bottom-left-radius: 48px;
    border-bottom-right-radius: 48px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(12, 16, 22, 0.4), rgba(10, 14, 19, 0.6)),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent 60%),
        linear-gradient(135deg, #2f3b4a, #0d1217 70%);
}

.cars-hero-content {
    max-width: 920px;
    margin: 0;
    display: grid;
    gap: 28px;
    text-align: left;
}

.cars-hero h1 {
    font-size: 44px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.cars-hero .filter-form {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
}

.cars-hero .filter-field label {
    color: #e2e8f0;
}

.cars-hero .filter-field select {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(148, 163, 184, 0.3);
}

.cars-hero .filter-actions {
    justify-content: flex-start;
}

.cars-hero .filter-reset {
    color: #e2e8f0;
}

.vehicles-hero .site-header {
    padding: 24px 0 10px;
}

.primary-nav .menu a.active {
    color: var(--text);
    font-weight: 500;
}

.vehicles-filter {
    background: #1e293b;
    padding: 32px 0;
    margin-top: -1px;
}

.filter-form {
    width: 100%;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    align-items: end;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-field label {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

.filter-field select {
    background: #0f172a;
    border: 1px solid #334155;
    color: #e2e8f0;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.filter-field select:hover {
    border-color: #475569;
}

.filter-field select:focus {
    outline: none;
    border-color: #3b82f6;
}

.filter-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.filter-submit {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ef4444;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.filter-submit:hover {
    background: #dc2626;
}

.filter-submit svg {
    width: 16px;
    height: 16px;
}

.filter-reset {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.filter-reset:hover {
    color: #e2e8f0;
}

.vehicles-page {
    padding-top: 60px;
    margin-top: -20px;
}

.vehicles-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.vehicles-header h2 {
    font-size: 28px;
    color: var(--card-text);
}

.vehicles-sort {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.sort-btn {
    border: 1px solid #e2e8f0;
    background: transparent;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    color: #64748b;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-btn:hover {
    border-color: #cbd5e1;
    color: #475569;
}

.sort-btn.active {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
    font-weight: 500;
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.vehicle-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vehicle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
}

.vehicle-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f8fafc;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.badge-green {
    background: #22c55e;
    color: #ffffff;
}

.badge-blue {
    background: #3b82f6;
    color: #ffffff;
}

.vehicle-fav {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #64748b;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.2s ease;
}

.vehicle-fav:hover {
    background: #ffffff;
    color: #ef4444;
}

.vehicle-info,
.vehicle-details {
    padding: 20px;
}

.vehicle-name {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}

.vehicle-subtitle,
.vehicle-meta {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 12px;
}

.vehicle-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
}

.meta-item svg {
    width: 16px;
    height: 16px;
}

.vehicle-specs {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.spec {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
}

.spec svg {
    width: 16px;
    height: 16px;
}

.vehicle-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vehicle-price {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.vehicle-link {
    font-size: 14px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.vehicle-link:hover {
    color: #2563eb;
}

.vehicles-cta {
    margin-top: 14px;
    display: flex;
    justify-content: center;
}

.vehicles-cta .button.secondary {
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

.vehicles-cta .button.secondary:hover {
    background: #111827;
    transform: translateY(-1px);
}

.cta {
    padding: 60px 0 10px;
}

.page-extra-cta {
    margin-bottom: 32px;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 18px;
}

.cta-card {
    background: #eaf2ff;
    border-radius: 18px;
    padding: 28px 30px;
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    align-items: center;
    gap: 16px;
    min-height: 210px;
}

.cta-card:nth-child(2) {
    background: #fde8f0;
}

.cta-content h3 {
    font-size: 20px;
    color: #0f172a;
    margin-bottom: 10px;
}

.cta-content p {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 16px;
}

.cta-button {
    background: #1e293b;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
}

.cta-button span {
    display: none;
}

.cta-card:nth-child(2) .cta-button {
    background: #111827;
}

.cta-media {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.cta-media img {
    width: 110px;
    height: 110px;
    object-fit: contain;
}

.cta-placeholder {
    width: 110px;
    height: 110px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.6);
}

.usp {
    padding: 70px 0 100px;
}

.usp-header h2 {
    font-size: 26px;
    color: #0f172a;
    margin-bottom: 24px;
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.usp-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px 18px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.usp-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #eef2ff;
    color: #4f46e5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.usp-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}

.usp-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}

.usp-card p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.process {
    padding: 70px 0 90px;
}

.process-content {
    max-width: 680px;
    margin: 0 auto;
}

.process-content h2 {
    font-size: 30px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    line-height: 1.25;
}

.process-subtitle {
    color: #475569;
    font-size: 16px;
    margin-bottom: 28px;
    line-height: 1.5;
}

.process-steps {
    display: grid;
    gap: 20px;
    margin-bottom: 24px;
}

.process-step {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 16px;
    align-items: start;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1d4ed8;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #0f172a;
}

.step-content p {
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
}

.process-footer {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
}

@media (max-width: 600px) {
    .process {
        padding: 48px 0 60px;
    }
    .process-content h2 {
        font-size: 22px;
    }
    .process-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }
    .process-step {
        grid-template-columns: 34px 1fr;
        gap: 12px;
    }
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
    .step-content h3 {
        font-size: 16px;
    }
    .step-content p {
        font-size: 14px;
    }
    .process-footer {
        font-size: 13px;
    }
}

.clients {
    padding: 70px 0 90px;
    background: #f8fafc;
}

.clients-header h2 {
    font-size: 26px;
    color: #0f172a;
    margin-bottom: 24px;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.client-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    text-align: center;
    padding-bottom: 16px;
}

.client-photo img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.client-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #e2e8f0, #f8fafc);
}

.client-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    padding: 14px 12px 0;
}

.clients-empty,
.reviews-empty {
    font-size: 14px;
    color: #64748b;
}

.clients-cta {
    margin-top: 22px;
    display: flex;
    justify-content: center;
}

.reviews-page {
    padding-top: 28px;
}

.reviews-hero {
    padding: 24px 0 18px;
    background: transparent;
}

.reviews-main-title {
    font-size: clamp(32px, 4.5vw, 44px);
    line-height: 1.1;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.reviews-list {
    padding: 12px 0 90px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.review-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    display: grid;
    grid-template-rows: auto 1fr;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.review-photo img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.review-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #e2e8f0, #f8fafc);
}

.review-body {
    padding: 18px;
    display: grid;
    gap: 10px;
    align-content: start;
}

.review-body h3 {
    font-size: 16px;
    color: #0f172a;
    margin-bottom: 4px;
}

.review-body p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}

.reviews-empty-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
}

.reviews-pagination {
    margin-top: 26px;
    display: flex;
    justify-content: center;
}

.reviews-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    color: #334155;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin: 0 4px;
}

.reviews-pagination .page-numbers.current {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.reviews-pagination .page-numbers:hover {
    border-color: #94a3b8;
}

.single-vehicle .vehicles-hero {
    padding-bottom: 20px;
}

body.single-vehicle {
    overflow-x: hidden;
}

.vehicle-info-card-mobile {
    display: none;
}

.vehicle-info-card-desktop {
    display: block;
}

.vehicle-detail {
    padding: 60px 0 100px;
}

.vehicle-detail-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

.vehicle-gallery {
    width: 100%;
    margin-bottom: 30px;
}

.gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 20px;
    overflow: hidden;
    background: #f8fafc;
    margin-bottom: 16px;
}

.gallery-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gallery-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-main .vehicle-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    display: grid;
    place-items: center;
    z-index: 2;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-nav:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.05);
}

.gallery-nav:disabled {
    opacity: 0.45;
    cursor: default;
}

.gallery-nav:disabled:hover {
    transform: translateY(-50%);
}

.gallery-nav.prev {
    left: 16px;
}

.gallery-nav.next {
    right: 16px;
}

.gallery-nav svg {
    width: 24px;
    height: 24px;
    color: #0f172a;
}

.gallery-counter {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    z-index: 2;
}

.gallery-thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.gallery-thumbs::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbs::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.gallery-thumb:hover {
    border-color: #cbd5e1;
}

.gallery-thumb.active {
    border-color: #3b82f6;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-main-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 20px;
    overflow: hidden;
    background: #f8fafc;
    margin-bottom: 30px;
}

.vehicle-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-main-image .vehicle-badge {
    position: absolute;
    top: 20px;
    left: 20px;
}

.vehicle-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.spec-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    border: 1px solid #f1f5f9;
}

.spec-card svg {
    width: 24px;
    height: 24px;
    color: #3b82f6;
    flex-shrink: 0;
}

.spec-info {
    flex: 1;
}

.spec-label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

.spec-value {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}

.vehicle-tech-specs {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    margin-top: 24px;
}

.vehicle-tech-specs h3 {
    font-size: 22px;
    margin-bottom: 24px;
    color: #0f172a;
}

.tech-specs-table {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
}

.tech-spec-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #e2e8f0;
}

.tech-spec-row:last-child {
    border-bottom: none;
}

.tech-spec-label,
.tech-spec-value {
    padding: 16px 20px;
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tech-spec-label {
    color: #0f172a;
    border-right: 1px solid #e2e8f0;
}

.tech-spec-value {
    color: #0f172a;
    font-weight: 500;
}

.vehicle-features {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    margin-top: 24px;
}

.vehicle-features h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #0f172a;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.4;
}

.feature-item::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #eef2ff;
    color: #1d4ed8;
    font-size: 11px;
    flex-shrink: 0;
}

.feature-item.is-hidden {
    display: none;
}

.features-toggle {
    margin-top: 16px;
    border: none;
    background: #0f172a;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.features-toggle:hover {
    background: #111827;
    transform: translateY(-1px);
}

.vehicle-description {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    margin-top: 24px;
}

.vehicle-description h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #0f172a;
}

.description-content {
    color: #475569;
    line-height: 1.7;
}

.vehicle-info-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    position: sticky;
    top: 90px;
}

.vehicle-title {
    font-size: 28px;
    color: #0f172a;
    margin-bottom: 8px;
}

.vehicle-year {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 24px;
}

.vehicle-price-block {
    padding: 20px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 24px;
}

.price-main {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
}

.vehicle-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.vehicle-contact-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    margin-bottom: 12px;
    max-width: 100%;
    box-sizing: border-box;
}

.vehicle-contact-phone {
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.vehicle-contact-telegram {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    display: grid;
    place-items: center;
    color: #2563eb;
    transition: all 0.2s ease;
}

.vehicle-contact-telegram:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.button.primary {
    background: #ef4444;
    color: #ffffff;
    border: none;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.button.primary:hover {
    background: #dc2626;
}

.button.secondary {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.button.secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.button svg {
    width: 20px;
    height: 20px;
}

.vehicle-contact {
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
}

.contact-label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}

.contact-company {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}

.contact-phone {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
}

.contact-phone:hover {
    color: #2563eb;
}

.contact-cta {
    padding: 72px 0 48px;
    background: #ffffff;
    color: #0f172a;
    border-top: 1px solid #e2e8f0;
}

.contact-cta-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    align-items: stretch;
}

.contact-cta-info h3 {
    font-size: 28px;
    margin-bottom: 12px;
    color: #0f172a;
}

.contact-cta-info p {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 18px;
}

.contact-cta-contacts {
    display: grid;
    gap: 14px;
}

.contact-cta-phone {
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
}

.contact-cta-social {
    display: flex;
    gap: 12px;
}

.contact-cta-social .social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    display: grid;
    place-items: center;
    color: #475569;
    transition: all 0.2s ease;
}

.contact-cta-social .social-link:hover {
    border-color: #0f172a;
    color: #0f172a;
}

.contact-cta-form {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 22px;
    display: grid;
    gap: 14px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.contact-cta-form .form-field {
    display: grid;
    gap: 8px;
}

.contact-cta-form label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.contact-cta-form input,
.contact-cta-form textarea {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.contact-cta-form input:focus,
.contact-cta-form textarea:focus {
    outline: none;
    border-color: #0f172a;
}

.order-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.order-modal.is-open {
    display: flex;
}

.order-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.order-modal-dialog {
    position: relative;
    background: #ffffff;
    border-radius: 22px;
    padding: 28px 28px 24px;
    width: min(520px, 92%);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
    z-index: 1;
}

.order-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: none;
    background: transparent;
    font-size: 28px;
    color: #64748b;
    cursor: pointer;
}

.order-modal h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: #0f172a;
}

.order-modal-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
}

.order-modal-success {
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 16px;
}

.order-modal-form {
    display: grid;
    gap: 16px;
}

.order-modal-form .form-field {
    display: grid;
    gap: 8px;
}

.order-modal-form label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.order-modal-form input,
.order-modal-form textarea {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.order-modal-form input:focus,
.order-modal-form textarea:focus {
    outline: none;
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.order-modal-form textarea {
    resize: vertical;
    min-height: 110px;
}

.order-modal-form .button.primary {
    width: 100%;
    border-radius: 12px;
    padding: 14px 18px;
}

.site-footer {
    background: #0f141a;
    color: #e2e8f0;
    padding: 64px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    align-items: start;
}

.footer-logo img {
    height: 30px;
    width: auto;
    display: block;
}

.footer-text {
    color: #94a3b8;
    margin-top: 14px;
    line-height: 1.6;
    font-size: 14px;
    max-width: 320px;
}

.footer-legal {
    margin-top: 14px;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.6;
    display: grid;
    gap: 4px;
    max-width: 360px;
    overflow-wrap: anywhere;
}

.footer-links h4,
.footer-contacts h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    color: #e2e8f0;
}

.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-phone {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-block;
    margin-bottom: 12px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social .social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.3);
    display: grid;
    place-items: center;
    color: #e2e8f0;
    transition: all 0.2s ease;
}

.footer-social .social-link:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.footer-bottom {
    margin-top: 48px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding: 18px 0 24px;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #94a3b8;
    font-size: 13px;
    flex-wrap: wrap;
}

.site-footer {
    background: #0f141a;
    color: #e2e8f0;
    padding: 64px 0 0;
    margin-top: 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    align-items: start;
}

.footer-logo img {
    height: 30px;
    width: auto;
    display: block;
}

.footer-text {
    color: #94a3b8;
    margin-top: 14px;
    line-height: 1.6;
    font-size: 14px;
    max-width: 320px;
}

.footer-links h4,
.footer-contacts h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    color: #e2e8f0;
}

.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-phone {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-block;
    margin-bottom: 12px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social .social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.3);
    display: grid;
    place-items: center;
    color: #e2e8f0;
    transition: all 0.2s ease;
}

.footer-social .social-link:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.footer-bottom {
    margin-top: 48px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding: 18px 0 24px;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #94a3b8;
    font-size: 13px;
    flex-wrap: wrap;
}

@media (max-width: 960px) {
    .hero-content {
        padding: 60px 0 200px;
    }

    .brands .container {
        padding: 36px 28px;
    }

    .vehicles-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .vehicles-sort {
        flex-wrap: wrap;
    }

    .vehicles-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        flex-direction: column;
        width: 100%;
    }

    .filter-submit {
        width: 100%;
        justify-content: center;
    }

    .vehicle-detail-grid {
        grid-template-columns: 1fr;
    }

    .vehicle-detail-right {
        display: none;
    }

    .vehicle-info-card-mobile {
        display: block;
        margin: 18px 0 26px;
        padding: 22px;
    }

    .vehicle-contact-inline {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .vehicle-contact-phone {
        flex: 1 1 100%;
    }

    .vehicle-info-card {
        position: static;
    }

    .vehicle-specs-grid {
        grid-template-columns: 1fr;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
    }

    .gallery-nav.prev {
        left: 8px;
    }

    .gallery-nav.next {
        right: 8px;
    }

    .gallery-thumb {
        width: 80px;
        height: 56px;
    }

    .reviews-hero h1 {
        font-size: 26px;
    }

    .reviews-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .review-photo img,
    .review-placeholder {
        height: 400px;
    }

    .reviews-pagination .page-numbers {
        min-width: 34px;
        height: 34px;
        padding: 0 10px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: row;
    }

    .primary-nav,
    .header-right {
        display: none;
    }

    .burger-btn {
        display: flex;
    }
}

@media (max-width: 640px) {
    .header-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-car {
        bottom: -10px;
    }

    .brands-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .help-steps {
        padding: 36px 0 58px;
    }

    .help-steps-head h2 {
        font-size: 24px;
    }

    .help-step-card {
        grid-template-columns: 46px 1fr;
        column-gap: 12px;
        padding: 16px;
    }

    .help-step-card:not(:last-child)::after {
        left: 38px;
    }

    .reviews-page {
        padding-top: 18px;
    }

    .reviews-hero {
        padding: 20px 0 14px;
    }

    .reviews-main-title {
        font-size: 22px;
    }

    .reviews-list {
        padding-bottom: 64px;
    }

    .review-body {
        padding: 14px;
    }

    .reviews-empty-box {
        padding: 18px;
    }

    .reviews-pagination {
        margin-top: 20px;
        flex-wrap: wrap;
        row-gap: 8px;
    }

    /* Single vehicle: tighter mobile layout */
    .vehicle-detail {
        padding: 40px 0 72px;
    }

    .vehicle-gallery {
        margin-bottom: 18px;
    }

    .gallery-main {
        border-radius: 16px;
        margin-bottom: 12px;
    }

    .gallery-counter {
        padding: 6px 12px;
        font-size: 13px;
        bottom: 12px;
        right: 12px;
    }

    .gallery-nav {
        width: 36px;
        height: 36px;
    }

    .gallery-nav.prev {
        left: 10px;
    }

    .gallery-nav.next {
        right: 10px;
    }

    .gallery-thumbs {
        gap: 8px;
    }

    .gallery-thumb {
        width: 68px;
        height: 48px;
    }

    .vehicle-info-card-mobile {
        padding: 18px;
        border-radius: 16px;
    }

    .vehicle-title {
        font-size: 22px;
    }

    .vehicle-year {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .vehicle-price-block {
        padding: 16px 0;
        margin-bottom: 18px;
    }

    .price-main {
        font-size: 26px;
    }

    .vehicle-specs-grid {
        gap: 12px;
        margin-bottom: 28px;
    }

    .spec-card {
        padding: 16px;
        gap: 12px;
        border-radius: 12px;
    }

    .spec-card svg {
        width: 22px;
        height: 22px;
    }

    .spec-label {
        font-size: 11px;
    }

    .spec-value {
        font-size: 14px;
    }

    .vehicle-tech-specs,
    .vehicle-features,
    .vehicle-description {
        padding: 20px;
        border-radius: 16px;
    }
}