/* ==========================================================================
Ash VVS & Montering – stilmall
Färger anges som "r, g, b" så de kan användas med rgb()/rgba().
Byt --primary-color / --accent-color för att ändra sajtens färger.
========================================================================== */
:root {
    --primary-color: 25, 36, 55;          /* #192437 mörkblå */
    --primary-dark-color: 15, 23, 38;     /* #0f1726 */
    --accent-color: 1, 64, 169;           /* #0140a9 blå (logotypens färg) */
    --accent-dark-color: 1, 48, 128;      /* #013080 */
    --accent-light-color: 96, 156, 255;   /* #609cff – blå på mörk bakgrund */
    --gray-dark-color: 71, 80, 96;
    --gray-color: 134, 142, 156;
    --gray-light-color: 244, 246, 249;
    --line-color: 226, 230, 236;
    --white-color: 255, 255, 255;

    --header-height: 7.6rem;
    --container: 120rem;
    --section-padding: clamp(6rem, 9vw, 11rem);
    --radius: 1.4rem;
    --radius-small: .8rem;
    --shadow: 0 1.2rem 3.2rem rgba(var(--primary-dark-color), .10);
    --shadow-hover: 0 2rem 4.4rem rgba(var(--primary-dark-color), .16);
    --font: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

/* ==========================================================================
Grund
========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: clamp(1.5rem, 1.4rem + .25vw, 1.7rem);
    line-height: 1.7;
    color: rgb(var(--gray-dark-color));
    background: rgb(var(--white-color));
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Diskret, suddig VVS-bakgrund bakom hela sidan */
body::before {
    content: '';
    position: fixed;
    inset: -2rem;
    z-index: -1;
    background: url('/assets/images/bg-pattern.svg') 0 0 / 52rem 52rem repeat;
    filter: blur(2.5px);
    opacity: .1;
    pointer-events: none;
}

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

h1, h2, h3, h4 {
    margin: 0 0 .5em;
    color: rgb(var(--primary-color));
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.02em;
}
/* Rubriker skalar mjukt med skärmbredden (mobil → desktop) */
h1 { font-size: clamp(2.7rem, 1.6rem + 3.2vw, 5.8rem); }
h2 { font-size: clamp(2.2rem, 1.5rem + 1.9vw, 4.2rem); }
h3 { font-size: clamp(1.7rem, 1.5rem + .4vw, 2.1rem); letter-spacing: -.01em; }
p  { margin: 0 0 1em; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2.4rem;
}

.visually-hidden, .hidden-field {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 1rem; top: -10rem;
    z-index: 200;
    padding: 1rem 1.6rem;
    background: rgb(var(--accent-color));
    color: rgb(var(--white-color));
    border-radius: var(--radius-small);
    font-weight: 600;
}
.skip-link:focus { top: 1rem; }

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

.icon {
    width: 1.2em; height: 1.2em;
    flex: none;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ==========================================================================
Knappar
========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    padding: 1.4rem 2.6rem;
    border: 2px solid transparent;
    border-radius: 99rem;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: rgb(var(--accent-color)); color: rgb(var(--white-color)); }
.btn-primary:hover { background: rgb(var(--accent-dark-color)); }
.btn-dark { background: rgb(var(--primary-color)); color: rgb(var(--white-color)); }
.btn-dark:hover { background: rgb(var(--primary-dark-color)); }
.btn-outline-white { border-color: rgba(var(--white-color), .7); color: rgb(var(--white-color)); }
.btn-outline-white:hover { background: rgb(var(--white-color)); color: rgb(var(--primary-color)); }
.btn-wrapper { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 2.8rem; }

.text-label {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: 1.4rem;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgb(var(--accent-color));
}
.text-label::before {
    content: '';
    width: 2.4rem; height: 2px;
    background: currentColor;
}

/* ==========================================================================
Sidhuvud
========================================================================== */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--header-height);
    background: rgba(var(--white-color), .96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgb(var(--line-color));
    transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 .6rem 2rem rgba(var(--primary-dark-color), .08); }
.site-header .container {
    display: flex;
    align-items: center;
    gap: 3rem;
    height: 100%;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: rgb(var(--primary-color));
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: -.02em;
    line-height: 1;
}
.logo img { height: 5.2rem; width: auto; }
.footer .logo img { height: 6rem; }

/* Levande logga: symbolen studsar in, gungar och släpper en droppe */
.logo-live { gap: .4rem; flex: none; }
.logo-live .logo-mark-wrap { position: relative; display: inline-block; flex: none; line-height: 0; }
.logo-live img { flex: none; max-width: none; }
.logo-live .logo-symbol {
    transform-origin: 50% 20%;
    animation: logo-drop-in .9s cubic-bezier(.34, 1.56, .64, 1) both, logo-sway 7s ease-in-out 1.2s infinite;
}
.logo-live .logo-text { animation: logo-text-in .7s ease-out .25s both; }
.logo-live .logo-mark-wrap::after {
    content: '';
    position: absolute;
    left: 50%; top: 72%;
    width: .7rem; height: .7rem;
    margin-left: -.35rem;
    border-radius: 0 50% 50% 50%;
    background: rgb(var(--accent-color));
    transform: rotate(45deg) scale(0);
    opacity: 0;
    animation: logo-drip 7s ease-in 2.4s infinite;
}
.footer .logo-live .logo-mark-wrap::after { background: rgb(var(--white-color)); }
.logo-live:hover .logo-symbol { animation: logo-wiggle .6s ease-in-out; }

@keyframes logo-drop-in {
    0%   { opacity: 0; transform: translateY(-2.4rem) rotate(-12deg); }
    60%  { opacity: 1; }
    100% { opacity: 1; transform: none; }
}
@keyframes logo-text-in {
    from { opacity: 0; transform: translateX(-1rem); }
    to   { opacity: 1; transform: none; }
}
@keyframes logo-sway {
    0%, 70%, 100% { transform: none; }
    76% { transform: rotate(-7deg); }
    82% { transform: rotate(6deg); }
    88% { transform: rotate(-3deg); }
    94% { transform: rotate(1deg); }
}
@keyframes logo-wiggle {
    0%, 100% { transform: none; }
    25% { transform: rotate(-12deg) scale(1.05); }
    50% { transform: rotate(10deg) scale(1.05); }
    75% { transform: rotate(-5deg); }
}
@keyframes logo-drip {
    0%, 60%  { opacity: 0; transform: translateY(0) rotate(45deg) scale(0); }
    66%      { opacity: 1; transform: translateY(0) rotate(45deg) scale(1); }
    80%      { opacity: 1; transform: translateY(1.6rem) rotate(45deg) scale(1); }
    88%, 100% { opacity: 0; transform: translateY(2.4rem) rotate(45deg) scale(.6); }
}
@media (prefers-reduced-motion: reduce) {
    .logo-live .logo-symbol, .logo-live .logo-text, .logo-live .logo-mark-wrap::after { animation: none !important; }
}
.logo-mark {
    display: grid;
    place-items: center;
    width: 4rem; height: 4rem;
    border-radius: 1rem;
    background: rgb(var(--accent-color));
    color: rgb(var(--white-color));
}
.logo-mark .icon { width: 2.2rem; height: 2.2rem; }
.logo small {
    display: block;
    margin-top: .3rem;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgb(var(--gray-color));
}

.mainmenu { margin-left: auto; }
.mainmenu ul {
    display: flex;
    gap: .4rem;
    margin: 0; padding: 0;
    list-style: none;
}
.mainmenu a {
    display: block;
    padding: .8rem 1.4rem;
    border-radius: 99rem;
    font-size: 1.6rem;
    font-weight: 600;
    text-decoration: none;
    color: rgb(var(--primary-color));
    transition: background-color .2s, color .2s;
}
.mainmenu a:hover { background: rgb(var(--gray-light-color)); }
.mainmenu a[aria-current="page"] { color: rgb(var(--accent-color)); }

.header-cta { padding: 1.1rem 2rem; }

/* Språkval med flaggor (som Consult Work) */
.sprakval {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex: none;
    padding: .3rem;
    border-radius: 2rem;
    background: rgb(var(--gray-light-color));
}
.sprakval a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem; height: 2.8rem;
    border-radius: 50%;
    opacity: .5;
    filter: saturate(.6);
    transition: opacity .2s ease, filter .2s ease, transform .2s ease;
}
.sprakval a:hover, .sprakval a:focus-visible { opacity: 1; filter: none; transform: scale(1.08); }
.sprakval a[aria-current] { opacity: 1; filter: none; box-shadow: 0 0 0 2px rgb(var(--white-color)), 0 0 0 4px rgb(var(--accent-color)); }
.sprakval .flagga { display: block; width: 2.2rem; height: 2.2rem; border-radius: 50%; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.sprakval svg { display: block; width: 100%; height: 100%; }

/* Bildfält med dra-och-släpp (som Consult Work) */
.file-field { position: relative; }
.file-dropzone {
    display: block;
    padding: 2rem;
    border: 2px dashed rgba(var(--accent-color), .35);
    border-radius: 1rem;
    background: rgb(var(--white-color));
    text-align: center;
    cursor: pointer;
    transition: background .3s ease, border-color .3s ease;
}
.file-dropzone:hover, .file-dropzone.drag-over { background: rgba(var(--accent-color), .05); border-color: rgb(var(--accent-color)); }
.file-dropzone.has-file { border-style: solid; border-color: rgb(var(--accent-color)); background: rgba(var(--accent-color), .04); }
.file-dropzone .icon { width: 3rem; height: 3rem; color: rgb(var(--accent-color)); }
.file-dropzone-text { display: block; margin-top: .8rem; font-size: 1.4rem; font-weight: 600; color: rgb(var(--primary-color)); word-break: break-word; }
.file-dropzone small { display: block; margin-top: .2rem; font-size: 1.3rem; color: rgb(var(--gray-color)); }
.form-grid .file-input { position: absolute; width: 1px; height: 1px; padding: 0; opacity: 0; }
.file-field:focus-within .file-dropzone { outline: 3px solid rgba(var(--accent-color), .5); outline-offset: 2px; }
.file-clear { display: none; margin-top: .8rem; padding: 0; border: 0; background: none; color: rgb(var(--accent-color)); font: inherit; font-size: 1.4rem; font-weight: 600; cursor: pointer; text-decoration: underline; }
.file-dropzone.has-file + .file-clear { display: inline-block; }

/* Kvitto efter skickat formulär (som Consult Work) */
.ContactSentMessage {
    margin: 0 0 2.4rem;
    padding: 2rem 2.4rem;
    border-left: 4px solid #17a34a;
    border-radius: 1rem;
    background: #e9f8ef;
    color: #14532d;
}
.ContactSentMessage p { margin: 0; }
.ContactSentMessage p + p { margin-top: .4rem; }

/* Felmeddelande om formuläret inte kunde skickas (?fel=1) */
.ContactErrorMessage {
    margin: 0 0 2.4rem;
    padding: 2rem 2.4rem;
    border-left: 4px solid #d00000;
    border-radius: 1rem;
    background: #fdecec;
    color: #7a0b0b;
}
.ContactErrorMessage p { margin: 0; }
.ContactErrorMessage p + p { margin-top: .4rem; }
.ContactErrorMessage a { color: inherit; font-weight: 700; }
.ContactErrorMessage .btn-wrapper { margin-top: 1.6rem; }
.form-card .ContactErrorMessage .btn-wrapper .btn { width: auto; margin: 0; }
.ContactErrorMessage a.btn-primary { color: rgb(var(--white-color)); }
.ContactErrorMessage .reserv-status { margin-top: 1.2rem; font-size: .92em; }
.ContactErrorMessage:focus { outline: none; }
.form-card button[disabled] { opacity: .7; cursor: wait; transform: none; }

/* ==========================================================================
Interaktionseffekter – olika beroende på var på sidan elementet sitter
========================================================================== */

/* Knappar: ljusglimt som sveper över, lätt lyft och pil som skjuts fram */
.btn {
    background-image: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .3) 50%, transparent 65%);
    background-size: 250% 100%;
    background-position: 130% 0;
    background-repeat: no-repeat;
    transition: background-position .7s ease, background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .25s;
}
.btn.btn:not(.akut-cta):hover {
    background-image: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .3) 50%, transparent 65%);
    background-size: 250% 100%;
    background-position: -30% 0;
    background-repeat: no-repeat;
    box-shadow: 0 1rem 2.2rem rgba(var(--primary-dark-color), .22);
}
.btn .icon { transition: transform .25s ease; }
.btn:hover svg:last-child:not(:first-child) { transform: translateX(4px); }
.btn:hover svg:first-child:not(:last-child) { transform: rotate(-10deg) scale(1.1); }
.btn:active { transform: translateY(0) scale(.97); }

/* Menyn på dator: understrykning som växer ut från mitten */
@media (min-width: 901px) {
    .mainmenu a { position: relative; }
    .mainmenu a::after {
        content: '';
        position: absolute;
        left: 1.4rem; right: 1.4rem; bottom: .3rem;
        height: 2px;
        border-radius: 2px;
        background: rgb(var(--accent-color));
        transform: scaleX(0);
        transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    }
    .mainmenu a:hover { background: none; color: rgb(var(--accent-color)); }
    .mainmenu a:hover::after, .mainmenu a[aria-current="page"]::after { transform: scaleX(1); }
}

/* Menyn i mobilen: raderna glider in, och vid tryck tonas raden och en pil visas */
@media (max-width: 900px) {
    .mainmenu.is-open li { animation: meny-in .35s ease both; }
    .mainmenu.is-open li:nth-child(2) { animation-delay: .04s; }
    .mainmenu.is-open li:nth-child(3) { animation-delay: .08s; }
    .mainmenu.is-open li:nth-child(4) { animation-delay: .12s; }
    .mainmenu.is-open li:nth-child(5) { animation-delay: .16s; }
    .mainmenu a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        transition: padding .25s ease, background-color .25s ease, color .2s ease;
    }
    .mainmenu a::after {
        content: '→';
        color: rgb(var(--accent-color));
        opacity: 0;
        transform: translateX(-8px);
        transition: opacity .25s ease, transform .25s ease;
    }
    .mainmenu a:hover, .mainmenu a:active, .mainmenu a[aria-current="page"] {
        padding-left: 1.2rem;
        background: linear-gradient(90deg, rgba(var(--accent-color), .08), transparent 80%);
        color: rgb(var(--accent-color));
    }
    .mainmenu a:hover::after, .mainmenu a:active::after, .mainmenu a[aria-current="page"]::after { opacity: 1; transform: none; }
    .header-phone, .hamburger, .mobile-bar a { transition: transform .15s ease; }
    .header-phone:active, .hamburger:active, .mobile-bar a:active { transform: scale(.94); }
}
@keyframes meny-in { from { opacity: 0; transform: translateX(-1.2rem); } to { opacity: 1; transform: none; } }

/* PRINCIP: bara det som går att klicka på reagerar när man för musen över det.
   Rubriker, faktaraden, "Varför välja oss", vision/mission och bilder är inte klickbara
   och har därför inga hover-effekter. */

/* Klickbara kort – hela kortet är en länk (länken i kortet sträcks ut över hela kortet) */
.is-clickable { position: relative; cursor: pointer; }
.is-clickable .card-link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card-icon { transition: background-color .3s ease, color .3s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.is-clickable:hover .card-icon, a.contact-item:hover .card-icon {
    background: rgb(var(--accent-color));
    color: rgb(var(--white-color));
    transform: rotate(-8deg) scale(1.08);
}
.is-clickable h3, .post-card h3 { transition: color .2s ease; }
.is-clickable:hover h3, .post-card:hover h3 { color: rgb(var(--accent-color)); }
.post-card img { transition: transform .6s ease; }
.post-card:hover img { transform: scale(1.06); }

/* Kort som inte är klickbara (t.ex. vision/mission, erbjudandet): inget lyft eller skugga */
.card:not(a):not(.is-clickable):hover { transform: none; box-shadow: none; border-color: rgb(var(--line-color)); }

/* Tjänstesidan: tjänsten är en länk till offertformuläret med rätt tjänst förvald.
   I mobilen fälls tjänsten ut när man trycker på rubriken; resten av kortet är länken. */
details.service-item.is-clickable summary { position: relative; z-index: 2; }
details.service-item.is-clickable .service-body p { margin-bottom: 0; }
/* Frågor: rubriken blir blå och plustecknet fylls */
.faq summary { transition: color .2s ease; }
.faq summary:hover { color: rgb(var(--accent-color)); }
.faq summary::after { transition: transform .2s, background-color .2s, color .2s; }
.faq summary:hover::after { background: rgb(var(--accent-color)); color: rgb(var(--white-color)); }

/* Länkar i korten ("Läs mer", "Fråga oss"): pilen skjuts fram */
.card-link .icon { transition: transform .25s ease; }
.card-link:hover .icon, .card:hover .card-link .icon { transform: translateX(4px); }

/* Sidfoten: länkar glider åt höger */
.footer ul a { display: inline-block; transition: transform .2s ease, color .2s ease; }
.footer ul a:hover { transform: translateX(4px); }

/* Pekskärmar: inga "fastnade" hover-lägen, men tydlig feedback vid tryck */
@media (hover: none) {
    .post-card:hover img { transform: none; }
    .card:active, .service-item:active, .contact-item:active { transform: scale(.98); }
}
@media (prefers-reduced-motion: reduce) {
    .btn, .btn .icon, .card-icon, .split-media img, .post-card img, .facts li .icon, .feature, .feature .num, .footer ul a, .mainmenu a, .mainmenu a::after { transition: none !important; }
    .mainmenu.is-open li { animation: none !important; }
}

/* Språkväljare SV/EN (äldre textvariant) */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1.2rem;
    border: 1px solid rgb(var(--line-color));
    border-radius: 99rem;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: rgb(var(--primary-color));
    text-decoration: none;
    transition: border-color .2s, color .2s;
}
.lang-switch:hover { border-color: rgb(var(--accent-color)); color: rgb(var(--accent-color)); }
.lang-switch .icon { width: 1.6rem; height: 1.6rem; }
.header-cta, .lang-switch, .mainmenu a { white-space: nowrap; }
.header-cta, .lang-switch, .header-phone, .hamburger { flex: none; }
@media (max-width: 1180px) and (min-width: 901px) {
    .site-header .container { gap: 1.6rem; }
    .mainmenu a { padding: .8rem 1rem; font-size: 1.5rem; }
    .header-cta { padding: 1rem 1.6rem; font-size: 1.5rem; }
    .lang-switch { padding: .6rem 1rem; }
    .lang-switch .icon { display: none; }
}

/* "Akut hjälp"-knapp som visar numret vid klick */
.akut-cta { position: relative; min-width: 17rem; justify-content: center; }
.akut-cta .akut-number { display: none; align-items: center; gap: .8rem; }
.akut-cta.is-revealed .akut-icon,
.akut-cta.is-revealed .akut-label { display: none; }
.akut-cta.is-revealed .akut-number { display: inline-flex; animation: akut-in .25s ease; }
/* Numret visas i röd-orange varningsfärg */
.akut-cta.is-revealed {
    background: linear-gradient(135deg, #e5484d 0%, #f76b15 100%);
    font-size: 1.7rem;
    letter-spacing: .02em;
    animation: akut-ring 1.2s ease-out infinite, akut-shake 1.2s ease-in-out infinite;
}
.akut-cta.is-revealed:hover { background: linear-gradient(135deg, #d13438 0%, #e0570a 100%); animation-play-state: paused; }
/* Varningsring + skakning tills man klickat */
.akut-cta:not(.is-revealed) {
    box-shadow: 0 0 0 3px #e5484d;
    animation: akut-ring 1.2s ease-out infinite, akut-shake 1.2s ease-in-out infinite;
}
.akut-cta:not(.is-revealed) .akut-icon { color: #ffd23f; }
.akut-cta:not(.is-revealed):hover { animation-play-state: paused; }
@keyframes akut-in { from { opacity: 0; transform: translateY(.4rem); } to { opacity: 1; transform: none; } }
@keyframes akut-ring {
    0%   { box-shadow: 0 0 0 3px #e5484d, 0 0 0 3px rgba(229, 72, 77, .6); }
    70%  { box-shadow: 0 0 0 3px #e5484d, 0 0 0 1.4rem rgba(229, 72, 77, 0); }
    100% { box-shadow: 0 0 0 3px #e5484d, 0 0 0 1.4rem rgba(229, 72, 77, 0); }
}
@keyframes akut-shake {
    /* Skakar i takt med den pulserande ringen – varje 1,2 s */
    0%, 40%, 100% { transform: none; }
    6%  { transform: translateX(-3px) rotate(-.8deg); }
    12% { transform: translateX(3px) rotate(.8deg); }
    18% { transform: translateX(-3px) rotate(-.8deg); }
    24% { transform: translateX(3px) rotate(.8deg); }
    30% { transform: translateX(-2px); }
    36% { transform: translateX(1px); }
}
@media (prefers-reduced-motion: reduce) {
    .akut-cta, .akut-cta .akut-number { animation: none !important; }
}

.hamburger {
    display: none;
    margin-left: auto;
    width: 4.4rem; height: 4.4rem;
    padding: 0;
    border: 0;
    border-radius: 1rem;
    background: rgb(var(--gray-light-color));
    cursor: pointer;
}
.hamburger span,
.hamburger span::before,
.hamburger span::after {
    display: block;
    width: 2rem; height: 2px;
    margin: 0 auto;
    background: rgb(var(--primary-color));
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
    position: relative;
}
.hamburger span::before, .hamburger span::after { content: ''; position: absolute; left: 0; }
.hamburger span::before { top: -.65rem; }
.hamburger span::after { top: .65rem; }
.hamburger[aria-expanded="true"] span { background: transparent; }
.hamburger[aria-expanded="true"] span::before { transform: translateY(.65rem) rotate(45deg); }
.hamburger[aria-expanded="true"] span::after { transform: translateY(-.65rem) rotate(-45deg); }

/* ==========================================================================
Hero
========================================================================== */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(88vh, 82rem);
    padding: calc(var(--header-height) + 6rem) 0 8rem;
    color: rgb(var(--white-color));
    background: rgb(var(--primary-dark-color));
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.hero-video { opacity: 0; transition: opacity 1s ease; }
.hero-video.is-playing { opacity: 1; }
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(var(--primary-dark-color), .94) 0%, rgba(var(--primary-dark-color), .78) 45%, rgba(var(--primary-dark-color), .35) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 66rem; }
.hero h1 { color: rgb(var(--white-color)); }
.hero h1 em { font-style: normal; color: rgb(var(--accent-light-color)); }
.hero p { font-size: clamp(1.7rem, 1.6vw, 2rem); color: rgba(var(--white-color), .85); max-width: 56rem; }
.hero .text-label { color: rgb(var(--white-color)); }
.hero .text-label::before { background: rgb(var(--accent-light-color)); }
.section-dark .text-label { color: rgb(var(--accent-light-color)); }

.hero-small { min-height: 0; padding: calc(var(--header-height) + 7rem) 0 7rem; }
.hero-small h1 { font-size: clamp(3.2rem, 4.6vw, 4.8rem); }

/* Faktaremsa under hero */
.facts {
    position: relative;
    z-index: 2;
    margin-top: -4.8rem;
}
.facts ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0; padding: 0;
    list-style: none;
    background: rgb(var(--white-color));
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.facts li {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: 2.6rem 2.4rem;
    font-size: 1.5rem;
    line-height: 1.4;
}
.facts li + li { border-left: 1px solid rgb(var(--line-color)); }
.facts strong { display: block; font-size: 1.7rem; color: rgb(var(--primary-color)); }
.facts .icon { width: 3.2rem; height: 3.2rem; color: rgb(var(--accent-color)); }

/* ==========================================================================
Sektioner
========================================================================== */
.section { padding: var(--section-padding) 0; }
.section-gray { background: rgba(var(--gray-light-color), .75); }
.section-dark { background: rgb(var(--primary-color)); color: rgba(var(--white-color), .82); }
.section-dark h2, .section-dark h3 { color: rgb(var(--white-color)); }

.section-head { max-width: 68rem; margin-bottom: 5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .text-label { justify-content: center; }
.section-head p { font-size: 1.8rem; }

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(4rem, 7vw, 9rem);
}
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img {
    width: 100%;
    aspect-ratio: 4 / 3.4;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.badge {
    position: absolute;
    right: -1.6rem; bottom: -2.4rem;
    padding: 2rem 2.6rem;
    border-radius: var(--radius);
    background: rgb(var(--accent-color));
    color: rgb(var(--white-color));
    box-shadow: var(--shadow);
    line-height: 1.2;
}
.badge strong { display: block; font-size: 3.6rem; font-weight: 800; }

.checklist { margin: 2rem 0 0; padding: 0; list-style: none; }
.checklist li {
    display: flex;
    gap: 1.2rem;
    padding: .5rem 0;
    color: rgb(var(--primary-color));
    font-weight: 500;
}
.checklist .icon { margin-top: .3rem; color: rgb(var(--accent-color)); }
.checklist.columns { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; }

/* ==========================================================================
Tjänstekort
========================================================================== */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.4rem;
}
.card {
    display: flex;
    flex-direction: column;
    padding: 3.2rem;
    border: 1px solid rgb(var(--line-color));
    border-radius: var(--radius);
    background: rgb(var(--white-color));
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}
.card-icon {
    display: grid;
    place-items: center;
    width: 5.6rem; height: 5.6rem;
    margin-bottom: 2.2rem;
    border-radius: 1.4rem;
    background: rgba(var(--accent-color), .1);
    color: rgb(var(--accent-color));
}
.card-icon .icon { width: 2.8rem; height: 2.8rem; }
.card p { margin-bottom: 0; font-size: 1.6rem; }
.card-link {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-top: auto;
    padding-top: 2rem;
    font-weight: 600;
    font-size: 1.5rem;
    text-decoration: none;
    color: rgb(var(--accent-color));
}
.card-link:hover { text-decoration: underline; }

/* Kort med bild (tjänstesidan) */
.card-image { padding: 0; overflow: hidden; }
.card-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-image .card-body { display: flex; flex-direction: column; flex: 1; padding: 2.8rem 3rem 3rem; }
.card-image .card-icon { margin-top: -5.6rem; position: relative; background: rgb(var(--accent-color)); color: rgb(var(--white-color)); box-shadow: var(--shadow); }

.center-actions { margin-top: 4.8rem; text-align: center; }

/* Tjänstegrupper (tjänstesidan) */
.service-group + .service-group { margin-top: clamp(6rem, 9vw, 10rem); }
.service-group .split { align-items: start; }
.service-group .split-media { position: sticky; top: calc(var(--header-height) + 3rem); }
.service-list { display: grid; gap: 1.6rem; margin-top: 2.8rem; }
.service-item {
    display: flex;
    gap: 2rem;
    padding: 2.4rem;
    border: 1px solid rgb(var(--line-color));
    border-radius: var(--radius);
    background: rgb(var(--white-color));
    scroll-margin-top: calc(var(--header-height) + 2rem);
    transition: box-shadow .25s, border-color .25s;
}
.service-item:hover, .service-item:target { box-shadow: var(--shadow); border-color: transparent; }
.service-item:target { outline: 2px solid rgb(var(--accent-color)); }
.service-item .card-icon { flex: none; margin: 0; width: 5rem; height: 5rem; }
.service-item .card-icon .icon { width: 2.4rem; height: 2.4rem; }
.service-item h3 { font-size: 1.9rem; margin-bottom: .4em; }
.service-item p { margin: 0; font-size: 1.6rem; }
.service-item .card-link { padding-top: 1.2rem; }

.chips { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.chips a {
    display: inline-block;
    padding: .9rem 1.6rem;
    border-radius: 99rem;
    background: rgba(var(--white-color), .1);
    border: 1px solid rgba(var(--white-color), .25);
    color: rgb(var(--white-color));
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s;
}
.chips a:hover { background: rgb(var(--accent-color)); border-color: rgb(var(--accent-color)); }

/* ==========================================================================
Fördelar (varför välja oss)
========================================================================== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 2.4rem;
}
.features.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .features.two { grid-template-columns: 1fr; } }
.feature {
    display: flex;
    gap: 2rem;
    padding: 2.8rem;
    border-radius: var(--radius);
    background: rgba(var(--white-color), .05);
    border: 1px solid rgba(var(--white-color), .1);
}
.section:not(.section-dark) .feature { background: rgb(var(--white-color)); border-color: rgb(var(--line-color)); }
.feature .num {
    flex: none;
    display: grid;
    place-items: center;
    width: 4.8rem; height: 4.8rem;
    border-radius: 50%;
    background: rgb(var(--accent-color));
    color: rgb(var(--white-color));
    font-weight: 800;
}
.feature h3 { font-size: 1.9rem; margin-bottom: .4em; }
.feature p { margin: 0; font-size: 1.6rem; }

/* Vision / mission */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; }
.duo .card h3 { display: flex; align-items: center; gap: 1rem; }
.duo .card h3 .icon { color: rgb(var(--accent-color)); }

/* ==========================================================================
CTA-band
========================================================================== */
.cta-band {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    padding: clamp(4rem, 6vw, 6.4rem);
    border-radius: calc(var(--radius) * 1.5);
    background: rgb(var(--accent-color));
    color: rgb(var(--white-color));
    overflow: hidden;
}
.cta-band::after {
    content: '';
    position: absolute;
    right: -8rem; top: -8rem;
    width: 28rem; height: 28rem;
    border-radius: 50%;
    background: rgba(var(--white-color), .1);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: rgb(var(--white-color)); margin-bottom: .3em; }
.cta-band p { margin: 0; font-size: 1.8rem; color: rgba(var(--white-color), .9); }
.cta-band .btn-dark { font-size: 1.8rem; padding: 1.6rem 3rem; }

/* ==========================================================================
Kontakt
========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: clamp(4rem, 6vw, 8rem);
    align-items: start;
}
.contact-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 1.6rem; }
.contact-item {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    padding: 2.2rem 2.4rem;
    border: 1px solid rgb(var(--line-color));
    border-radius: var(--radius);
    background: rgb(var(--white-color));
    text-decoration: none;
    transition: box-shadow .2s, border-color .2s;
}
a.contact-item:hover { box-shadow: var(--shadow); border-color: transparent; }
.contact-item .card-icon { margin: 0; width: 5rem; height: 5rem; }
.contact-item small { display: block; font-size: 1.4rem; color: rgb(var(--gray-color)); }
.contact-item strong { display: block; font-size: 1.8rem; color: rgb(var(--primary-color)); line-height: 1.3; }

.form-card {
    padding: clamp(2.8rem, 4vw, 4.4rem);
    border-radius: calc(var(--radius) * 1.5);
    background: rgb(var(--white-color));
    box-shadow: var(--shadow);
}
.form-card h2 { font-size: 2.8rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: block; margin-bottom: .6rem; font-size: 1.4rem; font-weight: 600; color: rgb(var(--primary-color)); }
.form-grid input,
.form-grid select,
.form-grid textarea {
    width: 100%;
    padding: 1.3rem 1.5rem;
    border: 1px solid rgb(var(--line-color));
    border-radius: var(--radius-small);
    background: rgb(var(--gray-light-color));
    font: inherit;
    font-size: 1.6rem;
    color: rgb(var(--primary-color));
    transition: border-color .2s, background-color .2s;
}
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
    outline: none;
    border-color: rgb(var(--accent-color));
    background: rgb(var(--white-color));
}
.form-grid input[type="file"] { padding: 1.1rem; background: rgb(var(--white-color)); border-style: dashed; cursor: pointer; }
.optional { font-weight: 400; color: rgb(var(--gray-color)); }
.field-hint { margin: .6rem 0 0; font-size: 1.4rem; color: rgb(var(--gray-color)); line-height: 1.5; }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 0; padding: 0; border: 0; }
.choice legend { margin-bottom: .6rem; padding: 0; font-size: 1.4rem; font-weight: 600; color: rgb(var(--primary-color)); }
.form-grid .choice-option { position: relative; margin: 0; cursor: pointer; }
.form-grid .choice-option input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; padding: 0; opacity: 0; pointer-events: none; }
.choice-option span {
    display: block;
    height: 100%;
    padding: 1.4rem 1.6rem;
    border: 2px solid rgb(var(--line-color));
    border-radius: var(--radius-small);
    font-size: 1.6rem;
    font-weight: 700;
    color: rgb(var(--primary-color));
    transition: border-color .2s, background-color .2s;
}
.choice-option span .icon { vertical-align: -.2em; margin-right: .4rem; color: rgb(var(--accent-color)); }
.choice-option small { display: block; margin-top: .2rem; font-size: 1.3rem; font-weight: 400; color: rgb(var(--gray-color)); }
.choice-option input:checked + span { border-color: rgb(var(--accent-color)); background: rgba(var(--accent-color), .06); }
/* Valt "Akut" – samma röd-orange varningsfärg som Akut hjälp-knappen */
.choice-option input[value="Akut"]:checked + span {
    border-color: transparent;
    background: linear-gradient(135deg, #e5484d 0%, #f76b15 100%);
    color: rgb(var(--white-color));
    animation: akut-ring 1.2s ease-out infinite, akut-shake 1.2s ease-in-out infinite;
}
.choice-option:hover input[value="Akut"]:checked + span { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
    .choice-option input[value="Akut"]:checked + span { animation: none; box-shadow: 0 0 0 3px #e5484d; }
}
.choice-option input[value="Akut"]:checked + span .icon { color: #ffd23f; }
.choice-option input[value="Akut"]:checked + span small { color: rgba(var(--white-color), .9); }
.choice-option input:focus-visible + span { outline: 3px solid rgb(var(--accent-color)); outline-offset: 2px; }
.akut-tip { margin: 0; padding: 1.4rem 1.6rem; border-radius: var(--radius-small); background: #fff4e5; color: #7a4100; font-size: 1.5rem; line-height: 1.5; }
.akut-tip p { margin: 0 0 1.2rem; }
.akut-tip[hidden] { display: none; }

/* Telefonnummer med samma varningseffekt som Akut hjälp-knappen */
.akut-pill {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    padding: 1.1rem 2.2rem;
    border-radius: 99rem;
    background: linear-gradient(135deg, #e5484d 0%, #f76b15 100%);
    color: rgb(var(--white-color));
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-decoration: none;
    animation: akut-ring 1.2s ease-out infinite, akut-shake 1.2s ease-in-out infinite;
}
.akut-pill:hover { background: linear-gradient(135deg, #d13438 0%, #e0570a 100%); animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .akut-pill { animation: none; box-shadow: 0 0 0 3px #e5484d; } }

/* ROT-avdrag */
.rot {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(2.4rem, 4vw, 5rem);
    align-items: center;
    padding: clamp(3.2rem, 5vw, 5.6rem);
    border-radius: calc(var(--radius) * 1.5);
    background: rgba(var(--accent-color), .06);
    border: 1px solid rgba(var(--accent-color), .15);
}
.rot-figure {
    display: grid;
    place-items: center;
    width: clamp(14rem, 18vw, 19rem);
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgb(var(--accent-color));
    color: rgb(var(--white-color));
    text-align: center;
    line-height: 1.1;
    box-shadow: var(--shadow);
}
.rot-figure strong { display: block; font-size: clamp(4.4rem, 5vw, 5.6rem); font-weight: 800; }
.rot-figure span { font-size: 1.5rem; font-weight: 600; }
.rot h2 { margin-bottom: .4em; }
.rot .checklist { margin-top: 1.2rem; }
.rot small { display: block; margin-top: 1.6rem; color: rgb(var(--gray-color)); font-size: 1.4rem; line-height: 1.5; }

/* FAQ */
.faq { max-width: 86rem; margin: 0 auto; display: grid; gap: 1.2rem; }
.faq details {
    border: 1px solid rgb(var(--line-color));
    border-radius: var(--radius);
    background: rgb(var(--white-color));
    transition: box-shadow .2s;
}
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 2.2rem 2.6rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: rgb(var(--primary-color));
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+';
    flex: none;
    display: grid;
    place-items: center;
    width: 3.2rem; height: 3.2rem;
    border-radius: 50%;
    background: rgba(var(--accent-color), .1);
    color: rgb(var(--accent-color));
    font-size: 2.2rem;
    font-weight: 400;
    transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 2.6rem 2.4rem; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq-group + .faq-group { margin-top: 5rem; }
.faq-group h2 { max-width: 86rem; margin: 0 auto 2rem; font-size: 2.6rem; }

/* Tips / artiklar */
.post-card { padding: 0; overflow: hidden; text-decoration: none; }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card .card-body { display: flex; flex-direction: column; flex: 1; padding: 2.6rem 2.8rem 2.8rem; }
.post-card .meta { margin-bottom: .8rem; font-size: 1.3rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--accent-color)); }
.article { max-width: 76rem; margin: 0 auto; }
.article > img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 4rem; aspect-ratio: 16 / 9; object-fit: cover; }
.article h2 { font-size: 2.6rem; margin-top: 1.6em; }
.article ul, .article ol { padding-left: 2.2rem; }
.article li { margin-bottom: .6rem; }
.article .lead { font-size: 2rem; color: rgb(var(--primary-color)); }
.article .tipbox {
    margin: 3.2rem 0;
    padding: 2.4rem 2.8rem;
    border-left: 4px solid rgb(var(--accent-color));
    border-radius: 0 var(--radius-small) var(--radius-small) 0;
    background: rgb(var(--gray-light-color));
}
.article .tipbox p:last-child { margin: 0; }
.breadcrumb { margin-bottom: 1.6rem; font-size: 1.4rem; }
.breadcrumb a { color: rgba(var(--white-color), .8); }

.consent { display: flex; gap: 1.2rem; align-items: flex-start; font-size: 1.4rem; line-height: 1.5; }
.consent input { width: auto; margin-top: .3rem; accent-color: rgb(var(--accent-color)); }
.consent label { font-weight: 400; color: rgb(var(--gray-dark-color)); margin: 0; }
.form-card button { width: 100%; justify-content: center; margin-top: .8rem; border: 0; }

.notice {
    display: none;
    margin-bottom: 2rem;
    padding: 1.6rem 2rem;
    border-radius: var(--radius-small);
    background: #e7f6ec;
    color: #17633a;
    font-weight: 600;
}
.notice.is-visible { display: block; }

/* Textsidor (integritetspolicy) */
.prose { max-width: 76rem; }
.prose h2 { font-size: 2.4rem; margin-top: 1.6em; }

/* ==========================================================================
Sidfot
========================================================================== */
.footer {
    padding: 8rem 0 0;
    background: rgb(var(--primary-dark-color));
    color: rgba(var(--white-color), .7);
    font-size: 1.6rem;
}
.footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 4rem;
    padding-bottom: 6rem;
}
.footer .logo { color: rgb(var(--white-color)); margin-bottom: 2rem; }
.footer .logo small { color: rgba(var(--white-color), .5); }
.footer h3 { font-size: 1.6rem; color: rgb(var(--white-color)); margin-bottom: 1.6rem; }
.footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .8rem; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: rgb(var(--accent-light-color)); }
.footer-contact li { display: flex; gap: 1rem; align-items: flex-start; }
.footer-contact .icon { margin-top: .4rem; color: rgb(var(--accent-light-color)); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 2.4rem 0;
    border-top: 1px solid rgba(var(--white-color), .1);
    font-size: 1.4rem;
}
.footer-bottom p { margin: 0; }

/* Fast åtgärdslist längst ner (mobil) */
.mobile-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 90;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: .8rem;
    padding: .8rem 1.2rem calc(.8rem + env(safe-area-inset-bottom));
    background: rgba(var(--white-color), .97);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgb(var(--line-color));
    box-shadow: 0 -.6rem 2rem rgba(var(--primary-dark-color), .08);
}
.mobile-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    padding: 1.3rem 1rem;
    border-radius: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}
.mobile-bar .bar-call { background: rgb(var(--accent-color)); color: rgb(var(--white-color)); }
.mobile-bar .bar-quote { background: rgb(var(--primary-color)); color: rgb(var(--white-color)); }

/* Telefonikon i sidhuvudet (mobil) */
.header-phone {
    display: none;
    place-items: center;
    width: 4.4rem; height: 4.4rem;
    margin-left: auto;
    border-radius: 1rem;
    background: rgb(var(--accent-color));
    color: rgb(var(--white-color));
}
.header-phone .icon { width: 2rem; height: 2rem; }

/* Tjänster som fällbara rader (öppna på desktop, stängda på mobil) */
details.service-item { display: block; }
details.service-item summary {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    list-style: none;
    cursor: pointer;
}
details.service-item summary::-webkit-details-marker { display: none; }
details.service-item summary h3 { margin: 0; flex: 1; }
details.service-item .service-body { padding: .4rem 0 0 6.6rem; }
@media (min-width: 641px) {
    details.service-item summary { cursor: default; pointer-events: none; }
}

/* ==========================================================================
Animation vid scroll
========================================================================== */
.reveal { opacity: 0; transform: translateY(2.4rem); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn:hover, .card:hover { transform: none; }
}

/* ==========================================================================
Responsivt
========================================================================== */
@media (max-width: 1080px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .facts ul { grid-template-columns: repeat(2, 1fr); }
    .facts li:nth-child(3) { border-left: 0; }
    .facts li:nth-child(n+3) { border-top: 1px solid rgb(var(--line-color)); }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .hamburger { display: block; }
    .header-cta { display: none; }
    .mainmenu {
        position: fixed;
        inset: var(--header-height) 0 auto;
        margin: 0;
        padding: 1.6rem 2.4rem 2.8rem;
        background: rgb(var(--white-color));
        border-bottom: 1px solid rgb(var(--line-color));
        box-shadow: 0 2rem 3rem rgba(var(--primary-dark-color), .1);
        transform: translateY(-1rem);
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s, transform .2s, visibility .2s;
    }
    .mainmenu.is-open { opacity: 1; visibility: visible; transform: none; }
    .mainmenu ul { flex-direction: column; gap: 0; }
    .mainmenu li + li { border-top: 1px solid rgb(var(--line-color)); }
    .mainmenu a { padding: 1.5rem .4rem; border-radius: 0; font-size: 1.7rem; }
    .mainmenu a:hover { background: none; }
    .site-header .container { gap: .8rem; }
    .header-phone { display: grid; margin-left: 0; }
    .header-phone + .hamburger { margin-left: 0; }
    .lang-switch { margin-left: auto; padding: .6rem 1.2rem; height: 4.4rem; border-radius: 1rem; }
    .lang-switch .icon { display: none; }
    .sprakval { margin-left: auto; gap: .2rem; padding: .2rem; }
    .sprakval a { width: 2.6rem; height: 2.6rem; }
    .sprakval .flagga { width: 2rem; height: 2rem; }

    .split, .contact-grid, .duo { grid-template-columns: 1fr; }
    .split.reverse .split-media { order: 0; }
    .contact-grid .form-card { order: -1; }
    .service-group .split-media { position: static; }
    .service-group .split-media img { aspect-ratio: 16 / 9; }
    .badge { right: 1.6rem; }

    /* Åtgärdslisten ersätter knappen i sidhuvudet */
    .mobile-bar { display: grid; }
    body { padding-bottom: calc(7.2rem + env(safe-area-inset-bottom)); }
}

@media (max-width: 640px) {
    :root { --section-padding: 5.2rem; --header-height: 6.6rem; }
    .container { padding: 0 1.6rem; }
    p { margin-bottom: .9em; }
    .text-label { font-size: 1.2rem; margin-bottom: 1rem; }
    .section-head { margin-bottom: 3rem; }
    .section-head p, .cta-band p { font-size: 1.6rem; }
    .hero { min-height: 0; padding: calc(var(--header-height) + 4rem) 0 6.4rem; }
    .hero p { font-size: 1.6rem; }
    .hero .btn { width: 100%; justify-content: center; }
    .hero-small { padding: calc(var(--header-height) + 3.6rem) 0 4rem; }
    .btn { padding: 1.3rem 2.2rem; font-size: 1.5rem; }
    .logo small { display: none; }
    .logo img { height: 4rem; }

    /* Fakta 2 × 2 */
    .facts { margin-top: -3.2rem; }
    .facts ul { grid-template-columns: 1fr 1fr; }
    .facts li { flex-direction: column; align-items: flex-start; gap: .6rem; padding: 1.6rem 1.4rem; font-size: 1.3rem; }
    .facts li + li { border-left: 0; border-top: 0; }
    .facts li:nth-child(even) { border-left: 1px solid rgb(var(--line-color)); }
    .facts li:nth-child(n+3) { border-top: 1px solid rgb(var(--line-color)); }
    .facts strong { font-size: 1.5rem; }
    .facts .icon { width: 2.6rem; height: 2.6rem; }

    /* Startsidans tjänster som kompakt lista */
    .cards.compact-mobile { gap: 1rem; }
    .cards.compact-mobile .card {
        position: relative;
        flex-direction: row;
        align-items: center;
        gap: 1.4rem;
        padding: 1.4rem 1.6rem;
    }
    .cards.compact-mobile .card-icon { width: 4.4rem; height: 4.4rem; margin: 0; border-radius: 1rem; flex: none; }
    .cards.compact-mobile .card-icon .icon { width: 2.2rem; height: 2.2rem; }
    .cards.compact-mobile h3 { flex: 1; margin: 0; font-size: 1.6rem; }
    .cards.compact-mobile p { display: none; }
    .cards.compact-mobile .card-link { padding: 0; margin: 0; font-size: 0; }
    .cards.compact-mobile .card-link .icon { width: 2rem; height: 2rem; }
    .cards.compact-mobile .card-link::after { content: ''; position: absolute; inset: 0; }
    .cards.compact-mobile .card:hover { transform: none; }

    /* Tjänstesidan: kortare bilder och fällbara tjänster */
    .service-group + .service-group { margin-top: 5.2rem; }
    .service-group .split { gap: 2.4rem; }
    .service-group .split-media img { aspect-ratio: 21 / 9; }
    .service-list { gap: 1rem; margin-top: 1.8rem; }
    details.service-item { padding: 1.4rem 1.6rem; }
    details.service-item .card-icon { width: 4.4rem; height: 4.4rem; border-radius: 1rem; }
    details.service-item summary h3 { font-size: 1.6rem; }
    details.service-item summary::after {
        content: '+';
        flex: none;
        display: grid;
        place-items: center;
        width: 2.8rem; height: 2.8rem;
        border-radius: 50%;
        background: rgba(var(--accent-color), .1);
        color: rgb(var(--accent-color));
        font-size: 2rem;
        transition: transform .2s;
    }
    details.service-item[open] summary::after { transform: rotate(45deg); }
    details.service-item .service-body { padding: 1.2rem 0 0; }
    details.service-item p { font-size: 1.5rem; }

    .cards, .form-grid, .checklist.columns, .choice, .rot { grid-template-columns: 1fr; }
    .card { padding: 2.4rem; }
    .rot { padding: 2.8rem 2rem; text-align: left; }
    .rot-figure { width: 11rem; }
    .rot-figure strong { font-size: 3.6rem; }
    .feature { flex-direction: column; gap: 1.2rem; padding: 2.2rem; }
    .feature h3 { font-size: 1.7rem; }
    .feature p, .card p { font-size: 1.5rem; }
    .cta-band { padding: 3.2rem 2.2rem; }
    .cta-band .btn-wrapper { width: 100%; }
    .cta-band .btn { flex: 1; justify-content: center; }
    .faq summary { padding: 1.8rem 1.8rem; font-size: 1.6rem; }
    .faq .answer { padding: 0 1.8rem 2rem; font-size: 1.5rem; }
    .faq-group h2 { font-size: 2rem; }
    .article .lead { font-size: 1.7rem; }
    .article h2 { font-size: 2rem; }
    .contact-item { padding: 1.6rem 1.8rem; gap: 1.4rem; }
    .contact-item strong { font-size: 1.6rem; }
    .form-card { padding: 2.4rem 1.8rem; }
    .form-card h2 { font-size: 2.2rem; }
    .footer { padding-top: 5.6rem; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 3.2rem 2rem; padding-bottom: 4rem; }
    .footer-top > div:first-child { grid-column: 1 / -1; }
    .footer-top > div:last-child { grid-column: 1 / -1; }
}
