/* Rit & Byggkontroll — v2 design (2026-11-15). Calm cream pages, serif headlines,
   ink buttons, one clay accent. Self-contained: v2 pages load only this file and
   enquiry.css. Older pages load it for the shared header and footer only. */
@font-face { font-family: "General Sans"; src: url("fonts/general-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("fonts/general-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("fonts/general-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Gambetta"; src: url("fonts/gambetta-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --rb-paper: #faf8f3;
  --rb-white: #ffffff;
  --rb-oat: #f1eee6;
  --rb-oat-2: #e8e4d9;
  --rb-ink: #17201c;
  --rb-text: #262e2a;
  --rb-muted: #59625d;
  --rb-line: #e2ded3;
  --rb-line-2: #cfcabd;
  --rb-clay: #d9805c;
  --rb-clay-ink: #a9492a;
  --rb-sage: #dde7e1;
  --rb-peach: #f4e1d6;
  --rb-ok: #2f6b4f;
  --rb-radius: 18px;
  --rb-radius-sm: 12px;
  --rb-max: 1200px;
  --rb-gutter: clamp(16px, 4vw, 40px);
  --rb-sans: "General Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --rb-serif: "Gambetta", Georgia, "Times New Roman", serif;
  --rb-shadow: 0 1px 2px rgba(23, 32, 28, .05), 0 8px 28px rgba(23, 32, 28, .06);
}

/* ---------- base (v2 pages only) ---------- */
body.rb { margin: 0; background: var(--rb-paper); color: var(--rb-text); font: 400 18px/1.6 var(--rb-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.rb *, body.rb *::before, body.rb *::after { box-sizing: border-box; }
body.rb img, body.rb video { max-width: 100%; display: block; }
:where(body.rb) img { height: auto; }
body.rb a { color: inherit; }
:where(body.rb) p { margin: 0; }
:where(body.rb) :is(h1, h2, h3) { margin: 0; }
body.rb h1, body.rb h2, body.rb h3 { color: var(--rb-ink); font-family: var(--rb-serif); font-weight: 500; letter-spacing: -.015em; text-wrap: balance; }
body.rb h1 { font-size: clamp(40px, 5.4vw, 70px); line-height: 1.04; }
body.rb h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; }
body.rb h3 { font-size: clamp(22px, 2vw, 27px); line-height: 1.15; }
body.rb :focus-visible { outline: 3px solid var(--rb-ink); outline-offset: 3px; border-radius: 6px; }
.rb-wrap { width: min(100% - 2 * var(--rb-gutter), var(--rb-max)); margin-inline: auto; }
.rb-narrow { width: min(100% - 2 * var(--rb-gutter), 820px); margin-inline: auto; }
.rb-section { padding-block: clamp(64px, 9vw, 120px); }
.rb-section--white { background: var(--rb-white); }
.rb-section--oat { background: var(--rb-oat); }
.rb-section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.rb-section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.rb-lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--rb-muted); max-width: 640px; }
.rb-eyebrow { font: 500 14px/1.3 var(--rb-sans); letter-spacing: .02em; color: var(--rb-muted); }
.rb-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--rb-ink); color: var(--rb-paper) !important; border-radius: 8px; font: 500 15px var(--rb-sans); }
.rb-skip:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- buttons ---------- */
.rb-btn, body.rb .button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 12px; border: 1px solid var(--rb-ink); background: var(--rb-ink); color: var(--rb-paper) !important; font: 500 17px/1 var(--rb-sans); text-decoration: none; cursor: pointer; transition: background .15s ease, transform .15s ease, border-color .15s ease; white-space: nowrap; }
.rb-btn:hover, body.rb .button:hover { background: #2c3631; }
.rb-btn:active, body.rb .button:active { transform: translateY(1px); }
.rb-btn--light, body.rb .button.secondary { background: var(--rb-white); color: var(--rb-ink) !important; border-color: var(--rb-line-2); }
.rb-btn--light:hover, body.rb .button.secondary:hover { background: var(--rb-oat); border-color: var(--rb-ink); }
.rb-btn--block { width: 100%; }
.rb-btn svg { width: 18px; height: 18px; flex: none; }
.rb-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--rb-ink); text-decoration: underline; text-decoration-color: var(--rb-line-2); text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.rb-link svg { width: 18px; height: 18px; flex: none; }
.rb-link:hover { text-decoration-color: var(--rb-ink); }

/* ---------- header (shared by all pages) ---------- */
.rb-header { position: sticky; top: 0; z-index: 60; background: rgba(250, 248, 243, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; font-family: var(--rb-sans); transition: border-color .2s ease; }
.rb-header.is-scrolled { border-bottom-color: var(--rb-line); }
.rb-header-in { display: flex; align-items: center; gap: 28px; height: 72px; width: min(100% - 2 * var(--rb-gutter), 1280px); margin-inline: auto; }
.rb-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.rb-brand img { display: block; height: auto; }
.rb-brand .rb-brand-symbol { width: 38px; }
.rb-brand .rb-brand-word { width: 150px; }
.rb-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.rb-nav > a, .rb-nav summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--rb-ink); font: 500 16px/1 var(--rb-sans); text-decoration: none; cursor: pointer; list-style: none; }
.rb-nav summary::-webkit-details-marker { display: none; }
.rb-nav > a:hover, .rb-nav summary:hover, .rb-nav details[open] summary { background: var(--rb-oat); }
.rb-nav > a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.rb-nav summary svg { width: 14px; height: 14px; transition: transform .2s ease; }
.rb-nav details[open] summary svg { transform: rotate(180deg); }
.rb-drop { position: relative; }
.rb-drop-panel { position: absolute; top: calc(100% + 10px); left: -12px; width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; padding: 20px; background: var(--rb-white); border: 1px solid var(--rb-line); border-radius: 16px; box-shadow: var(--rb-shadow); }
.rb-drop-panel strong { grid-column: 1 / -1; font: 500 13px/1.4 var(--rb-sans); letter-spacing: .02em; color: var(--rb-muted); margin: 6px 0 2px; }
.rb-drop-panel a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--rb-ink); font: 500 16px/1.3 var(--rb-sans); }
.rb-drop-panel a span { font-size: 14px; font-weight: 400; color: var(--rb-muted); }
.rb-drop-panel a:hover { background: var(--rb-oat); }
.rb-head-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.rb-head-phone { color: var(--rb-ink); font: 500 16px/1 var(--rb-sans); text-decoration: none; padding: 0 8px; white-space: nowrap; }
.rb-head-phone:hover { text-decoration: underline; text-underline-offset: 5px; }
.rb-lang { color: var(--rb-muted); font: 500 14px/1 var(--rb-sans); text-decoration: none; padding: 8px; border-radius: 8px; }
.rb-lang:hover { color: var(--rb-ink); background: var(--rb-oat); }
.rb-head-cta { min-height: 44px; padding: 0 18px; font-size: 16px; }
.rb-menu-btn { display: none; width: 48px; height: 48px; margin-left: auto; border: 0; border-radius: 12px; background: transparent; cursor: pointer; position: relative; }
.rb-menu-btn span, .rb-menu-btn span::before, .rb-menu-btn span::after { position: absolute; left: 13px; width: 22px; height: 2px; border-radius: 2px; background: var(--rb-ink); content: ""; transition: transform .2s ease, opacity .2s ease; }
.rb-menu-btn span { top: 23px; }
.rb-menu-btn span::before { left: 0; top: -7px; }
.rb-menu-btn span::after { left: 0; top: 7px; }
.rb-menu-btn[aria-expanded="true"] span { background: transparent; }
.rb-menu-btn[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.rb-menu-btn[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- footer ---------- */
.rb-cta { background: var(--rb-ink); color: var(--rb-paper); font-family: var(--rb-sans); }
.rb-cta-in { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding-block: clamp(56px, 7vw, 96px); }
.rb-cta h2 { color: var(--rb-paper) !important; font-family: var(--rb-serif); font-weight: 500; font-size: clamp(32px, 4vw, 52px); line-height: 1.06; letter-spacing: -.015em; margin: 0; }
.rb-cta p { color: #c9cec9; font-size: 18px; line-height: 1.55; margin: 14px 0 0; }
.rb-cta-actions { display: grid; gap: 12px; justify-items: stretch; max-width: 380px; justify-self: end; width: 100%; }
.rb-cta .rb-btn { background: var(--rb-paper); color: var(--rb-ink) !important; border-color: var(--rb-paper); }
.rb-cta .rb-btn:hover { background: #fff; }
.rb-cta .rb-btn--ghost { background: transparent; color: var(--rb-paper) !important; border-color: #4a544f; }
.rb-cta .rb-btn--ghost:hover { background: #222c27; border-color: var(--rb-paper); }
.rb-footer { background: var(--rb-paper); color: var(--rb-text); font: 400 16px/1.6 var(--rb-sans); border-top: 1px solid var(--rb-line); }
.rb-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding-block: 56px 32px; }
.rb-footer h2 { font: 500 14px/1.4 var(--rb-sans) !important; letter-spacing: .02em; color: var(--rb-muted) !important; margin: 0 0 12px; }
.rb-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rb-footer a { color: var(--rb-ink); text-decoration: none; }
.rb-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.rb-footer-about p { margin: 14px 0 0; color: var(--rb-muted); max-width: 300px; }
.rb-footer-areas { padding-block: 0 24px; color: var(--rb-muted); font-size: 14px; }
.rb-footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-block: 20px 28px; border-top: 1px solid var(--rb-line); font-size: 14px; color: var(--rb-muted); }
.rb-footer-bottom nav { display: flex; gap: 20px; }
.rb-mobilebar { display: none; }

/* ---------- hero ---------- */
.rb-hero { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 100px); }
.rb-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.rb-hero-copy { display: grid; gap: 22px; justify-items: start; }
.rb-hero-copy .rb-lead { color: var(--rb-text); }
.rb-hero-card { width: 100%; max-width: 460px; display: grid; gap: 12px; padding: 22px; border: 1px solid var(--rb-line); border-radius: 20px; background: var(--rb-white); box-shadow: var(--rb-shadow); margin-top: 6px; }
.rb-hero-card .rb-btn { width: 100%; }
.rb-hero-note { font-size: 14px; line-height: 1.5; color: var(--rb-muted); text-align: center; }
.rb-hero-call { font-size: 16px; color: var(--rb-muted); }
.rb-hero-call a { color: var(--rb-ink); font-weight: 500; text-decoration: none; }
.rb-hero-call a:hover { text-decoration: underline; text-underline-offset: 4px; }
.rb-hero-who { display: flex; align-items: center; gap: 12px; }
.rb-hero-who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--rb-line); }
.rb-hero-who p { display: grid; gap: 1px; font-size: 15px; line-height: 1.4; color: var(--rb-muted); }
.rb-hero-who strong { font-weight: 500; color: var(--rb-ink); font-size: 16px; }
.rb-hero-who a { color: var(--rb-ink); font-weight: 500; text-decoration: none; white-space: nowrap; }
.rb-hero-who a:hover { text-decoration: underline; text-underline-offset: 4px; }
.rb-hero-art { margin: 0; position: relative; border-radius: 24px; overflow: hidden; background: var(--rb-paper); aspect-ratio: 1 / 1; border: 1px solid var(--rb-line); }
.rb-hero-art video, .rb-hero-art img { width: 100%; height: 100%; object-fit: cover; }
.rb-hero-art figcaption { position: absolute; left: 16px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .9); font: 500 13px/1.3 var(--rb-sans); color: var(--rb-muted); }
.rb-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 4px 0 0; list-style: none; font-size: 15px; color: var(--rb-muted); }
.rb-trust li { display: inline-flex; align-items: center; gap: 8px; }
.rb-trust svg { width: 18px; height: 18px; color: var(--rb-ok); flex: none; }

/* ---------- project chooser cards ---------- */
.rb-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rb-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--rb-line); border-radius: var(--rb-radius); background: var(--rb-white); text-decoration: none; color: inherit; overflow: hidden; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.rb-card:hover { border-color: var(--rb-line-2); transform: translateY(-2px); box-shadow: var(--rb-shadow); }
.rb-card-art { aspect-ratio: 4 / 3; background: var(--rb-paper); border-bottom: 1px solid var(--rb-line); overflow: hidden; }
.rb-card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.rb-card:hover .rb-card-art img { transform: scale(1.03); }
.rb-card-body { display: grid; gap: 8px; align-content: start; padding: 20px 20px 22px; }
.rb-card-body p { color: var(--rb-muted); font-size: 16px; line-height: 1.5; }
.rb-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--rb-line); font-size: 16px; }
.rb-price { font-weight: 600; color: var(--rb-ink); }
.rb-arrow { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--rb-oat); color: var(--rb-ink); flex: none; transition: background .2s ease, color .2s ease; }
.rb-arrow svg { width: 18px; height: 18px; }
.rb-card:hover .rb-arrow, .rb-row:hover .rb-arrow { background: var(--rb-ink); color: var(--rb-paper); }

.rb-rows { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.rb-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 18px 18px 18px 20px; border: 1px solid var(--rb-line); border-radius: 16px; background: var(--rb-white); text-decoration: none; color: inherit; transition: border-color .2s ease; }
.rb-row:hover { border-color: var(--rb-line-2); }
.rb-row strong { font: 500 18px/1.25 var(--rb-sans); color: var(--rb-ink); }
.rb-row small { grid-column: 1; font-size: 15px; color: var(--rb-muted); }
.rb-row .rb-arrow { grid-row: 1 / span 2; grid-column: 2; }
.rb-subhead { margin: clamp(40px, 5vw, 60px) 0 0; font: 500 15px/1.3 var(--rb-sans); letter-spacing: .02em; color: var(--rb-muted); }

/* ---------- split / feature ---------- */
.rb-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.rb-split--center { align-items: center; }
.rb-split-copy { display: grid; gap: 18px; position: sticky; top: 104px; }
.rb-frame { border-radius: 24px; padding: clamp(14px, 2vw, 22px); background: var(--rb-peach); }
.rb-frame--sage { background: var(--rb-sage); }
.rb-frame--oat { background: var(--rb-oat); }
.rb-frame img { width: 100%; border-radius: 14px; background: var(--rb-paper); }

/* ---------- steps ---------- */
.rb-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; counter-reset: rbstep; }
.rb-steps li { counter-increment: rbstep; display: grid; gap: 10px; align-content: start; padding: 26px 24px 28px; border-radius: var(--rb-radius); background: var(--rb-white); border: 1px solid var(--rb-line); }
.rb-steps li::before { content: counter(rbstep); font: 500 44px/1 var(--rb-serif); color: var(--rb-clay); }
.rb-steps strong { font: 500 21px/1.25 var(--rb-sans); color: var(--rb-ink); }
.rb-steps p { color: var(--rb-muted); font-size: 16px; line-height: 1.55; }

/* ---------- person ---------- */
.rb-person { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.rb-person-photo { width: 200px; border-radius: 24px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--rb-oat); }
.rb-person-photo img { width: 100%; height: 100%; object-fit: cover; }
.rb-person-copy { display: grid; gap: 18px; justify-items: start; }
.rb-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.rb-chips li { padding: 8px 14px; border-radius: 999px; background: var(--rb-white); border: 1px solid var(--rb-line); font-size: 15px; color: var(--rb-text); }

/* ---------- faq ---------- */
.rb-faq { display: grid; border-top: 1px solid var(--rb-line-2); }
.rb-faq details { border-bottom: 1px solid var(--rb-line-2); }
.rb-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font: 500 clamp(18px, 1.6vw, 21px)/1.35 var(--rb-sans); color: var(--rb-ink); }
.rb-faq summary::-webkit-details-marker { display: none; }
.rb-faq summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 2px solid var(--rb-ink); border-bottom: 2px solid var(--rb-ink); transform: rotate(45deg) translateY(-4px); transition: transform .2s ease; }
.rb-faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.rb-faq details p { padding: 0 40px 24px 0; color: var(--rb-text); font-size: 17px; line-height: 1.65; max-width: 760px; }

/* ---------- service landing ---------- */
.rb-crumb { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 22px; font-size: 14px; color: var(--rb-muted); }
.rb-crumb a { color: var(--rb-muted); text-decoration: none; }
.rb-crumb a:hover { color: var(--rb-ink); text-decoration: underline; }
.rb-service-hero { padding-block: clamp(28px, 4vw, 56px) clamp(56px, 7vw, 96px); }
.rb-service-hero .rb-hero-art { aspect-ratio: 4 / 3; }
.rb-price-line { display: grid; gap: 4px; }
.rb-price-line strong { font: 500 clamp(26px, 2.4vw, 32px)/1.1 var(--rb-serif); color: var(--rb-ink); letter-spacing: -.01em; }
.rb-price-line span { font-size: 15px; color: var(--rb-muted); }
.rb-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.rb-answer { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: clamp(22px, 3vw, 32px); border-radius: 20px; background: var(--rb-white); border: 1px solid var(--rb-line); }
.rb-answer-mark { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--rb-ink); color: var(--rb-paper); font: 500 22px/1 var(--rb-serif); }
.rb-answer h2 { font-size: clamp(24px, 2.4vw, 30px) !important; margin-bottom: 10px !important; }
.rb-answer p { font-size: 18px; line-height: 1.6; }
.rb-answer .rb-link { margin-top: 14px; }
.rb-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--rb-line); }
.rb-checks li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--rb-line); font-size: 18px; line-height: 1.5; color: var(--rb-text); }
.rb-checks svg { width: 24px; height: 24px; margin-top: 1px; color: var(--rb-ok); }
.rb-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* ---------- prices ---------- */
.rb-price-groups { display: grid; gap: 28px; }
.rb-price-group { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding-top: 28px; border-top: 1px solid var(--rb-line-2); }
.rb-price-group h2 { font-size: clamp(24px, 2.4vw, 30px) !important; }
.rb-price-list { display: grid; gap: 0; }
.rb-price-row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--rb-line); color: inherit; text-decoration: none; }
.rb-price-row:hover { background: var(--rb-white); }
.rb-price-row strong { font: 500 18px/1.35 var(--rb-sans); color: var(--rb-ink); }
.rb-price-row small { display: block; margin-top: 2px; font-size: 15px; color: var(--rb-muted); }
.rb-price-row .rb-price { white-space: nowrap; font-size: 18px; }
.rb-note { margin-top: 28px; padding: 20px 22px; border-radius: 16px; background: var(--rb-oat); color: var(--rb-text); font-size: 16px; line-height: 1.6; }

/* ---------- about ---------- */
.rb-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.rb-facts li { display: grid; gap: 6px; padding: 22px; border-radius: var(--rb-radius); background: var(--rb-white); border: 1px solid var(--rb-line); }
.rb-facts strong { font: 500 15px/1.3 var(--rb-sans); color: var(--rb-muted); }
.rb-facts span { font-size: 18px; color: var(--rb-ink); }
.rb-cert { display: grid; gap: 14px; padding: 26px; border-radius: 20px; background: var(--rb-white); border: 1px solid var(--rb-line); }
.rb-cert-head { display: flex; align-items: center; gap: 14px; }
.rb-cert-head img { width: 30px; height: auto; }
.rb-cert dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 0; }
.rb-cert dt { font-size: 14px; color: var(--rb-muted); }
.rb-cert dd { margin: 2px 0 0; font-size: 17px; color: var(--rb-ink); font-weight: 500; }

/* ---------- prose pages (guide, consent, privacy) ---------- */
.rb-prose { font-size: 18px; line-height: 1.7; }
.rb-prose h2 { margin: 48px 0 14px !important; font-size: clamp(26px, 2.8vw, 34px) !important; }
.rb-prose h3 { margin: 32px 0 10px !important; font-family: var(--rb-sans) !important; font-weight: 600 !important; font-size: 20px !important; letter-spacing: 0 !important; }
.rb-prose p, .rb-prose ul, .rb-prose ol { margin: 0 0 16px !important; }
.rb-prose ul, .rb-prose ol { padding-left: 22px; }
.rb-prose li { margin-bottom: 8px; }
.rb-prose table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 16px; }
.rb-prose th, .rb-prose td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--rb-line); vertical-align: top; }
.rb-prose a { color: var(--rb-ink); text-decoration-color: var(--rb-line-2); text-underline-offset: 4px; }
.rb-summary { padding: 24px 26px; border-radius: 20px; background: var(--rb-white); border: 1px solid var(--rb-line); margin-bottom: 32px; }
.rb-summary h2 { margin: 0 0 12px !important; font-size: 24px !important; }
.rb-summary ul { margin: 0 !important; }

/* ---------- permit check (bygglovskollen) ---------- */
.pc { border: 1px solid var(--rb-line); border-radius: 22px; background: var(--rb-white); box-shadow: var(--rb-shadow); padding: clamp(20px, 3vw, 34px); scroll-margin-top: 100px; font-family: var(--rb-sans); }
.pc-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; margin-bottom: 14px; }
.pc-progress { font-size: 14px; color: var(--rb-muted); }
.pc-back { border: 0; background: transparent; color: var(--rb-ink); font: inherit; font-size: 15px; padding: 8px 0; min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--rb-line-2); }
.pc-back[hidden] { display: none; }
.pc-question { margin: 0 0 8px; font: 500 clamp(24px, 2.6vw, 32px)/1.15 var(--rb-serif); color: var(--rb-ink); letter-spacing: -.015em; }
.pc-help { margin: 0 0 18px; color: var(--rb-muted); font-size: 16px; line-height: 1.55; }
.pc-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.pc-options--single { grid-template-columns: 1fr; }
.pc-option { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-height: 64px; padding: 14px 18px; border: 1px solid var(--rb-line-2); border-radius: 14px; background: var(--rb-white); color: var(--rb-ink); font: 500 17px/1.3 var(--rb-sans); text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.pc-option small { font-size: 14px; font-weight: 400; color: var(--rb-muted); line-height: 1.4; }
@media (hover: hover) { .pc-option:hover { border-color: var(--rb-ink); background: var(--rb-paper); } }
.pc-option:active { border-color: var(--rb-ink); background: var(--rb-oat); }
.pc-result { display: grid; gap: 18px; }
.pc-verdict { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 16px; background: #e7f0ea; }
.pc-verdict-mark { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; font-weight: 700; color: #fff; background: var(--rb-ok); }
.pc-verdict h3 { margin: 2px 0 6px !important; font: 500 clamp(22px, 2.3vw, 28px)/1.15 var(--rb-serif) !important; }
.pc-verdict p { margin: 0; font-size: 17px; line-height: 1.55; }
.pc-result[data-tone="notice"] .pc-verdict { background: #eef1e2; }
.pc-result[data-tone="notice"] .pc-verdict-mark { background: #5b6b2b; }
.pc-result[data-tone="permit"] .pc-verdict { background: var(--rb-peach); }
.pc-result[data-tone="permit"] .pc-verdict-mark { background: var(--rb-clay-ink); }
.pc-result[data-tone="check"] .pc-verdict { background: var(--rb-oat); }
.pc-result[data-tone="check"] .pc-verdict-mark { background: #6f6a5c; }
.pc-list-title { margin: 0 0 6px !important; font-size: 16px; font-weight: 600; color: var(--rb-ink); }
.pc-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 16px; line-height: 1.55; }
.pc-help-box { padding: 18px 20px; border: 1px solid var(--rb-line); border-radius: 16px; background: var(--rb-paper); }
.pc-help-box p { margin: 0 0 14px !important; font-size: 16px; line-height: 1.55; }
.pc-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.pc-call { color: var(--rb-ink); font-size: 16px; }
.pc-help-box .pc-service { margin: 14px 0 0 !important; font-size: 16px; }
.pc-disclaimer { margin: 0; font-size: 14px; line-height: 1.55; color: var(--rb-muted); }
.pc-restart { justify-self: start; }
.rb-check-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.rb-check-grid .rb-split-copy img { border-radius: 18px; border: 1px solid var(--rb-line); margin-top: 8px; }
.rb-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rb-rule { padding: 22px 24px; border-radius: var(--rb-radius); background: var(--rb-white); border: 1px solid var(--rb-line); }
.rb-rule strong { display: block; margin-bottom: 6px; font: 500 19px/1.3 var(--rb-sans); color: var(--rb-ink); }
.rb-rule p { color: var(--rb-muted); font-size: 16px; line-height: 1.6; }

/* ---------- small helpers ---------- */
.rb-more { margin-top: 28px; }
.rb-needed { display: grid; gap: 10px; margin-top: 8px; padding: 20px 22px; border-radius: 16px; background: var(--rb-oat); }
.rb-needed ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 16px; line-height: 1.5; color: var(--rb-text); }
.rb-photo { margin: 0; border-radius: 24px; overflow: hidden; position: relative; aspect-ratio: 4 / 5; background: var(--rb-oat); }
.rb-photo img { width: 100%; height: 100%; object-fit: cover; }
.rb-photo figcaption { position: absolute; left: 16px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .9); font: 500 13px/1.3 var(--rb-sans); color: var(--rb-muted); }
.rb-related--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rb-related--two .rb-rule { display: grid; gap: 4px; align-content: start; }
.rb-related--two .rb-actions { margin-top: 14px; }
.rb-rule-links { display: grid; gap: 8px; margin-top: 14px !important; }
.rb-steps--after { margin-top: clamp(40px, 5vw, 64px); }
.rb-home .rb-hero h1 { max-width: 11ch; }
.rb-check-grid .rb-split-copy > img { width: 100%; height: auto; background: var(--rb-paper); }

/* ---------- long-form pages (guide, consent, privacy, 404) ---------- */
body.rb .page-main { padding-bottom: clamp(64px, 8vw, 110px); }
body.rb .page-shell { width: min(100% - 2 * var(--rb-gutter), 820px); margin-inline: auto; }
body.rb .breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 22px; font-size: 14px; color: var(--rb-muted); }
body.rb .breadcrumb a { color: var(--rb-muted); text-decoration: none; }
body.rb .breadcrumb a:hover { color: var(--rb-ink); text-decoration: underline; }
body.rb .page-title { display: grid; gap: 18px; padding-block: clamp(28px, 4vw, 56px) clamp(24px, 3vw, 40px); }
body.rb .page-title > p { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--rb-muted); }
body.rb .section-kicker { font: 500 14px/1.3 var(--rb-sans); letter-spacing: .02em; color: var(--rb-muted); }
body.rb .legal-copy { font-size: 18px; line-height: 1.7; }
body.rb .legal-copy h2 { margin: 48px 0 14px; font-size: clamp(26px, 2.8vw, 34px); }
body.rb .legal-copy p, body.rb .legal-copy ul, body.rb .legal-copy ol { margin: 0 0 16px; }
body.rb .legal-copy ul, body.rb .legal-copy ol { padding-left: 22px; }
body.rb .legal-copy li { margin-bottom: 8px; }
body.rb .legal-copy .clean-list { list-style: none; padding-left: 0; border-top: 1px solid var(--rb-line); }
body.rb .legal-copy .clean-list li { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--rb-line); }
body.rb .legal-copy .clean-list.muted li { color: var(--rb-text); }
body.rb .price-notice { margin: 0 0 24px; padding: 20px 22px; border-radius: 16px; background: var(--rb-white); border: 1px solid var(--rb-line); font-size: 17px; line-height: 1.6; }
body.rb .callout { margin: 32px 0; padding: 26px 28px; border-radius: 20px; background: var(--rb-oat); }
body.rb .callout > strong { display: block; margin-bottom: 8px; font: 500 clamp(21px, 2vw, 25px)/1.25 var(--rb-serif); color: var(--rb-ink); }
body.rb .callout p { margin: 0 0 12px; }
body.rb .callout-actions, body.rb .form-actions { margin: 16px 0 0; }
body.rb .form-actions { margin-bottom: 24px; }
body.rb .form-privacy, body.rb .ob-hint { margin-top: 32px; font-size: 14px; line-height: 1.55; color: var(--rb-muted); }
body.rb .text-link, body.rb .legal-copy a:not(.button) { color: var(--rb-ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--rb-line-2); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
body.rb .text-link:hover, body.rb .legal-copy a:not(.button):hover { text-decoration-color: var(--rb-ink); }
body.rb .button-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- reveal on scroll ---------- */
.rb-js .rb-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.rb-js .rb-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rb-js .rb-reveal { opacity: 1; transform: none; transition: none; }
  .rb-card, .rb-card-art img { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .rb-head-phone { display: none; }
  .rb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  body.rb { font-size: 17px; padding-bottom: 76px; }
  .rb-header-in { height: 64px; gap: 12px; }
  .rb-brand .rb-brand-word { width: 132px; }
  .rb-brand .rb-brand-symbol { width: 32px; }
  .rb-menu-btn { display: block; }
  .rb-nav { display: none; position: fixed; inset: 64px 0 0 0; z-index: 59; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px var(--rb-gutter) 120px; background: var(--rb-paper); overflow-y: auto; }
  .rb-nav.open { display: flex; }
  body.menu-open { overflow: hidden; }
  body.menu-open .rb-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--rb-paper); border-bottom-color: var(--rb-line); }
  .rb-nav summary { display: flex; }
  .rb-drop { width: 100%; }
  .rb-nav > a, .rb-nav summary { min-height: 60px; padding: 0 4px; border-bottom: 1px solid var(--rb-line); border-radius: 0; font-size: 20px; justify-content: space-between; }
  .rb-nav > a:hover, .rb-nav summary:hover, .rb-nav details[open] summary { background: transparent; }
  .rb-drop-panel { position: static; width: auto; grid-template-columns: 1fr; padding: 4px 0 12px; border: 0; box-shadow: none; background: transparent; }
  .rb-drop-panel a { padding: 12px 4px; font-size: 18px; }
  .rb-head-actions { display: none; }
  .rb-nav .rb-nav-mobile-only { display: flex; }
  .rb-hero-grid, .rb-split, .rb-person, .rb-check-grid, .rb-cta-in { grid-template-columns: minmax(0, 1fr); }
  .rb-hero-art { aspect-ratio: 4 / 3; border-radius: 18px; }
    .rb-split-copy { position: static; }
  .rb-check-grid .rb-split-copy > img { display: none; }
  .rb-nav > a.rb-btn { margin-top: 20px; min-height: 56px; border: 1px solid var(--rb-ink); border-radius: 12px; justify-content: center; font-size: 18px; }
  .rb-facts { grid-template-columns: 1fr; }
  .rb-steps { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .rb-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-hero-art, .rb-service-hero .rb-hero-art { aspect-ratio: 16 / 10; }
  .rb-hero-art video, .rb-hero-art img { object-fit: contain; }
  .rb-nav summary svg { width: 22px; height: 22px; }
  .rb-mobilebar { transition: transform .25s ease; }
  .rb-mobilebar.is-hidden { transform: translateY(110%); }
  .rb-price-group { grid-template-columns: 1fr; gap: 8px; }
  .rb-cta-actions { justify-self: stretch; max-width: none; }
  .rb-person-photo { width: 160px; }
  .rb-related--two { grid-template-columns: 1fr; }
  .rb-photo { aspect-ratio: 4 / 3; }
  .rb-mobilebar { position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; padding: 10px var(--rb-gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(250, 248, 243, .96); border-top: 1px solid var(--rb-line); font-family: var(--rb-sans); }
  .rb-mobilebar .rb-btn { min-height: 52px; }
  body.menu-open .rb-mobilebar { display: none; }
}
@media (min-width: 901px) { .rb-nav-mobile-only { display: none !important; } }
@media (max-width: 600px) {
  body.rb h1 { font-size: clamp(36px, 10vw, 44px); }
  .rb-cards, .rb-rows, .rb-rules { grid-template-columns: 1fr; }
  .rb-card { grid-template-columns: 132px 1fr; grid-template-rows: none; }
  .rb-card-art { aspect-ratio: auto; height: 100%; border-bottom: 0; border-right: 1px solid var(--rb-line); }
  .rb-card-body { padding: 14px 16px 16px; gap: 4px; }
  .rb-card-body h3 { font-size: 21px; }
  .rb-card-body p { font-size: 15px; }
  .rb-card-foot { margin-top: 6px; padding-top: 10px; }
  .rb-arrow { width: 32px; height: 32px; }
  .rb-hero-card { padding: 16px; }
  .rb-answer { grid-template-columns: 1fr; }
  .rb-answer-mark { width: 38px; height: 38px; font-size: 19px; }
  .rb-price-row { grid-template-columns: 1fr auto; }
  .rb-price-row .rb-arrow { display: none; }
  .rb-cert dl { grid-template-columns: 1fr; }
  .rb-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .rb-faq details p { padding-right: 0; }
  .pc-options { grid-template-columns: 1fr; }
  .rb-actions { display: grid; }
  .rb-btn, body.rb .button { white-space: normal; text-align: center; line-height: 1.25; padding-block: 12px; }
  .rb-actions .rb-btn { width: 100%; }
  .rb-hero-copy > .rb-actions { justify-self: stretch; }
  .rb-hero-art, .rb-service-hero .rb-hero-art { aspect-ratio: 4 / 3; }
  .rb-card-body h3 { hyphens: manual; overflow-wrap: anywhere; }
  .rb-related { grid-template-columns: 1fr; }
  .rb-steps { grid-template-columns: 1fr; gap: 10px; }
  .rb-steps li { grid-template-columns: 30px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; padding: 18px 18px 20px; }
  .rb-steps li::before { grid-row: span 2; font-size: 32px; }
  .rb-steps strong { font-size: 18px; }
  .rb-steps p { font-size: 15px; }
  .pc-verdict { flex-direction: column; gap: 10px; padding: 18px; }
  .pc-actions .rb-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .rb-mobilebar { transition: none; } }
