/* =============================================================
   AutoPalace Brno — Volvo & Peugeot skladem
   Design system: brand navy / royal blue / signature teal diamond
   Fonts: Archivo (display) + Work Sans (body, brand match)
   ============================================================= */

/* ---------- 1. Tokens ---------- */
:root {
    /* Brand core */
    --ink:        #101c26;
    --navy:       #192f41;
    --navy-soft:  #23405a;
    --blue:       #244696;
    --blue-deep:  #1d3878;
    --blue-lit:   #3a63c9;
    --teal:       #68bcba;
    --teal-deep:  #4a9a98;
    --ice:        #c0dce7;
    --flash:      #f10c4a;
    --flash-deep: #cd0a3f;
    --paper:      #f4f5f5;
    --white:      #ffffff;
    --grey:       #656565;
    --grey-soft:  #b3bcbc;
    --line:       #dfe4e8;

    /* Type */
    --font-display: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Work Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    /* Rhythm */
    --gutter: clamp(20px, 5vw, 64px);
    --wrap: 1280px;
    --section-y: clamp(64px, 9vw, 132px);
    --radius: 4px;
    --radius-lg: 8px;

    /* Signature diagonal — the AutoPalace diamond edge */
    --notch: 18px;

    --shadow-sm: 0 2px 10px rgba(16, 28, 38, .07);
    --shadow-md: 0 12px 34px rgba(16, 28, 38, .12);
    --shadow-lg: 0 28px 70px rgba(16, 28, 38, .22);

    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.62;
    color: var(--navy);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -.028em;
    margin: 0;
    text-wrap: balance;
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

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

::selection { background: var(--teal); color: var(--ink); }

/* ---------- 3. Layout primitives ---------- */
.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }

.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); color: var(--white); }
.section--ink { background: var(--ink); color: var(--white); }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--flash);
    color: #fff;
    padding: 12px 20px;
    z-index: 999;
    font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- 4. Type scale ---------- */
.eyebrow {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--teal-deep);
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
}
/* kosočtverec drží na prvním řádku, i když se popisek zalomí */
.eyebrow::before {
    content: '';
    width: 9px;
    height: 9px;
    margin-top: .38em;
    background: var(--teal);
    transform: rotate(45deg);
    flex: none;
}
.section--navy .eyebrow,
.section--ink .eyebrow,
.hero .eyebrow { color: var(--teal); }

.h-xl { font-size: clamp(2.6rem, 6.4vw, 5.1rem); }
.h-lg { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.h-md { font-size: clamp(1.5rem, 2.6vw, 2.15rem); }
.h-sm { font-size: clamp(1.15rem, 1.7vw, 1.4rem); }

.lead {
    font-size: clamp(1.02rem, 1.35vw, 1.19rem);
    line-height: 1.62;
    color: var(--grey);
    max-width: 62ch;
}
.section--navy .lead,
.section--ink .lead { color: rgba(255, 255, 255, .78); }

.accent { color: var(--teal-deep); }
.section--navy .accent, .section--ink .accent, .hero .accent { color: var(--teal); }

.section-head { max-width: 68ch; margin-bottom: clamp(36px, 4.5vw, 60px); }
.section-head .lead { margin-top: 20px; }

/* ---------- 5. Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .01em;
    padding: 15px 28px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform .2s var(--ease), background-color .2s var(--ease),
                color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
    text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }

.btn--flash { background: var(--flash); color: #fff; box-shadow: 0 8px 22px rgba(241, 12, 74, .28); }
.btn--flash:hover { background: var(--flash-deep); box-shadow: 0 12px 28px rgba(241, 12, 74, .34); }

.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-deep); }

.btn--teal { background: var(--teal); color: var(--ink); }
.btn--teal:hover { background: var(--teal-deep); color: #fff; }

.btn--ghost { border-color: rgba(255, 255, 255, .34); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }

.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }

.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- 6. Header ---------- */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: rgba(25, 47, 65, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.header.is-stuck {
    background: rgba(16, 28, 38, .96);
    box-shadow: 0 6px 26px rgba(0, 0, 0, .3);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 72px;
}

.brandmark { display: flex; align-items: center; gap: 12px; flex: none; }
.brandmark img { height: 22px; width: auto; }
.brandmark__city {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--teal);
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, .26);
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.nav a {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, .84);
    padding: 9px 14px;
    border-radius: var(--radius);
    transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .09); }
.nav a.is-active { color: var(--teal); }

.header__cta { margin-left: 14px; }

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: var(--radius);
    color: #fff;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-mobile {
    display: none;
    background: var(--ink);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    padding: 10px var(--gutter) 22px;
}
.nav-mobile.is-open { display: block; }
.nav-mobile a {
    display: block;
    padding: 14px 2px;
    font-size: 17px;
    font-weight: 500;
    color: rgba(255, 255, 255, .88);
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.nav-mobile .btn { margin-top: 18px; }

/* ---------- 7. Hero ---------- */
.hero {
    position: relative;
    background: var(--ink);
    color: #fff;
    padding-top: calc(72px + clamp(48px, 7vw, 92px));
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -160px;
    right: -120px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(36, 70, 150, .55), transparent 68%);
    pointer-events: none;
}

.hero__head { position: relative; max-width: 900px; padding-bottom: clamp(36px, 5vw, 60px); }
.hero__title { font-size: clamp(2.6rem, 6.6vw, 5.2rem); font-weight: 800; }
.hero__title em { font-style: normal; color: var(--teal); }
.hero__sub {
    margin-top: 22px;
    font-size: clamp(1.05rem, 1.5vw, 1.28rem);
    color: rgba(255, 255, 255, .76);
    max-width: 60ch;
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin-top: 28px;
    font-size: 14px;
    color: rgba(255, 255, 255, .62);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 9px; }
.hero__meta span::before {
    content: '';
    width: 7px; height: 7px;
    background: var(--teal);
    transform: rotate(45deg);
}

/* --- Signature: diagonal duo split (echoes the AutoPalace diamond edge) --- */
.duo {
    position: relative;
    height: clamp(420px, 56vw, 620px);
    isolation: isolate;
}

.duo__half {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    transition: filter .45s var(--ease);
}
.duo__half--a { clip-path: polygon(0 0, 57% 0, 45% 100%, 0 100%); justify-content: flex-start; }
.duo__half--b { clip-path: polygon(58.2% 0, 100% 0, 100% 100%, 46.2% 100%); justify-content: flex-end; }

/* obrázek kryje jen svůj klín, ne celou šířku — jinak se auto ořízne */
.duo__img {
    position: absolute;
    top: 0;
    width: 64%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 52%;
    transform: scale(1.04);
    transform-origin: center;
    transition: transform .8s var(--ease);
    z-index: -1;
}
.duo__half--a .duo__img { left: 0; }
.duo__half--b .duo__img { right: 0; }

.duo__half::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(16, 28, 38, .95) 2%, rgba(16, 28, 38, .72) 30%, rgba(16, 28, 38, .28) 62%, rgba(16, 28, 38, .05) 90%);
    z-index: -1;
}

.duo__body {
    padding: 0 var(--gutter) clamp(32px, 4vw, 54px);
    max-width: 400px;
}
.duo__half--b .duo__body { text-align: right; }

/* loga značek jsou černá — obracíme je na bílá a sázíme na tmavou destičku,
   aby držela kontrast i nad světlým autem; zkosení navazuje na diamant ve znaku */
.duo__logowrap {
    display: inline-block;
    padding: 11px 30px 11px 16px;
    margin-bottom: 20px;
    background: rgba(16, 28, 38, .74);
    clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
.duo__half--b .duo__logowrap {
    padding: 11px 16px 11px 30px;
    clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%);
}
.duo__logo {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
}
.duo__half--b .duo__logo { margin-left: auto; }

.duo__label {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 12px;
}
.duo__stat {
    font-size: 15px;
    color: rgba(255, 255, 255, .8);
    margin-bottom: 22px;
}
.duo__stat b { color: var(--teal); font-weight: 700; }

.duo__half:hover .duo__img { transform: scale(1.09); }

.duo__seam {
    position: absolute;
    left: 51.5%;
    top: 50%;
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    background: var(--teal);
    transform: rotate(45deg);
    z-index: 3;
    box-shadow: 0 0 0 10px rgba(16, 28, 38, .55);
    pointer-events: none;
}

/* --- Brand page hero: single image band with the same diagonal cut --- */
.pagehero__media {
    position: relative;
    height: clamp(280px, 40vw, 460px);
    overflow: hidden;
}
.pagehero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 56%;
}
.pagehero__media::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 55%;
    background: linear-gradient(to top, var(--ink) 6%, rgba(16, 28, 38, 0));
}
.pagehero__badge {
    position: absolute;
    left: var(--gutter);
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 46px 16px 24px;
    background: var(--teal);
    color: var(--ink);
    clip-path: polygon(0 0, 100% 0, calc(100% - 28px) 100%, 0 100%);
}
.pagehero__badge img { height: 26px; width: auto; }
.pagehero__badge strong {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.01em;
}

/* ---------- 8. Stat band ---------- */
.statband { background: var(--blue); color: #fff; }
.statband__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, .18);
}
.statband__cell {
    background: var(--blue);
    padding: clamp(26px, 3.4vw, 44px) clamp(16px, 2vw, 30px);
}
.statband__num {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.4vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.statband__num small { font-size: .48em; font-weight: 700; margin-left: 4px; }
.statband__label {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.42;
    color: rgba(255, 255, 255, .74);
}

/* ---------- 9. Brand strip (secondary brands) ---------- */
.brandstrip__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}
.brandstrip__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 22px;
    background: var(--white);
    color: var(--navy);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.brandstrip__item:hover {
    border-color: var(--teal);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}
.brandstrip__item img { height: 28px; width: auto; opacity: .85; }
.brandstrip__item span {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.01em;
}
.brandstrip__item svg { color: var(--teal-deep); flex: none; }

/* ---------- 10. Car cards ---------- */
.cars {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: clamp(18px, 2.2vw, 30px);
}

.car {
    display: flex;
    flex-direction: column;
    background: var(--white);
    color: var(--navy);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.car:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--teal);
}

.car__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper); }
.car__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.car:hover .car__media img { transform: scale(1.05); }

/* the notched tag — the diamond edge, reused as the price device */
.tag {
    position: absolute;
    left: 0;
    bottom: 14px;
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    padding: 8px 22px 8px 14px;
    background: var(--flash);
    color: #fff;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.01em;
    font-variant-numeric: tabular-nums;
    clip-path: polygon(0 0, 100% 0, calc(100% - var(--notch)) 100%, 0 100%);
}
.tag--teal { background: var(--teal); color: var(--ink); }

.car__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }

.car__brand {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .17em;
    text-transform: uppercase;
    color: var(--teal-deep);
    margin-bottom: 9px;
}
.car__name {
    font-family: var(--font-display);
    font-size: 1.16rem;
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -.02em;
    margin-bottom: 6px;
}
.car__variant { font-size: 14px; color: var(--grey); margin-bottom: 16px; }

.car__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 18px;
}
.car__specs li {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--navy);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 4px 11px;
}

.car__prices {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}
.car__was {
    font-size: 13px;
    color: var(--grey-soft);
    text-decoration: line-through;
    font-variant-numeric: tabular-nums;
}
.car__now {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.035em;
    color: var(--blue);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.car__vat { font-size: 12px; color: var(--grey); font-family: var(--font-body); font-weight: 400; }

.car__actions { display: flex; gap: 8px; margin-top: 18px; }
.car__actions .btn { flex: 1; }

.car__id { font-size: 11.5px; color: var(--grey-soft); margin-top: 12px; letter-spacing: .04em; }

/* ---------- 11. Brand block ---------- */
.brandblock__grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(30px, 5vw, 72px);
    align-items: center;
}

.brandblock__media { position: relative; }
.brandblock__media img {
    width: 100%;
    border-radius: var(--radius-lg);
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.brandblock__media::after {
    content: '';
    position: absolute;
    right: -14px;
    bottom: -14px;
    width: 78px;
    height: 78px;
    background: var(--teal);
    transform: rotate(45deg);
    z-index: -1;
}

.brandblock__logo { height: 32px; width: auto; margin-bottom: 24px; }
.section--navy .brandblock__logo, .section--ink .brandblock__logo { filter: brightness(0) invert(1); }

.checklist { display: grid; gap: 14px; margin: 26px 0 32px; }
.checklist li {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    font-size: 15.5px;
    line-height: 1.55;
}
.checklist li::before {
    content: '';
    flex: none;
    width: 10px;
    height: 10px;
    margin-top: 8px;
    background: var(--teal);
    transform: rotate(45deg);
}
.checklist b { font-weight: 600; }

.brandblock__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 12. Contact / team cards ---------- */
.people {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.person {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.person:hover { border-color: var(--teal); box-shadow: var(--shadow-sm); }
.section--navy .person, .section--ink .person {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .14);
}

.person__name {
    font-family: var(--font-display);
    font-size: 1.06rem;
    font-weight: 700;
    letter-spacing: -.02em;
}
.person__role {
    font-size: 13px;
    color: var(--teal-deep);
    margin-top: 4px;
    margin-bottom: 16px;
    font-weight: 500;
}
.section--navy .person__role, .section--ink .person__role { color: var(--teal); }

.person__links { display: grid; gap: 8px; }
.person__links a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 14.5px;
    font-weight: 500;
    transition: color .2s var(--ease);
    word-break: break-word;
}
.person__links a:hover { color: var(--blue); }
.section--navy .person__links a:hover, .section--ink .person__links a:hover { color: var(--teal); }
.person__links svg { flex: none; color: var(--teal-deep); }
.section--navy .person__links svg, .section--ink .person__links svg { color: var(--teal); }

/* branch info card */
.branch {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    padding: clamp(26px, 3.4vw, 42px);
    background: var(--white);
    color: var(--navy);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}
.branch__title {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--teal-deep);
    margin-bottom: 12px;
}
.branch__row { display: flex; justify-content: space-between; gap: 14px; font-size: 15px; padding: 4px 0; }
.branch__row span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- 13. Form ---------- */
.formgrid {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: clamp(26px, 4vw, 56px);
    align-items: start;
}

.form {
    background: var(--white);
    color: var(--navy);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 3.4vw, 40px);
    display: grid;
    gap: 20px;
    box-shadow: var(--shadow-sm);
}

.form label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: .01em;
    margin-bottom: 8px;
    color: var(--navy);
}
.req { color: var(--flash); }

.form input[type="text"],
.form input[type="tel"],
.form input[type="email"],
.form textarea,
.form select {
    width: 100%;
    padding: 13px 15px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 16px;
    transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form input:focus, .form textarea:focus, .form select:focus {
    outline: none;
    background: var(--white);
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(36, 70, 150, .14);
}
.form textarea { min-height: 118px; resize: vertical; }
.form input.is-invalid, .form textarea.is-invalid { border-color: var(--flash); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* brand chooser */
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 14px 10px;
    text-align: center;
    background: var(--paper);
    border: 2px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.choice label:hover { border-color: var(--teal); }
.choice input:checked + label {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}
.choice input:focus-visible + label { outline: 3px solid var(--teal); outline-offset: 2px; }

.check-row { display: flex; gap: 12px; align-items: flex-start; }
.check-row input { margin-top: 4px; width: 19px; height: 19px; accent-color: var(--blue); flex: none; }
.check-row label { margin: 0; font-weight: 400; font-size: 14px; line-height: 1.55; color: var(--grey); }
.check-row a { color: var(--blue); text-decoration: underline; }

.field-error { display: block; font-size: 13px; color: var(--flash); margin-top: 6px; min-height: 0; }
.field-error:empty { margin-top: 0; }

.form-note { font-size: 13px; color: var(--grey); }

.form-message {
    display: none;
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
}
.form-message.is-ok { display: block; background: #e8f5ee; color: #16693f; border-left: 4px solid #1e8b55; }
.form-message.is-err { display: block; background: #fdecf1; color: var(--flash-deep); border-left: 4px solid var(--flash); }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.spinner {
    display: none;
    width: 17px; height: 17px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
.is-sending .spinner { display: block; }
.is-sending .btn-label { opacity: .6; }
@keyframes spin { to { transform: rotate(360deg); } }

.aside-card {
    background: var(--navy);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: clamp(24px, 3.2vw, 36px);
}
.aside-card h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}
.aside-card .checklist { margin: 0 0 26px; }
.aside-card .checklist li { font-size: 14.5px; color: rgba(255, 255, 255, .84); }
.aside-card .checklist b { color: #fff; }
.aside-card__phone {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .16);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--teal);
}

/* ---------- 14. FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 900px; }
.faq__item {
    background: var(--white);
    color: var(--navy);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.faq__q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    background: none;
    border: 0;
    text-align: left;
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -.015em;
    cursor: pointer;
    transition: color .2s var(--ease);
}
.faq__q:hover { color: var(--blue); }
.faq__q::after {
    content: '';
    flex: none;
    width: 11px; height: 11px;
    border-right: 2px solid var(--teal-deep);
    border-bottom: 2px solid var(--teal-deep);
    transform: rotate(45deg) translate(-3px, -3px);
    transition: transform .28s var(--ease);
}
.faq__item.is-open .faq__q::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq__a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .32s var(--ease);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 22px 22px; font-size: 15.5px; color: var(--grey); max-width: 72ch; }

/* ---------- 15. Closing CTA ---------- */
.finale {
    position: relative;
    background: var(--blue);
    color: #fff;
    overflow: hidden;
}
.finale::before {
    content: '';
    position: absolute;
    left: -80px;
    bottom: -110px;
    width: 320px; height: 320px;
    background: var(--blue-deep);
    transform: rotate(45deg);
}
.finale__inner { position: relative; text-align: center; max-width: 780px; margin-inline: auto; }
.finale__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
.finale .lead { margin-inline: auto; color: rgba(255, 255, 255, .82); }

/* ---------- 16. Footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .68); padding-block: clamp(48px, 6vw, 76px) 32px; font-size: 14.5px; }
.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer h4 {
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 16px;
    font-weight: 700;
}
.footer li { margin-bottom: 9px; }
.footer a:hover { color: #fff; }
.footer__logo { height: 24px; width: auto; margin-bottom: 18px; }
.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
    justify-content: space-between;
    padding-top: 26px;
    font-size: 13px;
    color: rgba(255, 255, 255, .46);
}

/* ---------- 17. Motion ---------- */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 18. Responsive ---------- */
@media (max-width: 1080px) {
    .brandblock__grid { grid-template-columns: 1fr; }
    .brandblock__media { order: -1; }
    .formgrid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .nav, .header__cta { display: none; }
    .nav-toggle { display: flex; }
    .statband__grid { grid-template-columns: 1fr 1fr; }

    .duo { height: auto; display: grid; grid-template-columns: 1fr; }
    .duo__half {
        position: relative;
        inset: auto;
        clip-path: none !important;
        min-height: 340px;
        justify-content: flex-start !important;
    }
    .duo__img { width: 100%; left: 0; right: auto; }
    .duo__half--b .duo__body { text-align: left; }
    .duo__half--b .duo__logo { margin-left: 0; }
    .duo__body { max-width: none; padding-block: 40px 34px; }
    .duo__seam { display: none; }
}

@media (max-width: 560px) {
    body { font-size: 16px; }
    .form-row { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; gap: 28px; }
    .car__actions { flex-direction: column; }
    .branch { gap: 22px; }
}

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

@media print {
    .header, .nav-mobile, .finale, .form { display: none; }
}
