/* Hämeen Atk- ja tilipalvelu Oy – design system
   Sand & olive theme, terracotta/clay palette, Fraunces + Inter,
   framed poster layout, line illustrations, sharp flat shapes, side progress dots. */

:root {
  --sand: #efe7d4;
  --sand-deep: #e3d7bb;
  --paper: #f8f3e8;
  --olive: #4a5530;
  --olive-deep: #2c3319;
  --ink: #23271a;
  --muted: #5a5d45;
  --terracotta: #a3471f;
  --terracotta-dark: #86391a;
  --clay: #d29a73;
  --clay-soft: #ecc9ad;
  --line: rgba(35, 39, 26, 0.85);
  --line-soft: rgba(35, 39, 26, 0.22);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --frame: 12px;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1180px;
  --space: clamp(64px, 9vw, 120px);
  --rule: 1.5px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: var(--terracotta); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--terracotta-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0 0 0.6em; letter-spacing: -0.01em; font-variation-settings: 'SOFT' 30; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 24px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; }
.skip-link:focus { top: 24px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* Poster frame around the viewport */
.frame { position: fixed; inset: var(--frame); border: 2px solid var(--olive); pointer-events: none; z-index: 90; }
.frame::before, .frame::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid var(--terracotta); }
.frame::before { top: -6px; left: -6px; border-right: 0; border-bottom: 0; }
.frame::after { bottom: -6px; right: -6px; border-left: 0; border-top: 0; }
body { padding: calc(var(--frame) + 2px); }

/* Header */
.site-header { position: sticky; top: calc(var(--frame) + 2px); z-index: 50; background: var(--sand); border-bottom: var(--rule) solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; color: var(--ink); text-decoration: none; line-height: 1.2; letter-spacing: -0.01em; }
.wordmark:hover { color: var(--olive); text-decoration: none; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 8px 12px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.97rem; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--terracotta); color: var(--ink); }

/* Buttons – sharp and flat */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; font: 600 0.98rem/1.2 var(--font-body); text-decoration: none; border: 2px solid transparent; border-radius: 0; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn:hover { text-decoration: none; }
.btn-solid { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }
.btn-solid:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-sand { background: var(--sand); color: var(--ink); border-color: var(--sand); }
.btn-sand:hover { background: var(--clay-soft); border-color: var(--clay-soft); color: var(--ink); }
.btn-outline-light { background: transparent; color: var(--sand); border-color: var(--sand); }
.btn-outline-light:hover { background: var(--sand); color: var(--ink); }
.btn-choice { background: var(--ink); color: var(--paper); border-color: var(--ink); min-width: 150px; }
.btn-choice:hover { background: var(--olive); border-color: var(--olive); color: var(--paper); }

/* Poster sections */
.poster { padding: var(--space) 0; border-bottom: var(--rule) solid var(--line); position: relative; }
.poster-paper { background: var(--paper); }
.poster-olive { background: var(--olive); color: var(--sand); }
.poster-olive a:not(.btn) { color: var(--clay-soft); }
.poster-label { display: flex; align-items: center; gap: 14px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 26px; color: var(--muted); }
.poster-label span { font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.02em; text-transform: none; color: var(--terracotta); padding: 2px 10px; border: var(--rule) solid currentColor; }
.poster-olive .poster-label { color: var(--clay-soft); }
.poster-olive .poster-label span { color: var(--sand); }

.section-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); max-width: 22ch; }
.section-intro { font-size: 1.12rem; color: var(--muted); max-width: 52ch; }
.poster-olive .section-intro { color: var(--sand-deep); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: 40px; }
.section-head .section-title { margin: 0; }
.text-link { font-weight: 600; color: var(--terracotta); }
.text-link::after { content: ' →'; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }

/* Hero */
.hero { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border: var(--rule) solid var(--ink); background: var(--paper); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 28px; }
.badge-dot { width: 9px; height: 9px; background: var(--terracotta); display: inline-block; }
.display { font-size: clamp(2.5rem, 6.2vw, 4.9rem); line-height: 1.03; letter-spacing: -0.025em; font-weight: 600; max-width: 16ch; }
.display-md { font-size: clamp(2.3rem, 5vw, 4rem); max-width: 20ch; }
.mark { position: relative; display: inline-block; white-space: nowrap; color: var(--olive); }
.scribble { position: absolute; left: -2%; bottom: -0.16em; width: 104%; height: 0.36em; overflow: visible; }
.scribble path { fill: none; stroke: var(--terracotta); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 700; stroke-dashoffset: 0; animation: draw 1.4s .3s ease-out both; }
@keyframes draw { from { stroke-dashoffset: 700; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .scribble path { animation: none; } }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); max-width: 56ch; color: var(--muted); margin-top: 1.4em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-art { margin: 0; color: var(--olive); }
.hero-art svg { width: 100%; height: auto; display: block; }
.hero-art .art-frame { stroke: var(--line-soft); }
.hero-art .accent-line { stroke: var(--terracotta); stroke-width: 2.4; }

.fact-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(48px, 6vw, 72px) 0 0; border: var(--rule) solid var(--line); background: var(--paper); }
.fact-strip > div { padding: 18px 22px; border-left: var(--rule) solid var(--line); }
.fact-strip > div:first-child { border-left: 0; }
.fact-strip dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-weight: 600; }
.fact-strip dd { margin: 4px 0 0; font-weight: 600; line-height: 1.35; }

.page-hero { padding-top: clamp(56px, 8vw, 104px); }

/* Needs check widget */
.finder { background: var(--olive-deep); padding: clamp(22px, 3.4vw, 36px); border: var(--rule) solid var(--clay); }
.finder fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.finder legend { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin-bottom: 12px; padding: 0; color: var(--paper); }
.legend-hint { font-family: var(--font-body); font-size: 0.82rem; font-weight: 500; color: var(--clay-soft); margin-left: 8px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.choice-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border: var(--rule) solid rgba(239, 231, 212, 0.45); color: var(--sand); font-size: 0.95rem; line-height: 1.3; transition: background-color .15s, border-color .15s; }
.choice span::before { content: ''; flex: 0 0 auto; width: 14px; height: 14px; border: var(--rule) solid currentColor; }
.choice input[type="radio"] + span::before { border-radius: 50%; }
.choice:hover span { border-color: var(--sand); }
.choice input:checked + span { background: var(--sand); color: var(--ink); border-color: var(--sand); }
.choice input:checked + span::before { background: var(--terracotta); border-color: var(--terracotta); }
.choice input:focus-visible + span { outline: 3px solid var(--clay); outline-offset: 2px; }
.finder-result { border-top: var(--rule) solid rgba(239, 231, 212, 0.4); padding-top: 22px; margin-bottom: 22px; }
.finder-result h3 { font-size: 1.1rem; color: var(--paper); margin-bottom: 10px; }
.result-list { list-style: none; padding: 0; margin: 0 0 20px; }
.result-list li { position: relative; padding: 8px 0 8px 26px; border-bottom: 1px solid rgba(239, 231, 212, 0.18); color: var(--sand-deep); font-size: 0.97rem; }
.result-list li::before { content: ''; position: absolute; left: 0; top: 16px; width: 12px; height: 2px; background: var(--clay); }
.result-list strong { color: var(--paper); }
.finder-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.finder-note { margin: 0; font-size: 0.88rem; color: var(--clay-soft); max-width: 34ch; }

/* Service cards */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--rule) solid var(--line); border-left: var(--rule) solid var(--line); }
.service-card { padding: 30px 28px 32px; border-right: var(--rule) solid var(--line); border-bottom: var(--rule) solid var(--line); background: var(--sand); display: flex; flex-direction: column; transition: background-color .2s; }
.service-card:hover { background: var(--paper); }
.service-card p { color: var(--muted); flex: 1; }
.card-top { display: flex; justify-content: space-between; align-items: start; margin-bottom: 26px; }
.card-num { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--clay); font-weight: 400; }
.icon { color: var(--olive); width: 48px; height: 48px; flex: 0 0 auto; }

/* Steps */
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: var(--rule) solid var(--line); }
.step { padding: 28px 26px 8px 0; position: relative; }
.step + .step { padding-left: 26px; border-left: 1px dashed var(--line-soft); }
.step-num { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-top: -51px; margin-bottom: 20px; background: var(--terracotta); color: #fff; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.step p { color: var(--muted); font-size: 0.98rem; }

/* Reasons */
.reasons { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 56px); }
.reasons li { padding: 24px 0; border-top: var(--rule) solid var(--line); }
.reasons h3 { display: flex; gap: 12px; align-items: baseline; }
.reasons h3::before { content: ''; flex: 0 0 auto; width: 10px; height: 10px; background: var(--terracotta); transform: translateY(-2px); }
.reasons p { color: var(--muted); margin: 0; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); }
.faq-list { border-top: var(--rule) solid var(--line); }
.faq { border-bottom: var(--rule) solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-body); font-weight: 400; font-size: 1.6rem; line-height: 1; color: var(--terracotta); flex: 0 0 auto; }
.faq[open] summary::after { content: '−'; }
.faq p { color: var(--muted); padding: 0 40px 18px 0; margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.details-list { margin: 28px 0 0; border-top: var(--rule) solid var(--line); }
.details-list > div { display: grid; grid-template-columns: minmax(120px, 2fr) minmax(0, 3fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.details-list dt { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; color: var(--muted); padding-top: 3px; }
.details-list dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.details-card { background: var(--sand); border: var(--rule) solid var(--line); padding: 8px 28px 16px; }
.details-card .details-list { border-top: 0; margin: 0; }
.details-card .details-list > div:last-child { border-bottom: 0; }

.form-panel { background: var(--paper); border: var(--rule) solid var(--line); padding: clamp(22px, 3.4vw, 40px); }
.poster-paper .form-panel { background: var(--sand); }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.95rem; }
.req { color: var(--terracotta); }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fffdf8; border: var(--rule) solid var(--ink); border-radius: 0; padding: 12px 14px; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--clay); outline-offset: 0; border-color: var(--olive); }
.field [aria-invalid="true"] { border-color: #a3161b; }
.field-error { color: #a3161b; font-size: 0.9rem; font-weight: 500; margin: 0; }
.check { flex-direction: row; flex-wrap: wrap; align-items: start; gap: 12px; }
.check input { width: 22px; height: 22px; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--terracotta); padding: 0; }
.check label { flex: 1; font-weight: 400; min-width: 0; }
.check .field-error { flex-basis: 100%; }
.privacy-notice { font-size: 0.9rem; color: var(--muted); margin: 0; padding: 12px 14px; border-left: 3px solid var(--clay); background: rgba(210, 154, 115, 0.1); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 16px 18px; margin-bottom: 4px; }
.form-error { grid-column: 1 / -1; border: var(--rule) solid #a3161b; color: #7d1014; background: #fbeceb; }
.form-error p { margin: 0; font-weight: 600; }
.form-success { border: var(--rule) solid var(--olive); background: #eef0e2; }
.form-success h3 { font-size: 1.3rem; color: var(--olive-deep); }
.form-success p { margin: 0; }

.map-art { color: var(--olive); }
.map-art svg { width: 100%; height: auto; display: block; background: var(--paper); }
.map-art .water { stroke: var(--clay); stroke-width: 2; }
.map-art .pin { stroke: var(--terracotta); stroke-width: 3; fill: var(--sand); }

/* About & services */
.prose-columns { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); }
.prose { max-width: 68ch; }
.prose p, .prose li { color: inherit; }
.tick-list { list-style: none; padding: 0; margin: 0 0 1em; }
.tick-list li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line-soft); }
.tick-list li::before { content: ''; position: absolute; left: 2px; top: 17px; width: 12px; height: 7px; border-left: 2px solid var(--terracotta); border-bottom: 2px solid var(--terracotta); transform: rotate(-45deg); }
.poster-olive .tick-list li { border-color: rgba(239, 231, 212, 0.2); }
.list-title { font-size: 1.15rem; margin-top: 1.6em; }

.service-index ul { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--rule) solid var(--line); border-left: var(--rule) solid var(--line); }
.service-index a { display: flex; gap: 12px; align-items: baseline; padding: 16px 18px; border-right: var(--rule) solid var(--line); border-bottom: var(--rule) solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; background: var(--paper); height: 100%; }
.service-index a:hover { background: var(--clay-soft); }
.service-index span { font-family: var(--font-display); color: var(--terracotta); }
.service-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 88px); }
.service-aside { display: flex; flex-direction: column; gap: 20px; align-items: start; }
.big-num { font-family: var(--font-display); font-size: clamp(5rem, 11vw, 9rem); line-height: 0.85; font-weight: 400; color: transparent; -webkit-text-stroke: 1.5px var(--terracotta); }
.service-aside .icon { width: 64px; height: 64px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; align-self: center; }

.legal-body h2 { font-size: 1.5rem; margin-top: 1.8em; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body ul { padding-left: 1.2em; }
.legal-body li { margin-bottom: 0.4em; }
.legal-table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 0.95rem; display: block; overflow-x: auto; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line-soft); }
.legal-table th { background: var(--sand-deep); font-weight: 600; }
code { font-size: 0.9em; background: var(--sand-deep); padding: 1px 5px; }

.nf-links { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }

/* Side progress dots */
.dots { position: fixed; right: calc(var(--frame) + 18px); top: 50%; transform: translateY(-50%); z-index: 40; }
.dots ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.dots a { display: flex; flex-direction: row-reverse; align-items: center; gap: 10px; padding: 6px; text-decoration: none; color: var(--ink); }
.dot-mark { width: 10px; height: 10px; border: var(--rule) solid var(--olive); background: var(--sand); transition: background-color .2s, transform .2s; }
.dot-label { font-size: 0.78rem; font-weight: 600; background: var(--ink); color: var(--paper); padding: 3px 8px; white-space: nowrap; opacity: 0; transform: translateX(6px); transition: opacity .15s, transform .15s; pointer-events: none; }
.dots a:hover .dot-label, .dots a:focus-visible .dot-label { opacity: 1; transform: none; }
.dots a.is-active .dot-mark { background: var(--terracotta); border-color: var(--terracotta); transform: scale(1.25); }

/* Footer */
.site-footer { background: var(--olive-deep); color: var(--sand-deep); padding: 72px 0 0; font-size: 0.95rem; }
.site-footer a { color: var(--sand); }
.site-footer a:hover { color: var(--clay-soft); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.wordmark-light { color: var(--paper); display: inline-block; margin-bottom: 16px; font-size: 1.3rem; }
.wordmark-light:hover { color: var(--clay-soft); }
.footer-note { font-size: 0.88rem; color: var(--clay-soft); }
.footer-title { font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--clay); margin-bottom: 16px; }
.footer-dl { margin: 0 0 14px; }
.footer-dl div { margin-bottom: 8px; }
.footer-dl dt { font-size: 0.8rem; color: var(--clay-soft); }
.footer-dl dd { margin: 0; color: var(--paper); }
.footer-hint { font-size: 0.85rem; color: var(--clay-soft); }
.footer-contact { font-style: normal; display: flex; flex-direction: column; gap: 8px; overflow-wrap: anywhere; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; margin-top: 56px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid rgba(239, 231, 212, 0.2); font-size: 0.85rem; color: var(--clay-soft); }
.footer-base p { margin: 0; }

/* Cookie banner */
.cookie-banner { position: fixed; left: 50%; bottom: calc(var(--frame) + 14px); transform: translateX(-50%); width: min(760px, calc(100% - 2 * var(--frame) - 28px)); max-height: calc(100vh - 60px); overflow-y: auto; z-index: 100; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-top: 6px solid var(--terracotta); padding: 22px 24px; }
.cookie-banner[hidden] { display: none; }
.cookie-title { font-size: 1.3rem; margin-bottom: 8px; }
.cookie-main p { font-size: 0.95rem; margin-bottom: 16px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-actions .btn { min-height: 44px; padding: 10px 18px; }
.cookie-prefs { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.cookie-prefs fieldset { border: 0; margin: 0 0 14px; padding: 0; }
.pref-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.pref-name { font-weight: 600; cursor: pointer; }
.pref-text { margin: 2px 0 0; font-size: 0.88rem; color: var(--muted); }
.switch { appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 48px; height: 26px; margin: 0; border: 2px solid var(--ink); background: var(--sand-deep); position: relative; cursor: pointer; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: var(--ink); transition: transform .15s; }
.switch:checked { background: var(--olive); border-color: var(--olive); }
.switch:checked::after { transform: translateX(22px); background: var(--paper); }
.switch:disabled { opacity: 0.6; cursor: not-allowed; }

/* Responsive */
@media (max-width: 1100px) {
  .dots { display: none; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-grid, .split, .faq-grid, .contact-grid, .prose-columns, .service-row { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 420px; }
  .fact-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact-strip > div:nth-child(3) { border-left: 0; }
  .fact-strip > div:nth-child(n+3) { border-top: var(--rule) solid var(--line); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-index ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-aside { flex-direction: row; align-items: end; }
}
@media (max-width: 760px) {
  :root { --frame: 6px; }
  html { scroll-padding-top: 130px; }
  .header-inner { flex-wrap: wrap; gap: 4px 16px; padding-top: 12px; min-height: 0; }
  .wordmark { font-size: 1.02rem; flex: 1; }
  .header-cta { min-height: 40px; padding: 8px 14px; font-size: 0.9rem; }
  .main-nav { order: 3; width: 100%; margin: 0 calc(-1 * var(--gutter)); width: calc(100% + 2 * var(--gutter)); overflow-x: auto; border-top: 1px solid var(--line-soft); }
  .main-nav ul { padding: 0 calc(var(--gutter) - 12px); }
  .card-grid, .reasons, .service-index ul, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step, .step + .step { padding-left: 0; border-left: 0; }
  .contact-form { grid-template-columns: minmax(0, 1fr); }
  .choice-grid { grid-template-columns: minmax(0, 1fr); }
  .details-list > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .cookie-banner { padding: 18px 16px; }
  .cookie-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cookie-actions .btn { min-width: 0; }
  .cookie-actions [data-consent="preferences"], .cookie-prefs .cookie-actions .btn { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .fact-strip { grid-template-columns: minmax(0, 1fr); }
  .fact-strip > div { border-left: 0; }
  .fact-strip > div + div { border-top: var(--rule) solid var(--line); }
  .mark { white-space: normal; }
  .choice-grid-2 { grid-template-columns: minmax(0, 1fr); }
}
