/* ============================================================
   Bagoly Diag — design system
   Aesthetic: deep night-shop, owl-eye red accent, confident type
   ============================================================ */

@font-face {
    font-family: "UniSans";
    src: url(../fonts/Uni\ Sans\ Heavy\ Italic.otf) format("opentype");
    font-display: swap;
}

:root {
    /* Surfaces */
    --bg-0:        #0a0a0c;
    --bg-1:        #111114;
    --bg-2:        #17171c;
    --bg-3:        #1f1f26;
    --bg-elev:     #25252e;

    /* Lines */
    --line:        rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.18);

    /* Text */
    --text:        #f1ede4;
    --text-dim:    #9a958c;
    --text-mute:   #5e5b54;

    /* Accent — owl-eye red */
    --red:         #e6342e;
    --red-soft:    #ff5a55;
    --red-deep:    #a51e1a;

    /* Type */
    --display:     "Space Grotesk", "Inter", system-ui, sans-serif;
    --body:        "Inter", system-ui, -apple-system, sans-serif;
    --mono:        "JetBrains Mono", ui-monospace, "SF Mono", monospace;
    --wordmark:    "UniSans", "Space Grotesk", sans-serif;

    /* Layout */
    --maxw:        1280px;
    --pad-x:       clamp(20px, 5vw, 64px);
    --radius:      14px;
    --radius-lg:   22px;
}

/* Reset / base ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--body);
    background: var(--bg-0);
    color: var(--text);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; }

::selection { background: var(--red); color: #fff; }

/* Layout helpers ---------------------------------------------- */
.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding-left:  var(--pad-x);
    padding-right: var(--pad-x);
}
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }

.kicker {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-dim);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.kicker::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--red);
}

.eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-mute);
}

/* Header ------------------------------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 10, 12, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}
.brand__owl {
    width: 38px; height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(230, 52, 46, 0.35));
}
.brand__name {
    font-family: var(--wordmark);
    font-size: 22px;
    font-style: italic;
    letter-spacing: 0.02em;
    line-height: 1;
}

/* Nav --------------------------------------------------------- */
.nav {
    display: flex;
    align-items: center;
    gap: 36px;
}
.nav__link {
    position: relative;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text-dim);
    padding: 8px 0;
    transition: color 0.2s ease;
}
.nav__link:hover { color: var(--text); }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--red);
}
.nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    transition: background 0.2s ease, border-color 0.2s ease;
}
.nav__cta:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}
.nav__cta .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 10px var(--red);
}
.nav__cta:hover .dot { background: #fff; box-shadow: 0 0 10px #fff; }

.nav-toggle {
    display: none;
    position: relative;
    width: 44px; height: 44px;
    background: transparent;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    padding: 0;
    color: var(--text);
    cursor: pointer;
    z-index: 70;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.nav-toggle:hover { border-color: var(--red); }
.nav-toggle span {
    position: absolute;
    left: 50%;
    width: 18px;
    height: 1.5px;
    margin-left: -9px;
    background: var(--text);
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 820px) {
    .nav { display: none; }
    .nav-toggle { display: block; }

    .nav.is-open {
        display: flex;
        position: fixed;
        top: 72px; right: 0; bottom: 0; left: 0;
        height: calc(100dvh - 72px);
        z-index: 60;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 28px var(--pad-x) calc(env(safe-area-inset-bottom, 0px) + 28px);
        background:
            radial-gradient(80% 50% at 80% 0%, rgba(230, 52, 46, 0.18) 0%, transparent 70%),
            linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 60%);
        border-top: 1px solid var(--line);
        overflow-y: auto;
        animation: nav-slide-in 0.28s cubic-bezier(0.2, 0.7, 0.3, 1);
    }
    @keyframes nav-slide-in {
        from { opacity: 0; transform: translateY(-12px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .nav.is-open .nav__link {
        position: relative;
        display: flex;
        align-items: center;
        padding: 22px 4px;
        font-size: 28px;
        font-family: var(--display);
        font-weight: 500;
        letter-spacing: -0.01em;
        color: var(--text);
        border-bottom: 1px solid var(--line);
        transition: padding-left 0.2s ease, color 0.2s ease;
    }
    .nav.is-open .nav__link:first-of-type { border-top: 1px solid var(--line); }
    .nav.is-open .nav__link:hover,
    .nav.is-open .nav__link:active { padding-left: 14px; color: var(--red-soft); }
    .nav.is-open .nav__link.is-active { color: var(--text); padding-left: 18px; }
    .nav.is-open .nav__link.is-active::before {
        content: "";
        position: absolute;
        left: 0; top: 50%;
        width: 8px; height: 8px; margin-top: -4px;
        border-radius: 50%;
        background: var(--red);
        box-shadow: 0 0 14px var(--red);
    }
    .nav.is-open .nav__link.is-active::after { display: none; }

    .nav.is-open .nav__cta {
        margin-top: auto;
        justify-content: center;
        padding: 18px 22px;
        border-radius: 14px;
        border-color: var(--red);
        background: var(--red);
        color: #fff;
        font-size: 16px;
        font-weight: 600;
    }
    .nav.is-open .nav__cta .dot { background: #fff; box-shadow: 0 0 10px #fff; }
}

body.nav-locked { overflow: hidden; }

/* Buttons ----------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
    background: var(--red);
    color: #fff;
}
.btn--primary:hover { background: var(--red-soft); }
.btn--ghost {
    border-color: var(--line-strong);
    color: var(--text);
    background: transparent;
}
.btn--ghost:hover { border-color: var(--text); }
.btn__arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}
.btn:hover .btn__arrow { transform: translateX(3px); }

/* Hero -------------------------------------------------------- */
.hero {
    position: relative;
    padding: clamp(80px, 14vw, 160px) 0 clamp(60px, 10vw, 120px);
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}
.hero::before {
    content: "";
    position: absolute;
    /* Oversize so the drift animation never reveals the edge. */
    inset: -300px;
    background-image: url("../images/diagos_hatter_logok2.webp");
    background-size: 240px 240px;
    background-repeat: repeat;
    opacity: 0.18;
    mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
    pointer-events: none;
    will-change: transform;
    animation: pattern-drift 60s linear infinite;
}
@keyframes pattern-drift {
    /* Translate by exactly one tile so the loop is seamless. */
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-240px, -240px, 0); }
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(230, 52, 46, 0.18), transparent 60%);
    pointer-events: none;
}
.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 64px;
}
.hero__title {
    font-size: clamp(44px, 7vw, 96px);
    line-height: 0.95;
    letter-spacing: -0.035em;
    font-weight: 600;
}
.hero__title em {
    font-style: italic;
    color: var(--red);
    font-family: var(--wordmark);
}
.hero__sub {
    margin-top: 28px;
    max-width: 540px;
    font-size: clamp(16px, 1.4vw, 19px);
    color: var(--text-dim);
    line-height: 1.55;
}
.hero__actions {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* --- Owl planet + 3D orbits -------------------------------- */
.hero__art {
    position: relative;
    width: clamp(300px, 28vw, 440px);
    aspect-ratio: 1;
    /* Set up the 3D scene so orbiters can render in front of / behind
       the owl as they pass around the tilted ring. */
    perspective: 1200px;
    transform-style: preserve-3d;
}
.hero__art-owl {
    position: absolute;
    inset: 22%;
    width: 56%;
    height: 56%;
    object-fit: contain;
    filter: drop-shadow(0 30px 60px rgba(230, 52, 46, 0.3));
    /* Owl sits at z = 0 — orbiters with positive z render in front,
       negative z render behind. */
}
/* The orbit plane — tilted forward so the ring reads as 3D. */
.orbit-plane {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transform: rotateX(62deg);
}
/* Subtle ring stays in the orbit plane so it tilts with the orbits. */
.hero__art-ring {
    position: absolute;
    inset: 12%;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}
/* Each pivot is a full-bounds square that spins around its center.
   Orbiters anchored at the pivot's top-edge trace the circumference.
   Different delays offset each orbiter 90° around the ring. */
.pivot {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    animation: pivot-spin 24s linear infinite;
    animation-delay: var(--delay, 0s);
    will-change: transform;
}
@keyframes pivot-spin {
    from { transform: rotateZ(0deg); }
    to   { transform: rotateZ(360deg); }
}

/* The orbiter sits at top-center of its pivot and counter-rotates to stay
   facing the viewer. Two parts to the counter:
     rotateZ(-t)   — cancels the pivot's spin so the icon stays upright
                     within the orbit plane
     rotateX(-62°) — cancels the orbit-plane's tilt so the icon faces
                     the camera (billboards)
   Because we counter both rotations, the icon's compound transform is
   just `translate(-50%, -50%)` — pure positioning, no rotation. */
.orbiter {
    position: absolute;
    top: 0;
    left: 50%;
    width: 58px;
    height: 58px;
    background: var(--bg-2);
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    animation: orbiter-counter 24s linear infinite;
    animation-delay: var(--delay, 0s);
    will-change: transform;
}
.orbiter img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}
.orbiter--emoji {
    font-size: 28px;
    line-height: 1;
}
@keyframes orbiter-counter {
    from { transform: translate(-50%, -50%) rotateZ(0deg)    rotateX(-62deg); }
    to   { transform: translate(-50%, -50%) rotateZ(-360deg) rotateX(-62deg); }
}

@media (max-width: 760px) {
    .hero__inner { grid-template-columns: 1fr; }
    /* Hide the entire owl + orbit block on phones — saves the perspective
       compositing layer entirely on mobile devices. */
    .hero__art { display: none; }
}

/* Respect users who prefer reduced motion: freeze all the spinning. */
@media (prefers-reduced-motion: reduce) {
    .hero::before,
    .pivot,
    .orbiter {
        animation: none;
    }
}

/* Stats strip ------------------------------------------------- */
.stats {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg-1);
}
.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 36px 0;
}
.stats__cell {
    padding: 12px 24px;
    border-left: 1px solid var(--line);
}
.stats__cell:first-child { border-left: none; }
.stats__num {
    font-family: var(--display);
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
}
.stats__num em { color: var(--red); font-style: normal; }
.stats__label {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-mute);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
@media (max-width: 760px) {
    .stats__grid { grid-template-columns: repeat(2, 1fr); }
    .stats__cell:nth-child(3) { border-left: none; }
}

/* Section header ---------------------------------------------- */
.sec-head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 24px;
    margin-bottom: 56px;
}
.sec-head__title {
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1;
    letter-spacing: -0.025em;
    margin-top: 18px;
    max-width: 700px;
}
.sec-head__title em { font-style: italic; color: var(--red); }
.sec-head__meta {
    color: var(--text-dim);
    font-size: 14px;
}
@media (max-width: 760px) {
    .sec-head { grid-template-columns: 1fr; }
}

/* Brand grid -------------------------------------------------- */
.brands {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-1);
}
.brand-cell {
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 28px;
    transition: background 0.25s ease;
    cursor: pointer;
    position: relative;
}
.brand-cell:hover { background: var(--bg-2); }
.brand-cell:hover .brand-cell__name { opacity: 1; transform: translateY(0); }
.brand-cell img {
    max-height: 70px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1) opacity(0.7);
    transition: filter 0.3s ease, transform 0.3s ease;
}
.brand-cell:hover img {
    filter: brightness(0) invert(1) opacity(1);
    transform: scale(1.05);
}
.brand-cell__name {
    position: absolute;
    bottom: 14px;
    left: 16px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-mute);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Service cards ---------------------------------------------- */
.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.service-card {
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 36px;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
    position: relative;
    overflow: hidden;
}
.service-card:hover {
    border-color: var(--red-deep);
    transform: translateY(-3px);
    background: var(--bg-2);
}
.service-card__num {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-mute);
    letter-spacing: 0.15em;
}
.service-card__icon {
    margin-top: auto;
    margin-bottom: 28px;
    height: 76px;
    display: flex;
    align-items: center;
}
.service-card__icon img {
    height: 100%;
    width: auto;
    object-fit: contain;
}
.service-card__title {
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -0.015em;
}
.service-card__desc {
    margin-top: 10px;
    color: var(--text-dim);
    font-size: 14px;
}
@media (max-width: 820px) { .services { grid-template-columns: 1fr; } }

/* Map / nav module ------------------------------------------- */
.map-mod {
    border-top: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(10,10,12,0.85), rgba(10,10,12,0.95)),
        url("../images/navi_hatter.webp") center/cover no-repeat;
    color: var(--text);
}
.map-mod__grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
}
.map-mod__copy h2 {
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1;
    letter-spacing: -0.025em;
}
.map-mod__copy h2 em { font-style: italic; color: var(--red); }
.map-mod__copy p {
    margin-top: 18px;
    color: var(--text-dim);
    max-width: 480px;
}
.map-shots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.map-shot {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
    background: var(--bg-1);
}
.map-shot img {
    width: 100%;
    border-radius: 8px;
}
.map-shot__cap {
    margin-top: 12px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-mute);
}
@media (max-width: 820px) {
    .map-mod__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Tools strip ------------------------------------------------- */
.tools {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg-1);
    padding: 72px 0;
}
.tools__head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: end;
    margin-bottom: 48px;
}
.tools__head h2 {
    font-size: clamp(28px, 3.6vw, 42px);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-top: 18px;
    max-width: 520px;
}
.tools__head h2 em { font-style: italic; color: var(--red); }
.tools__head p {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.55;
    max-width: 440px;
}
.tools__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}
.tool-card {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.tool-card:hover {
    border-color: var(--line-strong);
    background: var(--bg-3);
    transform: translateY(-2px);
}
.tool-card__logo {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.tool-card__logo img {
    max-height: 56px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.tool-card__name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.005em;
}
.tool-card__note {
    margin-top: 4px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-mute);
}
@media (max-width: 900px) {
    .tools__head { grid-template-columns: 1fr; }
    .tools__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .tools__grid { grid-template-columns: 1fr; }
}

/* Footer ------------------------------------------------------ */
.site-footer {
    background: var(--bg-0);
    border-top: 1px solid var(--line);
    padding: 80px 0 32px;
}
.foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 56px;
}
.foot-col h4 {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-mute);
    font-weight: 400;
    margin-bottom: 18px;
}
.foot-col ul li { padding: 6px 0; color: var(--text-dim); font-size: 14px; }
.foot-col a { color: var(--text); }
.foot-col a:hover { color: var(--red-soft); }
.foot-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.foot-brand img { width: 36px; height: 36px; }
.foot-brand span {
    font-family: var(--wordmark);
    font-style: italic;
    font-size: 22px;
}
.foot-tag { color: var(--text-dim); font-size: 14px; max-width: 280px; }

.foot-bottom {
    border-top: 1px solid var(--line);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-mute);
}

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

/* Vehicles page ---------------------------------------------- */
.veh-hero {
    padding: clamp(80px, 12vw, 140px) 0 60px;
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}
.veh-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 80%, rgba(230, 52, 46, 0.16), transparent 60%);
    pointer-events: none;
}
.veh-hero__inner { position: relative; }
.veh-hero h1 {
    font-size: clamp(48px, 7vw, 88px);
    line-height: 0.95;
    letter-spacing: -0.03em;
}
.veh-hero h1 em { font-style: italic; color: var(--red); }
.veh-hero p { max-width: 580px; color: var(--text-dim); margin-top: 20px; font-size: 18px; }

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-mute);
    margin-bottom: 40px;
}
.crumbs__item { color: var(--text-mute); cursor: default; }
.crumbs__item.is-link { cursor: pointer; color: var(--text-dim); }
.crumbs__item.is-link:hover { color: var(--red-soft); }
.crumbs__item.is-current { color: var(--text); }
.crumbs__sep { opacity: 0.5; }

.picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.picker__item {
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.picker__item:hover {
    background: var(--bg-2);
    border-color: var(--red-deep);
    transform: translateY(-2px);
}
.picker__item-label {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.picker__item-arrow {
    color: var(--text-mute);
    transition: color 0.2s ease, transform 0.2s ease;
}
.picker__item:hover .picker__item-arrow {
    color: var(--red);
    transform: translateX(3px);
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.service-row {
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.service-row__bullet {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
    margin-top: 8px;
    box-shadow: 0 0 10px var(--red);
}
.service-row__text {
    font-size: 16px;
    line-height: 1.4;
    color: var(--text);
}

/* Contact ----------------------------------------------------- */
.contact-hero { padding: clamp(80px, 12vw, 140px) 0 60px; }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}
.contact-card {
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 36px;
}
.contact-card h3 {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-mute);
    font-weight: 400;
    margin-bottom: 16px;
}
.contact-card .big {
    font-family: var(--display);
    font-size: clamp(28px, 3.4vw, 38px);
    letter-spacing: -0.02em;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    display: inline-block;
}
.contact-card .big:hover { color: var(--red-soft); }
.contact-card p { color: var(--text-dim); margin: 14px 0 0; }

.locations {
    display: grid;
    gap: 16px;
}
.location {
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px;
}
.location__city {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 8px;
}
.location__addr {
    font-size: 18px;
    letter-spacing: -0.01em;
}

.fb-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.fb-link:hover { background: var(--red); border-color: var(--red); }
.fb-icon {
    width: 22px; height: 22px;
    background: url("../images/face_white.webp") center/contain no-repeat;
}

.map-block {
    border-top: 1px solid var(--line);
    margin-top: 60px;
    background: var(--bg-0);
}
.map-block__canvas {
    width: 100%;
    height: 520px;
    position: relative;
}
.map-block__canvas .maplibregl-canvas { outline: none; }

/* pulsing red dot marker */
.bdmarker { cursor: pointer; width: 18px; height: 18px; }
.bdmarker__dot {
    display: block; width: 12px; height: 12px; border-radius: 50%;
    background: var(--red);
    border: 1px solid var(--bg-0);
    box-shadow: 0 0 0 4px rgba(230, 52, 46, 0.28);
    animation: bdpulse 2.4s ease-out infinite;
}
@keyframes bdpulse {
    0%   { box-shadow: 0 0 0 0 rgba(230, 52, 46, 0.55); }
    70%  { box-shadow: 0 0 0 16px rgba(230, 52, 46, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 52, 46, 0); }
}

/* popup */
.bdpop-wrap .maplibregl-popup-content {
    background: rgba(17, 17, 20, 0.96);
    backdrop-filter: blur(12px);
    border: 1px solid var(--red);
    padding: 18px 20px;
    color: var(--text);
    border-radius: var(--radius);
}
.bdpop-wrap .maplibregl-popup-tip {
    border-top-color: var(--red);
    border-bottom-color: var(--red);
}
.bdpop-wrap .maplibregl-popup-close-button {
    color: var(--text-dim); font-size: 1.25rem; padding: 2px 9px;
}
.bdpop-wrap .maplibregl-popup-close-button:hover {
    color: var(--red-soft); background: transparent;
}
.bdpop { max-width: 220px; font-family: var(--body); }
.bdpop__city {
    font-family: var(--display); font-weight: 600; font-size: 1.15rem;
    color: var(--text);
}
.bdpop__addr {
    color: var(--text-dim); font-size: 0.85rem; margin-top: 4px;
}
.bdpop__btn {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 14px;
    background: var(--red); color: #fff;
    border: 0; border-radius: 8px;
    padding: 10px 14px;
    font-family: var(--body); font-weight: 600; font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s ease;
}
.bdpop__btn:hover { background: var(--red-soft); }
.bdpop__arrow { display: inline-block; transition: transform 0.15s ease; }
.bdpop__btn:hover .bdpop__arrow { transform: translateX(3px); }

@media (max-width: 600px) {
    .map-block__canvas { height: 420px; }
}

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

/* 404 --------------------------------------------------------- */
.notfound {
    text-align: center;
    padding: clamp(80px, 14vw, 180px) 0;
}
.notfound__code {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(140px, 24vw, 280px);
    line-height: 0.85;
    letter-spacing: -0.05em;
    color: var(--bg-elev);
}
.notfound__code em { color: var(--red); font-style: normal; }
.notfound__title {
    margin-top: 24px;
    font-size: clamp(24px, 3vw, 36px);
}
.notfound__sub { color: var(--text-dim); margin-top: 12px; }
.notfound__back { margin-top: 32px; }

/* Utility ----------------------------------------------------- */
.text-dim { color: var(--text-dim); }
.divider {
    height: 1px;
    background: var(--line);
    margin: 0;
}
