/* Hallmark · shape: photo-led home stage over a Long Document with a form rail beside the whole page body · genre: modern-minimal · theme: Dusk (manual pick, owner choice 25.11.2026, mockups/dusk/) · job: hire · draw: manual
 * hero: blue-hour photograph behind the home head, plain night paper inside (the mapped photo sits under it), head left, the owner's original form on a solid bone card right · nav: floating slate dock with brand, centred links, one pill, grouped Pakalpojumi panel · footer: closing line, columns, village row · imagery: blue-hour street on home, one generated photo per mapped page · signature: a house cross-section whose six plumbing rooms light up one by one and answer on touch (home) · dusk: periwinkle and apricot on indigo night, bone wells
 * axes: dark/grotesk-sans/cool · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V5 · weakest: H, a long Latvian H1 and the price tag beside the seven-field owner form make dense first screens on small laptops; inner heads are set smaller and the form card sticks */
/* Hallmark · answered fonts · the Dusk theme face (Wix Madefor) is on the portfolio ban list: Google Sans, self-hosted woff2 latin, latin-ext, cyrillic */
/* Hallmark · answered 54, 63, 67 · the tracked capitals and middle dots of the tagline are the owner's logo lockup (logo B, assets/logo-horizontal.svg), used only inside the logo (header and footer) */
/* Hallmark · answered F2 · the three-dot placeholders are the owner's original form text, which must not change */
/* Hallmark · answered F4 · the owner's form button carries its own class and takes the deep periwinkle recipe on the bone card */
/* Hallmark · waive 39b · the six room tiles are the rooms of the house diagram, selectable parts of a drawing rather than action buttons */
/* Hallmark · dismissed 74 · utility class names inside the owner's original form markup are inert; no framework loads, every colour is a token */
/* Hallmark · dismissed 29 · the dimmed and blurred backdrop behind the phone menu is an owner rule */
/* Hallmark · answered 63 · the one open dot finding is the owner's logo tagline, text of logo B, in header and footer */
/* Hallmark · waive 44c · long documents with a form rail: the article starts in the same column right under the hero while the form card holds the right side */
/* Hallmark · waive 79 · inner heads are short on purpose (crumbs, head, sentence, price, actions) beside the tall owner form; the home hero keeps open photograph under the actions */
/* Hallmark · waive 49b · real Latvian page and group names wrap to two lines on narrow screens; shortening would change page names */
/* Hallmark · dismissed 77 · short stub, hub and contact pages: head, list or text, form band, footer */
/* Hallmark · dismissed F15 · gaps follow the component: 24px lists, 40px rail, 64px closing band */
/* Hallmark · dismissed F20 · nineteen real places and writer lists of odd length leave a short last row */
/* Hallmark · dismissed F23 · pages still waiting for the writers have no meta description yet (content, not design) */
/* Hallmark · owner-form exception: the form markup and its success block are the old site's with only the approved edits (build/forms_check.py); only the CSS around it is ours */

/* ---------- fonts: self-hosted Google Sans (variable 400 to 600; subsets latin, latin-ext, cyrillic) ---------- */
@font-face { font-family: "Google Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/google-sans-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Google Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/google-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Google Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/google-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- tokens (mockups/dusk/tokens.css) ---------- */
:root {
  color-scheme: dark;
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-body: 1.0625rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-home: clamp(2.75rem, 6.2vw, 6.25rem); --text-display: clamp(2.125rem, 2.6vw + 1rem, 3.5rem); --text-section: clamp(1.625rem, 1.4vw + 1.1rem, 2.5rem); --text-closing: clamp(2rem, 2.5vw + 1rem, 3.5rem);
  --text-title: clamp(1.1875rem, 0.4vw + 1.05rem, 1.4375rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --container: 1440px; --gutter: 64px; --section-gap: 96px;
  --z-raised: 10; --z-sticky: 200; --z-head: 300;
  --color-paper: oklch(17.5% 0.014 268); --color-paper-2: oklch(21% 0.016 268); --color-paper-3: oklch(25% 0.017 268);
  --color-ink: oklch(96% 0.006 75); --color-ink-2: oklch(85% 0.010 262); --color-muted: oklch(72% 0.016 262);
  --color-rule: oklch(32% 0.016 266); --color-light: oklch(100% 0 0); --color-shade: oklch(10% 0.022 268);
  --color-accent: oklch(77% 0.10 274); --color-accent-ink: oklch(19% 0.035 274); --color-accent-hi: oklch(84% 0.085 274);
  --color-accent-deep: oklch(44% 0.13 274); --color-accent-soft: oklch(91% 0.038 274); --color-focus: oklch(80% 0.10 274);
  --color-accent-2: oklch(83% 0.095 62);
  --color-well: oklch(95.5% 0.008 75); --color-well-2: oklch(92% 0.010 75); --color-well-ink: oklch(21% 0.016 268); --color-well-muted: oklch(45% 0.016 265); --color-well-rule: oklch(87.5% 0.009 75); --color-card: oklch(99.5% 0.003 75);
  --scrim-strong: oklch(17.5% 0.04 268 / 0.86); --scrim-mid: oklch(17.5% 0.04 268 / 0.62); --scrim-none: oklch(17.5% 0.04 268 / 0); --lit-soft: oklch(83% 0.095 62 / 0.62); --backdrop: oklch(10% 0.022 268 / 0.66); --head-glass: oklch(17.5% 0.014 268 / 0.9);
  --shadow-card: 0 32px 64px -32px oklch(8% 0.02 268 / 0.8);
  --hair-hi: inset 0 1px 0 oklch(100% 0 0 / 0.10), inset 0 0 0 1px oklch(100% 0 0 / 0.06);
  --font-display: "Google Sans", ui-sans-serif, system-ui, sans-serif; --font-body: "Google Sans", ui-sans-serif, system-ui, sans-serif;
  --radius-card: 18px; --radius-inner: 10px; --radius-pill: 999px; --rule-hair: 1px;
  --tracking-display: -0.022em; --tracking-logo: 0.08em; --display-weight: 500;
  --dock-h: 84px; --head-h: 124px; --form-h: 620px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: calc(var(--head-h) + var(--space-md)); }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-body); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: var(--color-accent-deep); color: var(--color-light); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.1; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h2 { font-size: var(--text-section); }
h3 { font-size: var(--text-title); line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
strong { font-weight: 600; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
.ico { flex: none; }
.vh, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hidden { display: none; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: var(--space-md); top: var(--space-xs); z-index: calc(var(--z-head) + 1); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-inner); background: var(--color-accent-2); color: var(--color-well-ink); transform: translateY(-200%); }
.skip:focus-visible { transform: none; }

/* ---------- header: rule-9 bar, dock, services panel, phone menu ---------- */
.site-head { position: sticky; top: 0; z-index: var(--z-head); }
.annbar { display: flex; justify-content: center; align-items: center; gap: var(--space-xs); min-height: 40px; padding: var(--space-2xs) var(--space-md); background: var(--color-paper); color: var(--color-ink); border-bottom: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); line-height: 1.35; text-align: center; text-decoration: none; }
.annbar strong, .promise-line strong, .promise-box strong { white-space: nowrap; }
.annbar .ico { color: var(--color-accent-2); }
.annbar:hover strong { text-decoration: underline; }
.dockwrap { display: flex; align-items: center; width: 100%; max-width: var(--container); height: var(--dock-h); margin-inline: auto; padding-inline: var(--space-lg); }
.site-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--head-glass); opacity: 0; transition: opacity var(--dur-short) var(--ease-out); pointer-events: none; }
.site-head.is-over::before { opacity: 1; }
.dock { position: relative; display: flex; align-items: center; gap: var(--space-md); width: 100%; min-height: 68px; padding: var(--space-xs) var(--space-sm) var(--space-xs) var(--space-md); border-radius: var(--radius-pill); background: var(--color-paper-2); box-shadow: var(--hair-hi), var(--shadow-card); }
.brand { display: flex; align-items: center; gap: var(--space-sm); min-width: 0; text-decoration: none; line-height: 1.2; }
.brand img { flex: none; width: 48px; height: 48px; }
.brand__w { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font-size: var(--text-lg); font-weight: 600; white-space: nowrap; }
.brand__tag { font-size: 0.6875rem; font-weight: 500; letter-spacing: var(--tracking-logo); color: var(--color-ink-2); white-space: nowrap; }
.nav { margin-inline: auto; }
.nav__list { display: flex; gap: var(--space-3xs); }
.nav__list > li > a { display: flex; align-items: center; gap: var(--space-2xs); min-height: 48px; padding: 0 var(--space-sm); border-radius: var(--radius-pill); font-size: 0.9375rem; font-weight: 500; color: var(--color-ink-2); text-decoration: none; white-space: nowrap; }
.nav__list > li > a:hover { background: var(--color-paper-3); color: var(--color-ink); }
.nav__list > li > a:active { color: var(--color-accent); }
.nav__list > li > a[aria-current] { color: var(--color-accent-2); }
.sub { position: absolute; top: 100%; left: 0; right: 0; padding-top: var(--space-xs); }
.js .sub { opacity: 0; visibility: hidden; transform: translateY(calc(var(--space-xs) * -1)); transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out), visibility 0s linear var(--dur-short); }
.js .has-sub:hover .sub, .js .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.js .has-sub.is-shut .sub { opacity: 0; visibility: hidden; }
html:not(.js) .sub { display: none; }
html:not(.js) .has-sub:hover .sub, html:not(.js) .has-sub:focus-within .sub { display: block; }
.sub__panel { color: var(--color-ink); max-height: calc(100dvh - var(--head-h) - var(--space-md)); overflow-y: auto; padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-2); box-shadow: var(--hair-hi), var(--shadow-card); }
.sub__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-lg); }
.sub__h { margin-bottom: var(--space-xs); padding-bottom: var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-rule); }
.sub__h a { display: flex; align-items: flex-end; min-height: 44px; font-size: var(--text-sm); font-weight: 600; color: var(--color-accent-2); text-decoration: none; }
.sub li a { display: flex; align-items: center; min-height: 40px; font-size: 0.9375rem; line-height: 1.3; text-decoration: none; }
.sub a:hover { color: var(--color-accent-hi); text-decoration: underline; }
.sub__all { margin-top: var(--space-md); }
.sub__all .btn:hover { color: var(--color-accent-ink); text-decoration: none; }
.langs { display: flex; gap: var(--space-2xs); }
.langs a { display: grid; place-items: center; min-width: 44px; min-height: 44px; text-decoration: none; }
.burger { display: none; }
.nav-backdrop { position: fixed; inset: 0; z-index: var(--z-sticky); background: var(--backdrop); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity var(--dur-short) var(--ease-out), visibility 0s linear var(--dur-short); }
.nav-open .nav-backdrop { opacity: 1; visibility: visible; transition-delay: 0s; }

/* ---------- buttons and promise ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: var(--space-xs) var(--space-lg); border: 0; border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font-size: var(--text-md); font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-accent-hi); box-shadow: 0 0 0 4px var(--color-accent-deep); }
.btn:active { background: var(--color-accent-soft); }
.btn:disabled { background: var(--color-paper-3); color: var(--color-muted); cursor: not-allowed; box-shadow: none; }
.btn--ghost { background: var(--color-paper-2); color: var(--color-ink); box-shadow: inset 0 0 0 1px var(--color-muted); }
.btn--ghost:hover { background: var(--color-paper-3); }
.btn--ghost:active { background: var(--color-shade); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.promise-line { display: flex; gap: var(--space-xs); align-items: flex-start; font-size: var(--text-md); }
.promise-line .ico { margin-top: var(--space-3xs); color: var(--color-accent-2); }

/* ---------- the rail: hero + form card beside the whole body ---------- */
.rail { display: grid; grid-template-columns: minmax(var(--gutter), 1fr) minmax(0, 764px) var(--space-xl) clamp(390px, 34vw, 472px) minmax(var(--gutter), 1fr); grid-template-rows: auto 1fr; }
.rail--photo { margin-top: calc(var(--dock-h) * -1); }
.hero { grid-column: 2; grid-row: 1; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-md); min-width: 0; padding-block: var(--space-md) var(--space-sm); }
.rail--home .hero { justify-content: center; min-height: min(calc(100svh - 40px), 860px); gap: var(--space-lg); }
.hero h1 { max-width: 22ch; font-size: var(--text-display); }
.rail--home .hero h1 { max-width: 12ch; font-size: var(--text-home); line-height: 1.04; }
.h1__sub { display: block; margin-top: var(--space-sm); max-width: 30ch; font-size: max(var(--text-lg), 0.46em); line-height: 1.25; letter-spacing: normal; color: var(--color-accent-2); }
.rail--home .h1__sub { font-size: max(var(--text-lg), 0.3em); }
.lead { max-width: 52ch; font-size: var(--text-lead); line-height: 1.45; }
.tag { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2xs) var(--space-md); max-width: 100%; padding: var(--space-sm) var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-2); box-shadow: var(--hair-hi); }
.tag__price { font-size: var(--text-2xl); font-weight: 600; color: var(--color-accent-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tag__text { flex: 1 1 260px; font-size: var(--text-sm); line-height: 1.4; }
.tag__label { display: block; font-weight: 600; }
.tag__note { color: var(--color-ink-2); }
.pagemeta { font-size: var(--text-sm); color: var(--color-muted); }
.pagemeta--end { margin-top: var(--space-xl); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-xs); font-size: var(--text-sm); color: var(--color-ink-2); }
.crumbs li { display: flex; align-items: center; gap: var(--space-xs); }
.crumbs li + li::before { content: "\203A"; color: var(--color-muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; }
.crumbs a:hover { color: var(--color-accent-hi); }
.photo { grid-column: 1 / -1; grid-row: 1; position: relative; margin: 0; overflow: hidden; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 65%; }
.rail--home .photo img { object-position: 30% 70%; }
/* inner pages: the photograph is shown whole, in the article column under the head, never behind text or the form */
.rail--figure { grid-template-rows: auto auto 1fr; }
.rail--figure .desk { grid-row: 1 / 4; }
.rail--figure .photo { grid-column: 2; grid-row: 2; aspect-ratio: 16 / 9; margin-top: var(--space-md); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.rail--figure .photo img { object-position: 50% 50%; }
.rail--figure .photo::after { content: none; }
.rail--figure .body { grid-row: 3; }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, var(--scrim-strong), var(--scrim-mid) 52%, var(--scrim-none) 80%), linear-gradient(to bottom, var(--scrim-none) 80%, var(--color-paper)); }
.desk { grid-column: 4; grid-row: 1 / 3; position: relative; z-index: var(--z-raised); min-width: 0; padding-block: var(--space-md) var(--space-2xl); }
.rail--photo .desk { padding-top: calc(var(--dock-h) + var(--space-md)); }
.formrail { container-type: inline-size; position: sticky; top: min(calc(var(--head-h) + var(--space-sm)), calc(100vh - var(--form-h) - var(--space-sm))); padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-well); color: var(--color-well-ink); box-shadow: var(--shadow-card), 0 0 0 1px var(--color-well-rule); }
.formrail__h { margin-bottom: var(--space-md); font-size: var(--text-xl); }

/* ---------- the owner's original form (#contactForm; its utility class names are inert) ---------- */
/* the honeypot stays off screen without reaching 9999px past the page edge */
#contactForm > div[aria-hidden="true"], #contactForm-2 > div[aria-hidden="true"] { left: 0 !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#contactForm, #contactForm-2 { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); margin: 0; }
#contactForm > div, #contactForm-2 > div { min-width: 0; }
.form-input { width: 100%; min-height: 48px; padding: 0 var(--space-sm); border: 1px solid var(--color-well-muted); border-radius: var(--radius-inner); background: var(--color-card); color: var(--color-well-ink); font-size: var(--text-md); }
textarea.form-input { display: block; min-height: 76px; padding-block: var(--space-sm); resize: vertical; }
.form-input::placeholder { color: var(--color-well-muted); }
.form-input:hover { border-color: var(--color-accent-deep); }
.formrail :focus-visible { outline: 2px solid var(--color-accent-deep); outline-offset: 1px; }
.form-input:disabled { opacity: 0.55; cursor: not-allowed; }
.promise-box { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); border: 1px solid var(--color-accent-deep); border-radius: var(--radius-inner); background: var(--color-accent-soft); }
.promise-box__ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--color-accent-2); color: var(--color-well-ink); }
.promise-box p { font-size: 0.9375rem; line-height: 1.35; }
.btn-orange { display: flex; align-items: center; justify-content: center; gap: var(--space-xs); width: 100%; min-height: 52px; border: 0; border-radius: var(--radius-pill); background: var(--color-accent-deep); color: var(--color-light); font-size: var(--text-md); font-weight: 600; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out); }
.btn-orange:hover { background: var(--color-well-ink); }
.btn-orange:active { background: var(--color-shade); }
.btn-orange:disabled { background: var(--color-well-2); color: var(--color-well-muted); cursor: progress; }
.btn-orange svg { width: 18px; height: 18px; }
[id^="successMessage"]:not(.hidden) { display: block; padding-block: var(--space-xl); text-align: center; }
[id^="successMessage"] > div { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto var(--space-md); border-radius: 50%; background: var(--color-accent-soft); color: var(--color-accent-deep); }
[id^="successMessage"] svg { width: 32px; height: 32px; }
[id^="successMessage"] h3 { margin-bottom: var(--space-xs); font-size: var(--text-2xl); }
@container (min-width: 340px) {
  #contactForm, #contactForm-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #contactForm > div:nth-of-type(n+6), #contactForm-2 > div:nth-of-type(n+6), #contactForm > button, #contactForm-2 > button { grid-column: 1 / -1; }
}

@container (min-width: 340px) and (max-width: 369px) {
  #contactForm > div:nth-of-type(n+4), #contactForm-2 > div:nth-of-type(n+4) { grid-column: 1 / -1; }
}
@media (min-width: 960px) and (max-height: 860px) {
  .formrail { padding-block: var(--space-md); }
  .formrail__h { margin-bottom: var(--space-sm); }
  .desk .form-input { min-height: 44px; }
  .desk textarea.form-input { min-height: 52px; }
  .desk #contactForm { gap: var(--space-xs); }
  .desk .promise-box { padding-block: var(--space-xs); }
  .desk .btn-orange { min-height: 48px; }
}

/* ---------- the body column ---------- */
.body { grid-column: 2; grid-row: 2; container-type: inline-size; min-width: 0; padding-bottom: var(--section-gap); }
.body > :first-child { margin-top: var(--space-md); }
.intro { max-width: min(62ch, 640px); font-size: var(--text-lead); line-height: 1.55; color: var(--color-ink-2); }
.prose { overflow-wrap: break-word; }
.sec, .faq, .sources, .house { margin-top: var(--section-gap); }
.body > .sec:first-child, .body > .house:first-child, .body > .prose:first-child > .sec:first-child, .body > .overview:first-child > .sec:first-child { margin-top: var(--space-lg); }
.prose > .sec:first-child { margin-top: var(--space-2xl); }
.prose > .sec + .sec { margin-top: var(--space-2xl); }
.sec > h2, .faq > h2 { max-width: 24ch; margin-bottom: var(--space-lg); }
.sec > p { max-width: min(65ch, 590px); line-height: 1.65; color: var(--color-ink-2); }
.sec > * + * { margin-top: var(--space-md); }
.sec > h2 + * { margin-top: 0; }
.sec > h3 { margin-top: var(--space-xl); }
.prose a, .faq__a a, .intro a, .note a, .closing__text a, .lead a { color: var(--color-accent-hi); }
.prose a:hover, .faq__a a:hover { color: var(--color-accent-2); }
.prose strong { color: var(--color-ink); }
.ticks { display: grid; gap: var(--space-sm); max-width: min(65ch, 610px); color: var(--color-ink-2); }
.ticks li { position: relative; padding-left: var(--space-lg); line-height: 1.6; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; border: 2px solid var(--color-accent-2); border-radius: 50%; }
.keys { display: grid; gap: var(--space-md); max-width: min(65ch, 610px); counter-reset: key; color: var(--color-ink-2); }
.keys li { position: relative; min-height: 32px; padding: var(--space-2xs) 0 0 var(--space-2xl); counter-increment: key; line-height: 1.6; }
.keys li::before { content: counter(key); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--color-paper-3); color: var(--color-accent-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.labels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--space-sm); }
.label { padding: var(--space-md) var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-2); box-shadow: var(--hair-hi); }
.label dt { margin-bottom: var(--space-2xs); font-weight: 600; color: var(--color-accent-2); }
.label dd { margin: 0; color: var(--color-ink-2); }
.steps { display: grid; gap: var(--space-xl); }
.step:not(:last-child)::before { content: ""; position: absolute; top: 48px; bottom: calc(var(--space-xl) * -1); left: 23px; width: 2px; background: var(--color-accent-deep); }
.step { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-auto-rows: min-content; column-gap: var(--space-lg); row-gap: var(--space-xs); align-content: start; }
.step__n { grid-column: 1; grid-row: 1 / span 3; align-self: start; position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--color-accent-2); color: var(--color-well-ink); font-size: var(--text-lg); font-weight: 600; box-shadow: 0 0 0 6px var(--color-paper); }
.step h3, .step p { grid-column: 2; }
.step h3 { padding-top: var(--space-sm); }
.step p { max-width: 58ch; line-height: 1.6; color: var(--color-ink-2); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--space-md); }
.card { position: relative; color: var(--color-ink); display: flex; flex-direction: column; gap: var(--space-xs); padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-2); box-shadow: var(--hair-hi); }
.card p { color: var(--color-ink-2); }
.card .card__price { margin-top: auto; padding-top: var(--space-xs); font-size: var(--text-lg); font-weight: 600; color: var(--color-accent-2); }
.prose .card h3 a, .card h3 a { color: var(--color-ink); text-decoration: none; }
.card--link h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-card); }
.card--link:hover { background: var(--color-paper-3); }
.card--link h3 a:focus-visible { outline: none; }
.card--link h3 a:focus-visible::after { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.note { padding: var(--space-md) var(--space-lg); border: 1px solid var(--color-accent-2); border-radius: var(--radius-card); background: var(--color-paper-2); }
.note p { max-width: min(62ch, 590px); }

/* ---------- bone wells: tables and price rows ---------- */
.well { padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-well); color: var(--color-well-ink); box-shadow: 0 0 0 1px var(--color-well-rule); }
.prose .well a, .well a { color: var(--color-accent-deep); }
.prose .well strong { color: var(--color-well-ink); }
.well :focus-visible { outline-color: var(--color-accent-deep); }
.well__h { margin-bottom: var(--space-lg); padding-bottom: var(--space-sm); border-bottom: 2px solid var(--color-accent-deep); font-size: var(--text-xl); color: var(--color-accent-deep); }
.well__note { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-well-muted); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: var(--text-md); line-height: 1.45; }
caption { padding-bottom: var(--space-sm); font-weight: 600; text-align: left; }
th, td { padding: var(--space-sm) var(--space-md) var(--space-sm) 0; border-bottom: 1px solid var(--color-well-rule); text-align: left; vertical-align: top; }
th:last-child, td:last-child { padding-right: 0; }
thead th { padding-top: 0; font-size: var(--text-sm); font-weight: 500; color: var(--color-well-muted); }
tbody th { font-weight: 600; }
tbody tr:last-child > * { border-bottom: 0; }
td.num { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.lane { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "name range"; grid-template-rows: auto 1fr; column-gap: var(--space-lg); align-items: start; padding-block: var(--space-md); border-bottom: 1px solid var(--color-well-rule); }
.lane:first-child { padding-top: 0; }
.lane:last-child { padding-bottom: 0; border-bottom: 0; }
.lane__name { grid-area: name; min-width: 0; font-weight: 600; line-height: 1.4; }
.lane__note { display: block; margin-top: var(--space-2xs); font-size: var(--text-sm); font-weight: 400; line-height: 1.5; color: var(--color-well-muted); }
.lane__price { grid-area: price; justify-self: end; font-size: var(--text-xl); font-weight: 600; line-height: 1.2; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.lane__price--text { font-size: var(--text-md); font-weight: 500; }
.lane__unit { display: block; font-size: var(--text-sm); font-weight: 400; color: var(--color-well-muted); white-space: normal; max-width: 16ch; margin-left: auto; }
.lane__range { grid-area: range; justify-self: end; font-size: var(--text-sm); color: var(--color-well-muted); white-space: nowrap; }
.lane-groups { display: grid; gap: var(--space-lg); }
.band__note { max-width: 62ch; color: var(--color-ink-2); }
.pricelist .band__note { margin-bottom: var(--space-lg); }
@container (max-width: 560px) {
  .well { padding: var(--space-md); }
  .table-wrap { overflow: visible; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap th, .table-wrap td, .table-wrap caption { display: block; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table-wrap tbody tr { padding-block: var(--space-sm); border-bottom: 1px solid var(--color-well-rule); }
  .table-wrap tbody tr:first-child { padding-top: 0; }
  .table-wrap tbody tr:last-child { padding-bottom: 0; border-bottom: 0; }
  .table-wrap th, .table-wrap td { padding: var(--space-2xs) 0; border: 0; }
  .table-wrap tbody th { font-size: var(--text-lg); }
  .table-wrap td[data-label] { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-sm); }
  .table-wrap td[data-label]::before { content: attr(data-label); font-size: var(--text-sm); color: var(--color-well-muted); }
  .table-wrap td.num { white-space: normal; }
}
@container (max-width: 440px) {
  .lane { grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "price" "range"; row-gap: var(--space-2xs); }
  .lane__price, .lane__range { justify-self: start; text-align: left; }
  .lane__unit { margin-left: 0; max-width: none; }
}

/* ---------- FAQ, sources, related, rows, overview, hub lists ---------- */
.faq__list { border-top: 1px solid var(--color-rule); }
.faq__item { border-bottom: 1px solid var(--color-rule); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); min-height: 68px; padding-block: var(--space-sm); font-size: var(--text-lg); font-weight: 500; line-height: 1.35; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.pm::after { content: "+"; font-size: var(--text-2xl); font-weight: 400; color: var(--color-accent-2); }
.faq__item[open] .pm::after { content: "\2212"; }
.faq__item summary:hover { color: var(--color-accent-hi); }
.faq__item summary:active { color: var(--color-accent); }
.faq__a { padding-bottom: var(--space-lg); max-width: min(62ch, 590px); line-height: 1.65; color: var(--color-ink-2); }
.sources { padding: var(--space-lg); border: 1px solid var(--color-rule); border-radius: var(--radius-card); }
.sources h2 { margin-bottom: var(--space-md); font-size: var(--text-title); }
.sources__list { display: grid; gap: var(--space-sm); padding-left: var(--space-lg); list-style: decimal; font-size: var(--text-sm); color: var(--color-ink-2); overflow-wrap: anywhere; }
.sources__list li::marker { color: var(--color-accent-2); }
.sources__list span { color: var(--color-muted); white-space: nowrap; }
.sources__list a:hover { color: var(--color-accent-hi); }
.related__list { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.related__list a { display: flex; align-items: center; min-height: 48px; padding: var(--space-xs) var(--space-lg); border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--color-rule); background: var(--color-paper-2); font-size: var(--text-md); line-height: 1.3; text-decoration: none; }
.related__list a:hover { background: var(--color-paper-3); color: var(--color-accent-hi); }
.related__list a:active { color: var(--color-accent); }
.rows, .ov { border-top: 1px solid var(--color-rule); }
.row, .ov__row { border-bottom: 1px solid var(--color-rule); }
.row a { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); min-height: 60px; padding-block: var(--space-sm); text-decoration: none; font-weight: 500; }
.row__price { flex: none; color: var(--color-accent-2); font-variant-numeric: tabular-nums; }
.row a:hover .row__name, .ov__row a:hover .ov__name { color: var(--color-accent-hi); text-decoration: underline; }
.ovg { scroll-margin-top: calc(var(--head-h) + var(--space-md)); }
.overview > .sec + .sec { margin-top: var(--space-2xl); }
.ov__row a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "sum sum"; gap: var(--space-2xs) var(--space-md); align-items: baseline; padding-block: var(--space-lg); text-decoration: none; }
.ov__name { grid-area: name; font-size: var(--text-title); font-weight: 500; line-height: 1.25; }
.ov__sum { grid-area: sum; max-width: 62ch; font-size: var(--text-md); color: var(--color-ink-2); }
.ov__price { grid-area: price; position: relative; font-size: var(--text-lg); font-weight: 600; color: var(--color-accent-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cards--guides { grid-template-columns: minmax(0, 1fr); }
.places__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: var(--space-xs); }
.places__list a { display: flex; flex-direction: column; justify-content: center; min-height: 64px; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-inner); background: var(--color-paper-3); font-weight: 500; line-height: 1.25; text-decoration: none; }
.places__list a:hover { background: var(--color-accent-deep); color: var(--color-light); }
.places__list a:active { background: var(--color-shade); }
.places__list a[aria-current="page"] { background: var(--color-accent-2); color: var(--color-well-ink); }
.places__k { font-size: var(--text-sm); font-weight: 400; color: var(--color-accent-2); }
.places__list a:hover .places__k { color: var(--color-light); }
.places__list a[aria-current="page"] .places__k { color: var(--color-well-ink); }

/* ---------- signature: the house at dusk ---------- */
.house { scroll-margin-top: calc(var(--head-h) + var(--space-md)); }
.house h2 { max-width: 18ch; }
.house__lead { margin-top: var(--space-md); max-width: 52ch; font-size: var(--text-lead); color: var(--color-ink-2); }
.cut { margin-top: var(--space-xl); }
.cut__roof { height: 112px; background: var(--color-accent-deep); clip-path: polygon(0 100%, 50% 0, 100% 100%); }
.cut__rooms { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); padding: var(--space-xs); background: var(--color-paper-3); }
.cut__rooms::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 3px); width: 6px; background: var(--color-accent); pointer-events: none; }
.room { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: var(--space-xs); min-height: 128px; padding: var(--space-md) var(--space-lg); border-radius: var(--radius-inner); background: var(--color-paper); color: var(--color-ink); font-size: var(--text-lg); font-weight: 500; line-height: 1.25; text-decoration: none; cursor: pointer; }
.room:nth-child(even) { align-items: flex-end; text-align: right; }
.room--low { background: var(--color-shade); margin-top: var(--space-xs); }
.room::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(ellipse 80% 90% at 50% 0%, var(--lit-soft), var(--scrim-none) 85%); opacity: 0.7; }
.room__ico { color: var(--color-accent-2); }
.room:hover { box-shadow: inset 0 0 0 2px var(--color-accent-2); }
.room:active { background: var(--color-paper-2); }
.room[aria-pressed="true"] { background: var(--color-accent-2); color: var(--color-well-ink); }
.room[aria-pressed="true"]::before { opacity: 0; }
.room[aria-pressed="true"] .room__ico { color: var(--color-well-ink); }
.cut.is-dark .room::before { opacity: 0; }
.cut.is-dark .room__ico { opacity: 0.3; }
.cut.is-dark.is-lit .room::before { animation: glow var(--dur-long) var(--ease-out) forwards; animation-delay: calc(var(--i) * 300ms); }
.cut.is-dark.is-lit .room__ico { animation: light var(--dur-long) var(--ease-out) forwards; animation-delay: calc(var(--i) * 300ms); }
.cut.is-dark .room[aria-pressed="true"] .room__ico { opacity: 1; }
.cut.is-dark .room[aria-pressed="true"]::before { animation: none; }
@keyframes light { to { opacity: 1; } }
@keyframes glow { to { opacity: 0.7; } }
.cut__ground { height: 8px; background: var(--color-accent); }
.cut__answer { margin-top: var(--space-lg); }
.cut__note { min-height: 3.2em; max-width: 56ch; }
.cut__note strong { color: var(--color-accent-2); }
.cut__answer .actions { margin-top: var(--space-md); }

/* ---------- full-width bands: places, closing form, footer ---------- */
.band { padding-block: var(--section-gap); background: var(--color-paper-2); color: var(--color-ink); }
.band h2 { max-width: 24ch; }
.band__note + .places__list { margin-top: var(--space-xl); }
.band .band__note { margin-top: var(--space-md); }
.closing { padding-block: var(--section-gap); scroll-margin-top: var(--head-h); }
.closing__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: var(--space-2xl); align-items: center; }
.closing__text { display: grid; gap: var(--space-lg); justify-items: start; }
.closing__text h2 { max-width: 16ch; font-size: var(--text-closing); }
.closing__text > p { max-width: 46ch; color: var(--color-ink-2); }
.formrail--end { position: static; }
.foot { padding-block: var(--section-gap) var(--space-xl); border-top: 1px solid var(--color-rule); background: var(--color-shade); }
.foot__line { max-width: 22ch; font-size: var(--text-closing); line-height: 1.12; letter-spacing: var(--tracking-display); text-wrap: balance; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-xl); margin-top: var(--space-2xl); padding-block: var(--space-xl); border-block: 1px solid var(--color-rule); }
.foot__brand p { margin-top: var(--space-md); max-width: 40ch; color: var(--color-ink-2); }
.foot__h { margin-bottom: var(--space-xs); font-weight: 600; color: var(--color-accent-2); }
.foot__grid + .foot__h { margin-top: var(--space-xl); }
.foot a:not(.brand) { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot a:not(.brand):hover { color: var(--color-accent-hi); text-decoration: underline; }
.foot__places { display: flex; flex-wrap: wrap; gap: 0 var(--space-lg); }
.foot__legal { margin-top: var(--space-xl); max-width: 80ch; font-size: var(--text-sm); color: var(--color-muted); }

/* ---------- floating action (phones), 404, privacy ---------- */
.mcta { display: none; }
.notfound { display: flex; flex-direction: column; align-items: center; gap: var(--space-lg); max-width: 820px; margin-inline: auto; padding: var(--section-gap) var(--gutter); text-align: center; }
.nf__num { font-size: clamp(6rem, 18vw, 12rem); font-weight: 600; line-height: 1; color: var(--color-ink); }
.notfound h1 { font-size: var(--text-display); }
.nf__links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-sm); }
.notfound .lead a { color: var(--color-accent-hi); }
.legal { max-width: 820px; margin-inline: auto; padding: 0 var(--gutter) var(--section-gap); }
.legal .hero { padding-block: var(--space-xl) 0; }
.legal .intro { margin-top: var(--space-md); }
.legal .prose > .sec:first-of-type { margin-top: var(--space-2xl); }

/* ---------- widths ---------- */
@media (max-width: 1279px) { :root { --gutter: 32px; } .head-cta { display: none; } .nav { margin-right: 0; } }
@media (max-width: 1079px) {
  :root { --dock-h: 80px; }
  .dockwrap { padding-inline: var(--space-sm); }
  .dock { justify-content: space-between; }
  .burger { display: flex; flex: none; flex-direction: column; justify-content: center; align-items: center; gap: var(--space-2xs); width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--color-paper-3); color: var(--color-ink); cursor: pointer; }
  .burger span { width: 22px; height: 2px; background: currentColor; transition: transform var(--dur-short) var(--ease-out), opacity var(--dur-short) var(--ease-out); }
  .burger:hover { background: var(--color-accent-deep); }
  .burger:active { background: var(--color-shade); }
  .nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-open .burger span:nth-child(2) { opacity: 0; }
  .nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav { position: absolute; top: calc(100% + var(--space-xs)); left: 0; right: 0; margin: 0; }
  .nav__list { flex-direction: column; max-height: calc(100dvh - var(--head-h) - var(--space-lg)); overflow-y: auto; padding: var(--space-sm); border-radius: var(--radius-card); background: var(--color-paper-2); box-shadow: var(--hair-hi), var(--shadow-card); }
  .nav__list > li > a { min-height: 56px; padding-inline: var(--space-md); border-radius: var(--radius-inner); font-size: var(--text-lg); }
  .nav__list > li + li { border-top: 1px solid var(--color-rule); }
  .sub, .caret { display: none; }
  .js .nav { visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path var(--dur-long) var(--ease-out), visibility 0s linear var(--dur-long); }
  .js.nav-open .nav { visibility: visible; clip-path: inset(-48px -48px -96px -48px); transition: clip-path var(--dur-long) var(--ease-out), visibility 0s; }
  .js .nav__list > li { opacity: 0; transform: translateY(-12px); transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-long) var(--ease-out); }
  .js.nav-open .nav__list > li { opacity: 1; transform: none; }
  .js.nav-open .nav__list > li:nth-child(2) { transition-delay: 50ms; }
  .js.nav-open .nav__list > li:nth-child(3) { transition-delay: 100ms; }
  .js.nav-open .nav__list > li:nth-child(4) { transition-delay: 150ms; }
  .js.nav-open .nav__list > li:nth-child(5) { transition-delay: 200ms; }
  html.nav-open, .nav-open body { overflow: hidden; }
  html:not(.js) .dock { flex-wrap: wrap; border-radius: var(--radius-card); }
  html:not(.js) .nav { position: static; flex-basis: 100%; order: 3; }
  html:not(.js) .burger { display: none; }
  html:not(.js) .site-head { position: static; }
  .closing__in { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
}
@media (max-width: 959px) {
  :root { --gutter: 24px; --section-gap: 72px; }
  .rail, .rail--photo, .rail--figure { grid-template-columns: var(--gutter) minmax(0, 1fr) var(--gutter); grid-template-rows: none; margin-top: 0; }
  .hero, .rail--home .hero { grid-column: 2; grid-row: auto; justify-content: flex-start; min-height: 0; padding-block: var(--space-md) var(--space-xl); }
  .desk, .rail--photo .desk, .rail--figure .desk { grid-column: 2; grid-row: auto; padding: 0; scroll-margin-top: calc(var(--head-h) + var(--space-xs)); }
  .formrail { position: static; }
  .photo { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; max-height: 460px; width: 100%; margin-top: var(--space-xl); }
  .photo::after, .photo img { }
  .photo::after { background: linear-gradient(to bottom, var(--color-paper), var(--scrim-none) 14%, var(--scrim-none) 86%, var(--color-paper)); }
  .rail--figure .photo { grid-column: 2; grid-row: auto; aspect-ratio: 3 / 2; margin-top: var(--space-xl); }
  .rail--figure .photo::after { content: none; }
  .body, .rail--figure .body { grid-column: 2; grid-row: auto; }
  .mcta { display: block; position: fixed; left: var(--space-md); right: var(--space-md); bottom: calc(var(--space-sm) + env(safe-area-inset-bottom)); z-index: var(--z-sticky); transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out), visibility 0s; }
  .mcta .btn { width: 100%; box-shadow: var(--shadow-card); }
  .mcta.is-away { opacity: 0; visibility: hidden; transform: translateY(var(--space-lg)); transition-delay: 0s, 0s, var(--dur-short); }
  .has-form .foot { padding-bottom: var(--space-3xl); }
  .foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 479px) {
  :root { --gutter: 16px; --section-gap: 64px; }
  .brand { gap: var(--space-xs); }
  .brand img { width: 44px; height: 44px; }
  .brand__name { font-size: var(--text-md); }
  .brand__tag { font-size: 0.625rem; letter-spacing: 0; white-space: normal; }
  .dock { gap: var(--space-xs); padding-left: var(--space-xs); }
  .annbar { font-size: var(--text-xs); gap: var(--space-2xs); padding-inline: var(--space-xs); }
  .formrail { padding: var(--space-md); }
  .hero .actions { align-self: stretch; }
  .hero .actions .btn, .cut__answer .btn { flex: 1 1 100%; }
  .cut__roof { height: 80px; }
  .room { min-height: 108px; padding: var(--space-sm); font-size: var(--text-md); }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .sources { padding: var(--space-md); }
  .ov__row a { grid-template-areas: "name name" "sum sum" "price price"; }
}
@media (max-width: 359px) { .annbar .ico { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}

/* measure: running text stays readable in the wide article column */
main p, main li, main dd { max-width: 610px; }
.house + .prose > .intro:first-child { margin-top: var(--space-2xl); }

@media (max-width: 63.99rem) {
.mcta .btn { flex-direction: column; gap: 0; line-height: 1.25; padding-block: var(--space-xs); }
.mcta .btn small { font-size: 0.78rem; font-weight: 500; }
}

/* EN / RU (phase D): phone header keeps logo + switcher + hamburger in one row (the current language is not repeated);
   long Russian promise words may wrap inside the narrow form card */
@media (max-width: 479px) {
  .langs { flex: none; gap: 0; }
  .langs li:has(> a[aria-current]) { display: none; }
  .langs a { min-width: 40px; }
  .dock:has(.langs) .brand { min-width: 0; }
  html[lang="ru"] .promise-box strong, html[lang="ru"] .promise-line strong { white-space: normal; }
}
@media (max-width: 389px) {
  .dock:has(.langs) { gap: var(--space-2xs); padding-right: var(--space-xs); }
  .dock:has(.langs) .brand { gap: var(--space-2xs); }
  .dock:has(.langs) .brand img { width: 36px; height: 36px; }
  .dock:has(.langs) .brand__name { font-size: 0.875rem; }
  .dock:has(.langs) .brand__tag { font-size: 0.5625rem; }
  .langs a { min-width: 34px; }
}

/* phase D polish: current language marked in the switcher; the longer EN address placeholder fits the form rail */
.langs a[aria-current] { color: var(--color-accent-2); font-weight: 700; }
@media (min-width: 64rem) { html[lang="en"] .form-input[name="address"]::placeholder { font-size: 0.84em; letter-spacing: -0.01em; } }
