:root {
  --primary: #2c4a5b;
  --secondary: #0f2a3a;
  --accent: #e0893a;
  --accent-hover: #ea9a55;
  --link: #9a4f0f;
  --link-hover: #7a3e0a;
  --muted: #7e8d96;
  --bg: #f9f9f9;
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.65; color: var(--primary); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; color: var(--secondary); }
h1 { font-size: clamp(2rem, 1.4rem + 2.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; box-shadow: 0 0 0 2px var(--secondary); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.small { font-size: .9rem; color: var(--muted); }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* Header */
.site-header { background: var(--secondary); position: sticky; top: 0; z-index: 50; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; font-size: 1.25rem; }
.brand img { display: block; height: 52px; width: auto; }
@media (max-width: 480px) { .brand img { height: 44px; } }
.brand:hover { color: #fff; }
#nav { display: flex; align-items: center; gap: 24px; }
#nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
#nav ul a { color: #e6ebef; text-decoration: none; font-weight: 600; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
#nav ul a:hover, #nav ul a[aria-current="page"] { color: #fff; border-bottom-color: var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--muted); color: #fff; padding: 8px 14px; border-radius: 6px; font: inherit; cursor: pointer; }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: var(--secondary); padding: 13px 26px; border-radius: 6px; font: inherit; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; }
.btn:hover { background: var(--accent-hover); color: var(--secondary); }
.btn-sm { padding: 9px 18px; font-size: .95rem; }
.link-light { color: #fff; font-weight: 600; margin-left: 18px; }
.link-light:hover { color: #fff; }

/* Hero & page heads */
.hero { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; }
.hero-body { padding: 96px 20px 88px; max-width: 860px; }
.hero h1 { color: #fff; }
.hero .lead { color: #e6ebef; }
.hero .small { color: #aab6bd; margin-top: 28px; }
.lead { font-size: 1.2rem; }
.page-head { background: #fff; border-bottom: 1px solid #e4e8eb; padding: 56px 0 40px; }
.page-head h1 { margin-bottom: .3em; }
.page-head .lead { margin: 0; }

/* Sections */
.section { padding: 64px 0; }
.section.alt { background: #fff; }
.section.dark { background: var(--secondary); color: #e6ebef; }
.section.dark h2 { color: #fff; }
.section.cta { background: var(--primary); color: #e6ebef; text-align: center; }
.section.cta h2 { color: #fff; }

.list { padding-left: 1.2em; }
.list li { margin-bottom: .5em; }
.callout { border-left: 4px solid var(--accent); padding: 4px 0 4px 18px; font-weight: 600; font-size: 1.1rem; margin-top: 28px; }
.steps { padding-left: 1.3em; }
.steps li { margin-bottom: 1em; padding-left: .3em; }
.steps li::marker { color: var(--link); font-weight: 700; }
.service { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid #e4e8eb; }
.service:last-child { border-bottom: 0; margin-bottom: 0; }

.grid { display: grid; gap: 24px; margin-top: 32px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid #e4e8eb; border-top: 4px solid var(--accent); border-radius: 8px; padding: 28px 24px 12px; }
.section.alt .card { background: var(--bg); }

details { background: var(--bg); border: 1px solid #e4e8eb; border-radius: 8px; padding: 14px 18px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; }
blockquote { margin: 0; font-size: 1.2rem; }
blockquote footer { color: var(--muted); font-size: .95rem; margin-top: 8px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
form label { display: block; font-weight: 600; margin-bottom: 18px; }
form small { font-weight: 400; color: var(--muted); }
.req { color: var(--link); }
form input:not([type="checkbox"]), form select, form textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; font: inherit; border: 1px solid #c5ced4; border-radius: 6px; background: #fff; color: var(--primary); }
form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
form .check input { margin-top: 6px; }


/* Footer */
.footer { background: var(--secondary); color: #c9d2d8; padding: 36px 0; font-size: .95rem; }
.footer .container { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer a { color: #fff; }
.foot-right { text-align: right; }

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  #nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--secondary); flex-direction: column; align-items: flex-start; padding: 8px 20px 24px; gap: 16px; }
  #nav.open { display: flex; }
  #nav ul { flex-direction: column; gap: 6px; }
  .grid-3, .contact-grid { grid-template-columns: 1fr; }
  .hero-body { padding: 64px 20px; }
  .link-light { display: inline-block; margin: 16px 0 0; }
  .foot-right { text-align: left; }
}

/* Kjenner du deg att? */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 36px 0; }
.tile { background: #fff; border: 1px solid #e4e8eb; border-radius: 12px; padding: 24px; position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(15, 42, 58, .12); border-color: var(--accent); }
.tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.tile .ico { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 12px; background: #fbeee4; color: var(--link); margin-bottom: 16px; transition: background .2s, color .2s; }
.tile:hover .ico { background: var(--accent); color: var(--secondary); }
.tile h3 { margin-bottom: .3em; }
.tile p { margin: 0; color: #54646f; }
.banner { background: var(--secondary); color: #fff; border-radius: 12px; padding: 28px 32px; font-size: 1.2rem; font-weight: 600; text-align: center; margin: 0; }
@media (max-width: 800px) { .tiles { grid-template-columns: 1fr; } .banner { padding: 22px; } }

/* Fliser med bilete */
.tile { padding: 0; }
.tile::before { display: none; }
.tile img { display: block; width: 100%; height: auto; transition: transform .3s; }
.tile:hover img { transform: scale(1.04); }
.tile-body { padding: 20px 24px 24px; border-top: 4px solid var(--accent); position: relative; background: #fff; }

/* Meir visuelle lister */
.stepcards { list-style: none; padding: 0; margin: 36px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.stepcards li { background: #fff; border: 1px solid #e4e8eb; border-radius: 12px; padding: 28px 24px; position: relative; }
.stepcards li:not(:last-child)::after { content: "→"; position: absolute; right: -20px; top: 38px; width: 16px; text-align: center; font-size: 1.4rem; color: var(--link); z-index: 1; }
.badge { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--secondary); font-weight: 700; margin-bottom: 14px; }
.stepcards p, .timeline p { margin: 0; color: #54646f; }
.timeline { list-style: none; padding: 0; margin: 28px 0 0; position: relative; }
.timeline li { display: flex; gap: 20px; position: relative; padding-bottom: 28px; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: #e4cdbd; }
.timeline .badge { flex: none; margin: 0; }
.timeline h3 { margin: 6px 0 .2em; }

.gridtiles { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gridtiles li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid #e4e8eb; border-radius: 12px; padding: 18px 20px; font-weight: 600; transition: transform .2s, box-shadow .2s; }
.section.alt .gridtiles li { background: var(--bg); }
.gridtiles li:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(15, 42, 58, .1); }
.mark, .list.check li::before { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat; }
.gridtiles.no .mark { background-color: var(--muted); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E"); }
.list.check { list-style: none; padding: 0; }
.list.check li { display: flex; gap: 12px; align-items: flex-start; }
.list.check li::before { content: ""; margin-top: 2px; width: 22px; height: 22px; background-size: 13px; }
.service { background: #fff; border: 1px solid #e4e8eb; border-top: 4px solid var(--accent); border-radius: 12px; padding: 28px; margin-bottom: 24px; }
.service:last-child { margin-bottom: 0; }
.service h2 { margin-bottom: .4em; }

@media (max-width: 800px) {
  .stepcards, .gridtiles { grid-template-columns: 1fr; }
  .stepcards li:not(:last-child)::after { content: "↓"; right: auto; left: 40px; top: auto; bottom: -26px; }
}

.prose h2 { margin-top: 1.8em; font-size: 1.4rem; }
.prose h2:first-child { margin-top: 0; }
.todo { background: #fff3c4; padding: 0 4px; border-radius: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-error { color: #b3261e; font-weight: 600; margin-top: 16px; }

.mark.big { display: inline-block; width: 72px; height: 72px; background-size: 40px; margin-bottom: 16px; }
.link-dark { margin-left: 18px; font-weight: 600; }

/* Personvern */
.summary { background: #fff; border: 1px solid #e4e8eb; border-left: 4px solid var(--accent); border-radius: 12px; padding: 24px 28px; margin-bottom: 8px; }
.summary h2 { margin-top: 0; font-size: 1.3rem; }
.summary .list { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid #e4e8eb; border-radius: 12px; background: #fff; }
.datatable { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .92rem; }
.datatable th { text-align: left; background: var(--secondary); color: #fff; padding: 12px 14px; }
.datatable td { padding: 12px 14px; vertical-align: top; border-top: 1px solid #e4e8eb; }
.datatable td:first-child { font-weight: 600; }
.prose h2[id] { scroll-margin-top: 90px; }
.form-note { margin: 0 0 18px; }
