/* PZ Sanierung – styles v2. Mobile-first. One card style, one primary action per screen. */

@font-face {
  font-family: "Lexend";
  src: url("../assets/fonts/lexend.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../assets/fonts/source-sans-3.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

:root {
  /* color tokens */
  --c-accent: #b8420f;
  --c-accent-dark: #8f3109;
  --c-accent-deep: #6e2506;
  --c-accent-light: #f08a5d;
  --c-accent-soft: #f6e3d7;
  --c-bg: #fbf5ee;
  --c-surface: #ffffff;
  --c-text: #1f2933;
  --c-muted: #55606b;
  --c-border: #e6d9cc;
  --c-dark: #25201c;
  --c-error: #b42318;
  --c-ok: #1a7f4b;

  --f-head: "Lexend", system-ui, sans-serif;
  --f-body: "Source Sans 3", system-ui, sans-serif;

  /* spacing scale */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 40px;
  --s-5: 64px;
  --section: clamp(56px, 9vw, 112px);

  --radius: 6px;
  --radius-lg: 8px;
  --shadow: 0 1px 2px rgba(31, 41, 51, 0.06), 0 10px 30px rgba(31, 41, 51, 0.08);
  --header-h: 64px;
  --bar-h: 64px;
  --wrap: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
}
body:has(dialog[open]) { overflow: hidden; }

img, svg { max-width: 100%; display: block; }
a { color: var(--c-accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--c-accent); }

h1, h2, h3 { font-family: var(--f-head); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 var(--s-2); font-weight: 600; }
h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 5vw, 2.9rem); letter-spacing: -0.03em; }
h3 { font-size: 1.1rem; letter-spacing: -0.01em; }
p { margin: 0 0 var(--s-2); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: var(--section) 0; }
.section--white { background: var(--c-surface); }
.section__head { max-width: 40rem; margin-bottom: var(--s-4); }
.section__head h2 { margin-bottom: var(--s-1); }
.eyebrow { display: flex; align-items: center; gap: 12px; font-family: var(--f-head); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-accent); margin: 0 0 var(--s-1); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--c-accent); flex: none; }
.lead { font-size: 1.15rem; color: var(--c-muted); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--c-surface); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; border-radius: 6px; }

.icon { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ph { border-bottom: 1px dashed currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0 1.5rem;
  font-family: var(--f-head); font-weight: 600; font-size: 1rem; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  border-radius: var(--radius); border: 2px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-accent-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--c-text); border-color: #b9aea3; }
.btn--ghost:hover { border-color: var(--c-text); background: var(--c-text); color: #fff; }
.btn--light { background: #fff; color: var(--c-accent-dark); }
.btn--light:hover { background: var(--c-accent-soft); color: var(--c-accent-deep); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--outline-light:hover { background: #fff; color: var(--c-accent-deep); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s-3); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-head); font-weight: 600; font-size: 0.95rem; color: var(--c-accent-dark); text-decoration: none; }
.link-arrow .icon { width: 1.1rem; height: 1.1rem; transition: transform 0.2s; }
button.link-arrow { background: none; border: 0; padding: 0; min-height: 44px; cursor: pointer; }
.link-arrow:hover .icon { transform: translateX(4px); }
.desk-only { display: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 245, 238, 0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--c-border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--c-text); font-family: var(--f-head); font-weight: 700; letter-spacing: -0.02em; }
.logo:hover { color: var(--c-text); }
.logo__mark { width: 36px; height: 36px; border-radius: var(--radius); background: var(--c-accent); color: #fff; display: grid; place-items: center; font-size: 0.95rem; }
.logo__text { font-size: 1.05rem; line-height: 1.1; }
.logo__text small { display: block; font-weight: 500; font-size: 0.7rem; color: var(--c-muted); letter-spacing: 0; }
.header-right { display: flex; align-items: center; gap: 4px; }
.icon-btn { width: 48px; height: 48px; display: grid; place-items: center; border: 0; background: transparent; color: var(--c-text); border-radius: var(--radius); cursor: pointer; }
.icon-btn:hover { background: var(--c-accent-soft); }
.nav, .header-phone, .header-cta { display: none; }
.nav a { text-decoration: none; color: var(--c-text); font-weight: 600; padding: 10px 14px; border-radius: var(--radius); transition: background-color .2s; }
.nav a:hover { background: var(--c-accent-soft); color: var(--c-text); }
.nav a.is-active { color: var(--c-accent-dark); }
.header-phone { align-items: center; gap: 8px; color: var(--c-text); font-weight: 600; text-decoration: none; padding: 0 8px; }
.header-phone:hover { color: var(--c-accent-dark); }
.header-phone .icon { width: 1.2rem; height: 1.2rem; }

.menu-panel { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: var(--c-bg); padding: var(--s-2) 20px var(--s-4); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; overflow-y: auto; }
.menu-panel.is-open { opacity: 1; transform: none; visibility: visible; }
.menu-panel .menu-link { display: flex; align-items: center; min-height: 60px; font-family: var(--f-head); font-size: 1.35rem; font-weight: 600; color: var(--c-text); text-decoration: none; border-bottom: 1px solid var(--c-border); }
.menu-panel .btn { margin-top: var(--s-3); }
body.menu-open { overflow: hidden; }

/* ---------- Mobile bottom bar ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 48; display: flex; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--c-surface); border-top: 1px solid var(--c-border); box-shadow: 0 -4px 16px rgba(31,41,51,.08); transition: transform .2s; }
.mobile-bar .btn { min-height: 48px; padding: 0 .5rem; flex: 1; }
.mobile-bar .btn:first-child { flex: 3; }
.mobile-bar .btn:last-child { flex: 2; }
body.kb-open .mobile-bar { transform: translateY(110%); }
body.no-bar { padding-bottom: 0; }
body.no-bar .mobile-bar { display: none; }

/* ---------- Hero (dark, architectural grid) ---------- */
.hero {
  position: relative; overflow: hidden; color: #f4ece4; background-color: var(--c-dark);
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px; padding: var(--s-4) 0 0;
}
.hero__grid { display: grid; gap: var(--s-4); align-items: center; padding-bottom: var(--s-4); }
.hero .eyebrow { color: #f0b290; }
.hero .eyebrow::before { background: #f0b290; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 10vw, 4.5rem); line-height: 1.04; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--c-accent-light); }
.hero .lead { color: #d9cdc2; max-width: 34rem; margin-bottom: 0; }
.hero__place { display: inline-flex; align-items: center; gap: 8px; margin: var(--s-3) 0 0; color: #d9cdc2; font-weight: 600; }
.hero__place .icon { width: 1.2rem; height: 1.2rem; color: var(--c-accent-light); }
.facts { border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-lg); padding: var(--s-3); background: rgba(37,32,28,.7); backdrop-filter: blur(2px); }
.facts h2 { color: #fff; font-size: 1.05rem; letter-spacing: 0; margin-bottom: var(--s-2); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.facts li { display: flex; gap: 14px; align-items: flex-start; }
.facts .tick { width: 28px; height: 28px; border-radius: var(--radius); background: rgba(240,178,144,.16); color: #f0b290; display: grid; place-items: center; flex: none; margin-top: 2px; }
.facts .tick .icon { width: 1rem; height: 1rem; stroke-width: 2.5; }
.facts strong { display: block; color: #fff; font-family: var(--f-head); font-size: 1rem; line-height: 1.3; }
.facts span.sub { display: block; color: #d9cdc2; font-size: .95rem; line-height: 1.4; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.2); }
.facts .sub { display: none !important; }
.stat { padding: var(--s-3) var(--s-2) var(--s-3) 0; }
.stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
.stat b { display: block; font-family: var(--f-head); font-size: clamp(2rem, 7vw, 3.4rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: #fff; }
.stat b small { display: block; font-size: .48em; line-height: 1.15; letter-spacing: -0.01em; }
.stat span { display: block; margin-top: 8px; color: #d9cdc2; font-size: .95rem; line-height: 1.3; }

/* ---------- Service cards (all identical) ---------- */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.card {
  position: relative; display: flex; align-items: center; gap: 14px; text-align: left;
  height: 96px; padding: 0 16px;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius);
  color: var(--c-text); font: inherit; cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: var(--c-accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.card:active { transform: none; }
.card__icon { width: 48px; height: 48px; border-radius: var(--radius); background: var(--c-accent-soft); color: var(--c-accent-dark); display: grid; place-items: center; flex: none; }
.card__icon .icon { width: 1.6rem; height: 1.6rem; }
.card__text { flex: 1; min-width: 0; }
.card__title { display: block; font-family: var(--f-head); font-weight: 600; font-size: 1.05rem; line-height: 1.25; }
.card__line { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--c-muted); font-size: .95rem; line-height: 1.35; margin-top: 2px; }
.card__more { display: none; }
.card__chev { color: var(--c-muted); width: 1.3rem; height: 1.3rem; }
.card:hover .card__chev { color: var(--c-accent); }

.card--fire { background: var(--c-dark); border-color: var(--c-dark); color: #fff; height: auto; min-height: 96px; padding: 16px; align-items: flex-start; }
.card--fire .card__icon { background: rgba(240,178,144,.16); color: #f0b290; }
.card--fire .card__line { color: #d9cdc2; -webkit-line-clamp: 3; }
.card--fire .card__chev { color: #d9cdc2; align-self: center; }
.card--fire:hover { border-color: #f0b290; }
.badge { display: inline-block; font-family: var(--f-head); font-weight: 600; font-size: .72rem; letter-spacing: .04em; padding: 3px 10px; border-radius: var(--radius); background: #f0b290; color: var(--c-dark); margin-bottom: 6px; }

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 var(--s-3) 64px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: var(--radius); display: grid; place-items: center; background: var(--c-accent); color: #fff; font-family: var(--f-head); font-weight: 700; }
.steps li::after { content: ""; position: absolute; left: 21px; top: 48px; bottom: 4px; width: 2px; background: var(--c-border); }
.steps li:last-child::after { display: none; }
.steps h3 { margin: 6px 0 4px; }
.steps p { margin: 0; color: var(--c-muted); }
.note { margin: var(--s-3) 0 0; padding: 14px 16px; border-left: 4px solid var(--c-accent); background: var(--c-bg); border-radius: 0 var(--radius) var(--radius) 0; font-size: .98rem; }

/* ---------- About ---------- */
.about { display: grid; gap: var(--s-4); }
.photo-slot { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); background: repeating-linear-gradient(135deg, var(--c-accent-soft) 0 14px, #f1d9c9 14px 28px); display: grid; place-items: center; color: var(--c-muted); font-size: .9rem; text-align: center; padding: var(--s-2); }
.checks { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks .tick { width: 28px; height: 28px; border-radius: var(--radius); background: var(--c-accent-soft); color: var(--c-accent-dark); display: grid; place-items: center; flex: none; margin-top: 2px; }
.checks .tick .icon { width: 1rem; height: 1rem; stroke-width: 2.5; }
.checks strong { font-family: var(--f-head); }
.infoboxes { display: grid; gap: var(--s-2); margin-top: var(--s-4); }
.infobox { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: var(--s-3); }
.infobox h3 { margin-bottom: 6px; }
.infobox p { margin: 0 0 var(--s-1); color: var(--c-muted); }
.quotes { display: grid; gap: var(--s-2); margin-top: var(--s-2); }
.quote { margin: 0; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: var(--s-3); }
.quote p { font-size: 1.08rem; margin-bottom: var(--s-1); }
.quote footer { color: var(--c-muted); font-size: .92rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--c-accent); color: #fff; padding: var(--s-5) 0; }
.cta-band h2 { color: #fff; max-width: 30rem; }
.cta-band p { color: #fbe7da; font-size: 1.15rem; max-width: 30rem; }

/* ---------- Dialog ---------- */
dialog.sheet { border: 0; padding: 0; width: min(580px, calc(100% - 32px)); max-height: min(86vh, 760px); border-radius: var(--radius-lg); background: var(--c-surface); color: var(--c-text); box-shadow: 0 24px 70px rgba(0,0,0,.35); overflow: auto; }
dialog.sheet::backdrop { background: rgba(31, 26, 22, .6); }
dialog.sheet[open] { animation: sheet-in .22s ease-out; }
@keyframes sheet-in { from { transform: translateY(14px); } to { transform: none; } }
.sheet__body { padding: var(--s-3) 20px var(--s-3); }
.sheet__top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: var(--s-2); padding-right: 40px; }
.sheet__top .card__icon { width: 52px; height: 52px; }
.sheet__top h2 { font-size: 1.45rem; margin: 2px 0 0; }
.sheet__close { position: absolute; top: 10px; right: 10px; }
.sheet ul { margin: 0 0 var(--s-3); padding-left: 1.2rem; }
.sheet li { margin-bottom: 6px; }
.sheet h3 { margin-top: var(--s-2); margin-bottom: 4px; }
.sheet .btn-row { margin-top: var(--s-2); }
.sheet--fire .card__icon { background: var(--c-dark); color: #f0b290; }

/* ---------- Kontakt page ---------- */
.contact { padding: var(--s-4) 0 var(--section); }
.contact__grid { display: grid; gap: var(--s-3); grid-template-columns: minmax(0, 1fr); }
.panel { background: var(--c-accent-deep); color: #fbeee5; border-radius: var(--radius-lg); padding: var(--s-4) var(--s-3); }
.panel .eyebrow { color: #f0b290; }
.panel h1 { color: #fff; font-size: clamp(1.9rem, 5vw, 2.6rem); }
.panel p { color: #f3dccd; }
.panel .btn { margin-top: var(--s-1); }
.panel__list { list-style: none; margin: var(--s-3) 0 0; padding: var(--s-3) 0 0; border-top: 1px solid rgba(255,255,255,.18); display: grid; gap: 14px; }
.panel__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; line-height: 1.45; }
.panel__list .icon { color: #f0b290; margin-top: 2px; width: 1.3rem; height: 1.3rem; }
.panel__list a { color: #fff; }
.panel__checks { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: 10px; }
.panel__checks li { display: flex; gap: 10px; align-items: center; font-weight: 600; color: #fff; }
.panel__checks .icon { color: #f0b290; stroke-width: 2.5; width: 1.2rem; height: 1.2rem; }

.form { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: var(--s-3) 20px; box-shadow: var(--shadow); }
.form fieldset { border: 0; padding: 0; margin: 0 0 var(--s-3); min-width: 0; }
.form__step { display: flex; align-items: center; gap: 12px; font-family: var(--f-head); font-weight: 600; font-size: 1.05rem; padding: 0; margin: 0 0 var(--s-2); }
.form__step b { width: 28px; height: 28px; border-radius: var(--radius); background: var(--c-accent); color: #fff; font-size: .85rem; display: grid; place-items: center; }
.form__sub { font-family: var(--f-head); font-weight: 600; font-size: .95rem; color: var(--c-muted); margin: 0 0 var(--s-2); }
.types { display: flex; flex-wrap: wrap; gap: 8px; }
.type input { position: absolute; opacity: 0; pointer-events: none; }
.type label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--c-border); border-radius: var(--radius); background: var(--c-bg); cursor: pointer; font-weight: 600; font-size: .95rem; line-height: 1.2; transition: border-color .2s, background-color .2s, color .2s; }
.type label:hover { border-color: var(--c-accent); }
.type input:checked + label { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.type input:focus-visible + label { outline: 3px solid var(--c-accent); outline-offset: 2px; }

.field { margin-bottom: var(--s-2); }
.field > label, .field > .label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--c-muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; color: var(--c-text);
  background: #fff; border: 1.5px solid #c9bdb0; border-radius: var(--radius); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #8d8076; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--c-accent); box-shadow: 0 0 0 4px rgba(184, 66, 15, .18); }
.field .hint { font-size: .9rem; color: var(--c-muted); margin: 4px 0 0; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--c-error); }
.error-msg { color: var(--c-error); font-size: .92rem; font-weight: 600; margin: 4px 0 0; }
.row-2 { display: grid; gap: 0 var(--s-2); grid-template-columns: minmax(0, 1fr); }
.row-pair { display: flex; flex-wrap: nowrap; gap: 0 var(--s-2); }
.row-pair > .field { flex: 1 1 0; min-width: 0; }
.radio-group { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-group label { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid #c9bdb0; border-radius: var(--radius); font-weight: 400; cursor: pointer; margin: 0; }
.radio-group input { position: absolute; opacity: 0; }
.radio-group label:has(input:checked) { border-color: var(--c-accent); background: var(--c-accent-soft); font-weight: 600; }
.radio-group label:has(input:focus-visible) { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.check { display: flex; align-items: flex-start; gap: 12px; }
.check input { width: 24px; height: 24px; margin-top: 2px; accent-color: var(--c-accent); flex: none; }
.check label { font-weight: 400; font-size: .95rem; }
.type-fields { padding: var(--s-2); margin-bottom: var(--s-3); background: var(--c-bg); border-radius: var(--radius); }
.type-fields .field:last-child { margin-bottom: 0; }
.type-fields[hidden], .urgent[hidden], .form-status[hidden] { display: none; }
.urgent { background: #fdecea; border: 1px solid #f3b8b1; border-radius: var(--radius); padding: 14px 16px; margin-bottom: var(--s-3); }
.hp { position: absolute; left: -9999px; }
.form__submit { margin-top: var(--s-3); }
.form__privacy { display: flex; gap: 8px; align-items: center; justify-content: center; margin: var(--s-2) 0 0; font-size: .88rem; color: var(--c-muted); text-align: center; }
.form__privacy .icon { width: 1rem; height: 1rem; }
.form-status { margin-top: var(--s-2); padding: 14px 16px; border-radius: var(--radius); font-weight: 600; }
.form-status.is-ok { background: #e6f4ec; color: var(--c-ok); }
.form-status.is-err { background: #fdecea; color: var(--c-error); }

/* ---------- Footer / legal ---------- */
.site-footer { background: var(--c-dark); color: #d9cdc2; padding: var(--s-5) 0 var(--s-3); }
.site-footer a { color: #f4ece4; }
.site-footer h2 { font-size: 1rem; color: #fff; letter-spacing: 0; margin-bottom: var(--s-1); }
.footer-grid { display: grid; gap: var(--s-3); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-bottom { margin: var(--s-4) 0 0; padding-top: var(--s-2); border-top: 1px solid #4a423b; font-size: .9rem; }
.page-head { padding: var(--s-4) 0 var(--s-2); }
.legal { max-width: 46rem; padding-bottom: var(--section); }
.legal h2 { font-size: 1.3rem; margin-top: var(--s-3); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .4s ease-out, transform .4s ease-out; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- ≥ 640px ---------- */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .card { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 12px; height: 188px; padding: 20px; }
  .card__text { flex: 1; width: 100%; }
  .card__chev { display: none; }
  .card__more { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-head); font-weight: 600; font-size: .9rem; color: var(--c-accent-dark); }
  .card__more .icon { width: 1.05rem; height: 1.05rem; transition: transform .2s; }
  .card:hover .card__more .icon { transform: translateX(4px); }
  .card--fire { grid-column: span 2; height: 188px; padding: 24px; flex-direction: row; align-items: center; gap: 20px; }
  .card--fire .card__text { flex: 1; width: auto; }
  .card--fire .card__more { color: #f0b290; align-self: flex-end; }
  .card--fire .card__icon { align-self: flex-start; }
  .infoboxes, .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row-2 { grid-template-columns: 1fr 1fr; }
  .form { padding: var(--s-4); }
  .panel { padding: var(--s-4); }
  dialog.sheet .sheet__body { padding: var(--s-4) var(--s-4) var(--s-3); }
}

/* ---------- mobile bottom sheet ---------- */
@media (max-width: 639px) {
  dialog.sheet { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: 12px 12px 0 0; max-height: 90vh; }
  dialog.sheet[open] { animation: sheet-up .25s ease-out; }
  @keyframes sheet-up { from { transform: translateY(40px); } to { transform: none; } }
  .card--fire .card__more { display: none; }
}

/* ---------- ≥ 900px ---------- */
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .mobile-bar, .menu-toggle, .menu-panel { display: none; }
  .nav { display: flex; gap: 4px; }
  .header-phone { display: inline-flex; }
  .desk-only { display: inline-flex; }
  .header-cta { display: inline-flex; min-height: 44px; margin-left: 8px; }
  .hero { padding: var(--s-5) 0 0; }
  .hero__grid { padding-bottom: var(--s-5); }
  .hero__grid { grid-template-columns: 1.2fr 0.8fr; gap: var(--s-5); }
  .facts { padding: var(--s-4); }
  .facts .sub { display: block !important; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat:nth-child(n+3) { border-top: 0; }
  .stat + .stat { border-left: 1px solid rgba(255,255,255,.14); padding-left: var(--s-3); }
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-2); }
  .steps li { padding: 64px 0 0; }
  .steps li::after { left: 52px; right: -16px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .about { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: var(--s-5); }
  .contact__grid { grid-template-columns: 0.85fr 1.15fr; gap: var(--s-4); align-items: start; }
  .panel { position: sticky; top: calc(var(--header-h) + 24px); padding: var(--s-5) var(--s-4); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

@media (min-width: 1200px) { .wrap { padding: 0 32px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
