/* Websnekker – felles stil */
@font-face { font-family: "DM Sans"; src: url("/fonts/dmsans-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dmsans-medium.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dmsans-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
/* Source Serif 4 (SIL OFL): overskrifter med display-snitt, ingresser med tekst-snitt */
@font-face { font-family: "Serif Display"; src: url("/fonts/serif-display.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Serif Tekst"; src: url("/fonts/serif-tekst.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --ink: #16261F;
  --ink2: #26372F;
  --accent: #14402F;
  --accent-dk: #0D2D21;
  --gronn-mork: #12352A;
  --messing: #A88A5A;
  --wood: #F1E8DA;
  --bg: #F9F2E7;
  --card: #FFFFFF;
  --muted: #5E625B;
  --line: #E4DACA;
  --radius: 14px;
  --wrap: 1180px;
  --serif: "Serif Display", Georgia, "Times New Roman", serif;
  --serif-tekst: "Serif Tekst", Georgia, "Times New Roman", serif;
  --skygge: 0 18px 40px rgba(60,40,20,.10), 0 2px 6px rgba(60,40,20,.06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); font-size: 17px; line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; top: 8px; }

/* typografi */
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.015em; }
h1 { font-size: clamp(2.3rem, 5vw, 4.1rem); line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); line-height: 1.1; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { color: var(--muted); }
.kicker { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.lead { font-family: var(--serif-tekst); font-size: 1.2rem; line-height: 1.55; max-width: 640px; color: #5A5650; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* knapper */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border-radius: 8px; font-weight: 700; text-decoration: none; font-size: 1.02rem; border: 1.5px solid transparent; transition: transform .15s, background .15s, box-shadow .15s; cursor: pointer; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn .pil { width: 18px; height: 18px; transition: transform .15s; }
.btn:hover .pil { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(20,64,47,.25); }
.btn-primary:hover { background: var(--accent-dk); }
.btn-ghost { border-color: rgba(27,36,48,.35); color: var(--ink); background: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: var(--ink); background: #fff; }
.on-dark .btn-ghost { color: #fff; }

/* toppmeny */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(249,242,231,.92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 1.45rem; letter-spacing: -.02em; }
.logo svg { width: 42px; height: 42px; }
.logo span b { color: var(--accent); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 1rem; }
.nav a:hover { color: var(--accent); }
.nav .btn { padding: 12px 20px; font-size: .98rem; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; border-radius: 2px; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { position: absolute; top: 80px; left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; justify-content: center; border-bottom: 0; }
}

/* seksjoner */
section { padding: 88px 0; }
.sec-head { margin-bottom: 44px; }
.sec-head p { margin-top: 14px; }
.alt { background: var(--wood); }
.dark { background: var(--gronn-mork); color: #fff; }
.dark p { color: rgba(255,255,255,.78); }

/* hero: tekst til venstre, fotoscene med laptoper som glir inn fra høyre */
.hero { position: relative; overflow: hidden; padding: 88px 0 100px; background: linear-gradient(100deg, #F4EFE8 0%, #F2ECE4 48%, #E8DDD1 100%); }
.hero .wrap { position: relative; z-index: 2; }
.hero-tekst { max-width: 530px; }
.hero h1 { font-size: clamp(2.5rem, 4.6vw, 4.1rem); }
.hero h1 span { color: var(--accent); }
.hero .lead { margin-top: 26px; font-size: 1.24rem; }
.hero .cta-row, .brand-sek .cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.topp-punkter { display: flex; flex-wrap: wrap; gap: 14px 20px; margin-top: 40px; list-style: none; }
.topp-punkter li { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 500; line-height: 1.25; color: var(--ink2); }
.topp-punkter svg { width: 26px; height: 26px; color: var(--accent); flex: none; }
.hero-foto { position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; width: min(55%, 900px); }
.hero-foto img { width: 100%; height: 100%; object-fit: cover; object-position: right center;
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.6) 16%, #000 32%); mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.6) 16%, #000 32%); }
@media (max-width: 1320px) { .hero-foto { width: 49%; } .hero-tekst { max-width: 480px; } .hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.4rem); } }
@media (max-width: 1100px) {
  .hero { padding: 56px 0 0; }
  .hero-tekst { max-width: none; }
  .hero-foto { position: relative; width: 100%; max-width: 980px; margin: 36px auto 0; }
  .hero-foto img { height: auto; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%); mask-image: linear-gradient(to bottom, transparent 0, #000 18%); }
}
@media (max-width: 520px) { .topp-punkter { gap: 14px 22px; } .topp-punkter li { width: calc(50% - 11px); } }

/* kort og rutenett */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .g2, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 1px 2px rgba(60,40,20,.04); }
.card .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--wood); display: grid; place-items: center; margin-bottom: 16px; }
.card .ic svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 6px; }
.card p { font-size: .97rem; }

/* eksempler */
.example { display: flex; flex-direction: column; gap: 16px; }
.example figcaption h3 { margin-bottom: 4px; }
.example figcaption p { font-size: .95rem; }
.example figcaption a { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--accent); text-decoration: none; }
.example figcaption a:hover { text-decoration: underline; }

/* pris */
.price-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .price-wrap { grid-template-columns: 1fr; } }
.price-card { background: var(--gronn-mork); color: #fff; border-radius: 20px; padding: 34px; position: relative; overflow: hidden; }
.price-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(20,64,47,.18); }
.price-card .from { font-size: .95rem; color: rgba(255,255,255,.7); }
.price-card .amount { font-family: var(--serif); font-size: 3.4rem; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.price-card .amount small { font-size: 1.1rem; font-weight: 500; color: rgba(255,255,255,.7); }
.price-card p { margin: 10px 0 22px; color: rgba(255,255,255,.78); }
.checks { list-style: none; display: grid; gap: 10px; margin: 18px 0 0; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--wood) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314402F' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }
.price-card .checks li::before { background-color: rgba(255,255,255,.12); }

/* steg */
.steps { counter-reset: s; }
.step { position: relative; padding-top: 58px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 1.1rem; }
.step h3 { margin-bottom: 6px; }

/* SEO-blokk */
.seo-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 36px; margin-top: 30px; }
@media (max-width: 760px) { .seo-points { grid-template-columns: 1fr; } }
.seo-points div { border-left: 3px solid var(--accent); padding-left: 16px; }
.seo-points h3 { color: #fff; font-size: 1.05rem; margin-bottom: 4px; }

/* guider */
.guide-card { display: flex; flex-direction: column; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.guide-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(27,36,48,.08); }
.guide-card .top { height: 120px; display: grid; place-items: center; }
.guide-card .top svg { width: 54px; height: 54px; }
.guide-card .body { padding: 22px; }
.guide-card .body p { font-size: .95rem; margin-top: 6px; }
.guide-card .more { margin-top: 12px; font-weight: 700; color: var(--accent); font-size: .95rem; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--accent); font-weight: 500; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 22px 20px; }

/* kontakt */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
form.form { background: var(--card); color: var(--ink); border-radius: 18px; padding: 28px; display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
form.form .full { grid-column: 1 / -1; }
@media (max-width: 560px) { form.form { grid-template-columns: 1fr; } }
form.form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
form.form input, form.form select, form.form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 1rem; background: #fff; color: var(--ink); }
form.form textarea { min-height: 110px; resize: vertical; }
form.form input:focus, form.form select:focus, form.form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
form.form .note { font-size: .82rem; color: var(--muted); }
form.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
form.form { position: relative; }
.form-status { font-size: .92rem; font-weight: 600; min-height: 1.2em; color: var(--ink); }
.form-status.feil { color: #B3261E; }
.form-ok { padding: 30px 6px; text-align: center; }
.form-ok h3 { font-size: 1.4rem; margin-bottom: 8px; }
form.form button:disabled { opacity: .6; cursor: wait; }

/* artikkel / fagside */
.page-head { padding: 56px 0 40px; background: var(--wood); }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 6px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin: 40px 0 12px; }
.prose h3 { margin: 26px 0 8px; }
.prose p { margin-bottom: 16px; color: #3E4855; }
.prose ul, .prose ol { margin: 0 0 18px 22px; color: #3E4855; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--accent); }
.prose a.btn-primary, .cta-box .btn-primary { color: #fff; }
.cta-box { background: var(--ink); color: #fff; border-radius: 18px; padding: 30px; margin: 40px 0; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-box h3 { font-size: 1.3rem; }
.cta-box p { color: rgba(255,255,255,.75); margin: 4px 0 0; }
.layout-show { display: grid; grid-template-columns: 1.5fr .5fr; gap: 28px; align-items: start; }
.layout-show .phone-col { padding-top: 40px; }
@media (max-width: 900px) { .layout-show { grid-template-columns: 1fr; } .layout-show .phone-col { width: 100%; max-width: 300px; margin: 0 auto; padding-top: 0; } }
.anno { list-style: none; counter-reset: a; display: grid; gap: 14px; }
.anno li { counter-increment: a; display: flex; gap: 14px; }
.anno li::before { content: counter(a); flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.anno li b { display: block; }
.anno li span { color: var(--muted); font-size: .95rem; }
.kw { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.kw span { background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 7px 14px; font-size: .92rem; font-weight: 500; }
.related { display: grid; gap: 10px; margin-top: 12px; }
.related a { font-weight: 600; color: var(--accent); text-decoration: none; }

/* stedsliste */
.stedliste { columns: 4 220px; column-gap: 32px; }
.stedliste .fylke { break-inside: avoid; margin-bottom: 26px; }
.stedliste h3 { font-size: 1rem; margin-bottom: 8px; }
.stedliste ul { list-style: none; display: grid; gap: 4px; }
.stedliste a { text-decoration: none; color: var(--muted); font-size: .95rem; }
.stedliste a:hover { color: var(--accent); }
.kw a span:hover { border-color: var(--accent); color: var(--accent); }

/* bunn */
.site-foot { background: var(--ink); color: rgba(255,255,255,.75); padding: 60px 0 30px; font-size: .95rem; }
.site-foot .cols { display: grid; grid-template-columns: 1.3fr 1fr 1.1fr 1fr 1fr; gap: 28px; }
@media (max-width: 960px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-foot .cols { grid-template-columns: 1fr; } }
.site-foot h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-foot ul { list-style: none; display: grid; gap: 8px; }
.site-foot a { text-decoration: none; color: rgba(255,255,255,.75); }
.site-foot a:hover { color: #fff; }
.site-foot .logo { color: #fff; margin-bottom: 12px; }
.site-foot .bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: .85rem; }

/* ================= eksempel-layout (mockup) ================= */
img.mk { display: block; width: 100%; height: auto; }
img.mk-topp { aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.mk { container-type: inline-size; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 20px 50px rgba(27,36,48,.18), 0 2px 6px rgba(27,36,48,.08); }
.mk-in { font-size: calc(100cqi / 40); line-height: 1.35; font-family: "DM Sans", system-ui, sans-serif; color: var(--m-ink); }
.mk.phone { border-radius: 26px; border: 7px solid #12161C; }
.mk.phone .mk-in { font-size: calc(100cqi / 21); }
.mk-bar { height: 1.7em; background: #EEF0F3; display: flex; align-items: center; gap: .35em; padding: 0 .7em; }
.mk-bar i { width: .5em; height: .5em; border-radius: 50%; display: block; }
.mk-bar i:nth-child(1) { background: #F2867B; } .mk-bar i:nth-child(2) { background: #F5C766; } .mk-bar i:nth-child(3) { background: #7CCB8A; }
.mk-bar span { margin-left: .6em; flex: 1; height: 1.05em; border-radius: 1em; background: #fff; font-size: .62em; line-height: 1.7em; color: #7D8695; padding-left: .9em; white-space: nowrap; overflow: hidden; }
.phone .mk-bar { height: 1.3em; justify-content: center; background: #fff; }
.phone .mk-bar i, .phone .mk-bar span { display: none; }
.phone .mk-bar::after { content: ""; width: 4em; height: .55em; border-radius: 1em; background: #12161C; }
.mk-nav { display: flex; align-items: center; justify-content: space-between; padding: .7em 1.2em; background: #fff; }
.mk-lg { display: flex; align-items: center; gap: .45em; font-weight: 700; font-size: .9em; color: var(--m-ink); }
.mk-lg b { width: 1.6em; height: 1.6em; border-radius: .4em; background: var(--m-1); color: var(--m-on); display: grid; place-items: center; font-size: .8em; }
.mk-links { display: flex; gap: 1.1em; font-size: .62em; font-weight: 500; color: #6A7380; }
.mk-cta { font-size: .62em; font-weight: 700; padding: .5em 1.1em; border-radius: 2em; background: var(--m-1); color: var(--m-on); }
.phone .mk-links { display: none; }
.mk-burger { display: none; width: 1.2em; }
.mk-burger i { display: block; height: .14em; background: var(--m-ink); margin: .22em 0; border-radius: .1em; }
.phone .mk-burger { display: block; }
.phone .mk-nav .mk-cta { display: none; }
.mk-hero { position: relative; height: 14.5em; overflow: hidden; color: #fff; background: var(--m-grad); }
.mk-hero svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mk-txt { position: absolute; left: 1.3em; top: 1.5em; width: 19em; z-index: 1; }
.mk-tag { display: inline-block; font-size: .5em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .45em 1.1em; border-radius: 2em; background: rgba(255,255,255,.18); }
.mk-txt h4 { font-size: 1.9em; line-height: 1.05; margin-top: .3em; letter-spacing: -.02em; text-shadow: 0 .05em .2em rgba(0,0,0,.25); }
.mk-txt p { color: rgba(255,255,255,.9); font-size: .66em; margin-top: .6em; max-width: 26em; }
.mk-btns { display: flex; gap: .5em; margin-top: 1em; white-space: nowrap; }
.mk-b1, .mk-b2 { font-size: .6em; font-weight: 700; padding: .65em 1.3em; border-radius: .45em; }
.mk-b1 { background: var(--m-btn); color: var(--m-btn-ink); }
.mk-b2 { border: .12em solid rgba(255,255,255,.75); }
.phone .mk-hero { height: 17em; }
.phone .mk-hero svg { opacity: .35; }
.phone .mk-txt { left: 1em; top: 1.3em; width: auto; right: 1em; }
.phone .mk-txt h4 { font-size: 1.6em; }
.mk-svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6em; padding: 1em 1.2em .6em; background: #fff; }
.mk-svc div { border-radius: .55em; padding: .8em .5em .7em; text-align: center; background: var(--m-soft); border: .08em solid var(--m-line); color: var(--m-ink); }
.mk-svc svg { width: 1.6em; height: 1.6em; margin: 0 auto .35em; }
.mk-svc b { display: block; font-size: .62em; }
.mk-svc em { display: block; font-style: normal; font-size: .5em; color: #7D8695; margin-top: .2em; }
.phone .mk-svc { padding: .9em 1em .5em; gap: .45em; }
.phone .mk-svc em { display: none; }
.mk-strip { display: flex; justify-content: space-between; margin: .5em 1.2em 1.1em; padding: .65em .9em; border-radius: .5em; background: var(--m-soft2); color: var(--m-ink); font-size: .6em; font-weight: 600; }
.mk-sec { padding: 1em 1.2em; background: #fff; }
.mk-h { font-size: .9em; font-weight: 700; margin-bottom: .6em; color: var(--m-ink); }
.mk-proj { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6em; }
.mk-proj div { aspect-ratio: 4 / 3; border-radius: .5em; position: relative; overflow: hidden; background: var(--m-grad); }
.mk-proj div svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mk-proj div span { position: absolute; left: .5em; bottom: .45em; font-size: .55em; font-weight: 700; color: #fff; background: rgba(0,0,0,.35); padding: .25em .6em; border-radius: .4em; }
.phone .mk-proj { grid-template-columns: 1fr 1fr; }
.phone .mk-proj div:nth-child(3) { display: none; }
.mk-about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.2em; align-items: center; }
.mk-lines i { display: block; height: .38em; border-radius: .2em; background: #E3E6EA; margin-bottom: .4em; }
.mk-lines i:nth-child(2) { width: 92%; } .mk-lines i:nth-child(3) { width: 80%; } .mk-lines i:nth-child(4) { width: 60%; }
.mk-badges { display: grid; gap: .4em; }
.mk-badges span { font-size: .55em; font-weight: 700; padding: .55em .8em; border-radius: .5em; background: var(--m-soft); border: .1em solid var(--m-line); color: var(--m-ink); }
.phone .mk-about { grid-template-columns: 1fr; }
.mk-contact { background: var(--m-dark); color: #fff; padding: 1.1em 1.2em 1.2em; display: grid; grid-template-columns: 1fr 1.2fr; gap: 1em; align-items: center; }
.mk-contact .mk-h { color: #fff; margin: 0; }
.mk-contact small { display: block; font-size: .55em; color: rgba(255,255,255,.7); margin-top: .2em; }
.mk-fields { display: grid; gap: .35em; }
.mk-fields i { display: block; height: 1.3em; border-radius: .35em; background: rgba(255,255,255,.12); }
.mk-fields b { font-size: .55em; text-align: center; padding: .55em; border-radius: .4em; background: var(--m-btn); color: var(--m-btn-ink); }
.phone .mk-contact { grid-template-columns: 1fr; }
.mk-foot { background: var(--m-dark); border-top: .06em solid rgba(255,255,255,.12); color: rgba(255,255,255,.55); font-size: .5em; padding: .9em 2.4em; display: flex; justify-content: space-between; }

/* fargetema per fag */
.t-tomrer { --m-1: #A8693A; --m-on: #fff; --m-ink: #3B2A1A; --m-grad: linear-gradient(115deg, #3E2A19 0%, #6E4A2C 55%, #A8693A 100%); --m-btn: #F1C98C; --m-btn-ink: #3B2A1A; --m-soft: #FBF5EC; --m-soft2: #F4EBDD; --m-line: #EBDDC8; --m-dark: #2E2014; }
.t-vvs { --m-1: #1F78B4; --m-on: #fff; --m-ink: #0E3A5B; --m-grad: linear-gradient(115deg, #0B2E49 0%, #155A8A 55%, #2C8BCB 100%); --m-btn: #fff; --m-btn-ink: #0E3A5B; --m-soft: #F1F7FC; --m-soft2: #E5F0F8; --m-line: #D5E6F3; --m-dark: #0A2338; }
.t-maler { --m-1: #2E7D62; --m-on: #fff; --m-ink: #173F31; --m-grad: linear-gradient(115deg, #143B2E 0%, #23654F 55%, #3A9476 100%); --m-btn: #E9F6F0; --m-btn-ink: #173F31; --m-soft: #F2F9F6; --m-soft2: #E3F2EB; --m-line: #CFE6DB; --m-dark: #10281F; }
.t-mur { --m-1: #A4472B; --m-on: #fff; --m-ink: #4A1F12; --m-grad: linear-gradient(115deg, #3D1A10 0%, #6E2E1C 55%, #A4472B 100%); --m-btn: #F7D9CB; --m-btn-ink: #4A1F12; --m-soft: #FCF4F0; --m-soft2: #F6E5DD; --m-line: #EDD3C7; --m-dark: #2C130B; }
.t-flis { --m-1: #1F7A7A; --m-on: #fff; --m-ink: #0F3B3B; --m-grad: linear-gradient(115deg, #0C3434 0%, #165F5F 55%, #2A9696 100%); --m-btn: #fff; --m-btn-ink: #0F3B3B; --m-soft: #F0F8F8; --m-soft2: #E0F1F1; --m-line: #CBE6E6; --m-dark: #092828; }
.t-tak { --m-1: #3C5468; --m-on: #fff; --m-ink: #1E2B36; --m-grad: linear-gradient(115deg, #1A242E 0%, #2E4152 55%, #4D6A82 100%); --m-btn: #DCE6EE; --m-btn-ink: #1E2B36; --m-soft: #F3F6F9; --m-soft2: #E6ECF2; --m-line: #D5DEE6; --m-dark: #141C24; }
.t-gulv { --m-1: #8A6234; --m-on: #fff; --m-ink: #3A2914; --m-grad: linear-gradient(115deg, #3A2914 0%, #6A4B26 55%, #9C7340 100%); --m-btn: #E9C99B; --m-btn-ink: #3A2914; --m-soft: #FBF6EE; --m-soft2: #F3E8D6; --m-line: #E8D7BC; --m-dark: #2A1D0E; }
.t-entr { --m-1: #1C1C1C; --m-on: #FFC93C; --m-ink: #1C1C1C; --m-grad: linear-gradient(115deg, #1A1A1A 0%, #2E2E2E 60%, #4A4026 100%); --m-btn: #FFC93C; --m-btn-ink: #1C1C1C; --m-soft: #FAFAF7; --m-soft2: #F1EFE6; --m-line: #E4E0D2; --m-dark: #121212; }
.t-hage { --m-1: #3E7A34; --m-on: #fff; --m-ink: #1F3D1A; --m-grad: linear-gradient(115deg, #1C3518 0%, #2F5E27 55%, #4C8F40 100%); --m-btn: #E7D6B8; --m-btn-ink: #1F3D1A; --m-soft: #F4F9F1; --m-soft2: #E5F2DE; --m-line: #D3E6CA; --m-dark: #142611; }
.t-glass { --m-1: #2C7DA0; --m-on: #fff; --m-ink: #12384A; --m-grad: linear-gradient(115deg, #0F3343 0%, #1E5F7C 55%, #3D9CC4 100%); --m-btn: #fff; --m-btn-ink: #12384A; --m-soft: #F1F8FB; --m-soft2: #E1F0F6; --m-line: #CDE4EE; --m-dark: #0B2531; }
.t-vent { --m-1: #3A6B8C; --m-on: #fff; --m-ink: #1A3243; --m-grad: linear-gradient(115deg, #17293A 0%, #2A4D66 55%, #4A7FA3 100%); --m-btn: #CFE2EE; --m-btn-ink: #1A3243; --m-soft: #F2F6F9; --m-soft2: #E3ECF2; --m-line: #D2DFE8; --m-dark: #111E29; }
.t-las { --m-1: #1D2540; --m-on: #E8C766; --m-ink: #1D2540; --m-grad: linear-gradient(115deg, #121729 0%, #1D2540 60%, #343A5A 100%); --m-btn: #E8C766; --m-btn-ink: #1D2540; --m-soft: #F6F6F9; --m-soft2: #E9EAF1; --m-line: #DADCE6; --m-dark: #0E1220; }
.t-maskin { --m-1: #1F1F1F; --m-on: #F2B233; --m-ink: #1F1F1F; --m-grad: linear-gradient(115deg, #1A1A1A 0%, #333 60%, #5A4520 100%); --m-btn: #F2B233; --m-btn-ink: #1F1F1F; --m-soft: #FBF8F1; --m-soft2: #F4ECDA; --m-line: #E8DCC0; --m-dark: #121212; }
.t-isol { --m-1: #B0563A; --m-on: #fff; --m-ink: #4A2216; --m-grad: linear-gradient(115deg, #3F1E14 0%, #7A3B27 55%, #C26A4B 100%); --m-btn: #F6D7C8; --m-btn-ink: #4A2216; --m-soft: #FCF5F1; --m-soft2: #F6E6DE; --m-line: #EDD6CB; --m-dark: #2D150D; }
.t-stillas { --m-1: #2D5B8A; --m-on: #fff; --m-ink: #15304A; --m-grad: linear-gradient(115deg, #132A40 0%, #234A70 55%, #3D72A6 100%); --m-btn: #F2A65A; --m-btn-ink: #15304A; --m-soft: #F2F6FA; --m-soft2: #E2EBF4; --m-line: #D1DEEA; --m-dark: #0E1F30; }
.t-elektro { --m-1: #1C1C1C; --m-on: #FFC93C; --m-ink: #1C1C1C; --m-grad: linear-gradient(115deg, #121212 0%, #262626 60%, #3A3420 100%); --m-btn: #FFC93C; --m-btn-ink: #1C1C1C; --m-soft: #FFFBEF; --m-soft2: #FFF3CC; --m-line: #F5E5B0; --m-dark: #151515; }

/* Eksempelkarusell: ett eksempel i fokus, neste stikker fram på siden */
.karusell { margin-top: 8px; }
.karusell { --k-b: min(1120px, 88vw); }
.k-spor { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px calc((100% - var(--k-b)) / 2) 28px; scrollbar-width: none; outline: none; }
.k-spor::-webkit-scrollbar { display: none; }
.k-spor:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.k-slide { flex: 0 0 var(--k-b); scroll-snap-align: center; display: grid; grid-template-columns: minmax(0, 600px) 1fr; gap: 48px; align-items: center;
  background: #fff; border-radius: 22px; padding: 30px; box-shadow: 0 18px 44px rgba(27,36,48,.10); opacity: .45; transform: scale(.96); transition: opacity .35s, transform .35s; }
.k-slide.aktiv { opacity: 1; transform: none; }
.k-slide img.mk { border-radius: 12px; }
.k-slide figcaption h3 { font-family: var(--serif); font-weight: 500; font-size: 1.9rem; margin: 6px 0 8px; }
.k-slide figcaption p { color: var(--muted); }
.k-slide .checks { margin: 18px 0 22px; }
.k-nr { font-size: .8rem; font-weight: 700; letter-spacing: .08em; color: var(--accent); }
.k-kontroll { display: flex; align-items: center; justify-content: center; gap: 18px; }
.k-pil { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font-size: 1.15rem; cursor: pointer; }
.k-pil:hover { background: var(--ink); color: #fff; }
.k-prikker { display: flex; gap: 8px; }
.k-prikker button { width: 10px; height: 10px; border-radius: 10px; border: 0; padding: 0; background: rgba(27,36,48,.25); cursor: pointer; transition: width .25s, background .25s; }
.k-prikker button[aria-current] { width: 28px; background: var(--accent); }
@media (max-width: 760px) {
  .karusell { --k-b: 86vw; }
  .k-spor { gap: 12px; padding-top: 8px; padding-bottom: 22px; }
  .k-slide { grid-template-columns: 1fr; gap: 16px; padding: 14px 14px 20px; border-radius: 18px; }
  .k-slide figcaption h3 { font-size: 1.3rem; }
  .k-slide .checks { display: none; }
  .k-slide figcaption p { margin-bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { .k-slide { transition: none; } }

/* Branding-seksjonen på forsiden */
.brand-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.brand-liste { list-style: none; display: grid; gap: 14px; }
.brand-liste li { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.brand-liste svg { width: 30px; height: 30px; flex: none; }
.brand-liste b { display: block; font-size: 1.02rem; }
.brand-liste span { color: var(--muted); font-size: .93rem; }
@media (max-width: 860px) { .brand-wrap { grid-template-columns: 1fr; gap: 28px; } }

/* Innganger og tjenestekort på merkevaresidene */
a.inngang { display: block; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
a.inngang:hover { border-color: var(--accent); transform: translateY(-2px); }
a.inngang .more { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--accent); }
.tjeneste-kort .card { height: 100%; }
.brand-ny { border-color: var(--accent) !important; }
.brand-ny a { color: var(--accent); font-weight: 600; text-decoration: none; }

/* Miniatyrbilder i bransjeoversikten */
img.bransje-bilde { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }

/* Mal på fagsidene: vises i nær opprinnelig størrelse så den holder seg skarp */
.mal-vis { max-width: 520px; }
.mal-vis img.mk { border-radius: 14px; box-shadow: var(--skygge); }

/* ================================================================ toppseksjon: kollasj i grønt og krem */
@font-face { font-family: "Handskrift"; src: url("/fonts/handskrift.woff2") format("woff2"); font-weight: 500; font-display: swap; }
.btn-lys { background: #fff; color: var(--accent); }
.btn-lys:hover { background: var(--bg); }
.lenke-lys { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.6); padding-bottom: 2px; }
.topp { position: relative; padding: 46px 0 40px; background: var(--bg); overflow: hidden; }
.topp-hode { position: relative; text-align: center; }
.topp h1 { font-size: clamp(2.6rem, 5.4vw, 4.7rem); line-height: 1.02; letter-spacing: -.025em; max-width: 780px; margin: 0 auto; }
.topp h1 .kicker { display: block; font-family: "DM Sans", system-ui, sans-serif; font-size: .78rem; letter-spacing: .28em; color: var(--ink2); margin-bottom: 18px; line-height: 1.4; }
.topp .messing { width: 130px; height: 10px; margin: 14px auto 0; color: var(--messing); }
.topp .lead { margin: 18px auto 0; text-align: center; max-width: 520px; font-size: 1.12rem; color: var(--ink2); }
.topp-sjekk { list-style: none; display: grid; gap: 8px; text-align: left; font-size: .95rem; color: var(--ink2); }
.topp-sjekk li { display: flex; gap: 10px; align-items: center; }
.topp-sjekk li::before { content: ""; width: 18px; height: 18px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314402F' stroke-width='2.4' 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; }
.notat { font-family: "Handskrift", cursive; font-size: 1.6rem; line-height: 1.05; color: #5A5A52; transform: rotate(-8deg); }
.notat svg { width: 28px; height: 40px; }
.notat-v { position: absolute; left: 6%; top: 50px; }
.notat-v svg { display: block; margin: 4px 0 0 60px; }
.kollasj { position: relative; max-width: 1480px; margin: 34px auto 0; padding: 0 20px; display: grid; grid-template-columns: 30fr 31fr 35fr; gap: 6px; align-items: end; }
.panel { position: relative; margin: 0; }
.panel img { width: 100%; height: auto; display: block; }
.p-tomrer img { aspect-ratio: 332 / 383; }
.p-ror img { aspect-ratio: 447 / 320; }
.p-grunn img { aspect-ratio: 542 / 404; }
.etikett { position: absolute; z-index: 3; }
.etikett a { display: block; height: 100%; background: rgba(250,246,239,.97); padding: 16px 20px; text-decoration: none; color: var(--ink); box-shadow: 0 14px 30px rgba(40,30,20,.14); }
.etikett b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.4rem; line-height: 1.1; margin-bottom: 6px; }
.etikett span { display: block; font-size: .85rem; line-height: 1.4; color: var(--muted); }
/* etikettene dekker samme flate i bildet på alle skjermbredder (prosent av panelet) */
.e-tomrer { left: -6%; top: -5%; width: 50%; min-height: 27%; }
.e-ror { right: 4%; bottom: -12%; width: 48%; }
.e-grunn { left: 2%; bottom: -3%; width: 38%; min-height: 29%; }
.pris-sirkel { position: absolute; z-index: 4; left: 19%; top: -16%; width: 43%; aspect-ratio: 1; border-radius: 50%; background: var(--gronn-mork); color: #fff; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transform: rotate(-8deg); box-shadow: 0 16px 34px rgba(18,53,42,.3); }
.pris-sirkel small { font-family: var(--serif); font-size: 1.1rem; }
.pris-sirkel strong { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 2.6vw, 2.5rem); line-height: 1.05; letter-spacing: -.02em; }
.pris-sirkel em { font-style: normal; font-size: .82rem; line-height: 1.3; margin-top: 6px; opacity: .9; }
.topp-cta { position: absolute; z-index: 5; left: 3%; bottom: -165px; width: 31%; background: var(--gronn-mork); color: #fff; padding: 30px 30px 32px; box-shadow: 0 24px 50px rgba(18,53,42,.28); }
.topp-cta .kicker { color: rgba(255,255,255,.8); }
.topp-cta-tittel { font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 2.05rem); line-height: 1.12; color: #fff; margin: 4px 0 22px; }
.topp-cta-knapper { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.notat-h { position: absolute; right: 2.5%; bottom: -110px; transform: rotate(-10deg); }
.notat-h svg { display: block; margin: 0 0 2px -36px; }
.noekkeltall { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 210px; border-top: 1px solid var(--line); padding-top: 26px; }
.noekkeltall li { display: flex; gap: 16px; align-items: center; padding: 6px 26px; border-left: 1px solid var(--line); }
.noekkeltall li:first-child { border-left: 0; padding-left: 0; }
.noekkeltall svg { width: 38px; height: 38px; flex: none; stroke-width: 1.5; }
.noekkeltall b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.45rem; line-height: 1.15; }
.noekkeltall span { display: block; font-size: .92rem; color: var(--muted); line-height: 1.35; }
@media (min-width: 1181px) {
  .topp-sjekk { position: absolute; right: 20px; top: 34px; }
  .kollasj { margin-top: -120px; }
  .p-ror, .p-grunn { margin-bottom: 0; }
  .p-tomrer { z-index: 1; }
}
@media (max-width: 1400px) and (min-width: 1181px) { .notat-v { left: 2%; } .topp-sjekk { right: 10px; } }
@media (max-width: 1180px) {
  .topp-sjekk { display: inline-grid; grid-template-columns: repeat(2, auto); gap: 8px 26px; margin-top: 24px; }
  .notat { display: none; }
  .kollasj { grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; align-items: start; }
  .p-tomrer { grid-row: span 2; }
  .e-tomrer { left: 0; top: 0; }
  .topp-cta { position: relative; left: auto; bottom: auto; width: auto; grid-column: 1 / -1; margin-top: 70px; }
  .noekkeltall { margin-top: 40px; grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .noekkeltall li:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 640px) {
  .topp { padding-top: 34px; }
  .topp-sjekk { grid-template-columns: 1fr; }
  .kollasj { grid-template-columns: 1fr; gap: 60px; padding: 0 16px; }
  .p-tomrer { grid-row: auto; margin-top: 18px; }
  .e-tomrer { left: 0; top: 0; }
  .etikett a { padding: 12px 14px; }
  .etikett b { font-size: 1.15rem; }
  .etikett span { font-size: .8rem; }
  .pris-sirkel em { font-size: .7rem; }
  .pris-sirkel small { font-size: .9rem; }
  .topp-cta { margin-top: 10px; padding: 24px 22px; }
  .noekkeltall { grid-template-columns: 1fr; }
  .noekkeltall li { border-left: 0; padding-left: 0; }
}

/* Forsiden: «Alt det digitale for håndverkere» følger rett etter «Hvorfor hjemmeside» */
.partner { padding-top: 24px; }
.partner-grid .card { height: 100%; }

/* Lokalt innhold på de største stedsidene */
.lokal { background: #FFFDF9; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lokal .kilde { margin-top: 20px; font-size: .82rem; color: var(--muted); }

/* Karusell: hvert kort får egen høyde, og stående maler holdes innenfor skjermhøyden */
.k-spor { align-items: center; }
.k-slide img.mk { container-type: normal; width: auto; max-width: 100%; max-height: min(640px, 72vh); margin: 0 auto; }
