:root {
  --ink: #1c1f24;
  --ink-2: #2a2f37;
  --text: #2b2f36;
  --muted: #5f6672;
  --line: #e3e5e8;
  --bg: #ffffff;
  --tint: #f2f5fa;
  /* Kursconsult-blå (fra logoen) */
  --accent: #0b5cf6;
  --accent-ink: #ffffff;
  --accent-dark: #0848c9;
  --accent-light: #5aa9ff;
  --accent-grad: linear-gradient(135deg, #2aa8e6, #0b5cf6);
  --radius: 10px;
  --wrap: 1160px;
  --head: "Archivo", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.015em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  font-family: var(--head);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: .8em;
}

/* Knapper */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em;
  padding: .85em 1.4em;
  font-family: var(--head); font-weight: 700; font-size: 1rem;
  background: var(--accent); color: var(--accent-ink);
  border: 2px solid var(--accent);
  border-radius: 6px;
  text-decoration: none; cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn--small { padding: .55em 1em; font-size: .95rem; }
.btn--full { width: 100%; }

/* Toppmeny */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(28,31,36,.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: #fff; font-family: "Montserrat", var(--head); font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }
.logo img { flex: none; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: #d6d9de; text-decoration: none; font-weight: 500; font-size: .97rem; }
.nav a:not(.btn):hover { color: #fff; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform .2s, opacity .2s; }

/* Hero */
.hero { position: relative; background: var(--ink); color: #d6d9de; overflow: hidden; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 40%, transparent);
}
.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
  padding-top: 88px; padding-bottom: 96px;
}
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--accent-light); }
.lead { font-size: 1.15rem; max-width: 36em; color: #c3c7ce; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .95rem; }
.checks li { position: relative; padding-left: 26px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center/100% no-repeat;
}
h1 .eyebrow { display: block; font-size: .82rem; line-height: 1.6; letter-spacing: .14em; }
.hero__photo { margin: 0 0 0 auto; max-width: 440px; position: relative; }
.hero__photo img {
  width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 12px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
}
.hero__photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 3px solid var(--accent); border-radius: 12px; z-index: -1;
}
.hero__inner { isolation: isolate; }

/* Galleri */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 280px; gap: 14px; }
.gallery__item { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: #ddd; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item:nth-child(2) { grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery__item:hover img { transform: scale(1.03); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: #fff; font-family: var(--head); font-weight: 700; font-size: .98rem;
}

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; position: relative;
  font-family: var(--head); font-weight: 700; color: var(--ink); font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 500; color: var(--accent-dark);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* Skjema-ekstra */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.section--tint .form { background: #fff; box-shadow: 0 20px 40px -30px rgba(0,0,0,.35); }
.form__note { margin: 0; font-size: .85rem; color: var(--muted); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Seksjoner */
.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section--tint-alt { background: #fff; border-top: 1px solid var(--line); }
.section--tint-alt .values li { background: var(--tint); }
.section--dark { background: var(--ink); color: #c3c7ce; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: var(--accent-light); }
.section__head { max-width: 680px; margin-bottom: 48px; }
.section__head p:last-child { color: var(--muted); font-size: 1.08rem; }

/* Kort */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: var(--accent); box-shadow: 0 10px 30px -18px rgba(0,0,0,.35); transform: translateY(-2px); }
.card p { color: var(--muted); margin: 0; }
.card__icon {
  width: 48px; height: 48px; border-radius: 8px; background: var(--ink);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent-light); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Steg */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { padding: 28px 24px; border-top: 3px solid var(--accent-light); background: var(--ink-2); border-radius: 0 0 var(--radius) var(--radius); }
.steps__n { display: block; font-family: var(--head); font-weight: 800; font-size: 2.2rem; color: var(--accent-light); margin-bottom: 10px; }
.steps p { margin: 0; font-size: .97rem; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.split > div > p { color: var(--muted); }
.areas { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.areas li {
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.areas li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); flex: none; }

.values { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.values li { background: #fff; border-radius: var(--radius); padding: 20px 22px; border-left: 4px solid var(--accent); }
.values strong { display: block; font-family: var(--head); color: var(--ink); font-size: 1.08rem; }
.values span { color: var(--muted); }

/* Kontakt */
.split--contact { grid-template-columns: .9fr 1.1fr; }
.contact { margin: 28px 0 0; display: grid; gap: 14px; }
.contact div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.contact dt { color: var(--muted); font-size: .92rem; }
.contact dd { margin: 0; font-weight: 600; color: var(--ink); }
.contact a { text-decoration: none; }
.contact a:hover { text-decoration: underline; }

.form { background: var(--tint); padding: 32px; border-radius: 14px; display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--ink); }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; color: var(--text);
  padding: 12px 14px; border: 1px solid #cfd3d8; border-radius: 6px; background: #fff; width: 100%;
}
.form textarea { resize: vertical; }
.form .invalid { border-color: #c4361c; }
.form__msg { margin: 0; font-size: .95rem; min-height: 1.4em; }
.form__msg.ok { color: #1d7a3e; }
.form__msg.err { color: #c4361c; }

/* Footer */
.footer { background: var(--ink); color: #9aa1ab; padding: 40px 0; font-size: .93rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer p { margin: 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }

/* Responsivt */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 64px; }
  .hero__photo { max-width: 520px; margin: 8px auto 0 0; }
  .hero__photo img { aspect-ratio: 4 / 3; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split, .split--contact { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: 8px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav .btn { margin-top: 14px; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .cards, .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .gallery__item--wide { grid-column: auto; }
  .gallery__item:nth-child(2) { grid-row: auto; }
  .hero__photo::before { inset: 12px -10px -10px 12px; }
  .areas { grid-template-columns: repeat(2, 1fr); }
  .form { padding: 22px; }
  .form .row { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Stillashenger */
.section--line { border-top: 1px solid var(--line); }
.trailer { display: grid; grid-template-columns: 1fr 1fr 1.05fr; gap: 20px; align-items: stretch; }
.trailer__opt {
  position: relative; display: flex; flex-direction: column;
  padding: 30px 28px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
}
.trailer__opt--featured { border: 2px solid var(--accent); box-shadow: 0 20px 40px -28px rgba(0,0,0,.4); }
.trailer__opt p { color: var(--muted); }
.trailer__opt .btn { margin-top: auto; }
.trailer__icon { width: 52px; height: 52px; border-radius: 10px; background: var(--accent-grad); display: grid; place-items: center; margin-bottom: 18px; }
.trailer__icon svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trailer__price { font-weight: 600; color: var(--ink) !important; margin: 4px 0 20px; }
.badge {
  position: absolute; top: -12px; right: 20px; background: var(--accent); color: #fff;
  font-family: var(--head); font-weight: 800; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 99px;
}
.btn--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); border-color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; color: var(--text); font-size: .97rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center/100% no-repeat;
}
.trailer__info { background: var(--ink); color: #c3c7ce; border-radius: 14px; padding: 30px 28px; font-size: .95rem; }
.trailer__info h3 { color: #fff; font-size: 1.08rem; }
.trailer__info h3 + p, .trailer__info h3:not(:first-child) { margin-top: 6px; }
.trailer__info .ticks li { color: #d6d9de; }
.trailer__info a { color: var(--accent-light); }
.trailer__info strong { color: #fff; }
@media (max-width: 960px) {
  .trailer { grid-template-columns: 1fr 1fr; }
  .trailer__info { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .trailer { grid-template-columns: 1fr; }
  .trailer__opt--featured { order: -1; }
}
