@font-face {
  font-family: "InterVar";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "InterVar";
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============================================================
   GLC Satcom – designsystem
   Palett verifisert mot WCAG med tools/contrast.mjs (npm run check).
   Lys modus er standard. Mørk modus følger systemet, og kan overstyres.
   ============================================================ */

:root {
  color-scheme: light dark;

  /* --- Lys palett (standard) --- */
  --c-bg:        #ffffff;
  --c-surface:   #f2f6f9;
  --c-surface-2: #e3ebf1;
  --c-line:      #b9c9d4;
  --c-line-soft: #d7e2e9;
  --c-text:      #0a1922;   /* 17.9:1 mot bakgrunn – AAA */
  --c-muted:     #3b5462;   /*  8.0:1 – AAA           */
  --c-brand:     #005a8c;   /*  7.4:1 – AAA           */
  --c-brand-h:   #00466e;
  --c-on-brand:  #ffffff;
  --c-accent:    #b23c00;   /*  5.9:1 – AA            */
  --c-shadow:    18 51 70;

  /* Typografi */
  --font: "InterVar", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-hero: clamp(2.1rem, 1.3rem + 3.2vw, 3.7rem);
  --fs-h2:   clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem);
  --fs-h3:   clamp(1.08rem, 1rem + 0.35vw, 1.28rem);
  --fs-lead: clamp(1.06rem, 1rem + 0.35vw, 1.24rem);
  --fs-sm:   0.95rem;

  /* Layout */
  --wrap: 1180px;
  --gap: clamp(1rem, 0.6rem + 1.3vw, 1.9rem);
  --sec-y: clamp(3.2rem, 2rem + 4.5vw, 6rem);
  --radius: 12px;
  --radius-lg: 18px;
  --tap: 44px;              /* minste klikkflate (WCAG 2.2 2.5.8) */
  --shadow: 0 10px 30px -14px rgb(var(--c-shadow) / 0.35);
}

/* --- Mørk palett --- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-bg:        #07161e;
    --c-surface:   #0e212b;
    --c-surface-2: #16303c;
    --c-line:      #2c4c5b;
    --c-line-soft: #1d3a47;
    --c-text:      #e9f2f7;   /* 16.2:1 – AAA */
    --c-muted:     #a9c1ce;   /*  9.8:1 – AAA */
    --c-brand:     #5cbdec;   /*  8.7:1 – AAA */
    --c-brand-h:   #8ad2f5;
    --c-on-brand:  #04141d;
    --c-accent:    #ff9c5b;   /*  8.9:1 – AAA */
    --c-shadow:    0 0 0;
    --shadow: 0 14px 36px -16px rgb(0 0 0 / 0.7);
  }
}
:root[data-theme="dark"] {
  --c-bg:        #07161e;
  --c-surface:   #0e212b;
  --c-surface-2: #16303c;
  --c-line:      #2c4c5b;
  --c-line-soft: #1d3a47;
  --c-text:      #e9f2f7;
  --c-muted:     #a9c1ce;
  --c-brand:     #5cbdec;
  --c-brand-h:   #8ad2f5;
  --c-on-brand:  #04141d;
  --c-accent:    #ff9c5b;
  --c-shadow:    0 0 0;
  --shadow: 0 14px 36px -16px rgb(0 0 0 / 0.7);
}

/* Brukere som ber om ekstra kontrast får rene svart/hvitt-kanter */
@media (prefers-contrast: more) {
  :root { --c-muted: var(--c-text); --c-line: currentColor; --c-line-soft: currentColor; }
}

/* Større tekst-modus */
html.text-lg { font-size: 118.75%; }

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;         /* 17px – litt over standard for lesbarhet */
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--c-brand); text-decoration-thickness: max(1px, .06em); text-underline-offset: .22em; }
a:hover { color: var(--c-brand-h); }

:focus-visible {
  outline: 3px solid var(--c-brand);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.018em; }
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--sec-y); }
.section.alt { background: var(--c-surface); border-block: 1px solid var(--c-line-soft); }

.eyebrow {
  display: block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--c-accent); margin-bottom: .75rem;
}
.lead { font-size: var(--fs-lead); color: var(--c-muted); max-width: 64ch; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 999;
  background: var(--c-brand); color: var(--c-on-brand); font-weight: 700;
  padding: .8rem 1.2rem; border-radius: 0 0 10px 10px; text-decoration: none;
}
.skip:focus { top: 0; color: var(--c-on-brand); }

/* ---------------------------------------------------- Knapper */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: var(--tap); padding: .7rem 1.4rem; border-radius: 999px;
  font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--c-brand); color: var(--c-on-brand); }
.btn-primary:hover { background: var(--c-brand-h); color: var(--c-on-brand); }
.btn-ghost { border-color: var(--c-line); color: var(--c-text); background: transparent; }
.btn-ghost:hover { border-color: var(--c-brand); color: var(--c-brand); }
.btn-sm { min-height: 38px; padding: .45rem 1rem; font-size: .93rem; }

.arrowlink {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 620;
  min-height: 32px; text-decoration: none;
}
.arrowlink:hover { text-decoration: underline; }

/* ---------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--c-bg); border-bottom: 1px solid var(--c-line-soft);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 76px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--c-text); }

/* Logo – maske gjør at fargen arves fra teksten, så samme fil virker i
   både lys og mørk modus, og i utskrift. */
.logo-img {
  display: block;
  width: clamp(132px, 12vw, 168px);
  aspect-ratio: 526 / 188;
  background-color: currentColor;
  -webkit-mask: url("/assets/img/logo.svg") left center / contain no-repeat;
  mask: url("/assets/img/logo.svg") left center / contain no-repeat;
}
.site-footer .logo-img { width: 150px; }
@media (max-width: 420px) { .logo-img { width: 118px; } }

.nav { margin-left: auto; display: flex; align-items: center; gap: .05rem; }
.nav > * { position: relative; }
.navlink {
  display: inline-flex; align-items: center; gap: .3rem; min-height: 40px; white-space: nowrap;
  color: var(--c-text); text-decoration: none; font-size: .98rem; font-weight: 560;
  padding: .4rem .55rem; border-radius: 8px; background: none; border: 0; font-family: inherit; cursor: pointer;
}
.navlink:hover { background: var(--c-surface); color: var(--c-brand); }
.navlink[aria-current="page"] { color: var(--c-brand); box-shadow: inset 0 -3px 0 var(--c-brand); border-radius: 8px 8px 0 0; }

.submenu {
  position: absolute; left: 0; top: calc(100% + 4px); min-width: 250px; z-index: 120;
  background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: .35rem; display: none;
}
.submenu.open { display: block; }
.submenu a {
  display: block; padding: .6rem .75rem; border-radius: 8px; min-height: 40px;
  color: var(--c-text); text-decoration: none; font-size: .96rem;
}
.submenu a:hover { background: var(--c-surface); color: var(--c-brand); }
.submenu a[aria-current="page"] { color: var(--c-brand); font-weight: 650; }

.header-tools { display: flex; align-items: center; gap: .35rem; }
.icon-btn {
  min-height: 40px; min-width: 40px; padding: .35rem .6rem;
  background: transparent; border: 1px solid var(--c-line); color: var(--c-text);
  border-radius: 9px; cursor: pointer; font: inherit; font-size: .88rem; font-weight: 650;
  display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
}
.icon-btn:hover { border-color: var(--c-brand); color: var(--c-brand); }
.icon-btn[aria-pressed="true"] { background: var(--c-brand); color: var(--c-on-brand); border-color: var(--c-brand); }

.burger { display: none; }
@media (max-width: 1240px) {
  .burger { display: inline-flex; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; max-height: calc(100dvh - 76px); overflow: auto;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--c-bg); border-bottom: 1px solid var(--c-line);
    padding: .6rem 1.25rem 1.6rem; display: none;
  }
  .nav.open { display: flex; }
  .navlink { justify-content: space-between; padding: .85rem .4rem; font-size: 1.05rem; border-bottom: 1px solid var(--c-line-soft); border-radius: 0; }
  .submenu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 .5rem .8rem; }
  .submenu a { font-size: 1rem; }
  .nav .btn { margin-top: 1rem; }
}

/* ---------------------------------------------------- Brødsmuler */
.crumbs { font-size: .9rem; color: var(--c-muted); padding-top: 1.4rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.crumbs li::after { content: "/"; margin-left: .4rem; color: var(--c-line); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--c-muted); }

/* ---------------------------------------------------- Hero */
.hero { padding-block: clamp(2.6rem, 1.6rem + 4vw, 5rem) var(--sec-y); background: var(--c-surface); border-bottom: 1px solid var(--c-line-soft); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { max-width: 18ch; }
.hero .lead { color: var(--c-text); opacity: .88; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-visual { display: grid; place-items: center; }
.hero-visual svg { width: min(100%, 320px); }
@media (max-width: 900px) { .hero-visual { display: none; } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.6rem; }
@media (max-width: 620px) { .stats { grid-template-columns: 1fr; gap: .8rem; } }
.stat { border-left: 3px solid var(--c-brand); padding-left: .85rem; }
.stat b { display: block; font-size: 1.28rem; line-height: 1.25; }
.stat span { font-size: .92rem; color: var(--c-muted); }

/* Sidetopp på undersider */
.pagehero { padding-block: 2.2rem clamp(2.2rem, 1.5rem + 2vw, 3.4rem); border-bottom: 1px solid var(--c-line-soft); }
.pagehero h1 { max-width: 20ch; }

/* ---------------------------------------------------- Partnere */
.partners { background: var(--c-bg); border-bottom: 1px solid var(--c-line-soft); padding-block: 1.5rem; }
.partners-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 2rem; }
.partners h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); margin: 0; font-weight: 700; }
.partner { font-size: 1.02rem; font-weight: 650; }

/* ---------------------------------------------------- Grid og kort */
.grid { display: grid; gap: var(--gap); }
.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 1000px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 680px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--c-bg); border: 1px solid var(--c-line);
  border-radius: var(--radius-lg); padding: 1.5rem 1.4rem;
  display: flex; flex-direction: column;
}
.section.alt .card { background: var(--c-bg); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--c-muted); font-size: var(--fs-sm); }
.card ul { margin: .9rem 0 0; padding: 0; list-style: none; }
.card li { position: relative; padding-left: 1.25rem; font-size: .92rem; color: var(--c-muted); margin-bottom: .4rem; }
.card li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--c-brand); }
.card .arrowlink { margin-top: auto; padding-top: 1rem; }
.card-icon {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: var(--c-surface-2); color: var(--c-brand); margin-bottom: 1rem;
}

.sec-head { max-width: 720px; margin-bottom: clamp(1.6rem, 3vw, 2.6rem); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 4vw, 4rem); align-items: start; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.checks { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.checks li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; color: var(--c-text); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .34em; width: 1.2rem; height: 1.2rem;
  border-radius: 50%; background: var(--c-brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm4.7 7.7-5.4 5.4a1 1 0 0 1-1.4 0l-2.6-2.6 1.4-1.4 1.9 1.9 4.7-4.7 1.4 1.4Z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm4.7 7.7-5.4 5.4a1 1 0 0 1-1.4 0l-2.6-2.6 1.4-1.4 1.9 1.9 4.7-4.7 1.4 1.4Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Dører – de to hovedinngangene på forsiden */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
@media (max-width: 820px) { .doors { grid-template-columns: 1fr; } }
.door {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--c-bg); border: 2px solid var(--c-line); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.1rem);
  transition: border-color .18s ease, transform .18s ease;
}
.door:hover { border-color: var(--c-brand); transform: translateY(-3px); color: inherit; }
.door:hover .arrowlink { text-decoration: underline; }
.door h3 { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.5rem); margin-bottom: .5rem; }
.door p { color: var(--c-muted); }
.door ul { list-style: none; margin: .4rem 0 0; padding: 0; }
.door li { position: relative; padding-left: 1.25rem; font-size: .93rem; color: var(--c-muted); margin-bottom: .4rem; }
.door li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--c-brand); }
.door .arrowlink { margin-top: auto; padding-top: 1.2rem; color: var(--c-brand); font-size: 1.02rem; }

/* Knappen for større tekst skal være til å få øye på */
.tekst-btn { padding-inline: .7rem; }
.tekst-btn .btn-tekst { font-size: .88rem; }
@media (max-width: 1560px) { .tekst-btn .btn-tekst { display: none; } }

/* Faktatabell */
.facts { border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; }
.facts caption { text-align: left; padding: .9rem 1.1rem; font-weight: 700; background: var(--c-surface-2); }
.facts table { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: left; padding: .75rem 1.1rem; border-top: 1px solid var(--c-line-soft); font-size: var(--fs-sm); vertical-align: top; }
.facts th { color: var(--c-muted); font-weight: 560; width: 45%; }

.note { border-left: 4px solid var(--c-accent); background: var(--c-surface); padding: 1.1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; }
.note h3 { margin-bottom: .35rem; }
.note p { margin: 0; color: var(--c-muted); font-size: var(--fs-sm); }

/* Servicelenker */
.svc { display: flex; gap: 1rem; padding: 1.15rem 0; border-top: 1px solid var(--c-line-soft); }
.svc:last-child { border-bottom: 1px solid var(--c-line-soft); }
.svc-n { color: var(--c-brand); font-weight: 700; font-variant-numeric: tabular-nums; font-size: .88rem; padding-top: .3rem; min-width: 2.2rem; }
.svc h3 { margin-bottom: .2rem; }
.svc h3 a { text-decoration: none; color: var(--c-text); }
.svc h3 a:hover { color: var(--c-brand); text-decoration: underline; }
.svc p { margin: 0; color: var(--c-muted); font-size: var(--fs-sm); }

/* Steg */
.steps { counter-reset: s; display: grid; gap: var(--gap); grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }
.step { border-top: 3px solid var(--c-brand); padding-top: 1rem; }
.step b { display: block; color: var(--c-brand); font-variant-numeric: tabular-nums; font-size: .88rem; margin-bottom: .3rem; }
.step p { color: var(--c-muted); font-size: var(--fs-sm); margin: 0; }

/* Sitater */
.quote { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 1.5rem 1.4rem; margin: 0; display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 1.2rem; font-size: 1.03rem; }
.quote blockquote p { max-width: none; margin: 0; }
.quote cite { margin-top: auto; font-style: normal; font-size: .92rem; }
.quote cite b { display: block; }
.quote cite span { color: var(--c-muted); }

/* Manualer */
.manuals { display: grid; gap: var(--gap); grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 820px) { .manuals { grid-template-columns: 1fr; } }
.manual h3 { border-bottom: 2px solid var(--c-brand); padding-bottom: .5rem; }
.manual ul { list-style: none; margin: 0; padding: 0; }
.manual li { border-bottom: 1px solid var(--c-line-soft); }
.manual li a, .manual li span { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--tap); padding: .6rem 0; color: var(--c-text); text-decoration: none; }
.manual li a:hover { color: var(--c-brand); }
.manual li span { color: var(--c-muted); }
.manual li em { font-style: normal; font-size: .82rem; color: var(--c-muted); }

/* Lokasjoner */
.loc { display: flex; gap: 1rem; }
.loc .card-icon { margin-bottom: 0; flex: 0 0 42px; }
.loc h3 { margin-bottom: .3rem; }
.loc address { font-style: normal; color: var(--c-muted); font-size: var(--fs-sm); line-height: 1.8; }
.loc address a { color: var(--c-text); }

/* CTA-bånd */
.band {
  background: var(--c-surface-2); border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.2rem); display: flex; flex-wrap: wrap; gap: 1.2rem;
  align-items: center; justify-content: space-between;
}
.band h2 { font-size: var(--fs-h3); margin: 0 0 .25rem; }
.band p { margin: 0; color: var(--c-muted); font-size: var(--fs-sm); }

/* ---------------------------------------------------- Skjema */
.form-wrap { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: clamp(1.3rem, 3vw, 2rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .92rem; font-weight: 640; margin-bottom: .35rem; }
.field .req { color: var(--c-accent); }
.field input, .field select, .field textarea {
  width: 100%; min-height: var(--tap); background: var(--c-bg); color: var(--c-text);
  border: 1px solid var(--c-line); border-radius: 9px; padding: .65rem .8rem; font: inherit; font-size: 1rem;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--c-muted); opacity: 1; }
.hint { font-size: .85rem; color: var(--c-muted); margin: .3rem 0 0; }
.hp { position: absolute; left: -9999px; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .93rem; margin: 1rem 0 1.3rem; }
.consent input { width: 22px; height: 22px; flex: 0 0 22px; margin-top: .15rem; accent-color: var(--c-brand); }
.form-msg { margin-top: 1rem; padding: .85rem 1rem; border-radius: 9px; font-size: .95rem; display: none; }
.form-msg.ok  { display: block; background: var(--c-surface); border: 1px solid var(--c-brand); border-left-width: 4px; }
.form-msg.err { display: block; background: var(--c-surface); border: 1px solid var(--c-accent); border-left-width: 4px; }

/* ---------------------------------------------------- Footer */
.site-footer { background: var(--c-surface); border-top: 1px solid var(--c-line-soft); padding-block: 3rem 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: .82rem; letter-spacing: .11em; text-transform: uppercase; color: var(--c-muted); margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 34px; color: var(--c-text); text-decoration: none; font-size: .96rem; }
.site-footer li a:hover { color: var(--c-brand); text-decoration: underline; }
.site-footer p { color: var(--c-muted); font-size: .95rem; }
.footer-bottom { margin-top: 2.2rem; padding-top: 1.3rem; border-top: 1px solid var(--c-line); display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; font-size: .9rem; color: var(--c-muted); }
.social { display: flex; gap: .5rem; margin-top: .9rem; }
.social a { width: var(--tap); height: var(--tap); border: 1px solid var(--c-line); border-radius: 9px; display: grid; place-items: center; color: var(--c-text); }
.social a:hover { border-color: var(--c-brand); color: var(--c-brand); }

/* ---------------------------------------------------- Cookie */
.cookie {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 200; max-width: 660px; margin-inline: auto;
  background: var(--c-bg); border: 2px solid var(--c-brand); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.1rem 1.2rem; display: none; gap: 1rem; flex-wrap: wrap; align-items: center;
}
.cookie.show { display: flex; }
.cookie p { margin: 0; font-size: .94rem; flex: 1 1 260px; }
.cookie .actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ---------------------------------------------------- Prose */
.prose h2 { margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--c-muted); }

@media print {
  .site-header, .cookie, .site-footer, .hero-visual { display: none !important; }
  body { color: #000; background: #fff; }
}
