/* ═══════════════════════════════════════════════════════════
   ÄLGLÖSA BJÖRNEN — Designsystem
   Mörkt, rått, högkontrast. Skarpa hörn, tunna linjer, grovt raster.
   ═══════════════════════════════════════════════════════════ */

:root {
    /* Färg */
    --ink: #0b0b0b;
    --ink-2: #111110;
    --ink-3: #171715;
    --paper: #f3efe7;
    --paper-dim: #a8a49c;
    --paper-faint: #6d6a64;
    --accent: #d7431b;
    --accent-hot: #f0521f;
    --line: rgba(243, 239, 231, 0.14);
    --line-strong: rgba(243, 239, 231, 0.28);

    /* Typografi */
    --font-display: 'Archivo Black', 'Arial Black', -apple-system, sans-serif;
    --font-body: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Mått */
    --wrap: 1240px;
    --gutter: 40px;
    --section-y: 128px;
    --header-h: 76px;

    /* Rörelse */
    --t-fast: 160ms cubic-bezier(0.2, 0, 0, 1);
    --t-base: 280ms cubic-bezier(0.2, 0, 0, 1);
    --t-slow: 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Reset ─── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.65;
    color: var(--paper);
    background: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

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

ul,
ol {
    list-style: none;
}

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

:focus-visible {
    outline: 2px solid var(--accent-hot);
    outline-offset: 3px;
}

/* ─── Rasterlager (grain) ─── */
/* Håll lagret exakt viewport-stort och utan blend-mode — allt annat
   tvingar kompositorn att rita om hela sidan vid varje scroll. */
.grain {
    position: fixed;
    inset: 0;
    z-index: 900;
    pointer-events: none;
    opacity: 0.13;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── Typografi ─── */
h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
    line-height: 0.92;
    letter-spacing: -0.015em;
}

.kicker {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--paper-dim);
    margin-bottom: 30px;
}

.lead {
    font-size: 21px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--paper);
    margin-bottom: 18px;
}

p {
    color: var(--paper-dim);
}

/* ─── Layout ─── */
.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section {
    padding: var(--section-y) 0;
    position: relative;
}

.section-alt {
    background: var(--ink-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-head {
    max-width: 720px;
    margin-bottom: 64px;
}

.section-head h2 {
    font-size: clamp(34px, 5.2vw, 68px);
    margin-bottom: 22px;
}

.section-head .lead {
    margin-bottom: 0;
}

/* ─── Reveal ─── */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity var(--t-slow), transform var(--t-slow);
    transition-delay: calc(var(--delay, 0) * 90ms);
}

.reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .ticker-track,
    .hero-scroll svg {
        animation: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   KNAPPAR
   ═══════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 15px 26px;
    border: 1px solid transparent;
    border-radius: 0;
    white-space: nowrap;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}

.btn-accent {
    background: var(--accent);
    color: #fff;
}

.btn-accent:hover {
    background: var(--accent-hot);
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--line-strong);
    color: var(--paper);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-ghost {
    color: var(--paper);
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(3px);
}

.btn-ghost:hover {
    background: rgba(243, 239, 231, 0.12);
    border-color: var(--paper);
}

.btn-lg {
    padding: 18px 32px;
    font-size: 15px;
}

.btn-sm {
    padding: 11px 18px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
}

.btn-arrow {
    width: 16px;
    height: 16px;
    transition: transform var(--t-fast);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 800;
    transition: background var(--t-base), border-color var(--t-base);
    border-bottom: 1px solid transparent;
}

.site-header.is-stuck {
    background: rgba(11, 11, 11, 0.96);
    border-bottom-color: var(--line);
}

.header-inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 32px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-mark {
    height: 42px;
    width: auto;
}

.brand-word {
    height: 11px;
    width: auto;
}

.header-nav {
    display: flex;
    gap: 30px;
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.header-nav a {
    color: var(--paper-dim);
    padding: 6px 0;
    border-bottom: 1px solid transparent;
    transition: color var(--t-fast), border-color var(--t-fast);
}

.header-nav a:hover {
    color: var(--paper);
    border-bottom-color: var(--accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-phone {
    font-size: 14px;
    font-weight: 600;
    color: var(--paper);
    white-space: nowrap;
    transition: color var(--t-fast);
}

.header-phone:hover {
    color: var(--accent);
}

/* ─── Hamburger ─── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    margin-left: auto;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--paper);
    transition: transform var(--t-base), opacity var(--t-base);
}

.hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 12px var(--gutter) 28px;
    background: var(--ink);
    border-top: 1px solid var(--line);
}

.mobile-menu:not([hidden]) {
    display: flex;
}

.mobile-menu a {
    font-family: var(--font-display);
    font-size: 22px;
    text-transform: uppercase;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.mobile-menu .mobile-phone {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
    border-bottom: none;
    padding-top: 18px;
}

.mobile-menu .btn {
    margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: #000;
}

.hero-bg video,
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.35) contrast(1.12) brightness(0.72);
}

.hero-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(11, 11, 11, 0.82) 0%, rgba(11, 11, 11, 0.28) 34%, rgba(11, 11, 11, 0.94) 100%),
        radial-gradient(120% 90% at 12% 88%, rgba(11, 11, 11, 0.85) 0%, transparent 62%);
}

.hero-content {
    position: relative;
    max-width: var(--wrap);
    width: 100%;
    margin: 0 auto;
    padding: calc(var(--header-h) + 64px) var(--gutter) 116px;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.6);
}

.hero .kicker {
    color: var(--paper);
    opacity: 0.9;
    margin-bottom: 34px;
}

.hero-title {
    font-size: clamp(56px, 12.5vw, 168px);
    line-height: 0.82;
    letter-spacing: -0.035em;
    margin-bottom: 26px;
}

.hero-slogan {
    font-family: var(--font-body);
    font-size: clamp(19px, 2.4vw, 27px);
    font-weight: 600;
    line-height: 1.3;
    color: var(--paper);
    max-width: 620px;
    margin-bottom: 14px;
}

.hero-text {
    font-size: 17px;
    line-height: 1.65;
    color: var(--paper-dim);
    max-width: 500px;
    margin-bottom: 34px;
}

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

.hero-scroll {
    position: absolute;
    right: var(--gutter);
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--paper-faint);
}

.hero-scroll svg {
    width: 18px;
    height: 18px;
    animation: nudge 2.2s ease-in-out infinite;
}

@keyframes nudge {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    50% {
        transform: translateY(6px);
        opacity: 1;
    }
}

/* ═══════════════════════════════════════════════════════════
   TICKER
   ═══════════════════════════════════════════════════════════ */
.ticker {
    background: var(--accent);
    color: #0b0b0b;
    overflow: hidden;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.ticker-track {
    display: flex;
    align-items: center;
    gap: 22px;
    width: max-content;
    animation: slide 42s linear infinite;
}

.ticker-track span {
    font-family: var(--font-display);
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.ticker-track i {
    font-size: 7px;
    font-style: normal;
    opacity: 0.6;
}

@keyframes slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-33.333%);
    }
}

/* ═══════════════════════════════════════════════════════════
   ZIGZAG
   ═══════════════════════════════════════════════════════════ */
.zigzag {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 76px;
    align-items: center;
}

.zigzag-reverse .zigzag-body {
    order: -1;
}

.zigzag-media {
    position: relative;
}

.zigzag-media::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid var(--line);
    pointer-events: none;
}

.zigzag-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    filter: grayscale(0.28) contrast(1.06) saturate(0.9);
    transition: filter var(--t-slow);
}

.zigzag-media:hover img {
    filter: none;
}

.zigzag-body h2 {
    font-size: clamp(30px, 3.6vw, 48px);
    margin-bottom: 24px;
}

.zigzag-body p+p {
    margin-top: 14px;
}

.zigzag-body .btn {
    margin-top: 30px;
}

/* ─── Fakta ─── */
.facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 38px;
    border-top: 1px solid var(--line);
}

.facts li {
    padding: 20px 16px 20px 0;
    border-right: 1px solid var(--line);
    min-width: 0;
}

.facts li:last-child {
    border-right: none;
}

.facts li:not(:first-child) {
    padding-left: 20px;
}

.facts strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(18px, 1.9vw, 26px);
    font-weight: 400;
    color: var(--paper);
    line-height: 1;
    margin-bottom: 7px;
    white-space: nowrap;
}

.facts span {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--paper-faint);
}

/* ═══════════════════════════════════════════════════════════
   KORT
   ═══════════════════════════════════════════════════════════ */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.card {
    border: 1px solid var(--line);
    background: var(--ink-3);
    transition: border-color var(--t-base), transform var(--t-base);
}

.card:hover {
    border-color: var(--line-strong);
    transform: translateY(-4px);
}

.card-media {
    position: relative;
    overflow: hidden;
}

.card-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    filter: grayscale(0.32) contrast(1.08) saturate(0.85);
    transition: filter var(--t-slow), transform var(--t-slow);
}

.card:hover .card-media img {
    filter: none;
    transform: scale(1.035);
}

.card-tag {
    position: absolute;
    left: 0;
    bottom: 0;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    padding: 7px 13px;
}

.card-body {
    padding: 28px 26px 32px;
}

.card-body h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.card-body p {
    font-size: 16px;
}

/* ─── Bred block ─── */
.wide-block {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 0;
    margin-top: 28px;
    border: 1px solid var(--line);
    background: var(--ink-3);
}

.wide-media {
    overflow: hidden;
}

.wide-media img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    filter: grayscale(0.3) contrast(1.06) saturate(0.88);
    transition: filter var(--t-slow);
}

.wide-block:hover .wide-media img {
    filter: none;
}

.wide-body {
    padding: 52px 48px;
    align-self: center;
}

.wide-body h3 {
    font-size: clamp(28px, 3vw, 40px);
    margin-bottom: 18px;
}

.wide-body .btn {
    margin-top: 28px;
}

/* ═══════════════════════════════════════════════════════════
   STEG
   ═══════════════════════════════════════════════════════════ */
.section-steps {
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.steps-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.steps-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.15) brightness(0.32);
}

.steps-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 11, 11, 0.9), rgba(11, 11, 11, 0.72));
}

.section-steps .wrap {
    position: relative;
    z-index: 1;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--line-strong);
}

.step {
    padding: 42px 34px 46px 0;
    border-right: 1px solid var(--line);
}

.step:not(:first-child) {
    padding-left: 34px;
}

.step:last-child {
    border-right: none;
}

.step-num {
    display: block;
    font-family: var(--font-display);
    font-size: 56px;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 22px;
}

.step h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.step p {
    font-size: 16px;
}

/* ═══════════════════════════════════════════════════════════
   PRIS
   ═══════════════════════════════════════════════════════════ */
.section-price {
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
}

.price-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.price-figure {
    font-family: var(--font-display);
    font-size: clamp(72px, 13vw, 168px);
    line-height: 0.82;
    color: var(--paper);
    text-transform: uppercase;
    letter-spacing: -0.04em;
}

.price-figure span {
    color: var(--accent);
}

.price-note {
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--paper-faint);
    margin-top: 20px;
}

.price-right p {
    font-size: 19px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* ═══════════════════════════════════════════════════════════
   BANNER
   ═══════════════════════════════════════════════════════════ */
.banner {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
    filter: grayscale(0.6) contrast(1.1) brightness(0.5);
}

.banner-overlay {
    position: relative;
    text-align: center;
    padding: 96px var(--gutter);
}

.banner-text {
    font-family: var(--font-display);
    font-size: clamp(32px, 5.4vw, 66px);
    line-height: 0.94;
    text-transform: uppercase;
    color: var(--paper);
    letter-spacing: -0.02em;
    margin-bottom: 34px;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
}

/* ═══════════════════════════════════════════════════════════
   KONTAKTLISTA
   ═══════════════════════════════════════════════════════════ */
.contact-list {
    margin-top: 30px;
    border-top: 1px solid var(--line);
}

.contact-list li {
    display: flex;
    align-items: baseline;
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.contact-label {
    flex: 0 0 92px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--paper-faint);
}

.contact-list a,
.contact-list li>span:last-child {
    font-size: 19px;
    font-weight: 600;
    color: var(--paper);
    transition: color var(--t-fast);
}

.contact-list a:hover {
    color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--ink);
    padding: 84px 0 32px;
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 64px;
    align-items: start;
}

.footer-brand img {
    width: 190px;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 11px;
    font-size: 15px;
}

.footer-col a,
.footer-col span {
    color: var(--paper-dim);
    transition: color var(--t-fast);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--paper);
    margin-bottom: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 72px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--paper-faint);
}

/* ═══════════════════════════════════════════════════════════
   FORMULÄR (modal)
   ═══════════════════════════════════════════════════════════ */
/* OBS: ingen `display` här — annars slår regeln ut [hidden] och den
   osynliga panelen lägger sig som ett lock över hela sidan. */
.form-panel {
    position: fixed;
    inset: 0;
    z-index: 950;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity var(--t-base);
}

.form-panel:not([hidden]) {
    display: flex;
}

/* Släpp igenom klick och scroll medan panelen tonar ut */
.form-panel:not(.is-open) {
    pointer-events: none;
}

.form-panel.is-open {
    opacity: 1;
}

.form-inner {
    width: 100%;
    max-width: 720px;
    max-height: 92vh;
    overflow-y: auto;
    background: var(--ink-2);
    border: 1px solid var(--line-strong);
    padding: 44px 44px 40px;
    transform: translateY(20px);
    transition: transform var(--t-slow);
}

.form-panel.is-open .form-inner {
    transform: none;
}

.form-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
}

.form-head h2 {
    font-size: 34px;
}

.form-close {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    flex-shrink: 0;
    transition: border-color var(--t-fast), color var(--t-fast);
}

.form-close:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.form-close svg {
    width: 18px;
    height: 18px;
}

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

.field-full {
    grid-column: 1 / -1;
}

.field label,
.field legend {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--paper-dim);
    margin-bottom: 9px;
}

.req {
    color: var(--accent);
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field textarea,
.date-trigger {
    width: 100%;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--paper);
    background: var(--ink);
    border: 1px solid var(--line);
    padding: 14px 15px;
    transition: border-color var(--t-fast), background var(--t-fast);
    outline: none;
    border-radius: 0;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--paper-faint);
}

.field input:focus,
.field textarea:focus,
.date-trigger:focus-visible {
    border-color: var(--accent);
}

.field input[aria-invalid="true"] {
    border-color: var(--accent-hot);
}

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

fieldset {
    border: none;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.chip span {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--paper-dim);
    border: 1px solid var(--line);
    padding: 10px 16px;
    cursor: pointer;
    transition: all var(--t-fast);
}

.chip input:checked+span {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.chip input:focus-visible+span {
    outline: 2px solid var(--accent-hot);
    outline-offset: 2px;
}

.date-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    color: var(--paper-faint);
    cursor: pointer;
}

.date-trigger.has-value {
    color: var(--paper);
}

.date-trigger svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    opacity: 0.6;
}

.form-error {
    margin-top: 20px;
    padding: 12px 14px;
    border-left: 3px solid var(--accent-hot);
    background: rgba(240, 82, 31, 0.1);
    color: var(--paper);
    font-size: 15px;
}

.btn-submit {
    width: 100%;
    margin-top: 26px;
    padding: 18px;
    font-size: 15px;
}

.form-fine {
    margin-top: 14px;
    font-size: 13px;
    color: var(--paper-faint);
    text-align: center;
}

.form-success {
    text-align: center;
    padding: 48px 12px 32px;
    color: var(--accent);
}

.form-success svg {
    width: 56px;
    height: 56px;
    margin: 0 auto 24px;
}

.form-success h3 {
    font-size: 28px;
    color: var(--paper);
    margin-bottom: 10px;
}

.form-success p {
    color: var(--paper-dim);
}

/* ═══════════════════════════════════════════════════════════
   DATUMVÄLJARE
   ═══════════════════════════════════════════════════════════ */
.dp-backdrop {
    position: fixed;
    inset: 0;
    z-index: 960;
    background: rgba(0, 0, 0, 0.55);
}

.dp {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 970;
    width: min(400px, calc(100vw - 32px));
    background: var(--ink-2);
    border: 1px solid var(--line-strong);
    padding: 22px;
}

.dp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.dp-title {
    font-family: var(--font-display);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dp-nav {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    transition: border-color var(--t-fast), color var(--t-fast);
}

.dp-nav:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
}

.dp-nav:disabled {
    opacity: 0.3;
    cursor: default;
}

.dp-nav svg {
    width: 15px;
    height: 15px;
}

.dp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.dp-dow {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--paper-faint);
    text-align: center;
    padding-bottom: 8px;
}

.dp-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--paper);
    border: 1px solid transparent;
    transition: background var(--t-fast), border-color var(--t-fast);
}

.dp-day:hover:not(:disabled) {
    border-color: var(--line-strong);
}

.dp-day:disabled {
    color: var(--paper-faint);
    opacity: 0.35;
    cursor: default;
}

.dp-day.is-today {
    border-color: var(--line-strong);
}

.dp-day.is-selected {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 700;
}

.dp-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.dp-clear {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--paper-dim);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dp-clear:hover {
    color: var(--accent);
}

body.is-locked {
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVT — surfplatta
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
    :root {
        --section-y: 90px;
        --gutter: 28px;
    }

    .header-nav {
        display: none;
    }

    .header-actions {
        margin-left: auto;
    }

    .zigzag {
        gap: 44px;
    }

    .cards {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .wide-block {
        grid-template-columns: 1fr;
    }

    .wide-body {
        padding: 38px 30px 42px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 42px;
    }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVT — mobil
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 720px) {
    :root {
        --section-y: 72px;
        --gutter: 20px;
        --header-h: 66px;
    }

    body {
        font-size: 16px;
    }

    .header-phone {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .brand-mark {
        height: 36px;
    }

    .brand-word {
        height: 9px;
    }

    .hero {
        min-height: 92svh;
    }

    .hero-content {
        padding-top: calc(var(--header-h) + 40px);
        padding-bottom: 84px;
    }

    .hero-actions .btn {
        flex: 1 1 100%;
    }

    .hero-scroll {
        display: none;
    }

    .section-head {
        margin-bottom: 40px;
    }

    .zigzag,
    .price-wrap {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .zigzag-reverse .zigzag-body {
        order: 0;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .step {
        padding: 30px 0 32px !important;
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .step:last-child {
        border-bottom: none;
    }

    .step-num {
        font-size: 42px;
        margin-bottom: 14px;
    }

    .facts li {
        padding: 16px 10px 16px 0;
    }

    .facts li:not(:first-child) {
        padding-left: 12px;
    }

    .facts strong {
        font-size: 17px;
    }

    .facts span {
        font-size: 10px;
        letter-spacing: 0.1em;
    }

    .banner {
        min-height: 380px;
    }

    .footer-cols {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-brand img {
        width: 150px;
    }

    .footer-bottom {
        margin-top: 48px;
    }

    /* Formulär → helskärm */
    .form-panel {
        padding: 0;
        align-items: stretch;
    }

    .form-inner {
        max-width: 100%;
        max-height: 100%;
        height: 100%;
        border: none;
        padding: 26px 20px 40px;
    }

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

    .form-head h2 {
        font-size: 26px;
    }
}
