/* =========================================================
   Core&Code IT – stilark
   Laget for å være lett å lese og bruke, også for eldre:
   stor tekst, høy kontrast, store knapper, ingen kompliserte animasjoner.
   Farger og mål styres av variablene i :root.
   ========================================================= */

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-950: #050b15;
  --navy-900: #0a1422;
  --navy-850: #0e1b2e;
  --navy-800: #13243c;
  --line: rgba(190, 210, 235, 0.22);
  --line-strong: rgba(190, 210, 235, 0.45);
  --text: #ffffff;
  --text-muted: #dfe8f3;   /* høy kontrast – ingen svak grå tekst */
  --teal: #2dd4bf;
  --teal-light: #5eead4;
  --sky: #38bdf8;
  --yellow: #fcd34d;       /* placeholders */
  --danger: #ffb4b4;
  --danger-bg: rgba(255, 99, 99, 0.16);
  --success: #4ade80;
  --grad: linear-gradient(135deg, var(--teal) 0%, var(--sky) 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Tekststørrelse (A / A+ / A++) ----------
   Grunnstørrelse 19 px. Alt annet er i rem og skalerer med. */
html { font-size: 118.75%; }                 /* 19 px */
html[data-text="1"] { font-size: 137.5%; }   /* 22 px */
html[data-text="2"] { font-size: 156.25%; }  /* 25 px */

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; -webkit-text-size-adjust: 100%; }
@media (min-width: 1000px) { html { scroll-padding-top: 6.5rem; } }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65;
  color: var(--text); background: var(--navy-900); -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.015em; font-weight: 750; }
p { margin: 0 0 1em; }
a { color: var(--teal-light); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
a:hover { color: #99f6e4; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
main:focus { outline: none; }
:focus-visible { outline: 4px solid #fde047; outline-offset: 3px; border-radius: 8px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: absolute; left: 1rem; top: -200px; z-index: 1000; background: #fde047; color: #000; padding: .8rem 1.2rem; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 1rem; color: #000; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.1rem; }
.container.narrow { max-width: 820px; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.flag { width: 1.6em; height: 1.15em; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.5); flex-shrink: 0; }

/* Placeholders (fjern class="ph" når ekte info er lagt inn) */
.ph { color: var(--yellow); }
.ph-dark { font-weight: 800; }

/* ---------- Knapper (store, minst 52 px høye) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .75rem 1.4rem; border-radius: 14px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.25; text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn .icon { width: 1.2em; height: 1.2em; }
.btn-primary { background: var(--teal); color: #031512; }
.btn-primary:hover { background: var(--teal-light); color: #031512; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--teal); color: var(--text); background: rgba(45, 212, 191, .12); }
.btn-call { background: #fde047; color: #111; }
.btn-call:hover { background: #fef08a; color: #111; }
.btn-lg { min-height: 60px; padding: .9rem 1.6rem; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* ---------- Topplinje ---------- */
.topbar { background: var(--navy-950); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.2rem; padding-top: .55rem; padding-bottom: .55rem; }
.topbar-call { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); text-decoration: none; font-size: 1.05rem; min-height: 48px; }
.topbar-call .icon { color: #fde047; width: 1.4em; height: 1.4em; }
.topbar-call:hover { color: var(--text); text-decoration: underline; }
.topbar-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }

.textsize { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.textsize-label { font-size: .95rem; margin-right: .25rem; }
.ts-btn {
  min-width: 52px; min-height: 48px; padding: 0 .55rem; border-radius: 10px; cursor: pointer;
  background: transparent; border: 2px solid var(--line-strong); color: var(--text); font-weight: 800; font-size: 1rem; line-height: 1;
}
.ts-btn.ts-1 { font-size: 1.15rem; }
.ts-btn.ts-2 { font-size: 1.3rem; }
.ts-btn:hover { border-color: var(--teal); }
.ts-btn[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #031512; }

.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; padding: 0 .9rem; cursor: pointer;
  background: transparent; border: 2px solid var(--line-strong); border-radius: 10px; color: var(--text); font-weight: 700; font-size: 1rem;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--teal); }
.lang-btn .chevron { width: 1em; height: 1em; }
.lang-btn[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + .4rem); z-index: 200; width: min(18rem, calc(100vw - 2rem));
  background: var(--navy-850); border: 2px solid var(--teal); border-radius: var(--radius-sm); padding: .6rem;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .8);
}
.lang-menu[hidden] { display: none; }
.lang-menu-title { margin: .2rem .5rem .5rem; font-weight: 700; }
.lang-menu ul { list-style: none; display: grid; gap: .3rem; }
.lang-option {
  display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 52px; padding: 0 .8rem; cursor: pointer;
  background: transparent; border: 2px solid transparent; border-radius: 10px; color: var(--text); font-size: 1.05rem; font-weight: 600; text-align: left;
}
.lang-option:hover { background: rgba(45, 212, 191, .14); }
.lang-option[aria-current="true"] { border-color: var(--teal); background: rgba(45, 212, 191, .18); }
.lang-option[aria-current="true"]::after { content: "✓"; margin-left: auto; color: var(--teal-light); font-weight: 800; }

/* ---------- Header + meny ---------- */
.site-header { background: var(--navy-900); border-bottom: 1px solid var(--line); z-index: 100; }
@media (min-width: 1000px) { .site-header { position: sticky; top: 0; } }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; padding-top: .8rem; padding-bottom: .8rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { width: 44px; height: 44px; }
.brand-name { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand-name .amp { color: var(--teal); }
.brand-it { display: inline-block; margin-left: .15rem; padding: 0 .4rem; border-radius: 6px; background: var(--grad); color: #031512; font-size: .8em; }

.main-nav { width: 100%; }
.main-nav ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5em), 1fr)); gap: .5rem; }
.main-nav a {
  display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 56px; padding: .5rem .7rem;
  border: 2px solid var(--line-strong); border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.05rem;
}
.main-nav a .icon { color: var(--teal-light); }
.main-nav a:hover { border-color: var(--teal); background: rgba(45, 212, 191, .1); color: var(--text); }
.main-nav a.nav-cta { background: var(--teal); border-color: var(--teal); color: #031512; }
.main-nav a.nav-cta .icon { color: #031512; }
.main-nav a.nav-cta:hover { background: var(--teal-light); }
@media (min-width: 1000px) {
  .main-nav { width: auto; }
  .main-nav ul { display: flex; gap: .6rem; }
  .main-nav a { min-height: 52px; }
}

/* ---------- Hero ---------- */
.hero { padding: 2.5rem 0 3.5rem; background: radial-gradient(50rem 25rem at 90% 0%, rgba(56, 189, 248, .14), transparent 60%), radial-gradient(40rem 25rem at 0% 30%, rgba(45, 212, 191, .12), transparent 60%), var(--navy-900); }
.hero-inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1000px) { .hero { padding: 4.5rem 0 5rem; } .hero-inner { grid-template-columns: 1.25fr .85fr; gap: 3.5rem; } }
.eyebrow { display: inline-block; margin-bottom: 1rem; padding: .3rem .9rem; border: 2px solid rgba(45, 212, 191, .6); border-radius: 999px; font-size: .95rem; font-weight: 700; color: var(--teal-light); }
.hero h1 { font-size: clamp(2rem, 5.5vw, 3.3rem); font-weight: 800; margin-bottom: 1rem; }
.hero h1 span { display: block; }
.accent-text { color: var(--teal); }
.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 40rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.5rem; }
@media (max-width: 560px) { .hero-actions .btn { flex: 1 1 100%; } }
.hero-points { list-style: none; display: grid; gap: .5rem; color: var(--text); }
.hero-points li { display: flex; align-items: center; gap: .6rem; }
.hero-points .icon { color: var(--teal); stroke-width: 3; }

.help-card { padding: 1.6rem; border-radius: var(--radius); background: var(--navy-800); border: 2px solid var(--line-strong); display: grid; gap: .8rem; }
.help-card h2 { font-size: 1.5rem; margin: 0; }
.help-card p { margin: 0; color: var(--text-muted); }
.help-card .help-email { display: flex; align-items: flex-start; gap: .6rem; margin-top: .3rem; color: var(--text); }
.help-card .help-email .icon { margin-top: .2rem; color: var(--teal-light); }
.help-card .help-email a { color: var(--teal-light); text-decoration: underline; overflow-wrap: anywhere; }
.phone-num { white-space: nowrap; }

/* ---------- Seksjoner ---------- */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--navy-950); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 2.25rem; }
.section-head h2, .booking-intro h2 { font-size: clamp(1.75rem, 4.2vw, 2.4rem); }
.section-lead { color: var(--text-muted); font-size: 1.12rem; }
@media (min-width: 1000px) { .section { padding: 5rem 0; } }

/* ---------- Tjenester ---------- */
.services-grid { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
.service-card { display: flex; flex-direction: column; padding: 1.6rem; background: var(--navy-850); border: 2px solid var(--line); border-radius: var(--radius); }
.card-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.card-top h3 { margin: 0; font-size: 1.4rem; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .card-top h3 { font-size: 1.25rem; } .service-card { padding: 1.25rem; } }
.service-icon, .why-icon { display: grid; place-items: center; width: 56px; height: 56px; flex-shrink: 0; border-radius: 14px; background: rgba(45, 212, 191, .14); border: 2px solid rgba(45, 212, 191, .45); color: var(--teal-light); }
.service-icon .icon, .why-icon .icon { width: 28px; height: 28px; }
.service-card > p { color: var(--text-muted); }
.check-list { list-style: none; display: grid; gap: .55rem; margin-bottom: 1.4rem; }
.check-list li { position: relative; padding-left: 2rem; color: var(--text); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23031512' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 65% no-repeat;
}
.service-foot { margin-top: auto; padding-top: 1.1rem; border-top: 2px solid var(--line); display: grid; gap: .9rem; }
.card-price { margin: 0; font-size: 1.15rem; }
.card-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.card-actions .btn { flex: 1 1 10rem; }

/* ---------- Priser ---------- */
.card-price strong { color: #fff; }
.card-free { display: block; margin-top: .2rem; color: var(--teal-light); font-weight: 700; }

#prices-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem .8rem; }
.price-badge {
  display: inline-block; padding: .25rem .8rem; border-radius: 999px; background: #fde047; color: #111;
  font-size: .55em; font-weight: 800; letter-spacing: .01em; vertical-align: middle;
}
.price-notice {
  display: flex; align-items: flex-start; gap: .8rem; margin: 0 0 2rem; padding: 1.1rem 1.3rem;
  background: var(--navy-800); border: 2px solid #fde047; border-radius: var(--radius-sm); font-size: 1.1rem; color: #fff;
}
.price-notice .icon { color: #fde047; width: 1.5em; height: 1.5em; margin-top: .05rem; }
.price-groups { display: grid; gap: 2rem; }
.price-group { background: var(--navy-850); border: 2px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.price-group-title {
  display: flex; align-items: center; gap: .7rem; margin: 0; padding: 1.1rem 1.3rem;
  background: var(--navy-800); border-bottom: 2px solid var(--line-strong); font-size: 1.45rem;
}
.price-group-title .icon { color: var(--teal-light); width: 1.4em; height: 1.4em; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table thead th { text-align: left; padding: .8rem 1.3rem; font-size: 1rem; color: #fff; border-bottom: 2px solid var(--line); }
.price-table thead th:last-child { text-align: right; }
.price-table tbody th, .price-table td { padding: 1rem 1.3rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.price-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, .035); }
.price-table tbody th { font-weight: 400; }
.pr-name { display: block; font-weight: 700; font-size: 1.1rem; color: #fff; }
.pr-detail { display: block; margin-top: .2rem; color: var(--text-muted); font-size: 1rem; }
.price-cell { text-align: right !important; font-size: 1.2rem; font-weight: 800; color: #fff; white-space: nowrap; width: 1%; }
.price-group-foot { padding: 1rem 1.3rem 1.3rem; }
.price-group-foot .btn { width: 100%; }
@media (min-width: 640px) { .price-group-foot .btn { width: auto; min-width: 14rem; } }
/* Smal skjerm: prisen under navnet, så ingenting blir trangt */
@media (max-width: 599px) {
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .price-table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; width: 100%; }
  .price-table tbody tr { padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
  .price-table tbody th, .price-table td { padding: 0; border: 0; }
  .price-cell { text-align: left !important; width: 100%; margin-top: .35rem; white-space: normal; font-size: 1.25rem; color: #fde047; }
  .price-group-title { padding: 1rem 1.1rem; font-size: 1.3rem; }
  .price-group-foot { padding: 1rem 1.1rem 1.2rem; }
}
.prices-note { display: flex; align-items: flex-start; gap: .7rem; margin: 2rem auto 0; max-width: 760px; font-size: 1.08rem; color: var(--text); }
.prices-note .icon { color: #fde047; margin-top: .2rem; }

/* ---------- Hvorfor oss ---------- */
.why-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-item { padding: 1.5rem; border-radius: var(--radius); background: var(--navy-850); border: 2px solid var(--line); }
.why-icon { margin-bottom: 1rem; }
.why-item h3 { font-size: 1.2rem; }
.why-item p { color: var(--text-muted); margin: 0; }

/* ---------- Steg ---------- */
.steps { list-style: none; display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding: 1.5rem; border-radius: var(--radius); border: 2px solid var(--line); background: var(--navy-850); }
.step-num { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1rem; border-radius: 50%; background: var(--teal); color: #031512; font-weight: 800; font-size: 1.4rem; }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--text-muted); margin: 0; }

/* ---------- Bestilling ---------- */
.booking-wrap { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1000px) { .booking-wrap { grid-template-columns: .8fr 1.2fr; gap: 3.5rem; } }
.info-box, .call-box { margin-top: 1.25rem; padding: 1.3rem 1.4rem; border-radius: var(--radius); border: 2px solid var(--line); background: var(--navy-850); }
.info-box h3 { font-size: 1.12rem; }
.info-box .check-list { margin-bottom: 0; }
.call-box p { font-weight: 700; font-size: 1.12rem; margin-bottom: .7rem; }

.form-card { padding: 1.3rem; border-radius: calc(var(--radius) + 4px); background: var(--navy-800); border: 2px solid var(--line-strong); }
@media (min-width: 600px) { .form-card { padding: 2rem; } }
.form-card.flash { outline: 4px solid var(--teal); outline-offset: 4px; }
.form-note { color: var(--text-muted); margin-bottom: 1.2rem; }
.form-grid { display: grid; gap: 1.2rem 1.25rem; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } .field-full { grid-column: 1 / -1; } }
html[data-text="2"] .form-grid { grid-template-columns: 1fr; }

.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-weight: 700; font-size: 1.05rem; color: var(--text); padding: 0; }
.req { color: var(--teal-light); }
.optional { color: var(--text-muted); font-weight: 500; }
.hint { margin: 0; font-size: .95rem; color: var(--text-muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"], .field select, .field textarea {
  width: 100%; min-height: 56px; padding: .8rem 1rem; font-size: 1.05rem;
  background: #050b15; color: var(--text); border: 2px solid var(--line-strong); border-radius: var(--radius-sm);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: #a7b6c8; opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid #fde047; outline-offset: 2px; border-color: var(--teal); }
.field input[type="date"] { color-scheme: dark; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.8rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 1.1rem;
}
.field select option { background: var(--navy-850); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.error { margin: 0; font-size: 1rem; color: var(--danger); font-weight: 700; }
.error:empty { display: none; }
.error::before { content: "⚠ "; }

.chip-group { display: grid; gap: .6rem; margin-top: .4rem; }
@media (min-width: 600px) { .chip-group { grid-template-columns: 1fr 1fr; } }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-box {
  display: flex; align-items: center; gap: .7rem; min-height: 58px; padding: .6rem 1rem;
  border: 2px solid var(--line-strong); border-radius: 12px; background: #050b15; font-weight: 600; color: var(--text); user-select: none;
}
/* Tydelig avkrysningsboks i hver knapp */
.chip-box::before {
  content: ""; width: 1.5rem; height: 1.5rem; flex-shrink: 0; border-radius: 6px; border: 2px solid var(--text);
  background: transparent center / 75% no-repeat;
}
.chip-box .icon { color: var(--teal-light); }
.chip:hover .chip-box { border-color: var(--teal); }
.chip input:checked + .chip-box { background: rgba(45, 212, 191, .2); border-color: var(--teal); }
.chip input:checked + .chip-box::before {
  background-color: var(--teal); border-color: var(--teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23031512' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.chip input:focus-visible + .chip-box { outline: 4px solid #fde047; outline-offset: 2px; }
fieldset[aria-invalid="true"] .chip-box { border-color: var(--danger); }

.repair-fields { padding: 1.1rem; border-radius: var(--radius-sm); border: 2px dashed var(--teal); background: rgba(45, 212, 191, .06); }
.consent { display: flex; align-items: flex-start; gap: .8rem; }
.consent input { flex-shrink: 0; width: 30px; height: 30px; margin: .1rem 0 0; accent-color: var(--teal); cursor: pointer; }
.consent label { font-weight: 500 !important; cursor: pointer; }
.consent input[aria-invalid="true"] { outline: 3px solid var(--danger); outline-offset: 2px; }
.form-card .btn-block[type="submit"] { margin-top: 1.6rem; min-height: 64px; font-size: 1.15rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-summary, .form-error { display: flex; align-items: flex-start; gap: .6rem; padding: 1rem; margin-bottom: 1.2rem; border-radius: var(--radius-sm); background: var(--danger-bg); border: 2px solid var(--danger); color: #fff; font-weight: 700; }
.form-error { margin: 1rem 0 0; flex-direction: column; }
.form-error p { margin: 0; }
.form-error-actions { display: grid; gap: .6rem; width: 100%; }

.form-summary[hidden], .form-error[hidden] { display: none; }
.form-summary .icon { color: var(--danger); margin-top: .15rem; }
.form-success { text-align: center; padding: 1.5rem .5rem; }
.form-success:focus { outline: none; }
.success-icon { display: grid; place-items: center; width: 80px; height: 80px; margin: 0 auto 1.2rem; border-radius: 50%; background: var(--success); color: #032010; }
.success-icon .icon { width: 44px; height: 44px; stroke-width: 3.5; }
.form-success h3 { font-size: 1.7rem; }
.form-success p { color: var(--text-muted); max-width: 34rem; margin-left: auto; margin-right: auto; font-size: 1.1rem; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-card { padding: 1.5rem; border-radius: var(--radius); border: 2px solid var(--line); background: var(--navy-850); }
.contact-card .why-icon { margin-bottom: .9rem; }
.contact-card h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.contact-card p { margin: 0; color: var(--text-muted); overflow-wrap: anywhere; }
.big-contact { font-size: 1.25rem; font-weight: 700; }

/* ---------- Personvern ---------- */
.section-privacy { padding-top: 0; }
.section-privacy .container { padding-top: 2.5rem; border-top: 2px solid var(--line); }
.section-privacy h2 { font-size: 1.4rem; }
.section-privacy p { color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); border-top: 2px solid var(--line); padding-top: 3rem; }
.footer-grid { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1.2fr; } }
.footer-brand p { color: var(--text-muted); margin-top: 1rem; max-width: 26rem; }
.footer-title { font-size: 1.1rem; color: var(--text); margin-bottom: .8rem; font-weight: 700; }
.footer-col ul { list-style: none; display: grid; gap: .3rem; }
.footer-col a { color: var(--text-muted); display: inline-block; padding: .35rem 0; }
.footer-col a:hover { color: var(--teal-light); }
.footer-contact li { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; color: var(--text-muted); padding: .2rem 0; }
.footer-contact .icon { color: var(--teal-light); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.3rem 1.1rem; border-top: 1px solid var(--line); color: var(--text-muted); }
.footer-bottom p { margin: 0; }
.to-top { display: inline-flex; align-items: center; gap: .4rem; color: var(--text-muted); min-height: 48px; }

.page-404 { text-align: center; }
.page-404 img { margin: 0 auto 1.5rem; }

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

/* ---------- Hindre horisontal rulling på smale skjermer (lange ord, store tekststørrelser) ---------- */
.services-grid > *, .why-grid > *, .steps > *, .booking-wrap > *, .hero-inner > *,
.contact-grid > *, .form-grid > *, .chip-group > *, .footer-grid > * { min-width: 0; }
h1, h2, h3, .btn, .lead, p, li, td, th, label { overflow-wrap: break-word; }
h1, h2, h3 { hyphens: auto; }
fieldset { min-width: 0; }
.chip-box > span, .price-group-title > span, .pr-name, .pr-detail { min-width: 0; overflow-wrap: anywhere; }
.price-notice > strong, .prices-note > span { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
/* Smal skjerm + stor tekst: mindre luft rundt knappene, og telefonnummeret får bryte linje */
@media (max-width: 479px) {
  .help-card { padding: 1.1rem; }
  .btn-lg { padding-left: .9rem; padding-right: .9rem; }
  html[data-text] .phone-num { white-space: normal; }
}

/* Kontakt: sted og åpningstid */
.footer-contact li > span:not(.ph) { flex: 1 1 0; min-width: 0; }
.hours-value { font-weight: 700; }

/* Hjemmebesøk */
.hero-point-home { font-weight: 700; color: #fff; }
.hero-point-home .icon { color: #fde047; stroke-width: 2.5; }
.price-group-home { border-color: #fde047; }
.price-group-intro { margin: 0; padding: 1rem 1.3rem; font-size: 1.12rem; color: #fff; border-bottom: 2px solid var(--line); }
.price-cell-text { white-space: normal; min-width: 10rem; }
.price-group-foot .btn .icon { width: 1.2em; height: 1.2em; }
@media (max-width: 599px) { .price-group-intro { padding: .9rem 1.1rem; } .price-cell-text { min-width: 0; } }
@media (min-width: 640px) { .contact-card-home { grid-column: 1 / -1; } }
.contact-card-home { border-color: #fde047; }
.contact-card-home p { color: #fff; font-size: 1.12rem; }
.contact-card-home .why-icon .icon { color: #fde047; }
/* Radioknapper som store valg: rund markering */
.chip-radio .chip-box::before { border-radius: 50%; }
.chip-radio input:checked + .chip-box::before { background-image: none; box-shadow: inset 0 0 0 4px #050b15; }
fieldset[aria-invalid="true"] .chip-radio .chip-box { border-color: var(--danger); }
.address-field { padding: 1.1rem; border-radius: var(--radius-sm); border: 2px dashed var(--teal); background: rgba(45, 212, 191, .06); }
.address-field[hidden], .chip[hidden] { display: none; }
.help-home { display: flex; align-items: flex-start; gap: .6rem; margin: 0 0 1rem; padding: .7rem .9rem; border-radius: 12px; border: 2px solid #fde047; background: rgba(253, 224, 71, .08); color: #fff; font-weight: 700; overflow-wrap: anywhere; }
.help-home .icon { color: #fde047; flex-shrink: 0; width: 1.4em; height: 1.4em; }

/* Skjulte elementer skal alltid være skjult (også der display er satt) */
[hidden] { display: none !important; }
/* Kontakt uten e-post: tre kort i bredden */
@media (min-width: 900px) { .contact-grid.no-email { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .contact-grid.no-email .contact-card-hours { grid-column: 1 / -1; } }
