/* Fluxo — mobile-first stylesheet.
   Base rules target phones; min-width queries scale up to tablet (640px),
   laptop (960px) and wide desktop (1280px). */

/* Tokens ------------------------------------------------------------------ */
:root {
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --tint: #F3F2EC;
  --ink: #0E0F12;
  --logo-accent: #7A7A7A;
  --ink-2: #3A3D44;
  --muted: #6B6F78;
  --line: #E6E4DD;
  --line-strong: #D2CFC5;
  --accent: #8A6A40;
  --accent-soft: #F1E9DC;
  --primary: #0E0F12;
  --on-primary: #FAFAF7;
  --danger: #B42318;
  --danger-soft: #FDECEA;
  --success: #1E7A4C;
  --inverse-bg: #0E0F12;
  --inverse-ink: #F2F1EC;
  --inverse-muted: #9EA1A9;
  --inverse-line: #26282E;
  --inverse-accent: #CFAE7F;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(14 15 18 / .04), 0 18px 40px -20px rgb(14 15 18 / .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 64px;
  --gutter: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C0D10;
    --surface: #141519;
    --tint: #111215;
    --ink: #F2F1EC;
    --logo-accent: #8A8A88;
    --ink-2: #CFCFCA;
    --muted: #9A9DA5;
    --line: #23252B;
    --line-strong: #34363D;
    --accent: #CFAE7F;
    --accent-soft: #2A241B;
    --primary: #F2F1EC;
    --on-primary: #0C0D10;
    --danger: #F97066;
    --danger-soft: #2D1513;
    --success: #47CD89;
    --inverse-bg: #F2F1EC;
    --inverse-ink: #0E0F12;
    --inverse-muted: #5C5F67;
    --inverse-line: #DAD8D0;
    --inverse-accent: #8A6A40;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 18px 40px -20px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}

/* Base -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); color: var(--ink); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 10px 16px; background: var(--primary); color: var(--on-primary); border-radius: 999px; }
.skip:focus { top: 12px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Typography -------------------------------------------------------------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.kicker::before { content: ""; width: 20px; height: 1px; background: currentColor; }
.kicker--muted { color: var(--muted); }
.display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 11vw, 5.75rem);
  line-height: .98;
  letter-spacing: -.02em;
  margin-top: 20px;
  text-wrap: balance;
}
.display--sm { font-size: clamp(2.5rem, 9vw, 4.5rem); }
.display em, .h2 em { font-style: italic; color: var(--accent); }
.h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 7.5vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -.015em;
  margin-top: 16px;
  text-wrap: balance;
}
.lead { margin-top: 20px; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 34em; }
.num { font-size: 12px; font-weight: 500; letter-spacing: .08em; color: var(--accent); font-variant-numeric: tabular-nums; }
.optional { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 4px; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  --h: 48px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h); padding: 0 22px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap;
  cursor: pointer; user-select: none;
  transition: transform .25s var(--ease), background-color .25s, border-color .25s, color .25s, opacity .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { opacity: .88; }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { --h: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { --h: 56px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn span[aria-hidden="true"] { transition: transform .25s var(--ease); }
.btn:hover span[aria-hidden="true"] { transform: translateX(3px); }
.btn[disabled] { opacity: .6; cursor: progress; }

.spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color .25s; }
.link:hover { border-color: var(--ink); }
.link span { transition: transform .25s var(--ease); }
.link:hover span { transform: translateX(3px); }

/* Header ------------------------------------------------------------------ */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
/* The frosted glass lives on a pseudo-element: backdrop-filter on .header
   itself would make the fixed mobile menu size itself to the header. */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  transition: background-color .3s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
body.nav-open .header { border-bottom-color: var(--line); }
body.nav-open .header::before { background: var(--bg); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; }
.brand__mark { width: 30px; height: 30px; flex: none; color: var(--ink); }
.brand__mark-accent { fill: var(--logo-accent); }
.brand__name { font-weight: 600; font-size: 14px; letter-spacing: .22em; }

.menu {
  width: 44px; height: 44px; margin-right: -10px;
  display: grid; place-content: center; gap: 6px;
  background: none; border: 0; cursor: pointer;
}
.menu span { display: block; width: 20px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.menu[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* Mobile menu: a solid full-screen sheet under the header. */
.nav {
  position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 49;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 16px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: var(--bg);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.nav.is-open { opacity: 1; visibility: visible; }
.nav__links { display: flex; flex-direction: column; }
.nav__link {
  display: flex; align-items: baseline; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-serif); font-size: clamp(34px, 10vw, 44px); line-height: 1; letter-spacing: -.015em;
  color: var(--ink);
}
.nav__link:active { color: var(--accent); }
.nav__num { font-family: var(--font-sans); font-size: 12px; letter-spacing: .08em; color: var(--accent); min-width: 20px; transform: translateY(-10px); }
.nav__foot { display: grid; gap: 16px; }
.nav__contact { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--muted); }
.nav__contact a { border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.nav__link, .nav__foot { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.nav.is-open .nav__link, .nav.is-open .nav__foot { opacity: 1; transform: none; }
.nav.is-open .nav__link:nth-child(2) { transition-delay: .04s; }
.nav.is-open .nav__link:nth-child(3) { transition-delay: .08s; }
.nav.is-open .nav__link:nth-child(4) { transition-delay: .12s; }
.nav.is-open .nav__link:nth-child(5) { transition-delay: .16s; }
.nav.is-open .nav__foot { transition-delay: .22s; }
.no-js .menu, .no-js .nav { display: none; }
body.nav-open { overflow: hidden; }
body.nav-open .header__cta { opacity: 0; pointer-events: none; }
.header__cta { transition: opacity .25s; }

/* Hero -------------------------------------------------------------------- */
.hero { padding: 40px 0 64px; }
.hero__grid { display: grid; gap: 40px; }
.hero__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 32px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; font-size: 14px; color: var(--muted); }
.ticks li { display: inline-flex; align-items: center; gap: 8px; }
.ticks li::before { content: "✓"; color: var(--accent); font-weight: 600; }

/* Cards & forms ----------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 20px; }
.callback__title { font-family: var(--font-serif); font-weight: 400; font-size: 28px; line-height: 1.1; margin: 12px 0 20px; letter-spacing: -.01em; }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .group-label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px;
  padding: 12px 14px;
  font-size: 16px; /* 16px stops iOS zooming on focus */
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  outline: none; appearance: none; -webkit-appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 148px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.field .is-invalid, .field .is-invalid:focus { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select select { padding-right: 40px; cursor: pointer; }
.field__row { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.counter { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.field__error { font-size: 13px; color: var(--danger); }
.field__error:empty, .form__alert:empty { display: none; }
.form__alert { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--danger-soft); color: var(--danger); font-size: 14px; }
.form__fine { font-size: 12px; color: var(--muted); text-align: center; }
.grid-2 { display: grid; gap: 16px; }

.success { text-align: center; padding: 24px 4px 8px; display: grid; justify-items: center; gap: 12px; outline: none; }
.success__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 24px; }
.success h3 { font-family: var(--font-serif); font-weight: 400; font-size: 30px; line-height: 1.1; }
.success p { color: var(--muted); max-width: 28em; }
.success strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.success .btn { margin-top: 8px; }

/* Strip ------------------------------------------------------------------- */
.strip { border-block: 1px solid var(--line); }
.strip__grid { display: grid; grid-template-columns: 1fr 1fr; }
.strip__item { padding: 20px 12px 20px 0; display: grid; gap: 6px; }
.strip__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.strip__item:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.strip__item p { font-size: 14px; line-height: 1.4; color: var(--ink-2); }

/* Sections ---------------------------------------------------------------- */
.section { padding: 80px 0; }
.section__head { max-width: 760px; margin-bottom: 40px; }
.section__intro { margin-top: 16px; color: var(--muted); font-size: 16px; max-width: 36em; }
.section--tint { background: var(--tint); }
.section--inverse { background: var(--inverse-bg); color: var(--inverse-ink); }
.section--inverse .kicker { color: var(--inverse-accent); }
.section--inverse .h2 em { color: var(--inverse-accent); }

.services { display: grid; border-top: 1px solid var(--line); }
.service { padding: 28px 0 32px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.service h3 { font-size: 20px; font-weight: 500; letter-spacing: -.01em; margin-top: 4px; }
.service p { color: var(--muted); font-size: 15px; }
.service .link { justify-self: start; margin-top: 8px; }

.steps { display: grid; gap: 0; border-top: 1px solid var(--inverse-line); }
.step { padding: 28px 0; border-bottom: 1px solid var(--inverse-line); display: grid; gap: 8px; align-content: start; }
.step__num { font-family: var(--font-serif); font-style: italic; font-size: 40px; line-height: 1; color: var(--inverse-accent); }
.step h3 { font-size: 18px; font-weight: 500; margin-top: 8px; }
.step p { color: var(--inverse-muted); font-size: 15px; }

/* Quote wizard ------------------------------------------------------------ */
.quote { display: grid; gap: 40px; }
.next { margin-top: 32px; display: grid; gap: 16px; counter-reset: next; }
/* Number is absolutely positioned so the strong + text flow as one paragraph. */
.next li { counter-increment: next; position: relative; padding-left: 44px; min-height: 28px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.next li::before { content: counter(next); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; font-size: 12px; color: var(--ink); }
.next strong { color: var(--ink); font-weight: 500; }

.wizard { padding: 24px 18px; scroll-margin-top: calc(var(--header-h) + 12px); }
.wizard__progress { display: grid; gap: 10px; margin-bottom: 8px; }
.wizard__meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.wizard__meta [data-step-name] { color: var(--ink); font-weight: 500; }
.wizard__bar { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.wizard__bar span { display: block; height: 100%; width: 20%; background: var(--ink); transition: width .5s var(--ease); }

.step-panel { border: 0; margin: 0; padding: 0; min-width: 0; }
.step-panel + .step-panel { margin-top: 40px; } /* no-JS: all steps stacked */
.js .step-panel { display: none; margin-top: 0; }
.js .step-panel.is-active { display: block; animation: panel-in .45s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.js .step-panel.is-active.is-back { animation-name: panel-back; }
@keyframes panel-back { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.step-panel__title { display: block; width: 100%; padding: 0; font-family: var(--font-serif); font-size: 30px; line-height: 1.1; letter-spacing: -.01em; margin-bottom: 8px; }
.step-panel__title:focus { outline: none; }
.step-panel__hint { color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.step-panel .group-label { display: block; margin: 24px 0 10px; }
.step-panel > .field { margin-top: 16px; }
.step-panel .grid-2 { margin-top: 16px; }

.options { margin-top: 16px; }
.step-panel .group-label + .options { margin-top: 0; }
.options--cards { display: grid; gap: 10px; }
.options--chips { display: flex; flex-wrap: wrap; gap: 8px; }
.option { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.option__box { display: block; border: 1px solid var(--line-strong); background: var(--surface); transition: border-color .2s, background-color .2s, color .2s, box-shadow .2s; }
.option--card .option__box { border-radius: 12px; padding: 14px 16px 14px 48px; position: relative; }
.option--card .option__box::before { content: ""; position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--muted); transition: border .2s, box-shadow .2s; }
.option--card strong { display: block; font-size: 16px; font-weight: 500; }
.option--card small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.option--card:hover .option__box { border-color: var(--muted); }
.option--card input:checked + .option__box { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.option--card input:checked + .option__box::before { border: 5px solid var(--ink); }
.option--chip .option__box { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 14px; }
.option--chip:hover .option__box { border-color: var(--muted); }
.option--chip input:checked + .option__box { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.option--chip input[type="checkbox"] + .option__box::before { content: "+"; font-size: 16px; line-height: 1; opacity: .6; }
.option--chip input[type="checkbox"]:checked + .option__box::before { content: "✓"; font-size: 13px; opacity: 1; }
.option input:focus-visible + .option__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.options.is-invalid .option__box { border-color: var(--danger); }
.step-panel .field__error { margin-top: 10px; }

.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--primary); cursor: pointer; }

.summary { margin-top: 24px; padding: 16px; border-radius: 12px; background: var(--tint); display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13px; }
.summary dt { color: var(--muted); }
.summary dd { color: var(--ink); }

.wizard__nav { display: flex; gap: 10px; margin-top: 32px; }
.wizard__nav .btn { flex: 1; }
.wizard__nav [data-prev] { flex: 0 0 auto; }
.js .wizard__nav [data-submit] { display: none; }
.js .wizard.is-last .wizard__nav [data-submit] { display: inline-flex; }
.js .wizard.is-last .wizard__nav [data-next] { display: none; }
.js .wizard.is-first .wizard__nav [data-prev] { display: none; }
.no-js .wizard__progress, .no-js [data-next], .no-js [data-prev] { display: none; }

/* FAQ --------------------------------------------------------------------- */
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-size: 17px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; font-weight: 400; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--muted); font-size: 15px; }

/* Closing ----------------------------------------------------------------- */
.closing { text-align: center; display: grid; justify-items: center; }
.closing .lead { margin-inline: auto; }
.closing__actions { width: 100%; }
.contacts { width: 100%; margin-top: 56px; display: grid; border-top: 1px solid var(--line); text-align: left; }
.contacts li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.contacts span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.contacts a { border-bottom: 1px solid var(--line-strong); }

/* Footer & mobile dock ---------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 32px 0 calc(104px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--muted); }
.footer__inner { display: grid; gap: 12px; }
.footer .brand { color: var(--ink); }

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--line);
  transition: transform .35s var(--ease);
}
.dock.is-hidden { transform: translateY(110%); }

/* Reveal on scroll -------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ≥ 480px: large phones -------------------------------------------------- */
@media (min-width: 480px) {
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
  .hero__actions .btn { flex: 1 1 auto; }
  .options--cards { grid-template-columns: 1fr 1fr; }
}

/* ≥ 640px: tablets ------------------------------------------------------- */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .hero { padding: 64px 0 88px; }
  .card { padding: 32px; }
  .wizard { padding: 32px; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .services { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .steps { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .strip__grid { grid-template-columns: repeat(4, 1fr); }
  .strip__item, .strip__item:nth-child(even) { padding: 28px 20px; border-bottom: 0; border-left: 1px solid var(--line); }
  .strip__item:first-child { border-left: 0; padding-left: 0; }
  .strip__item:nth-child(-n+2) { border-bottom: 0; }
  .contacts { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
  .contacts li { flex-direction: column; gap: 6px; padding: 24px; border-bottom: 0; border-left: 1px solid var(--line); }
  .contacts li:first-child { border-left: 0; }
  .closing__actions { width: auto; }
  .footer__inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
}

/* ≥ 960px: laptops ------------------------------------------------------- */
@media (min-width: 960px) {
  :root { --header-h: 76px; --gutter: 48px; }
  .menu, .nav__foot, .nav__num { display: none; }
  .nav, .no-js .nav {
    position: static; display: flex; flex-direction: row; align-items: center;
    padding: 0; margin-right: 28px; background: none; overflow: visible;
    opacity: 1; visibility: visible;
  }
  .nav__links { flex-direction: row; gap: 36px; }
  .nav__link, .nav.is-open .nav__link {
    display: inline; padding: 0; border: 0; opacity: 1; transform: none; transition: color .2s;
    font-family: var(--font-sans); font-size: 14px; letter-spacing: 0; color: var(--muted);
  }
  .nav__link:hover { color: var(--ink); }
  .brand { margin-right: auto; }

  .hero { padding: 88px 0 120px; }
  .hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 72px; align-items: center; }
  .hero__actions .btn { flex: 0 0 auto; }

  .section { padding: 128px 0; }
  .section__head { margin-bottom: 64px; }

  .services { grid-template-columns: repeat(3, 1fr); column-gap: 48px; }
  .service { padding: 36px 0 40px; }
  .steps { grid-template-columns: repeat(4, 1fr); column-gap: 32px; border-top: 0; }
  .step { border-bottom: 0; border-top: 1px solid var(--inverse-line); padding-top: 32px; }

  .quote { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 80px; align-items: start; }
  .quote__intro { position: sticky; top: calc(var(--header-h) + 40px); }
  .wizard { padding: 40px; }
  .step-panel__title { font-size: 36px; }

  .faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 80px; align-items: start; }
  .faq .section__head { margin-bottom: 0; }

  .dock { display: none; }
  .footer { padding-bottom: 32px; }
}

/* ≥ 1280px: wide desktops ----------------------------------------------- */
@media (min-width: 1280px) {
  .hero { padding: 104px 0 136px; }
  .hero__grid { gap: 96px; }
}

@media (hover: none) {
  .btn--primary:hover { opacity: 1; }
}

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

/* Dashboard --------------------------------------------------------------- */
.dash { background: var(--tint); }
.dash .header { background: var(--surface); border-bottom-color: var(--line); }
.dash-main { padding: 32px 0 64px; }
.dash-title { font-family: var(--font-serif); font-weight: 400; font-size: 36px; line-height: 1.1; }
.dash-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0; }
.dash-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.dash-stat span { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.dash-stat strong { display: block; font-family: var(--font-serif); font-weight: 400; font-size: 34px; line-height: 1.1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.dash-filters { display: grid; gap: 10px; margin-bottom: 16px; }
.dash-filters input, .dash-filters select { width: 100%; min-height: 44px; padding: 10px 12px; font-size: 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); }
.dash-filters .btn { min-height: 44px; }
.dash-list { display: grid; gap: 10px; }
.dash-row { display: grid; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; transition: border-color .2s; }
.dash-row:hover { border-color: var(--ink); }
.dash-row__top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.dash-row__ref { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dash-row__name { font-weight: 500; }
.dash-row__meta { font-size: 13px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--tint); border: 1px solid var(--line); white-space: nowrap; }
.badge--new { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.badge--won { color: var(--success); }
.badge--lost { color: var(--muted); }
.dash-pager { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; font-size: 14px; color: var(--muted); }
.dash-empty { padding: 48px 16px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 12px; }
.dash-detail { display: grid; gap: 16px; margin-top: 24px; }
.dash-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.dash-card h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.dash-dl { display: grid; grid-template-columns: minmax(96px, auto) 1fr; gap: 10px 16px; font-size: 15px; }
.dash-dl dt { color: var(--muted); }
.dash-dl dd { overflow-wrap: anywhere; }
.dash-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.dash-timeline { display: grid; gap: 10px; font-size: 14px; }
.dash-timeline time { color: var(--muted); font-size: 12px; display: block; }
.dash-back { font-size: 14px; color: var(--muted); }
.dash .form select, .dash .form textarea { width: 100%; padding: 10px 12px; font-size: 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); }

@media (min-width: 640px) {
  .dash-stats { grid-template-columns: repeat(4, 1fr); }
  .dash-filters { grid-template-columns: 2fr 1fr 1fr auto auto; }
}
@media (min-width: 960px) {
  .dash-row { grid-template-columns: 150px 1.4fr 1fr 1fr 120px; align-items: center; gap: 16px; padding: 14px 20px; }
  .dash-row__top { display: contents; }
  .dash-row .badge { grid-column: 5; grid-row: 1; justify-self: end; }
  .dash-detail { grid-template-columns: 1.5fr 1fr; align-items: start; }
}

/* SEO landing pages ------------------------------------------------------- */
.page-hero { padding: 24px 0 56px; border-bottom: 1px solid var(--line); }
.crumbs { margin-bottom: 28px; font-size: 13px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }
.display--page { font-size: clamp(2.5rem, 9vw, 4.75rem); max-width: 16em; }
.facts { display: grid; gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
.facts__item { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.facts dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.facts dd { font-size: 15px; color: var(--ink); }

.section--page { padding: 64px 0; }
.h2--page { font-size: clamp(2rem, 6.5vw, 3rem); margin-top: 0; }
.section--page .section__head { margin-bottom: 28px; }
.prose { max-width: 44em; display: grid; gap: 16px; font-size: 17px; color: var(--ink-2); }

.tiles { display: grid; border-top: 1px solid var(--line); }
.tile { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.tile h3 { font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.tile h3 a { border-bottom: 1px solid var(--line-strong); }
.tile h3 a:hover { border-color: var(--ink); }
.tile p { color: var(--muted); font-size: 15px; }

.checklist { display: grid; gap: 12px; max-width: 44em; }
.checklist li { position: relative; padding-left: 32px; font-size: 16px; color: var(--ink-2); }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 600; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 500; }
.table tbody th { font-weight: 500; white-space: nowrap; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.table-note { margin-top: 12px; font-size: 13px; color: var(--muted); }

.link-grid { display: grid; border-top: 1px solid var(--line); }
.link-grid a { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 52px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; transition: color .2s; }
.link-grid a span { color: var(--muted); transition: transform .25s var(--ease), color .2s; }
.link-grid a:hover span { transform: translateX(3px); color: var(--ink); }

.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; padding-bottom: 32px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.footer__heading { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); margin-bottom: 12px; font-weight: 500; }
.footer__col ul { display: grid; gap: 8px; }
.footer__col a { font-size: 14px; color: var(--muted); transition: color .2s; }
.footer__col a:hover { color: var(--ink); }

@media (min-width: 640px) {
  .page-hero { padding: 32px 0 72px; }
  .facts { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
  .facts__item { padding: 20px 24px; border-bottom: 0; border-left: 1px solid var(--line); }
  .facts__item:first-child { padding-left: 0; border-left: 0; }
  .tiles { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .link-grid { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .footer__cols { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 960px) {
  .page-hero { padding: 40px 0 96px; }
  .section--page { padding: 96px 0; }
  .tiles { grid-template-columns: repeat(3, 1fr); column-gap: 48px; }
  .link-grid { grid-template-columns: repeat(3, 1fr); column-gap: 48px; }
}
