:root {
    --bg: #17191d;
    --panel: #22252b;
    --panel-2: #2c3138;
    --text: #f5f5f5;
    --muted: #bfc3c9;
    --accent: #b80f0a;
    --accent-hi: #d3221c;
    --line: rgba(245, 245, 245, 0.1);
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #14161a 0%, var(--bg) 44rem, #15171b 100%);
    letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.site-header, .section-narrow, .site-footer {
    width: min(1260px, calc(100% - 48px));
    margin: 0 auto;
}

.topbar {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 34px;
}

.brand, .footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 178px;
}
.brand-mark {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: linear-gradient(#22252b, #15171b) padding-box, linear-gradient(145deg, #d8241f, #7c0906) border-box;
    border: 7px solid transparent;
    box-shadow: inset 0 0 0 2px rgba(245, 245, 245, 0.18), 0 10px 26px rgba(184, 15, 10, 0.25);
}
.brand-mark span {
    font-size: 17px;
    font-weight: 900;
    border-top: 2px solid var(--text);
    border-bottom: 2px solid var(--text);
}
.brand-logo {
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
    object-fit: contain;
}
.brand strong, .footer-brand strong { display: block; font-size: 18px; line-height: 1.05; }
.brand small, .phone small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.footer-legal {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.55;
    color: rgba(191, 195, 201, 0.78);
}
.site-footer .footer-policy {
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 1.45;
}
.footer-legal span {
    display: block;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    gap: 28px;
    margin-left: auto;
    color: var(--muted);
    font-size: 14px;
}
.main-nav a,
.main-nav button {
    transition: color 0.18s ease, transform 0.18s ease;
}
.main-nav a:hover,
.main-nav a:focus,
.main-nav button:hover,
.main-nav button:focus {
    color: var(--text);
    transform: translateY(-1px);
}
.header-actions { display: flex; align-items: center; gap: 14px; }
.phone { min-width: 178px; }
.phone strong { font-size: 17px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 28px;
    border: 0;
    border-radius: 5px;
    background: linear-gradient(180deg, var(--accent-hi), var(--accent));
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 16px 34px rgba(184, 15, 10, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn:hover,
.btn:focus {
    color: #fff;
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 20px 42px rgba(184, 15, 10, 0.32);
}
.btn-small { min-height: 40px; padding: 0 22px; font-size: 13px; }
.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(16, 18, 22, 0.62);
    box-shadow: none;
}

.hero-slider {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    border: 1px solid rgba(245, 245, 245, 0.06);
    border-radius: 8px;
    background: #101216;
    box-shadow: var(--shadow);
}
.slider-track, .slide { position: absolute; inset: 0; }
.slide {
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}
.slide.is-active { opacity: 1; pointer-events: auto; }
.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 17, 20, 0.96) 0%, rgba(15, 17, 20, 0.75) 38%, rgba(15, 17, 20, 0.12) 70%, rgba(15, 17, 20, 0.78) 100%);
}
.slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slide-content {
    position: relative;
    z-index: 1;
    width: min(590px, calc(100% - 48px));
    margin-left: 54px;
}
.eyebrow, .section-label {
    display: inline-flex;
    color: #ff403a;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
}
.eyebrow {
    color: var(--text);
    border: 1px solid rgba(245, 245, 245, 0.2);
    border-radius: 100px;
    padding: 6px 11px;
    background: rgba(34, 37, 43, 0.76);
}
h1, h2, h3, p { margin-top: 0; }
h1 {
    margin: 18px 0 22px;
    font-size: clamp(42px, 5.2vw, 74px);
    line-height: 0.98;
}
.slide-content p {
    max-width: 460px;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 30px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.hero-lead-form {
    width: min(510px, 100%);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 18px;
    padding: 10px 10px 9px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(18, 20, 25, 0.82);
    backdrop-filter: blur(10px);
}
.hero-lead-form input,
.lead-popup input,
.lead-popup textarea,
.cta-band input {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(245, 245, 245, 0.1);
    border-radius: 4px;
    background: #15171b;
    color: var(--text);
    padding: 0 15px;
    outline: 0;
}
.hero-lead-form input:focus,
.lead-popup input:focus,
.lead-popup textarea:focus,
.cta-band input:focus {
    border-color: rgba(211, 34, 28, 0.78);
    box-shadow: 0 0 0 3px rgba(211, 34, 28, 0.16);
}
.slider-controls {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 2;
    display: flex;
    gap: 8px;
}
.slider-controls button {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(17, 19, 23, 0.78);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}
.slider-dots {
    position: absolute;
    left: 54px;
    bottom: 30px;
    z-index: 2;
    display: flex;
    gap: 8px;
}
.slider-dots button {
    width: 28px;
    height: 3px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.34);
    cursor: pointer;
}
.slider-dots button.is-active { background: var(--accent-hi); }
.single-slide .slider-controls, .single-slide .slider-dots { display: none; }

.metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 30px;
    background: linear-gradient(180deg, #202329, #1c1f24);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}
.metrics article { padding: 26px 34px; border-right: 1px solid rgba(245, 245, 245, 0.12); }
.metrics article:last-child { border-right: 0; }
.metrics strong { display: block; font-size: 28px; }
.metrics span, .section-head p, .service-card p, .car-body p, .steps p, .consult p, .site-footer p { color: var(--muted); line-height: 1.65; }

.section { padding-top: 70px; }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 24px;
}
.section-head > a { color: var(--text); font-weight: 800; font-size: 14px; }
.section-head span:last-child { color: var(--accent-hi); font-size: 22px; vertical-align: -2px; margin-left: 8px; }
h2 { margin-bottom: 0; font-size: clamp(30px, 3vw, 42px); line-height: 1.05; }

.service-grid, .car-grid, .catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.service-card, .car-card, .catalog-card {
    background: linear-gradient(180deg, #1d2026, #1a1d22);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}
.service-card { min-height: 250px; padding: 34px 30px 26px; }
.line-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    border-radius: 50%;
    border: 2px solid #747b85;
    color: #d2d6df;
    font-size: 38px;
}
.service-card h3, .car-card h3, .catalog-card h3, .steps h3 { margin-bottom: 12px; font-size: 18px; }
.service-card strong, .car-body strong { display: block; font-size: 17px; }

.cta-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 560px;
    gap: 28px;
    align-items: center;
    margin-top: 34px;
    padding: 32px 34px;
    border: 1px solid rgba(245, 245, 245, 0.1);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(211, 34, 28, 0.18), transparent 38%),
        linear-gradient(180deg, #22252b, #181b20);
    box-shadow: var(--shadow);
}
.cta-band h2 {
    max-width: 720px;
    margin: 8px 0 10px;
    font-size: clamp(28px, 2.8vw, 40px);
}
.cta-band p {
    max-width: 620px;
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.65;
}
.cta-band form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.cta-band .btn {
    grid-column: 1 / -1;
}

.inventory-photo {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #111318;
    overflow: hidden;
}
.inventory-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.2s ease;
}
.inventory-card:hover .inventory-photo img, .catalog-card:hover .inventory-photo img { transform: scale(1.035); }
.inventory-photo span {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 9px;
    border-radius: 4px;
    background: rgba(17, 19, 23, 0.82);
    font-size: 12px;
    font-weight: 800;
}
.car-badge,
.legend-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}
.car-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}
.car-badge.good,
.legend-badge.good { background: #2f963d; }
.car-badge.warn,
.legend-badge.warn { background: #e9782b; }
.car-body { padding: 18px 18px 20px; }
.car-location {
    margin-bottom: 10px;
    color: #cbd5e1;
}
.car-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    margin: 10px 0 14px;
}
.car-specs span {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    color: #d6dce6;
    font-size: 14px;
    line-height: 1.25;
}
.car-specs span::before {
    content: "";
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    margin-right: 7px;
    background-color: #aeb6c2;
    -webkit-mask: var(--spec-icon) center / contain no-repeat;
    mask: var(--spec-icon) center / contain no-repeat;
}
.spec-engine { --spec-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10h3l2-3h6l2 3h3v7h-3l-2 2H8l-2-2H3z'/%3E%3Cpath d='M8 7V5M14 7V5M19 12h2M3 14H1'/%3E%3C/svg%3E"); }
.spec-power { --spec-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E"); }
.spec-mileage { --spec-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14a8 8 0 1 1 16 0'/%3E%3Cpath d='M12 14l4-4'/%3E%3Cpath d='M4 18h16'/%3E%3C/svg%3E"); }
.spec-fuel { --spec-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 21V4a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v17'/%3E%3Cpath d='M5 10h11M16 7h2l2 2v7a2 2 0 0 1-4 0v-4h4'/%3E%3Cpath d='M4 21h13'/%3E%3C/svg%3E"); }
.source-price {
    margin-top: 10px;
    color: #dbe7ff;
}
.car-body strong {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 4px;
    background: var(--panel-2);
    font-size: 13px;
}

.home-brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.home-brand-card {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: linear-gradient(180deg, #202329, #191c21);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.home-brand-card:hover {
    border-color: rgba(211, 34, 28, 0.62);
    background: linear-gradient(180deg, #272b33, #202329);
    color: #fff;
    transform: translateY(-1px);
}

.home-brand-card span {
    min-width: 0;
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    overflow-wrap: anywhere;
}
.home-brands-mobile-link {
    display: none;
}

.steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 26px;
    position: relative;
    margin-top: 26px;
}
.steps::before {
    content: "";
    position: absolute;
    left: 42px;
    right: 42px;
    top: 18px;
    height: 1px;
    background: rgba(245, 245, 245, 0.18);
}
.steps article { position: relative; padding-right: 18px; }
.steps article span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
    border-radius: 50%;
    background: var(--accent);
    font-size: 12px;
    font-weight: 800;
}

.team-section .section-head {
    max-width: 820px;
}

.team-section .section-head p {
    max-width: 660px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}

.team-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.team-photo-card {
    position: relative;
    min-height: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #111318;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.team-photo-grid-single {
    grid-template-columns: 1fr;
}

.team-photo-grid-single .team-photo-card {
    aspect-ratio: 16 / 7;
    min-height: clamp(360px, 38vw, 520px);
    box-shadow: var(--shadow);
}

.team-photo-card img {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    inset: 0;
    object-fit: cover;
    object-position: center top;
}

.team-photo-grid-single .team-photo-card img {
    object-position: center center;
}

.team-photo-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 19, 24, 0) 62%, rgba(17, 19, 24, 0.22) 100%);
}

.team-photo-grid-single .team-photo-card::after {
    background: linear-gradient(180deg, rgba(17, 19, 24, 0.08) 28%, rgba(17, 19, 24, 0.84) 100%);
}

.team-photo-copy {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 24px;
    z-index: 1;
    max-width: 620px;
}

.team-photo-copy h3 {
    margin: 0 0 8px;
    font-size: clamp(24px, 2.7vw, 38px);
    line-height: 1.05;
}

.team-photo-copy p {
    margin: 0;
    color: #d8dde5;
    font-size: 17px;
    line-height: 1.6;
}

@media (max-width: 1120px) {
    .team-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-photo-grid-single {
        grid-template-columns: 1fr;
    }
}

.reviews-widget-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 560px);
    align-items: center;
    gap: 34px;
}

.reviews-widget-copy {
    max-width: 560px;
}

.reviews-widget-copy h2 {
    margin: 12px 0 18px;
}

.reviews-widget-copy p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.reviews-widget-card {
    position: relative;
    height: min(800px, 72vh);
    min-height: 560px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.reviews-widget-card iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.portfolio-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #202329, #1a1d22);
}
.portfolio-cta strong,
.portfolio-cta span {
    display: block;
}
.portfolio-cta strong {
    margin-bottom: 5px;
    font-size: 18px;
}
.portfolio-cta span {
    color: var(--muted);
}

.consult {
    display: grid;
    grid-template-columns: 1fr 610px;
    align-items: center;
    gap: 28px;
    margin-top: 74px;
    padding: 30px 34px;
    background: linear-gradient(180deg, var(--panel), #1c1f24);
    border: 1px solid var(--line);
    border-radius: 8px;
}
.consult h2 { font-size: 28px; margin-bottom: 8px; }
.consult form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.consult input {
    min-height: 46px;
    border: 1px solid rgba(245, 245, 245, 0.07);
    border-radius: 4px;
    background: #15171b;
    color: var(--text);
    padding: 0 17px;
}
.consult form small { grid-column: 1 / -1; color: #8f959e; }
.privacy-consent {
    grid-column: 1 / -1;
    display: block;
    color: #9aa1aa;
    font-size: 12px;
    line-height: 1.45;
    max-width: 720px;
}
.privacy-consent a {
    color: #fff;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: rgba(211, 34, 28, 0.6);
    text-underline-offset: 3px;
}
.hero-lead-form .privacy-consent {
    max-width: 470px;
    margin-top: 0;
    color: #aeb4bd;
    font-size: 11px;
    line-height: 1.35;
}
.cta-band .privacy-consent {
    grid-column: 1 / -1;
    max-width: none;
    margin-top: 2px;
}

.lead-popup {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.lead-popup.open {
    display: flex;
}
.lead-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 9, 11, 0.72);
    backdrop-filter: blur(6px);
}
.lead-popup-panel {
    position: relative;
    width: min(520px, 100%);
    padding: 34px;
    border: 1px solid rgba(245, 245, 245, 0.14);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(211, 34, 28, 0.18), transparent 34%),
        linear-gradient(180deg, #23262c, #171a1f);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
}
.lead-popup-panel h2 {
    margin: 10px 0 12px;
    font-size: 30px;
}
.lead-popup-panel p {
    color: var(--muted);
    line-height: 1.65;
}
.lead-popup-panel form {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}
.lead-popup-submit {
    width: 100%;
}
.lead-popup-actions {
    display: grid;
    gap: 8px;
}
.lead-popup-action {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(245, 245, 245, 0.14);
    border-radius: 5px;
    background: #15171b;
    color: var(--text);
    font-weight: 800;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.lead-popup-action span {
    min-width: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}
.telegram-icon svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: currentColor;
}
.lead-popup-action-max {
    border-color: rgba(211, 34, 28, 0.36);
    background: linear-gradient(180deg, #343840, #24282f);
}
.lead-popup-action-telegram {
    border-color: rgba(245, 245, 245, 0.2);
    background: linear-gradient(180deg, #23262c, #181b20);
}
.lead-popup-action-call {
    color: #ff5a55;
}
.lead-popup-action:hover,
.lead-popup-action:focus {
    color: #fff;
    border-color: rgba(211, 34, 28, 0.7);
    background: linear-gradient(180deg, var(--accent-hi), var(--accent));
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(184, 15, 10, 0.24);
}
.lead-popup textarea {
    min-height: 92px;
    padding-top: 13px;
    resize: vertical;
}
.lead-popup small {
    color: #8f959e;
}
.lead-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(17, 19, 23, 0.82);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.catalog-page { padding-top: 52px; }
.catalog-head { align-items: center; }
.counter {
    min-width: 180px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}
.counter strong { display: block; font-size: 32px; }
.counter span { color: var(--muted); }
.catalog-filter {
    margin: 0 0 30px;
}
.catalog-sort {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 16px;
    margin: -6px 0 16px;
}
.sort-help {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    border: 0;
    border-radius: 4px;
    background: #121419;
    color: #fff;
    font-weight: 800;
}
.sort-help::first-letter {
    color: #111;
}
.sort-help > span {
    font-weight: 700;
}
.sort-menu {
    position: relative;
    z-index: 12;
}
.sort-toggle {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}
.sort-toggle span {
    font-size: 26px;
    line-height: 1;
}
.sort-toggle em {
    max-width: 190px;
    font-style: normal;
    text-align: left;
}
.sort-options {
    display: none;
    width: 260px;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    padding: 8px 0;
    border-radius: 10px;
    background: #f4f4f4;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}
.sort-menu.open .sort-options {
    display: block;
}
.sort-options button {
    width: 100%;
    min-height: 34px;
    padding: 8px 14px;
    border: 0;
    background: transparent;
    color: #333;
    text-align: left;
    cursor: pointer;
}
.sort-options button:hover,
.sort-options button.active {
    background: #e8e8e8;
}
.legend-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    padding: 44px 16px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.64);
}
.legend-modal.open { display: block; }
.legend-dialog {
    width: min(1180px, 100%);
    position: relative;
    margin: 0 auto;
    padding: 42px 40px 40px;
    border-radius: 8px;
    background: #fff;
    color: #222;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}
.legend-dialog h2 {
    margin: 0 0 28px;
    color: #222;
    font-size: 42px;
    line-height: 1.1;
}
.legend-dialog p {
    margin: 0 0 18px;
    color: #707070;
    font-size: 20px;
    line-height: 1.42;
}
.legend-close {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    position: absolute;
    top: 20px;
    right: 20px;
    border: 0;
    background: #222;
    color: #fff;
    cursor: pointer;
    line-height: 1;
}
.legend-note {
    margin-top: 26px;
    padding: 20px 26px;
    border-radius: 8px;
    background: #f1f1f1;
}
.legend-note p {
    margin: 0;
    color: #222;
}
.filter-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 7px;
    background: #15171b;
}
.filter-tabs label {
    min-height: 54px;
    display: grid;
    place-items: center;
    color: var(--text);
    cursor: pointer;
}
.filter-tabs label + label { border-left: 1px solid rgba(255, 255, 255, 0.18); }
.filter-tabs label.active {
    background: var(--accent);
    border-color: var(--accent);
}
.filter-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.filter-tabs span { font-weight: 800; }
.filter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px 18px;
    margin-top: 28px;
}
.filter-grid label {
    min-width: 0;
    display: grid;
    position: relative;
}
.filter-grid label.wide { grid-column: span 2; }
.filter-grid label > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.filter-grid select,
.filter-grid input {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(245, 245, 245, 0.07);
    border-radius: 6px;
    background: #202329;
    color: var(--text);
    padding: 0 42px 0 18px;
    outline: 0;
}
.filter-grid select:disabled,
.filter-grid input:disabled {
    color: #7f8792;
    cursor: not-allowed;
    background-color: #191c21;
    opacity: 1;
}
.filter-grid input { padding-right: 14px; }
.filter-grid select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #aeb4bd 50%),
        linear-gradient(135deg, #aeb4bd 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 20px,
        calc(100% - 12px) 20px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}
.filter-grid select[data-search-select] {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    opacity: 0;
    pointer-events: none;
}
.search-select {
    position: relative;
    z-index: 4;
}
.search-select.open {
    z-index: 30;
}
.search-select.disabled {
    opacity: 0.7;
}
.search-select-toggle {
    width: 100%;
    min-height: 46px;
    padding: 0 40px 0 16px;
    border: 1px solid rgba(245, 245, 245, 0.07);
    border-radius: 6px;
    background: #20242b;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.search-select-toggle::after {
    content: "";
    width: 8px;
    height: 8px;
    position: absolute;
    right: 16px;
    top: 18px;
    border-right: 2px solid #aeb4bd;
    border-bottom: 2px solid #aeb4bd;
    transform: rotate(45deg);
}
.search-select-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    overflow: hidden;
    border: 1px solid rgba(245, 245, 245, 0.12);
    border-radius: 8px;
    background: #f4f4f4;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}
.search-select.open .search-select-panel {
    display: block;
}
.search-select-input {
    width: calc(100% - 16px);
    min-height: 38px;
    margin: 8px;
    padding: 0 10px;
    border: 1px solid #d8d8d8;
    border-radius: 5px;
    background: #fff;
    color: #111;
}
.search-select-list {
    max-height: 240px;
    overflow-y: auto;
    padding: 0 0 6px;
}
.search-select-option,
.search-select-empty {
    width: 100%;
    min-height: 36px;
    display: block;
    padding: 8px 16px;
    border: 0;
    background: transparent;
    color: #111;
    text-align: left;
}
.search-select-option {
    cursor: pointer;
}
.search-select-option:hover,
.search-select-option.active {
    background: #b7b7b7;
    color: #fff;
}
.search-select-empty {
    color: #777;
}
.filter-grid input::placeholder { color: #969da7; opacity: 1; }
.filter-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    margin-top: 20px;
}
.switch-field {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
    color: var(--text);
    cursor: pointer;
}
.switch-field input { position: absolute; opacity: 0; pointer-events: none; }
.switch-field span {
    width: 46px;
    height: 24px;
    position: relative;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #c9ccd1;
    transition: background 0.18s ease;
}
.switch-field span::after {
    content: "";
    width: 18px;
    height: 18px;
    position: absolute;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.18s ease;
}
.switch-field input:checked + span {
    background: var(--accent);
}
.switch-field input:checked + span::after {
    transform: translateX(22px);
}
.switch-field em {
    font-style: normal;
}
.filter-reset {
    min-width: 220px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #0f1115;
    color: var(--text);
    font-weight: 800;
}
.filter-actions .btn {
    min-width: 236px;
}
.empty-results {
    grid-column: 1 / -1;
    margin: 0;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    color: var(--muted);
}
.brand-filter {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px 14px;
    width: 100%;
    margin-bottom: 24px;
}
.brand-filter-item {
    min-width: 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #1c1f24;
    color: var(--text);
    font-size: 15px;
    transition: border-color 0.18s ease, background 0.18s ease;
}
.brand-filter-item:hover {
    border-color: rgba(255, 255, 255, 0.24);
    background: #22262d;
}
.brand-filter-item.active {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}
.brand-filter-item span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}
.brand-filter-item em {
    flex: 0 0 auto;
    color: #8f98a6;
    font-style: normal;
    font-size: 14px;
}
.brand-filter-item.active em { color: rgba(255, 255, 255, 0.82); }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tag { padding: 5px 8px; border-radius: 4px; background: var(--panel-2); color: var(--muted); font-size: 12px; }
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 34px; }
.pagination a, .pagination span { padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.pagination span { color: var(--muted); }

.site-footer {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.4fr;
    gap: 70px;
    padding: 44px 0 30px;
    margin-top: 74px;
    border-top: 1px solid var(--line);
}
.site-footer h3 { margin: 0 0 18px; text-transform: uppercase; font-size: 14px; }
.site-footer a { display: block; color: var(--muted); margin-bottom: 9px; }
.footer-phone { color: var(--text) !important; font-size: 22px; font-weight: 800; }
.footer-offices {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}
.footer-offices p {
    margin: 0;
}
.footer-offices strong {
    display: block;
    color: var(--text);
    font-size: 13px;
    line-height: 1.35;
}
.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 12px;
}
.footer-socials a {
    display: inline-flex;
    margin-bottom: 0;
    transition: color 0.18s ease, transform 0.18s ease;
}
.site-footer a {
    transition: color 0.18s ease, transform 0.18s ease;
}
.site-footer a:hover,
.site-footer a:focus,
.footer-socials a:hover,
.footer-socials a:focus {
    color: var(--text);
    transform: translateY(-1px);
}
.footer-socials a:hover,
.footer-socials a:focus {
    color: #ff5a55;
}

.floating-actions {
    position: fixed;
    right: clamp(14px, 3vw, 34px);
    top: 50%;
    z-index: 70;
    display: grid;
    gap: 10px;
    transform: translateY(-50%);
    pointer-events: none;
}
.floating-action {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(245, 245, 245, 0.1);
    border-radius: 50%;
    background: linear-gradient(180deg, #24282d, #191c20);
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
    opacity: 0.92;
    pointer-events: auto;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.floating-action span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.floating-action:hover,
.floating-action:focus {
    color: #fff;
    border-color: rgba(211, 34, 28, 0.66);
    background: linear-gradient(180deg, var(--accent-hi), var(--accent));
    box-shadow: 0 16px 32px rgba(184, 15, 10, 0.3);
    opacity: 1;
    transform: translateY(-2px) scale(1.04);
}
.floating-action-max {
    font-size: 13px;
}
.floating-action-telegram .telegram-icon svg {
    width: 21px;
    height: 21px;
}
.floating-action-top {
    margin-top: 20px;
    border: 0;
    background: linear-gradient(180deg, var(--accent-hi), var(--accent));
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    pointer-events: none;
}
.floating-action-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.floating-action-top:hover,
.floating-action-top:focus {
    transform: translateY(-2px) scale(1.04);
}

@media (max-width: 1120px) {
    .topbar { flex-wrap: wrap; padding: 14px 0 22px; }
    .main-nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 8px; }
    .header-actions { margin-left: auto; }
    .service-grid, .car-grid, .catalog-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-band { grid-template-columns: 1fr; }
    .info-hero,
    .contacts-layout,
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-stats,
    .about-process > div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .home-brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .filter-grid label.wide { grid-column: span 2; }
    .brand-filter { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .consult { grid-template-columns: 1fr; }
    .consult form { grid-template-columns: 1fr 1fr auto; }
    .reviews-widget-section {
        grid-template-columns: 1fr;
    }

    .reviews-widget-copy {
        max-width: 760px;
    }

    .reviews-widget-card {
        width: min(560px, 100%);
        justify-self: center;
    }
}

@media (max-width: 820px) {
    .site-header, .section-narrow, .site-footer { width: min(100% - 28px, 1260px); }
    .topbar { gap: 18px; }
    .brand-mark, .brand-logo { width: 58px; height: 58px; }
    .brand-mark { border-width: 6px; }
    .header-actions { width: 100%; justify-content: space-between; }
    .phone { min-width: 0; }
    .hero-slider { min-height: 590px; }
    .slide-content { margin-left: 24px; width: min(560px, calc(100% - 48px)); }
    h1 { font-size: 44px; }
    .slider-dots { left: 24px; }
    .cta-band { padding: 26px 24px; }
    .portfolio-cta { align-items: flex-start; flex-direction: column; }
    .metrics, .steps, .site-footer { grid-template-columns: 1fr; }
    .team-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .team-photo-grid-single { grid-template-columns: 1fr; }
    .home-brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .brand-filter { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .metrics article { border-right: 0; border-bottom: 1px solid rgba(245, 245, 245, 0.12); padding: 22px 24px; }
    .section { padding-top: 52px; }
    .section-head { align-items: start; flex-direction: column; }
    .steps::before { display: none; }
    .steps article { padding: 0; }
    .catalog-head { align-items: stretch; }
    .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .filter-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .switch-field { grid-column: 1 / -1; }
    .filter-actions .btn { min-width: 0; }
    .filter-reset { min-width: 0; }
    .counter { width: 100%; }
    .site-footer { gap: 28px; }
    .contact-cards {
        grid-template-columns: 1fr;
    }
    .info-hero-card,
    .contact-card {
        min-height: 170px;
    }
}

@media (max-width: 560px) {
    .main-nav { gap: 22px; font-size: 13px; }
    .phone strong { font-size: 14px; }
    .btn-small { padding: 0 14px; }
    .hero-slider { min-height: 620px; }
    .slide::after { background: linear-gradient(180deg, rgba(15, 17, 20, 0.96) 0%, rgba(15, 17, 20, 0.72) 58%, rgba(15, 17, 20, 0.88) 100%); }
    .hero-actions,
    .hero-lead-form,
    .cta-band form {
        grid-template-columns: 1fr;
    }
    .hero-actions {
        display: grid;
    }
    .hero-lead-form {
        padding: 8px;
    }
    .lead-popup {
        align-items: flex-end;
        padding: 12px;
    }
    .lead-popup-panel {
        padding: 28px 20px 22px;
    }
    .lead-popup-panel h2 {
        font-size: 25px;
    }
    .slider-controls { right: 16px; bottom: 18px; }
    .slider-dots { bottom: 24px; }
    .service-grid, .car-grid, .catalog-grid, .consult form { grid-template-columns: 1fr; }
    .team-photo-grid { grid-template-columns: 1fr; }
    .team-photo-card { min-height: 300px; }
    .team-photo-grid-single .team-photo-card { min-height: 300px; }
    .team-photo-copy {
        left: 18px;
        right: 18px;
        bottom: 18px;
    }
    .team-photo-copy p {
        font-size: 15px;
    }
    .about-stats,
    .about-process > div {
        grid-template-columns: 1fr;
    }
    .info-hero-card,
    .contact-form-panel,
    .about-principles article,
    .about-process article,
    .about-stats article,
    .contact-card {
        padding: 20px;
    }
    .info-hero-actions {
        display: grid;
    }
    .home-brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .filter-tabs,
    .filter-grid,
    .filter-actions { grid-template-columns: 1fr; }
    .filter-grid label.wide,
    .switch-field { grid-column: auto; }
    .brand-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .btn { width: 100%; }
    .reviews-widget-card {
        width: 100%;
        min-height: 520px;
        height: 620px;
    }
    .home-brands-head-link {
        display: none;
    }
    .home-brands .home-brand-card:nth-child(n+7) {
        display: none;
    }
    .home-brands-mobile-link {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-top: 12px;
        border-radius: 5px;
        background: linear-gradient(180deg, var(--accent-hi), var(--accent));
        color: #fff;
        font-weight: 900;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 14px 30px rgba(184, 15, 10, 0.24);
        transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    }
    .home-brands-mobile-link:hover,
    .home-brands-mobile-link:focus {
        color: #fff;
        transform: translateY(-1px);
        filter: brightness(1.05);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 18px 36px rgba(184, 15, 10, 0.3);
    }
    .home-brands-mobile-link span {
        color: #fff;
        font-size: 20px;
        line-height: 1;
    }
    .floating-actions {
        right: 12px;
        gap: 8px;
    }
    .floating-action {
        width: 46px;
        height: 46px;
        font-size: 12px;
    }
    .floating-action-top {
        margin-top: 12px;
    }
}

/* Bootstrap-oriented responsive hardening */
img, svg, video {
    max-width: 100%;
}

body {
    overflow-x: hidden;
}

.topbar {
    width: 100%;
}

.brand {
    margin-right: 0;
}

.main-nav a,
.main-nav .nav-link {
    color: var(--muted);
    padding: 0;
}

.main-nav a:hover,
.main-nav .nav-link:hover,
.main-nav .nav-link:focus {
    color: var(--text);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.2);
    margin-left: auto;
}

.catalog-card,
.car-card,
.service-card,
.similar-card,
.brand-filter-item {
    min-width: 0;
}

.catalog-card h3,
.car-card h3,
.service-card h3,
.price-row,
.filter-actions,
.catalog-sort,
.footer-socials {
    overflow-wrap: anywhere;
}

.filter-grid input,
.filter-grid select,
.search-select-toggle,
.consult input,
.btn,
.filter-reset,
.sort-toggle,
.sort-help {
    min-width: 0;
}

@media (max-width: 1199.98px) {
    .main-nav {
        gap: 18px;
    }

    .filter-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .brand-filter {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .site-header,
    .section-narrow,
    .site-footer {
        width: min(100% - 32px, 1260px);
    }

    .topbar {
        min-height: auto;
        align-items: flex-start;
        gap: 16px;
        padding: 14px 0 18px;
    }

    .main-nav {
        order: 3;
        width: 100%;
        margin-left: 0;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        overflow: visible;
    }

    .main-nav a,
    .main-nav .nav-link {
        min-height: 40px;
        display: flex;
        align-items: center;
        padding: 8px 10px;
        border: 1px solid var(--line);
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.03);
    }

    .header-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .hero-slider {
        min-height: clamp(480px, 70vw, 620px);
    }

    .slide-content {
        margin-left: 28px;
    }

    .catalog-sort,
    .filter-actions {
        justify-content: stretch;
        align-items: stretch;
        flex-wrap: wrap;
    }

    .sort-help,
    .sort-menu,
    .sort-toggle,
    .filter-reset,
    .filter-actions .btn {
        width: 100%;
    }

    .sort-options {
        width: min(100%, 320px);
        left: 0;
        right: auto;
    }

    .filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brand-filter {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .site-footer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }
}

@media (max-width: 767.98px) {
    .site-header,
    .section-narrow,
    .site-footer {
        width: min(100% - 24px, 1260px);
    }

    .brand,
    .footer-brand {
        min-width: 0;
    }

    .brand strong,
    .footer-brand strong {
        font-size: 16px;
    }

    .brand small,
    .phone small {
        font-size: 11px;
    }

    .main-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .header-actions .phone,
    .header-actions .btn {
        flex: 1 1 220px;
    }

    .slide-content {
        width: calc(100% - 32px);
        margin-left: 16px;
    }

    h1 {
        font-size: clamp(32px, 10vw, 44px);
        line-height: 1.05;
    }

    h2 {
        font-size: clamp(26px, 8vw, 34px);
    }

    .metrics strong,
    .counter strong {
        font-size: 24px;
    }

    .service-card {
        padding: 24px 20px;
    }

    .catalog-page {
        padding-top: 34px;
    }

    .legend-dialog {
        padding: 32px 18px 24px;
    }

    .legend-dialog h2 {
        font-size: clamp(24px, 8vw, 32px);
    }

    .legend-dialog p {
        font-size: 16px;
    }

    .pagination {
        flex-wrap: wrap;
        margin: 32px 0 48px;
    }
}

@media (max-width: 575.98px) {
    .site-header,
    .section-narrow,
    .site-footer {
        width: min(100% - 18px, 1260px);
    }

    .topbar {
        gap: 12px;
    }

    .brand-mark,
    .brand-logo {
        width: 48px;
        height: 48px;
    }

    .main-nav,
    .service-grid,
    .car-grid,
    .catalog-grid,
    .home-brand-grid,
    .filter-tabs,
    .filter-grid,
    .filter-actions,
    .brand-filter,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .filter-grid label.wide,
    .switch-field {
        grid-column: auto;
    }

    .header-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .phone {
        width: 100%;
        padding: 10px 12px;
        border: 1px solid var(--line);
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.03);
    }

    .hero-slider {
        min-height: 560px;
        border-radius: 0;
        margin-left: -9px;
        margin-right: -9px;
    }

    .slide-content p {
        line-height: 1.55;
    }

    .slider-controls {
        right: 12px;
        bottom: 14px;
    }

    .slider-dots {
        left: 16px;
        bottom: 22px;
    }

    .section {
        padding-top: 42px;
    }

    .section-head {
        gap: 14px;
    }

    .catalog-sort {
        margin-top: 0;
    }

    .catalog-card .car-body {
        grid-template-rows: auto;
        gap: 8px;
    }

    .car-specs {
        grid-template-columns: 1fr;
        min-height: 0;
    }

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

@media (max-width: 399.98px) {
    .site-header,
    .section-narrow,
    .site-footer {
        width: min(100% - 14px, 1260px);
    }

    .brand {
        gap: 10px;
    }

    .brand-mark,
    .brand-logo {
        width: 42px;
        height: 42px;
    }

    .main-nav a,
    .main-nav .nav-link {
        font-size: 13px;
    }

    .btn {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* New sections: dropdown navigation, service pages, news, info pages, calculator */
.topbar > .main-nav:not(.new-main-nav),
.mobile-menu-panel > .main-nav:not(.new-main-nav) { display: none; }
.new-main-nav { align-items: center; }
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0;
}
.nav-dropdown-toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-top: 2px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}
.nav-dropdown-menu {
    display: none;
    min-width: 280px;
    max-width: min(360px, calc(100vw - 32px));
    position: absolute;
    left: 0;
    top: calc(100% + 18px);
    z-index: 80;
    padding: 10px;
    border-radius: 8px;
    background: #fff;
    color: #111318;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: grid;
}
.nav-dropdown-menu a,
.nav-dropdown-menu span {
    display: block;
    padding: 10px 12px;
    border-radius: 5px;
    color: #111318 !important;
    line-height: 1.25;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus,
.nav-dropdown-menu a:active {
    background: #f0f1f3;
    color: #111318 !important;
}
.content-page {
    padding-top: 52px;
}
.site-messages {
    display: grid;
    gap: 10px;
    padding-top: 18px;
}
.site-message {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    color: var(--text);
    font-weight: 800;
}
.site-message.success {
    border-color: rgba(47, 150, 61, 0.45);
    background: rgba(47, 150, 61, 0.16);
}
.site-message.error {
    border-color: rgba(240, 50, 43, 0.45);
    background: rgba(240, 50, 43, 0.16);
}
.content-page h1 {
    margin: 10px 0 18px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
}
.page-kicker,
.post-date {
    display: inline-flex;
    color: var(--muted);
    font-size: 14px;
}
.lead-text {
    max-width: 760px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}
.rich-text {
    max-width: 860px;
    color: #d9dee7;
    font-size: 17px;
    line-height: 1.75;
}
.rich-text p { margin-bottom: 18px; }
.info-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: stretch;
}
.info-hero .lead-text {
    max-width: 800px;
}
.info-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}
.info-hero-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 260px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(211, 34, 28, 0.2), transparent 42%),
        linear-gradient(180deg, #22252b, #181b20);
    box-shadow: var(--shadow);
}
.info-hero-card span,
.contact-card span,
.about-principles span,
.about-process article span {
    color: #ff403a;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 900;
}
.info-hero-card strong {
    display: block;
    margin: 12px 0 18px;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 0.95;
}
.info-hero-card small {
    color: var(--muted);
    line-height: 1.5;
}
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 28px;
}
.about-stats article,
.contact-card,
.contact-form-panel,
.about-principles article,
.about-process article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #1d2026, #1a1d22);
}
.about-stats article {
    min-height: 140px;
    padding: 24px;
}
.about-stats strong {
    display: block;
    margin-bottom: 10px;
    font-size: 28px;
}
.about-stats span,
.about-copy p,
.about-principles p,
.about-process p,
.contact-card small,
.contact-form-panel p {
    color: var(--muted);
    line-height: 1.65;
}
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 26px;
    margin-top: 70px;
}
.about-copy h2,
.about-process h2,
.contact-form-panel h2 {
    margin: 8px 0 18px;
}
.about-principles {
    display: grid;
    gap: 14px;
}
.about-principles article {
    padding: 24px;
}
.about-principles h3 {
    margin: 12px 0 8px;
}
.about-process {
    margin-top: 70px;
}
.about-process > div {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 22px;
}
.about-process article {
    min-height: 150px;
    padding: 22px;
}
.about-process p {
    margin: 12px 0 0;
}
.contacts-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.72fr);
    gap: 24px;
    margin-top: 30px;
}
.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.contact-card {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}
.contact-card strong {
    display: block;
    margin: 12px 0 8px;
    font-size: 22px;
    line-height: 1.2;
}
.contact-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}
.contact-socials a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid rgba(245, 245, 245, 0.12);
    border-radius: 4px;
    background: #15171b;
    color: #fff;
    font-weight: 800;
}
.contact-form-panel {
    padding: 28px;
}
.contact-form-panel input,
.contact-form-panel textarea {
    width: 100%;
    min-height: 48px;
    margin-bottom: 10px;
    border: 1px solid rgba(245, 245, 245, 0.1);
    border-radius: 4px;
    background: #15171b;
    color: var(--text);
    padding: 0 15px;
    outline: 0;
}
.contact-form-panel textarea {
    min-height: 116px;
    padding-top: 13px;
    resize: vertical;
}
.contact-form-panel input:focus,
.contact-form-panel textarea:focus {
    border-color: rgba(211, 34, 28, 0.78);
    box-shadow: 0 0 0 3px rgba(211, 34, 28, 0.16);
}
.contact-form-panel .btn {
    width: 100%;
}
.contact-form-panel .privacy-consent {
    margin-top: 10px;
}
.info-extra {
    margin-top: 52px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}
.content-grid,
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.content-card,
.blog-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #1d2026, #1a1d22);
}
.content-card { padding: 24px; }
.content-card span,
.blog-card time {
    color: var(--accent-hi);
    font-size: 13px;
    font-weight: 800;
}
.content-card h2,
.blog-card h2 {
    margin: 12px 0;
    font-size: 22px;
    line-height: 1.2;
}
.content-card p,
.blog-card p {
    color: var(--muted);
    line-height: 1.55;
}
.blog-cover {
    aspect-ratio: 16 / 10;
    background: #101216;
}
.blog-cover img,
.post-cover {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.blog-card > div:last-child {
    flex: 1;
    padding: 18px;
}
.blog-card {
    position: relative;
    min-height: 100%;
    border-color: rgba(245, 245, 245, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
        #12151a;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover {
    border-color: rgba(238, 36, 31, 0.52);
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.34);
    transform: translateY(-3px);
}
.blog-card:hover .blog-cover img {
    transform: scale(1.04);
}
.blog-cover {
    position: relative;
    overflow: hidden;
}
.blog-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(180deg, rgba(18, 21, 26, 0), rgba(18, 21, 26, 0.74));
    pointer-events: none;
}
.blog-cover img {
    transition: transform 0.35s ease;
}
.blog-card h2 {
    color: var(--text);
}
.blog-card::after {
    content: "";
    position: absolute;
    inset: auto 18px 0;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-hi));
    opacity: 0;
    transition: opacity 0.2s ease;
}
.blog-card:hover::after {
    opacity: 1;
}
.news-detail {
    max-width: 1120px;
}
.news-detail-head {
    display: grid;
    gap: 18px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(245, 245, 245, 0.1);
}
.news-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}
.news-detail-meta span {
    color: var(--accent-hi);
}
.news-detail-meta span::after {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-left: 10px;
    border-radius: 50%;
    background: rgba(245, 245, 245, 0.32);
    vertical-align: 2px;
}
.news-detail .lead-text {
    max-width: 900px;
    margin-top: 0;
    color: #d9dee7;
}
.news-gallery {
    display: grid;
    gap: 14px;
    margin: 28px 0 34px;
}
.news-gallery-stage {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(245, 245, 245, 0.12);
    border-radius: 8px;
    background: #0b0d10;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}
.news-gallery-stage > img {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: none;
    object-fit: cover;
}
.news-gallery-stage > img.is-active {
    display: block;
}
.news-gallery-count {
    position: absolute;
    right: 16px;
    bottom: 16px;
    min-width: 62px;
    padding: 8px 12px;
    border: 1px solid rgba(245, 245, 245, 0.18);
    border-radius: 999px;
    background: rgba(10, 12, 15, 0.78);
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    backdrop-filter: blur(12px);
}
.news-gallery-arrow {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(245, 245, 245, 0.18);
    border-radius: 50%;
    background: rgba(10, 12, 15, 0.72);
    color: var(--text);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(12px);
}
.news-gallery-arrow:hover {
    border-color: rgba(238, 36, 31, 0.65);
    background: rgba(238, 36, 31, 0.86);
}
.news-gallery-prev {
    left: 16px;
}
.news-gallery-next {
    right: 16px;
}
.news-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}
.news-gallery-thumbs button {
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(245, 245, 245, 0.12);
    border-radius: 8px;
    background: #111419;
    cursor: pointer;
    opacity: 0.68;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.news-gallery-thumbs button:hover,
.news-gallery-thumbs button.is-active {
    border-color: rgba(238, 36, 31, 0.72);
    opacity: 1;
}
.news-gallery-thumbs button.is-active {
    transform: translateY(-2px);
}
.news-gallery-thumbs img {
    width: 100%;
    aspect-ratio: 16 / 10;
    display: block;
    object-fit: cover;
}
.news-story {
    max-width: 900px;
    padding: 30px 34px;
    border: 1px solid rgba(245, 245, 245, 0.1);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
        rgba(18, 21, 26, 0.86);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.22);
}
.video-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 24px;
}
.video-filter a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}
.video-filter a:hover,
.video-filter a.active {
    border-color: rgba(211, 34, 28, 0.68);
    background: rgba(211, 34, 28, 0.16);
    color: #fff;
}
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.video-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #1d2026, #1a1d22);
    transition: border-color 0.18s ease, transform 0.18s ease;
}
.video-card:hover {
    border-color: rgba(245, 245, 245, 0.24);
    transform: translateY(-2px);
}
.video-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(211, 34, 28, 0.18), transparent 44%),
        #101216;
}
.video-card-media > a,
.video-card-media iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}
.video-card-media > a {
    position: relative;
}
.video-card-hit {
    position: absolute !important;
    inset: 0;
    z-index: 4;
    background: transparent;
}
.video-card-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.video-card:hover .video-card-media img {
    filter: saturate(1.08) contrast(1.04);
    transform: scale(1.035);
}
.video-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.58));
    pointer-events: none;
}
.video-card-media:has(iframe)::after {
    display: none;
}
.video-fallback-title {
    position: absolute;
    left: 88px;
    right: 18px;
    bottom: 28px;
    z-index: 2;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}
.video-play {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    position: absolute;
    left: 18px;
    bottom: 16px;
    z-index: 2;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--accent-hi), var(--accent));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.video-play::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 4px;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 16px solid #fff;
}
.video-duration {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 5px 8px;
    border-radius: 4px;
    background: rgba(17, 19, 23, 0.86);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}
.video-card-body {
    padding: 18px;
}
.video-category-link {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--accent-hi);
    font-size: 13px;
    font-weight: 800;
}
.video-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.22;
}
.video-card p {
    margin-bottom: 12px;
    color: var(--muted);
    line-height: 1.55;
}
.video-card time {
    color: #8f98a6;
    font-size: 13px;
    font-weight: 800;
}
.video-detail-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    margin-bottom: 24px;
}
.video-detail-head h1 {
    margin: 10px 0 12px;
}
.video-detail-head time {
    color: #8f98a6;
    font-weight: 800;
}
.video-player {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(211, 34, 28, 0.18), transparent 44%),
        #101216;
}
.video-player iframe,
.video-player img,
.video-player > div {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}
.video-player img {
    object-fit: cover;
}
.video-player > div {
    position: relative;
}
.video-player-fallback {
    display: grid !important;
    place-items: center;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}
.video-detail-description {
    margin-top: 28px;
}
.video-comments-layout {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.video-comment-form,
.video-comment {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #1d2026, #1a1d22);
}
.video-comment-form {
    display: grid;
    gap: 12px;
    padding: 20px;
}
.video-comment-form input,
.video-comment-form textarea {
    width: 100%;
    border: 1px solid rgba(245, 245, 245, 0.08);
    border-radius: 6px;
    background: #14161a;
    color: var(--text);
    padding: 13px 14px;
    outline: 0;
}
.video-comment-form textarea {
    min-height: 140px;
    resize: vertical;
}
.video-comment-list {
    display: grid;
    gap: 12px;
}
.video-comment {
    padding: 18px;
}
.video-comment strong {
    display: inline-flex;
    margin-right: 10px;
}
.video-comment time {
    color: #8f98a6;
    font-size: 13px;
    font-weight: 800;
}
.video-comment p {
    margin: 12px 0 0;
    color: #d9dee7;
    line-height: 1.65;
}
.post-cover {
    max-height: 520px;
    margin: 14px 0 24px;
    border-radius: 8px;
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.portfolio-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #1d2026, #1a1d22);
    transition: border-color 0.18s ease, transform 0.18s ease;
}
.portfolio-card:hover {
    border-color: rgba(255, 255, 255, 0.24);
    transform: translateY(-2px);
}
.portfolio-card-photo {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #101216;
    overflow: hidden;
}
.portfolio-card-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.2s ease;
}
.portfolio-card:hover .portfolio-card-photo img {
    transform: scale(1.035);
}
.portfolio-card-photo span {
    position: absolute;
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    padding: 6px 10px;
    overflow: hidden;
    border-radius: 4px;
    background: rgba(17, 19, 23, 0.82);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.portfolio-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
}
.portfolio-card h3 {
    margin: 0;
    color: var(--text);
    font-size: 18px;
    line-height: 1.25;
}
.portfolio-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}
.portfolio-card .portfolio-car {
    width: max-content;
    max-width: 100%;
    padding: 6px 10px;
    overflow: hidden;
    border-radius: 4px;
    background: var(--panel-2);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.portfolio-detail-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 34px;
    align-items: end;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(245, 245, 245, 0.08);
}
.portfolio-detail-meta {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid rgba(245, 245, 245, 0.14);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(211, 34, 28, 0.18), transparent 42%),
        linear-gradient(180deg, #262a31, #1d2026);
    box-shadow: var(--shadow);
}
.portfolio-detail-meta::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent-hi), var(--accent));
}
.portfolio-detail-meta div {
    display: grid;
    gap: 6px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(245, 245, 245, 0.1);
}
.portfolio-detail-meta div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}
.portfolio-detail-meta span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.portfolio-detail-meta strong,
.portfolio-detail-meta a {
    color: var(--text);
    font-weight: 800;
    line-height: 1.35;
}
.portfolio-detail-meta a:hover {
    color: var(--accent-hi);
}
.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 12px;
    margin-top: 34px;
}
.portfolio-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    background: #101216;
    border: 1px solid rgba(245, 245, 245, 0.08);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}
.portfolio-gallery img:hover {
    border-color: rgba(245, 245, 245, 0.24);
    filter: saturate(1.08) contrast(1.03);
    transform: translateY(-2px);
}
.portfolio-gallery-main {
    grid-column: span 2;
    grid-row: span 2;
}
.portfolio-story {
    max-width: 900px;
    margin-top: 36px;
    padding: 30px 34px;
    border: 1px solid rgba(245, 245, 245, 0.1);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
        #1a1d22;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
}
.portfolio-story p {
    margin-bottom: 16px;
}
.portfolio-story p:first-child {
    color: #fff;
    font-size: 19px;
    line-height: 1.7;
}
.portfolio-story p:last-child {
    margin-bottom: 0;
}
.portfolio-more {
    padding-top: 74px;
}
.portfolio-carousel {
    display: grid;
    grid-auto-columns: minmax(280px, 360px);
    grid-auto-flow: column;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
}
.portfolio-carousel .portfolio-card {
    scroll-snap-align: start;
}
.calculator-page {
    padding-top: 70px;
    padding-bottom: 74px;
}
.calculator-panel {
    margin-top: 52px;
    padding: 44px;
    border: 1px solid rgba(245, 245, 245, 0.08);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(216, 36, 31, 0.08), transparent 34%),
        linear-gradient(180deg, #1c1c1d, #171819);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}
.calculator-panel h1 {
    max-width: 780px;
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 42px);
}
.calculator-panel-lead {
    max-width: 760px;
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}
.form-alert {
    margin: -8px 0 22px;
    padding: 13px 16px;
    border: 1px solid rgba(240, 50, 43, 0.42);
    border-radius: 6px;
    background: rgba(240, 50, 43, 0.14);
    color: #fff;
    font-weight: 800;
    line-height: 1.45;
}
.calculator-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.calculator-grid input,
.calculator-grid select {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 6px;
    background: #fff;
    color: #333946;
    padding: 0 18px;
    font: inherit;
}
.calculator-grid input:focus,
.calculator-grid select:focus {
    outline: 2px solid rgba(216, 36, 31, 0.48);
    outline-offset: 2px;
}
.calculator-panel .btn { width: 100%; }
.calculator-result {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: 18px;
    margin-top: 24px;
}
.calculator-result > div:first-child,
.calculator-breakdown {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}
.calculator-result > div:first-child {
    border-color: rgba(216, 36, 31, 0.32);
    background:
        linear-gradient(135deg, rgba(216, 36, 31, 0.24), transparent 58%),
        linear-gradient(180deg, #262a31, #1d2026);
}
.calculator-result span {
    display: block;
    color: var(--muted);
}
.calculator-result > div:first-child strong {
    display: block;
    margin-top: 8px;
    font-size: 30px;
}
.calculator-breakdown {
    display: grid;
    gap: 10px;
}
.calculator-breakdown p {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}
.calculator-breakdown p:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}
.calculator-breakdown em {
    display: block;
    color: #8f98a6;
    font-style: normal;
    font-size: 12px;
}
.calculator-guide {
    margin-top: 54px;
}
.calculator-guide-head {
    display: grid;
    grid-template-columns: minmax(180px, 250px) minmax(0, 1fr);
    gap: 18px 38px;
    align-items: end;
    margin-bottom: 26px;
}
.calculator-guide-head span {
    color: var(--accent-hi);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}
.calculator-guide-head h2 {
    margin: 0;
    max-width: 620px;
    font-size: clamp(30px, 4vw, 48px);
}
.calculator-guide-head p {
    grid-column: 2;
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}
.calculator-guide-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
    gap: 18px;
}
.calculator-steps,
.calculator-factors {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #202329, #1b1e23);
}
.calculator-steps h3,
.calculator-factors h3 {
    margin: 0 0 14px;
    font-size: 20px;
}
.calculator-steps ol {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: calc-step;
}
.calculator-steps li {
    position: relative;
    min-height: 36px;
    padding-left: 52px;
    color: var(--muted);
    line-height: 1.6;
}
.calculator-steps li::before {
    counter-increment: calc-step;
    content: counter(calc-step);
    position: absolute;
    top: 1px;
    left: 0;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #d8241f;
    color: #fff;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(216, 36, 31, 0.28);
}
.calculator-factor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.calculator-factor-grid div {
    min-height: 142px;
    padding: 18px;
    border: 1px solid rgba(245, 245, 245, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}
.calculator-factor-grid strong {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 16px;
}
.calculator-factor-grid p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}
.calculator-note {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 22px;
    margin-top: 18px;
    padding: 22px 24px;
    border: 1px solid rgba(216, 36, 31, 0.28);
    border-radius: 8px;
    background: rgba(216, 36, 31, 0.08);
}
.calculator-note strong {
    color: #fff;
    font-size: 18px;
}
.calculator-note p {
    margin: 0;
    color: #d9dee7;
    line-height: 1.65;
}

@media (max-width: 991.98px) {
    .new-main-nav .nav-dropdown {
        display: block;
    }
    .new-main-nav .nav-dropdown-toggle {
        width: 100%;
        min-height: 40px;
        display: flex;
        align-items: center;
        padding: 8px 10px;
        border: 1px solid var(--line);
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.03);
    }
    .new-main-nav .nav-dropdown-menu {
        position: static;
        width: 100%;
        max-width: none;
        margin-top: 8px;
        box-shadow: none;
    }
    .content-grid,
    .blog-grid,
    .video-grid,
    .portfolio-grid,
    .calculator-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .portfolio-detail-head {
        grid-template-columns: 1fr;
        align-items: start;
    }
    .video-detail-head {
        grid-template-columns: 1fr;
        align-items: start;
    }
    .video-comments-layout {
        grid-template-columns: 1fr;
    }
    .portfolio-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .calculator-result {
        grid-template-columns: 1fr;
    }
    .calculator-guide-head,
    .calculator-guide-layout,
    .calculator-note {
        grid-template-columns: 1fr;
    }
    .calculator-guide-head p {
        grid-column: auto;
    }
}

@media (max-width: 767.98px) {
    .content-page,
    .calculator-page {
        padding-top: 34px;
    }
    .news-detail-head {
        margin-bottom: 22px;
        padding-bottom: 18px;
    }
    .news-gallery {
        margin: 22px 0 26px;
    }
    .news-gallery-stage > img {
        aspect-ratio: 4 / 3;
    }
    .news-gallery-arrow {
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
    .news-gallery-prev {
        left: 10px;
    }
    .news-gallery-next {
        right: 10px;
    }
    .news-gallery-count {
        right: 10px;
        bottom: 10px;
    }
    .news-gallery-thumbs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .news-story {
        padding: 22px;
    }
    .calculator-panel {
        margin-top: 28px;
        padding: 28px 20px;
    }
    .calculator-guide-head {
        gap: 12px;
    }
    .calculator-factor-grid {
        grid-template-columns: 1fr;
    }
    .calculator-note {
        padding: 20px;
    }
    .portfolio-detail-head {
        gap: 22px;
    }
    .portfolio-detail-meta,
    .portfolio-story {
        padding: 22px;
    }
}

@media (max-width: 575.98px) {
    .content-grid,
    .blog-grid,
    .video-grid,
    .portfolio-grid,
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-gallery {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 24px;
    }
    .portfolio-gallery-main {
        grid-column: auto;
        grid-row: auto;
    }
    .portfolio-gallery img {
        aspect-ratio: 16 / 11;
    }
    .news-gallery-stage > img {
        aspect-ratio: 16 / 11;
    }
    .news-gallery-thumbs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    .news-story {
        padding: 20px;
        font-size: 16px;
    }
    .portfolio-story {
        margin-top: 24px;
        padding: 20px;
        font-size: 16px;
    }
    .portfolio-story p:first-child {
        font-size: 17px;
    }
    .portfolio-carousel {
        grid-auto-columns: minmax(260px, 86vw);
    }
    .calculator-breakdown p {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1200px) {
    .site-header {
        width: min(1320px, calc(100% - 48px));
    }

    .topbar {
        min-height: 78px;
        gap: 10px;
    }

    .brand {
        min-width: 172px;
        gap: 10px;
    }

    .brand-mark,
    .brand-logo {
        width: 54px;
        height: 54px;
    }

    .brand-mark {
        border-width: 6px;
    }

    .brand strong {
        font-size: 18px;
    }

    .brand small,
    .phone small {
        font-size: 11px;
    }

    .new-main-nav {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: space-between;
        gap: clamp(7px, 0.78vw, 12px);
        margin-left: 4px;
        font-size: clamp(12px, 0.82vw, 13px);
    }

    .new-main-nav > a,
    .new-main-nav .nav-dropdown-toggle {
        white-space: nowrap;
        line-height: 1.2;
    }

    .nav-dropdown-toggle::after {
        flex: 0 0 auto;
    }

    .header-actions {
        flex: 0 0 auto;
        gap: 8px;
    }

    .phone {
        min-width: 142px;
    }

    .phone strong {
        font-size: 15px;
        white-space: nowrap;
    }

    .btn-small {
        min-height: 38px;
        padding: 0 14px;
        white-space: nowrap;
    }
}

@media (max-width: 1120px) {
    .info-hero,
    .contacts-layout,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-stats,
    .about-process > div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .contact-cards {
        grid-template-columns: 1fr;
    }

    .info-hero-card,
    .contact-card {
        min-height: 170px;
    }
}

@media (max-width: 560px) {
    .about-stats,
    .about-process > div {
        grid-template-columns: 1fr;
    }

    .info-hero-card,
    .contact-form-panel,
    .about-principles article,
    .about-process article,
    .about-stats article,
    .contact-card {
        padding: 20px;
    }

    .info-hero-actions {
        display: grid;
    }
}

.contacts-page {
    max-width: 1180px;
}
.contacts-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: end;
    margin-bottom: 28px;
}
.contacts-head h1 {
    max-width: 720px;
}
.contacts-head .lead-text {
    max-width: 760px;
}
.contacts-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 18px;
    align-items: start;
    margin-top: 0;
}
.contacts-panel,
.contact-form-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #1d2026, #181b20);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.22);
}
.contacts-panel {
    display: grid;
    gap: 0;
    overflow: hidden;
}
.contact-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 10px 24px;
    align-items: center;
    min-height: 0;
    padding: 22px 26px;
    border-bottom: 1px solid rgba(245, 245, 245, 0.08);
    background: transparent;
}
.contact-row:last-of-type {
    border-bottom: 0;
}
.contact-row span {
    color: #ff403a;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 900;
}
.contact-row strong {
    display: block;
    margin: 0;
    font-size: 23px;
    line-height: 1.22;
}
.contact-row small {
    grid-column: 2;
    color: var(--muted);
    line-height: 1.45;
}
.contact-row.primary {
    background: linear-gradient(90deg, rgba(211, 34, 28, 0.16), transparent 52%);
}
.contact-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
}
.contact-socials a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0 13px;
    border: 1px solid rgba(245, 245, 245, 0.14);
    border-radius: 4px;
    background: #15171b;
    color: #fff;
    font-weight: 800;
}
.contacts-note {
    margin: 0 26px 26px;
    padding: 18px 20px;
    border-radius: 8px;
    background: rgba(211, 34, 28, 0.1);
}
.contacts-note strong {
    display: block;
    margin-bottom: 6px;
}
.contacts-note p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}
.contact-form-panel {
    padding: 26px;
}
.contact-form-panel h2 {
    margin: 8px 0 10px;
    font-size: 30px;
    line-height: 1.08;
}
.contact-form-panel p {
    margin-bottom: 18px;
    color: var(--muted);
}
.contact-form-panel input,
.contact-form-panel textarea {
    margin-bottom: 9px;
}
.contact-form-panel .privacy-consent {
    margin-top: 9px;
    font-size: 11px;
    line-height: 1.4;
}

.main-nav .nav-link,
.contact-socials a {
    transition: color 0.18s ease, transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.main-nav .nav-link:hover,
.main-nav .nav-link:focus,
.contact-socials a:hover,
.contact-socials a:focus {
    color: #fff;
    transform: translateY(-1px);
}

.contact-socials a:hover,
.contact-socials a:focus {
    border-color: rgba(211, 34, 28, 0.7);
    background: rgba(211, 34, 28, 0.14);
}

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

.mobile-menu-panel {
    display: contents;
}

@media (max-width: 767.98px) {
    .site-header .topbar {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 46px;
        align-items: center;
        gap: 12px;
        padding: 16px 0;
    }

    .mobile-menu-toggle {
        width: 46px;
        height: 46px;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        justify-self: end;
        border: 1px solid rgba(245, 245, 245, 0.16);
        border-radius: 6px;
        background: linear-gradient(180deg, #24282d, #191c20);
        color: #fff;
        cursor: pointer;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
        transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
    }

    .mobile-menu-toggle span {
        width: 22px;
        height: 2px;
        display: block;
        border-radius: 10px;
        background: currentColor;
        transition: transform 0.18s ease, opacity 0.18s ease;
    }

    .mobile-menu-toggle:hover,
    .mobile-menu-toggle:focus,
    .mobile-menu-toggle.is-open {
        border-color: rgba(211, 34, 28, 0.7);
        background: linear-gradient(180deg, var(--accent-hi), var(--accent));
        transform: translateY(-1px);
    }

    .mobile-menu-toggle.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .mobile-menu-panel {
        grid-column: 1 / -1;
        display: none;
        gap: 10px;
        padding: 12px;
        border: 1px solid rgba(245, 245, 245, 0.1);
        border-radius: 8px;
        background: linear-gradient(180deg, #1d2026, #14171b);
        box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
    }

    .mobile-menu-panel.is-open {
        display: grid;
    }

    .mobile-menu-panel .new-main-nav {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin: 0;
        padding: 0;
        overflow: visible;
        order: initial;
        font-size: 14px;
    }

    .mobile-menu-panel .new-main-nav > a,
    .mobile-menu-panel .new-main-nav .nav-dropdown-toggle {
        min-height: 42px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 9px 12px;
        border: 1px solid rgba(245, 245, 245, 0.1);
        border-radius: 6px;
        background: linear-gradient(180deg, #202329, #191c21);
        color: var(--text);
        white-space: normal;
    }

    .mobile-menu-panel .nav-dropdown {
        display: grid;
        gap: 8px;
    }

    .mobile-menu-panel .nav-dropdown-menu {
        position: static;
        width: 100%;
        max-width: none;
        margin-top: 0;
        padding: 8px;
        border: 1px solid rgba(245, 245, 245, 0.1);
        background: #15171b;
        color: var(--text);
        box-shadow: none;
    }

    .mobile-menu-panel .nav-dropdown-menu a,
    .mobile-menu-panel .nav-dropdown-menu span {
        color: var(--text) !important;
    }

    .mobile-menu-panel .nav-dropdown-menu a:hover,
    .mobile-menu-panel .nav-dropdown-menu a:focus {
        background: rgba(211, 34, 28, 0.16);
        color: #fff !important;
    }

    .mobile-menu-panel .header-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin: 0;
    }

    .mobile-menu-panel .phone {
        min-width: 0;
        padding: 12px;
        border: 1px solid rgba(245, 245, 245, 0.1);
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.03);
    }

    .mobile-menu-panel .phone strong {
        font-size: 16px;
    }

    .mobile-menu-panel .btn-small {
        width: 100%;
        min-height: 46px;
    }
}

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

@media (max-width: 720px) {
    .contacts-head {
        grid-template-columns: 1fr;
        align-items: start;
    }
    .contacts-head .btn {
        width: 100%;
    }
    .contact-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 20px;
    }
    .contact-row small {
        grid-column: auto;
    }
    .contacts-note {
        margin: 0 20px 20px;
    }
}

/* Give the content-heavy home slide enough breathing room. */
.hero-slider.home-slider {
    min-height: clamp(620px, 46vw, 680px);
}

.home-slider .slide {
    padding-block: 32px;
}

/* Keep matching listing details on the same horizontal lines. */
.car-grid .inventory-card {
    display: grid;
    grid-template-rows: auto 1fr;
}

.car-grid .inventory-card .car-body {
    display: grid;
    grid-template-rows: 66px 27px 54px auto;
    align-content: start;
    gap: 10px;
}

.car-grid .inventory-card .car-body h3,
.car-grid .inventory-card .car-body p {
    margin: 0;
    overflow: hidden;
}

.car-grid .inventory-card .car-body h3 {
    line-height: 1.22;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.car-grid .inventory-card .car-body p {
    line-height: 1.65;
}

.car-grid .inventory-card .car-body p:nth-of-type(2) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.car-grid .inventory-card .car-body strong {
    align-self: start;
    justify-self: start;
}

@media (max-width: 820px) {
    .hero-slider.home-slider {
        min-height: 640px;
    }

    .home-slider .slide {
        padding-block: 28px;
    }
}

@media (max-width: 560px) {
    .hero-slider.home-slider {
        min-height: 680px;
    }

    .home-slider .slide {
        padding: 24px 0 64px;
    }
}
