/* CRAFTMAN — sales pages: one service per page, a quote button on every screen, a short quiz in a dialog.
   Same palette and type as the explorer pages (style.css), lighter and without parallax. */
:root {
  --parchment: #fefffc;
  --paper: #ffffff;
  --linen: #f6f7f3;
  --ink: #171717;
  --charcoal: #3d3b3b;
  --ash: #5f5f5f;
  --mist: #dee2de;
  --line: #e7e9e4;
  --signal: #41a1cf;
  --signal-ink: #0b6c9e;
  --signal-wash: rgba(65, 161, 207, 0.1);
  --cta: #0b6c9e;
  --cta-hover: #08577f;
  --night: #0f1730;
  --sky: #1d2f58;
  --wa: #25d366;
  --wa-hover: #1fb857;
  --wa-ink: #08351b;
  --ok: #1f8a4c;
  --warn: #a35a00;
  --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --font-ui: 'Geist', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-btn: 10px;
  --r-card: 16px;
  --r-big: 24px;
  --shadow: rgba(0, 0, 0, 0.06) 0 1px 2px, rgba(0, 0, 0, 0.07) 0 6px 18px -6px;
  --shadow-lg: rgba(0, 0, 0, 0.08) 0 2px 4px, rgba(15, 23, 48, 0.16) 0 24px 48px -16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --maxw: 1180px;
  --gutter: max(16px, 3.2vw);
  --bar-h: 0px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  background: var(--parchment);
  color: var(--charcoal);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: var(--bar-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p, h1, h2, h3, h4, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--signal-ink); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: var(--r-btn); background: var(--night); color: #fff; text-decoration: none; transition: top 0.2s; }
.skip:focus { top: 12px; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--signal-ink); }
.kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
h1, .h1 { font-family: var(--font-display); font-weight: 500; color: var(--ink); font-size: clamp(2.05rem, 1.35rem + 3vw, 3.35rem); line-height: 1.06; letter-spacing: -0.025em; font-variation-settings: "opsz" 96; }
h1 em, h2 em { font-style: italic; color: var(--signal-ink); }
h2 { font-family: var(--font-display); font-weight: 500; color: var(--ink); font-size: clamp(1.65rem, 1.2rem + 1.8vw, 2.45rem); line-height: 1.12; letter-spacing: -0.02em; }
h3 { font-size: 1.12rem; line-height: 1.3; color: var(--ink); font-weight: 600; letter-spacing: -0.015em; }
.lead { font-size: clamp(1.04rem, 0.98rem + 0.3vw, 1.18rem); color: var(--charcoal); }
.muted { color: var(--ash); font-size: 14px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 20px; border-radius: var(--r-btn); border: 1.5px solid transparent; font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: translateY(1px); }
.btn--cta { background: var(--cta); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 6px 16px -6px rgba(11, 108, 158, 0.55); }
.btn--cta:hover { background: var(--cta-hover); }
.btn--cta .ico-arrow { transition: transform 0.25s var(--ease); }
.btn--cta:hover .ico-arrow { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: #cfd4cf; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--wa { background: var(--wa); color: var(--wa-ink); }
.btn--wa:hover { background: var(--wa-hover); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #eef5fa; }
.btn--line-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn--line-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn--lg { min-height: 56px; padding: 14px 24px; font-size: 17px; }
.btn--block { width: 100%; }
.btn .ico { width: 20px; height: 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.reassure { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--ash); }
.reassure span { display: inline-flex; align-items: center; gap: 6px; }
.reassure .ico { width: 16px; height: 16px; color: var(--ok); stroke-width: 2.2; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(254, 255, 252, 0.92); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.25s, box-shadow 0.25s; }
.top.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0, 0, 0, 0.35); }
.top__in { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand__mascot { height: 40px; width: auto; }
.brand__word { display: block; width: 104px; height: 14px; background: currentColor; -webkit-mask: url("../img/logo-wordmark.png") center / contain no-repeat; mask: url("../img/logo-wordmark.png") center / contain no-repeat; }
.menu { display: none; gap: 2px; }
.menu a { padding: 8px 11px; border-radius: 8px; text-decoration: none; font-size: 15px; color: var(--charcoal); white-space: nowrap; }
.menu a:hover, .menu a[aria-current="page"] { background: var(--signal-wash); color: var(--ink); }
.top__tel { display: none; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; color: var(--ink); white-space: nowrap; }
.top__tel small { display: block; font-weight: 400; font-size: 12px; color: var(--ash); line-height: 1.1; }
.top__tel .ico { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--signal-wash); color: var(--signal-ink); }
.top .btn { min-height: 44px; padding: 10px 16px; font-size: 15px; }
@media (min-width: 760px) { .top__tel { display: inline-flex; } }
@media (min-width: 1100px) { .menu { display: flex; } }
@media (max-width: 420px) { .top .btn { padding: 10px 12px; } .brand__word { width: 86px; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(20px, 3vw, 44px) 0 clamp(32px, 5vw, 64px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 520px; background: radial-gradient(60% 70% at 85% 0%, rgba(65, 161, 207, 0.13), transparent 70%), radial-gradient(50% 60% at 0% 10%, rgba(230, 162, 74, 0.10), transparent 70%); pointer-events: none; }
.hero__grid { position: relative; display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero__copy { display: grid; gap: 18px; align-content: start; }
.checks { display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ico { margin-top: 2px; color: var(--ok); stroke-width: 2.2; width: 20px; height: 20px; }
.hero__visual { position: relative; border-radius: var(--r-big); overflow: hidden; box-shadow: var(--shadow-lg); background: #d9cfd6; }
.hero__visual img { width: 100%; height: auto; }
.hero__visual figcaption { position: absolute; left: 12px; bottom: 10px; font-size: 12px; color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); }
  .hero--service .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* markers on the house picture */
.mark { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.94); color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.45); white-space: nowrap; transition: transform 0.25s var(--ease), background 0.2s; }
.mark::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(65, 161, 207, 0.3); animation: ping 2.4s var(--ease) infinite; }
.mark:hover { transform: translate(-50%, -50%) scale(1.06); background: #fff; }
.mark--up { transform: translate(-50%, -120%); }
.mark--up:hover { transform: translate(-50%, -120%) scale(1.06); }
@keyframes ping { 0%, 100% { box-shadow: 0 0 0 3px rgba(65, 161, 207, 0.35); } 50% { box-shadow: 0 0 0 7px rgba(65, 161, 207, 0); } }
@media (max-width: 540px) { .mark { font-size: 12px; padding: 5px 10px 5px 6px; } .mark::before { width: 8px; height: 8px; } }

/* project picker in the hero */
.picker { display: grid; gap: 12px; padding: 18px; border-radius: var(--r-big); background: var(--paper); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.picker__q { font-weight: 600; color: var(--ink); font-size: 17px; }
.picker__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--linen); color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.2; text-align: left; text-decoration: none; cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease), box-shadow 0.2s; }
.tile .ico { width: 28px; height: 28px; color: var(--signal-ink); stroke-width: 1.6; }
.tile:hover { border-color: var(--signal); background: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.tile small { display: block; font-weight: 400; color: var(--ash); font-size: 12.5px; margin-top: 2px; }
.picker__grid .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 560px) { .picker { padding: 22px; } }
@media (max-width: 559px) {
  .picker { padding: 14px; }
  .tile { flex-direction: column; align-items: flex-start; gap: 8px; min-height: 104px; padding: 12px; font-size: 14.5px; hyphens: auto; -webkit-hyphens: auto; }
  .tile .ico { width: 26px; height: 26px; }
  .picker__grid .tile:last-child:nth-child(odd) { flex-direction: row; align-items: center; min-height: 64px; }
}

/* ---------- trust bar ---------- */
.trust { border-block: 1px solid var(--line); background: var(--paper); }
.trust__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; padding: 18px 0; }
.trust__list li { display: flex; gap: 10px; align-items: center; font-size: 14px; line-height: 1.3; color: var(--ink); font-weight: 500; }
.trust__list .ico { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--signal-wash); color: var(--signal-ink); }
@media (min-width: 900px) { .trust__list { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 22px 0; } }

/* ---------- sections ---------- */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section--alt { background: var(--linen); }
.section__head { display: grid; gap: 12px; max-width: 760px; margin-bottom: clamp(24px, 4vw, 40px); }
.section__head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section__cta { margin-top: clamp(24px, 4vw, 36px); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.section__head--center + * + .section__cta, .section__cta--center { justify-content: center; }

/* service cards */
.cards { display: grid; gap: 18px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; border-radius: var(--r-card); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.card__img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: #e9e4dd; }
.card__body { display: grid; gap: 10px; padding: 18px; flex: 1; align-content: start; }
.card__body .checks { font-size: 14.5px; gap: 6px; }
.card__body .checks .ico { width: 18px; height: 18px; }
.card__foot { display: grid; gap: 8px; padding: 0 18px 18px; }
.card__foot .btn { width: 100%; }
.card h3 { font-size: 1.2rem; }
.card__tag { font-size: 12.5px; font-weight: 600; color: var(--signal-ink); text-transform: uppercase; letter-spacing: 0.04em; }

/* split block: picture + text */
.split { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .split--rev > :first-child { order: 2; } }
.split__img { border-radius: var(--r-big); overflow: hidden; box-shadow: var(--shadow-lg); background: #e9e4dd; }
.split__img figcaption { padding: 10px 14px; font-size: 13px; color: var(--ash); background: var(--paper); }
.split__text { display: grid; gap: 16px; align-content: start; }

/* benefit figures */
.gains { display: grid; gap: 14px; }
@media (min-width: 720px) { .gains { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .gains--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .gains--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gain { display: grid; gap: 8px; align-content: start; padding: 20px; border-radius: var(--r-card); background: var(--paper); border: 1px solid var(--line); }
.gain .ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--signal-wash); color: var(--signal-ink); }
.gain .gain__fig { font-family: var(--font-display); font-size: clamp(1.55rem, 1.25rem + 1vw, 2.1rem); line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.gain__fig small { font-size: 0.55em; }
.gain p { font-size: 15px; }

/* included list */
.incl { display: grid; gap: 10px; }
@media (min-width: 900px) { .incl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.incl li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.incl .ico { color: var(--signal-ink); margin-top: 1px; }

/* options side by side */
.duo { display: grid; gap: 16px; }
@media (min-width: 800px) { .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.duo__item { display: grid; gap: 12px; align-content: start; padding: 22px; border-radius: var(--r-card); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.duo__item--hl { border-color: var(--signal); box-shadow: 0 0 0 3px var(--signal-wash), var(--shadow); }
.badge { justify-self: start; display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--signal-wash); color: var(--signal-ink); font-size: 12.5px; font-weight: 600; }

/* steps */
.steps { display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { position: relative; display: grid; gap: 8px; align-content: start; padding: 22px 20px 20px; border-radius: var(--r-card); background: var(--paper); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--cta); color: #fff; font-weight: 700; }
.step p { font-size: 15px; }
.facts { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 800px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fact { display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--r-card); background: var(--signal-wash); color: var(--ink); font-size: 15px; }
.fact .ico { color: var(--signal-ink); width: 22px; height: 22px; margin-top: 1px; }
.fact strong { display: block; }

/* commitments */
.engage { display: grid; gap: 14px; }
@media (min-width: 720px) { .engage { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .engage { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.engage li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--r-card); background: var(--paper); border: 1px solid var(--line); }
.engage .ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--signal-wash); color: var(--signal-ink); }
.engage p { font-size: 15px; }

/* cross-sell */
.also { display: grid; gap: 12px; }
@media (min-width: 720px) { .also { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.also a { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; transition: border-color 0.2s, transform 0.2s var(--ease); }
.also a:hover { border-color: var(--signal); transform: translateY(-1px); }
.also .ico { width: 30px; height: 30px; color: var(--signal-ink); }
.also small { display: block; font-weight: 400; font-size: 13px; color: var(--ash); }

/* faq */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 18px; cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--signal-ink); border-bottom: 2px solid var(--signal-ink); transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details > div { padding: 0 18px 18px; display: grid; gap: 10px; }

/* closing call to action */
.section--band { padding: clamp(8px, 2vw, 24px) 0 clamp(48px, 7vw, 88px); }
.band { position: relative; overflow: hidden; display: grid; gap: 18px; padding: clamp(28px, 5vw, 56px); border-radius: var(--r-big); background: linear-gradient(140deg, #0c3d63 0%, #0b6c9e 55%, #2f8fc1 100%); color: #fff; box-shadow: var(--shadow-lg); }
.band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%); pointer-events: none; }
.band h2 { color: #fff; }
.band h2 em { color: #bfe6fb; }
.band p { color: #e6f2fa; max-width: 640px; }
.band .reassure { color: #d7ebf7; }
.band .reassure .ico { color: #8ff0b6; }
.band__contact { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; }
.band__contact a { color: #fff; }

/* ---------- footer ---------- */
.foot { margin-top: 0; padding: 36px 0 28px; background: var(--night); color: #c8cfdf; font-size: 14px; }
.foot .brand { color: #fff; margin: 0; }
.foot__grid { display: grid; gap: 24px; }
@media (min-width: 860px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot h4 { color: #fff; font-size: 14px; margin-bottom: 10px; }
.foot ul { display: grid; gap: 6px; }
.foot a { color: #e3e8f3; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__legal { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-wrap: wrap; gap: 8px 18px; color: #9aa3b8; font-size: 13px; }

/* ---------- sticky bar (phones) and WhatsApp (desktop) ---------- */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: auto auto 1fr; gap: 8px; padding: 10px max(12px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-right)); background: rgba(254, 255, 252, 0.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -18px rgba(0, 0, 0, 0.4); transform: translateY(110%); transition: transform 0.35s var(--ease); }
.bar.is-on { transform: none; }
.bar .btn { min-height: 48px; padding: 10px 14px; font-size: 15px; }
.bar__icon { width: 48px; padding: 0 !important; }
.bar__icon .ico { width: 22px; height: 22px; }
@media (min-width: 900px) { .bar { display: none; } }
@media (max-width: 899px) { :root { --bar-h: 70px; } }
html.is-locked .bar { transform: translateY(110%); }
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 44; display: none; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 999px; background: var(--wa); color: var(--wa-ink); font-weight: 600; text-decoration: none; box-shadow: 0 10px 24px -8px rgba(8, 53, 27, 0.5); transition: transform 0.25s var(--ease), background 0.2s; }
.wa-float:hover { background: var(--wa-hover); transform: translateY(-2px); }
.wa-float .ico { width: 22px; height: 22px; }
@media (min-width: 900px) { .wa-float { display: inline-flex; } }
html.is-locked .wa-float { display: none; }

/* ---------- quiz ---------- */
.quiz { padding: clamp(40px, 6vw, 72px) 0; }
.quiz__box { max-width: 720px; margin: 0 auto; border-radius: var(--r-big); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: clamp(20px, 4vw, 32px); }
.quiz__top { display: none; }
.quiz__close { display: none; }
.quiz__title, .quiz__sub { display: block; }
.quiz__title { font-family: var(--font-display); font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); line-height: 1.15; color: var(--ink); font-weight: 500; letter-spacing: -0.02em; }
.quiz__sub { color: var(--ash); font-size: 15px; margin-top: 4px; }
.qstep { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 16px; }
.qstep + .qstep { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.qstep > legend { padding: 0; float: left; width: 100%; }
.qstep > legend + * { clear: both; }
.qblock { display: grid; gap: 10px; }
.qblock__label { font-weight: 600; color: var(--ink); font-size: 15px; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.opts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opts--big { gap: 10px; }
@media (max-width: 380px) { .opts--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .opts--big { grid-template-columns: 1fr; } }
.opt__txt { min-width: 0; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt__txt small { display: block; font-weight: 400; color: var(--ash); font-size: 12.5px; }
.opt__box { display: flex; align-items: center; gap: 10px; min-height: 52px; height: 100%; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--linen); color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.25; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s; }
.opts--big .opt__box { min-height: 64px; font-weight: 600; }
.opt__box .ico { width: 26px; height: 26px; color: var(--signal-ink); }
.opt:hover .opt__box { border-color: var(--signal); }
.opt input:focus-visible + .opt__box { outline: 2px solid var(--signal-ink); outline-offset: 2px; }
.opt input:checked + .opt__box { border-color: var(--cta); background: #eef6fb; box-shadow: 0 0 0 1px var(--cta) inset; }
.opt input[type="checkbox"] + .opt__box::after { content: ""; margin-left: auto; flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #b9c0b9; background: #fff; }
.opt input[type="checkbox"]:checked + .opt__box::after { border-color: var(--cta); background: var(--cta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.field label small { font-weight: 400; color: var(--ash); }
.req { color: #b03a22; font-weight: 600; }
.quiz__sub--req { font-size: 13px; margin-top: 2px; }
.field input, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #d3d8d3; background: #fff; font-size: 16px; transition: border-color 0.15s, box-shadow 0.15s; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cta); box-shadow: 0 0 0 3px var(--signal-wash); }
.field.is-bad input, .qblock.is-bad .opt__box { border-color: #c4462b; }
.field__err, .qblock__err { display: none; color: #b03a22; font-size: 13.5px; }
.field.is-bad .field__err, .qblock.is-bad .qblock__err { display: block; }
.grid2 { display: grid; gap: 14px; }
@media (min-width: 560px) { .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qnote { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #fff7ea; color: #6b4300; font-size: 14px; }
.qdetail { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: var(--linen); }
.qdetail .qblock__label { display: flex; align-items: center; gap: 8px; }
.qdetail .qblock__label .ico { color: var(--signal-ink); width: 22px; height: 22px; }
.qdetail .opt__box { background: #fff; }
.quiz__nav { display: flex; gap: 10px; align-items: center; margin-top: 22px; }
.quiz__nav .btn--cta { flex: 1; }
.quiz__privacy { margin-top: 12px; font-size: 12.5px; color: var(--ash); }
.quiz__privacy a { color: var(--ash); }
.quiz__status { margin-top: 12px; font-size: 14.5px; }
.quiz__status[data-state="error"] { color: #b03a22; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* with JavaScript, the quiz becomes a dialog shown one step at a time */
.js .quiz { position: fixed; inset: 0; z-index: 60; padding: 0; display: grid; place-items: center; background: rgba(12, 20, 38, 0.55); opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0s 0.25s; }
.js .quiz.is-open { opacity: 1; visibility: visible; transition: opacity 0.25s; }
.js .quiz__box { position: relative; width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain; padding: 0 clamp(18px, 4vw, 30px) clamp(18px, 4vw, 28px); transform: translateY(16px) scale(0.98); transition: transform 0.3s var(--ease); }
.js .quiz.is-open .quiz__box { transform: none; }
.js .quiz__top { position: sticky; top: 0; z-index: 2; display: grid; gap: 10px; margin: 0 calc(-1 * clamp(18px, 4vw, 30px)); padding: 16px clamp(18px, 4vw, 30px) 12px; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--line); }
.quiz__meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--ash); padding-right: 44px; }
.quiz__meta strong { color: var(--ok); font-weight: 600; }
.quiz__progress { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.quiz__progress span { display: block; height: 100%; width: var(--p, 25%); border-radius: inherit; background: linear-gradient(90deg, var(--signal), var(--cta)); transition: width 0.35s var(--ease); }
.js .quiz__close { display: grid; place-items: center; position: absolute; right: 10px; top: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--ink); }
.js .quiz__close:hover { background: var(--linen); }
.js .quiz__close .ico { width: 22px; height: 22px; }
.js .qstep { display: none; padding-top: 20px; }
.js .qstep.is-current { display: grid; animation: stepIn 0.3s var(--ease); }
.js .qstep + .qstep { margin-top: 0; border-top: 0; }
.js .quiz__head-static { display: none; }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.js .quiz [data-back][disabled] { visibility: hidden; }
.no-js-only { display: block; }
.js .no-js-only { display: none; }
.js-only { display: none; }
.js .js-only { display: inline-flex; }
@media (max-width: 560px) {
  .js .quiz { place-items: end center; }
  .js .quiz__box { width: 100vw; max-height: 94dvh; border-radius: 22px 22px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .js .quiz.is-open .quiz__box { transform: none; }
}

/* ---------- thank you and legal pages ---------- */
.merci { padding: clamp(40px, 7vw, 88px) 0; }
.merci__card { max-width: 720px; margin: 0 auto; display: grid; gap: 18px; padding: clamp(24px, 5vw, 44px); border-radius: var(--r-big); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.merci__ok { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: #e7f6ed; color: var(--ok); }
.merci__ok .ico { width: 34px; height: 34px; stroke-width: 2.4; }
.merci .steps { grid-template-columns: 1fr; }
.legal { padding: clamp(36px, 6vw, 72px) 0; }
.legal__in { max-width: 780px; display: grid; gap: 14px; }
.legal h2 { font-size: 1.35rem; margin-top: 18px; }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; }

/* ---------- cookie choice (only when ad tracking is configured) ---------- */
.consent { position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--bar-h)); z-index: 70; max-width: 560px; margin-inline: auto; display: grid; gap: 12px; padding: 18px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: 14px; }
.consent .btn-row .btn { flex: 1; min-height: 44px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
