/* SEO-Novostrojki. Live Yess design authority, inspected 2026-11-17.
   Source: /assets/yess-design-system.css?v=ed3aeac98b072452.
   Component contract and integration notes: ../../design-notes.md. */
/* Manrope is supplied locally by assets/fonts.css, loaded before this file. */

:root {
  color-scheme: light;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --ink: #12263a;
  --ink-2: #354a60;
  --muted: #526779;
  --white: #fff;
  --surface: #f4f7fa;
  --surface-2: #eaf0f5;
  --line: #e0e7ee;
  --line-strong: #b9c8d5;
  --primary: #087d48;
  --primary-hover: #06663b;
  --primary-soft: #eaf8f0;
  --accent: #0064f0;
  --accent-hover: #004ebd;
  --accent-soft: #eaf2ff;
  --error: #ad2525;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-btn: 12px;
  --radius-tag: 8px;
  --shadow: 0 12px 32px rgb(18 38 58 / 8%);
  --shadow-hover: 0 18px 40px rgb(18 38 58 / 13%);
  --container: 1280px;
  --gutter: 28px;
  --section-space: clamp(48px, 6vw, 88px);
  --header-height: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
::selection { background: #cee1ff; color: var(--ink); }
img, svg, video { max-width: 100%; }
img { display: block; height: auto; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
button, input, select, textarea { max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--accent-hover); }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, h4 { margin: 0; color: inherit; font-weight: 800; line-height: 1.18; letter-spacing: -.035em; text-wrap: balance; overflow-wrap: break-word; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
figure { margin: 0; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 12px; font-weight: 800; }
hr { margin: 32px 0; border: 0; border-top: 1px solid var(--line); }
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 200; padding: 12px 20px; background: var(--ink); color: white; transform: translateY(-180%); border-radius: var(--radius-btn); }
.skip-link:focus { transform: none; color: white; }

/* Site chrome */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; min-height: 36px; padding-block: 7px; }
.topbar a { color: inherit; text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgb(255 255 255 / 98%); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 26px; min-height: var(--header-height); padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; color: var(--ink); text-decoration: none; font-size: 19px; font-weight: 800; line-height: 1.2; letter-spacing: -.04em; }
.brand:hover { color: var(--ink); }
.brand > span:last-child { min-width: 0; }
.brand b, .brand strong { display: block; }
.brand-mark { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; background: var(--accent); color: white; border-radius: var(--radius-btn); font-size: 17px; letter-spacing: -.06em; }
.brand-mark svg { width: 26px; height: 26px; }
.brand-sub { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: 0; }
.main-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; font-size: 13px; font-weight: 700; }
.main-nav a:hover, .main-nav a[aria-current='page'] { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-actions > a:not(.btn) { color: var(--ink); font-weight: 800; text-decoration: none; white-space: nowrap; }
.header-actions > button:not(.btn), .menu-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 10px; background: white; border: 1px solid var(--line); border-radius: var(--radius-btn); }
.menu-toggle { display: none; flex: 0 0 44px; }
.header-actions svg, .menu-toggle svg { width: 20px; height: 20px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 50px; padding: 13px 23px; border: 1px solid transparent; border-radius: var(--radius-btn); font: 800 14px/1.4 var(--font); text-align: center; text-decoration: none; cursor: pointer; transition: background .18s, border-color .18s, box-shadow .18s, color .18s; }
.btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); color: white; }
.btn-dark { background: var(--ink); color: white; }
.btn-dark:hover { background: #24435e; color: white; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.btn-light { background: white; color: var(--ink); border-color: var(--line); }
.btn-light:hover { background: var(--surface); color: var(--accent); }
.btn-small { min-height: 44px; padding: 10px 16px; font-size: 12px; }
.btn:disabled, .btn[aria-disabled='true'] { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* Home: editorial split and immediately usable search */
.hero { padding-block: 52px 40px; background: var(--surface); }
.hero-home { padding-block: clamp(32px, 4vw, 58px) 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 4vw, 58px); }
.hero-copy { min-width: 0; padding-block: 8px; }
.eyebrow, .section-kicker { display: flex; align-items: center; gap: 9px; margin: 0 0 16px; color: var(--accent); font-size: 12px; font-weight: 800; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow::before, .section-kicker::before { content: ''; width: 18px; height: 2px; flex-shrink: 0; background: currentColor; }
.hero-title { max-width: 18ch; font-size: clamp(34px, 3.8vw, 54px); line-height: 1.09; letter-spacing: -.045em; }
.hero-title span, .hero-title em { color: var(--accent); font-style: normal; }
.hero-lead { max-width: 46ch; margin: 22px 0 0; color: var(--ink-2); font-size: 17px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 12px; line-height: 1.6; }
.hero-points > * { position: relative; padding-left: 16px; }
.hero-points > *::before { content: ''; position: absolute; top: .55em; left: 0; width: 6px; height: 6px; border-radius: 2px; background: var(--primary); }
.hero-visual { position: relative; min-width: 0; overflow: hidden; background: #e6e0d7; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.hero-visual > a { display: block; }
.hero-visual img { width: 100%; height: 100%; min-height: 390px; aspect-ratio: 1.2; object-fit: cover; }
.image-note { margin: 0; padding: 12px 17px; background: white; color: var(--muted); font-size: 11px; line-height: 1.55; }
.hero-badge { position: absolute; top: 18px; left: 18px; max-width: calc(100% - 36px); padding: 10px 14px; background: rgb(255 255 255 / 96%); color: var(--ink); border-radius: var(--radius-tag); font-size: 12px; font-weight: 700; box-shadow: 0 3px 14px rgb(18 38 58 / 8%); }
.hero-badge strong { display: block; font-size: 17px; }
.quick-filter { position: relative; z-index: 1; margin-top: 36px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.quick-filter > h2, .quick-filter > h3 { margin-bottom: 18px; font-size: 20px; }
.filter-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: end; gap: 12px; }
.filter-field { display: grid; gap: 7px; min-width: 0; color: var(--ink-2); font-size: 12px; font-weight: 700; }
.filter-field label { font-size: inherit; }
.filter-result { margin-top: 14px; color: var(--muted); font-size: 13px; }
.filter-result:empty { display: none; }

/* Sections and listing cards */
.section { padding-block: var(--section-space); }
.section-muted { background: var(--surface); }
.section-dark { background: var(--ink); color: white; }
.section-dark .section-kicker, .section-dark .eyebrow { color: #92c4ff; }
.section-dark .section-lead { color: #cad8e4; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 22px 32px; margin-bottom: 32px; }
.section-head > div { max-width: 760px; }
.section-title { max-width: 27ch; font-size: clamp(28px, 3.1vw, 40px); }
.section-lead { max-width: 68ch; margin: 15px 0 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.section-action { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--accent); font-size: 13px; font-weight: 800; text-decoration: none; }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 18px; align-items: stretch; }
.property-card { display: flex; flex-direction: column; min-width: 0; background: white; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.card-media { display: block; position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.card-media > a { display: block; width: 100%; height: 100%; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-badge { position: absolute; top: 12px; left: 12px; max-width: calc(100% - 72px); padding: 6px 9px; background: white; color: var(--ink); border-radius: var(--radius-tag); font-size: 11px; font-weight: 700; line-height: 1.4; }
.favorite-btn { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-btn); background: white; color: var(--ink); cursor: pointer; }
.favorite-btn svg { width: 21px; height: 21px; }
.favorite-btn[aria-pressed='true'], .favorite-btn.is-active, .favorite-btn.active { color: #b52645; border-color: #e9a7b5; background: #fff1f4; }
.favorite-btn[aria-pressed='true'] svg { fill: currentColor; }
.card-body { display: flex; flex-direction: column; flex: 1; gap: 9px; min-width: 0; padding: 18px; }
.card-location { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.card-title { font-size: 16px; line-height: 1.45; letter-spacing: -.015em; }
.card-title a { color: var(--accent); text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-price { margin: 0; color: var(--ink); font-size: clamp(21px, 1.8vw, 25px); font-weight: 800; line-height: 1.25; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.card-price small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.5; font-weight: 400; letter-spacing: 0; }
.card-meta { display: flex; flex-wrap: wrap; gap: 5px 10px; padding: 0; margin: 0 0 8px; list-style: none; color: var(--muted); font-size: 12px; line-height: 1.6; }
.card-actions { display: flex; align-items: stretch; gap: 8px; margin-top: auto; padding-top: 8px; }
.card-actions .btn { flex: 1; min-width: 0; padding-inline: 12px; font-size: 12px; min-height: 44px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: var(--radius-tag); background: var(--surface); color: var(--ink-2); font-size: 11px; font-weight: 600; line-height: 1.5; text-decoration: none; }
.scenario-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.scenario-card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: white; color: var(--ink); text-decoration: none; transition: border-color .18s, box-shadow .18s; }
.scenario-card h3 { font-size: 22px; }
.scenario-card p { color: var(--muted); font-size: 14px; }
.scenario-card > svg { width: 32px; height: 32px; color: var(--accent); }
.scenario-card > img { width: 100%; aspect-ratio: 1.6; object-fit: cover; border-radius: var(--radius-btn); }
.scenario-card .btn, .scenario-card > a:last-child { margin-top: auto; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.feature-item { min-width: 0; padding: 8px 0 8px 20px; border-left: 3px solid var(--accent); }
.feature-number { display: block; margin-bottom: 15px; color: var(--accent); font-size: 36px; line-height: 1; font-weight: 800; letter-spacing: -.05em; }
.feature-item h3, .feature-item > strong { display: block; margin-bottom: 10px; font-size: 17px; font-weight: 800; }
.feature-item p { color: var(--muted); font-size: 13px; }
.section-dark .feature-item { border-color: #74b1ff; }
.section-dark .feature-number { color: #92c4ff; }
.section-dark .feature-item p { color: #cad8e4; }
.split-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 56px; }
.split-grid > * { min-width: 0; }
.editorial-image { width: 100%; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-2); }
.editorial-image img, img.editorial-image { width: 100%; aspect-ratio: 1.2; object-fit: cover; }
.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: steps; }
.step { position: relative; min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: white; counter-increment: steps; }
.step::before { content: '0' counter(steps); display: block; margin-bottom: 28px; color: var(--accent); font-size: 36px; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.step h3 { margin-bottom: 12px; font-size: 18px; }
.step p { color: var(--muted); font-size: 13px; }

/* Native forms and quiz. Input state belongs to the HTML/JS controller. */
input:not([type='checkbox']):not([type='radio']):not([type='hidden']):not([type='range']):not([type='submit']):not([type='button']), select, textarea { display: block; width: 100%; min-width: 0; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-btn); background: white; color: var(--ink); font-size: 16px; line-height: 1.45; }
select { padding-right: 28px; }
textarea { min-height: 130px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #66788a; opacity: 1; }
input[type='checkbox'], input[type='radio'] { flex: 0 0 18px; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); }
input[type='range'] { width: 100%; accent-color: var(--accent); }
input[aria-invalid='true'], select[aria-invalid='true'], textarea[aria-invalid='true'] { border-color: var(--error); }
input:disabled, select:disabled, textarea:disabled { background: var(--surface); color: var(--muted); cursor: not-allowed; }
.quiz { padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; color: var(--ink); box-shadow: var(--shadow); }
.quiz-progress { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; color: var(--muted); font-size: 12px; }
.quiz-progress > span { flex: 1; min-height: 5px; border-radius: 3px; background: var(--surface-2); }
.quiz-progress > span.active, .quiz-progress > span.is-active, .quiz-progress > span[aria-current='step'] { background: var(--accent); }
.quiz-progress progress, progress.quiz-progress { display: block; width: 100%; height: 6px; border: 0; accent-color: var(--accent); }
.quiz-progress::-webkit-progress-bar { background: var(--surface-2); }
.quiz-progress::-webkit-progress-value { background: var(--accent); }
.quiz-step { min-width: 0; }
.quiz-step h3, .quiz-step legend { margin-bottom: 14px; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; }
.quiz-step > p { color: var(--muted); font-size: 14px; }
.quiz-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.quiz-option { display: flex; align-items: flex-start; gap: 11px; min-width: 0; min-height: 64px; padding: 17px; border: 1px solid var(--line-strong); border-radius: var(--radius-btn); background: white; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.55; cursor: pointer; text-align: left; }
.quiz-option:hover { border-color: var(--accent); }
.quiz-option:has(input:checked), .quiz-option[aria-pressed='true'], .quiz-option.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.quiz-option:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.quiz-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; }
.quiz-actions .btn:last-child { margin-left: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid > .consent, .form-grid > .form-status, .form-grid > .btn, .form-grid > .field:has(textarea) { grid-column: 1 / -1; }
.field { display: grid; align-content: start; gap: 7px; min-width: 0; font-size: 13px; font-weight: 700; }
.field label { display: block; }
.field small { color: var(--muted); font-size: 12px; font-weight: 400; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin-block: 7px; color: var(--muted); font-size: 12px; line-height: 1.65; font-weight: 400; }
.consent input { flex-shrink: 0; }
.consent a { color: inherit; }
.form-status { margin: 0; font-size: 13px; line-height: 1.65; }
.form-status:empty { display: none; }
.form-status.is-error, .form-status.error { padding: 13px 16px; background: #fff0f0; color: var(--error); border: 1px solid #eac6c6; border-radius: var(--radius-tag); }
.form-status.is-success, .form-status.success { padding: 13px 16px; background: var(--primary-soft); color: #06663b; border: 1px solid #a7d7be; border-radius: var(--radius-tag); }
.lead-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px; padding: clamp(24px, 4vw, 48px); background: var(--ink); color: white; border-radius: var(--radius-lg); }
.lead-panel > form, .lead-panel > .form-grid { min-width: 0; padding: 28px; border-radius: var(--radius); background: white; color: var(--ink); }
.lead-panel form .form-grid { padding: 0; }
.lead-aside { min-width: 0; }
.lead-aside h2 { margin-bottom: 18px; font-size: clamp(28px, 3vw, 38px); }
.lead-aside p, .lead-aside li { color: #d1dfeb; font-size: 15px; line-height: 1.8; }
.lead-aside ul { padding-left: 20px; }
.lead-aside .eyebrow { color: #92c4ff; }
.faq-list { max-width: 940px; margin-inline: auto; }
.faq-list details { padding: 0 24px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: white; color: var(--ink); }
.faq-list summary { position: relative; padding: 21px 34px 21px 0; font-size: 16px; font-weight: 800; line-height: 1.5; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; top: 18px; right: 0; color: var(--accent); font-size: 26px; font-weight: 500; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details[open] summary { border-bottom: 1px solid var(--line); }
.faq-list details p, .faq-list details > div { padding-block: 18px 22px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }

/* SEO model pages: intact prose receives a readable editorial treatment. */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0; padding-block: 22px; color: var(--muted); font-size: 12px; line-height: 1.7; list-style: none; overflow-wrap: anywhere; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }
.page-hero { padding-block: 24px 42px; background: var(--surface); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 27ch; font-size: clamp(30px, 3.7vw, 48px); line-height: 1.15; }
.page-hero p { max-width: 72ch; margin-top: 18px; color: var(--muted); font-size: 16px; }
.page-hero .hero-grid { align-items: center; }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: start; gap: 56px; padding-block: 48px 64px; }
.page-layout > * { min-width: 0; }
.article { min-width: 0; color: var(--ink-2); font-size: 16px; line-height: 1.85; overflow-wrap: break-word; }
.article h1, .article h2, .article h3, .article h4 { color: var(--ink); }
.article h2 { margin: 42px 0 19px; font-size: clamp(25px, 2.6vw, 34px); line-height: 1.25; }
.article h3 { margin: 30px 0 15px; font-size: 23px; line-height: 1.35; }
.article h4 { margin: 24px 0 12px; font-size: 18px; }
.article > :first-child { margin-top: 0; }
.article p { margin: 0 0 20px; }
.article ul, .article ol { margin: 0 0 24px; padding-left: 24px; }
.article li { padding-left: 4px; margin-block: 9px; }
.article li::marker { color: var(--accent); font-weight: 700; }
.article strong { color: var(--ink); font-weight: 800; }
.article blockquote { margin: 28px 0; padding: 22px 26px; background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-btn) var(--radius-btn) 0; }
.article img { max-width: 100%; height: auto; border-radius: var(--radius); }
.article figure { margin: 28px 0; }
.article figcaption { margin-top: 10px; color: var(--muted); font-size: 12px; }
.article a { overflow-wrap: anywhere; }
.toc { position: sticky; top: calc(var(--header-height) + 24px); padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 13px; }
.toc h2, .toc h3, .toc > strong { display: block; margin-bottom: 16px; font-size: 16px; font-weight: 800; }
.toc ul, .toc ol { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.toc a { display: block; padding-block: 4px; color: var(--ink-2); text-decoration: none; line-height: 1.55; }
.toc a:hover, .toc a[aria-current='true'] { color: var(--accent); }
.toc > .btn { margin-top: 20px; width: 100%; }
.toc a.btn-primary, .toc a.btn-dark { color: white; }
.content-section { margin-block: 0 40px; scroll-margin-top: calc(var(--header-height) + 24px); }
.data-table, .article table { display: block; width: 100%; max-width: 100%; margin: 26px 0; overflow-x: auto; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--radius-btn); font-size: 14px; line-height: 1.6; text-align: left; }
.data-table th, .data-table td, .article th, .article td { min-width: 130px; padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th, .article th { background: var(--surface); color: var(--ink); font-weight: 800; }
.data-table tr:nth-child(even) td, .article tr:nth-child(even) td { background: #fafbfd; }
.data-table tr:last-child td, .article tr:last-child td { border-bottom: 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.related-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-btn); background: white; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.5; transition: border-color .18s, background .18s; }
.related-card h3 { font-size: 17px; line-height: 1.4; }
.related-card p, .related-card small { color: var(--muted); font-size: 12px; font-weight: 400; }
.related-card:hover { border-color: var(--accent); background: var(--accent-soft); }
.catalog-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 24px 0; }
.catalog-tools select { width: auto; max-width: 100%; min-width: 200px; min-height: 44px; font-size: 13px; }
.catalog-count { color: var(--muted); font-size: 14px; }
.catalog-count strong { color: var(--ink); font-weight: 800; }
.empty-state { grid-column: 1 / -1; padding: 50px 24px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; color: var(--muted); }
.empty-state h2, .empty-state h3 { margin-bottom: 12px; color: var(--ink); }
.empty-state .btn { margin-top: 18px; }

/* Footer and overlays */
.site-footer { padding-block: 54px 24px; border-top: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 38px; }
.footer-grid > * { min-width: 0; }
.footer-grid h3, .footer-grid h4 { margin-bottom: 18px; font-size: 14px; letter-spacing: 0; }
.footer-grid p { max-width: 34ch; margin-top: 17px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.footer-grid ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-grid a:not(.brand):not(.btn) { display: inline-block; color: var(--muted); font-size: 12px; text-decoration: none; line-height: 1.7; }
.footer-grid a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 14px 28px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.7; }
.footer-bottom p { max-width: 85ch; }
.footer-bottom a { color: inherit; }
.mobile-bar { display: none; }
.compare-bar { position: fixed; bottom: 22px; left: 50%; z-index: 55; display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(720px, calc(100% - 32px)); padding: 15px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink); color: white; box-shadow: var(--shadow-hover); transform: translateX(-50%); font-size: 13px; }
.compare-bar .btn-outline { color: white; border-color: #8196a9; }
.compare-bar button { flex-shrink: 0; }
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; margin: 0; padding: 24px; width: 100%; max-width: none; height: 100%; max-height: none; border: 0; background: rgb(7 24 39 / 64%); overflow-y: auto; overscroll-behavior: contain; }
.modal[open], .modal.is-open, .modal.active, .modal[aria-hidden='false'] { display: flex; }
.modal::backdrop { background: rgb(7 24 39 / 64%); }
dialog.modal[open] { background: transparent; }
.modal-panel { position: relative; width: 100%; max-width: 560px; max-height: calc(100dvh - 48px); overflow-y: auto; padding: 36px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; color: var(--ink); box-shadow: 0 24px 80px rgb(7 24 39 / 25%); }
.modal-panel h2 { padding-right: 30px; margin-bottom: 14px; font-size: 28px; }
.modal-panel > p { margin-bottom: 24px; color: var(--muted); font-size: 14px; }
.modal-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-btn); background: var(--surface); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }
.modal-close:hover { background: var(--surface-2); }
.search-panel { width: 100%; max-width: 720px; min-width: 0; }
.search-panel input[type='search'] { padding-block: 16px; min-height: 56px; }
.search-results { display: grid; gap: 8px; max-height: min(56dvh, 520px); margin-top: 18px; overflow-y: auto; overscroll-behavior: contain; }
.search-result { display: block; padding: 15px 17px; border: 1px solid var(--line); border-radius: var(--radius-btn); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; }
.search-result small, .search-result p { display: block; margin: 5px 0 0; color: var(--muted); font-size: 12px; font-weight: 400; }
.search-result:hover { border-color: var(--accent); background: var(--accent-soft); }
.search-result mark { background: #fff0b2; color: var(--ink); }

@media (hover: hover) {
  .property-card:hover, .scenario-card:hover { border-color: #a9c0d6; box-shadow: var(--shadow-hover); }
}
/* Actual assembled template: a lead panel can itself be the right-hand form. */
.lead-panel:has(> h3) { display: block; padding: 30px; background: white; color: var(--ink); }
.lead-panel:has(> h3) > form { padding: 0; border-radius: 0; }
.lead-panel:has(> h3) > h3 { margin: 0 0 24px; }
.hero-home .hero-badge { top: auto; bottom: 18px; }
.eyebrow:has(.accent-dot)::before { display: none; }
dialog.modal { inset: 0; width: min(960px, calc(100% - 32px)); height: fit-content; max-height: calc(100dvh - 40px); margin: auto; padding: 0; background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); }
dialog.modal.search-panel { width: min(720px, calc(100% - 32px)); max-width: 720px; }
dialog.modal[open] { background: white; }
dialog.modal .modal-panel { width: 100%; max-width: none; max-height: calc(100dvh - 44px); border: 0; box-shadow: none; }
@media (max-width: 960px) {
  .split-grid:has(> .lead-panel) { grid-template-columns: minmax(0, 1fr); }
  .site-header:has(.menu-toggle[aria-expanded='false']) .main-nav { display: none; }
  .site-header:has(.menu-toggle[aria-expanded='true']) .main-nav { display: flex; flex-wrap: wrap; overflow: visible; }
}
@media (max-width: 760px) {
  .mobile-bar > a:not(.btn) { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-btn); color: var(--ink); font-size: 12px; font-weight: 800; line-height: 1.4; text-align: center; text-decoration: none; }
  .mobile-bar > a:not(.btn):last-child { background: var(--primary); border-color: var(--primary); color: white; }
  .lead-panel:has(> h3) { padding: 24px 20px; }
  .hero-home .hero-badge { bottom: 12px; }
}
@media (max-width: 1180px) {
  .header-inner { gap: 18px; }
  .main-nav { gap: 15px; }
  .main-nav a { font-size: 12px; }
  .brand { font-size: 17px; }
  .header-actions .btn { padding-inline: 15px; font-size: 12px; }
}
@media (max-width: 1100px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .hero-grid { gap: 30px; }
  .hero-title { font-size: 40px; }
  .hero-visual img { min-height: 360px; }
  .filter-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-fields > .btn { grid-column: 1 / -1; }
  .scenario-card { padding: 23px; }
  .feature-grid, .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 30px; }
  .lead-panel { gap: 28px; }
  .lead-panel > form, .lead-panel > .form-grid { padding: 24px; }
}
@media (max-width: 960px) {
  :root { --header-height: 76px; }
  .header-inner { flex-wrap: wrap; gap: 10px 16px; }
  .menu-toggle { display: inline-grid; }
  .main-nav { order: 5; width: 100%; margin: 0; gap: 20px; overflow-x: auto; padding-bottom: 2px; }
  .main-nav a { flex-shrink: 0; font-size: 13px; }
  .main-nav[aria-hidden='true'] { display: none; }
  .main-nav.is-open, .main-nav.active, .main-nav[aria-hidden='false'] { display: flex; }
  .hero-title { font-size: 36px; }
  .hero-lead { font-size: 15px; }
  .hero-visual img { min-height: 340px; }
  .hero-actions .btn { padding-inline: 16px; font-size: 13px; }
  .split-grid { gap: 30px; }
  .scenario-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.2fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; --section-space: 48px; --header-height: 72px; }
  body:has(.mobile-bar) { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .topbar .wrap { min-height: 30px; font-size: 10px; }
  .header-inner { padding-block: 12px; gap: 10px; }
  .brand { font-size: 16px; gap: 9px; }
  .brand-mark { flex-basis: 36px; width: 36px; height: 36px; font-size: 14px; }
  .brand-sub { max-width: 190px; margin-top: 4px; font-size: 10px; }
  .header-actions { gap: 7px; }
  .header-actions > .btn, .header-actions > a:not(.btn) { display: none; }
  .main-nav { gap: 19px; }
  .hero, .hero-home { padding-block: 30px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-copy { padding: 0; }
  .eyebrow, .section-kicker { margin-bottom: 13px; font-size: 11px; }
  .hero-title { max-width: 21ch; font-size: clamp(32px, 6.4vw, 43px); line-height: 1.13; }
  .hero-lead { max-width: 58ch; margin-top: 18px; font-size: 15px; line-height: 1.7; }
  .hero-actions { margin-top: 22px; gap: 10px; }
  .hero-points { margin-top: 20px; gap: 10px 18px; font-size: 11px; }
  .hero-visual img { min-height: 0; height: auto; aspect-ratio: 1.45; }
  .hero-badge { top: 12px; left: 12px; font-size: 11px; }
  .quick-filter { margin-top: 26px; padding: 20px; }
  .filter-fields { gap: 14px 12px; }
  .section-head { margin-bottom: 26px; gap: 14px; }
  .section-title { max-width: 100%; font-size: 29px; }
  .section-lead { margin-top: 13px; font-size: 14px; }
  .card-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .card-media { aspect-ratio: 1.5; }
  .card-body { gap: 10px; padding: 20px; }
  .card-title { font-size: 19px; }
  .card-price { font-size: 26px; }
  .card-actions .btn { font-size: 13px; min-height: 48px; }
  .card-location, .card-meta { font-size: 13px; }
  .split-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .editorial-image img, img.editorial-image { aspect-ratio: 1.4; }
  .feature-grid { gap: 28px 20px; }
  .feature-item { padding-left: 15px; }
  .feature-number { font-size: 31px; }
  .feature-item h3, .feature-item > strong { font-size: 16px; }
  .steps-grid { gap: 14px; }
  .step { padding: 22px 18px; }
  .step::before { margin-bottom: 22px; }
  .step h3 { font-size: 17px; }
  .quiz { padding: 24px 20px; }
  .quiz-options { gap: 10px; }
  .quiz-option { padding: 14px; font-size: 13px; }
  .lead-panel { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; gap: 26px; }
  .lead-panel > form, .lead-panel > .form-grid { padding: 22px 18px; }
  .lead-aside h2 { font-size: 30px; }
  .lead-aside p, .lead-aside li { font-size: 14px; }
  .faq-list details { padding-inline: 19px; }
  .faq-list summary { font-size: 15px; }
  .page-hero { padding-block: 20px 30px; }
  .page-hero h1 { font-size: 33px; }
  .page-hero p { font-size: 15px; }
  .breadcrumbs { padding-block: 16px; font-size: 11px; }
  .page-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-block: 32px 48px; }
  .toc { position: static; }
  .article { font-size: 15px; line-height: 1.85; }
  .article h2 { margin-top: 32px; font-size: 27px; }
  .article h3 { font-size: 21px; }
  .article blockquote { padding: 20px; }
  .data-table th, .data-table td, .article th, .article td { padding: 12px 14px; font-size: 13px; }
  .site-footer { padding-block: 40px 24px; }
  .footer-bottom { margin-top: 30px; }
  .mobile-bar { position: fixed; inset: auto 0 0; z-index: 60; display: flex; align-items: stretch; gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: white; border-top: 1px solid var(--line); box-shadow: 0 -5px 20px rgb(18 38 58 / 5%); }
  .mobile-bar > * { flex: 1; min-width: 0; }
  .mobile-bar .btn { min-height: 48px; padding-inline: 12px; font-size: 12px; }
  .compare-bar { bottom: calc(86px + env(safe-area-inset-bottom)); gap: 12px; padding: 12px; font-size: 12px; }
  .modal { padding: 16px; }
  .modal-panel { max-height: calc(100dvh - 32px); padding: 28px 22px; }
  .modal-panel h2 { font-size: 25px; }
}
@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .brand { font-size: 15px; }
  .brand-sub { font-size: 9px; }
  .header-actions > button:not(.btn), .menu-toggle { width: 40px; height: 44px; flex-basis: 40px; }
  .header-actions { gap: 4px; }
  .hero-title { font-size: 34px; }
  .hero-actions .btn { width: 100%; }
  .hero-visual img { aspect-ratio: 1.2; }
  .quick-filter { padding: 18px 16px; }
  .filter-fields { grid-template-columns: minmax(0, 1fr); }
  .filter-fields > .btn { width: 100%; }
  .scenario-grid, .related-grid { grid-template-columns: minmax(0, 1fr); }
  .scenario-card { padding: 24px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .feature-item { padding-block: 2px; }
  .feature-number { margin-bottom: 10px; }
  .steps-grid { grid-template-columns: minmax(0, 1fr); }
  .step { padding: 24px; }
  .step::before { margin-bottom: 18px; }
  .quiz-options, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .quiz-actions .btn { min-width: 0; padding-inline: 17px; font-size: 13px; }
  .lead-panel { padding: 26px 18px; }
  .lead-panel > form, .lead-panel > .form-grid { padding: 20px 16px; }
  .catalog-tools { align-items: stretch; gap: 12px; }
  .catalog-tools select { width: 100%; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-grid p { max-width: 44ch; }
  .compare-bar { flex-wrap: wrap; }
  .compare-bar .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .btn, .tag, .property-card, .quiz-option, .favorite-btn { border: 1px solid ButtonText; }
  .hero-points > *::before, .quiz-progress > span { background: CanvasText; }
}
@media print {
  .topbar, .site-header, .mobile-bar, .compare-bar, .modal, .hero-actions, .quick-filter, .quiz, .lead-panel, .favorite-btn, .toc { display: none !important; }
  body { padding: 0 !important; color: black; background: white; font-size: 11pt; }
  .wrap { max-width: none; padding: 0; }
  .section, .page-layout { padding-block: 20px; }
  .page-layout, .hero-grid { display: block; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .property-card, .step, .faq-list details { break-inside: avoid; box-shadow: none; }
  .hero-visual { max-width: 60%; margin: 20px auto; }
  a { color: inherit; }
}

/* UI audit 2026-11-17: consistent mobile touch targets. */
@media(max-width:480px){
  .header-actions > button:not(.btn), .menu-toggle { width:44px; flex-basis:44px; }
}
body:has(dialog[open]) { overflow:hidden; }
