/* =========================================================
   Tuning for Cars — styles
   ========================================================= */

:root {
    --bg: #0b0b0f;
    --bg-alt: #111117;
    --surface: #16161d;
    --surface-2: #1d1d26;
    --border: rgba(var(--ink-rgb), 0.08);
    --text: #f3f3f5;
    --muted: #a1a1ad;
    --accent: #ff5a1f;
    --accent-2: #ffb020;
    --accent-soft: rgba(255, 90, 31, 0.14);
    --gradient: linear-gradient(120deg, var(--accent), var(--accent-2));

    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);

    --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Unbounded", var(--font);

    --header-h: 76px;
    --container: 1200px;

    /* Theme-dependent helpers (dark defaults; light values below) */
    --ink-rgb: 255, 255, 255;          /* base for translucent lines/overlays */
    --accent-text: var(--accent-2);    /* accent colour used for small text */
    --header-bg: rgba(11, 11, 15, .78);
    --menu-bg: rgba(11, 11, 15, .97);
    --chip-bg: rgba(22, 22, 29, .85);
    --logo-filter: invert(1);          /* logos are black SVGs */
    --grain-opacity: .045;
    color-scheme: dark;
}

/* ---------- Light theme (html[data-theme="light"]) ---------- */
[data-theme="light"] {
    --bg: #f7f5f1;
    --bg-alt: #efece6;
    --surface: #ffffff;
    --surface-2: #f2efe9;
    --text: #17130f;
    --muted: #6a645b;
    --accent-soft: rgba(255, 90, 31, 0.10);
    --shadow: 0 20px 45px -22px rgba(60, 35, 10, 0.28);

    --ink-rgb: 23, 19, 15;
    --accent-text: #d9480f;
    --header-bg: rgba(247, 245, 241, .82);
    --menu-bg: rgba(247, 245, 241, .98);
    --chip-bg: rgba(255, 255, 255, .9);
    --logo-filter: none;
    --grain-opacity: .03;
    color-scheme: light;
}
[data-theme="light"] .hero-glow {
    background:
        radial-gradient(600px 400px at 80% 30%, rgba(255, 90, 31, .16), transparent 70%),
        radial-gradient(500px 400px at 10% 90%, rgba(255, 176, 32, .12), transparent 70%);
}
[data-theme="light"] .hero-emblem { filter: drop-shadow(0 10px 30px rgba(255, 90, 31, .35)); }
[data-theme="light"] .car-card, [data-theme="light"] .service-card,
[data-theme="light"] .about-card, [data-theme="light"] .branch { box-shadow: 0 1px 2px rgba(60, 35, 10, .06); }
[data-theme="light"] .cars-cta { background: linear-gradient(120deg, rgba(255, 90, 31, .12), rgba(255, 176, 32, .10)); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

/* Subtle film grain over the whole page */
body::after {
    content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: var(--grain-opacity);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: #140a04; }

img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ion-icon { flex-shrink: 0; }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 16px; }

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px; border-radius: 999px;
    font-weight: 700; font-size: 0.95rem; white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn ion-icon { font-size: 1.15em; }
.btn-lg { padding: 15px 26px; font-size: 1rem; }
.btn-primary { background: var(--gradient); color: #140a04; box-shadow: 0 10px 30px -10px rgba(255, 90, 31, .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(255, 90, 31, .8); }
.btn-ghost { border: 1px solid var(--border); background: rgba(var(--ink-rgb), .04); }
.btn-ghost:hover { border-color: rgba(var(--ink-rgb), .25); background: rgba(var(--ink-rgb), .08); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--accent-text);
    padding: 6px 14px; border-radius: 999px; background: var(--accent-soft);
    border: 1px solid rgba(255, 90, 31, .25);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .2); }

/* ---------- Header ---------- */
.header {
    position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
    display: flex; align-items: center;
}
/* Blur lives on a pseudo-element: backdrop-filter on .header itself would
   become the containing block for the fixed mobile .navbar and clip it. */
.header::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: var(--header-bg);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    opacity: 0; transition: opacity .3s ease;
}
.header.scrolled::before, .nav-open .header::before { opacity: 1; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.logo img { filter: var(--logo-filter); width: 38px; height: auto; }
.logo em { font-style: normal; color: var(--accent); margin-inline: 2px; }

.navbar { display: flex; align-items: center; gap: 28px; }
.navbar-list { display: flex; gap: 6px; }
.navbar-link {
    position: relative; padding: 8px 14px; border-radius: 999px;
    color: var(--muted); font-weight: 600; font-size: .95rem; transition: color .2s, background-color .2s;
}
.navbar-link:hover, .navbar-link.active { color: var(--text); background: rgba(var(--ink-rgb), .06); }
.navbar-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 16px; }

/* Light / dark toggle: shows the theme you would switch to */
.theme-toggle {
    width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 1.15rem;
    background: rgba(var(--ink-rgb), .05); border: 1px solid var(--border); color: var(--text);
    transition: background-color .2s, border-color .2s, transform .3s;
}
.theme-toggle:hover { border-color: rgba(255, 90, 31, .5); color: var(--accent); }
.theme-toggle:active { transform: rotate(30deg); }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* UZ / RU switch */
.lang-switch {
    display: flex; padding: 3px; border-radius: 999px;
    background: rgba(var(--ink-rgb), .05); border: 1px solid var(--border);
}
.lang-switch button {
    min-width: 38px; padding: 6px 10px; border-radius: 999px;
    font-size: .78rem; font-weight: 800; letter-spacing: .04em; color: var(--muted);
    transition: color .2s, background-color .2s;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button[aria-pressed="true"] { background: var(--gradient); color: #140a04; }
.header-contact { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; }
.contact-link { font-weight: 800; font-size: 1rem; }
.contact-link:hover { color: var(--accent-2); }
.contact-time { font-size: .78rem; color: var(--muted); }

.nav-toggle-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); position: relative; }
.nav-toggle-btn span {
    position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px;
    transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.nav-toggle-btn span:nth-child(1) { top: 15px; }
.nav-toggle-btn span:nth-child(2) { top: 21px; }
.nav-toggle-btn span:nth-child(3) { top: 27px; }
.nav-open .nav-toggle-btn span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle-btn span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-btn span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    min-height: 100svh; display: flex; align-items: center;
    padding: calc(var(--header-h) + 40px) 0 80px;
}
.hero-glow {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(600px 400px at 80% 30%, rgba(255, 90, 31, .22), transparent 70%),
        radial-gradient(500px 400px at 10% 90%, rgba(255, 176, 32, .10), transparent 70%);
}
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(var(--ink-rgb), .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--ink-rgb), .035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }

.hero-title {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(2.1rem, 5vw, 3.9rem); line-height: 1.1; letter-spacing: -.02em;
    margin: 22px 0 20px;
}
.hero-text { color: var(--muted); font-size: 1.12rem; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-stats { display: flex; gap: 36px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 1.7rem; }
.hero-stats span { color: var(--muted); font-size: .88rem; }

.hero-visual { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.hero-ring {
    position: absolute; inset: 8%; border-radius: 50%;
    border: 1px solid rgba(var(--ink-rgb), .1);
    background: radial-gradient(circle, rgba(255, 90, 31, .18), transparent 65%);
    animation: spin 30s linear infinite;
}
.hero-ring::before {
    content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px;
    border-radius: 50%; background: var(--accent); box-shadow: 0 0 20px var(--accent);
}
.hero-ring-2 { inset: 22%; animation-duration: 18s; animation-direction: reverse; background: none; border-style: dashed; }
.hero-ring-2::before { background: var(--accent-2); box-shadow: 0 0 20px var(--accent-2); }
.hero-emblem { width: 42%; filter: invert(1) drop-shadow(0 0 40px rgba(255, 90, 31, .55)); }

.hero-chip {
    position: absolute; display: flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: .88rem;
    background: var(--chip-bg); border: 1px solid var(--border);
    backdrop-filter: blur(8px); box-shadow: var(--shadow);
    animation: float 6s ease-in-out infinite;
}
.hero-chip ion-icon { color: var(--accent); font-size: 1.15rem; }
.chip-1 { top: 10%; left: 0; }
.chip-2 { top: 46%; right: -4%; animation-delay: -2s; }
.chip-3 { bottom: 8%; left: 10%; animation-delay: -4s; }
.chip-4 { top: 2%; right: 10%; animation-delay: -1s; }
.chip-5 { bottom: 18%; right: 0; animation-delay: -3s; }
.chip-6 { top: 46%; left: -6%; animation-delay: -5s; }
.chip-7 { bottom: -2%; right: 14%; animation-delay: -2.5s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-title {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.2; letter-spacing: -.01em;
    margin-top: 16px;
}
.section-text { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: transform .3s ease, border-color .3s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(255, 90, 31, .4); }
.service-card .media { aspect-ratio: 4 / 5; background: var(--surface-2); position: relative; }
.service-card .media::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 40%, rgba(255, 90, 31, .18), transparent 60%);
}
.service-card video { position: relative; width: 100%; height: 100%; object-fit: cover; }
.media-fallback {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-size: 4rem; color: rgba(255, 90, 31, .55);
    background:
        repeating-linear-gradient(135deg, rgba(var(--ink-rgb), .025) 0 2px, transparent 2px 14px);
}
.media-fallback ion-icon { filter: drop-shadow(0 0 24px rgba(255, 90, 31, .5)); transition: transform .4s ease; }
.service-card:hover .media-fallback ion-icon { transform: scale(1.1) rotate(-6deg); }
.media.no-media video { visibility: hidden; }
.service-num {
    position: absolute; top: 14px; left: 14px; z-index: 1; pointer-events: none;
    font-family: var(--font-display); font-size: .8rem; font-weight: 700; letter-spacing: .05em;
    padding: 6px 10px; border-radius: 10px;
    background: rgba(11, 11, 15, .7); color: #fff; border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(6px);
}
.service-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; }
.service-body h3 { font-size: 1.15rem; font-weight: 800; }
.service-body p { color: var(--muted); font-size: .93rem; line-height: 1.5; margin-bottom: 4px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font-weight: 700; font-size: .92rem; }
.link-arrow ion-icon { transition: transform .2s; }
.link-arrow:hover ion-icon { transform: translateX(4px); }

/* ---------- Cars ---------- */
/* Slider: native horizontal scroll-snap, arrows/dots/autoplay in JS */
.cars-slider { --per-view: 3; --gap: 24px; position: relative; }
.cars-track {
    display: grid; grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
    gap: var(--gap);
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-behavior: smooth;
    padding-block: 10px 24px; margin-block: -10px -24px;  /* room for hover lift/shadow */
    scrollbar-width: none;
}
.cars-track::-webkit-scrollbar { display: none; }
.cars-track > li { scroll-snap-align: start; }

.slider-controls { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 20px; }
.slider-btn {
    width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 1.25rem;
    background: var(--surface); border: 1px solid var(--border);
    transition: background-color .2s, border-color .2s, color .2s, opacity .2s;
}
.slider-btn:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: #140a04; }
.slider-btn:disabled { opacity: .35; cursor: default; }

.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.slider-dots button {
    width: 8px; height: 8px; border-radius: 999px; background: rgba(var(--ink-rgb), .2);
    transition: width .3s ease, background-color .3s ease;
}
.slider-dots button.active { width: 28px; background: var(--gradient); }
.car-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: transform .3s ease, box-shadow .3s ease;
}
.car-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.car-media {
    position: relative; aspect-ratio: 44 / 30; overflow: hidden;
    background: linear-gradient(135deg, var(--surface-2), var(--bg-alt));
}
/* Fallback label, visible when the image is missing (img gets hidden by JS) */
.car-media::before {
    content: attr(data-name); position: absolute; inset: 0; display: grid; place-items: center;
    font-family: var(--font-display); font-size: 1.1rem; color: rgba(var(--ink-rgb), .18); text-align: center; padding: 20px;
}
.car-media img { position: relative; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.car-card:hover .car-media img { transform: scale(1.06); }
.car-body { padding: 20px 22px 24px; }
.car-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.car-title h3 { font-size: 1.15rem; font-weight: 800; }
.year { font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px dashed rgba(255, 176, 32, .5); color: var(--accent-text); }
.car-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding-top: 16px; border-top: 1px solid var(--border); }
.car-specs li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }
.car-specs ion-icon { color: var(--accent); font-size: 1.1rem; }

.cars-cta {
    margin-top: 40px; padding: 28px 32px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    background: linear-gradient(120deg, rgba(255, 90, 31, .16), rgba(255, 176, 32, .06));
    border: 1px solid rgba(255, 90, 31, .3);
}
.cars-cta p { font-weight: 700; font-size: 1.1rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.about-card {
    padding: 28px 24px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border);
    transition: border-color .3s, transform .3s;
}
.about-card:hover { border-color: rgba(255, 90, 31, .4); transform: translateY(-4px); }
.about-icon {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
    background: var(--accent-soft); color: var(--accent); font-size: 1.5rem; margin-bottom: 20px;
}
.about-card h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: 8px; }
.about-card p { color: var(--muted); font-size: .95rem; }

/* ---------- Spotlight hover (JS sets --mx/--my) ---------- */
.service-card, .car-card, .about-card, .branch { position: relative; }
.service-card::after, .car-card::after, .about-card::after, .branch::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 120, 50, .12), transparent 45%);
    opacity: 0; transition: opacity .3s ease;
}
.service-card:hover::after, .car-card:hover::after, .about-card:hover::after, .branch:hover::after { opacity: 1; }

/* ---------- Marquee ---------- */
.marquee {
    overflow: hidden; border-block: 1px solid var(--border); background: var(--bg-alt);
    padding: 18px 0;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span {
    font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 2.4vw, 1.6rem);
    text-transform: uppercase; letter-spacing: .02em; white-space: nowrap;
    color: transparent; -webkit-text-stroke: 1px rgba(var(--ink-rgb), .35);
    display: inline-flex; align-items: center; gap: 36px; padding-right: 36px;
}
.marquee-track span:nth-child(odd) { color: var(--text); -webkit-text-stroke: 0; }
.marquee-track span::after { content: "✦"; color: var(--accent); -webkit-text-stroke: 0; font-size: .7em; }
/* Moves left → right: starts shifted by one copy and slides back to 0 */
@keyframes marquee { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Process ---------- */
.process { margin-top: 64px; }
.process-title { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 28px; }
.process-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.process-list li { position: relative; padding-top: 26px; border-top: 1px solid var(--border); }
.process-list li::before {
    content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 2px; background: var(--gradient);
}
.process-list .step { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; line-height: 1;
    background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; }
.process-list h4 { font-size: 1.08rem; font-weight: 800; margin: 14px 0 6px; }
.process-list p { color: var(--muted); font-size: .93rem; }

/* ---------- CTA band ---------- */
.cta-band { padding: 100px 0; }
.cta-box {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
    padding: 56px; border-radius: 28px; background: var(--gradient); color: #140a04;
}
.cta-box::before {
    content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%;
    border: 60px solid rgba(255, 255, 255, .14); pointer-events: none;
}
.cta-box > * { position: relative; }
.cta-box h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.15; max-width: 560px; }
.cta-box p { margin-top: 10px; font-weight: 600; opacity: .8; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-dark { background: #140a04; color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .6); }
.btn-outline-dark { border: 1.5px solid rgba(20, 10, 4, .5); color: #140a04; }
.btn-outline-dark:hover { background: rgba(20, 10, 4, .08); border-color: #140a04; }

/* ---------- Branches ---------- */
.branches { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.branch { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.branch-map { aspect-ratio: 16 / 10; background: var(--surface-2); }
.branch-map iframe { width: 100%; height: 100%; border: 0; }
.branch-info { padding: 24px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.branch-info h3 { font-family: var(--font-display); font-size: 1.2rem; }
.branch-info ul { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.branch-info li { display: flex; gap: 10px; color: var(--muted); }
.branch-info li b { color: var(--text); font-weight: 700; }
.branch-info li ion-icon { color: var(--accent); font-size: 1.2rem; margin-top: 2px; }
.branch-info li a:hover { color: var(--accent-2); }
.branch-info .btn { align-self: flex-start; }

/* ---------- Footer ---------- */
.footer { padding: 64px 0 28px; background: var(--bg-alt); border-top: 1px solid var(--border); }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; align-items: start; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.footer-brand p { color: var(--muted); margin-top: 12px; max-width: 280px; }
.footer-col h4 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: .95rem; }
.footer-col a { transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.social-list { display: flex; gap: 10px; }
.social-list a {
    width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.25rem;
    background: var(--surface); border: 1px solid var(--border); transition: background-color .2s, border-color .2s, transform .2s;
}
.social-list a:hover { background: var(--accent); border-color: var(--accent); color: #140a04; transform: translateY(-3px); }
.footer-bottom {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
    padding-top: 24px; color: var(--muted); font-size: .88rem;
}
.copyright { display: flex; align-items: center; gap: 8px; justify-self: start; }
.rights { display: flex; align-items: center; gap: 12px; justify-self: center; text-align: center; }
.footer-bottom-actions { justify-self: end; }
.rights .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.copyright a { color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: .85rem; transition: color .2s; }
.copyright a em { font-style: normal; color: var(--accent); margin-inline: 1px; }
.copyright a:hover { color: var(--accent-2); }

.footer-bottom-actions { display: flex; align-items: center; gap: 10px; }
.dev-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text); font-weight: 700; font-size: .85rem;
    transition: border-color .25s, background-color .25s, transform .25s;
}
.dev-badge ion-icon { color: var(--accent); font-size: 1rem; }
.dev-badge-arrow { transform: rotate(45deg); transition: transform .25s; }
.dev-badge:hover { border-color: rgba(255, 90, 31, .5); background: var(--accent-soft); transform: translateY(-2px); }
.dev-badge:hover .dev-badge-arrow { transform: rotate(45deg) translateY(-3px); }
.dev-badge { position: relative; }
.dev-badge-label { color: var(--muted); font-weight: 600; }
.dev-badge-text b { font-weight: 800; }

/* "Need a site like this?" tip above the author badge (hover / keyboard focus) */
.dev-tip {
    position: absolute; right: 0; bottom: calc(100% + 12px); z-index: 5;
    display: flex; flex-direction: column; gap: 2px; width: max-content; max-width: 240px;
    padding: 12px 14px; border-radius: 14px; text-align: left;
    background: var(--surface); border: 1px solid rgba(255, 90, 31, .4); box-shadow: var(--shadow);
    font-size: .82rem; font-weight: 600; color: var(--text);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    pointer-events: none;
}
.dev-tip::after {
    content: ""; position: absolute; right: 28px; top: 100%;
    border: 7px solid transparent; border-top-color: rgba(255, 90, 31, .4);
}
.dev-tip strong { color: var(--accent-text); font-weight: 800; }
.dev-badge:hover .dev-tip, .dev-badge:focus-visible .dev-tip { opacity: 1; visibility: visible; transform: none; }
@media (hover: none) { .dev-tip { display: none; } }

.to-top {
    width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem;
    background: var(--gradient); color: #140a04;
    box-shadow: 0 8px 20px -8px rgba(255, 90, 31, .8); transition: transform .25s;
}
.to-top:hover { transform: translateY(-3px); }

.fab-call {
    display: none; position: fixed; right: 18px; bottom: 18px; z-index: 40;
    width: 58px; height: 58px; border-radius: 50%; place-items: center; font-size: 1.5rem;
    background: var(--gradient); color: #140a04; box-shadow: 0 12px 30px -8px rgba(255, 90, 31, .8);
}

/* ---------- Reveal animation ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js [data-reveal].revealed { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .about-grid { grid-template-columns: repeat(2, 1fr); }
    .header-contact { display: none; }
    .process-list { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { max-width: 420px; width: 100%; margin-inline: auto; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .cars-slider { --per-view: 2; }
    .branches { grid-template-columns: 1fr; }

    .nav-toggle-btn { display: block; z-index: 2; }
    .navbar {
        position: fixed; inset: var(--header-h) 0 0; flex-direction: column; align-items: stretch; gap: 24px;
        padding: 24px 20px 40px; background: var(--menu-bg); backdrop-filter: blur(16px);
        opacity: 0; visibility: hidden; transform: translateY(-10px);
        transition: opacity .25s ease, transform .25s ease, visibility .25s;
    }
    .nav-open .navbar { opacity: 1; visibility: visible; transform: none; }
    .nav-open .header { background: var(--menu-bg); }
    .navbar-list { flex-direction: column; gap: 4px; }
    .navbar-link { display: block; font-size: 1.25rem; padding: 14px 16px; border-radius: 14px; color: var(--text); }
    .navbar-cta { display: inline-flex; padding: 16px; font-size: 1.05rem; }
}

@media (max-width: 640px) {
    :root { --header-h: 68px; }
    .header-inner { gap: 10px; }
    .header-actions { gap: 8px; }
    .logo { font-size: .86rem; gap: 7px; flex-shrink: 0; }
    .logo em { margin-inline: 1px; }
    .logo img { width: 32px; }
    .lang-switch button { min-width: 32px; padding: 5px 8px; font-size: .72rem; }
    .theme-toggle { width: 34px; height: 34px; font-size: 1rem; }
    .nav-toggle-btn { width: 40px; height: 40px; }
    .nav-toggle-btn span { left: 11px; right: 11px; }
    .nav-toggle-btn span:nth-child(1) { top: 13px; }
    .nav-toggle-btn span:nth-child(2), .nav-open .nav-toggle-btn span:nth-child(1), .nav-open .nav-toggle-btn span:nth-child(3) { top: 19px; }
    .nav-toggle-btn span:nth-child(3) { top: 25px; }
    .section { padding: 80px 0; }
    .services-grid, .about-grid { grid-template-columns: 1fr; }
    .cars-slider { --per-view: 1.12; --gap: 14px; }
    .slider-controls { display: none; }
    .hero-actions .btn { width: 100%; }
    .hero-stats { gap: 24px; }
    .hero-chip { font-size: .78rem; padding: 8px 12px; }
    .chip-2 { right: 0; }
    .hero-emblem { width: 34%; }
    .chip-6 { left: 0; }
    .cars-cta { padding: 24px; }
    .cars-cta .btn { width: 100%; }
    .fab-call { display: grid; }
    .process-list { grid-template-columns: 1fr; }
    .cta-band { padding: 72px 0; }
    .cta-box { padding: 36px 24px; border-radius: 22px; }
    .cta-actions, .cta-actions .btn { width: 100%; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer { padding-bottom: 96px; }
    .footer-bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 14px; }
    .copyright, .rights, .footer-bottom-actions { justify-self: center; }
}

/* Very narrow phones: keep only the emblem so the header buttons fit */
@media (max-width: 359px) {
    .header .logo span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
}
