/* NextCom Auto – site styles (dark + red) */
:root {
    --ink:       #0d1016;
    --graphite:  #161a22;
    --surface:   #1e232d;
    --line:      #2a303c;
    --red:       #e30613;
    --red-600:   #c00510;
    --red-soft:  rgba(227, 6, 19, .1);
    --bg:        #f4f5f7;
    --card:      #fff;
    --text:      #1a1f29;
    --muted:     #6b7280;
    --border:    #e5e7eb;
    --on-dark:   #e8eaef;
    --on-dark-2: #9aa1af;
    --radius:    14px;
    --radius-sm: 10px;
    --shadow:    0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .07);
    --shadow-lg: 0 2px 4px rgba(16, 24, 40, .05), 0 20px 48px rgba(16, 24, 40, .14);
    --container: 1200px;
    --header-h:  76px;
    --font:      "Manrope", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
button, input, textarea, select, .btn, .btn-info { font-feature-settings: "locl" 0 !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font: 400 16px/1.65 var(--font);
    color: var(--text);
    background: var(--bg);
    /* standard Cyrillic forms instead of the Bulgarian (lang="bg") variants */
    font-feature-settings: "locl" 0;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; border: 0; }
a { color: var(--red); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--red-600); }
h1, h2, h3, h4, h5 { color: var(--text); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .6em; }
figure { margin: 0; }
:focus-visible { outline: 3px solid rgba(227, 6, 19, .45); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--red); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--flush-top { padding-top: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); margin: 0; }
.section-head p { margin: 8px 0 0; color: var(--muted); max-width: 560px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--red); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn, .btn-info {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
    font: 700 15px/1.2 var(--font); letter-spacing: .01em; text-align: center;
    cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--primary, .btn-info { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(227, 6, 19, .28); }
.btn--primary:hover, .btn-info:hover { background: var(--red-600); color: #fff; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(227, 6, 19, .35); }
.btn--outline { border-color: var(--border); color: var(--text); background: #fff; }
.btn--outline:hover { border-color: var(--red); color: var(--red); }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.link-arrow::after { content: "→"; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 900;
    background: rgba(13, 16, 22, .92);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled { background: rgba(13, 16, 22, .97); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { flex-shrink: 0; display: block; }
.brand img { display: block; height: 52px; width: auto; }

.main-nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 14px; border-radius: 999px;
    color: var(--on-dark); font-size: 15px; font-weight: 600; white-space: nowrap;
    background: none; border: 0; font-family: inherit; cursor: pointer;
}
.nav-link:hover, .nav-item:focus-within > .nav-link { color: #fff; background: rgba(255, 255, 255, .06); }
.nav-item.is-active > .nav-link { color: #fff; background: var(--red); box-shadow: 0 6px 16px rgba(227, 6, 19, .3); }
.nav-item.is-active > .nav-link:hover { background: var(--red-600); }
.chevron { width: 10px; height: 10px; transition: transform .2s ease; }
.nav-item:hover .chevron, .nav-item.is-open .chevron { transform: rotate(180deg); }

.sub-nav {
    list-style: none; margin: 0; padding: 8px;
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.sub-nav::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-item:hover > .sub-nav, .nav-item:focus-within > .sub-nav, .nav-item.is-open > .sub-nav { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-nav a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--on-dark); font-size: 15px; font-weight: 600; }
.sub-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sub-nav a.is-active { background: var(--red); color: #fff; }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone {
    display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px;
    border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; font-size: 15px; white-space: nowrap;
}
.header-phone:hover { background: var(--red-600); color: #fff; }
.header-phone svg { width: 18px; height: 18px; }

.nav-toggle {
    display: none; width: 46px; height: 46px; margin-left: auto; border-radius: 10px;
    border: 1px solid var(--line); background: var(--surface); cursor: pointer; padding: 0;
    align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; position: relative; transition: transform .25s ease, background .2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
    .header-phone .phone-text { display: none; }
    .header-phone { padding: 12px; }
    .nav-link { padding: 10px 9px; font-size: 14.5px; }
}
@media (max-width: 1020px) {
    :root { --header-h: 68px; }
    .brand img { height: 44px; }
    /* backdrop-filter would make the header the containing block of the fixed menu and clip it */
    .site-header, .site-header.is-scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--ink); }
    .nav-toggle { display: inline-flex; }
    .header-cta { order: 2; }
    .header-inner { gap: 12px; }
    .main-nav {
        position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; margin: 0;
        background: var(--ink); padding: 16px 20px 32px; overflow-y: auto;
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
    .nav-open { overflow: hidden; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
    .nav-link { justify-content: space-between; width: 100%; padding: 14px 16px; font-size: 17px; border-radius: 10px; }
    .sub-nav {
        position: static; opacity: 1; visibility: visible; transform: none; display: none;
        background: transparent; border: 0; box-shadow: none; padding: 4px 0 8px 16px; min-width: 0;
    }
    .nav-item:hover > .sub-nav, .nav-item:focus-within > .sub-nav { display: none; }
    .nav-item.is-open > .sub-nav { display: block; }
    .nav-item:hover .chevron { transform: none; }
    .nav-item.is-open .chevron { transform: rotate(180deg); }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    position: relative; overflow: hidden;
    background: radial-gradient(1200px 400px at 85% -10%, rgba(227, 6, 19, .22), transparent 60%), linear-gradient(180deg, var(--ink), var(--graphite));
    color: var(--on-dark); padding: 44px 0 52px;
}
.page-hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
    mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(26px, 3.6vw, 42px); margin: 0; max-width: 900px; }
.page-hero .lead { margin: 12px 0 0; color: var(--on-dark-2); max-width: 720px; font-size: 17px; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; font-size: 14px; color: var(--muted); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: ">"; opacity: .5; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb [aria-current] { color: var(--text); font-weight: 600; }
.breadcrumb-bar { padding: 20px 0 0; }
.breadcrumb-bar + .page-body { padding-top: 36px; }

.page-body { padding: 48px 0 80px; }

/* ---------- Cards & prose ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(16, 24, 40, .04); }
.card--pad { padding: clamp(22px, 4vw, 44px); }

.prose { font-size: 16.5px; line-height: 1.75; color: #2b3240; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-size: 24px; margin: 1.6em 0 .6em; padding-left: 14px; border-left: 4px solid var(--red); }
.prose h2 a { color: inherit; text-decoration: none !important; }
.prose h2 a:hover { color: var(--red); }
.prose h3 { font-size: 20px; margin: 1.4em 0 .5em; }
.prose h4, .prose h5 { font-size: clamp(22px, 2.6vw, 28px); margin: 1.4em 0 .8em; text-align: center; }
.prose ul { list-style: none; padding: 0; margin: 0 0 1.2em; }
.prose ul li { position: relative; padding-left: 26px; margin-bottom: .45em; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.prose ul li p { margin: 0; }
.prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose ol li { margin-bottom: .45em; }
.prose ol li::marker { color: var(--red); font-weight: 800; }
.prose strong { color: var(--text); }
.prose a:not(.btn):not(.btn-info) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius-sm); }
.prose table { width: 100% !important; border-collapse: collapse; margin: 0 0 1.2em; }
.prose table td, .prose table th { width: auto !important; padding: 10px; vertical-align: middle; }
.prose iframe { display: block; width: 100%; border: 0; border-radius: var(--radius-sm); background: #fff; }
.prose blockquote { margin: 1.2em 0; padding: 16px 20px; background: var(--bg); border-left: 4px solid var(--red); border-radius: 0 10px 10px 0; }
.prose hr { border: 0; height: 1px; background: var(--border); margin: 2em 0; }

/* Home text – country flags table becomes a tidy grid of tiles */
.home-intro .prose table img { width: 72px !important; height: 48px; object-fit: cover; border-radius: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.home-intro .prose table p { margin: 0; }
.home-intro .prose img[style*="float: right"] { max-width: 260px; margin: 0 0 16px 24px; }

/* ---------- Home hero ---------- */
.hero {
    position: relative; overflow: hidden; color: var(--on-dark);
    background:
        radial-gradient(900px 500px at 78% 40%, rgba(227, 6, 19, .28), transparent 65%),
        radial-gradient(600px 300px at 10% 0%, rgba(255, 255, 255, .06), transparent 70%),
        linear-gradient(180deg, var(--ink) 0%, var(--graphite) 100%);
}
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at 70% 50%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse at 70% 50%, #000 20%, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; padding: 80px 20px 96px; }
.hero h1 { color: #fff; font-size: clamp(34px, 5vw, 60px); line-height: 1.06; letter-spacing: -.02em; margin: 0 0 20px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero-lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--on-dark-2); max-width: 560px; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.hero-actions .btn { min-width: min(350px, 100%); }
.hero-flags { display: grid; grid-template-columns: repeat(3, auto); gap: 8px 10px; margin: 0; padding: 0; list-style: none; }
.hero-flags li { margin: 0; }
.hero-flags img { display: block; width: 48px; height: 32px; object-fit: cover; border-radius: 5px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 3px 8px rgba(0, 0, 0, .35); }
.hero-visual { position: relative; }
.hero-visual::before {
    content: ""; position: absolute; left: 6%; right: 6%; bottom: 6%; height: 18%;
    background: radial-gradient(closest-side, rgba(0, 0, 0, .65), transparent); filter: blur(6px);
}
.hero-visual img { position: relative; display: block; width: 100%; max-width: 620px; margin-left: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.hero-stats { position: relative; z-index: 1; border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(0, 0, 0, .18); }
.hero-stats .container { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 24px 20px; display: flex; align-items: center; gap: 16px; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .08); }
.stat-icon { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(227, 6, 19, .15); color: #ff4d57; }
.stat-icon svg { width: 22px; height: 22px; }
.stat strong { display: block; color: #fff; font-size: 18px; line-height: 1.3; }
.stat span { color: var(--on-dark-2); font-size: 14px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step-card {
    position: relative; display: flex; flex-direction: column; padding: 28px 24px 24px;
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text);
    border: 1px solid rgba(16, 24, 40, .04); transition: transform .25s ease, box-shadow .25s ease;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--text); }
.step-num { position: absolute; top: 20px; right: 22px; font-size: 44px; font-weight: 800; line-height: 1; color: rgba(16, 24, 40, .06); }
.step-icon { width: 72px; height: 72px; border-radius: 18px; background: var(--red-soft); display: grid; place-items: center; margin-bottom: 20px; }
.step-icon img { width: 52px; height: auto; }
.step-card h3 { font-size: 18px; margin: 0 0 10px; }
.step-card p { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.6; flex: 1; }
.step-card .link-arrow { color: var(--red); font-size: 14px; }

/* ---------- Calculator band ---------- */
.band {
    position: relative; overflow: hidden; border-radius: 20px; color: #fff;
    background: linear-gradient(110deg, var(--graphite) 0%, var(--surface) 55%, #3a0b10 100%);
    display: flex; align-items: center; gap: 28px; padding: 32px 40px; box-shadow: var(--shadow-lg);
}
.band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(closest-side, rgba(227, 6, 19, .5), transparent); }
.band img { position: relative; z-index: 1; width: 84px; height: 84px; flex-shrink: 0; }
.band-text { position: relative; z-index: 1; flex: 1; }
.band-text h2 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 4px; }
.band-text p { margin: 0; color: var(--on-dark-2); }
.band .btn { position: relative; z-index: 1; }

/* ---------- Car cards ---------- */
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.car-card {
    display: flex; flex-direction: column; overflow: hidden; color: var(--text);
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
    border: 1px solid rgba(16, 24, 40, .04); transition: transform .25s ease, box-shadow .25s ease;
}
.car-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--text); }
.car-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--graphite); }
.car-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.car-card:hover .car-media img { transform: scale(1.05); }
.car-price {
    position: absolute; left: 14px; bottom: 14px; padding: 7px 14px; border-radius: 999px;
    background: var(--red); color: #fff; font-weight: 800; font-size: 16px; box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}
.car-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.car-body h2, .car-body h3 { font-size: 18px; margin: 0; line-height: 1.35; }
.car-body .link-arrow { margin-top: auto; color: var(--red); font-size: 14px; }

/* ---------- CTA (banner 3) ---------- */
.cta {
    position: relative; overflow: hidden; color: #fff;
    background: var(--ink) url("../images/cta-bg.jpg") center right / cover no-repeat;
    background-image: image-set(url("../images/cta-bg.webp") type("image/webp"), url("../images/cta-bg.jpg") type("image/jpeg"));
}
.cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 16, 22, .96) 0%, rgba(13, 16, 22, .86) 45%, rgba(13, 16, 22, .25) 100%); }
.cta .container { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 96px; }
.cta h2 { color: #fff; font-size: clamp(24px, 3vw, 36px); max-width: 640px; margin: 0 0 28px; line-height: 1.3; }

/* ---------- Listing page ---------- */
.listing { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.gallery-main { display: block; border-radius: var(--radius); overflow: hidden; background: var(--graphite); box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.gallery-main:hover img { transform: scale(1.03); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 12px; }
.thumbs a { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--graphite); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s ease, transform .3s ease; }
.thumbs a:hover img { opacity: .85; transform: scale(1.06); }
.listing-aside { position: sticky; top: calc(var(--header-h) + 20px); }
/* "Назад": right column above the price on desktop, at the very top on mobile */
.listing { row-gap: 14px; }
.listing > .back-btn { grid-column: 2; grid-row: 1; justify-self: start; padding: 10px 20px; }
.listing > .pswp_gallery { grid-column: 1; grid-row: 1 / span 2; }
.listing > .listing-aside { grid-column: 2; grid-row: 2; }
.price-box { padding: 26px; }
.price-label { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.price-value { font-size: clamp(30px, 3.6vw, 40px); font-weight: 800; color: var(--red); line-height: 1.1; margin: 4px 0 20px; }
.price-actions { display: grid; gap: 10px; margin-top: 20px; }
.price-box .prose { font-size: 15.5px; }
.specs { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--border); }
.specs li { display: grid; grid-template-columns: 20px auto 1fr; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.specs svg { width: 20px; height: 20px; color: var(--red); }
.specs-label { color: var(--muted); }
.specs-value { font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.listing-desc { margin-top: 32px; }
.gallery-main--empty { display: grid; place-items: center; }
.gallery-main--empty img { width: 60%; height: auto; object-fit: contain; }
.listing-desc h2 { font-size: 22px; }

/* ---------- Service layout ---------- */
.with-aside { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.side-nav { padding: 10px; position: sticky; top: calc(var(--header-h) + 20px); }
.side-nav-title { padding: 10px 14px 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.side-nav a, .side-nav span { display: block; padding: 12px 14px; border-radius: 10px; color: var(--text); font-weight: 600; font-size: 15px; }
.side-nav a:hover { background: var(--bg); color: var(--red); }
.side-nav span { background: var(--red-soft); color: var(--red); box-shadow: inset 3px 0 0 var(--red); }
.step-figure { margin-top: 28px; text-align: center; }
.step-figure a { display: inline-block; padding: 24px; border-radius: var(--radius); background: var(--red-soft); }
.step-figure img { max-width: 260px; display: block; }

/* ---------- Gallery (imported cars) ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.photo-tile { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--graphite); box-shadow: var(--shadow); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.photo-tile figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; color: #fff; font-weight: 700; font-size: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .75)); transform: translateY(8px); opacity: 0; transition: opacity .3s ease, transform .3s ease;
}
.photo-tile:hover img { transform: scale(1.06); }
.photo-tile:hover figcaption, .photo-tile:focus-within figcaption { opacity: 1; transform: none; }

/* ---------- Contacts ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 28px; align-items: stretch; }
.contact-card { padding: 32px; display: flex; flex-direction: column; }
.contact-card h2 { font-size: 24px; margin-bottom: 20px; }
.contact-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-ico { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); }
.contact-ico svg { width: 20px; height: 20px; }
.contact-list small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.contact-list a, .contact-list span { color: var(--text); font-weight: 600; word-break: break-word; }
.contact-list a:hover { color: var(--red); }
.contact-card .btn { margin-top: auto; align-self: flex-start; }
.map-card { overflow: hidden; min-height: 380px; }
.contact-card:only-child { max-width: 640px; }
.map-card iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ---------- Forms ---------- */
.form-card { max-width: 640px; margin: 0 auto; padding: clamp(24px, 4vw, 40px); }
.form-card h2 { font-size: 24px; margin-bottom: 6px; }
.form-card .form-intro { color: var(--muted); margin: 0 0 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--text); }
.field .req { color: var(--red); }
.field input, .field textarea {
    width: 100%; padding: 13px 16px; font: 16px var(--font); color: var(--text);
    background: #fafbfc; border: 1px solid var(--border); border-radius: 10px; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); background: #fff; box-shadow: 0 0 0 4px rgba(227, 6, 19, .12); }
.field-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px; border-radius: 12px; background: var(--bg); margin-bottom: 18px; }
.field-row label { margin: 0; flex: 1; min-width: 180px; }
.field-row input { width: 110px; text-align: center; }
.form-note { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 600; font-size: 15px; }
.alert--error { background: #fdecec; color: #a3121b; border: 1px solid #f7c9cc; }
.alert--success { background: #e9f7ef; color: #146c3a; border: 1px solid #bfe6cf; }

/* ---------- 404 ---------- */
.not-found { max-width: 640px; margin: 0 auto; text-align: center; padding: clamp(32px, 6vw, 56px); }
.not-found .code { font-size: clamp(72px, 12vw, 120px); font-weight: 800; line-height: 1; color: var(--red); letter-spacing: -.04em; }
.not-found p { color: var(--muted); }
.not-found .links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }

.empty { padding: 48px; text-align: center; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-2); font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 20px 48px; }
.footer-brand img { height: 56px; width: auto; display: block; margin-bottom: 16px; }
.footer-brand p { margin: 0 0 20px; max-width: 300px; }
.footer-title { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .1em; margin: 6px 0 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--on-dark-2); }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--red); }
.social { display: inline-flex; width: 42px; height: 42px; border-radius: 50%; align-items: center; justify-content: center; background: var(--surface); color: #fff; transition: background .2s ease; }
.social:hover { background: var(--red); color: #fff; }
.social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; font-size: 14px; }
.footer-bottom a { color: var(--on-dark-2); }
.footer-bottom a:hover { color: #fff; }

#back-to-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 800; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
    display: grid; place-items: center; background: var(--red); color: #fff; box-shadow: 0 10px 24px rgba(227, 6, 19, .35);
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s ease;
}
#back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
#back-to-top:hover { background: var(--red-600); }
#back-to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
    .hero-inner { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; text-align: center; }
    .hero-lead { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-flags { grid-template-columns: repeat(6, auto); justify-content: center; }
    .hero-flags img { width: 42px; height: 28px; }
    .hero-visual img { margin: 0 auto; max-width: 480px; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .listing { grid-template-columns: 1fr; row-gap: 20px; }
    .listing > .back-btn, .listing > .pswp_gallery, .listing > .listing-aside { grid-column: 1; grid-row: auto; }
    .listing-aside { position: static; }
    .with-aside { grid-template-columns: 1fr; }
    .side-nav { position: static; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    body { font-size: 15.5px; }
    .section { padding: 52px 0; }
    .container { padding: 0 16px; }
    .hero-inner { padding-left: 16px; padding-right: 16px; }
    .hero-stats .container { grid-template-columns: 1fr; }
    .stat { padding: 16px 4px; }
    .stat + .stat { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .08); }
    .band { flex-direction: column; text-align: center; padding: 28px 22px; }
    .band .btn { width: 100%; }
    .cta { background-position: 70% center; }
    .cta::before { background: rgba(13, 16, 22, .85); }
    .cta .container { padding-top: 64px; padding-bottom: 64px; text-align: center; }
    .page-hero { padding: 32px 0 36px; }
    .page-body { padding: 28px 0 56px; }
    .breadcrumb-bar { padding-top: 16px; }
    .breadcrumb-bar + .page-body { padding-top: 26px; }
    .home-intro .prose img[style*="float: right"] { float: none !important; display: block; margin: 0 auto 16px; max-width: 100%; }
    .home-intro .prose table td { padding: 6px 2px; }
    .home-intro .prose table img { width: 56px !important; height: 38px; }
    .prose iframe[height="800"] { height: 900px; }
    .footer-top { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
    .contact-card, .price-box { padding: 24px; }
}
@media (max-width: 560px) {
    .steps { grid-template-columns: 1fr; }
    .header-phone { display: none; }
    .hero-actions .btn { width: 100%; }
    .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .photo-tile figcaption { display: none; }
}
