/*
 * Motoren Discounter — Main Stylesheet
 * Tokens: primary #B91C1C / accent #FBBF24 / Plus Jakarta Sans
 */

/* ── Design tokens ───────────────────────────────────────── */
:root {
    --color-primary:        #B91C1C;
    --color-primary-dark:   #991B1B;
    --color-primary-light:  #FEE2E2;
    --color-secondary:      #1F2937;
    --color-accent:         #FBBF24;
    --color-accent-hover:   #D97706;

    --color-bg:             #FFFFFF;
    --color-surface:        #F9FAFB;
    --color-surface-alt:    #F3F4F6;
    --color-border:         #E5E7EB;
    --color-text:           #111827;
    --color-text-muted:     #6B7280;
    --color-text-soft:      #9CA3AF;

    --color-success:        #059669;
    --color-error:          #DC2626;
    --color-footer-bg:      #0D1117;
    --color-footer-text:    #9CA3AF;
    --color-footer-border:  #1F2937;

    --hero-bg:              linear-gradient(135deg, #B91C1C 0%, #7F1D1D 60%, #450a0a 100%);

    --font-sans:            'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --radius-sm:            6px;
    --radius-md:            8px;
    --radius-lg:            12px;
    --radius-xl:            16px;
    --radius-2xl:           20px;

    --shadow-sm:            0 1px 3px rgba(0,0,0,.06);
    --shadow-md:            0 4px 12px rgba(0,0,0,.08);
    --shadow-lg:            0 8px 32px rgba(0,0,0,.12);
    --shadow-xl:            0 24px 64px rgba(0,0,0,.20);

    --container:            1200px;
    --header-h-top:         32px;
    --header-h-main:        68px;

    /* Plugin form overrides */
    --alc-primary:          var(--color-primary);
    --alc-accent:           var(--color-accent);
    --alc-form-bg:          #fff;
    --alc-shadow:           var(--shadow-md);
    --alc-radius:           var(--radius-lg);
    --alc-text:             var(--color-text);
    --alc-muted:            var(--color-text-muted);
    --alc-border:           var(--color-border);
    --alc-form-padding:     32px;
}

/* ── Reset & base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--color-primary-dark); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4 {
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
.animate-fade-up { animation: fadeUp .55s cubic-bezier(.4,0,.2,1) both; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── Layout primitives ───────────────────────────────────── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}
.section { padding: 80px 0; }
.section--alt { background: var(--color-surface); border-top: 1px solid var(--color-border); }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-header h2 { font-size: clamp(24px, 3vw, 36px); margin: 12px 0; }
.section-header p { font-size: 16px; color: var(--color-text-muted); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(15,76,129,.10);
    color: var(--color-primary);
    border: 1px solid rgba(15,76,129,.18);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.badge--accent {
    background: rgba(245,158,11,.14);
    color: var(--color-accent);
    border-color: rgba(245,158,11,.30);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .15s, background .15s, box-shadow .15s, border-color .15s, color .15s;
    cursor: pointer;
    line-height: 1;
    white-space: nowrap;
}
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(15,76,129,.32); }

.btn-on-dark {
    background: #fff;
    color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(0,0,0,.18);
}
.btn-on-dark:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.25); color: var(--color-primary); }

.btn-outline-white {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.30);
}
.btn-outline-white:hover { background: rgba(255,255,255,.20); color: #fff; }

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }

.btn-ghost {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* ── Header (top bar + main bar) ─────────────────────────── */
.topbar {
    background: var(--color-primary);
    color: #fff;
    font-size: 13px;
    height: var(--header-h-top);
    display: flex;
    align-items: center;
}
.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.topbar__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: .92;
}
.topbar__item a { color: inherit; }
.topbar__item a:hover { opacity: 1; color: #fff; }
.topbar__item svg { width: 13px; height: 13px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h-main);
    gap: 16px;
}
.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-primary);
    text-decoration: none;
}
.site-logo:hover { color: var(--color-primary-dark); text-decoration: none; }
.site-logo__mark {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--color-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.site-logo__mark svg { width: 20px; height: 20px; }
.site-logo__text {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -.01em;
    line-height: 1.1;
}
.site-logo__sub {
    display: block;
    font-size: 10.5px;
    color: var(--color-text-muted);
    font-weight: 500;
    letter-spacing: .02em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.site-nav a {
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    transition: color .15s, background .15s;
    white-space: nowrap;
}
.site-nav a:hover,
.site-nav .current-menu-item > a {
    color: var(--color-primary);
    background: rgba(15,76,129,.10);
}

.site-header__actions { display: flex; align-items: center; gap: 10px; }
.site-header__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s, transform .15s;
    white-space: nowrap;
}
.site-header__cta:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-1px); }

.burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
}
.burger span {
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all .25s;
}

/* Mobile drawer */
.site-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    right: 0;
    top: var(--header-h-main);
    width: 280px;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0,0,0,.15);
    padding: 16px;
    gap: 4px;
    z-index: 99;
}
.site-nav.is-open a {
    padding: 12px 14px;
    color: var(--color-text);
    text-align: left;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
    background: var(--hero-bg);
    color: #fff;
    padding: 80px 0 96px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .06;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    top: -200px;
    right: -100px;
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.hero__content { color: #fff; }
.hero__content .badge { background: rgba(245,158,11,.18); color: #fbbf24; border-color: rgba(245,158,11,.32); }
.hero__content h1 {
    font-size: clamp(32px, 4vw, 56px);
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 16px 0 18px;
    text-wrap: pretty;
}
.hero__content h1 span { color: var(--color-accent); display: inline; }
.hero__lead {
    font-size: 18px;
    color: rgba(255,255,255,.85);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 480px;
}
.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hero-stat__num {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.02em;
}
.hero-stat__label {
    font-size: 12px;
    color: rgba(255,255,255,.65);
    font-weight: 500;
}

.hero__form-card {
    background: rgba(255,255,255,.97);
    color: var(--color-text);
    border-radius: var(--radius-2xl);
    padding: 32px;
    box-shadow: var(--shadow-xl);
}
.hero__form-card h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 6px;
}
.hero__form-card p.lead {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}
.hero__form-card form,
.hero__form-card .alc-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: transparent;
    box-shadow: none;
    padding: 0;
}
.hero__form-card input,
.hero__form-card select,
.hero__form-card textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--color-text);
    outline: none;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.hero__form-card input:focus,
.hero__form-card select:focus,
.hero__form-card textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(15,76,129,.12);
}
.hero__form-card .alc-form__label,
.hero__form-card label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

/* ── USP / Trust signals ─────────────────────────────────── */
.usps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.usp-card {
    background: #fff;
    border: 1px solid var(--color-surface-alt);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.usp-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(15,76,129,.20);
}
.usp-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(15,76,129,.10);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
}
.usp-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -.005em;
    margin-bottom: 8px;
}
.usp-card p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ── How it works (3 steps) ──────────────────────────────── */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}
.steps::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 16.66%;
    right: 16.66%;
    height: 2px;
    background: linear-gradient(90deg, rgba(15,76,129,.25), var(--color-primary), rgba(15,76,129,.25));
    z-index: 0;
}
.step {
    text-align: center;
    position: relative;
    z-index: 1;
}
.step__num {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(15,76,129,.30);
}
.step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-text);
}
.step p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.65;
}

/* ── Testimonials ────────────────────────────────────────── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.testimonial {
    background: #fff;
    border: 1px solid var(--color-surface-alt);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}
.testimonial__stars {
    color: var(--color-accent);
    font-size: 16px;
    letter-spacing: 2px;
    line-height: 1;
}
.testimonial__text {
    font-size: 15px;
    color: #374151;
    line-height: 1.65;
    margin: 16px 0 20px;
    font-style: italic;
}
.testimonial__author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonial__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(15,76,129,.18);
    color: var(--color-primary);
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.testimonial__name { font-size: 14px; font-weight: 700; color: var(--color-text); }
.testimonial__meta { font-size: 12px; color: var(--color-text-soft); }

/* ── CTA section (bottom) ────────────────────────────────── */
.cta-section {
    background: var(--hero-bg);
    color: #fff;
    text-align: center;
    padding: 72px 0;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .06;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4z'/%3E%3C/g%3E%3C/svg%3E");
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { font-size: clamp(24px, 3vw, 36px); color: #fff; margin-bottom: 12px; }
.cta-section p { font-size: 16px; color: rgba(255,255,255,.82); margin-bottom: 28px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ── Page hero (interior pages) ──────────────────────────── */
.page-hero {
    background: var(--hero-bg);
    color: #fff;
    padding: 64px 0 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .06;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4z'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.82); font-size: 16px; max-width: 640px; margin: 0 auto; }

.page-content {
    max-width: 760px;
    margin: 0 auto;
    color: var(--color-text);
}
.page-content p { margin-bottom: 1.1em; line-height: 1.75; color: #374151; }
.page-content h2 { font-size: 24px; margin: 1.6em 0 .6em; }
.page-content h3 { font-size: 19px; margin: 1.4em 0 .5em; }
.page-content ul, .page-content ol { padding-left: 1.4em; margin-bottom: 1.1em; color: #374151; }
.page-content li { margin-bottom: .35em; }

/* ── About / Contact / Parts grids ───────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 56px;
    align-items: center;
}
.about-image {
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(15,76,129,.08), rgba(245,158,11,.10));
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 96px;
}
.about-text h2 { font-size: clamp(22px, 2.5vw, 30px); margin-bottom: 16px; }
.about-text p { color: #374151; line-height: 1.7; margin-bottom: 1em; }

.about-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.value-card {
    background: #fff;
    border: 1px solid var(--color-surface-alt);
    border-radius: var(--radius-xl);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
}
.value-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.value-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin: 0 auto 12px;
    background: rgba(15,76,129,.10);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.value-card h3 { font-size: 16px; margin-bottom: 6px; }
.value-card p { font-size: 13px; color: var(--color-text-muted); line-height: 1.55; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}
.contact-info h2 { font-size: 22px; margin-bottom: 12px; }
.contact-info > p { color: var(--color-text-muted); margin-bottom: 24px; }
.contact-details { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-details li { display: flex; gap: 14px; align-items: flex-start; }
.contact-details .icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(15,76,129,.10);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.contact-details strong { color: var(--color-text); font-size: 14px; }
.contact-details a { color: var(--color-primary); }

/* Parts page */
.parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.part-card {
    background: #fff;
    border: 1px solid var(--color-surface-alt);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.part-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(15,76,129,.18); }
.part-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(15,76,129,.10);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 16px;
}
.part-card h3 { font-size: 18px; margin-bottom: 8px; }
.part-card > p { color: var(--color-text-muted); font-size: 14px; line-height: 1.65; margin-bottom: 14px; }
.part-card__list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.part-card__list li {
    font-size: 14px;
    color: #374151;
    padding-left: 22px;
    position: relative;
}
.part-card__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 800;
}

/* Thank you */
.thank-you {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
}
.thank-you__inner { max-width: 640px; width: 100%; text-align: center; }
.thank-you__icon {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #DCFCE7;
    color: var(--color-success);
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
}
.thank-you h1 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 14px; }
.thank-you__lead { font-size: 17px; color: var(--color-text-muted); line-height: 1.65; margin-bottom: 28px; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 64px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.footer-brand .site-logo__text { color: #fff; }
.footer-brand .site-logo__sub { color: rgba(255,255,255,.55); }
.footer-brand p {
    font-size: 13px;
    line-height: 1.65;
    color: var(--color-footer-text);
    max-width: 320px;
}
.footer-brand .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
}
.footer-brand .footer-contact a {
    color: var(--color-footer-text);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.footer-brand .footer-contact a:hover { color: #fff; }

.footer-col h4 {
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
    color: var(--color-footer-text);
    font-size: 14px;
    transition: color .15s;
}
.footer-col a:hover { color: #fff; }
.footer-col .footer-meta {
    margin-top: 16px;
    font-size: 12px;
    color: #4B5563;
}

.footer-bottom {
    border-top: 1px solid var(--color-footer-border);
    padding: 16px 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p { font-size: 12px; color: #4B5563; }
.footer-legal { display: flex; gap: 18px; font-size: 12px; }
.footer-legal a { color: #4B5563; }
.footer-legal a:hover { color: #fff; }

/* ── Cookie banner ───────────────────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: var(--color-text);
    color: rgba(255,255,255,.92);
    padding: 14px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -8px 32px rgba(0,0,0,.18);
}
.cookie-banner p { font-size: 13px; line-height: 1.55; flex: 1; min-width: 240px; }
.cookie-banner a { color: #fbbf24; text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn-accept,
.cookie-btn-decline {
    border: none;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}
.cookie-btn-accept { background: var(--color-primary); color: #fff; }
.cookie-btn-accept:hover { background: var(--color-primary-dark); }
.cookie-btn-decline {
    background: transparent;
    color: rgba(255,255,255,.6);
    border: 1px solid rgba(255,255,255,.25);
}
.cookie-btn-decline:hover { color: #fff; border-color: rgba(255,255,255,.5); }

/* ── 404 page ────────────────────────────────────────────── */
.error-404 {
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    padding: 80px 0 96px;
}
.error-404__inner { max-width: 920px; margin: 0 auto; text-align: center; }
.error-404__code {
    font-size: clamp(96px, 18vw, 192px);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -.04em;
    margin-bottom: 8px;
}
.error-404__title {
    font-size: clamp(24px, 3vw, 36px);
    margin-bottom: 16px;
    color: var(--color-text);
}
.error-404__lead {
    font-size: 16px;
    color: var(--color-text-muted);
    max-width: 640px;
    margin: 0 auto 32px;
    line-height: 1.65;
}
.error-404__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 56px;
}
.error-404__quicklinks h2,
.error-404__search h2 {
    font-size: 13px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    margin-bottom: 18px;
}
.error-404__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 48px;
}
.quicklink {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    text-decoration: none;
    color: var(--color-text);
    transition: transform .15s, border-color .15s, box-shadow .15s;
}
.quicklink:hover {
    transform: translateY(-2px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: var(--color-text);
}
.quicklink__icon { font-size: 28px; margin-bottom: 4px; }
.quicklink__title { font-weight: 700; color: var(--color-primary); font-size: 14px; }
.quicklink__sub { font-size: 12.5px; color: var(--color-text-muted); }

.error-404__search form {
    display: flex;
    gap: 10px;
    max-width: 520px;
    margin: 0 auto;
}
.error-404__search input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
}
.error-404__search input[type="search"]:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(15,76,129,.12);
}
.error-404__search button[type="submit"] {
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 20px;
    font-weight: 700;
    cursor: pointer;
}
.error-404__search button[type="submit"]:hover { background: var(--color-primary-dark); }

/* ── Skip link ───────────────────────────────────────────── */
.skip-link {
    position: absolute;
    left: -10000px;
    top: 0;
    background: var(--color-primary);
    color: #fff;
    padding: 8px 12px;
    border-radius: 0 0 6px 0;
    z-index: 10000;
}
.skip-link:focus { left: 0; }
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px,1px,1px,1px);
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* ── Plugin form polish ──────────────────────────────────── */
.alc-form { font-family: var(--font-sans); }
.alc-form__input,
.alc-form__select,
.alc-form__textarea {
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    transition: border-color .15s, box-shadow .15s;
}
.alc-form__input:focus,
.alc-form__select:focus,
.alc-form__textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(15,76,129,.12);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 880px) {
    .topbar__item:nth-child(2) { display: none; }
    .hero { padding: 64px 0 72px; }
    .hero__inner { grid-template-columns: 1fr; gap: 40px; }
    .site-nav { display: none; }
    .burger { display: flex; }
    .steps { grid-template-columns: 1fr; gap: 24px; }
    .steps::before { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
    .section { padding: 60px 0; }
    .hero { padding: 48px 0 64px; }
    .hero__form-card { padding: 24px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .topbar__item span { display: none; }
    .site-header__cta span.btn-cta-text { display: none; }
}
