/* =====================================================================
   Skadepris.se – design system
   Self-contained CSS (no build step). Navy sidebar, blue primary,
   white cards on a light-gray canvas, matching the product mockups.
   ===================================================================== */

:root {
    --navy: #0f172a;
    --navy-800: #1e293b;
    --navy-700: #334155;
    --primary: #2563eb;
    --coral: #ef8354;
    --gul: #fecb00;
    --gul-hover: #fde68a;
    --coral-hover: #f49b75;
    --coral-ink: #13261f;
    --primary-600: #1d4ed8;
    --primary-700: #1e40af;
    --primary-050: #eff6ff;
    --green: #16a34a;
    --green-050: #f0fdf4;
    --amber: #d97706;
    --amber-050: #fffbeb;
    --red: #dc2626;
    --red-050: #fef2f2;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-900: #0f172a;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .04);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, .08);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, .12);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --sidebar-w: 256px;
    --surface: #fff;
    --sidebar: #0f172a;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --surface: #151c2c;
    --sidebar: #070b14;
    --slate-50: #0b1220;
    --slate-100: #1a2336;
    --slate-200: #2a364d;
    --slate-300: #3d4c66;
    --slate-400: #94a3b8;
    --slate-500: #a8b3c7;
    --slate-600: #cbd5e1;
    --slate-700: #e2e8f0;
    --slate-900: #f1f5f9;
    --navy: #f8fafc;
    --primary-050: rgba(37, 99, 235, .22);
    --primary-700: #93c5fd;
    --green: #4ade80;
    --green-050: rgba(22, 163, 74, .18);
    --amber: #fbbf24;
    --amber-050: rgba(217, 119, 6, .18);
    --red: #f87171;
    --red-050: rgba(220, 38, 38, .18);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow: 0 1px 3px rgba(0, 0, 0, .4);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, .35);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--slate-900);
    background: var(--slate-50);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; }
p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                            */
/* ------------------------------------------------------------------ */
button,
input,
textarea,
select,
input[type="checkbox"],
input[type="radio"],
input[type="file"] {
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}
input[type="range"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="color"] {
    -webkit-appearance: none;
    appearance: none;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}
button {
    background: transparent;
    color: inherit;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font: inherit;
    font-weight: 800;
    font-size: 14px;
    line-height: 1;
    min-height: 40px;
    padding: 0 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .22s, background .22s, border-color .22s, color .22s, box-shadow .22s;
    text-decoration: none;
    white-space: nowrap;
    -webkit-appearance: none;
    appearance: none;
}
.btn:hover:not([disabled]) { text-decoration: none; transform: translateY(-3px); }
.btn-primary { background: var(--gul); color: var(--coral-ink); }
.btn-primary:hover:not([disabled]) { background: var(--gul-hover); color: var(--coral-ink); }
.btn-secondary { background: var(--surface); color: var(--slate-800, var(--navy)); border-color: var(--slate-300); }
.btn-secondary:hover:not([disabled]) { background: var(--slate-50); }
.btn-ghost { background: transparent; color: var(--slate-700); border-color: rgba(19, 38, 31, .18); }
.btn-ghost:hover:not([disabled]) { background: var(--slate-100); color: var(--navy); }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover:not([disabled]) { background: #15803d; color: #fff; }
.btn-danger { background: var(--surface); color: var(--red); border-color: #fecaca; }
.btn-danger:hover:not([disabled]) { background: var(--red-050); }
.btn-lg { min-height: 52px; padding: 0 22px; font-size: 15px; }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn .arrow-nudge { transition: transform .22s; }
.btn-primary:not(:has(.icon)):not(.nav-user)::after {
    content: "";
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .22s;
}
.btn-sm.btn-primary:not(:has(.icon)):not(.nav-user)::after { width: 14px; height: 14px; }
.btn:hover:not([disabled])::after,
.btn:hover:not([disabled]) .arrow-nudge { transform: translate(3px, -3px); }
@media (prefers-reduced-motion: reduce) {
    .btn, .btn::after, .btn .arrow-nudge { transition: none; }
    .btn:hover:not([disabled]),
    .btn:hover:not([disabled])::after,
    .btn:hover:not([disabled]) .arrow-nudge { transform: none; }
}

/* ------------------------------------------------------------------ */
/* Forms                                                              */
/* ------------------------------------------------------------------ */
.field { margin-bottom: 18px; }
.label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-700);
    margin-bottom: 7px;
}
.field:has(:is(input, textarea, select):required) .label::after {
    content: " *";
    color: var(--red);
    font-weight: 700;
}
.input, .textarea, .select {
    width: 100%;
    font: inherit;
    font-size: 15px;
    line-height: 1.4;
    padding: 12px 14px;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-sm);
    background-color: var(--surface);
    color: var(--slate-900);
    transition: border-color .15s, box-shadow .15s;
    box-shadow: none;
}
.input, .select {
    height: 48px;
    min-height: 48px;
    padding-top: 0;
    padding-bottom: 0;
}
.input:focus, .textarea:focus, .select:focus,
input[type="checkbox"]:focus,
input[type="radio"]:focus,
input[type="file"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.55; }
select,
.select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 42px;
    cursor: pointer;
    background-color: var(--surface);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px 16px;
}
select::-ms-expand { display: none; }
.select option,
select option { color: var(--slate-900); background: var(--surface); }
#car_year:has(option[value=""]:checked),
#repair_type:has(option[value=""]:checked) { color: var(--slate-400); }
input[type="checkbox"]:not(.role-picker),
input[type="radio"]:not(.role-picker) {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 auto;
    border: 1px solid var(--slate-300);
    border-radius: 5px;
    background-color: var(--surface);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
    cursor: pointer;
    vertical-align: middle;
}
input[type="radio"]:not(.role-picker) { border-radius: 50%; }
input[type="checkbox"]:not(.role-picker):checked {
    background-color: var(--primary);
    border-color: var(--primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
input[type="radio"]:not(.role-picker):checked {
    border-color: var(--primary);
    background-color: var(--surface);
    background-image: radial-gradient(circle, var(--primary) 0 5px, transparent 5.5px);
}
input[type="file"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    font: inherit;
    font-size: 14px;
    color: var(--slate-700);
    background: var(--surface);
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    cursor: pointer;
}
input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button {
    -webkit-appearance: none;
    appearance: none;
    font: inherit;
    font-weight: 600;
    font-size: 14px;
    color: var(--slate-700);
    background: var(--slate-50);
    border: 1px solid var(--slate-300);
    border-radius: 6px;
    padding: 8px 12px;
    margin-right: 12px;
    cursor: pointer;
}
.hint { font-size: 13px; color: var(--slate-500); margin-top: 6px; }
.error-text { color: var(--red); font-size: 13px; margin-top: 6px; }
.input.is-invalid,
.input:user-invalid {
    border-color: var(--red);
    background: var(--red-050);
}
.field:has(.input:user-invalid) .hint,
.field:has(.input.is-invalid) .hint { color: var(--red); }
.input-icon { position: relative; }
.input-icon .input { padding-right: 44px; }
.password-field { position: relative; width: 100%; }
.password-field .input { padding-right: 48px; }
.field-icon { position: relative; }
.field-icon-mark {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--slate-400); display: flex; pointer-events: none; z-index: 1;
}
.field-icon > .input,
.field-icon .password-field .input { padding-left: 44px; }
.password-toggle {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border: 0; border-radius: 8px;
    background: transparent; color: var(--slate-500); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.password-toggle:hover { color: var(--slate-800); background: var(--slate-100); }
.input-icon .icon-right {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    color: var(--green); pointer-events: none;
}

/* Reg-number plate style input */
.reg-input {
    display: flex;
    align-items: stretch;
    border: 2px solid var(--slate-300);
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface);
    max-width: 420px;
}
.reg-input .reg-flag {
    background: #003399;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-width: 42px;
    padding: 5px;
}
.reg-input .eu-emblem { display: block; width: 26px; height: 26px; flex: none; }
.reg-input .reg-flag-code {
    font-weight: 800;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0;
}
.reg-input input {
    border: none;
    background: transparent;
    flex: 1;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 0px 16px;
    color: var(--slate-900);
    min-width: 0;
}
.reg-input input:focus { outline: none; }

/* ------------------------------------------------------------------ */
/* Cards                                                              */
/* ------------------------------------------------------------------ */
.card {
    background: var(--surface);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.card-pad { padding: 22px; }
.card-head {
    padding: 18px 22px;
    border-bottom: 1px solid var(--slate-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.card-head h3 { margin: 0; font-size: 16px; }
.card-body { padding: 22px; }

/* ------------------------------------------------------------------ */
/* Badges / status pills                                              */
/* ------------------------------------------------------------------ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 999px;
    line-height: 1.4;
}
.badge-blue  { background: var(--primary-050); color: var(--primary-700); }
.badge-green { background: var(--green-050); color: #15803d; }
.badge-amber { background: var(--amber-050); color: #b45309; }
.badge-red   { background: var(--red-050); color: #b91c1c; }
.badge-gray  { background: var(--slate-100); color: var(--slate-600); }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ------------------------------------------------------------------ */
/* Tables                                                             */
/* ------------------------------------------------------------------ */
.table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.table th {
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--slate-500);
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 1px solid var(--slate-200);
    white-space: nowrap;
}
.table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--slate-100);
    vertical-align: middle;
    color: var(--slate-700);
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--slate-50); }
.table-wrap { max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.period-picker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 12px;
    min-width: 0;
    max-width: 100%;
}

/* ------------------------------------------------------------------ */
/* Public site header                                                 */
/* ------------------------------------------------------------------ */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--slate-200);
    position: sticky;
    top: 0;
    z-index: 40;
}
.site-header .bar {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand-logos { display: flex; align-items: center; line-height: 0; }
.brand-logo { height: 32px; width: auto; display: block; }
.brand-logo-light { display: none; }
.site-footer .brand-logo,
.sidebar .brand-logo { height: 26px; }
.site-footer .brand-logo-dark,
.sidebar .brand-logo-dark,
body:has(.hero) .site-header .brand-logo-dark,
html[data-theme="dark"] .brand-logo-dark { display: none; }
.site-footer .brand-logo-light,
.sidebar .brand-logo-light,
body:has(.hero) .site-header .brand-logo-light,
html[data-theme="dark"] .brand-logo-light { display: block; }
body:has(.hero) .site-header {
    position: absolute; left: 0; right: 0;
    background: transparent; border-bottom-color: transparent; color: #fff;
}
body:has(.hero) .brand,
body:has(.hero) .nav-links a,
body:has(.hero) .nav-toggle,
body:has(.hero) .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
body:has(.hero) .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
body:has(.hero) .nav-links a:hover { background: rgba(255,255,255,.1); color: #fff; }
body:has(.hero) .theme-toggle {
    color: #fff; background: transparent; border-color: rgba(255,255,255,.28);
}
.nav-links { display: flex; align-items: center; gap: 6px; margin-left: 8px; }
.nav-links a {
    color: var(--slate-600);
    font-size: 14.5px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
}
.nav-links a:hover { color: var(--navy); background: var(--slate-100); text-decoration: none; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-user .nav-user-mark { display: none; }
.nav-toggle { display: none; background: none; border: 1px solid; border-radius: 30px; var(--slate-300); cursor: pointer; padding: 8px; color: var(--navy); }
.nav-toggle-close { display: none; }
.site-header.is-open .nav-toggle-open { display: none; }
.site-header.is-open .nav-toggle-close { display: inline-flex; }

/* ------------------------------------------------------------------ */
/* Hero                                                               */
/* ------------------------------------------------------------------ */
.hero {
    background:
        radial-gradient(circle at 18% 22%, rgba(255,255,255,.16) 0 1px, transparent 1.6px),
        radial-gradient(circle at 72% 18%, rgba(255,255,255,.22) 0 1px, transparent 1.6px),
        radial-gradient(circle at 84% 62%, rgba(255,255,255,.14) 0 1px, transparent 1.6px),
        radial-gradient(circle at 30% 78%, rgba(255,255,255,.12) 0 1px, transparent 1.6px),
        radial-gradient(ellipse 80% 50% at 50% 115%, rgba(96,165,250,.45), transparent 60%),
        linear-gradient(180deg, #071a5c 0%, #12348f 48%, #1d4ed8 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    left: -12%; right: -12%; top: 8%; bottom: -30%;
    background:
        radial-gradient(ellipse 62% 42% at 50% 48%, transparent 61%, rgba(255,255,255,.22) 62%, transparent 63.2%),
        radial-gradient(ellipse 84% 54% at 50% 54%, transparent 64%, rgba(191,219,254,.16) 65%, transparent 66.2%);
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
    padding: 108px 0 96px;
}
.hero .eyebrow {
    letter-spacing: .2em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    color: #bfdbfe;
    margin: 0 0 16px;
}
.hero h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.02; letter-spacing: -.035em; margin-bottom: 18px; font-weight: 800; }
.hero .lead { font-size: 18px; color: #dbeafe; margin-bottom: 28px; max-width: 540px; }
.hero-features { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; color: #dbeafe; font-size: 14.5px; }
.hero-features span { display: inline-flex; align-items: center; gap: 8px; }
.hero-features .check { color: #4ade80; }
.hero-card {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius-lg);
    padding: 26px;
    backdrop-filter: blur(6px);
}
.hero-card h3 { color: #fff; font-size: 17px; }
.hero-card .label { color: #cbd5e1; }
.hero-photo {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(2, 8, 32, .45);
    border: 1px solid rgba(255,255,255,.18);
}
.hero-photo img,
.hero-img {
    display: block;
    width: 100%;
    height: 460px;
    object-fit: cover;
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: -48px;
    position: relative;
    z-index: 5;
    padding-bottom: 20px;
}
.step-card {
    background: var(--surface);
    border: 1px solid var(--slate-200);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
    padding: 28px;
    transition: transform .3s, border-color .3s, box-shadow .3s;
}
.step-card .idx {
    font-size: 13px;
    letter-spacing: .16em;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 14px;
}
.step-icon {
    width: 48px; height: 48px; border-radius: 15px;
    background: var(--primary-050); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
    transition: transform .3s, background .3s, color .3s;
}
.step-card:hover {
    transform: translateY(-8px);
    border-color: rgba(37, 99, 235, .45);
    box-shadow: 0 28px 58px rgba(15, 23, 42, .13);
}
.step-card:hover .step-icon {
    transform: rotate(-7deg) scale(1.08);
    background: rgba(239, 131, 84, .16);
    color: #c45e36;
}
.step-num { font-size: 23px; font-weight: 700; color: var(--primary); }
@media (prefers-reduced-motion: reduce) {
    .step-card, .step-icon, .flow-step, .feature-item, .fi-icon, .faq-card, .faq-card-icon { transition: none; }
    .step-card:hover, .step-card:hover .step-icon,
    .flow-step:hover, .flow-step:hover .step-icon,
    .feature-item:hover, .feature-item:hover .fi-icon,
    .faq-card:hover, .faq-card:hover .faq-card-icon { transform: none; }
}

/* Sections */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-title { text-align: center; margin-bottom: 44px; }
.section-title h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -.03em; }
.section-title p { color: var(--slate-500); font-size: 17px; max-width: 640px; margin: 0 auto; }
.bg-white { background: var(--surface); }
.bg-slate { background: var(--slate-50); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature-item {
    background: var(--surface);
    border: 1px solid var(--slate-200);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
    padding: 28px;
    transition: transform .3s, border-color .3s, box-shadow .3s;
}
.feature-item .fi-icon {
    width: 46px; height: 46px; border-radius: 11px;
    background: var(--primary-050); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
    transition: transform .3s, background .3s, color .3s;
}
.feature-item:hover {
    transform: translateY(-8px);
    border-color: rgba(37, 99, 235, .45);
    box-shadow: 0 28px 58px rgba(15, 23, 42, .13);
}
.feature-item:hover .fi-icon {
    transform: rotate(-7deg) scale(1.08);
    background: rgba(239, 131, 84, .16);
    color: #c45e36;
}

/* CTA band */
.cta-band {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    border-radius: 28px;
    padding: 78px 32px;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(10, 24, 52, .58) 0%, rgba(8, 18, 40, .72) 100%),
        url("../img/slides/slide-1.jpg") center 42% / cover no-repeat;
}
.cta-kicker {
    margin: 0 0 12px;
    color: var(--gul);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.cta-band h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -.03em;
}
.cta-form {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    width: min(420px, 100%);
    margin: 26px auto 0;
    padding: 5px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .38);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .2);
}
.cta-form .reg-input {
    flex: 1;
    max-width: none;
    min-width: 0;
    border: 0;
    border-radius: 10px;
    background: #fff;
}
.cta-form .reg-input input {
    height: 50px;
    padding: 0 14px;
    font-size: 18px;
    letter-spacing: 2px;
    color: #0f172a;
}
.cta-form .reg-input input::placeholder { letter-spacing: 1px; font-weight: 700; color: #94a3b8; }
.cta-form .reg-input input:focus { outline: none; box-shadow: none; }
.cta-go {
    height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 10px;
    background: var(--gul);
    color: #333;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
}
.cta-go:hover { background: var(--gul-hover); }
.price-terms { max-width: 860px; margin: 0 auto; text-align: center; }
.price-terms .faq-kicker { padding-top: 0; }
.price-terms h2 { margin: 0 0 18px; font-size: clamp(30px, 4vw, 42px); letter-spacing: -.02em; }
.price-terms p { margin: 0 0 16px; color: var(--slate-600); font-size: 17px; line-height: 1.65; }
.price-terms p:last-child { margin-bottom: 0; }
.price-terms strong, .price-terms .price-note { color: var(--navy); font-weight: 700; }
.faq-section { background: var(--slate-100); }
.cta-section { background: var(--slate-100); }
.cta-band > p:not(.cta-kicker) {
    max-width: 640px;
    margin: 16px auto 0;
    color: rgba(255, 255, 255, .88);
    font-size: 17px;
    line-height: 1.6;
}
.cta-band .btn { margin-top: 26px; }
.cta-band > p.partner-cta-mail { margin: 18px auto 0; color: rgba(255, 255, 255, .72); font-size: 14px; }
.cta-band .partner-cta-mail a { color: #fff; text-decoration: underline; }
.cta-band .partner-cta-mail a:hover { color: #fff; }
.faq-head { margin-bottom: 8px; }
.faq-kicker {
    margin: 0 0 8px;
    color: var(--slate-400);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    padding-top: 20px;
}
.faq-head h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -.03em; }
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 72px;
}
.faq-item { padding: 26px 0 22px; border-bottom: 1px solid var(--slate-200); }
.faq-item h3 {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin: 0 0 8px;
    font-size: 16.5px;
    letter-spacing: -.01em;
}
.faq-num {
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    flex: none;
}
.faq-item p {
    margin: 0;
    padding-left: 36px;
    color: var(--slate-500);
    font-size: 14.5px;
    line-height: 1.6;
}
@media (max-width: 820px) {
    .faq-grid { grid-template-columns: 1fr; column-gap: 0; }
}
.faq-cards {
    display: grid;
    gap: 14px;
    margin: 28px auto 0;
}
.faq-cards-2 {
    max-width: none;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
}
@media (max-width: 820px) {
    .faq-cards-2 { grid-template-columns: 1fr; }
}
.faq-card {
    background: var(--surface);
    border: 1px solid var(--slate-200);
    border-radius: 18px;
    padding: 18px 20px 16px;
    transition: transform .3s, border-color .3s, box-shadow .3s;
}
.faq-card h3 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    font-size: 16px;
    letter-spacing: -.01em;
}
.faq-card-icon {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--primary-050);
    color: var(--primary);
    transition: transform .3s, background .3s, color .3s;
}
.faq-card:hover {
    transform: translateY(-8px);
    border-color: rgba(37, 99, 235, .45);
    box-shadow: 0 28px 58px rgba(15, 23, 42, .13);
}
.faq-card:hover .faq-card-icon {
    transform: rotate(-7deg) scale(1.08);
    background: rgba(239, 131, 84, .16);
    color: #c45e36;
}
.faq-card p {
    margin: 10px 0 0 50px;
    max-width: 640px;
    color: var(--slate-500);
    font-size: 15px;
    line-height: 1.65;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Footer */
.site-footer { background: var(--sidebar); color: #cbd5e1; padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer a { color: #cbd5e1; display: block; padding: 4px 0; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--navy-700); padding-top: 20px; font-size: 13px; color: var(--slate-400); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.footer-meta { display: inline-block; margin-left: 13px; }
.footer-legal { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.site-footer .footer-legal a { display: inline; padding: 0; color: #cbd5e1; font-size: 13px; white-space: nowrap; }
.site-footer .footer-legal a:hover { color: #fff; }
.footer-legal span { color: #94a3b8; }

/* ------------------------------------------------------------------ */
/* App shell (sidebar layout)                                         */
/* ------------------------------------------------------------------ */
.app-shell { display: flex; min-height: 100vh; width: 100%; max-width: 100%; min-width: 0; }
.sidebar {
    width: var(--sidebar-w);
    background: var(--sidebar);
    color: #cbd5e1;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; bottom: 0; left: 0;
    z-index: 50;
    overflow-y: auto;
}
.sidebar .brand { color: #fff; padding: 22px 22px 16px; font-size: 18px; }
.sidebar-role { padding: 0 22px 16px; }
.sidebar-role .role-pill {
    font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
    color: var(--slate-400); font-weight: 600;
}
.side-nav { list-style: none; margin: 0; padding: 8px 12px; flex: 1; }
.side-nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; border-radius: 9px;
    color: #cbd5e1; font-size: 14.5px; font-weight: 500;
    margin-bottom: 2px;
}
.side-nav a:hover { background: var(--navy-800); color: #fff; text-decoration: none; }
.side-nav a.active { background: var(--primary); color: #fff; }
.side-nav a .ic { width: 20px; height: 20px; flex-shrink: 0; }
.side-nav a .count {
    margin-left: auto; background: rgba(255,255,255,.15); color: #fff;
    font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px;
}
.side-nav a.active .count { background: rgba(255,255,255,.25); }
.sidebar-foot { padding: 12px; border-top: 1px solid var(--navy-800); }

.main-area {
    flex: 1;
    margin-left: var(--sidebar-w);
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}
.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--slate-200);
    height: 66px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 30;
}
.topbar h1 { margin: 0; font-size: 20px; min-width: 0; }
.topbar .spacer { margin-left: auto; flex: none; }
.page { padding: 28px; min-width: 0; max-width: 100%; flex: 1; }
.app-footer {
    margin-top: auto;
    padding: 16px 28px 20px;
    border-top: 1px solid var(--slate-200);
    color: var(--slate-500);
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 24px;
}
.app-footer a { color: var(--navy); font-weight: 600; }
.app-footer a:hover { color: var(--primary); }
.page-narrow { max-width: 920px; }

/* Bell + user menu */
.icon-btn {
    position: relative;
    width: 40px; height: 40px; border-radius: 30px;
    border: 1px solid var(--slate-200); background: var(--surface);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--slate-600);
}
.icon-btn:hover { background: var(--slate-50); }
.icon-btn .badge-count {
    position: absolute; top: -6px; right: -6px;
    background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
    min-width: 18px; height: 18px; border-radius: 999px;
    display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.user-chip {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 10px; border-radius: 10px; cursor: pointer;
    border: 1px solid transparent;
}
.user-chip:hover { background: var(--slate-100); }
.avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--primary); color: #fff; font-weight: 700; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
}
.dropdown {
    position: absolute; right: 0; top: calc(100% + 8px);
    background: var(--surface); border: 1px solid var(--slate-200);
    border-radius: 12px; box-shadow: var(--shadow-lg);
    min-width: 260px; z-index: 60; overflow: hidden;
}
.dropdown a, .dropdown button {
    display: block; width: 100%; text-align: left;
    padding: 11px 16px; font-size: 14px; color: var(--slate-700);
    background: none; border: none; cursor: pointer; font: inherit;
}
.dropdown a:hover, .dropdown button:hover { background: var(--slate-50); text-decoration: none; }
.dropdown .dd-head { padding: 14px 16px; border-bottom: 1px solid var(--slate-100); }

/* ------------------------------------------------------------------ */
/* Stats cards                                                        */
/* ------------------------------------------------------------------ */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; min-width: 0; }
.stat-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-card { background: var(--surface); border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); min-width: 0; }
.stat-card .stat-label { color: var(--slate-500); font-size: 13.5px; font-weight: 500; }
.stat-card .stat-value { font-size: 28px; font-weight: 800; color: var(--navy); margin: 8px 0 4px; }
.stat-card .stat-sub { font-size: 12.5px; color: var(--slate-400); }
.stat-card .stat-icon {
    float: right; width: 42px; height: 42px; border-radius: 11px;
    background: var(--primary-050); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
}
.stat-card .stat-icon.green { background: var(--green-050); color: var(--green); }
.stat-card .stat-icon.amber { background: var(--amber-050); color: var(--amber); }
.stat-card .stat-icon.navy  { background: #e0e7ff; color: var(--primary-700); }

/* Grid utilities */
.grid { display: grid; gap: 20px; min-width: 0; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.grid-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.flow-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.flow-step {
    background: var(--surface);
    border: 1px solid var(--slate-200);
    border-radius: 20px;
    box-shadow: 0 14px 38px rgba(15, 23, 42, .06);
    padding: 22px 14px 18px;
    transition: transform .3s, border-color .3s, box-shadow .3s;
}
.flow-step:hover {
    transform: translateY(-8px);
    border-color: rgba(37, 99, 235, .45);
    box-shadow: 0 28px 58px rgba(15, 23, 42, .13);
}
.flow-step:hover .step-icon {
    transform: rotate(-7deg) scale(1.08);
    background: rgba(239, 131, 84, .16);
    color: #c45e36;
}
.card { max-width: 100%; border-radius: 18px; }
.work-card { overflow: hidden; padding: 0; border-radius: 22px; }
.work-card > img { width: 100%; height: 190px; object-fit: cover; display: block; }
.workshop-photo {
    width: 100%;
    height: 365px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 12px;
    background: var(--slate-100);
}
.check-line { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--slate-600); }
.photo-frame { border-radius: 28px; overflow: hidden; box-shadow: 0 24px 60px rgba(15, 23, 42, .16); }
.photo-frame img { width: 100%; height: min(420px, 70vw); object-fit: cover; display: block; }

/* ------------------------------------------------------------------ */
/* Tabs                                                               */
/* ------------------------------------------------------------------ */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--slate-200); margin-bottom: 24px; flex-wrap: wrap; }
.tabs a, .tabs button {
    padding: 12px 16px; font-size: 14.5px; font-weight: 600;
    color: var(--slate-500); border: none; background: none; cursor: pointer;
    border-bottom: 2px solid transparent; margin-bottom: -1px; font: inherit; font-weight: 600;
}
.tabs a:hover { color: var(--navy); text-decoration: none; }
.tabs a.active, .tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }

/* Segmented control (booking tabs) */
.segmented { display: inline-flex; background: var(--slate-100); border-radius: 10px; padding: 4px; gap: 2px; flex-wrap: wrap; border: 1px solid var(--slate-300); }
.segmented a, .segmented label {
    padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 600;
    color: var(--slate-600); text-align: center; cursor: pointer;
    border: 1px solid transparent;
}
.segmented a:hover, .segmented label:hover { color: var(--navy); text-decoration: none; }
.segmented a.active, .segmented label.active,
.segmented label:has(input:checked) { background: var(--surface); color: var(--primary); border-color: var(--primary); box-shadow: var(--shadow-sm); }
.role-picker {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.reg-types { display: flex; width: 100%; }
.reg-types label { flex: 1 1 0; min-width: 0; padding: 10px 8px; line-height: 1.25; }
fieldset.reg-panel { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
.reg-panel[hidden] { display: none !important; }
#role-customer:checked ~ .reg-type-field .reg-types label[for="role-customer"],
#role-workshop:checked ~ .reg-type-field .reg-types label[for="role-workshop"],
#role-company:checked ~ .reg-type-field .reg-types label[for="role-company"] {
    background: var(--surface); color: var(--primary); border-color: var(--primary); box-shadow: var(--shadow-sm);
}

/* ------------------------------------------------------------------ */
/* Timeline (case / booking status)                                   */
/* ------------------------------------------------------------------ */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 16px; position: relative; padding-bottom: 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .tl-marker {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--slate-200); color: var(--slate-500); z-index: 2;
}
.timeline li::before {
    content: ''; position: absolute; left: 14px; top: 30px; bottom: -4px;
    width: 2px; background: var(--slate-200);
}
.timeline li:last-child::before { display: none; }
.timeline li.done .tl-marker { background: var(--green); color: #fff; }
.timeline li.done::before { background: var(--green); }
.timeline li.current .tl-marker { background: var(--primary); color: #fff; box-shadow: 0 0 0 4px var(--primary-050); }
.timeline .tl-body { padding-top: 3px; }
.timeline .tl-title { font-weight: 600; color: var(--navy); font-size: 15px; }
.timeline .tl-meta { font-size: 13px; color: var(--slate-500); }

/* Horizontal step tracker */
.tracker { display: flex; align-items: flex-start; gap: 0; margin: 8px 0 6px; }
.tracker .tk { flex: 1; text-align: center; position: relative; }
.tracker .tk .tk-dot {
    width: 30px; height: 30px; border-radius: 50%; margin: 0 auto 8px;
    background: var(--slate-200); color: var(--slate-500);
    display: flex; align-items: center; justify-content: center; position: relative; z-index: 2;
}
.tracker .tk::before {
    content: ''; position: absolute; top: 14px; left: -50%; width: 100%; height: 2px;
    background: var(--slate-200); z-index: 1;
}
.tracker .tk:first-child::before { display: none; }
.tracker .tk.done .tk-dot { background: var(--green); color: #fff; }
.tracker .tk.done::before { background: var(--green); }
.tracker .tk.current .tk-dot { background: var(--primary); color: #fff; }
.tracker .tk.current::before { background: var(--green); }
.tracker .tk .tk-label { font-size: 12.5px; color: var(--slate-600); font-weight: 600; }

/* ------------------------------------------------------------------ */
/* Ratings                                                            */
/* ------------------------------------------------------------------ */
.stars { display: inline-flex; align-items: center; gap: 2px; color: #f59e0b; }
.stars .empty { color: var(--slate-300); }
.rating-line { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--slate-500); }
.star-picker { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-picker input {
    position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none;
}
.star-picker label { cursor: pointer; color: var(--slate-300); line-height: 0; }
.star-picker label svg { fill: none; }
.star-picker input:checked ~ label,
.star-picker label:hover,
.star-picker label:hover ~ label { color: #f59e0b; }
.star-picker input:checked ~ label svg,
.star-picker label:hover svg,
.star-picker label:hover ~ label svg { fill: currentColor; }
.star-picker input:focus-visible + label { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* Offer card */
.offer-card {
    border: 1px solid var(--slate-200); border-radius: var(--radius);
    padding: 18px; background: var(--surface); transition: border-color .15s, box-shadow .15s;
}
.offer-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.offer-card.best { border-color: var(--green); }
.price-lg { font-size: 24px; font-weight: 800; color: var(--navy); }

/* Photo grid / uploads */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.photo-thumb {
    aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden;
    border: 1px solid var(--slate-200); background: var(--slate-100); position: relative;
    cursor: zoom-in;
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lightbox {
    position: fixed; inset: 0; z-index: 200;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    padding: 24px; background: rgba(15, 23, 42, .88);
}
.lightbox[hidden] { display: none; }
body.lightbox-open { overflow: hidden; }
.lightbox-figure { margin: 0; max-width: min(1100px, calc(100vw - 140px)); max-height: calc(100vh - 48px); text-align: center; }
.lightbox-figure img {
    display: block; max-width: 100%; max-height: calc(100vh - 88px);
    width: auto; height: auto; object-fit: contain; border-radius: 12px;
    background: #0f172a; box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.lightbox-count { color: #e2e8f0; font-size: 14px; margin-top: 10px; }
.lightbox-close, .lightbox-nav {
    border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.lightbox-close {
    position: absolute; top: 16px; right: 16px;
    width: 42px; height: 42px; border-radius: 50%; font-size: 28px; line-height: 1;
}
.lightbox-nav {
    width: 46px; height: 46px; border-radius: 50%; font-size: 32px; line-height: 1; flex: 0 0 auto;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, .22); }
@media (max-width: 640px) {
    .lightbox { padding: 16px 8px; gap: 6px; }
    .lightbox-figure { max-width: calc(100vw - 108px); }
    .lightbox-nav { width: 38px; height: 38px; }
}
.upload-drop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    overflow: visible;
    border: 2px dashed var(--slate-300); border-radius: var(--radius);
    padding: 28px 20px 26px; text-align: center; color: var(--slate-500);
    cursor: pointer; transition: border-color .15s, background .15s;
}
input[type="file"].upload-input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    cursor: pointer;
    font-size: 0;
    -webkit-appearance: none;
    appearance: none;
}
.upload-drop:hover { border-color: var(--primary); background: var(--primary-050); }
.upload-drop .upload-glyph {
    display: block;
    width: 44px;
    height: 44px;
    margin: 0 auto 4px;
    flex: 0 0 44px;
    overflow: visible;
    color: var(--slate-400);
}
.icon { display: inline-block; vertical-align: middle; overflow: visible; flex-shrink: 0; }

/* Custom dropdown — same closed control and menu in every browser */
.custom-select { position: relative; width: 100%; }
.custom-select.is-auto { width: auto; display: inline-block; min-width: 200px; vertical-align: middle; }
.custom-select .custom-select-native {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    max-height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    background: none;
}
.custom-select-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    height: 48px;
    min-height: 48px;
    margin: 0;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    padding: 0 14px;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--slate-900);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s;
}
.custom-select.is-auto .custom-select-btn { width: auto; min-width: 200px; }
.custom-select-btn:hover { border-color: var(--slate-400); }
.custom-select-btn:focus,
.custom-select.is-open .custom-select-btn {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.custom-select-btn.is-invalid {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .15);
}
.custom-select-btn:disabled { opacity: .55; cursor: not-allowed; }
.custom-select-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.custom-select-label.is-placeholder { color: var(--slate-400); }
.custom-select-chevron {
    flex-shrink: 0;
    color: var(--slate-500);
    transition: transform .15s ease;
}
.custom-select.is-open .custom-select-chevron { transform: rotate(180deg); }
.custom-select-menu {
    position: absolute;
    z-index: 80;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    max-height: 280px;
    overflow-y: auto;
}
.custom-select.is-auto .custom-select-menu { right: auto; min-width: 100%; }
.custom-select-menu.is-up { top: auto; bottom: calc(100% + 4px); }
.custom-select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.35;
    color: var(--slate-900);
    cursor: pointer;
    margin-bottom: 4px;
}
.custom-select-option.is-active,
.custom-select-option:hover { background: var(--primary-050); color: var(--primary-700); }
.custom-select-option.is-selected { font-weight: 600; }
.custom-select-option.is-disabled { opacity: .45; cursor: not-allowed; }
.custom-select-option .opt-check { flex-shrink: 0; color: var(--primary); }
.upload-remove {
    position: absolute; top: 5px; right: 5px; width: 24px; height: 24px;
    border-radius: 50%; background: rgba(15,23,42,.7); color: #fff; border: none;
    cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px;
}

/* Flash messages */
.flash { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 14.5px; display: flex; gap: 10px; align-items: flex-start; }
.flash-success { background: var(--green-050); color: #166534; border: 1px solid #bbf7d0; }
.flash-error { background: var(--red-050); color: #991b1b; border: 1px solid #fecaca; }
.flash-info { background: var(--primary-050); color: var(--primary-700); border: 1px solid #bfdbfe; }

/* Payment method radios */
.pay-methods { display: grid; gap: 12px; }
.pay-method {
    display: flex; align-items: center; gap: 14px;
    border: 2px solid var(--slate-200); border-radius: var(--radius);
    padding: 16px 18px; cursor: pointer; transition: border-color .15s, background .15s;
}
.pay-method:hover { border-color: var(--slate-300); }
.pay-method.selected { border-color: var(--primary); background: var(--primary-050); }
.pay-method .pm-icon { width: 40px; height: 40px; border-radius: 9px; background: var(--slate-100); display: flex; align-items: center; justify-content: center; color: var(--navy); }

/* Misc utilities */
.muted { color: var(--slate-500); }
a.map-link, a.tel-link { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
a.map-link:hover, a.tel-link:hover { color: var(--primary-700); }
.small { font-size: 13px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; }
.flex-wrap { flex-wrap: wrap; }
.font-bold { font-weight: 700; } .font-semibold { font-weight: 600; }
.w-full { width: 100%; }
.divide > * + * { border-top: 1px solid var(--slate-100); padding-top: 16px; margin-top: 16px; }
.list-reset { list-style: none; margin: 0; padding: 0; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 14.5px; }
.kv .k { color: var(--slate-500); }
.kv .v { font-weight: 600; color: var(--navy); text-align: right; }
.empty-state { text-align: center; padding: 56px 24px; color: var(--slate-500); }
.empty-state .es-icon { width: 60px; height: 60px; border-radius: 16px; background: var(--slate-100); color: var(--slate-400); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }

/* SVG line chart + donut */
.chart-svg { width: 100%; height: auto; display: block; }
.legend { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.legend .lg-item { display: flex; align-items: center; gap: 8px; }
.legend .lg-dot { width: 11px; height: 11px; border-radius: 3px; }

/* Car thumb */
.car-thumb { width: 64px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--slate-100); border: 1px solid var(--slate-200); flex: none; }

.summary-list { display: grid; gap: 14px; }
.summary-card-top { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.summary-card-top > div { min-width: 0; }
.summary-card-price {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--navy);
    margin: 18px 0 12px;
}
.summary-card-badges, .summary-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.summary-card-badges { margin-bottom: 14px; }
.case-cards { display: none; }

/* Auth dialog over the public site (Mekonomen-style). */
body:has(.auth-scrim) { overflow: hidden; }
.auth-scrim {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(15, 23, 42, .62);
    display: flex; justify-content: center; align-items: flex-start;
    overflow: auto; padding: 48px 16px;
}
.auth-dialog {
    width: min(440px, 100%);
    background: var(--surface);
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .35);
    margin: auto;
    max-height: calc(100vh - 48px);
    display: flex; flex-direction: column;
    overflow: hidden;
}
.auth-dialog-wide { width: min(560px, 100%); }
.auth-dialog-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
    padding: 22px 22px 0;
}
.auth-dialog-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.auth-dialog-head h1 { font-size: 26px; margin: 4px 0 0; }
.auth-dialog-body { overflow: auto; padding: 8px 22px 22px; }
.auth-lead { color: var(--slate-500); font-size: 14.5px; margin: 8px 0 0; }
.auth-close {
    width: 36px; height: 36px; border-radius: 8px; flex: none;
    display: flex; align-items: center; justify-content: center;
    color: var(--slate-500);
}
.auth-close:hover { background: var(--slate-100); color: var(--navy); text-decoration: none; }
.auth-switch { text-align: center; color: var(--slate-600); font-size: 14.5px; margin: 18px 0 0; }
.auth-legal { text-align: center; color: var(--slate-500); font-size: 13px; line-height: 1.5; margin: 14px 0 0; }
.auth-demo {
    margin-top: 16px; padding: 12px 14px; border-radius: 10px;
    background: var(--slate-50); border: 1px solid var(--slate-200);
}
.auth-dialog .input {
    background: var(--slate-100);
    border-color: transparent;
    border-radius: 10px;
}
.auth-dialog .input:focus {
    background: var(--surface);
    border-color: var(--slate-300);
}
.auth-dialog .input.is-invalid,
.auth-dialog .input:user-invalid {
    background: var(--red-050);
    border-color: var(--red);
}
.auth-dialog .label { font-size: 13px; font-weight: 600; color: var(--slate-600); }

/* Sidebar overlay for mobile */
.sidebar-overlay { display: none; }

/* ------------------------------------------------------------------ */
/* Responsive                                                         */
/* ------------------------------------------------------------------ */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 30px; padding: 96px 0 64px; }
    .hero-photo img { height: 260px; }
    .hero h1 { font-size: 36px; }
    .stat-grid, .stat-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-2, .grid-3, .grid-2-1, .grid-1-2, .feature-grid { grid-template-columns: minmax(0, 1fr); }
    .flow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
    .nav-links, .hide-mobile, .user-chip .user-name, .user-chip .user-caret { display: none; }
    .nav-user { background: transparent; border: 0; padding: 0; }
    .nav-user:hover { background: transparent; }
    .nav-user-name { display: none; }
    .nav-user .nav-user-mark { display: flex; }
    .nav-toggle { display: inline-flex; }

    .sidebar { transform: translateX(-100%); transition: transform .25s ease; }
    .sidebar.open { transform: translateX(0); }
    .main-area { margin-left: 0; width: 100%; }
    .topbar { height: auto; min-height: 58px; padding: 10px 12px; gap: 8px; }
    .topbar h1 { font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .page { padding: 16px; }
    .app-footer { padding: 14px 16px 18px; }
    .stat-grid, .stat-grid-3 { grid-template-columns: minmax(0, 1fr); }
    .kv { flex-wrap: wrap; }
    .kv .v { text-align: left; }
    .segmented { display: flex; max-width: 100%; }
    .card, .grid > * { min-width: 0; }
    .card-head, .card-body { padding-left: 16px; padding-right: 16px; }
    .table th, .table td { padding: 10px 12px; }
    .period-picker {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        justify-content: stretch;
    }
    .period-picker .custom-select,
    .period-picker .custom-select.is-auto,
    .period-picker .custom-select.is-auto .custom-select-btn {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
    .table-stack { min-width: 0; }
    .table-stack thead { display: none; }
    .table-stack,
    .table-stack tbody,
    .table-stack tr,
    .table-stack td { display: block; width: auto; }
    .table-stack tr { padding: 12px 16px; border-bottom: 1px solid var(--slate-100); }
    .table-stack tr:last-child { border-bottom: none; }
    .table-stack td {
        display: grid;
        grid-template-columns: minmax(92px, 38%) minmax(0, 1fr);
        gap: 8px;
        align-items: start;
        padding: 4px 0;
        border: 0;
        text-align: left;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .table-stack td[data-label]::before {
        content: attr(data-label);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: .04em;
        text-transform: uppercase;
        color: var(--slate-500);
    }
    .table-stack td:not([data-label]),
    .table-stack td[colspan] {
        grid-template-columns: minmax(0, 1fr);
    }
    .table-stack td:not([data-label])::before,
    .table-stack td[colspan]::before { content: none; }
    .table-stack td .flex { flex-wrap: wrap; }
    .table-stack input,
    .table-stack .custom-select,
    .table-stack .custom-select-btn { max-width: 100%; min-width: 0; }
    .case-table { display: none; }
    .case-cards { display: flex; flex-direction: column; gap: 12px; padding: 12px; }
    .sidebar-overlay.show { display: block; position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 45; }
    .topbar .menu-btn { display: inline-flex; }

    .steps { grid-template-columns: 1fr; margin-top: 24px; }
    .hero { }
}

@media (min-width: 821px) {
    .topbar .menu-btn { display: none; }
}

@media (max-width: 560px) {
    .flow-steps { grid-template-columns: minmax(0, 1fr); }
    .hero h1 { font-size: 30px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-meta { display: block; margin: 6px 0 0; }
    .footer-legal { margin-left: 0; justify-content: flex-end; width: 100%; }
    .page { padding: 18px; }
    .section { padding: 48px 0; }
    .cta-band { padding: 48px 18px; }
    .cta-form { flex-direction: column; width: min(100%, 360px); }
    .cta-form .reg-input, .cta-go { width: 100%; }
}

/* Mobile nav drops out of the header bar. It is not a separate window. */
.mobile-menu { display: none; }
@media (max-width: 820px) {
    .mobile-menu.is-open {
        display: grid;
        gap: 4px;
        position: absolute;
        top: 100%;
        left: 16px;
        right: 16px;
        z-index: 80;
        padding: 18px;
        border: 1px solid var(--slate-200);
        border-radius: 20px;
        background: var(--surface);
        box-shadow: var(--shadow-lg);
        margin-top: 15px;
    }
    .mobile-menu-link {
        display: block;
        padding: 14px 12px;
        color: var(--navy);
        font-weight: 700;
        font-size: 16px;
    }
    .mobile-menu-link:hover { text-decoration: none; color: var(--primary); }
    .mobile-menu-cta {
        width: 100%;
        margin-top: 8px;
        border-radius: 999px;
        min-height: 48px;
    }
    .mobile-menu-cta:hover { transform: none; }
}

.topbar-home {
    flex: none;
    height: 40px;
    padding: 0 14px;
    border-radius: 30px;
    border: 1px solid var(--slate-200);
    background: var(--surface);
    color: var(--slate-700);
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    white-space: nowrap;
}
.topbar-home:hover { background: var(--slate-50); color: var(--navy); text-decoration: none; }
.theme-toggle {
    width: 40px; height: 40px; border-radius: 30px; padding: 0; flex: none;
    border: 1px solid var(--slate-200); background: var(--surface);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--slate-600);
}
.theme-toggle:hover { background: var(--slate-50); }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: inline-flex; }
html[data-theme="dark"] .badge-green { color: #86efac; }
html[data-theme="dark"] .badge-amber { color: #fcd34d; }
html[data-theme="dark"] .badge-red { color: #fca5a5; }
html[data-theme="dark"] .flash-success { color: #86efac; border-color: #166534; }
html[data-theme="dark"] .flash-error { color: #fca5a5; border-color: #7f1d1d; }
html[data-theme="dark"] .flash-info { border-color: #1e3a8a; }
html[data-theme="dark"] .btn-danger { border-color: #7f1d1d; }
html[data-theme="dark"] .stat-card .stat-icon.navy { background: rgba(37, 99, 235, .22); }

/* ------------------------------------------------------------------ */
/* Homepage photo slider                                              */
/* ------------------------------------------------------------------ */
.hero-slider {
    min-height: 70svh;
    background: #07111f;
    display: flex;
    align-items: center;
}
.hero-slider::before { display: none; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 0;
    transition: opacity .95s ease;
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide.is-leaving { opacity: 1; z-index: 0; }
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.14);
    transform-origin: center center;
}
.hero-slide.is-active img,
.hero-slide.is-leaving img {
    animation: hero-zoom 8s linear forwards;
}
@keyframes hero-zoom {
    from { transform: scale(1); }
    to { transform: scale(1.14); }
}
.hero-shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(6, 14, 32, .62) 0%, rgba(6, 14, 32, .48) 42%, rgba(6, 14, 32, .66) 100%);
    pointer-events: none;
}
.hero-slider .hero-copy {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 128px 24px 108px;
}
.hero-copy::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 42%;
    width: min(920px, 100%);
    height: 78%;
    transform: translate(-50%, -46%);
    background: radial-gradient(ellipse at center, rgba(4, 10, 24, .35), transparent 70%);
    pointer-events: none;
}
.hero-slider .eyebrow,
.hero-slider h1,
.hero-slider .lead,
.hero-slider .hero-features,
.hero-slider .label {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
}
.hero-slider .eyebrow {
    color: #ffe566;
    letter-spacing: .18em;
    line-height: 1.5;
}
.hero-slider h1 {
    font-size: clamp(44px, 6.2vw, 80px);
    font-weight: 800;
    line-height: .98;
    letter-spacing: -.03em;
    max-width: 14ch;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
}
.hero-slider .lead {
    margin-left: auto;
    margin-right: auto;
    color: #fff;
    font-weight: 500;
}
.hero-slider .label {
    color: #fff;
    font-weight: 600;
    display: block;
    text-align: center;
}
.hero-form {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
    flex-wrap: wrap;
}
.hero-slider .reg-input {
    width: min(260px, 100%);
    border-color: transparent;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
}
.hero-slider .hero-features {
    justify-content: center;
    color: #fff;
    font-weight: 600;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
.hero-slider .hero-features .check { color: #86efac; }
.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .45);
    background: rgba(7, 17, 31, .28);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: rgba(7, 17, 31, .55); }
.hero-prev { left: 28px; display: none; }
.hero-next { right: 28px; display: none; }
.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 4;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
}
.hero-dot.is-active { width: 28px; background: #f5c451; }
.hero-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.hero-slider + .container .steps { margin-top: 58px; }

@media (max-width: 820px) {
    .hero-slider h1 { font-size: 36px; max-width: 12em; }
    .hero-copy { padding: 108px 20px 96px; }
    .hero-arrow { display: none; }
    .hero-form .btn { width: min(260px, 100%); }
    .faq-card p {margin: 10px 0 0 0px;}    
}
@media (max-width: 560px) {
    .hero-slider h1 { font-size: 32px; }
    .hero-features { gap: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-slide.is-active img,
    .hero-slide.is-leaving img { animation: none; transition: none; }
    .hero-slide img { transform: none; }
}

/* Public skada quote: damage, car, then account details. */
.quote-wrap { max-width: 760px; margin: 0 auto; }
.quote-back { width: fit-content; margin-bottom: 18px; }
.quote-intro { text-align: center; margin: 0 auto 28px; max-width: 560px; }
.quote-intro h1 { font-size: 34px; margin: 0 0 10px; letter-spacing: -0.03em; }
.quote-intro p { margin: 0; font-size: 16px; }
.quote-card { margin-bottom: 16px; }
.quote-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.quote-head h2 { margin: 0 0 2px; font-size: 18px; }
.quote-head p { margin: 0; }
.quote-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    flex: none;
}
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--slate-200);
    background: var(--surface);
    border-radius: 999px;
    padding: 9px 14px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: var(--slate-700);
}
.choice-pill input { position: absolute; opacity: 0; pointer-events: none; }
.choice-pill:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-050);
    color: var(--primary-700);
}
.choice-pill:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.quote-consent { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.quote-news {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    color: var(--slate-600);
    font-size: 14.5px;
    line-height: 1.45;
    cursor: pointer;
}
.quote-news input { margin-top: 2px; }
.quote-legal { margin: 0; color: var(--slate-600); font-size: 14.5px; line-height: 1.5; }
.quote-legal a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.quote-secure {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--green);
    font-weight: 600;
    font-size: 14.5px;
}


@media (max-width: 640px) {
    .quote-intro h1 { font-size: 28px; }
    .quote-page .grid-3 { grid-template-columns: 1fr; }
    .workshop-photo {height: 225px;}
}
