/* ============================================================
   Bericar — light editorial · enterprise premium · 2026
   Warm paper canvas, hairline geometry, deep red accent,
   Fraunces editorial display, Geist precision body,
   Geist Mono HUD micro-labels.
   ============================================================ */

:root {
    --bg:         #FAFAF7;
    --bg-rise:    #F2F0E9;
    --bg-paper:   #ECE9DF;
    --bg-card:    #FFFFFF;

    --line:       #E2DED2;
    --line-strong:#CFC9B9;
    --line-soft:  #EDEAE0;

    --ink:        #0B0B0D;
    --ink-2:      #2A2A2E;
    --ink-3:      #5D5E63;
    --ink-4:      #8B8C90;
    --ink-5:      #B6B6B8;
    --ink-mute:   #D9D8D2;

    --red:        #C8101A;
    --red-mid:    #B00F18;
    --red-deep:   #8C0A11;
    --red-soft:   rgba(200, 16, 26, .08);
    --red-glow:   rgba(200, 16, 26, .22);

    --font-display: 'Onest', system-ui, -apple-system, Segoe UI, sans-serif;
    --font-body:    'Onest', system-ui, -apple-system, Segoe UI, sans-serif;
    --font-mono:    'Geist Mono', 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

    --r:           4px;
    --r-card:      10px;
    --r-pill:      999px;

    --hl-thin:     1px solid var(--line);
    --hl-soft:     1px solid var(--line-soft);
    --hl-strong:   1px solid var(--line-strong);

    --shadow-sm:   0 4px 14px rgba(60, 40, 20, .06);
    --shadow:      0 24px 60px -28px rgba(60, 40, 20, .22);
    --shadow-lg:   0 44px 96px -36px rgba(60, 40, 20, .3);
    --shadow-glow: 0 24px 60px -28px rgba(200, 16, 26, .35);

    --container:   1340px;
    --header-h:    86px;

    --ease:        cubic-bezier(.2, .7, .2, 1);
    --ease-out:    cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink-2);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-feature-settings: "ss01", "cv11";
    /* Belt-and-braces: full-bleed sections (hero pan, showcase rail) use 100vw
       which can include the vertical scrollbar's width. Clip at the body so the
       page never gains a horizontal scrollbar. `clip` is preferred over `hidden`
       because it doesn't establish a new containing block (sticky header survives). */
    overflow-x: clip;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    margin: 0;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.035em;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
em, i { font-style: italic; }

::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 200;
    background: var(--ink); color: #fff; padding: .8rem 1.2rem; font-weight: 600;
}
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.2rem, 3.2vw, 2.4rem); }

/* ---------- HUD micro-labels ---------- */
.hud {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-3);
    font-weight: 500;
}
.hud--dim { color: var(--ink-4); }
.hud__dot {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 4px rgba(200, 16, 26, .12);
    margin-right: .55rem;
    animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(200, 16, 26, .02); } }
.hud__sep { display: inline-block; width: 26px; height: 1px; background: currentColor; vertical-align: middle; margin: 0 .65rem; opacity: .35; }

.eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--red);
    font-weight: 500;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
    font-family: var(--font-body);
    font-weight: 500; font-size: .95rem; letter-spacing: .005em;
    padding: .9rem 1.5rem;
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    background: var(--ink); color: #fff;
    cursor: pointer; white-space: nowrap;
    transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn__arrow {
    display: inline-grid; place-items: center;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    margin-right: -.4rem;
    transition: transform .35s var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--primary { background: var(--red); color: #fff; box-shadow: var(--shadow-glow); }
.btn--primary .btn__arrow { background: rgba(255, 255, 255, .18); color: #fff; }
.btn--primary:hover { background: var(--red-mid); }

.btn--dark { background: var(--ink); color: #fff; box-shadow: 0 18px 36px -18px rgba(11, 11, 13, .45); }
.btn--dark:hover { background: #1A1A1E; }

.btn--ghost {
    background: transparent; color: var(--ink); border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost .btn__arrow { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn--ghost:hover .btn__arrow { border-color: var(--ink); }

.btn--ghost-dark { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost-dark:hover { border-color: var(--ink); }

.btn--lg { padding: 1.05rem 1.7rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- Section primitives ---------- */
.section { padding: clamp(5rem, 10vw, 8.5rem) 0; scroll-margin-top: var(--header-h); position: relative; }
.section--alt { background: var(--bg-rise); }
.section__head {
    display: flex; align-items: end; justify-content: space-between; gap: 2rem;
    margin-bottom: clamp(3rem, 5vw, 4.5rem);
    padding-bottom: 1.4rem;
    border-bottom: var(--hl-thin);
}
.section__head-text { max-width: 760px; }
.section__title {
    font-size: clamp(2.2rem, 5.4vw, 3.8rem);
    margin-top: .9rem;
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1.02;
}
.section__title em { font-style: normal; font-weight: 300; color: var(--ink-3); }
.section__subtitle { margin-top: 1.1rem; color: var(--ink-3); font-size: 1.05rem; max-width: 620px; line-height: 1.55; }
.section__index {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .25em;
    text-transform: uppercase; color: var(--ink-4); align-self: end; white-space: nowrap;
}
.text-accent { color: var(--red); }
.text-accent--dot::after { content: "."; color: var(--red); }

/* ---------- Header (floating, minimal, light) ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: transparent;
    transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
    border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.nav-open {
    background: rgba(250, 250, 247, .96);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom-color: var(--line);
}
.site-header.nav-open {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 110;
}
.site-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 30px; width: auto; display: block; }

.main-nav { display: flex; align-items: center; gap: .35rem; justify-self: center; }
.main-nav__link {
    position: relative;
    font-family: var(--font-body); font-weight: 500;
    font-size: .95rem; letter-spacing: -.005em;
    color: var(--ink-3);
    padding: .65rem 1rem;
    transition: color .2s var(--ease);
}
.main-nav__link::before {
    content: ""; position: absolute; left: 50%; bottom: .35rem;
    width: 3px; height: 3px; border-radius: 50%; background: var(--red);
    opacity: 0; transform: translate(-50%, 3px);
    transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.main-nav__link:hover { color: var(--ink); }
.main-nav__link:hover::before { opacity: 1; transform: translate(-50%, 0); }

.nav-utils { display: flex; align-items: center; gap: .3rem; }
.icon-btn {
    width: 40px; height: 40px;
    display: inline-grid; place-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 50%;
    color: var(--ink-2);
    cursor: pointer;
    transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.lang-switch {
    display: inline-flex; align-items: center; gap: .15rem;
    height: 32px; padding: 0 .7rem;
    border: 1px solid var(--line-strong); border-radius: var(--r-pill);
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
    margin-right: .35rem;
}
.lang-switch__opt { color: var(--ink-4); padding: 0 .15rem; transition: color .15s var(--ease); }
.lang-switch__opt:hover { color: var(--ink); }
.lang-switch__opt.is-active { color: var(--ink); font-weight: 600; }
.lang-switch__sep { color: var(--ink-5); }
/* ---------- Premium mobile menu ---------- */
.mobile-panel__inner { display: flex; flex-direction: column; max-width: 560px; margin-inline: auto; width: 100%; }
.mobile-panel__eyebrow {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
    color: var(--ink-4); padding-bottom: 1rem; margin-bottom: .4rem; border-bottom: var(--hl-thin);
}
.mobile-nav { display: flex; flex-direction: column; }
.mobile-nav__item {
    display: flex; align-items: center;
    padding: 1.2rem .25rem;
    border-bottom: var(--hl-thin);
    color: var(--ink);
    transition: color .2s var(--ease);
}
.mobile-nav__item:active { color: var(--red); }
.mobile-nav__label {
    font-family: var(--font-display); font-weight: 600;
    font-size: 1.4rem; letter-spacing: -.03em; color: inherit;
}

.mobile-panel__cta { margin-top: 1.6rem; justify-content: center; }

.mobile-panel__foot { margin-top: auto; padding-top: 1.6rem; }
.mobile-panel__lang { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1.3rem; margin-bottom: 1.3rem; border-bottom: var(--hl-thin); }
.mobile-panel__lang-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-4); }
.mobile-panel__contact { display: flex; flex-direction: column; gap: .9rem; }
.mobile-panel__contact li { display: flex; align-items: center; gap: .8rem; color: var(--ink-2); font-size: .98rem; }
.mobile-panel__contact a { color: var(--ink-2); }
.mobile-panel__contact a:active { color: var(--red); }
.mobile-panel__contact-icon { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--bg-rise); color: var(--ink-3); }
.mobile-panel__contact-icon svg { width: 16px; height: 16px; }

/* Staggered reveal of menu rows when the panel opens */
.mobile-panel .mobile-nav__item,
.mobile-panel .mobile-panel__cta,
.mobile-panel .mobile-panel__foot { opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
.mobile-panel.is-open .mobile-nav__item,
.mobile-panel.is-open .mobile-panel__cta,
.mobile-panel.is-open .mobile-panel__foot { opacity: 1; transform: none; }
.mobile-panel.is-open .mobile-nav__item:nth-child(1) { transition-delay: .06s; }
.mobile-panel.is-open .mobile-nav__item:nth-child(2) { transition-delay: .12s; }
.mobile-panel.is-open .mobile-nav__item:nth-child(3) { transition-delay: .18s; }
.mobile-panel.is-open .mobile-panel__cta { transition-delay: .24s; }
.mobile-panel.is-open .mobile-panel__foot { transition-delay: .30s; }

.main-nav__cta {
    margin-left: .6rem;
    padding: .7rem .95rem .7rem 1.25rem;
    font-size: .9rem; letter-spacing: -.005em;
}
.main-nav__cta .btn__arrow { width: 28px; height: 28px; }

/* mobile nav toggle */
.mobile-panel { display: none; }
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    width: 44px; height: 44px;
    border: 0; background: transparent;
    cursor: pointer; padding: 12px 10px; justify-self: end;
}
.nav-toggle span {
    height: 1.5px; width: 22px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .25s var(--ease), opacity .25s var(--ease);
    display: block;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (cinematic photo · light editorial) ---------- */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex; flex-direction: column;
    padding: clamp(5rem, 9vw, 7rem) 0 clamp(3rem, 5vw, 4.5rem);
    overflow: hidden;
    isolation: isolate;
    background: var(--bg);
}
.hero__backdrop { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero__image {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: 55% 60%;
    transform: scale(1.06);
    animation: heroPan 34s ease-in-out infinite alternate;
    filter: saturate(.92) contrast(1.02);
}
@keyframes heroPan {
    0%   { transform: scale(1.06) translate3d(0, 0, 0); }
    100% { transform: scale(1.14) translate3d(-1.8%, -1.2%, 0); }
}
.hero__veil {
    position: absolute; inset: 0;
    background:
        linear-gradient(95deg, rgba(250, 250, 247, .98) 0%, rgba(250, 250, 247, .88) 30%, rgba(250, 250, 247, .55) 58%, rgba(250, 250, 247, .72) 100%),
        linear-gradient(180deg, rgba(250, 250, 247, .55) 0%, transparent 22%, transparent 65%, rgba(250, 250, 247, .96) 100%);
}
.hero__grade {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 50% 40% at 82% 32%, rgba(200, 16, 26, .14) 0%, transparent 65%),
        radial-gradient(ellipse 35% 25% at 18% 78%, rgba(200, 16, 26, .08) 0%, transparent 60%);
    mix-blend-mode: multiply;
}
.hero__glow { display: none; }

.hero__inner {
    position: relative; z-index: 1;
    display: flex; flex-direction: column;
    justify-content: space-between;
    flex: 1;
    gap: clamp(2.5rem, 5vw, 4rem);
}
.hero__head {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 1.6rem;
    border-bottom: var(--hl-thin);
}
.hero__head .hud:last-child { color: var(--ink-3); }

.hero__main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(2rem, 4vw, 3rem);
}
.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4.4vw, 4.6rem);
    font-weight: 600;
    letter-spacing: -.04em;
    line-height: 1;
    color: var(--ink);
}
.hero__title span { display: block; }
.hero__title em { font-style: normal; font-weight: 300; color: var(--ink-3); letter-spacing: -.035em; }
.hero__title-accent { color: var(--red); }

.hero__sidebar {
    display: flex; flex-direction: column; gap: 1.4rem;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(18px) saturate(120%);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    padding: clamp(1.5rem, 2.5vw, 2rem);
    box-shadow: var(--shadow);
}
.hero__sidebar-lead {
    color: var(--ink-2);
    font-size: 1.05rem;
    line-height: 1.5;
    max-width: 360px;
}
.hero__specs {
    display: grid; gap: .55rem;
    padding-top: 1.2rem;
    border-top: var(--hl-thin);
}
.hero__specs li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.hero__spec-k {
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: .18em; text-transform: uppercase;
    color: var(--ink-4);
}
.hero__spec-v {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: .98rem;
    color: var(--ink);
}
.hero__cta-group { display: flex; flex-flow: row wrap; gap: .9rem; }

.hero__foot {
    padding-top: 1.6rem;
    border-top: var(--hl-thin);
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.hero__scroll { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink-3); }
.hero__scroll-arrow {
    display: inline-grid; place-items: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    color: var(--ink-2);
    animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(4px); } }

/* ---------- Stats strip ---------- */
.stats { padding: clamp(3.5rem, 6vw, 5rem) 0; }
.stats__grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--bg);
}
.stat {
    padding: 1.6rem 1.8rem;
    border-left: var(--hl-thin);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__k {
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: .2em; text-transform: uppercase;
    color: var(--ink-4);
    margin-bottom: .9rem;
}
.stat__v {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    color: var(--ink);
    line-height: 1;
    letter-spacing: -.045em;
    white-space: nowrap;
}
.stat__v small {
    font-family: var(--font-body);
    font-size: .35em;
    color: var(--ink-3);
    font-weight: 500;
    margin-left: .35em;
    letter-spacing: 0;
}

/* ---------- Process ---------- */
.process {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: var(--hl-thin);
    border-radius: var(--r-card);
    overflow: hidden;
}
.process__item {
    background: var(--bg-card);
    padding: clamp(2rem, 3.5vw, 2.8rem);
    display: flex; flex-direction: column; gap: 1.2rem;
    min-height: 280px;
    position: relative;
    transition: background .3s var(--ease);
}
.process__item:hover { background: var(--bg-rise); }
.process__num {
    font-family: var(--font-mono); font-size: 12px;
    letter-spacing: .2em;
    color: var(--red);
    font-weight: 500;
    text-transform: uppercase;
}
.process__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.55rem;
    color: var(--ink);
    letter-spacing: -.035em;
    line-height: 1.15;
}
.process__title em { font-style: normal; font-weight: 300; color: var(--ink-3); }
.process__text { color: var(--ink-3); font-size: .98rem; max-width: 36ch; line-height: 1.6; }
.process__rule { width: 32px; height: 1px; background: var(--line-strong); }

/* ============================================================
   Form section — premium configurator
   Light paper stage · OBSIDIAN form card · brand red accents
   ============================================================ */
.section--form {
    padding: clamp(5rem, 9vw, 8rem) 0;
    background: var(--bg-rise);
    border-top: var(--hl-thin);
    border-bottom: var(--hl-thin);
}

.form-wrap {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.4fr);
    gap: clamp(2.5rem, 5vw, 5.5rem);
    align-items: start;
}

/* Sticky brand pane on light paper */
.form-intro {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    display: flex; flex-direction: column; gap: 1.8rem;
}
.form-intro__points {
    display: grid; gap: 1.5rem;
    padding-top: 1.8rem;
    border-top: var(--hl-thin);
}
.form-intro__points li {
    display: flex; align-items: flex-start; gap: 1.1rem;
    color: var(--ink-2);
}
.form-intro__points strong {
    display: block; color: var(--ink);
    font-family: var(--font-body);
    font-weight: 600; font-size: 1rem;
    letter-spacing: -.008em;
    margin-bottom: .25rem;
}
.form-intro__points small { color: var(--ink-3); font-size: .9rem; line-height: 1.55; }
.form-intro__bullet {
    flex: none; width: 30px; height: 30px;
    border-radius: 50%;
    display: inline-grid; place-items: center;
    background: var(--red-soft);
    color: var(--red);
    font-family: var(--font-mono);
    font-size: 10px; font-weight: 600; letter-spacing: .06em;
    border: 1px solid rgba(200, 16, 26, .25);
}

/* ============ PLATINUM FORM CARD ============
   The premium focal slab. Warm stone-pearl gray plinth — sister hue
   to the cream paper bg — with a faint inner grid texture. Flat,
   shadow-less surface for a clean editorial feel. */
.form-card {
    --fc-bg:        #ECE9DF;
    --fc-bg-hi:     #ECE9DF;
    --fc-line:      rgba(11, 11, 13, .09);
    --fc-line-2:    rgba(11, 11, 13, .18);
    --fc-ink:       #0B0B0D;
    --fc-ink-2:     #2A2A2E;
    --fc-ink-3:     #5D5E63;
    --fc-ink-4:     #8B8C90;
    --fc-input:     #FFFFFF;
    --fc-input-hi:  #FFFFFF;

    background: linear-gradient(180deg, var(--fc-bg-hi) 0%, var(--fc-bg) 55%, var(--fc-bg) 100%);
    color: var(--fc-ink-2);
    border: 1px solid rgba(11, 11, 13, .07);
    border-radius: 16px;
    padding: clamp(1.3rem, 2.2vw, 1.9rem);
    box-shadow: none;
    font-size: .9rem;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.form-card::before {
    /* removed red top glint */
    content: none;
}
.form-card::after {
    /* Faint grid texture, masked to a soft vignette */
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(11, 11, 13, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 11, 13, .035) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 75% at 50% 30%, #000, transparent 75%);
            mask-image: radial-gradient(ellipse 70% 75% at 50% 30%, #000, transparent 75%);
    pointer-events: none;
    z-index: 0;
    opacity: .75;
}
.form-card > * { position: relative; z-index: 1; }

.form-card__head {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: .85rem; margin-bottom: 1.1rem;
    border-bottom: 1px solid var(--fc-line);
}
.form-card__title {
    font-family: var(--font-display);
    font-size: .98rem;
    color: var(--fc-ink);
    font-weight: 600; letter-spacing: -.018em;
}
.form-card__step {
    font-family: var(--font-mono); font-size: 9px;
    letter-spacing: .2em; text-transform: uppercase;
    color: var(--fc-ink-4); font-weight: 500;
}
.form-alert {
    background: rgba(200, 16, 26, .07);
    color: var(--red-deep);
    border: 1px solid rgba(200, 16, 26, .28);
    border-radius: 8px;
    padding: .65rem .85rem;
    font-size: .82rem; font-weight: 500;
    margin-bottom: .9rem;
}
.form-summary ul { color: var(--red-deep); padding-left: 1.1rem; list-style: disc; font-size: .82rem; }
.form-summary:empty { display: none; }

.form-fieldset { border: 0; padding: 0; margin: 0 0 1.2rem; }
.form-fieldset:last-of-type { margin-bottom: 0; }
/* Section legends ("01 — Vozilo" etc.) — visually hidden, kept for a11y */
.form-legend {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.form-legend::after { content: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem .65rem; }

.field { display: flex; flex-direction: column; gap: .3rem; }
.field--full { grid-column: 1 / -1; }
.form-card .field__label {
    font-family: var(--font-body); font-size: .82rem;
    font-weight: 500; letter-spacing: -.005em; text-transform: none;
    color: var(--fc-ink-3);
    display: flex; align-items: center; gap: .35rem;
}
.form-card .req { color: var(--red); font-size: 1.1em; line-height: 1; }

.form-card .field__input {
    font-family: var(--font-body); font-size: .88rem;
    font-weight: 500; color: var(--fc-ink);
    background: var(--fc-input);
    border: 1px solid rgba(11, 11, 13, .12);
    border-radius: 8px;
    padding: .55rem .8rem; width: 100%;
    letter-spacing: -.005em;
    box-shadow: inset 0 1px 2px rgba(11, 11, 13, .03);
    transition: background .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
    color-scheme: light;
}
.form-card .field__input::placeholder { color: var(--fc-ink-4); font-weight: 400; }
.form-card .field__input:hover:not(:focus) {
    background: var(--fc-input-hi);
    border-color: rgba(11, 11, 13, .22);
    box-shadow: 0 4px 12px -6px rgba(60, 40, 20, .1);
}
.form-card .field__input:focus {
    outline: none;
    background: var(--fc-input-hi);
    border-color: rgba(200, 16, 26, .7);
    box-shadow: 0 0 0 4px rgba(200, 16, 26, .12), inset 0 0 0 1px rgba(200, 16, 26, .3);
}
.form-card .field__textarea { resize: vertical; min-height: 64px; font-family: var(--font-body); line-height: 1.5; }
.form-card select.field__input {
    appearance: none;
    background-color: var(--fc-input);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235D5E63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .8rem center;
    padding-right: 2.1rem;
}
.form-card select.field__input option { background: #FFFFFF; color: var(--fc-ink); }
.form-card .field__error {
    color: var(--red-deep);
    font-size: .8rem; font-weight: 500;
    font-family: var(--font-mono); letter-spacing: .04em;
}
.form-card .field__error:empty { display: none; }
.form-card .input-validation-error.field__input {
    background: rgba(200, 16, 26, .04);
    border-color: rgba(200, 16, 26, .5);
}

/* Premium segmented pills on platinum */
.form-card .choice-group { display: flex; flex-wrap: wrap; gap: .4rem; }
.form-card .choice { position: relative; cursor: pointer; }
.form-card .choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.form-card .choice__box {
    display: inline-flex; align-items: center;
    padding: .5rem .95rem;
    border-radius: 8px;
    border: 1px solid rgba(11, 11, 13, .14);
    background: rgba(255, 255, 255, .62);
    color: var(--fc-ink-2);
    font-family: var(--font-body); font-weight: 500;
    font-size: .82rem; letter-spacing: -.005em;
    transition: transform .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease), color .22s var(--ease), box-shadow .22s var(--ease);
}
.form-card .choice input:hover + .choice__box {
    border-color: rgba(11, 11, 13, .3);
    background: #FFFFFF;
    color: var(--fc-ink);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -10px rgba(60, 40, 20, .18);
}
.form-card .choice input:checked + .choice__box {
    border-color: var(--fc-ink);
    background: var(--fc-ink);
    color: #FFFFFF;
    box-shadow: 0 14px 30px -12px rgba(11, 11, 13, .4);
}
.form-card .choice input:focus-visible + .choice__box {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

.field--spaced { margin-top: .9rem; }
.form-card .field__opt {
    font-family: var(--font-mono); font-size: 8.5px;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--fc-ink-4); font-weight: 500;
}
.field__input--mono { font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; font-size: .82rem; }
.field__input--mono::placeholder { text-transform: none; letter-spacing: 0; }

/* ---------- Premium uploader on platinum ---------- */
.form-card .uploader {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .45rem; text-align: center;
    padding: 1.2rem 1rem;
    background: rgba(255, 255, 255, .55);
    border: 1.5px dashed rgba(11, 11, 13, .2);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .22s var(--ease), background .22s var(--ease), transform .22s var(--ease);
}
.form-card .uploader:hover {
    border-color: rgba(11, 11, 13, .38);
    background: rgba(255, 255, 255, .85);
}
.form-card .uploader.is-dragover {
    border-color: var(--red);
    background: rgba(200, 16, 26, .06);
    transform: scale(1.005);
}
.form-card .uploader.is-full { opacity: .55; pointer-events: none; }
.uploader__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.form-card .uploader__icon {
    display: inline-grid; place-items: center;
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--red);
    color: #fff;
}
.uploader__icon svg { width: 16px; height: 16px; }
.form-card .uploader__text { font-size: .85rem; color: var(--fc-ink-2); margin-top: .15rem; }
.form-card .uploader__text strong { color: var(--fc-ink); font-weight: 600; }
.form-card .uploader__hint {
    font-family: var(--font-mono);
    font-size: 8.5px; letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--fc-ink-4);
}

.uploader__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: .45rem; margin-top: .6rem; }
.uploader__grid:empty { display: none; }
.form-card .photo-tile {
    position: relative; aspect-ratio: 1; border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(11, 11, 13, .1);
    background: #FFFFFF;
    animation: tileIn .25s var(--ease-out);
}
@keyframes tileIn { from { opacity: 0; transform: scale(.92); } }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-tile__remove {
    position: absolute; top: 5px; right: 5px;
    width: 24px; height: 24px; border-radius: 50%;
    border: 0; background: rgba(11, 11, 13, .78); color: #fff;
    display: grid; place-items: center; cursor: pointer; line-height: 1;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    transition: background .15s var(--ease);
}
.photo-tile__remove:hover { background: var(--red); }
.photo-tile__remove svg { width: 11px; height: 11px; }

/* ---------- Premium red submit on platinum ---------- */
.form-actions { margin-top: 1.3rem; }
.form-card .btn--block {
    padding: .8rem 1.3rem;
    font-size: .92rem;
    border-radius: 10px;
    background: var(--red);
    color: #fff;
    box-shadow: none;
}
.form-card .btn--block:hover {
    background: var(--red-mid);
    transform: translateY(-1px);
    box-shadow: none;
}
.form-card .btn--block .btn__arrow { background: rgba(255, 255, 255, .18); color: #fff; width: 22px; height: 22px; }
.form-card .form-note {
    margin-top: .75rem; text-align: center;
    font-family: var(--font-mono); font-size: 9px;
    letter-spacing: .18em; text-transform: uppercase;
    color: var(--fc-ink-4);
}

/* Browser autofill harmonization (Chromium) */
.form-card .field__input:-webkit-autofill {
    -webkit-text-fill-color: var(--fc-ink);
    -webkit-box-shadow: 0 0 0 1000px #FFFFFF inset;
    caret-color: var(--fc-ink);
    border-color: rgba(11, 11, 13, .14);
}

/* ---------- Contact strip ---------- */
.contact-strip { padding: clamp(4rem, 7vw, 6rem) 0; border-top: var(--hl-thin); }
.contact-strip__inner {
    display: grid; grid-template-columns: 1.4fr 1fr;
    gap: 3rem; align-items: start;
}
.contact-strip__title { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1.1rem; max-width: 16ch; }
.contact-strip__lead { color: var(--ink-3); margin-bottom: 1.8rem; max-width: 40ch; line-height: 1.6; }
.contact-strip__list { display: grid; gap: 0; }
.contact-strip__list li {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.15rem 0;
    border-bottom: var(--hl-thin);
    gap: 1rem;
}
.contact-strip__list li:first-child { border-top: var(--hl-thin); }
.contact-strip__k {
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: .2em; text-transform: uppercase;
    color: var(--ink-4);
}
.contact-strip__v {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink);
    font-size: 1.05rem;
    letter-spacing: -.025em;
}
a.contact-strip__v:hover { color: var(--red); }
.contact-strip__stack { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; text-align: right; }

/* ---------- Showcase (lot + damaged) ---------- */
.showcase__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.4vw, 1.5rem); align-items: stretch; }
.showcase__item {
    position: relative; margin: 0;
    border-radius: var(--r-card); overflow: hidden;
    border: 1px solid var(--line);
    aspect-ratio: 3 / 2; background: var(--bg-rise);
}
.showcase__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease); }
.showcase__item--lot img { object-position: center 64%; }
.showcase__item:hover img { transform: scale(1.045); }
.showcase__cap {
    position: absolute; inset: auto 0 0 0;
    padding: 1.6rem 1.4rem 1.2rem;
    display: flex; flex-direction: column; gap: .3rem; color: #fff;
    background: linear-gradient(to top, rgba(7, 8, 10, .82), rgba(7, 8, 10, .3) 55%, transparent);
}
.showcase__cap .hud { color: #fff; opacity: .82; }
.showcase__cap-text { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -.02em; }

/* ---------- Gallery ---------- */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(.8rem, 1.8vw, 1.4rem);
}
.gallery__item {
    position: relative; display: block;
    aspect-ratio: 4 / 3;
    border-radius: var(--r-card); overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: var(--bg-rise);
    cursor: pointer; text-decoration: none;
}
.gallery__item img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .7s var(--ease);
}
.gallery__item:hover img,
.gallery__item:focus-visible img { transform: scale(1.06); }
.gallery__item:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.gallery__zoom {
    position: absolute; top: .85rem; right: .85rem;
    width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center;
    color: #fff; background: rgba(11, 11, 13, .42);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    opacity: 0; transform: translateY(-4px);
    transition: opacity .4s var(--ease), transform .4s var(--ease);
    pointer-events: none;
}
.gallery__item:hover .gallery__zoom,
.gallery__item:focus-visible .gallery__zoom { opacity: 1; transform: none; }
.gallery__badge {
    position: absolute; inset: auto 0 0 0;
    padding: 2.4rem 1.2rem 1rem;
    display: flex; align-items: center;
    background: linear-gradient(to top, rgba(8, 8, 10, .68), rgba(8, 8, 10, 0));
    opacity: 0; transform: translateY(8px);
    transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.gallery__item:hover .gallery__badge,
.gallery__item:focus-visible .gallery__badge { opacity: 1; transform: none; }
.gallery__badge .hud { color: #fff; }

/* ---------- Showcase — single-row premium horizontal scroller ----------
   One row, all 44 tiles. Hairline circular arrow buttons float over the edges,
   the row scroll-snaps tile-by-tile, edges fade into the cream canvas via
   mask. Click a tile to open the lightbox. Pure horizontal flow — no autoplay,
   no thumbs, no counter. */
/* The Vozni park section hosts the full-bleed showcase rail; clipping here keeps the
   100vw rail from creating page-level horizontal scroll when a vertical scrollbar
   is present. */
#vozni-park { overflow-x: clip; }

.showcase {
    --gutter: clamp(1.2rem, 3.2vw, 2.4rem);
    --tile-gap: clamp(.8rem, 1.4vw, 1.4rem);
    position: relative;
    /* Break out of the .container max-width — the rail spans the full viewport so
       two tiles fill the screen on any width, including ultra-wide monitors. */
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.showcase__track {
    display: flex;
    gap: var(--tile-gap);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px var(--gutter) 1.4rem;
}
.showcase__track::-webkit-scrollbar { display: none; }

.showcase__tile {
    /* Exactly half viewport (minus gutters + gap) so two full tiles always fit on screen.
       Mobile breakpoint below switches to one full tile per viewport. */
    flex: 0 0 calc((100vw - var(--gutter) * 2 - var(--tile-gap)) / 2);
    aspect-ratio: 4 / 3;
    border-radius: clamp(6px, .8vw, 10px);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-rise);
    box-shadow: none;
    position: relative;
    display: block;
    text-decoration: none;
    cursor: zoom-in;
    scroll-snap-align: start;
}
.showcase__tile,
.showcase__tile:hover,
.showcase__tile:focus-visible { box-shadow: none; }
.showcase__tile img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.showcase__tile:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* Naked chevron — no pill, no border, no background. Just the glyph, sized large.
   Sits clear of the rail with a generous tap target while reading visually as a single line. */
.showcase__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: clamp(40px, 4vw, 56px);
    height: clamp(40px, 4vw, 56px);
    display: grid; place-items: center;
    background: transparent;
    border: 0;
    padding: 0;
    color: var(--ink);
    cursor: pointer;
    transition: color .35s var(--ease), opacity .35s var(--ease), transform .35s var(--ease);
}
.showcase__nav svg {
    width: clamp(36px, 3.4vw, 52px);
    height: clamp(36px, 3.4vw, 52px);
    stroke-width: 1.2;
}
.showcase__nav:hover { color: var(--red); }
.showcase__nav--prev:hover { transform: translate(-3px, -50%); }
.showcase__nav--next:hover { transform: translate(3px, -50%); }
.showcase__nav:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 2px; }
.showcase__nav[hidden] { display: grid; opacity: 0; pointer-events: none; }
.showcase__nav--prev { left: clamp(-.6rem, -.4vw, 0px); }
.showcase__nav--next { right: clamp(-.6rem, -.4vw, 0px); }

@media (max-width: 760px) {
    /* Mobile — one full tile per viewport, swipe to advance. */
    .showcase__tile { flex-basis: calc(100vw - var(--gutter) * 2); }
    .showcase__nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .showcase__track { scroll-behavior: auto; }
}

/* ---------- Gallery slider ---------- */
.slider { position: relative; }
.slider__track {
    display: flex;
    gap: clamp(.8rem, 1.8vw, 1.4rem);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 4px 4px 1.1rem;
    scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide {
    flex: 0 0 auto;
    width: clamp(290px, 40%, 470px);
    scroll-snap-align: start;
}
.slider__nav {
    position: absolute; top: calc(50% - .55rem); transform: translateY(-50%); z-index: 6;
    width: 50px; height: 50px; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer;
    color: var(--ink); background: var(--bg);
    border: 1px solid var(--line-strong);
    box-shadow: 0 14px 32px -14px rgba(11, 11, 13, .45);
    transition: background .3s var(--ease), color .3s var(--ease), opacity .3s var(--ease), border-color .3s var(--ease);
}
.slider__nav:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.slider__nav--prev { left: 10px; }
.slider__nav--next { right: 10px; }
.slider__nav[hidden] { display: grid; opacity: 0; pointer-events: none; }
@media (max-width: 900px) { .slider__slide { width: clamp(260px, 64%, 400px); } }
@media (max-width: 560px) {
    .slider__slide { width: 86%; }
    .slider__nav { display: none; }
}

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed; inset: 0; z-index: 200;
    display: flex; align-items: center; justify-content: center;
    padding: clamp(1rem, 4vw, 3rem);
    background: rgba(8, 8, 10, .94);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    opacity: 0; visibility: hidden;
    transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
    max-width: min(1120px, 94vw); max-height: 84vh;
    object-fit: contain; border-radius: 10px;
    box-shadow: 0 50px 130px -30px rgba(0, 0, 0, .85);
}
.lightbox__cap {
    position: absolute; left: 0; right: 0; bottom: clamp(1rem, 3.5vw, 2.2rem);
    text-align: center; color: rgba(255, 255, 255, .82);
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
    padding: 0 1rem;
}
.lightbox__btn {
    position: absolute; z-index: 1;
    width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer;
    color: #fff; background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    transition: background .3s var(--ease), border-color .3s var(--ease);
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .32); }
.lightbox__btn--close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lightbox__btn--prev { left: clamp(.6rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: clamp(.6rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }
@media (max-width: 900px) { .gallery__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
    .gallery__grid { grid-template-columns: 1fr; }
    .lightbox__btn--prev { left: .5rem; }
    .lightbox__btn--next { right: .5rem; }
}

/* ---------- Location map ---------- */
.map-frame {
    position: relative;
    margin-top: clamp(2rem, 4vw, 3rem);
    border-radius: var(--r-card); overflow: hidden;
    border: 1px solid var(--line);
    aspect-ratio: 21 / 8; box-shadow: var(--shadow);
    background: var(--bg-rise);
}
.map-frame__canvas { width: 100%; height: 100%; }
.map-frame__canvas .gm-style, .map-frame__canvas .gm-style > div { background: var(--bg) !important; }
/* Fallback iframe (used only when no Map ID is configured) gets a warm grade
   so the keyless embed sits within the cream palette. */
.map-frame iframe {
    width: 100%; height: 100%; border: 0; display: block;
    filter: grayscale(.78) sepia(.34) brightness(1.05) contrast(.9);
    transition: filter .45s var(--ease);
}
.map-frame:hover iframe { filter: grayscale(.15) sepia(.06) brightness(1.02); }
.map-frame:has(iframe)::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: var(--bg-paper); opacity: .14; mix-blend-mode: multiply;
    transition: opacity .45s var(--ease);
}
.map-frame:has(iframe):hover::after { opacity: 0; }

@media (max-width: 760px) {
    .showcase__grid { grid-template-columns: 1fr; }
    .map-frame { aspect-ratio: 4 / 3; }
}

/* ---------- Footer ---------- */
.site-footer {
    border-top: var(--hl-thin);
    background: var(--bg-rise);
    padding-top: clamp(3.5rem, 6vw, 5rem);
}
.site-footer__grid {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}
.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.site-footer__logo { height: 34px; width: auto; display: block; flex: none; }
.site-footer__about { color: var(--ink-3); font-size: .94rem; max-width: 340px; line-height: 1.6; }
.site-footer__title {
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: .22em; text-transform: uppercase;
    color: var(--ink-4); font-weight: 500;
    margin-bottom: 1.2rem;
}
.site-footer__list { display: grid; gap: .65rem; }
.site-footer__list a, .site-footer__list li {
    color: var(--ink-2); font-size: .94rem;
    transition: color .2s var(--ease);
}
.site-footer__list a:hover { color: var(--red); }
.site-footer__legal {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: .5rem 1.4rem;
    padding: 1.3rem 0;
    border-top: var(--hl-thin);
    font-family: var(--font-mono); font-size: 10.5px;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--ink-4);
}
.site-footer__legal span { display: inline-flex; align-items: center; }
.site-footer__legal span:not(:last-child)::after {
    content: ""; width: 4px; height: 4px; border-radius: 50%;
    background: var(--line-strong); margin-left: 1.4rem;
}
.site-footer__bottom {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 0;
    border-top: var(--hl-thin);
    font-family: var(--font-mono); font-size: 10px;
    letter-spacing: .2em; text-transform: uppercase;
    color: var(--ink-4);
}
.site-footer__bottom a:hover { color: var(--ink); }

/* ---------- Confirm (thank you) ---------- */
.confirm__inner { max-width: 680px; margin-inline: auto; text-align: center; padding-top: clamp(3rem, 6vw, 4rem); }
.confirm__icon {
    display: inline-grid; place-items: center;
    width: 92px; height: 92px;
    border-radius: 50%;
    background: var(--red); color: #fff;
    margin-bottom: 1.8rem;
    box-shadow: var(--shadow-glow);
}
.confirm__icon svg { width: 42px; height: 42px; }
.confirm__title { font-size: clamp(2rem, 4.5vw, 3rem); }
.confirm__lead { margin: 1.1rem 0 2.2rem; color: var(--ink-3); font-size: 1.05rem; }
.confirm__ref {
    display: inline-flex; flex-direction: column; gap: .4rem;
    padding: 1.1rem 2rem;
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--r);
    background: var(--bg-card);
}
.confirm__ref-label {
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: .22em; text-transform: uppercase;
    color: var(--ink-4);
}
.confirm__ref-value {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 1.55rem;
    color: var(--red);
    letter-spacing: .04em;
}
.confirm__note { margin: 1.2rem 0 2rem; color: var(--ink-3); font-size: .92rem; }
.confirm__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---------- Legal / error pages ---------- */
.legal__inner { max-width: 780px; margin-inline: auto; padding-top: clamp(2rem, 4vw, 3rem); }
.legal__inner--center { text-align: center; }
.legal__title { font-size: clamp(2rem, 4.5vw, 2.8rem); margin-bottom: 1rem; }
.legal__intro { font-size: 1.05rem; color: var(--ink-3); margin-bottom: 2rem; line-height: 1.6; }
.legal h2 { font-size: 1.3rem; margin: 2rem 0 .7rem; color: var(--ink); }
.legal p { color: var(--ink-3); margin-bottom: .8rem; line-height: 1.6; }
.legal__list { list-style: disc; padding-left: 1.3rem; margin: 0 0 .8rem; color: var(--ink-3); }
.legal__list li { margin-bottom: .5rem; line-height: 1.6; }
.legal__list strong { color: var(--ink-2); }
.legal a:not(.btn) { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.legal a:not(.btn):hover { color: var(--red-deep); }
.legal__note {
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: .15em; color: var(--ink-4);
    margin: 1.5rem 0;
}
.legal .btn { margin-top: 1.4rem; }

/* ---------- Cookie consent ---------- */
.consent {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    background: var(--bg); border-top: 1px solid var(--line-strong);
    box-shadow: 0 -18px 44px -22px rgba(11, 11, 13, .3);
}
.consent[hidden] { display: none; }
.consent__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.4rem; flex-wrap: wrap;
    padding-top: 1rem; padding-bottom: 1rem;
}
.consent__text { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--ink-2); max-width: 720px; }
.consent__text a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.consent__actions { display: flex; gap: .6rem; flex-shrink: 0; }
.consent__btn { padding: .7rem 1.4rem; font-size: .9rem; }
@media (max-width: 600px) {
    .consent__inner { flex-direction: column; align-items: stretch; gap: .9rem; }
    .consent__btn { flex: 1; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

/* Laptop / small desktop */
@media (max-width: 1080px) {
    :root { --header-h: 78px; }
    .form-wrap, .contact-strip__inner { grid-template-columns: 1fr; }
    .form-intro { position: static; }
    .process { grid-template-columns: 1fr; }
    .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }
    .stat { border-left: 0; background: var(--bg); padding: 1.4rem; }
}

/* Tablet */
@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .main-nav, .nav-utils { display: none; }
    .site-header__inner { grid-template-columns: auto 1fr; }
    .mobile-panel {
        position: fixed; inset: var(--header-h) 0 0 0;
        background: #FAFAF7; background: var(--bg); z-index: 95;
        padding: 1.8rem clamp(1.2rem, 5vw, 2rem) 2.2rem; overflow-y: auto;
        opacity: 0; visibility: hidden; pointer-events: none;
        transition: opacity .3s var(--ease), visibility .3s var(--ease);
        display: flex;
        box-shadow: 0 20px 60px -20px rgba(60, 40, 20, .25);
    }
    .mobile-panel.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
    .mobile-panel a::before { display: none; }
    .hero { min-height: 88vh; }
    .hero__head { flex-direction: column; align-items: flex-start; gap: .6rem; }
    .section__head { flex-direction: column; align-items: flex-start; gap: .8rem; }
    .section__index { align-self: start; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 2.2rem 2rem; }
    .site-footer__bottom { flex-direction: column; align-items: flex-start; gap: .6rem; }
    .site-footer__legal { gap: .45rem 1rem; }
    .site-footer__legal span:not(:last-child)::after { margin-left: 1rem; }
}

/* Large phone */
@media (max-width: 620px) {
    .stats__grid { grid-template-columns: 1fr; gap: 0; background: transparent; }
    .stat { border: 0; border-bottom: var(--hl-thin); padding: 1.1rem 0; }
    .stat:last-child { border-bottom: 0; }
    .stat__v { white-space: normal; }
    .contact-strip__list li { flex-direction: column; align-items: flex-start; gap: .3rem; }
    .contact-strip__stack { align-items: flex-start; text-align: left; }
}

/* Phone */
@media (max-width: 540px) {
    :root { --header-h: 70px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-card { padding: 1.5rem 1.25rem; border-radius: 16px; }
    .form-card__head { flex-wrap: wrap; gap: .4rem; }
    .section--form .section__title { font-size: clamp(2.1rem, 9vw, 2.8rem); }
    .form-card .btn--block { padding: 1.1rem 1.4rem; font-size: 1rem; border-radius: 12px; }
    .site-footer__grid { grid-template-columns: 1fr; gap: 1.8rem; }
    .hero__foot { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .hero__title { font-size: clamp(2.3rem, 11vw, 3.2rem); }
    .choice-group { gap: .45rem; }
    .choice__box { padding: .55rem .9rem; font-size: .85rem; }
    .btn { width: 100%; }
    .hero__cta-group { width: 100%; }
    .hero__cta-group .btn { width: 100%; }
    .confirm__actions { flex-direction: column; }
    .confirm__actions .btn { width: 100%; }
    .uploader { padding: 1.5rem 1rem; }
    .uploader__grid { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Backoffice ---------- */
body.admin-shell {
    background: #F6F7F4;
    color: var(--ink);
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 80;
    min-height: 68px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0 1.4rem;
    border-bottom: 1px solid rgba(16, 17, 20, .1);
    background: rgba(250, 250, 247, .96);
    backdrop-filter: blur(14px);
}

.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    font-weight: 700;
    color: var(--ink);
}

.admin-brand img {
    height: 30px;
    width: auto;
}

.admin-brand span {
    font-family: var(--font-mono);
    font-size: .75rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .25rem;
}

.admin-nav a,
.admin-link-btn {
    border: 0;
    background: transparent;
    color: var(--ink-2);
    font: inherit;
    font-weight: 600;
    padding: .65rem .8rem;
    border-radius: 8px;
    cursor: pointer;
}

.admin-nav a:hover,
.admin-link-btn:hover {
    background: rgba(177, 17, 28, .08);
    color: var(--red);
}

.admin-user {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    font-size: .9rem;
    color: var(--ink-3);
}

.admin-main {
    width: min(1440px, 100%);
    margin-inline: auto;
    padding: clamp(1.2rem, 3vw, 2.2rem);
}

.admin-page {
    display: grid;
    gap: 1.3rem;
}

.admin-page__head,
.admin-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-page__head h1 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin: 0;
}

.admin-eyebrow {
    margin: 0 0 .25rem;
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--red);
}

.admin-actions,
.admin-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    align-items: center;
}

.admin-alert {
    margin-bottom: 1rem;
    padding: .9rem 1rem;
    border-radius: 8px;
    border: 1px solid;
    font-weight: 600;
}

.admin-alert--success {
    background: #EEF8F1;
    border-color: #B7D9BF;
    color: #1E6430;
}

.admin-alert--error {
    background: #FCEEEE;
    border-color: #E6B7B7;
    color: #8A1F24;
}

.admin-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .8rem;
}

.admin-metric,
.admin-panel,
.admin-table-wrap,
.admin-auth__panel {
    background: #fff;
    border: 1px solid rgba(16, 17, 20, .1);
    border-radius: 8px;
    box-shadow: 0 20px 48px -34px rgba(16, 17, 20, .34);
}

.admin-metric {
    padding: 1rem;
}

.admin-metric span {
    display: block;
    color: var(--ink-3);
    font-size: .85rem;
    margin-bottom: .45rem;
}

.admin-metric strong {
    display: block;
    font-size: clamp(1.3rem, 2.4vw, 1.9rem);
    line-height: 1.1;
}

.admin-panel {
    padding: 1rem;
}

.admin-panel__head h2 {
    font-size: 1.1rem;
    margin: 0;
}

.admin-table-wrap {
    overflow: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
}

.admin-table th,
.admin-table td {
    padding: .9rem 1rem;
    border-bottom: 1px solid rgba(16, 17, 20, .08);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    background: #F1F2EE;
    color: var(--ink-3);
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.admin-table small {
    color: var(--ink-3);
}

.admin-table__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.admin-table__actions a,
.admin-table__actions button,
.admin-panel__head a {
    border: 0;
    background: transparent;
    color: var(--red);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: .25rem .55rem;
    border-radius: 999px;
    background: #EEEFF1;
    color: var(--ink-2);
    font-size: .8rem;
    font-weight: 700;
}

.admin-form {
    display: grid;
    gap: 1rem;
    background: #fff;
    border: 1px solid rgba(16, 17, 20, .1);
    border-radius: 8px;
    padding: clamp(1rem, 2vw, 1.4rem);
}

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

.admin-field {
    display: grid;
    gap: .4rem;
}

.admin-field--full,
.admin-form__actions,
.admin-validation {
    grid-column: 1 / -1;
}

.admin-field span:first-child {
    color: var(--ink-3);
    font-weight: 700;
    font-size: .85rem;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
    min-height: 44px;
    width: 100%;
    border: 1px solid rgba(16, 17, 20, .18);
    border-radius: 8px;
    background: #FBFBF8;
    color: var(--ink);
    padding: .7rem .8rem;
    font: inherit;
}

.admin-field textarea {
    min-height: 110px;
    resize: vertical;
}

.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
    outline: 2px solid rgba(177, 17, 28, .28);
    border-color: var(--red);
}

.admin-field .field-validation-error,
.admin-validation {
    color: var(--red);
    font-weight: 700;
    font-size: .85rem;
}

.admin-check {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--ink-2);
    font-weight: 600;
}

.admin-check--inline {
    align-self: end;
    min-height: 44px;
}

.admin-auth {
    min-height: calc(100vh - 120px);
    display: grid;
    place-items: center;
}

.admin-auth__panel {
    width: min(460px, 100%);
    padding: clamp(1.2rem, 3vw, 1.8rem);
}

.admin-auth__panel h1 {
    font-size: 2rem;
    margin-bottom: .35rem;
}

.admin-auth__panel p {
    color: var(--ink-3);
    margin-bottom: 1.2rem;
}

@media (max-width: 980px) {
    .admin-topbar {
        grid-template-columns: 1fr;
        align-items: stretch;
        padding-block: .8rem;
    }

    .admin-nav {
        justify-content: flex-start;
    }

    .admin-user {
        justify-content: space-between;
    }

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

@media (max-width: 620px) {
    .admin-metrics,
    .admin-form--grid {
        grid-template-columns: 1fr;
    }

    .admin-page__head,
    .admin-panel__head {
        align-items: flex-start;
        flex-direction: column;
    }
}
