/*
   CARBURG - Premium Auto Import Website
   Styles
*/

/* ==================== VARIABLES ==================== */
:root {
    --black: #0a0a0a;
    --white: #ffffff;
    --red: #e63946;
    --gray-900: #1a1a1a;
    --gray-800: #2a2a2a;
    --gray-700: #3a3a3a;
    --gray-600: #6a6a6a;
    --gray-500: #8a8a8a;
    --gray-400: #aaaaaa;
    --gray-300: #cccccc;
    --gray-200: #e0e0e0;
    --gray-100: #e5e5e5;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==================== RESET ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--gray-300);
    overflow-x: hidden;
    /* cursor: none; - Moved to JS to ensure cursor is visible if JS fails */
}

a {
    color: inherit;
    text-decoration: none;
}

ul { list-style: none; }

::selection {
    background: var(--red);
    color: var(--white);
}

/* ==================== LOADER ==================== */
.loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: opacity 0.6s, visibility 0.6s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--white);
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: var(--gray-800);
    border-radius: 2px;
    overflow: hidden;
}

.loader-progress {
    width: 0;
    height: 100%;
    background: var(--red);
    animation: loaderFill 1.8s var(--ease) forwards;
}

@keyframes loaderFill {
    to { width: 100%; }
}

/* ==================== CURSOR ==================== */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-follower {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(230, 57, 70, 0.4);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor.hover {
    width: 50px;
    height: 50px;
    background: rgba(230, 57, 70, 0.15);
}

.cursor-follower.hover {
    width: 60px;
    height: 60px;
    border-color: var(--red);
}

/* ==================== NAVIGATION ==================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 3rem;
    transition: all 0.4s var(--ease);
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 3rem;
    border-bottom: 1px solid var(--gray-800);
}

.nav.menu-open {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #0a0a0a !important;
    transition: none;
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--white);
}

.logo-dot {
    width: 6px;
    height: 6px;
    background: var(--red);
    border-radius: 50%;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-500);
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--red);
    transition: width 0.3s var(--ease);
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-phone {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--gray-400);
    transition: color 0.3s;
}

.nav-phone:hover {
    color: var(--white);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.burger span {
    width: 26px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
    display: block;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==================== HERO ==================== */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(230, 57, 70, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 30%, rgba(230, 57, 70, 0.04) 0%, transparent 50%);
}

.hero-grain {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    z-index: 2;
    padding: 5.5rem 3rem 1rem;
}

.hero picture {
    display: block;
    width: 100vw;
    margin-top: -2rem;
}

.hero-car-img {
    position: relative;
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    z-index: 1;
    opacity: 1;
    mix-blend-mode: lighten;
    pointer-events: none;
    user-select: none;
    margin: 0;
    padding: 0;
}

.hero-tag {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.tag-dot {
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-tag span {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-500);
}

.hero-title {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.6rem;
}

.title-line {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.8vw, 4.2rem);
    font-weight: 700;
    line-height: 1.08;
    color: var(--white);
    letter-spacing: -0.03em;
}

.title-line.accent {
    color: var(--white);
}

.hero-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-500);
    max-width: 500px;
    margin-bottom: 1.5rem;
}

.hero-actions {
    position: absolute;
    bottom: 2rem;
    left: 5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    z-index: 3;
}

.btn-main {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.5rem;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    text-transform: uppercase;
}

.btn-main:hover {
    background: #c62f3b;
    transform: translateY(-2px);
}

.btn-main.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 0.9rem;
}

.btn-main.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 1.5rem;
    border: 1px solid var(--gray-700);
    color: var(--gray-300);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-outline:hover {
    border-color: var(--white);
    color: var(--white);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    z-index: 3;
}

.hero-scroll span {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-600);
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--red), transparent);
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; height: 60px; }
    50% { opacity: 0.3; height: 40px; }
}

/* ==================== MARQUEE ==================== */
.marquee {
    padding: 1rem 0;
    border-top: 1px solid var(--gray-800);
    border-bottom: 1px solid var(--gray-800);
    overflow: hidden;
    background: var(--white);
    width: 100%;
    max-height: 60px;
}

.marquee-track {
    display: flex;
    gap: 2rem;
    animation: marqueeScroll 30s linear infinite;
    white-space: nowrap;
    width: max-content;
    align-items: center;
}

.marquee-track span {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-500);
    flex-shrink: 0;
}

.marquee-track .sep {
    color: rgba(255,255,255,0.4);
    font-size: 0.5rem;
}

.marquee-track img {
    height: 30px;
    width: auto;
    max-width: 80px;
    max-height: 30px;
    flex-shrink: 0;
    opacity: 1;
    transition: opacity 0.3s;
    vertical-align: middle;
    object-fit: contain;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==================== SECTIONS COMMON ==================== */
.section-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.label-num {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--red);
    letter-spacing: 0.1em;
}

.label-text {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--gray-600);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.accent {
    color: var(--red);
}

/* ==================== ABOUT ==================== */
.about {
    padding: 8rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

.about-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--gray-400);
    margin-bottom: 1.5rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-top: 3rem;
    border-top: 1px solid var(--gray-800);
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
}

.stat-plus {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--red);
    font-weight: 600;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-600);
    margin-top: 0.5rem;
}

/* ==================== SERVICES ==================== */
.services {
    padding: 6rem 0;
    background: var(--gray-900);
}

.services .section-title {
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    background-color: var(--black);
    border: 1px solid var(--gray-800);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background-size 0.4s var(--ease);
    
    /* Animated Border Gradients */
    background-image: 
        linear-gradient(var(--red), var(--red)), 
        linear-gradient(var(--red), var(--red)), 
        linear-gradient(var(--red), var(--red)), 
        linear-gradient(var(--red), var(--red));
    background-repeat: no-repeat;
    background-position: 
        top left,
        top right,
        bottom right,
        bottom left;
    background-size: 
        0% 2px,
        2px 0%,
        0% 2px,
        2px 0%;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    background-size: 
        100% 2px,
        2px 100%,
        100% 2px,
        2px 100%;
}

/* Obsolete ::before removed, functionally replaced by background gradients above */

.card-num {
    display: none;
}

.card-icon {
    color: var(--red);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--gray-500);
}

.card-arrow {
    display: block;
    margin-top: 1.5rem;
    font-size: 1.2rem;
    color: var(--gray-700);
    transition: color 0.3s, transform 0.3s;
}

.service-card:hover .card-arrow {
    color: var(--red);
    transform: translateX(5px);
}

/* ==================== GEOGRAPHY ==================== */
.geography {
    padding: 6rem 0;
}

.geography .section-title {
    margin-bottom: 3rem;
}

.geo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.geo-card {
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
    padding: 2.5rem;
    transition: all 0.4s var(--ease);
}

.geo-card:hover {
    border-color: var(--gray-700);
    transform: translateY(-4px);
}

.geo-flag {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.geo-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
}

.geo-card p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

.geo-features li {
    font-size: 0.8rem;
    color: var(--gray-400);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-800);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.geo-features li::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--red);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ==================== PROCESS ==================== */
.process {
    padding: 6rem 0;
    background: var(--gray-900);
}

.process .section-title {
    margin-bottom: 4rem;
}

.process-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.step {
    flex: 1;
    padding: 0 2rem;
}

.step-num {
    display: none;
}

.step h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.step p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--gray-500);
}

.step-line {
    width: 1px;
    height: 120px;
    background: linear-gradient(to bottom, var(--red), var(--gray-800));
    flex-shrink: 0;
    margin-top: 1rem;
}

/* ==================== GUARANTEE ==================== */
.guarantee {
    padding: 6rem 0;
}

.guarantee-block {
    text-align: center;
    border: 2px solid var(--red);
    padding: 4rem 3rem;
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.guarantee-badge {
    position: absolute;
    top: -0.9rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--black);
    padding: 0 1.5rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--red);
    letter-spacing: 0.2em;
}

.guarantee-countries {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 2rem;
    max-width: 480px;
    margin: 0 auto;
}

.guarantee-country-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1rem;
    border: 1px solid var(--gray-800);
    border-radius: 8px;
    transition: border-color 0.3s;
}

.guarantee-country-item:hover {
    border-color: var(--red);
}

.guarantee-country-name {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.02em;
}

.guarantee-country-period {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--red);
    white-space: nowrap;
}

.guarantee-country-no .guarantee-country-period {
    color: var(--gray-600);
}

.guarantee-country-no {
    opacity: 0.6;
}

.guarantee-text {
    font-size: 1.15rem;
    color: var(--gray-400);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

.guarantee-extras {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 700px;
    margin: 3rem auto 0;
}

.guarantee-extra-card {
    border: 1px solid var(--gray-800);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: border-color 0.3s var(--ease);
}

.guarantee-extra-card:hover {
    border-color: var(--red);
}

.extra-icon {
    margin-bottom: 1.5rem;
}

.extra-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.extra-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--gray-500);
}

@media (max-width: 768px) {
    .guarantee-block {
        padding: 3rem 1.5rem;
    }
    .guarantee-countries {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        max-width: 100%;
    }
    .guarantee-extras {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .guarantee-extra-card {
        padding: 2rem 1.5rem;
    }
}

/* ==================== CLIENTS GALLERY ==================== */
.clients-gallery {
    padding: 6rem 0;
    overflow: hidden;
}

.gallery-subtitle {
    font-size: 1.05rem;
    color: var(--gray-500);
    line-height: 1.6;
    max-width: 600px;
    margin-top: 1rem;
}

.gallery-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.gallery-slider-track {
    display: flex;
    gap: 1rem;
    overflow: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    flex: 1;
}

.gallery-slider-track img {
    min-width: calc(33.333% - 0.67rem);
    max-width: calc(33.333% - 0.67rem);
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 0;
    cursor: pointer;
    transition: transform 0.4s var(--ease), filter 0.3s;
    filter: brightness(0.85);
}

.gallery-slider-track img:hover {
    transform: scale(1.03);
    filter: brightness(1);
}

.gallery-slider-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 2;
}

.gallery-slider-btn:hover {
    border-color: var(--red);
    color: var(--red);
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-700);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.gallery-dot.active {
    background: var(--red);
    transform: scale(1.3);
}

/* Fullscreen overlay */
.client-photo-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.client-photo-overlay.active {
    display: flex;
}

.client-photo-overlay img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
}

.client-photo-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
}

.client-photo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.client-photo-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.client-photo-prev {
    left: 1rem;
}

.client-photo-next {
    right: 1rem;
}

@media (max-width: 1024px) {
    .gallery-slider-track img {
        min-width: calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
    }
}

@media (max-width: 768px) {
    .gallery-slider-btn {
        display: none;
    }

    .gallery-slider-track {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .gallery-slider-track::-webkit-scrollbar {
        display: none;
    }

    .gallery-slider-track img {
        min-width: 85%;
        max-width: 85%;
        scroll-snap-align: center;
    }
}

/* ==================== CTA ==================== */
.cta {
    padding: 8rem 0;
    text-align: center;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.cta-desc {
    font-size: 1rem;
    color: var(--gray-500);
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== CONTACT ==================== */
.contact {
    padding: 6rem 0;
    background: var(--gray-900);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--gray-400);
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-block {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-600);
}

.contact-value {
    font-size: 1rem;
    color: var(--gray-200);
    transition: color 0.3s;
}

a.contact-value:hover {
    color: var(--red);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--black);
    border: 1px solid var(--gray-800);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-600);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--red);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ==================== FAQ ==================== */
.faq {
    padding: 6rem 0;
    background: var(--black);
}

.faq-list {
    max-width: 800px;
    margin-top: 3rem;
}

.faq-item {
    border-bottom: 1px solid var(--gray-800);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--gray-200);
    list-style: none;
    transition: color 0.3s;
    user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--red);
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform 0.3s;
    font-weight: 300;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-item[open] .faq-question {
    color: var(--white);
}

.faq-question:hover {
    color: var(--white);
}

.faq-answer {
    padding: 0 0 1.5rem;
}

.faq-answer p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--gray-400);
}

/* ==================== FOOTER ==================== */
.footer {
    padding: 4rem 0 0;
    border-top: 1px solid var(--gray-800);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    padding-bottom: 3rem;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-top: 1rem;
    line-height: 1.6;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--white);
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-heading {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.footer-col a, .footer-col span {
    font-size: 0.85rem;
    color: var(--gray-500);
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid var(--gray-800);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-bottom span {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.footer-privacy {
    font-size: 0.8rem;
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-privacy:hover {
    color: var(--white);
}

.dev-banner {
    padding: 1rem 0;
    border-top: 1px solid var(--gray-800);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.dev-banner span {
    font-size: 0.7rem;
    color: var(--gray-600);
    letter-spacing: 0.05em;
}

.dev-banner a {
    font-size: 0.7rem;
    color: var(--gray-500);
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.dev-banner a:hover {
    color: var(--red);
}

/* ==================== MODAL ==================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
}

.modal-box {
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
    padding: 3rem;
    max-width: 400px;
    text-align: center;
    position: relative;
    animation: modalIn 0.4s var(--ease);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--white);
}

.modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(230, 57, 70, 0.1);
    border: 2px solid var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: var(--red);
}

.modal-box h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.modal-box p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ==================== BRANDS ==================== */
.brands {
    padding: 3rem 0;
    border-bottom: 1px solid var(--gray-800);
}

.brands-track {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem 3rem;
}

.brand-item {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--gray-600);
    transition: color 0.3s;
    white-space: nowrap;
}

.brand-item:hover {
    color: var(--white);
}

/* ==================== CALCULATOR ==================== */
.calculator {
    padding: 6rem 0;
}

.calc-subtitle {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

.calc-disclaimer {
    font-size: 0.8rem;
    color: var(--red);
    opacity: 0.85;
    margin-bottom: 3rem;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.calc-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.calc-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.calc-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-500);
}

.calc-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.calc-radio {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    cursor: pointer;
}

.calc-radio input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.calc-radio span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 0.75rem;
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
    color: var(--gray-400);
    font-size: 0.85rem;
    transition: all 0.3s;
    white-space: nowrap;
}

.calc-radio input:checked + span {
    border-color: var(--red);
    color: var(--white);
    background: rgba(230, 57, 70, 0.1);
}

.calc-input-wrap {
    position: relative;
}

.calc-input-wrap input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.25rem;
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
}

.calc-input-wrap input:focus {
    border-color: var(--red);
}

.calc-input-wrap input::placeholder {
    color: var(--gray-600);
}

.calc-currency {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    font-weight: 600;
    font-size: 0.9rem;
}

.calc-select {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%236a6a6a' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    transition: border-color 0.3s;
}

.calc-select:focus {
    border-color: var(--red);
}

.calc-select option {
    background: var(--gray-900);
    color: var(--white);
}

.calc-result {
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calc-result-placeholder {
    text-align: center;
    color: var(--gray-600);
}

.calc-result-placeholder svg {
    margin-bottom: 1rem;
    opacity: 0.4;
}

.calc-result-placeholder p {
    font-size: 0.85rem;
}

.calc-result-data {
    width: 100%;
}

.calc-result-data h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.calc-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-800);
    font-size: 0.85rem;
}

.calc-line span:first-child {
    color: var(--gray-400);
}

.calc-line span:last-child {
    color: var(--white);
    font-weight: 600;
    font-family: var(--font-display);
}

.calc-line.calc-total {
    border-bottom: none;
    border-top: 2px solid var(--red);
    margin-top: 0.5rem;
    padding-top: 1rem;
}

.calc-line.calc-total span:first-child {
    color: var(--white);
    font-weight: 600;
}

.calc-line.calc-total span:last-child {
    color: var(--red);
    font-size: 1.2rem;
}

.calc-note {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-top: 1rem;
    font-style: italic;
}

/* ==================== REVIEWS ==================== */
.reviews {
    padding: 6rem 0;
    background: var(--gray-900);
}

.reviews .section-title {
    margin-bottom: 3rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.review-card {
    background: var(--black);
    border: 1px solid var(--gray-800);
    padding: 2rem;
    transition: all 0.4s var(--ease);
}

.review-card:hover {
    border-color: var(--gray-700);
    transform: translateY(-4px);
}

.review-stars {
    color: var(--red);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.review-text {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--gray-400);
    margin-bottom: 1.5rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.review-avatar {
    width: 40px;
    height: 40px;
    background: rgba(230, 57, 70, 0.15);
    border: 1px solid var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--red);
    flex-shrink: 0;
}

.review-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
}

.review-car {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-top: 0.15rem;
}

/* ==================== YANDEX MAP ==================== */
.contact-map {
    margin-top: 3rem;
    border: 1px solid var(--gray-800);
    overflow: hidden;
}

.contact-map iframe {
    display: block;
    filter: grayscale(80%) invert(92%) contrast(90%);
    transition: filter 0.4s;
}

.contact-map:hover iframe {
    filter: grayscale(50%) invert(92%) contrast(90%);
}

/* ==================== FLOATING TELEGRAM ==================== */
.floating-tg {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: #0088cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    z-index: 900;
    box-shadow: 0 4px 20px rgba(0, 136, 204, 0.4);
    transition: all 0.3s var(--ease);
    opacity: 0;
    transform: translateY(20px);
}

.floating-tg.visible {
    opacity: 1;
    transform: translateY(0);
}

.floating-tg:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 136, 204, 0.6);
}

/* ==================== COOKIE BANNER ==================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 950;
    background: var(--gray-900);
    border-top: 1px solid var(--gray-800);
    padding: 1rem 2rem;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    animation: slideUp 0.5s var(--ease);
}

.cookie-banner.show {
    display: flex;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-banner p {
    font-size: 0.8rem;
    color: var(--gray-400);
    margin: 0;
}

.cookie-banner a {
    color: var(--red);
    text-decoration: underline;
    transition: color 0.3s;
}

.cookie-banner a:hover {
    color: var(--white);
}

.cookie-accept {
    padding: 0.5rem 1.5rem;
    background: var(--red);
    color: var(--white);
    border: none;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.05em;
    transition: background 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.cookie-accept:hover {
    background: #c62f3b;
}

/* ==================== REVEAL ANIMATIONS ==================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .hero picture {
        margin-top: -1rem;
    }
    .hero-car-img {
        width: 100%;
        opacity: 0.85;
    }
    .hero-content {
        padding: 5rem 2rem 1rem;
    }
    .hero-actions {
        bottom: 1.5rem;
        left: 4rem;
    }
    .hero-scroll {
        left: 2rem;
        bottom: 1.5rem;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .calc-grid {
        grid-template-columns: 1fr;
    }
    .calc-radio {
        flex: 0 0 calc(33.33% - 0.7rem);
    }
    .process-steps {
        flex-direction: column;
        gap: 2rem;
    }
    .step-line {
        width: 60px;
        height: 1px;
        background: linear-gradient(to right, var(--red), var(--gray-800));
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .marquee {
        max-height: 50px;
        padding: 0.75rem 0;
    }

    .marquee-track {
        gap: 1.5rem;
    }

    .marquee-track img {
        height: 20px;
        max-height: 20px;
        max-width: 50px;
    }

    .calc-radio-group {
        gap: 0.5rem;
    }

    .calc-radio {
        flex: 0 0 calc(33.33% - 0.35rem);
    }

    .calc-radio span {
        padding: 0.6rem 0.5rem;
        font-size: 0.75rem;
        gap: 0.25rem;
    }

    .calc-result {
        padding: 1.5rem;
    }

    .nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #0a0a0a;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        pointer-events: none;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-links a {
        font-size: 1.2rem;
        color: var(--gray-300);
    }

    .nav-phone {
        display: none;
    }

    .burger {
        display: flex;
    }

    .hero {
        padding: 0;
    }

    .hero-tag {
        margin-bottom: 0.75rem;
    }

    .hero-tag span {
        font-size: 0.75rem;
        letter-spacing: 0.25em;
    }

    .title-line {
        font-size: clamp(2rem, 8vw, 3.2rem);
        line-height: 1.05;
        letter-spacing: -0.04em;
    }

    .hero-title {
        margin-bottom: 0.5rem;
    }

    .hero-desc {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .hero-content {
        padding: 6rem 1.25rem 0.75rem;
    }

    .hero-actions {
        position: relative;
        bottom: auto;
        left: auto;
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0 1.25rem;
        margin-bottom: 0.5rem;
    }

    .hero-actions .btn-main,
    .hero-actions .btn-outline {
        padding: 0.8rem 1.4rem;
        font-size: 0.75rem;
    }

    .hero-scroll {
        display: none;
    }

    .hero picture {
        margin-top: 3rem;
    }

    .hero-car-img {
        width: 100%;
        max-width: none;
        opacity: 0.8;
        mix-blend-mode: lighten;
    }

    .section-inner {
        padding: 0 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .geo-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-top {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-inner {
        padding: 0 1.5rem;
    }

    .floating-tg {
        bottom: 1.2rem;
        right: 1.2rem;
        width: 48px;
        height: 48px;
    }

    .floating-tg svg {
        width: 20px;
        height: 20px;
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 1rem 1.5rem;
    }

    .cursor, .cursor-follower {
        display: none;
    }

    body {
        cursor: auto;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 5.5rem 1rem 0.5rem;
    }

    .hero picture {
        margin-top: 2.5rem;
    }

    .hero-car-img {
        width: 100%;
        opacity: 0.75;
    }

    .title-line {
        font-size: clamp(1.8rem, 9vw, 2.8rem);
    }

    .hero-desc {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .hero-actions {
        gap: 0.5rem;
    }

    .hero-actions .btn-main,
    .hero-actions .btn-outline {
        padding: 0.7rem 1.2rem;
        font-size: 0.7rem;
    }

    .stat-num {
        font-size: 2rem;
    }

    .cta-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
}

/* Auto/Index Animated Text Cycle */
#animated-word-container {
    display: inline-block;
    position: relative;
    min-width: 250px; /* Adjust based on word length to prevent layout shift */
    vertical-align: top;
    text-align: left;
    height: 1.2em;
    overflow: hidden;
}

.word-cycle-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(-20px);
    filter: blur(8px);
    transition: all 0.4s ease-out;
    white-space: nowrap;
}

.word-cycle-item.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.word-cycle-item.exit {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(8px);
    transition: all 0.3s ease-in;
}

/* Ensure font size matches parent h1 */
.word-cycle-item {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

/* ==================== CARBON REDESIGN (2026-02) ==================== */
:root {
    --black: #02050b;
    --white: #f5f9ff;
    --red: #ff3148;
    --gray-900: #050b13;
    --gray-800: #0f1b2a;
    --gray-700: #21354a;
    --gray-600: #5c7894;
    --gray-500: #89a2bc;
    --gray-400: #a5bfd7;
    --gray-300: #c2d6ea;
    --gray-200: #d8e8f6;
    --gray-100: #ebf4ff;
    --cb-blue: #1ec9ff;
    --cb-blue-soft: #7be7ff;
    --cb-red-soft: #ff5d6f;
    --cb-panel: rgba(7, 14, 24, 0.78);
    --cb-panel-strong: rgba(5, 11, 19, 0.92);
    --cb-line-soft: rgba(123, 231, 255, 0.24);
    --cb-line-hard: rgba(255, 93, 111, 0.38);
}

body {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(circle at 14% 12%, rgba(30, 201, 255, 0.16), transparent 35%),
        radial-gradient(circle at 86% 18%, rgba(255, 49, 72, 0.14), transparent 30%),
        linear-gradient(158deg, #02050b 0%, #050d18 38%, #03060d 100%);
    color: var(--gray-300);
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

body::before {
    z-index: -2;
    background-image: url("../img/carbon/carbon-sections-desktop.webp");
    background-size: 260px 260px;
    opacity: 0.42;
}

body::after {
    z-index: -1;
    background:
        repeating-linear-gradient(128deg, transparent 0 120px, rgba(30, 201, 255, 0.08) 120px 123px, transparent 123px 210px),
        repeating-linear-gradient(128deg, transparent 0 240px, rgba(255, 93, 111, 0.08) 240px 242px, transparent 242px 330px);
    opacity: 0.44;
    animation: cbSweep 18s linear infinite;
}

@keyframes cbSweep {
    from { background-position: 0 0, 0 0; }
    to { background-position: 260px -180px, -320px 260px; }
}

::selection {
    background: var(--cb-blue);
    color: #08111d;
}

.loader {
    background: linear-gradient(145deg, #02050b 0%, #081321 100%);
}

.loader-logo {
    text-shadow: 0 0 28px rgba(123, 231, 255, 0.3);
}

.loader-progress {
    background: linear-gradient(90deg, var(--cb-blue) 0%, var(--red) 100%);
}

.cursor {
    background: var(--cb-blue);
    box-shadow: 0 0 12px rgba(123, 231, 255, 0.9);
}

.cursor-follower {
    border-color: rgba(30, 201, 255, 0.45);
}

.cursor.hover {
    background: rgba(30, 201, 255, 0.15);
}

.cursor-follower.hover {
    border-color: rgba(255, 93, 111, 0.8);
}

.nav {
    padding: 1.15rem 2.4rem;
    background: linear-gradient(145deg, rgba(6, 14, 24, 0.84), rgba(7, 11, 18, 0.7));
    border-bottom: 1px solid var(--cb-line-soft);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
}

.nav::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--cb-blue) 25%, var(--red) 50%, var(--cb-blue) 75%, transparent 100%);
    opacity: 0.5;
}

.nav.scrolled {
    padding: 0.95rem 2.4rem;
    background: linear-gradient(145deg, rgba(5, 10, 18, 0.94), rgba(5, 10, 17, 0.94));
    border-bottom-color: rgba(123, 231, 255, 0.2);
}

.logo-text {
    letter-spacing: 0.24em;
    text-shadow: 0 0 16px rgba(123, 231, 255, 0.22);
}

.logo-dot {
    width: 7px;
    height: 7px;
    background: var(--red);
    box-shadow: 0 0 12px rgba(255, 93, 111, 0.85);
}

.nav-links a {
    color: var(--gray-400);
}

.nav-links a::after {
    height: 2px;
    background: linear-gradient(90deg, var(--cb-blue), var(--red));
}

.nav-links a:hover {
    color: var(--white);
    text-shadow: 0 0 12px rgba(123, 231, 255, 0.35);
}

.nav-phone {
    color: var(--gray-300);
}

.nav-phone:hover {
    color: var(--cb-blue-soft);
}

.burger span {
    background: linear-gradient(90deg, var(--cb-blue-soft), #ffffff);
}

.hero {
    min-height: 100vh;
    border-bottom: 1px solid var(--cb-line-soft);
}

.hero-bg {
    background:
        linear-gradient(145deg, rgba(1, 5, 12, 0.96) 0%, rgba(5, 11, 20, 0.76) 45%, rgba(2, 8, 15, 0.94) 100%),
        url("../img/carbon/carbon-sections-desktop.webp");
    background-size: cover, 230px 230px;
}

.hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(132deg, transparent 0 124px, rgba(30, 201, 255, 0.1) 124px 126px, transparent 126px 228px),
        repeating-linear-gradient(132deg, transparent 0 246px, rgba(255, 93, 111, 0.1) 246px 248px, transparent 248px 356px);
    mix-blend-mode: screen;
    opacity: 0.65;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 36%, rgba(255, 93, 111, 0.19), transparent 36%),
        radial-gradient(circle at 78% 20%, rgba(30, 201, 255, 0.28), transparent 36%);
}

.hero-grain {
    opacity: 0.018;
}

.hero-content {
    padding: 6.8rem 3rem 1.2rem;
}

.hero-content::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 3.8rem auto -0.5rem 0;
    width: min(740px, calc(100% - 1rem));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    background:
        linear-gradient(150deg, rgba(8, 16, 28, 0.8) 0%, rgba(6, 13, 23, 0.58) 55%, rgba(4, 10, 18, 0.78) 100%),
        url("../img/carbon/carbon-sections-desktop.webp");
    background-size: cover, 300px 300px;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.48),
        inset 0 0 0 1px rgba(123, 231, 255, 0.08);
}

.hero-tag span:last-child {
    color: var(--gray-300);
    letter-spacing: 0.26em;
}

.tag-dot {
    width: 9px;
    height: 9px;
    background: linear-gradient(135deg, var(--cb-blue-soft), var(--cb-blue));
    box-shadow: 0 0 16px rgba(123, 231, 255, 0.85);
}

.hero-title {
    margin-bottom: 0.8rem;
}

.title-line {
    line-height: 1.04;
    text-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

.title-line.accent {
    color: var(--white);
    -webkit-text-fill-color: var(--white);
    background: none;
    text-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

.hero-desc {
    color: var(--gray-300);
    max-width: 560px;
}

.hero-actions {
    left: 4.5rem;
    bottom: 1.7rem;
    gap: 0.7rem;
    padding: 0.65rem;
    border-radius: 16px;
    border: 1px solid var(--cb-line-soft);
    background: rgba(5, 10, 17, 0.72);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
}

.btn-main,
.btn-outline {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.btn-main {
    background: linear-gradient(116deg, var(--red) 0%, #f03047 38%, #1592c8 120%);
    border: 1px solid rgba(255, 93, 111, 0.56);
    box-shadow: 0 12px 26px rgba(255, 49, 72, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.btn-main::before,
.btn-outline::before {
    content: "";
    position: absolute;
    top: -120%;
    left: -35%;
    width: 45%;
    height: 320%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: rotate(24deg);
    transition: transform 0.7s var(--ease);
}

.btn-main:hover::before,
.btn-outline:hover::before {
    transform: translateX(320%) rotate(24deg);
}

.btn-main:hover {
    background: linear-gradient(116deg, #ff4055 0%, #f5364c 40%, #1ea4db 120%);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid rgba(123, 231, 255, 0.35);
    background: linear-gradient(145deg, rgba(8, 16, 28, 0.7), rgba(8, 15, 27, 0.45));
    color: var(--gray-200);
}

.btn-outline:hover {
    border-color: var(--cb-blue);
    background: linear-gradient(145deg, rgba(13, 24, 39, 0.88), rgba(8, 18, 32, 0.68));
    color: #ffffff;
}

.hero-scroll span {
    color: rgba(123, 231, 255, 0.65);
}

.scroll-line {
    background: linear-gradient(to bottom, var(--cb-blue), var(--red), transparent);
}

.hero-car-img {
    mix-blend-mode: screen;
    filter: drop-shadow(0 34px 46px rgba(0, 0, 0, 0.52));
}

.marquee {
    border-top: 1px solid var(--cb-line-soft);
    border-bottom: 1px solid var(--cb-line-soft);
    background: linear-gradient(180deg, rgba(6, 13, 22, 0.78), rgba(5, 10, 17, 0.9));
}

.marquee-track .sep {
    color: rgba(123, 231, 255, 0.75);
}

.marquee-track img {
    filter: drop-shadow(0 0 10px rgba(123, 231, 255, 0.2));
}

.brands {
    border-bottom: 1px solid var(--cb-line-soft);
    background: linear-gradient(180deg, rgba(6, 12, 20, 0.65), rgba(6, 11, 18, 0.82));
}

.brand-item {
    color: var(--gray-400);
}

.brand-item:hover {
    color: var(--cb-blue-soft);
    text-shadow: 0 0 14px rgba(123, 231, 255, 0.4);
}

.section-label {
    margin-bottom: 2.2rem;
}

.label-num {
    color: var(--cb-blue-soft);
    text-shadow: 0 0 8px rgba(123, 231, 255, 0.35);
}

.label-text {
    color: var(--gray-500);
}

.section-title {
    color: var(--gray-100);
}

.accent {
    color: var(--red);
}

.about,
.geography,
.guarantee,
.calculator,
.clients-gallery,
.faq,
.cta {
    background: transparent;
}

.services,
.process,
.contact,
.reviews {
    background: linear-gradient(180deg, rgba(6, 11, 18, 0.6), rgba(7, 13, 20, 0.82));
}

.stats {
    border-top-color: rgba(123, 231, 255, 0.2);
}

.stat-num {
    color: #f5fbff;
    text-shadow: 0 0 18px rgba(123, 231, 255, 0.16);
}

.stat-plus {
    color: var(--cb-blue-soft);
}

.service-card,
.geo-card,
.review-card,
.calc-result,
.contact-map,
.guarantee-extra-card,
.guarantee-country-item,
.modal-box {
    border: 1px solid rgba(123, 231, 255, 0.2);
    border-radius: 16px;
    background:
        linear-gradient(155deg, rgba(9, 18, 30, 0.78), rgba(7, 13, 23, 0.58) 58%, rgba(5, 11, 18, 0.8)),
        url("../img/carbon/carbon-sections-desktop.webp");
    background-size: cover, 320px 320px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.service-card,
.geo-card,
.review-card,
.guarantee-extra-card,
.guarantee-country-item {
    position: relative;
    overflow: hidden;
}

.service-card::before,
.geo-card::before,
.review-card::before,
.guarantee-extra-card::before,
.guarantee-country-item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(130deg, rgba(123, 231, 255, 0.5), rgba(255, 93, 111, 0.46));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s var(--ease);
    pointer-events: none;
}

.service-card:hover::before,
.geo-card:hover::before,
.review-card:hover::before,
.guarantee-extra-card:hover::before,
.guarantee-country-item:hover::before {
    opacity: 1;
}

.service-card:hover,
.geo-card:hover,
.review-card:hover,
.guarantee-extra-card:hover {
    transform: translateY(-6px);
    border-color: rgba(123, 231, 255, 0.36);
}

.card-icon {
    color: var(--cb-blue-soft);
}

.card-arrow {
    color: var(--gray-500);
}

.service-card:hover .card-arrow {
    color: var(--cb-blue-soft);
}

.geo-features li {
    border-bottom-color: rgba(123, 231, 255, 0.15);
}

.geo-features li::before {
    background: var(--cb-blue);
}

.process-steps {
    border: 1px solid rgba(123, 231, 255, 0.18);
    border-radius: 18px;
    padding: 2rem 1rem;
    background: linear-gradient(150deg, rgba(8, 16, 27, 0.72), rgba(7, 12, 20, 0.52));
}

.step-line {
    background: linear-gradient(to bottom, var(--cb-blue), rgba(123, 231, 255, 0.2), var(--red));
}

.guarantee-block {
    border: 1px solid rgba(123, 231, 255, 0.35);
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(7, 14, 25, 0.86), rgba(6, 11, 20, 0.72)),
        url("../img/carbon/carbon-sections-desktop.webp");
    background-size: cover, 360px 360px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.35);
}

.guarantee-badge {
    top: -0.95rem;
    border: 1px solid rgba(123, 231, 255, 0.3);
    border-radius: 999px;
    background: linear-gradient(130deg, rgba(8, 17, 29, 0.95), rgba(7, 13, 22, 0.95));
    color: var(--cb-blue-soft);
}

.guarantee-country-period {
    color: var(--cb-blue-soft);
}

.guarantee-country-no .guarantee-country-period {
    color: var(--gray-600);
}

.gallery-slider-track img {
    border-radius: 14px;
    border: 1px solid rgba(123, 231, 255, 0.2);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
}

.gallery-slider-btn {
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(9, 18, 30, 0.9), rgba(8, 14, 23, 0.8));
    border-color: rgba(123, 231, 255, 0.3);
}

.gallery-slider-btn:hover {
    color: var(--cb-blue-soft);
    border-color: var(--cb-blue);
}

.gallery-dot {
    background: rgba(123, 231, 255, 0.35);
}

.gallery-dot.active {
    background: var(--cb-blue);
}

.cta {
    border-top: 1px solid rgba(123, 231, 255, 0.14);
    border-bottom: 1px solid rgba(123, 231, 255, 0.14);
    background:
        linear-gradient(145deg, rgba(6, 11, 18, 0.78), rgba(5, 10, 16, 0.88)),
        url("../img/carbon/carbon-sections-desktop.webp");
    background-size: cover, 280px 280px;
}

.cta-title {
    text-shadow: 0 14px 30px rgba(0, 0, 0, 0.42);
}

.contact-form .form-group input,
.contact-form .form-group textarea,
.calc-input-wrap input,
.calc-select,
.calc-radio span {
    border-radius: 12px;
    border-color: rgba(123, 231, 255, 0.22);
    background: linear-gradient(140deg, rgba(8, 16, 28, 0.9), rgba(7, 14, 24, 0.76));
}

.form-group input:focus,
.form-group textarea:focus,
.calc-input-wrap input:focus,
.calc-select:focus {
    border-color: var(--cb-blue);
    box-shadow: 0 0 0 3px rgba(30, 201, 255, 0.14);
}

.calc-radio input:checked + span {
    border-color: var(--cb-blue);
    background: linear-gradient(145deg, rgba(20, 66, 97, 0.52), rgba(16, 30, 50, 0.78));
}

.calc-line {
    border-bottom-color: rgba(123, 231, 255, 0.17);
}

.calc-line.calc-total {
    border-top-color: var(--cb-blue);
}

.calc-line.calc-total span:last-child {
    color: var(--cb-blue-soft);
}

.faq-list {
    display: grid;
    gap: 0.9rem;
    max-width: 980px;
}

.faq-item {
    border: 1px solid rgba(123, 231, 255, 0.18);
    border-radius: 14px;
    background: linear-gradient(150deg, rgba(7, 13, 22, 0.82), rgba(6, 11, 20, 0.62));
    padding: 0 1.2rem;
}

.faq-question {
    color: var(--gray-200);
}

.faq-question::after {
    color: var(--cb-blue-soft);
}

.faq-answer p {
    color: var(--gray-400);
}

.footer {
    border-top-color: rgba(123, 231, 255, 0.22);
    background:
        linear-gradient(150deg, rgba(5, 10, 16, 0.95), rgba(4, 8, 14, 0.96)),
        url("../img/carbon/carbon-sections-desktop.webp");
    background-size: cover, 250px 250px;
}

.footer-logo {
    color: #f6fbff;
    text-shadow: 0 0 12px rgba(123, 231, 255, 0.2);
}

.footer-col a:hover,
.footer-privacy:hover {
    color: var(--cb-blue-soft);
}

.footer-bottom {
    border-top-color: rgba(123, 231, 255, 0.16);
}

.modal {
    background: rgba(1, 4, 8, 0.78);
}

.modal-icon {
    background: rgba(30, 201, 255, 0.12);
    border-color: var(--cb-blue);
    color: var(--cb-blue-soft);
}

.floating-tg {
    background: linear-gradient(145deg, #27a9e1, #0b7fb1);
    box-shadow: 0 6px 24px rgba(22, 162, 224, 0.45);
}

.cookie-banner {
    border-top-color: rgba(123, 231, 255, 0.23);
    background: linear-gradient(145deg, rgba(8, 16, 27, 0.95), rgba(7, 12, 21, 0.95));
}

.cookie-accept {
    border-radius: 10px;
    background: linear-gradient(120deg, var(--cb-blue), #1496cc);
}

.cookie-accept:hover {
    background: linear-gradient(120deg, #3ad4ff, #17a7e1);
}

/* Content pages (germany, korea, etc.) */
body .page-hero {
    background:
        linear-gradient(145deg, rgba(5, 11, 18, 0.9), rgba(6, 12, 21, 0.74)),
        url("../img/carbon/carbon-sections-desktop.webp");
    background-size: cover, 240px 240px;
    border-bottom: 1px solid rgba(123, 231, 255, 0.2);
    position: relative;
    overflow: hidden;
}

body .page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(130deg, transparent 0 120px, rgba(30, 201, 255, 0.08) 120px 122px, transparent 122px 220px),
        radial-gradient(circle at 80% 20%, rgba(30, 201, 255, 0.24), transparent 34%),
        radial-gradient(circle at 20% 80%, rgba(255, 93, 111, 0.18), transparent 30%);
}

body .page-content {
    padding-top: 1rem;
    padding-bottom: 2rem;
}

body .content-block {
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(123, 231, 255, 0.18);
    background:
        linear-gradient(148deg, rgba(9, 16, 27, 0.72), rgba(7, 13, 22, 0.6)),
        url("../img/carbon/carbon-sections-desktop.webp");
    background-size: cover, 260px 260px;
}

body .content-block h2 {
    color: var(--gray-100);
}

body .content-block li::marker {
    color: var(--cb-blue-soft);
}

@media (max-width: 1024px) {
    body::before {
        background-size: 220px 220px;
        opacity: 0.35;
    }

    .nav,
    .nav.scrolled {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .hero-content {
        padding: 6rem 2rem 1rem;
    }

    .hero-content::before {
        inset: 3.6rem auto -0.2rem 0.3rem;
        width: calc(100% - 0.6rem);
    }

    .hero-actions {
        left: 3rem;
    }
}

@media (max-width: 768px) {
    body::after {
        opacity: 0.26;
    }

    .nav,
    .nav.scrolled {
        padding: 0.9rem 1.2rem;
    }

    .nav::after {
        opacity: 0.35;
    }

    .nav-links {
        background: linear-gradient(160deg, rgba(3, 8, 14, 0.97), rgba(4, 8, 13, 0.97));
        backdrop-filter: blur(14px);
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        padding: 0 1.2rem 0.5rem;
    }

    .hero-content::before {
        display: none;
    }

    .hero-actions {
        background: transparent;
        border: 0;
        box-shadow: none;
        backdrop-filter: none;
        padding: 0;
    }

    .hero-actions .btn-main {
        grid-column: 1 / -1;
        justify-content: center;
        border-radius: 10px;
    }

    .hero-actions .btn-outline {
        justify-content: center;
        border-radius: 10px;
    }

    .process-steps {
        padding: 1.2rem 0.8rem;
    }

    .service-card,
    .geo-card,
    .review-card,
    .guarantee-extra-card,
    .content-block {
        padding: 1.4rem;
    }

    .faq-item {
        padding: 0 0.9rem;
    }
}

@media (max-width: 480px) {
    body::before {
        background-size: 180px 180px;
        opacity: 0.28;
    }

    .hero-content::before {
        display: none;
    }

    .hero-actions .btn-main {
        grid-column: 1 / -1;
    }

    .hero-actions .btn-outline {
        font-size: 0.68rem;
        padding: 0.6rem 0.4rem;
    }

    body .content-block {
        padding: 1.15rem;
    }
}

/* ==================== REAL CARBON TEXTURES + HERO FIXES ==================== */
body::before {
    background-image: url("../img/carbon/carbon-sections-desktop.webp");
    background-size: 1100px auto;
    background-position: center top;
    opacity: 0.33;
}

.hero-bg {
    background:
        linear-gradient(145deg, rgba(1, 5, 12, 0.92) 0%, rgba(5, 11, 20, 0.72) 45%, rgba(2, 8, 15, 0.9) 100%),
        url("../img/carbon/carbon-hero-desktop.webp");
    background-size: cover, cover;
    background-position: center, center;
}

.services,
.process,
.contact,
.reviews,
.cta,
.footer,
body .page-hero,
body .content-block,
.service-card,
.geo-card,
.review-card,
.calc-result,
.contact-map,
.guarantee-extra-card,
.guarantee-country-item,
.modal-box,
.guarantee-block {
    background-image:
        linear-gradient(148deg, rgba(9, 16, 27, 0.78), rgba(7, 13, 22, 0.64)),
        url("../img/carbon/carbon-sections-desktop.webp");
    background-size: cover, 1200px auto;
    background-position: center, center;
}

/* Remove the desktop hero "widget" panel and keep cars cleanly visible */
@media (min-width: 769px) {
    .hero-content::before {
        display: none;
    }

    .hero-actions {
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        left: 5rem;
        bottom: 2rem;
        display: flex;
        flex-wrap: wrap;
        gap: 0.8rem;
        align-items: center;
    }

    /* Telegram и Яндекс — на вторую строку */
    .hero-actions .btn-outline:nth-child(4) {
        order: 5;
    }
    .hero-actions .btn-outline:nth-child(5) {
        order: 6;
    }
    /* Невидимый разделитель строк после «Подобрать в РФ» */
    .hero-actions .btn-outline:nth-child(3) {
        order: 3;
    }
    .hero-actions::after {
        content: "";
        flex-basis: 100%;
        height: 0;
        order: 4;
    }

    /* Hide floating widget on desktop per request */
    .floating-tg {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: none !important;
    }
}

/* Mobile button alignment fix + mobile carbon textures */
@media (max-width: 768px) {
    body::before {
        background-image: url("../img/carbon/carbon-dark-mobile.webp");
        background-size: cover;
        background-position: center top;
        opacity: 0.3;
    }

    .hero-bg {
        background:
            linear-gradient(145deg, rgba(2, 6, 12, 0.9), rgba(4, 10, 18, 0.82)),
            url("../img/carbon/carbon-hero-mobile-new.webp");
        background-size: cover, cover;
        background-position: center, center top;
    }

    .hero-actions {
        position: relative;
        left: auto;
        bottom: auto;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
        padding: 0 1.2rem;
    }

    .hero-actions .btn-main {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: center;
        margin: 0;
    }

    .hero-actions .btn-outline {
        width: 100%;
        flex: none;
        justify-content: center;
        margin: 0;
    }
}

/* ==================== FINAL TUNING: NO WHITE BLUR + ONE TEXTURE ==================== */
:root {
    --cb-unified-texture: url("../img/carbon/carbon-hero-desktop.webp");
    --cb-hero-texture:    url("../img/carbon/carbon-hero-desktop.webp");
}

/* One shared carbon canvas for the whole site */
body::before {
    background-image: var(--cb-unified-texture);
    background-size: cover;
    background-position: center top;
    opacity: 0.34;
}

/* Remove bright overlay sweep that creates white/blue haze */
body::after {
    display: none;
}

/* Hero keeps same texture, without white blur layers */
.hero-bg {
    background:
        linear-gradient(145deg, rgba(1, 5, 12, 0.9) 0%, rgba(5, 11, 20, 0.78) 45%, rgba(2, 8, 15, 0.88) 100%),
        var(--cb-unified-texture);
    background-size: cover, cover;
    background-position: center top, center top;
}

.hero-bg::before,
.hero-bg::after {
    display: none;
}

/* Remove white halo around cars in first screen */
.hero-car-img {
    mix-blend-mode: normal;
    filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.48));
}

/* Prevent visible transitions: no per-section different textures */
.services,
.process,
.contact,
.reviews,
.cta,
.footer,
body .page-hero,
body .content-block,
.service-card,
.geo-card,
.review-card,
.calc-result,
.contact-map,
.guarantee-extra-card,
.guarantee-country-item,
.modal-box,
.guarantee-block {
    background-image: linear-gradient(148deg, rgba(9, 16, 27, 0.78), rgba(7, 13, 22, 0.64));
}

@media (max-width: 768px) {
    :root {
        --cb-unified-texture: url("../img/carbon/carbon-hero-mobile-new.webp");
        --cb-hero-texture:    url("../img/carbon/carbon-hero-mobile-new.webp");
    }

    body::before {
        background-image: var(--cb-unified-texture);
        background-size: cover;
        background-position: center top;
    }

    .hero-bg {
        background:
            linear-gradient(145deg, rgba(2, 6, 12, 0.88), rgba(4, 10, 18, 0.82)),
            var(--cb-hero-texture);
        background-size: cover, cover;
        background-position: center top, center top;
    }
}

/* ==================== HERO CARS (firstpagecars) ==================== */
.hero {
    min-height: 100svh;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    background:
        linear-gradient(160deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.55)),
        var(--cb-unified-texture) !important;
    background-size: cover, cover !important;
    background-position: center top, center top !important;
}

@media (max-width: 768px) {
    .hero-bg {
        background:
            linear-gradient(160deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.55)),
            var(--cb-hero-texture) !important;
        background-size: cover, cover !important;
        background-position: center top, center top !important;
    }
}

.hero-bg::before,
.hero-bg::after {
    display: none !important;
}

/* Hero logo overlay */
.hero-logo {
    position: absolute;
    z-index: 3;
    top: 8%;
    right: 5%;
    width: clamp(220px, 30vw, 500px);
    height: auto;
    pointer-events: none;
    filter: drop-shadow(0 8px 32px rgba(0,0,0,0.5));
}

@media (max-width: 768px) {
    .hero-logo {
        top: 12%;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        width: clamp(180px, 55vw, 350px);
    }
}

/* Hero country flags */
.hero-flags {
    display: flex;
    gap: 1rem;
    margin: 0.8rem 0 0.6rem;
    font-size: 3rem;
}

/* Cars on the first screen — above background */
.hero-cars {
    position: absolute;
    z-index: 2;
    right: -4vw;
    bottom: -28vh;
    width: min(72vw, 1200px);
    aspect-ratio: 1 / 1;
    background: url("../assets/firstpagecars.svg") no-repeat center bottom / contain;
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.65));
    pointer-events: none;
}

.hero-content,
.hero-actions {
    position: relative;
    z-index: 3;
}

/* Hide old hero car layer */
.hero picture,
.hero-car-img {
    display: none !important;
}

@media (max-width: 1200px) {
    .hero-cars {
        right: -10vw;
        bottom: -24vh;
        width: min(85vw, 1000px);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 100svh;
        min-height: 100dvh;
        padding-bottom: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    /* Логотип — отдельно сверху, прижат к контенту снизу */
    .hero-logo {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        display: block;
        width: clamp(160px, 45vw, 280px) !important;
        margin: auto auto 0.5rem !important;
        padding-top: 4.5rem;
        z-index: 3;
        order: 1;
    }

    /* Контент — компактный, под логотипом */
    .hero-content {
        flex: 0 0 auto;
        margin-top: 0.8rem;
        padding: 0 1.2rem 0.5rem !important;
        order: 2;
        text-align: center;
    }

    .hero-tag {
        justify-content: center;
    }

    .hero-title {
        margin-bottom: 0.15rem;
        align-items: center;
    }

    .title-line {
        font-size: clamp(1.6rem, 6.5vw, 2.4rem) !important;
    }

    .hero-flags {
        display: flex;
        justify-content: center;
        gap: 0.6rem;
        margin: 0.2rem 0 0.3rem;
        font-size: 2rem;
    }

    .hero-desc {
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    /* Кнопки — сетка 2×2 */
    .hero-actions {
        position: relative !important;
        left: auto !important;
        bottom: auto !important;
        width: 100%;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
        padding: 0 1.2rem !important;
        margin-top: 0;
        margin-bottom: 0.4rem;
        order: 3;
    }

    .hero-actions .btn-main {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
        border-radius: 10px;
    }

    .hero-actions .btn-outline {
        width: 100%;
        justify-content: center;
        padding: 0.65rem 0.5rem;
        font-size: 0.72rem;
        border-radius: 10px;
        flex: none;
    }

    /* Автомобили — внизу, сразу после кнопок */
    .hero-cars {
        position: relative;
        right: auto;
        bottom: auto;
        transform: none;
        display: block;
        width: 100%;
        aspect-ratio: 1125 / 400;
        margin: 0;
        opacity: 1;
        background-image: url("../assets/firstpagecarsnew.svg");
        background-size: contain;
        background-position: center bottom;
        background-repeat: no-repeat;
        filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
        order: 10;
    }

    .hero-scroll {
        display: none;
    }
}

/* iPhone Pro Max (430px, высота 900+) — логотип крупнее и выше */
@media (max-width: 768px) and (min-width: 420px) and (min-height: 880px) {
    .hero-logo {
        width: clamp(220px, 55vw, 340px) !important;
        margin: auto auto 1rem !important;
        padding-top: 3.5rem;
    }
}

/* ==================== 2026-02-20 TUNING ==================== */
/* 1. Усиление затемнения фона + приглушение синего */

body {
    background:
        radial-gradient(circle at 14% 12%, rgba(30, 201, 255, 0.06), transparent 35%),
        radial-gradient(circle at 86% 18%, rgba(255, 49, 72, 0.08), transparent 30%),
        linear-gradient(158deg, #020409 0%, #030810 38%, #020408 100%);
}

body::before {
    opacity: 0.18 !important;
}

:root {
    --cb-blue: #14a8d6;
    --cb-blue-soft: #5ccde6;
    --cb-line-soft: rgba(92, 205, 230, 0.14);
}

/* 2. border-radius: карточки/контейнеры=16px, кнопки=12px, текст-блоки=14px, круги=50% */

/* Карточки и контейнеры — 16px */
.service-card,
.geo-card,
.review-card,
.calc-result,
.contact-map,
.guarantee-extra-card,
.guarantee-country-item,
.modal-box,
.guarantee-block,
.process-steps,
body .content-block {
    border-radius: 16px !important;
}

/* Кнопки — 12px */
.btn-main,
.btn-outline,
.gallery-slider-btn,
.cookie-accept,
.calc-radio span,
.contact-form .form-group input,
.contact-form .form-group textarea,
.calc-input-wrap input,
.calc-select {
    border-radius: 12px !important;
}

/* Текстовые блоки (FAQ, галерея) — 14px */
.faq-item,
.gallery-slider-track img {
    border-radius: 14px !important;
}

/* Круглые индикаторы — строго 50% */
.cursor,
.cursor-follower,
.tag-dot,
.logo-dot,
.modal-icon,
.review-avatar,
.gallery-dot,
.geo-features li::before,
.floating-tg {
    border-radius: 50% !important;
}

/* Guarantee badge — pill */
.guarantee-badge {
    border-radius: 999px !important;
}

/* 3. Hover-эффект: translateY(-6px) на карточках (без изменения радиуса) */
.service-card:hover,
.geo-card:hover,
.review-card:hover,
.guarantee-extra-card:hover {
    transform: translateY(-6px);
}

/* 4. Кнопка первого экрана — без градиента, чистый цвет */
.btn-main {
    background: var(--red) !important;
    border: 1px solid rgba(255, 49, 72, 0.6) !important;
    box-shadow: 0 8px 20px rgba(255, 49, 72, 0.2) !important;
}

.btn-main:hover {
    background: #e02a3c !important;
    transform: translateY(-2px);
}

/* Убираем sweep-эффект */
.btn-main::before {
    display: none !important;
}

/* 5. Усиление затемнения всех секций / панелей */
.services,
.process,
.contact,
.reviews {
    background-image: linear-gradient(148deg, rgba(4, 8, 14, 0.88), rgba(3, 6, 12, 0.92)) !important;
}

.hero-bg {
    background:
        linear-gradient(160deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.68)),
        var(--cb-unified-texture) !important;
    background-size: cover, cover !important;
    background-position: center top, center top !important;
}

.service-card,
.geo-card,
.review-card,
.calc-result,
.contact-map,
.guarantee-extra-card,
.guarantee-country-item,
.modal-box,
.guarantee-block {
    background-image: linear-gradient(148deg, rgba(5, 10, 18, 0.88), rgba(3, 7, 14, 0.82)) !important;
}

.nav {
    background: linear-gradient(145deg, rgba(3, 7, 12, 0.92), rgba(3, 6, 10, 0.88)) !important;
}

.nav.scrolled {
    background: linear-gradient(145deg, rgba(2, 5, 9, 0.96), rgba(2, 5, 9, 0.96)) !important;
}

.cta {
    background-image:
        linear-gradient(145deg, rgba(3, 6, 10, 0.9), rgba(2, 5, 9, 0.94)) !important;
}

.footer {
    background-image:
        linear-gradient(150deg, rgba(2, 5, 9, 0.97), rgba(2, 4, 8, 0.98)) !important;
}

.marquee {
    background: linear-gradient(180deg, rgba(3, 7, 12, 0.88), rgba(2, 5, 10, 0.94)) !important;
}

.faq-item {
    background: linear-gradient(150deg, rgba(4, 8, 14, 0.88), rgba(3, 6, 12, 0.78)) !important;
}

.cookie-banner {
    background: linear-gradient(145deg, rgba(4, 8, 14, 0.97), rgba(3, 6, 12, 0.97)) !important;
}

/* Приглушённый синий в свечениях */
.nav::after {
    opacity: 0.3 !important;
}

.cursor {
    box-shadow: 0 0 8px rgba(92, 205, 230, 0.6) !important;
}

.tag-dot {
    background: linear-gradient(135deg, var(--cb-blue-soft), var(--cb-blue)) !important;
    box-shadow: 0 0 10px rgba(92, 205, 230, 0.6) !important;
}

.logo-text {
    text-shadow: 0 0 12px rgba(92, 205, 230, 0.14) !important;
}

.nav-links a:hover {
    text-shadow: 0 0 10px rgba(92, 205, 230, 0.2) !important;
}

.stat-num {
    text-shadow: 0 0 14px rgba(92, 205, 230, 0.1) !important;
}

.loader-progress {
    background: linear-gradient(90deg, var(--cb-blue) 0%, var(--red) 100%) !important;
}

/* Mobile героя тоже затемнить */
@media (max-width: 768px) {
    .hero-bg {
        background:
            linear-gradient(160deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.72)),
            var(--cb-hero-texture) !important;
        background-size: cover, cover !important;
        background-position: center top, center top !important;
    }

    .hero-actions .btn-main {
        border-radius: 10px !important;
    }

    .hero-actions .btn-outline {
        border-radius: 10px !important;
    }
}

/* ==================== 2026-02-20 LOGO + DARKER HERO ==================== */

/* Логотип на ПК: уменьшить, правый верхний угол */
@media (min-width: 769px) {
    .hero-logo {
        top: 7.5rem !important;
        right: 3.5rem !important;
        width: clamp(160px, 19vw, 300px) !important;
        opacity: 0.85;
    }
}

/* Ещё сильнее затемнить фон первого экрана */
.hero-bg {
    background:
        linear-gradient(160deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.78)),
        var(--cb-unified-texture) !important;
    background-size: cover, cover !important;
    background-position: center top, center top !important;
}

@media (max-width: 768px) {
    .hero-bg {
        background:
            linear-gradient(160deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.82)),
            var(--cb-hero-texture) !important;
        background-size: cover, cover !important;
        background-position: center top, center top !important;
    }
}

/* ==================== 2026-02-20 SMALLER HERO CARS (PC) ==================== */
@media (min-width: 769px) {
    .hero-cars {
        width: min(50vw, 820px) !important;
        right: -2vw !important;
        bottom: -22vh !important;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .hero-cars {
        width: min(68vw, 820px) !important;
        right: -6vw !important;
        bottom: -18vh !important;
    }
}

/* ==================== 2026-02-20 BTN MUTED + CARS FLIP + LIGHTER BG ==================== */

/* 1. Красная кнопка менее яркая */
.btn-main {
    background: #c4283a !important;
    border: 1px solid rgba(196, 40, 58, 0.5) !important;
    box-shadow: 0 6px 16px rgba(196, 40, 58, 0.18) !important;
}

.btn-main:hover {
    background: #b32435 !important;
}

/* 2. Машины отзеркалить и поместить под кнопки (ПК) */
@media (min-width: 769px) {
    .hero-cars {
        transform: scaleX(-1) !important;
        bottom: -6vh !important;
        right: auto !important;
        left: -2vw !important;
        width: min(52vw, 860px) !important;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .hero-cars {
        left: 4vw !important;
        bottom: -4vh !important;
        width: min(62vw, 760px) !important;
    }
}

/* 3. Затемнение фона чуть уменьшить — посветлее */
.hero-bg {
    background:
        linear-gradient(160deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.62)),
        var(--cb-unified-texture) !important;
    background-size: cover, cover !important;
    background-position: center top, center top !important;
}

@media (max-width: 768px) {
    .hero-bg {
        background:
            linear-gradient(160deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.68)),
            var(--cb-hero-texture) !important;
        background-size: cover, cover !important;
        background-position: center top, center top !important;
    }
}

/* ==================== 2026-02-20 CARS LOWER ==================== */
@media (min-width: 769px) {
    .hero-cars {
        bottom: -18vh !important;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .hero-cars {
        bottom: -14vh !important;
    }
}

/* ==================== 2026-02-20 CARS MORE RIGHT ==================== */
@media (min-width: 769px) {
    .hero-cars {
        left: 2vw !important;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .hero-cars {
        left: -1vw !important;
    }
}

/* ==================== 2026-02-20 SWAP: BUTTONS BOTTOM-LEFT, CARS BACK RIGHT ==================== */
@media (min-width: 769px) {
    /* Машины — обратно вправо, без зеркала */
    .hero-cars {
        transform: none !important;
        left: auto !important;
        right: -4vw !important;
        bottom: -28vh !important;
        width: min(50vw, 820px) !important;
    }

    /* Кнопки — внизу слева, вертикальная раскладка */
    .hero-actions {
        position: absolute !important;
        bottom: 3rem !important;
        left: 3rem !important;
        right: auto !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.6rem !important;
        max-width: 520px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        z-index: 4 !important;
    }

    .hero-actions::after {
        content: "" !important;
        flex-basis: 100% !important;
        height: 0 !important;
        order: 4 !important;
    }

    .hero-actions .btn-main {
        order: 1;
    }

    .hero-actions .btn-outline:nth-child(2) {
        order: 2;
    }

    .hero-actions .btn-outline:nth-child(3) {
        order: 3;
    }

    .hero-actions .btn-outline:nth-child(4) {
        order: 5;
    }

    .hero-actions .btn-outline:nth-child(5) {
        order: 6;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .hero-cars {
        right: -10vw !important;
        bottom: -24vh !important;
        width: min(68vw, 820px) !important;
    }
}

/* ==================== 2026-02-20 BUTTONS 2 ROWS + CARS ADJUST ==================== */
@media (min-width: 769px) {
    /* Кнопки: 2 строки. 1-я: Заказать + Авто в наличии + Подобрать в РФ. 2-я: Telegram + Яндекс */
    .hero-actions {
        bottom: 6rem !important;
        max-width: 620px !important;
        align-items: center !important;
    }

    /* Все в одну строку кроме разделителя после 3-го */
    .hero-actions .btn-main { order: 1 !important; }
    .hero-actions .btn-outline:nth-child(2) { order: 2 !important; }
    .hero-actions .btn-outline:nth-child(3) { order: 3 !important; }

    .hero-actions::after {
        order: 4 !important;
    }

    .hero-actions .btn-outline:nth-child(4) { order: 5 !important; }
    .hero-actions .btn-outline:nth-child(5) { order: 6 !important; }

    /* Машины левее и чуть выше */
    .hero-cars {
        right: -1vw !important;
        bottom: -16vh !important;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .hero-cars {
        right: -4vw !important;
        bottom: -18vh !important;
    }
}

/* ==================== 2026-02-20 BUTTONS FIX 2 ROWS ==================== */
@media (min-width: 769px) {
    .hero-actions {
        left: 5rem !important;
        max-width: 740px !important;
        gap: 0.5rem !important;
    }

    /* Уменьшаем размер кнопок чтобы 3 влезли в 1 строку */
    .hero-actions .btn-main {
        padding: 0.8rem 1.3rem !important;
        font-size: 0.8rem !important;
    }

    .hero-actions .btn-outline {
        padding: 0.8rem 1.3rem !important;
        font-size: 0.8rem !important;
    }
}

/* ==================== 2026-02-20 BUTTONS HIGHER + REORDER ==================== */
@media (min-width: 769px) {
    .hero-actions {
        bottom: 10rem !important;
    }

    /* Строка 1: Заказать + Авто в наличии */
    .hero-actions .btn-main { order: 1 !important; }
    .hero-actions .btn-outline:nth-child(2) { order: 2 !important; }

    /* Разделитель строк — после 2-й кнопки */
    .hero-actions::after {
        order: 3 !important;
    }

    /* Строка 2: Подобрать в РФ + Telegram + Яндекс */
    .hero-actions .btn-outline:nth-child(3) { order: 4 !important; }
    .hero-actions .btn-outline:nth-child(4) { order: 5 !important; }
    .hero-actions .btn-outline:nth-child(5) { order: 6 !important; }
}

/* ==================== 2026-03-07 STABILITY FIXES ==================== */
/* Единый фон секций без резких смен (исправление "разрывов" при скролле) */
.about,
.services,
.calculator,
.geography,
.process,
.guarantee,
.reviews,
.clients-gallery,
.cta,
.contact,
.faq {
    background: transparent !important;
    background-image: none !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
}

/* Компактнее вертикальные отступы между секциями */
main > section:not(.hero) {
    padding-top: clamp(4rem, 5vw, 5.5rem) !important;
    padding-bottom: clamp(4rem, 5vw, 5.5rem) !important;
}

.process .section-title {
    margin-bottom: clamp(2.2rem, 3vw, 3rem) !important;
}

.guarantee-extras {
    margin-top: clamp(1.8rem, 3vw, 2.6rem) !important;
}

/* Мобильная галерея: много точек не ломают ширину и остаются читаемыми */
@media (max-width: 768px) {
    .gallery-dots {
        justify-content: flex-start;
        gap: 0.45rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0 0.25rem;
    }

    .gallery-dots::-webkit-scrollbar {
        display: none;
    }

    .gallery-dot {
        flex: 0 0 auto;
    }
}

/* Bridge layout: portrait tablets and near-square screens between mobile and desktop */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    .hero {
        min-height: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .hero-logo {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        display: block;
        width: clamp(220px, 34vw, 320px) !important;
        margin: 5.75rem auto 1rem !important;
        order: 1;
    }

    .hero-content {
        width: min(760px, 100%) !important;
        margin: 0 auto !important;
        padding: 0 2rem 0.75rem !important;
        text-align: center;
        order: 2;
    }

    .hero-tag,
    .hero-title,
    .hero-flags {
        justify-content: center;
        align-items: center;
    }

    .hero-title {
        margin-bottom: 0.3rem;
    }

    .title-line {
        font-size: clamp(2.2rem, 5.4vw, 3.6rem) !important;
    }

    .hero-desc {
        max-width: 38rem;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 1rem;
    }

    .hero-actions {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: min(760px, calc(100% - 4rem)) !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.75rem !important;
        padding: 0 !important;
        margin: 0 auto 0.75rem !important;
        order: 3;
    }

    .hero-actions::after {
        content: none !important;
        display: none !important;
    }

    .hero-actions .btn-main {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: center;
    }

    .hero-actions .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .hero-cars {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: min(860px, 100%) !important;
        height: clamp(280px, 34vw, 360px);
        margin: 0 auto !important;
        order: 4;
        aspect-ratio: unset !important;
        transform: none !important;
        background: url("../assets/firstpagecarsnew.svg") no-repeat center bottom / contain !important;
    }

    .hero-scroll {
        display: none;
    }

    .about-grid,
    .contact-grid,
    .geo-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

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

    .footer-top,
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Bridge layout: wide desktops that sit between standard desktop and the ultrawide override */
@media (min-width: 1201px) and (max-width: 1919px) and (min-aspect-ratio: 16/10) {
    .hero {
        --hero-wide-inline-gutter: max(3rem, calc((100vw - 1400px) / 2 + 3rem));
    }

    .hero-logo {
        right: var(--hero-wide-inline-gutter) !important;
    }

    .hero-actions {
        left: var(--hero-wide-inline-gutter) !important;
        bottom: clamp(6rem, 10vh, 9rem) !important;
        max-width: min(780px, 54vw) !important;
    }

    .hero-cars {
        left: auto !important;
        right: var(--hero-wide-inline-gutter) !important;
        bottom: 0 !important;
        width: min(46vw, 920px) !important;
        height: clamp(320px, 29vw, 430px);
        aspect-ratio: unset !important;
        transform: none !important;
        background: url("../assets/firstpagecarsnew.svg") no-repeat center center / contain !important;
    }
}

/* Bridge layout: short landscape desktops/tablets between mobile and ultrawide breakpoints */
@media (min-width: 769px) and (max-width: 1919px) and (orientation: landscape) and (max-height: 820px) {
    .hero {
        min-height: clamp(680px, 100svh, 820px);
    }

    .hero-logo {
        top: clamp(4.5rem, 8vh, 6rem) !important;
        width: clamp(150px, 16vw, 260px) !important;
    }

    .hero-content {
        padding-top: clamp(5rem, 7.5vh, 6rem) !important;
    }

    .hero-actions {
        bottom: clamp(4rem, 7vh, 6rem) !important;
        max-width: min(720px, 62vw) !important;
    }

    .hero-cars {
        bottom: 0 !important;
        height: clamp(280px, 26vw, 360px);
        aspect-ratio: unset !important;
        background: url("../assets/firstpagecarsnew.svg") no-repeat center center / contain !important;
    }

    .hero-scroll {
        display: none;
    }
}

/* Bridge layout: keep hero controls and visuals aligned to the same shell as the text on non-ultrawide desktops */
@media (min-width: 1025px) and (max-width: 1919px) {
    .hero {
        --hero-desktop-inline-gutter: max(3rem, calc((100vw - 1400px) / 2 + 3rem));
    }

    .hero-actions {
        left: var(--hero-desktop-inline-gutter) !important;
    }

    .hero-logo {
        right: var(--hero-desktop-inline-gutter) !important;
    }

    .hero-cars {
        left: auto !important;
        right: var(--hero-desktop-inline-gutter) !important;
    }
}

/* Bridge layout: landscape tablets and compact desktops below 1025px use the smaller content gutter */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .hero {
        --hero-desktop-inline-gutter: max(2rem, calc((100vw - 1400px) / 2 + 2rem));
    }

    .hero-actions {
        left: var(--hero-desktop-inline-gutter) !important;
    }

    .hero-logo {
        right: var(--hero-desktop-inline-gutter) !important;
    }

    .hero-cars {
        left: auto !important;
        right: var(--hero-desktop-inline-gutter) !important;
    }
}

/* Ультраширокие 21:9: фиксируем композицию первого экрана */
@media (min-width: 1920px) and (min-aspect-ratio: 21/9) {
    .hero,
    .section-inner {
        --hero-ultrawide-shell: min(1760px, 92vw);
    }

    .hero {
        --hero-ultrawide-inline-gutter: calc((100vw - var(--hero-ultrawide-shell)) / 2 + 3rem);
    }

    .section-inner {
        max-width: var(--hero-ultrawide-shell);
    }

    .hero-content {
        max-width: var(--hero-ultrawide-shell) !important;
        padding-top: 7.2rem !important;
    }

    .hero-logo {
        right: var(--hero-ultrawide-inline-gutter) !important;
    }

    .hero-actions {
        left: var(--hero-ultrawide-inline-gutter) !important;
        bottom: clamp(7rem, 9vh, 10.5rem) !important;
        max-width: min(840px, 54vw) !important;
    }

    .hero-cars {
        width: min(44vw, 980px) !important;
        right: var(--hero-ultrawide-inline-gutter) !important;
        bottom: 0 !important;
        aspect-ratio: unset;
        height: 447px;
        background: url(../assets/firstpagecarsnew.svg) no-repeat center center / contain;
    }
}

/* На мобильных исключаем любые визуальные сдвиги текста на первом экране */
@media (max-width: 768px) {
    main > section:not(.hero) {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }

    .hero-content {
        transform: none !important;
        opacity: 1 !important;
    }
}
