/* KHALDRIX demo site, shared styles */

/* 1. Tokens */
:root {
  --bg: #FFFFFF;
  --alt: #F2F4F7;
  --ink: #0E1116;
  --muted: #4A5260;
  --line: #E1E5EB;
  --line-strong: #C3CAD4;
  --navy: #111A27;
  --on-navy: #F5F7FA;
  --on-navy-muted: #B6BFCC;
  --on-navy-line: rgba(255, 255, 255, 0.14);
  --accent: #FFD21E;
  --accent-hover: #F2C400;
  --error: #B42318;
  --radius: 14px;
  --m: clamp(20px, 5vw, 64px);
  --max: 1200px;
  --header: 72px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --h1: clamp(2.125rem, 1.55rem + 2.6vw, 3.75rem);
  --h2: clamp(1.875rem, 1.5rem + 1.4vw, 2.625rem);
}

/* 2. Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 24px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
h1, h2, h3 { font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.on-navy :focus-visible, .footer :focus-visible, .demo-note :focus-visible { outline-color: var(--accent); }
::selection { background: var(--accent); color: var(--ink); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip {
  position: absolute; left: 12px; top: -120px; z-index: 100;
  background: var(--accent); color: var(--ink); font-weight: 700;
  padding: 12px 18px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* 3. Icons */
.ico { width: 36px; height: 36px; flex: none; color: var(--ink); }
.ico .s { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ico .a { fill: var(--accent); }
.ico .f { fill: currentColor; }
.ui { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tick { width: 24px; height: 24px; flex: none; }
.tick circle { fill: var(--accent); }
.tick path { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 18px; height: 18px; fill: var(--accent); stroke: #B08A00; stroke-width: 1; stroke-linejoin: round; }

/* 4. Layout */
.wrap { width: min(100% - 2 * var(--m), var(--max)); margin-inline: auto; }
.sec { padding-block: clamp(64px, 3rem + 4vw, 112px); }
.sec.alt { background: var(--alt); }
.sec.tight-top { padding-top: 0; }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 4vw, 48px); }
.sec-head p { color: var(--muted); font-size: 20px; max-width: 46ch; }
@media (min-width: 900px) {
  .sec-head.split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 48px; }
}
.source { font-size: 16px; color: var(--muted); margin-top: 24px; }

/* 5. Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  border: 2px solid transparent; border-radius: 10px;
  font: 700 18px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-light { background: transparent; border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn .ui { width: 20px; height: 20px; }
.btn .ui-arrow { transition: transform 200ms var(--ease); }
.link {
  font-weight: 700; color: inherit;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--accent);
}
.more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; text-decoration: none; }
.more .ui { transition: transform 200ms var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
  .btn-outline:hover { background: var(--ink); color: #fff; }
  .btn-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
  .btn:hover .ui-arrow, .more:hover .ui { transform: translateX(4px); }
  .link:hover { text-decoration-color: var(--ink); }
}

/* 6. Demo note and header */
.demo-note { background: var(--ink); color: #fff; font-size: 16px; line-height: 1.4; text-align: center; padding: 10px var(--m); }
.demo-note a { color: var(--accent); font-weight: 700; display: inline-block; padding-block: 12px; margin-block: -12px; }
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 8px; min-height: var(--header); }
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-right: auto;
  font-weight: 800; font-size: 20px; letter-spacing: 0.04em; text-decoration: none; color: var(--ink);
}
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.nav { display: none; }
.nav ul { display: flex; gap: 2px; }
.nav a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 16px; font-weight: 600; text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--accent); text-underline-offset: 8px; }
.head-tel { display: none; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.head-offerte { display: none; min-height: 44px; }
.head-bel { min-height: 44px; padding: 0 14px; font-size: 16px; gap: 8px; }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 10px;
  border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
  font: 700 16px var(--font); cursor: pointer;
}
.menu-btn .ui-x { display: none; }
.menu-btn[aria-expanded="true"] .ui-x { display: block; }
.menu-btn[aria-expanded="true"] .ui-menu { display: none; }
.menu-btn [data-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 480px) {
  .menu-btn { padding: 0 14px; }
  .menu-btn [data-label] { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .brand { font-size: 22px; }
  .brand img { width: 40px; height: 40px; }
  .header-in { gap: 12px; }
}
.mnav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(14, 17, 22, 0.12);
  padding: 4px var(--m) 24px;
  max-height: calc(100dvh - var(--header)); overflow-y: auto;
}
.header.open .mnav { display: block; animation: drop 200ms var(--ease); }
.mnav a:not(.btn) {
  display: flex; align-items: center; justify-content: space-between; min-height: 56px;
  border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 700; text-decoration: none;
}
.mnav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.mnav .btn { width: 100%; margin-top: 16px; }
.mnav .btn + .btn { margin-top: 10px; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (min-width: 1100px) {
  .nav { display: block; margin-right: 4px; }
  .head-tel, .head-offerte { display: inline-flex; }
  .head-tel span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .head-bel, .menu-btn, .mnav, .header.open .mnav { display: none; }
}
@media (min-width: 1280px) {
  .head-tel { padding-inline: 8px; }
  .head-tel span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
}
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { background: var(--alt); }
  .head-tel:hover span { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
  .menu-btn:hover { border-color: var(--line-strong); }
}

/* 7. Hero */
.hero { padding-block: clamp(28px, 4vw, 64px) clamp(48px, 5vw, 72px); }
.hero.has-facts { padding-bottom: 0; }
.crumbs { font-size: 16px; color: var(--muted); margin-bottom: 16px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #8D96A3; }
.crumbs a { display: inline-block; padding-block: 10px; margin-block: -10px; color: var(--muted); }
.hero-in { display: grid; gap: 32px; }
.hero h1 { max-width: 15ch; }
.hero .lead { margin-top: 18px; font-size: 20px; color: var(--muted); max-width: 44ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.checks { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 24px; font-size: 16px; }
.checks li { display: flex; align-items: center; gap: 10px; }
.checks .ui { color: var(--muted); }
.checks a { color: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; display: inline-block; padding-block: 10px; margin-block: -10px; }
.hero-photo { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--alt); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-figure { margin: 0; }
@media (min-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 4vw, 56px); }
  .hero-photo { aspect-ratio: 5 / 4; }
}
@media (max-width: 899px) {
  .actions .btn { flex: 1 1 100%; }
  .actions .call { order: -1; background: var(--accent); border-color: var(--accent); color: var(--ink); }
  .actions .quote-btn { background: transparent; border-color: var(--ink); }
}

/* 8. Facts strip */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.facts li { display: flex; gap: 14px; align-items: flex-start; padding-block: 24px; }
.facts li:nth-child(n + 3) { border-top: 1px solid var(--line); }
.facts .ico { width: 36px; height: 36px; }
.facts strong { display: block; font-size: 18px; line-height: 1.3; }
.facts span { display: block; font-size: 16px; line-height: 1.4; color: var(--muted); margin-top: 2px; }
@media (max-width: 479px) {
  .facts { grid-template-columns: 1fr; }
  .facts li + li { border-top: 1px solid var(--line); }
  .facts li { padding-block: 18px; }
}
@media (min-width: 1100px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 0; }
  .facts li { padding: 28px 24px; }
  .facts li:nth-child(n + 3) { border-top: 0; }
  .facts li + li { border-left: 1px solid var(--line); }
  .facts li:first-child { padding-left: 0; }
}

/* 9. Photo cards */
.cards { display: grid; gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  color: inherit; text-decoration: none;
  transition: border-color 200ms ease, box-shadow 240ms var(--ease);
}
.card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--alt); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.card-body { display: grid; gap: 8px; align-content: start; padding: 20px 22px 24px; }
.card h3 { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card h3 .ui { width: 22px; height: 22px; transition: transform 200ms var(--ease); }
.card p { font-size: 16px; color: var(--muted); }
a.card:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) {
  a.card:hover { border-color: var(--line-strong); box-shadow: 0 16px 40px rgba(14, 17, 22, 0.08); }
  a.card:hover .card-img img { transform: scale(1.04); }
  a.card:hover h3 .ui { transform: translateX(4px); }
}
@media (max-width: 719px) {
  .cards.compact .card { flex-direction: row; }
  .cards.compact .card-img { width: 112px; flex: none; aspect-ratio: auto; }
  .cards.compact .card-body { padding: 16px 16px 18px; gap: 4px; }
  .cards.compact .card h3 { font-size: 18px; }
}
@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cards > * { grid-column: span 3; }
  .cards.five > :first-child { grid-column: span 6; }
  .cards.five > :first-child .card { flex-direction: row; }
  .cards.five > :first-child .card-img { width: 50%; aspect-ratio: auto; min-height: 260px; }
  .cards.five > :first-child .card-body { align-content: center; padding: 32px; }
}
@media (min-width: 1024px) {
  .cards.five > :first-child { grid-column: span 2; }
  .cards.five > :first-child .card { flex-direction: column; }
  .cards.five > :first-child .card-img { width: auto; aspect-ratio: 16 / 10; min-height: 0; }
  .cards.five > :first-child .card-body { align-content: start; padding: 20px 22px 24px; }
  .cards.five > :nth-child(-n + 3) { grid-column: span 2; }
  .cards.five > :nth-child(n + 4) .card-img { aspect-ratio: 16 / 8; }
}

/* 10. Icon tiles */
.tiles { display: grid; gap: 20px; }
.tile { display: grid; gap: 12px; align-content: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.tile .ico { width: 40px; height: 40px; margin-bottom: 4px; }
.tile p { font-size: 16px; color: var(--muted); }
@media (min-width: 720px) {
  .tiles.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles.three .tile { padding: 24px; }
}
@media (min-width: 1100px) {
  .tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tiles.three .tile { padding: 28px; }
}

/* 11. Why (navy band) */
.why { background: var(--navy); color: var(--on-navy); }
.why-in { display: grid; gap: 36px; }
.why .lead { margin-top: 16px; font-size: 20px; color: var(--on-navy-muted); max-width: 40ch; }
.why-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; }
.why-photo img { width: 100%; height: 100%; object-fit: cover; }
.why-list { display: grid; gap: 28px; }
.why-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; }
.why-list .ico { width: 40px; height: 40px; color: var(--on-navy); }
.why-list p { margin-top: 6px; font-size: 16px; color: var(--on-navy-muted); }
@media (min-width: 720px) { .why-list { grid-template-columns: 1fr 1fr; gap: 32px; } .why-photo { aspect-ratio: 2 / 1; } }
@media (min-width: 1100px) {
  .why-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "photo text" "photo list"; column-gap: 64px; row-gap: 40px; }
  .why-photo { grid-area: photo; aspect-ratio: auto; min-height: 100%; }
  .why-text { grid-area: text; align-self: end; }
  .why-list { grid-area: list; align-self: start; }
}

/* 12. Steps */
.steps { display: grid; gap: 20px; }
.step { display: grid; gap: 12px; align-content: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 20px; margin-bottom: 4px; }
.step p { font-size: 16px; color: var(--muted); }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } .step { padding: 24px; } }
@media (min-width: 1100px) { .step { padding: 28px; } }

/* 13. Split sections */
.split { display: grid; gap: 40px; align-items: center; }
.split-text { display: grid; gap: 20px; justify-items: start; }
.split-text > p { color: var(--muted); }
.split-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--alt); }
.split-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .split.rev > :first-child { order: 2; }
  .split-photo.tall { aspect-ratio: 4 / 5; }
}
.checklist { display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; }
.checklist .tick { margin-top: 3px; }

/* 14. One-line diagram */
.schema { display: grid; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 32px); }
.schema svg { width: 100%; height: auto; }
.schema .w { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.schema .hot { stroke-width: 4; }
.schema text { font: 800 18px var(--font); fill: var(--ink); }
.legend { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px 12px; font-size: 16px; align-items: center; }
.legend dt { width: 28px; height: 28px; border-radius: 6px; background: var(--accent); display: grid; place-items: center; font-weight: 800; }
.schema figcaption { font-size: 16px; color: var(--muted); }
@media (min-width: 600px) { .legend { grid-template-columns: 28px minmax(0, 1fr) 28px minmax(0, 1fr); } }

/* 15. Area and hours */
.area-grid { display: grid; gap: 20px; }
.panel-card { display: grid; gap: 18px; align-content: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.towns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.towns li { display: flex; align-items: center; gap: 10px; }
.towns .ico { width: 24px; height: 24px; }
.status { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.status::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--ink); flex: none; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; }
.hours tr.today th, .hours tr.today td { font-weight: 700; }
.hours tr.today th::after { content: ", vandaag"; font-weight: 400; color: var(--muted); }
.addr { display: grid; gap: 4px; }
@media (min-width: 900px) { .area-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* 16. FAQ */
.faq-grid { display: grid; gap: 32px; }
.faq-side { display: grid; gap: 16px; align-content: start; justify-items: start; }
.faq-side p { color: var(--muted); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 44px; padding: 20px 0; font-size: 20px; font-weight: 700; line-height: 1.3; cursor: pointer; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ui { transition: transform 240ms var(--ease); }
.faq-list details[open] summary .ui { transform: rotate(180deg); }
.faq-list .ans { padding-bottom: 22px; color: var(--muted); max-width: 62ch; }
@media (hover: hover) and (pointer: fine) { .faq-list summary:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; } }
@media (min-width: 900px) {
  .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; }
  .faq-side { position: sticky; top: calc(var(--header) + 32px); align-self: start; }
}

/* 17. Call to action band */
.cta-box { display: grid; background: var(--navy); color: var(--on-navy); border-radius: 20px; overflow: hidden; }
.cta-text { display: grid; gap: 16px; justify-items: start; align-content: center; padding: clamp(32px, 5vw, 64px); }
.cta-text p { font-size: 20px; color: var(--on-navy-muted); max-width: 40ch; }
.cta-text .actions { margin-top: 12px; }
.cta-photo { display: none; }
.cta-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .cta-box { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .cta-photo { display: block; }
}
@media (max-width: 899px) {
  .cta-text .actions .call { background: var(--accent); border-color: var(--accent); color: var(--ink); }
  .cta-text .actions .quote-btn { background: transparent; border-color: rgba(255, 255, 255, 0.55); color: #fff; }
}

/* 18. Forms: chips, calculator, quote */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  background: #fff; border: 2px solid var(--line); border-radius: 999px;
  font-size: 16px; font-weight: 600; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .chip input:not(:checked):hover + span { border-color: var(--line-strong); } }
legend { padding: 0; margin-bottom: 12px; font-weight: 700; font-size: 18px; }
fieldset { border: 0; padding: 0; min-width: 0; }

.calc-grid { display: grid; gap: 32px; }
.calc { display: grid; gap: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.calc-out { display: grid; gap: 6px; padding-top: 22px; border-top: 1px solid var(--line); }
.calc-num { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc-out p { font-size: 16px; color: var(--muted); }
.night { position: relative; height: 12px; border-radius: 999px; background: var(--alt); overflow: hidden; margin-top: 8px; }
.night i { position: absolute; inset: 0 auto 0 0; width: 54%; background: var(--accent); border-radius: inherit; transition: width 400ms var(--ease); }
.night-scale { display: flex; justify-content: space-between; font-size: 16px; color: var(--muted); }
.calc-text { display: grid; gap: 16px; justify-items: start; }
.calc-text > p { color: var(--muted); }
@media (min-width: 900px) { .calc-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; } }

.contact-grid { display: grid; gap: 24px; }
.c-card { display: grid; gap: 18px; align-content: start; background: var(--navy); color: var(--on-navy); border-radius: var(--radius); padding: clamp(24px, 3vw, 32px); }
.c-card h2 { font-size: 26px; }
.c-card .btn { width: 100%; }
.c-card .status::before { border-color: #fff; }
.c-card dl { display: grid; gap: 14px; padding-top: 18px; border-top: 1px solid var(--on-navy-line); }
.c-card dt { font-weight: 700; }
.c-card dd { color: var(--on-navy-muted); }
.c-card a:not(.btn) { color: var(--on-navy); }
.quote { display: grid; gap: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); }
.quote h2 { font-size: 26px; }
.preview { display: grid; gap: 8px; border: 2px dashed var(--line-strong); border-radius: 12px; padding: 18px 20px; }
.preview h3 { font-size: 16px; }
.msg { font-size: 18px; }
.msg.empty { color: var(--muted); }
.fields { display: grid; gap: 16px; }
.fields label { display: block; margin-bottom: 6px; font-size: 16px; font-weight: 700; }
.fields .opt { font-weight: 400; color: var(--muted); }
.fields input, .fields textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  background: #fff; color: var(--ink); border: 2px solid var(--line-strong); border-radius: 10px;
  font: 400 18px/1.4 var(--font);
}
.fields textarea { min-height: 120px; resize: vertical; }
.fields input:focus-visible, .fields textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.send p { font-size: 16px; color: var(--muted); }
.err { color: var(--error); font-weight: 700; }
.done { border: 2px solid var(--ink); border-radius: 12px; padding: 16px 20px; font-weight: 600; }
.done:focus { outline: none; }
@media (min-width: 600px) {
  .fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fields .full { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px; align-items: start; }
  .quote { grid-column: 1; grid-row: 1; }
  .c-card { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header) + 24px); }
}

/* 19. Footer */
.footer { background: var(--navy); color: var(--on-navy); padding-block: 64px 32px; font-size: 16px; }
.f-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px 24px; }
.f-brand { grid-column: 1 / -1; display: grid; gap: 12px; justify-items: start; }
.f-contact { grid-column: 1 / -1; order: 3; }
.f-brand .brand { color: #fff; margin: 0; }
.f-brand p { color: var(--on-navy-muted); max-width: 34ch; }
.f-title { font-size: 16px; font-weight: 700; letter-spacing: 0; margin-bottom: 8px; color: #fff; }
.footer p, .footer li { color: var(--on-navy-muted); }
.footer ul a, .footer .f-col p a { display: inline-block; padding-block: 9px; color: var(--on-navy); text-decoration: none; }
.footer .f-col p + p { margin-top: 10px; }
.f-legal { display: grid; gap: 8px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--on-navy-line); }
.f-legal a { color: var(--on-navy); display: inline-block; padding-block: 10px; margin-block: -10px; }
@media (hover: hover) and (pointer: fine) { .footer ul a:hover, .footer .f-col p a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; } }
@media (min-width: 900px) {
  .f-grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
  .f-brand, .f-contact { grid-column: auto; }
  .f-contact { order: 0; }
}

/* 20. Entrances */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity 640ms var(--ease), transform 640ms var(--ease); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  .header.open .mnav { animation: none; }
  .card-img img, .btn, .ui { transition: none !important; }
}
