/* Domselect design system — expert-comparison-desk v1.0.0
   Tokens from DESIGN.md; fonts: IBM Plex Sans, PT Root UI, IBM Plex Mono */

@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
    --canvas: #F5F7FA;
    --surface: #FFFFFF;
    --ink: #1B2A3D;
    --muted: #6B7A8D;
    --line: #D3DBE5;
    --primary: #224B7A;
    --signal: #3CB371;
    --accent: #3CB371;

    --primary-strong: #1A3A5E;
    --sky: #4A76A8;
    --mint: #D7E7F3;
    --clay: #3CB371;
    --clay-soft: #E4F5EC;

    --paper: #FFFFFF;
    --paper-2: #F5F7FA;
    --surface-2: #F5F7FA;
    --bg: #F5F7FA;
    --bg-2: #F5F7FA;
    --header-bg: #224B7A;
    --ink-2: #33455C;
    --ink-3: #6B7A8D;
    --ink-4: #8D9AAB;
    --line-2: #D3DBE5;
    --brand: #224B7A;
    --brand-ink: #1A3A5E;
    --brand-soft: #E3EDF6;
    --accent-ink: #1F7A4D;
    --accent-soft: #E4F5EC;
    --ok: #3CB371;
    --ok-soft: #E4F5EC;
    --ok-line: rgba(60,179,113,.35);
    --warn: #956214;
    --warn-soft: #FDF3DD;
    --danger-soft: #FBEDEF;
    --on-primary: #FFFFFF;
    --danger: #B6344D;
    --on-dark: rgba(255,255,255,.78);
    --on-dark-2: rgba(255,255,255,.58);

    --radius: 6px;
    --radius-lg: 8px;
    --radius-card: 8px;
    --space-compact: 6px;
    --space-content: 14px;
    --space-section: clamp(48px, 6vw, 82px);
    --shadow-sm: 0 1px 2px rgba(27,42,61,.07);
    --shadow: 0 4px 14px rgba(27,42,61,.09);
    --shadow-lg: 0 10px 28px rgba(27,42,61,.12);

    --font-sans: 'Onest', 'Segoe UI', Arial, sans-serif;
    --font-display: 'Onest', 'Segoe UI', Arial, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

    --target: 44px;

    scrollbar-color: var(--brand) var(--line);
    scrollbar-width: thin;
    font-family: var(--font-sans);
}

*, *::before, *::after { box-sizing: border-box; }
*:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--brand-ink); }
h1, h2, h3, h4 { font-family: var(--font-sans); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin: 0; }
p { margin: 0; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.icon { display: inline-block; vertical-align: -0.14em; flex-shrink: 0; }

.site-header { position: sticky; top: 0; z-index: 30; background: var(--canvas); border-bottom: 1px solid var(--line); }
.site-header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.site-header .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 36px; height: 36px; border-radius: 6px; background: var(--primary); color: var(--canvas); display: grid; place-items: center; font-weight: 800; font-family: var(--font-sans); font-size: 1.05rem; box-shadow: none; flex-shrink: 0; }
.brand-logo { width: 44px; height: 34px; flex-shrink: 0; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.site-header .brand-name { font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1; color: var(--ink); letter-spacing: -.01em; }
.brand-sub { font-size: 11px; color: var(--muted); margin-top: 3px; }
.site-header .city-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 4px; background: var(--brand-soft); color: var(--ink-2); font-size: .82rem; font-weight: 600; }
.site-header .city-chip .icon { color: var(--sky); font-size: 1em; }
.main-nav { display: flex; align-items: center; gap: 0; margin-left: 14px; min-height: 64px; }
.site-header .main-nav a { position: relative; padding: 0 12px; min-height: var(--target); display: inline-flex; align-items: center; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .92rem; transition: color .15s; }
.site-header .main-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 10px; height: 3px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: center; transition: transform .2s ease; }
.site-header .main-nav a:hover { color: var(--brand-ink); }
.site-header .main-nav a:hover::after { transform: scaleX(1); }
.header-spacer { flex: 1; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-icon-link { display: inline-grid; place-items: center; width: var(--target); height: var(--target); border-radius: 6px; color: var(--ink-2); text-decoration: none; transition: background .15s, color .15s; font-size: 1.15rem; }
.header-icon-link:hover { background: var(--surface-2); color: var(--brand-ink); }
.menu-btn { display: none; border: 1px solid var(--line-2); background: var(--canvas); color: var(--ink); border-radius: 6px; width: var(--target); height: var(--target); cursor: pointer; place-items: center; font-size: 1.15rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--target); padding: 0 16px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--canvas); color: var(--ink); text-decoration: none; font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; transition: background .15s, border-color .15s, transform .12s, box-shadow .15s; }
.btn .icon { font-size: 1.18em; }
.btn:hover { background: var(--surface); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--canvas); }
.btn.primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
.btn.cta { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn.cta:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--on-primary); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: var(--on-primary); }
.btn.sm { min-height: var(--target); padding: 0 12px; font-size: .86rem; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: progress; }

.section { padding: var(--space-section) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.section-title { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
.section-sub { color: var(--muted); margin-top: 5px; font-size: .95rem; }
.section-link { color: var(--brand-ink); text-decoration: none; font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; min-height: var(--target); }
.section-link:hover { color: var(--brand); }
.section-link .icon { font-size: 1em; }

.grid { display: grid; gap: var(--space-content); }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.metro-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sky); flex-shrink: 0; display: inline-block; vertical-align: middle; }
.building-card-prices { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.price-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.price-cell span { color: var(--ink-4); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.price-cell strong { font-size: 1.02rem; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
.building-card-prices .price-cell:first-child strong { color: var(--primary); }

.dossier-facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 16px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.fact { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fact-wide { grid-column: 1 / -1; }
.fact-label { color: var(--ink-4); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.fact-value { color: var(--ink); font-size: 1.02rem; font-weight: 800; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.fact-value.brand { color: var(--brand); }
.fact-none { color: var(--ink-4); font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.fav-btn { width: var(--target); height: var(--target); display: inline-grid; place-items: center; border: 0; border-radius: 6px; background: rgba(27,42,61,.72); color: var(--on-primary); cursor: pointer; font-size: 1.05rem; transition: background .15s, color .15s; }
.fav-btn:hover { background: rgba(27,42,61,.88); color: var(--accent); }
.fav-btn.active { background: var(--accent); color: var(--ink); }
.fav-btn.active:hover { background: var(--accent-ink); color: var(--on-primary); }
.fav-btn.compact { width: var(--target); height: var(--target); font-size: .92rem; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: .76rem; font-weight: 600; }
.badge .icon { font-size: 1.05em; }
.badge.ok { border-color: rgba(34,75,122,.35); background: var(--ok-soft); color: var(--ok); }
.badge.brand { border-color: rgba(34,75,122,.35); background: var(--brand-soft); color: var(--brand-ink); }
.badge.warn { border-color: rgba(149,98,20,.35); background: var(--warn-soft); color: var(--warn); }

.pill-group { display: flex; flex-wrap: wrap; gap: var(--space-compact); }
.pill { display: inline-flex; align-items: center; min-height: var(--target); padding: 0 13px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--canvas); color: var(--ink-2); font-size: .86rem; font-weight: 600; cursor: pointer; user-select: none; transition: border-color .15s, background .15s, color .15s; }
.pill:hover { border-color: var(--primary); }
.pill input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pill.is-active { background: var(--primary); border-color: var(--primary); color: var(--canvas); }
.pill:has(input:checked) { background: var(--primary); border-color: var(--primary); color: var(--canvas); }
.pill:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .8rem; font-weight: 700; color: var(--ink-2); }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], select, textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 4px; padding: 11px 13px; background: var(--canvas); font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: var(--ink-4); }
input:focus, select:focus, textarea:focus { border-color: var(--primary); outline: 0; box-shadow: 0 0 0 3px rgba(34,75,122,.14); }

.filter-panel { background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm); }
.filter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; align-items: end; }
.filter-bar .field { min-width: 180px; }
.filter-bar .btn { min-height: var(--target); }
.filter-sort { display: flex; flex-direction: column; gap: 3px; }
.filter-sort label { font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.filter-sort .sort-select { min-width: 220px; }

.results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.results-count { color: var(--muted); font-size: .92rem; }
.results-count strong { color: var(--ink); font-weight: 800; }
.sort-select { min-width: 230px; }

.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.pager a, .pager span { min-width: var(--target); min-height: var(--target); display: inline-flex; align-items: center; justify-content: center; padding: 0 11px; border: 1px solid var(--line); border-radius: 4px; background: var(--canvas); color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: .9rem; transition: border-color .15s, background .15s; }
.pager a:hover { border-color: var(--primary); background: var(--brand-soft); color: var(--brand-ink); }
.pager .active { background: var(--primary); border-color: var(--primary); color: var(--canvas); }
.pager .disabled { opacity: .4; pointer-events: none; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--muted); font-size: .84rem; }
.crumbs a { display: inline-flex; align-items: center; min-height: var(--target); color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand-ink); }
.crumbs .sep { color: var(--ink-4); }
.crumbs .here { color: var(--ink); font-weight: 600; }

.hero { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,.14); background: linear-gradient(150deg, var(--primary-strong) 0%, var(--primary) 70%, var(--sky) 100%); padding: 32px; box-shadow: var(--shadow); color: var(--canvas); }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; color: var(--canvas); }
.hero p { margin-top: 12px; max-width: 640px; color: var(--on-dark); font-size: 1.05rem; line-height: 1.55; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 4px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); color: var(--on-primary); font-size: .76rem; font-weight: 700; margin-bottom: 14px; }
.hero-eyebrow .icon { color: var(--mint); }
.hero .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.hero .btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--on-primary); }
.hero .btn:not(.primary) { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: var(--canvas); }
.hero .btn:not(.primary):hover { background: rgba(255,255,255,.2); }

.hero-search { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 6px; padding: 12px; margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; max-width: 760px; }
.hero-search .pill { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.28); color: var(--canvas); border-radius: 4px; }
.hero-search .pill:hover { border-color: rgba(255,255,255,.55); }
.hero-search .pill:has(input:checked) { background: var(--primary); border-color: var(--primary); }
.hero-search .hero-search-go { margin-left: auto; }

.range-field { display: flex; flex-direction: column; gap: 10px; }
.range-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.range-val { font-weight: 800; font-size: 1.12rem; color: var(--ink); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.range-val .unit { color: var(--muted); font-size: .85rem; font-weight: 600; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 4px; background: var(--line); padding: 0; border: 0; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); border: 3px solid var(--canvas); box-shadow: 0 2px 8px rgba(27,42,61,.35); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--primary); border: 3px solid var(--canvas); box-shadow: 0 2px 8px rgba(27,42,61,.35); cursor: pointer; }
input[type="range"]:focus { outline: 0; }
input[type="range"]:focus::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(34,75,122,.18); }

.calc-result { background: linear-gradient(150deg, var(--header-bg) 0%, var(--primary) 100%); border-radius: var(--radius-lg); padding: 24px; color: var(--canvas); position: relative; overflow: hidden; }
.calc-result::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 86% 16%, rgba(60,179,113,.22), transparent 52%); pointer-events: none; }
.calc-result > * { position: relative; }
.calc-result-label { color: var(--on-dark-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.calc-result-num { font-family: var(--font-mono); font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 700; line-height: 1; letter-spacing: -.02em; margin-top: 8px; color: var(--canvas); font-variant-numeric: tabular-nums; }
.calc-result-sub { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); }
.calc-result-sub .calc-result-label { color: var(--on-dark-2); }
.calc-result-sub strong { display: block; font-size: 1.25rem; font-weight: 800; margin-top: 4px; color: var(--canvas); font-variant-numeric: tabular-nums; }

.bank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.bank-logo { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--canvas); font-weight: 800; color: var(--ink); font-size: 1.02rem; transition: border-color .15s, box-shadow .15s; }
.bank-logo:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.bank-logo .bank-dot { width: 32px; height: 32px; border-radius: 4px; display: grid; place-items: center; color: #fff; font-weight: 800; flex-shrink: 0; }

.scenario-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.scenario-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--canvas); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s, transform .15s; }
.scenario-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.scenario-ico { width: 40px; height: 40px; border-radius: 4px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-size: 1.4rem; }
.scenario-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; }
.scenario-rate { color: var(--brand-ink); font-weight: 800; font-size: 1.25rem; font-family: var(--font-mono); margin-top: auto; font-variant-numeric: tabular-nums; }
.scenario-rate .small { color: var(--muted); font-size: .82rem; font-weight: 600; }
.scenario-card p { color: var(--muted); font-size: .9rem; line-height: 1.5; }

.panel { background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm); }
.panel h2 { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 14px; font-weight: 700; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 18px; }
.kv-row { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv-row span { color: var(--ink-4); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.kv-row strong { font-weight: 700; font-variant-numeric: tabular-nums; }

.alert { border: 1px solid rgba(182,52,77,.4); background: var(--danger-soft); color: var(--danger); border-radius: 4px; padding: 13px 16px; margin-bottom: 16px; }
.alert.ok { border-color: rgba(34,75,122,.35); background: var(--ok-soft); color: var(--ok); }

.empty { padding: 44px; text-align: center; color: var(--muted); }
.empty h3 { margin-bottom: 8px; }

.footer { margin-top: 48px; border-top: 1px solid rgba(255,255,255,.12); background: var(--header-bg); color: var(--on-dark); }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 26px; padding-top: 38px; padding-bottom: 24px; }
.footer .brand { color: var(--on-primary); min-height: 0; padding: 0; }
.footer .brand-name { color: var(--on-primary); font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.footer .brand-sub { color: var(--on-dark-2); }
.footer .brand-mark { background: var(--primary); box-shadow: none; }
.footer h4 { font-family: var(--font-display); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 12px; font-weight: 700; }
.footer a { display: flex; align-items: center; min-height: var(--target); width: fit-content; color: var(--on-dark); text-decoration: none; font-size: .92rem; padding: 6px 0; transition: color .15s; }
.footer a:hover { color: var(--canvas); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.16); padding: 16px 0; color: var(--on-dark-2); font-size: .84rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.icon-item { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-2); color: var(--ink-2); font-size: .9rem; }
.icon-item .dot { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 4px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; }
.icon-item .dot .icon { font-size: 1.05em; }

.alpha-index { columns: 3; column-gap: 26px; }
.alpha-index a { display: block; color: var(--ink-2); text-decoration: none; padding: 4px 0; font-size: .92rem; break-inside: avoid; transition: color .15s; }
.alpha-index a:hover { color: var(--brand-ink); }
.alpha-letter { font-weight: 700; color: var(--primary); font-family: var(--font-display); margin: 12px 0 4px; }

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 168px; gap: 10px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; cursor: zoom-in; }
.gallery .g-main { grid-row: span 2; }
.gallery a { display: block; height: 100%; border-radius: 4px; overflow: hidden; }
.gallery a img { cursor: pointer; }
.gallery a:focus-visible { outline-offset: -3px; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { padding: 12px 16px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .93rem; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--primary); border-color: var(--primary); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.two-col { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 22px; align-items: start; }
.sticky-side { position: sticky; top: 80px; }

.htmx-indicator { display: none; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { display: inline-flex; }

.cover { position: relative; overflow: hidden; border-radius: var(--radius-card); background: linear-gradient(135deg, var(--paper-2), var(--line)); }
.cover > img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cover-media-zoom:hover > img { transform: scale(1.05); }
.cover-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,42,61,.05) 0%, rgba(27,42,61,0) 38%, rgba(27,42,61,.62) 100%); }
.cover-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cover-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 22px; color: var(--canvas); }
.cover-bottom h1, .cover-bottom h2 { color: var(--canvas); }
.cover-bottom .crumbs a, .cover-bottom .crumbs .here { color: rgba(255,255,255,.9); }
.cover-bottom .crumbs .sep { color: rgba(255,255,255,.5); }
.cover-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cover-badges .badge { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: var(--canvas); }
.cover-badges .badge.brand { background: var(--primary); border-color: var(--primary); }
.cover-badges .badge.ok { background: var(--ok); border-color: var(--ok); color: #fff; }

.page-hero { background: linear-gradient(135deg, var(--primary-strong), var(--primary)); color: var(--canvas); border-radius: var(--radius-card); padding: 28px; margin-bottom: 22px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 88% 18%, rgba(255,255,255,.08), transparent 48%); pointer-events: none; }
.page-hero > * { position: relative; }
.page-hero h1 { color: var(--canvas); font-family: var(--font-display); font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.page-hero p { color: var(--on-dark); margin-top: 10px; max-width: 640px; line-height: 1.55; }
.page-hero .crumbs { margin-bottom: 14px; color: var(--on-dark-2); }
.page-hero .crumbs a, .page-hero .crumbs .here { color: rgba(255,255,255,.85); }
.page-hero .crumbs .sep { color: rgba(255,255,255,.45); }

.stat-card { background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 8px; }
.stat-label { color: var(--ink-4); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.stat-num { font-family: var(--font-mono); font-size: 2rem; font-weight: 700; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-num.brand { color: var(--primary); }
.stat-num.accent { color: var(--accent-ink); }

.quick-link { display: flex; align-items: center; gap: 13px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); min-height: 104px; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; box-shadow: var(--shadow-sm); }
.quick-link:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.quick-link-ico { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 4px; background: var(--canvas); color: var(--primary); font-size: 1.4rem; flex-shrink: 0; }
.quick-link strong { font-size: .98rem; font-weight: 700; }

.doc-link { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; color: inherit; transition: border-color .15s, background .15s; }
.doc-link:hover { border-color: var(--primary); background: var(--brand-soft); }
.doc-link .icon { color: var(--primary); font-size: 1.3em; }

.layout-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s, transform .15s; }
.layout-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.layout-card-media { aspect-ratio: 4/3; background: var(--surface-2); display: grid; place-items: center; }
.layout-card-media img { width: 100%; height: 100%; object-fit: contain; }
.layout-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.layout-card-body strong { font-size: 1.02rem; }
.layout-card-body .price { color: var(--primary); font-weight: 800; font-size: 1.08rem; font-variant-numeric: tabular-nums; }
.layout-card-body .meta { color: var(--muted); font-size: .84rem; }

.progress-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.progress-grid figure { margin: 0; }
.progress-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; }
.progress-grid figcaption { color: var(--muted); font-size: .84rem; margin-top: 8px; }
.progress-grid a { display: block; border-radius: 4px; overflow: hidden; }
.progress-grid a img { cursor: pointer; }
.progress-grid a:focus-visible { outline-offset: -3px; }

.article-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s, transform .15s; }
.article-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.article-card-media { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--paper-2), var(--line)); overflow: hidden; }
.article-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.article-card:hover .article-card-media img { transform: scale(1.04); }
.article-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.article-card-date { color: var(--ink-4); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.article-card-title { font-size: 1.08rem; line-height: 1.25; font-weight: 700; }
.article-card-summary { color: var(--muted); font-size: .9rem; line-height: 1.5; }

.developer-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--canvas); box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.developer-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.developer-card-head { display: flex; align-items: center; gap: 14px; }
.developer-logo { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 4px; background: var(--primary); color: var(--canvas); font-weight: 800; font-family: var(--font-sans); font-size: 1.5rem; flex-shrink: 0; overflow: hidden; }
.developer-logo.has-image { background: var(--canvas); border: 1px solid var(--line); padding: 7px; }
.developer-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.developer-card strong { font-size: 1.08rem; display: block; }
.developer-card .dev-meta { color: var(--ink-4); font-size: .84rem; }
.developer-card .dev-count { margin-top: auto; color: var(--brand-ink); font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }

/* ── Developer registry table ── */
.dev-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.dev-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.dev-table th,
.dev-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.dev-table thead th { background: var(--surface-2); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-4); font-weight: 700; white-space: nowrap; }
.dev-table th.num,
.dev-table td.num { text-align: right; }
.dev-table tbody tr:last-child td { border-bottom: 0; }
.dev-table tbody tr:hover td { background: var(--surface-2); }
.dev-table tbody tr:focus-within td { background: var(--brand-soft); }
.dev-table-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-weight: 600; }
.dev-table-link:hover .dev-table-name { color: var(--brand-ink); }
.dev-table-name { transition: color .15s; }
.dev-table .fact-value.brand { font-size: .95rem; font-weight: 700; color: var(--brand-ink); }
.dev-table .fact-none { color: var(--ink-4); }

@media (max-width: 600px) {
    .dev-table th,
    .dev-table td { padding: 10px 12px; font-size: .88rem; }
}

.auth-card { max-width: 460px; margin: 0 auto; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.7rem; }
.auth-divider { height: 1px; background: var(--line); margin: 20px 0; }

.prose { color: var(--ink-2); line-height: 1.7; font-size: 1rem; }
.prose p { margin-top: 14px; }
.prose p:first-child { margin-top: 0; }
.prose h2, .prose h3 { color: var(--ink); line-height: 1.25; margin-top: 28px; margin-bottom: 12px; }
.prose h2 { font-family: var(--font-display); font-size: 1.45rem; }
.prose h3 { font-family: var(--font-display); font-size: 1.22rem; }
.prose ul, .prose ol { margin: 14px 0 0 22px; padding: 0; }
.prose li { margin-top: 8px; }
.prose a { color: var(--brand-ink); font-weight: 700; }
.prose img { max-width: 100%; height: auto; border-radius: 4px; margin-top: 16px; }
.prose blockquote { margin: 18px 0 0; padding: 14px 18px; border-left: 4px solid var(--primary); background: var(--brand-soft); border-radius: 0 4px 4px 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }

/* ── SEO landings ── */
.landing-related { padding: 24px 0; }
.landing-related-list { display: flex; flex-wrap: wrap; gap: 8px; }
.landing-related-link { display: inline-flex; align-items: center; min-height: var(--target); padding: 0 16px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--surface); color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .92rem; transition: border-color .15s, color .15s; }
.landing-related-link:hover { border-color: var(--primary); color: var(--brand-ink); }

/* ── Flat search table ── */
.flat-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--canvas); box-shadow: var(--shadow-sm); }
.flat-table { width: 100%; border-collapse: collapse; min-width: 720px; font-variant-numeric: tabular-nums; }
.flat-th { text-align: left; padding: 11px 14px; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-4); font-weight: 700; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.flat-th-action { text-align: right; }
.flat-td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: .92rem; vertical-align: middle; }
.flat-td-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.flat-td-action { text-align: right; white-space: nowrap; }
.flat-building-link { font-weight: 700; color: var(--ink); text-decoration: none; display: block; line-height: 1.25; }
.flat-building-link:hover { color: var(--brand-ink); }
.flat-dev { display: block; color: var(--ink-4); font-size: .82rem; margin-top: 2px; }
.flat-price { font-weight: 700; color: var(--primary); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.flat-table tbody tr:last-child td { border-bottom: 0; }
.flat-table tbody tr:hover td { background: var(--surface-2); }

@media (max-width: 600px) {
    .flat-th, .flat-td { padding: 10px 12px; font-size: .86rem; }
    .flat-table { min-width: 600px; }
}

/* admin */
.admin-shell { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 24px; align-items: start; padding-top: 24px; }
.admin-side { position: sticky; top: 80px; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px; box-shadow: var(--shadow-sm); }
.admin-side-title { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-4); font-weight: 700; padding: 6px 10px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 4px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .92rem; transition: background .15s, color .15s; }
.admin-nav a .icon { font-size: 1.15em; color: var(--ink-4); }
.admin-nav a:hover { background: var(--surface-2); color: var(--ink); }
.admin-nav a.is-active { background: var(--brand-soft); color: var(--brand-ink); }
.admin-nav a.is-active .icon { color: var(--primary); }
.admin-main { min-width: 0; }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-head h1 { font-size: 1.5rem; font-weight: 700; }
.admin-head .sub { color: var(--muted); font-size: .94rem; margin-top: 4px; }

.admin-table { width: 100%; border-collapse: collapse; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); font-variant-numeric: tabular-nums; }
.admin-table thead th { text-align: left; padding: 11px 14px; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-4); font-weight: 700; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table tbody td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: .92rem; vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover td { background: var(--surface-2); }
.admin-table .col-actions { white-space: nowrap; text-align: right; }
.admin-table .col-actions a, .admin-table .col-actions button { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 4px; text-decoration: none; font-size: .84rem; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line); background: var(--canvas); transition: border-color .15s, color .15s; cursor: pointer; }
.admin-table .col-actions a:hover, .admin-table .col-actions button:hover { border-color: var(--primary); color: var(--brand-ink); }
.admin-table .col-actions .del { color: var(--danger); }
.admin-table .col-actions .del:hover { border-color: var(--danger); }
.row-title { font-weight: 700; color: var(--ink); }
.row-sub { color: var(--ink-4); font-size: .82rem; margin-top: 2px; }

.admin-form { display: grid; gap: 16px; }
.admin-form-section { background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.admin-form-section h2 { font-size: 1.1rem; margin-bottom: 14px; font-weight: 800; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.admin-form-grid .span-2 { grid-column: 1 / -1; }
.admin-form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.admin-form-actions .spacer { flex: 1; }
.admin-checkbox-row { display: flex; align-items: center; gap: 10px; }
.admin-checkbox-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }
.toggle-published { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 4px; font-size: .8rem; font-weight: 700; }
.toggle-published.on { background: var(--ok-soft); color: var(--ok); border: 1px solid var(--ok-line); }
.toggle-published.off { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.inquiry-card { display: grid; gap: 18px; }
.inquiry-card-section { background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.inquiry-card-section h2 { font-size: 1.05rem; margin-bottom: 12px; font-weight: 700; }
.inquiry-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.inquiry-dl dt { color: var(--ink-4); font-size: .86rem; font-weight: 600; }
.inquiry-dl dd { color: var(--ink); font-size: .92rem; margin: 0; }
.inquiry-dl dd a { color: var(--primary); text-decoration: none; }
.inquiry-dl dd a:hover { text-decoration: underline; }
/* end admin */

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.media-item { position: relative; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--surface-2); aspect-ratio: 4/3; }
.media-item img { width: 100%; height: 100%; object-fit: cover; }
.media-item .media-del { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 4px; background: rgba(27,42,61,.7); color: var(--canvas); border: 0; cursor: pointer; display: grid; place-items: center; }
.media-item .media-del:hover { background: var(--danger); }
.media-item .media-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 5px 8px; background: rgba(27,42,61,.66); color: var(--canvas); font-size: .76rem; }
.media-empty { grid-column: 1/-1; padding: 22px; text-align: center; color: var(--ink-4); border: 1px dashed var(--line-2); border-radius: 4px; font-size: .9rem; }

.upload-box { border: 1px dashed var(--line-2); border-radius: 4px; padding: 16px; background: var(--surface-2); display: flex; flex-direction: column; gap: 10px; }
.upload-box input[type="file"] { font-size: .86rem; }
.upload-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.upload-row .field { flex: 1; min-width: 160px; }

.dossier-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.dossier-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--canvas); color: var(--ink-2); font-size: .84rem; font-weight: 600; text-decoration: none; transition: border-color .15s, color .15s; }
.dossier-nav a:hover { border-color: var(--brand); color: var(--brand-ink); }
.dossier-facts-page { padding-top: 14px; gap: 12px 20px; }
.dossier-facts-page .fact-value { font-size: 1.12rem; }
.dossier-facts-page .fact-value.brand { font-size: 1.3rem; }
.plan-empty { display: grid; place-items: center; min-height: 220px; padding: 28px 24px; border: 1px dashed var(--line-2); border-radius: var(--radius-lg); background: var(--surface-2); color: var(--ink-2); text-align: center; }
.plan-empty p { max-width: 440px; }
.plan-empty-slim { min-height: 0; padding: 20px 22px; }
.dossier-actions { display: none; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }

/* ── Dossier layout (due diligence desk) ── */
.dossier-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 28px; align-items: start; }
.dossier-scale { position: sticky; top: 80px; }
.dossier-scale-title { font-family: var(--font-display); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-4); font-weight: 700; margin-bottom: 14px; }
.dossier-scale-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; counter-reset: dossier; }
.dossier-scale-step { counter-increment: dossier; }
.dossier-scale-step a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-left: 3px solid var(--line); text-decoration: none; color: inherit; transition: border-color .15s, background .15s; }
.dossier-scale-step a:hover { border-left-color: var(--primary); background: var(--brand-soft); border-radius: 0 4px 4px 0; }
.dossier-scale-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 4px; background: var(--line); color: var(--ink-4); font-weight: 700; font-size: .78rem; font-family: var(--font-mono); flex-shrink: 0; }
.dossier-scale-step a:hover .dossier-scale-num { background: var(--primary); color: var(--canvas); }
.dossier-scale-label { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.dossier-scale-step a:hover .dossier-scale-label { color: var(--brand-ink); font-weight: 700; }
.dossier-scale-stat { margin-top: 20px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--canvas); text-align: center; }
.dossier-scale-stat-num { display: block; font-family: var(--font-mono); font-size: 1.8rem; font-weight: 700; color: var(--primary); line-height: 1; font-variant-numeric: tabular-nums; }
.dossier-scale-stat-label { display: block; color: var(--muted); font-size: .78rem; margin-top: 4px; }

.dossier-main { display: flex; flex-direction: column; gap: 20px; }
.dossier-section { scroll-margin-top: 80px; }
.dossier-section h2 { display: flex; align-items: center; gap: 10px; }
.dossier-section-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 4px; background: var(--primary); color: var(--canvas); font-weight: 700; font-size: .78rem; font-family: var(--font-mono); flex-shrink: 0; }

@media (max-width: 900px) {
    .dossier-layout { grid-template-columns: 1fr; }
    .dossier-scale { position: static; }
    .dossier-scale-list { flex-direction: row; overflow-x: auto; gap: 0; }
    .dossier-scale-step a { border-left: none; border-bottom: 3px solid var(--line); border-radius: 0 0 4px 4px; padding: 10px 14px; min-width: 120px; flex-shrink: 0; }
    .dossier-scale-step a:hover { border-bottom-color: var(--primary); border-radius: 4px 4px 0 0; }
    .dossier-scale-stat { display: none; }
}

.focus-target:focus, .inquiry-done:focus { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: var(--radius-lg); }
#plans, #location, #about, #advantages, #gallery, #progress, #video, #docs, #developer, #inquiry-form-wrap, #passport { scroll-margin-top: 80px; }

.video-embed { margin-top: 14px; }

.field-error { margin-top: 4px; color: var(--danger); font-size: .82rem; font-weight: 600; }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.inquiry-done { display: flex; align-items: flex-start; gap: 12px; background: var(--ok-soft); border-color: rgba(34,75,122,.35); color: var(--ok); }
.inquiry-done-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 4px; background: var(--ok); color: var(--on-primary); flex-shrink: 0; font-size: 1.1rem; }
.inquiry-done p { margin-top: 4px; font-size: .92rem; }

.crit-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 16px; }
.crit-chip { padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--surface-2); color: var(--ink-2); font-size: .78rem; font-weight: 600; }

.search-status { margin-bottom: 16px; padding: 12px 16px; border: 1px solid rgba(149,98,20,.35); border-radius: 4px; background: var(--warn-soft); color: var(--warn); font-size: .92rem; font-weight: 600; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.filter-row input[type="number"] { min-width: 0; }

.confirm-dialog { width: min(520px,calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 0; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.confirm-dialog::backdrop { background: rgba(27,42,61,.6); backdrop-filter: blur(4px); }
.confirm-dialog-card { padding: 24px; }
.confirm-dialog-card h2 { margin: 0 0 10px; font-size: 1.5rem; }
.confirm-dialog-card p { margin: 0 0 22px; color: var(--ink-3); }
.confirm-dialog-card .btn-row { display: flex; justify-content: flex-end; gap: 10px; }

/* ── Budget picker ── */
.budget-form { background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.budget-form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.budget-form-grid .field-hint { color: var(--muted); font-size: .78rem; font-weight: 600; margin-top: 2px; }
.budget-form-actions { display: flex; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.budget-form-actions .btn { min-height: var(--target); }

.budget-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.budget-summary-card { background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 6px; }
.budget-summary-label { color: var(--ink-4); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.budget-summary-num { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; line-height: 1; letter-spacing: -.02em; color: var(--primary); font-variant-numeric: tabular-nums; }

.budget-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--canvas); box-shadow: var(--shadow-sm); }
.budget-table { width: 100%; border-collapse: collapse; min-width: 520px; font-variant-numeric: tabular-nums; }
.budget-table th,
.budget-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.budget-table thead th { background: var(--surface-2); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-4); font-weight: 700; white-space: nowrap; }
.budget-table tbody tr:last-child td { border-bottom: 0; }
.budget-table tbody tr:hover td { background: var(--surface-2); }
.budget-table .budget-link { color: var(--ink); text-decoration: none; font-weight: 700; transition: color .15s; }
.budget-table .budget-link:hover { color: var(--brand-ink); }
.budget-table .budget-price { font-weight: 700; }
.budget-table .budget-monthly { color: var(--primary); font-weight: 800; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
    .budget-form-grid { grid-template-columns: repeat(2, 1fr); }
    .budget-summary { grid-template-columns: 1fr; }
    .budget-table { min-width: 520px; }
}
@media (max-width: 480px) {
    .budget-form-grid { grid-template-columns: 1fr; }
    .budget-table th,
    .budget-table td { padding: 10px 12px; font-size: .88rem; }
}

.price-cell strong, .stat-num, .hero-stat-num, .calc-result-num, .calc-result-sub strong,
.kv-row strong, .range-val, .admin-table, .scenario-rate, .results-count strong,
.layout-card-body .price, .building-card-prices strong, .fact-value { font-variant-numeric: tabular-nums; }

.mobile-menu { display: flex; flex-direction: column; gap: 6px; padding-bottom: 16px; }
[x-cloak] { display: none !important; }

/* ── Responsive ── */
@media (max-width: 1080px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .filter-grid { grid-template-columns: repeat(2, 1fr); }
    .two-col { grid-template-columns: 1fr; }
    .sticky-side { position: static; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .alpha-index { columns: 2; }
    .progress-grid { grid-template-columns: repeat(2, 1fr); }
    .calc-result-sub { grid-template-columns: 1fr; }
    .calc-layout { grid-template-columns: 1fr !important; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-side { position: static; }
    .admin-nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
    .admin-nav a { padding: 8px 11px; font-size: .88rem; }
    .admin-form-grid { grid-template-columns: 1fr; }
    .dossier-actions { display: flex; }
}
@media (max-width: 760px) {
    .main-nav { display: none; }
    .grid-cards, .grid-3, .grid-4, .filter-grid, .form-row, .about-steps { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 132px; }
    .gallery .g-main { grid-row: span 1; }
    .alpha-index { columns: 1; }
    .footer-inner { grid-template-columns: 1fr; }
    .menu-btn { display: inline-grid; }
    .hero { padding: 24px; }
    .page-hero { padding: 24px; }
    .progress-grid { grid-template-columns: 1fr; }
    .cover-bottom { padding: 18px; }
    .hero-stats { flex-wrap: wrap; gap: 18px 22px; }
    .hero-stat { border-right: 0; margin-right: 0; padding-right: 0; }
    .site-header .city-chip { display: none; }
    .sort-select { min-width: 100%; }
    .wrap { padding: 0 18px; }
}
@media (max-width: 480px) {
    .wrap { padding: 0 16px; }
    .site-header-inner { gap: 10px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
    .header-actions { gap: 6px; flex-wrap: wrap; }
    .site-header .brand { gap: 8px; }
    .site-header .brand-name { font-size: 18px; }
    .hero { padding: 20px 16px; }
    .hero-search { padding: 12px; }
    .kv { grid-template-columns: 1fr; }
    .dossier-facts { gap: 8px 12px; }
    .dossier-facts-page { gap: 10px 12px; }
}
@media (max-width: 400px) {
    .filter-panel { padding: 16px 14px; }
    .about-steps { grid-template-columns: 1fr !important; }
}

/* ── Search comparison matrix ── */
.search-matrix-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--canvas); box-shadow: var(--shadow-sm); }
.search-matrix { width: 100%; border-collapse: collapse; min-width: 320px; font-variant-numeric: tabular-nums; }
.search-matrix th,
.search-matrix td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.search-matrix thead th { background: var(--surface-2); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-4); font-weight: 700; white-space: nowrap; position: sticky; top: 0; z-index: 2; }
.matrix-label-col { position: sticky; left: 0; z-index: 3; background: var(--surface-2); min-width: 120px; }
.matrix-building-col { min-width: 160px; text-align: center; }
.matrix-building-name { font-family: var(--font-sans); font-weight: 700; font-size: .95rem; color: var(--ink); text-decoration: none; line-height: 1.25; }
.matrix-building-name:hover { color: var(--brand-ink); }
.matrix-label { font-weight: 700; color: var(--ink-2); font-size: .86rem; white-space: nowrap; position: sticky; left: 0; background: var(--canvas); z-index: 1; border-right: 1px solid var(--line); }
.matrix-value { font-size: .92rem; color: var(--ink); text-align: center; }
.matrix-value .fact-none { color: var(--ink-4); font-weight: 600; }
.matrix-value .fact-value.brand { color: var(--brand); font-size: 1rem; }
.search-matrix tbody tr:last-child td { border-bottom: 0; }
.search-matrix tbody tr:hover td { background: var(--surface-2); }

.filter-disclosure-mobile { display: none; }

@media (max-width: 600px) {
    .matrix-label-col { min-width: 100px; }
    .matrix-building-col { min-width: 140px; }
    .search-matrix th,
    .search-matrix td { padding: 10px 12px; font-size: .86rem; }
    .filter-disclosure-mobile { display: flex; margin-bottom: 12px; }
    .filter-grid--collapsed { display: none; }
}

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

@media (forced-colors: active) {
    :root { scrollbar-color: auto; }
}

/* ── Expert comparison desk ── */
.desk-intro { padding: var(--space-content) 0 var(--space-content); }
.desk-intro-head { margin-bottom: var(--space-content); }
.desk-intro .section-title { font-family: var(--font-display); }
.desk-intro .section-sub { color: var(--muted); margin-top: 6px; max-width: 640px; font-size: .95rem; }

.desk-intro .hero-eyebrow { background: var(--brand-soft); border-color: var(--line); color: var(--brand-ink); }
.desk-intro .hero-eyebrow .icon { color: var(--primary); }
.desk-intro .hero-search { background: var(--surface); border-color: var(--line); }
.desk-intro .hero-search .pill { background: var(--surface); border-color: var(--line-2); color: var(--ink-2); }
.desk-intro .hero-search .pill:hover { border-color: var(--primary); }
.desk-intro .hero-search .pill:has(input:checked) { background: var(--primary); border-color: var(--primary); color: var(--canvas); }

.desk-layout > * { min-width: 0; }
.desk-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 0; }
.desk-scale { position: sticky; top: 80px; }
.desk-scale-title { font-family: var(--font-display); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-4); font-weight: 700; margin-bottom: 14px; }
.desk-scale-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.desk-scale-step { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-left: 3px solid var(--line); transition: border-color .15s, background .15s; }
.desk-scale-step.is-active { border-left-color: var(--primary); background: var(--brand-soft); border-radius: 0 4px 4px 0; }
.desk-scale-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 4px; background: var(--line); color: var(--ink-4); font-weight: 700; font-size: .78rem; font-family: var(--font-mono); flex-shrink: 0; }
.desk-scale-step.is-active .desk-scale-num { background: var(--primary); color: var(--canvas); }
.desk-scale-label { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.desk-scale-step.is-active .desk-scale-label { color: var(--brand-ink); font-weight: 700; }
.desk-scale-stat { margin-top: 20px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--canvas); text-align: center; }
.desk-scale-stat-num { display: block; font-family: var(--font-mono); font-size: 1.8rem; font-weight: 700; color: var(--primary); line-height: 1; font-variant-numeric: tabular-nums; }
.desk-scale-stat-label { display: block; color: var(--muted); font-size: .78rem; margin-top: 4px; }

.desk-modules { display: flex; flex-direction: column; gap: var(--space-section); }
.desk-module { }

@media (max-width: 900px) {
    .desk-layout { grid-template-columns: 1fr; }
    .desk-scale { position: static; }
    .desk-scale-list { flex-direction: row; overflow-x: auto; gap: 0; }
    .desk-scale-step { border-left: none; border-bottom: 3px solid var(--line); border-radius: 0 0 4px 4px; padding: 10px 14px; min-width: 120px; flex-shrink: 0; }
    .desk-scale-step.is-active { border-bottom-color: var(--primary); background: var(--brand-soft); border-radius: 4px 4px 0 0; }
}

/* ── Comparison matrix ── */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--canvas); box-shadow: var(--shadow-sm); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 320px; font-variant-numeric: tabular-nums; }
.compare-table th,
.compare-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table thead th { background: var(--surface-2); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-4); font-weight: 700; white-space: nowrap; position: sticky; top: 0; z-index: 2; }
.compare-label-col { position: sticky; left: 0; z-index: 3; background: var(--surface-2); min-width: 140px; }
.compare-building-col { min-width: 180px; text-align: center; }
.compare-building-name { font-family: var(--font-sans); font-weight: 700; font-size: 1rem; color: var(--ink); text-decoration: none; line-height: 1.25; }
.compare-building-name:hover { color: var(--brand-ink); }
.compare-label { font-weight: 700; color: var(--ink-2); font-size: .88rem; white-space: nowrap; position: sticky; left: 0; background: var(--canvas); z-index: 1; border-right: 1px solid var(--line); }
.compare-value { font-size: .95rem; color: var(--ink); text-align: center; }
.compare-value--price .fact-value.brand { font-size: 1.08rem; }
.compare-value .fact-none { color: var(--ink-4); font-weight: 600; }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody tr:hover td { background: var(--surface-2); }

.compare-link { display: inline-flex; align-items: center; gap: 6px; min-height: var(--target); padding: 0 12px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--canvas); color: var(--ink-2); font-size: .82rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: border-color .15s, color .15s; font: inherit; }
.compare-link:hover { border-color: var(--primary); color: var(--brand-ink); }
.compare-link .icon { font-size: 1.1em; }

@media (max-width: 600px) {
    .compare-label-col { min-width: 110px; }
    .compare-building-col { min-width: 150px; }
    .compare-table th,
    .compare-table td { padding: 10px 12px; font-size: .88rem; }
}

/* ── Account cabinet table ── */
.acct-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--canvas); box-shadow: var(--shadow-sm); }
.acct-table { width: 100%; border-collapse: collapse; min-width: 320px; font-variant-numeric: tabular-nums; }
.acct-table th,
.acct-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.acct-table thead th { background: var(--surface-2); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-4); font-weight: 700; white-space: nowrap; position: sticky; top: 0; z-index: 2; }
.acct-label-col { position: sticky; left: 0; z-index: 3; background: var(--surface-2); min-width: 120px; }
.acct-building-col { min-width: 160px; text-align: center; }
.acct-building-name { font-family: var(--font-sans); font-weight: 700; font-size: .95rem; color: var(--ink); text-decoration: none; line-height: 1.25; }
.acct-building-name:hover { color: var(--brand-ink); }
.acct-label { font-weight: 700; color: var(--ink-2); font-size: .86rem; white-space: nowrap; position: sticky; left: 0; background: var(--canvas); z-index: 1; border-right: 1px solid var(--line); }
.acct-value { font-size: .92rem; color: var(--ink); text-align: center; }
.acct-value .fact-none { color: var(--ink-4); font-weight: 600; }
.acct-value .fact-value.brand { color: var(--brand); font-size: 1rem; }
.acct-table tbody tr:last-child td { border-bottom: 0; }
.acct-table tbody tr:hover td { background: var(--surface-2); }

/* ── Account inquiry table ── */
.acct-inq-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.acct-inq-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.acct-inq-table th,
.acct-inq-table td { padding: 10px 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.acct-inq-table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-4); font-weight: 700; white-space: nowrap; }
.acct-inq-obj { min-width: 140px; }
.acct-inq-date { white-space: nowrap; }
.acct-inq-status { white-space: nowrap; }
.acct-inq-table tbody tr:last-child td { border-bottom: 0; }
.acct-inq-table tbody tr:hover td { background: var(--surface-2); }
.acct-inq-table a { color: var(--ink); text-decoration: none; font-weight: 600; }
.acct-inq-table a:hover { color: var(--brand-ink); }

@media (max-width: 600px) {
    .acct-label-col { min-width: 100px; }
    .acct-building-col { min-width: 140px; }
    .acct-table th,
    .acct-table td { padding: 10px 12px; font-size: .86rem; }
}

/* ── Journal registry ── */
.journal-registry-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.journal-registry { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.journal-registry th,
.journal-registry td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.journal-registry thead th { background: var(--surface-2); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-4); font-weight: 700; white-space: nowrap; }
.journal-registry-date { width: 110px; white-space: nowrap; font-family: var(--font-mono); font-size: .88rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.journal-registry-title { font-weight: 700; }
.journal-registry-title a { color: var(--ink); text-decoration: none; transition: color .15s; }
.journal-registry-title a:hover { color: var(--brand-ink); }
.journal-registry-annotation { color: var(--muted); font-size: .92rem; line-height: 1.5; max-width: 520px; }
.journal-registry tbody tr:last-child td { border-bottom: 0; }
.journal-registry tbody tr:hover td { background: var(--surface-2); }
.journal-registry tbody tr:focus-within td { background: var(--brand-soft); }

.journal-article { max-width: 68ch; margin: 0 auto; }
.journal-article-body { margin-top: 18px; }

@media (max-width: 600px) {
    .journal-registry-date { width: 90px; padding: 10px 12px; font-size: .82rem; }
    .journal-registry-title,
    .journal-registry-annotation { padding: 10px 12px; font-size: .88rem; }
    .journal-registry-annotation { max-width: none; }
}

/* ── Promotions ── */
.promos-wrap { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.promo-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; }
.promo-card-head { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.promo-badge { display: inline-block; background: var(--signal); color: var(--ink); font-size: .74rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: .04em; }
.promo-discount { display: inline-block; background: var(--brand-soft); color: var(--brand-ink); font-size: .82rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; font-family: var(--font-mono); }
.promo-title { display: block; font-size: 1rem; color: var(--ink); margin-bottom: 4px; }
.promo-text { margin: 4px 0 0; font-size: .9rem; color: var(--ink-2); line-height: 1.5; }
.promo-period { margin-top: 6px; font-size: .82rem; color: var(--muted); font-family: var(--font-mono); }
.promo-mini { font-size: .86rem; color: var(--ink-2); margin-bottom: 2px; }

/* ── Selection print ── */
.selection-print { background: var(--canvas); color: var(--ink); font-family: var(--font-sans); }
.sel-wrap { max-width: 820px; margin: 0 auto; padding: 32px 24px 64px; }
.sel-header { margin-bottom: 28px; }
.sel-header h1 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin: 0 0 6px; color: var(--ink); }
.sel-count { margin: 0; color: var(--muted); font-size: .88rem; }

.sel-empty { padding: 48px 0; text-align: center; color: var(--muted); }
.sel-empty p { margin: 0 0 12px; }
.sel-empty a { color: var(--brand); text-decoration: underline; }

.sel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 24px; }
.sel-card-head { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.sel-card-head a { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.sel-card-head a:hover { color: var(--brand-ink); }

.sel-facts { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sel-facts th { text-align: left; padding: 7px 12px 7px 0; font-size: .82rem; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; vertical-align: top; width: 130px; }
.sel-facts td { padding: 7px 0; font-size: .94rem; color: var(--ink); vertical-align: top; }
.sel-facts tbody tr { border-bottom: 1px solid var(--line); }
.sel-facts tbody tr:last-child { border-bottom: 0; }
.fact-none { color: var(--ink-4); font-size: .88rem; }

.sel-footer { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.sel-contact { margin: 0; color: var(--muted); font-size: .82rem; }

/* ── Building notes ── */
.note-wrap { margin-top: 14px; }
.note-label { font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.note-textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 4px; padding: 11px 13px; background: var(--canvas); font: inherit; color: var(--ink); resize: vertical; min-height: 100px; transition: border-color .15s, box-shadow .15s; font-size: .94rem; line-height: 1.55; }
.note-textarea:focus { border-color: var(--primary); outline: 0; box-shadow: 0 0 0 3px rgba(34,75,122,.14); }
.note-hint { display: block; text-align: right; font-size: .76rem; color: var(--ink-4); margin-top: 4px; }
.note-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.note-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px; font-size: .78rem; font-weight: 600; margin-bottom: 8px; }
.note-saved { background: var(--ok-soft); color: var(--ok); border: 1px solid var(--ok-line); }

/* ── User lists toggle ── */
.list-toggle-wrap { display: inline-flex; }
.list-btn { display: inline-flex; align-items: center; gap: 6px; min-height: var(--target); padding: 0 12px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--canvas); color: var(--ink-2); font: inherit; font-weight: 600; font-size: .84rem; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.list-btn:hover { border-color: var(--primary); }
.list-btn.active { background: var(--primary); border-color: var(--primary); color: var(--canvas); }
.list-icon { font-size: 1.1em; }
.list-label { font-size: .82rem; }

.sel-toolbar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 12px 24px; display: flex; justify-content: center; z-index: 100; }

@media print {
    .no-print { display: none !important; }
    .selection-print { background: #fff; }
    .sel-wrap { max-width: none; padding: 0; }
    .sel-card { border: none; border-bottom: 2px solid #ccc; border-radius: 0; padding: 0 0 16px; margin-bottom: 0; page-break-inside: avoid; }
    .sel-card + .sel-card { margin-top: 24px; }
    .sel-card-head { border-bottom-color: #ccc; }
    .sel-facts th { color: #555; }
    .sel-facts tbody tr { border-bottom-color: #ddd; }
    .sel-footer { border-top-color: #ccc; }
    body::before { content: none; }
}

.page-hero-ico { color: var(--mint); }
.page-hero-price { margin-top: 14px; font-size: 1.8rem; font-weight: 800; font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--on-primary); }

/* ── Building dossier: hero actions and compact layouts ── */
.dossier-hero-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.dossier-hero-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.page-hero .list-btn, .cover-top .list-btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); color: var(--on-primary); }
.page-hero .list-btn:hover, .cover-top .list-btn:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.55); }
.page-hero .list-btn.active, .cover-top .list-btn.active { background: var(--on-primary); border-color: var(--on-primary); color: var(--primary); }
.page-hero .fav-btn { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3); }
.page-hero .fav-btn.active { background: var(--accent); border-color: var(--accent); color: var(--ink); }

.plans-group-title { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 20px 0 10px; font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.plans-group-title:first-of-type { margin-top: 6px; }
.plans-group-count { color: var(--ink-4); font-weight: 600; }
.plans-group-price { margin-left: auto; color: var(--primary); font-family: var(--font-mono); font-size: .92rem; font-variant-numeric: tabular-nums; }
.layout-rows-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.layout-rows-wrap + .grid, .grid + .layout-rows-wrap { margin-top: 12px; }
.layout-rows { width: 100%; min-width: 420px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.layout-rows th, .layout-rows td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: .93rem; }
.layout-rows thead th { background: var(--surface-2); color: var(--ink-4); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.layout-rows tbody tr:last-child td { border-bottom: 0; }
.layout-rows tbody tr:hover td { background: var(--brand-soft); }
.layout-rows a { color: var(--sky); font-weight: 600; text-decoration: none; }
.layout-rows a:hover { color: var(--primary); text-decoration: underline; }
.layout-rows .layout-rows-price { text-align: right; white-space: nowrap; font-family: var(--font-mono); font-weight: 700; color: var(--primary); }
@media (max-width: 1080px) {
    .dossier-hero-actions .btn.cta { display: none; }
}
.dossier-layout > *, .dossier-main > * { min-width: 0; }
@media (max-width: 480px) {
    .layout-rows { min-width: 0; }
    .layout-rows th, .layout-rows td { padding: 9px 10px; font-size: .86rem; }
    .layout-rows thead th { font-size: .66rem; letter-spacing: .04em; }
}
a.list-btn { text-decoration: none; }
@media (max-width: 900px) {
    .dossier-scale .desk-scale-stat { display: none; }
}
@media (max-width: 480px) {
    .layout-rows th:nth-child(3), .layout-rows td:nth-child(3) { display: none; }
    .layout-rows .layout-rows-price { font-family: var(--font-sans); }
}

/* ════════════════════════════════════════════════════════════
   Domselect v3 — header, cards, home (owner request 2026-11-14)
   ════════════════════════════════════════════════════════════ */
body { font-family: var(--font-sans); }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.015em; }

/* ── Brand illustration (stand-in for missing photos) ── */
.building-visual { display: block; width: 100%; height: 100%; }
.bv-sky-top { stop-color: var(--brand-soft); }
.bv-sky-bottom { stop-color: var(--surface); }
.bv-sun { fill: var(--accent); opacity: .22; }
.bv-far { fill: var(--sky); opacity: .18; }
.bv-tower-a { fill: var(--primary); }
.bv-tower-b { fill: var(--sky); }
.bv-tower-c { fill: var(--primary-strong); }
.bv-roof { fill: var(--accent); }
.bv-window { fill: var(--surface); opacity: .28; }
.bv-window-lit { fill: var(--surface); opacity: .5; }
.bv-ground { fill: var(--line); }
.bv-tree { fill: var(--accent); opacity: .75; }

/* ── Building card ── */
.building-card { display: flex; flex-direction: column; position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 1px 2px rgba(27,42,61,.05); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.building-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(27,42,61,.13); border-color: transparent; }
.building-card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--brand-soft); }
.building-card-media > img, .building-card-media > .building-visual { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.building-card:hover .building-card-media > img, .building-card:hover .building-card-media > .building-visual { transform: scale(1.04); }
.building-card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,42,61,0) 45%, rgba(27,42,61,.72) 100%); pointer-events: none; }
.building-card-tags { position: absolute; top: 12px; left: 12px; right: 60px; display: flex; flex-wrap: wrap; gap: 6px; }
.building-card-class, .building-card-tag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 4px; font-size: .74rem; font-weight: 700; line-height: 1.3; }
.building-card-class { background: var(--accent); color: var(--ink); }
.building-card-tag { background: rgba(255,255,255,.92); color: var(--primary); }
.building-card-tag.is-ready { background: var(--primary); color: var(--on-primary); }
.building-card-price { position: absolute; left: 16px; right: 16px; bottom: 12px; color: var(--on-primary); font-weight: 800; font-size: 1.22rem; letter-spacing: -.01em; font-variant-numeric: tabular-nums; text-shadow: 0 1px 8px rgba(27,42,61,.35); }
.building-card-fav { position: absolute; top: 10px; right: 10px; z-index: 2; }
.building-card-body { display: flex; flex-direction: column; gap: 7px; padding: 16px 18px 6px; flex: 1; min-width: 0; }
.building-card-title { font-size: 1.14rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.building-card-title a { color: var(--ink); text-decoration: none; }
.building-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.building-card-title a:hover { color: var(--primary); }
.building-card-loc { display: flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: .88rem; font-weight: 500; }
.building-card-loc .icon { color: var(--sky); }
.building-card-loc.is-empty { color: var(--ink-4); }
.building-card-min { color: var(--muted); font-weight: 400; }
.building-card-dev { color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; position: relative; z-index: 2; }
.building-card-dev a { color: var(--muted); text-decoration: none; }
.building-card-dev a:hover { color: var(--primary); text-decoration: underline; }
.building-card-rooms { margin: 8px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); display: grid; gap: 4px; }
.building-card-rooms > div { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; }
.building-card-rooms dt { color: var(--muted); }
.building-card-rooms dd { margin: 0; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.building-card-rooms.is-facts { grid-template-columns: 1fr 1fr; gap: 10px; }
.building-card-rooms.is-facts > div { flex-direction: column; gap: 0; }
.building-card-rooms.is-facts dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }
.building-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 18px 16px; position: relative; z-index: 2; }
.building-card-foot .compare-link { min-height: 40px; border-radius: 6px; background: var(--surface); }
.building-card-more { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--primary); font-weight: 700; font-size: .9rem; text-decoration: none; }
.building-card-more:hover { color: var(--sky); }
.building-card .fav-btn { background: rgba(255,255,255,.92); color: var(--primary); box-shadow: 0 2px 8px rgba(27,42,61,.18); }
.building-card .fav-btn.active { background: var(--accent); color: var(--ink); }

/* ── Home ── */
.home-rooms { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: -34px; }
.home-room-tile { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(27,42,61,.08); color: inherit; text-decoration: none; transition: transform .18s, box-shadow .18s, border-color .18s; }
.home-room-tile:hover { transform: translateY(-2px); border-color: var(--sky); box-shadow: 0 16px 36px rgba(27,42,61,.13); }
.home-room-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 6px; background: var(--brand-soft); color: var(--primary); font-size: 1.45rem; flex-shrink: 0; }
.home-room-text { display: flex; flex-direction: column; min-width: 0; }
.home-room-text strong { font-size: .98rem; }
.home-room-text span { color: var(--accent-ink); font-weight: 700; font-size: .88rem; font-variant-numeric: tabular-nums; }
.home-room-text span.is-muted { color: var(--ink-4); font-weight: 500; }
.home-room-count { position: absolute; top: 10px; right: 12px; color: var(--ink-4); font-size: .76rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.home-sections { display: flex; flex-direction: column; gap: clamp(32px, 4vw, 52px); padding: clamp(28px, 3vw, 40px) 0 0; }
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.home-kicker { display: inline-block; margin-bottom: 6px; color: var(--accent-ink); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.home-section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.home-head.is-inverse .home-section-title { color: var(--on-primary); }
.home-head.is-inverse .home-kicker { color: var(--accent); }
.home-more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--surface); color: var(--primary); font-weight: 700; font-size: .92rem; text-decoration: none; transition: border-color .15s, background .15s; }
.home-more:hover { border-color: var(--primary); background: var(--brand-soft); }
.home-sections > .wrap { width: 100%; }
.home-cards { gap: 22px; }
.header-cta { white-space: nowrap; }

.home-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.link-card { padding: 20px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.link-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.link-card-head h3 { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.link-card-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 6px; background: var(--brand-soft); color: var(--primary); font-size: 1.25rem; flex-shrink: 0; }
.link-count { color: var(--ink-4); font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.home-geo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }


.home-cta { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: clamp(28px, 4vw, 44px); border-radius: 8px; background: linear-gradient(120deg, var(--brand-soft), var(--surface)); border: 1px solid var(--line); }
.home-cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: var(--accent); opacity: .12; }
.home-cta h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.025em; color: var(--ink); }
.home-cta p { margin-top: 8px; max-width: 560px; color: var(--ink-3); }
.home-cta-actions { position: relative; z-index: 1; display: flex; gap: 10px; flex-wrap: wrap; }
.home-cta-actions .btn { min-height: 50px; padding: 0 22px; border-radius: 6px; font-weight: 700; }
.home-cta-ghost { background: var(--surface); border-color: var(--line-2); color: var(--primary); }

.home-journal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-article { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: transform .18s, box-shadow .18s, border-color .18s; }
.home-article:hover { transform: translateY(-2px); border-color: transparent; box-shadow: 0 14px 34px rgba(27,42,61,.12); }
.home-article time { color: var(--ink-4); font-size: .82rem; font-weight: 600; }
.home-article strong { font-size: 1.12rem; line-height: 1.3; color: var(--ink); }
.home-article span { flex: 1; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.home-article em { display: inline-flex; align-items: center; gap: 6px; font-style: normal; color: var(--primary); font-weight: 700; font-size: .88rem; }

@media (max-width: 1080px) {
    .home-rooms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home-journal { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .home-rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -24px; }
    .home-geo { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .home-rooms { gap: 8px; }
    .home-room-tile { padding: 12px; gap: 10px; }
    .home-room-ico { width: 38px; height: 38px; font-size: 1.2rem; }
}

/* ── Building page v3 ── */
.bp { padding-bottom: 24px; }
.bp-crumbs { margin: 18px 0 6px; }
.bp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.bp-head-main { min-width: 0; flex: 1 1 520px; }
.bp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.bp-tag { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 4px; background: var(--brand-soft); color: var(--primary); font-size: .8rem; font-weight: 700; }
.bp-tag.is-class { background: var(--accent); color: var(--ink); }
.bp-tag.is-ready { background: var(--primary); color: var(--on-primary); }
.bp-title { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.05; font-weight: 800; letter-spacing: -.035em; color: var(--ink); }
.bp-loc { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; }
.bp-loc-item { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-weight: 500; text-decoration: none; }
a.bp-loc-item:hover { color: var(--primary); }
.bp-loc-item .icon { color: var(--sky); }
.bp-loc-muted { color: var(--muted); font-weight: 400; }
.bp-head-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bp-head-actions .list-btn { min-height: 44px; border-radius: 6px; background: var(--surface); border-color: var(--line); }
.bp-head-actions .list-btn:hover { border-color: var(--primary); color: var(--primary); }
.bp-head-actions .fav-btn { width: 44px; height: 44px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); color: var(--primary); }
.bp-head-actions .fav-btn.active { background: var(--accent); border-color: var(--accent); color: var(--ink); }

.bp-gallery { position: relative; display: grid; gap: 10px; border-radius: 8px; overflow: hidden; }
.bp-gallery.is-single { grid-template-columns: 1fr; height: clamp(260px, 42vw, 500px); }
.bp-gallery.is-mosaic { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); height: clamp(320px, 42vw, 500px); }
.bp-gallery.is-mosaic .is-main { grid-row: span 2; }
.bp-gallery-item { position: relative; display: block; overflow: hidden; background: var(--brand-soft); }
.bp-gallery-item img, .bp-gallery-item .building-visual { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a.bp-gallery-item:hover img { transform: scale(1.04); }
.bp-gallery-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(27,42,61,.55); color: var(--on-primary); font-weight: 800; font-size: 1.2rem; }
.bp-gallery-note { position: absolute; left: 20px; top: 20px; padding: 6px 12px; border-radius: 4px; background: rgba(255,255,255,.85); color: var(--ink-3); font-size: .8rem; font-weight: 600; }
.bp-gallery-price { position: absolute; left: 20px; bottom: 20px; display: flex; flex-direction: column; padding: 14px 18px; border-radius: 8px; background: var(--surface); box-shadow: 0 14px 34px rgba(27,42,61,.2); }
.bp-gallery-price span { color: var(--muted); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.bp-gallery-price strong { color: var(--primary); font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }

.bp-tabs { position: sticky; top: 72px; z-index: 20; margin-top: 28px; background: color-mix(in srgb, var(--canvas) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.bp-tabs-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.bp-tabs-inner::-webkit-scrollbar { display: none; }
.bp-tabs-link { position: relative; display: inline-flex; align-items: center; min-height: 52px; padding: 0 14px; color: var(--ink-3); font-weight: 600; font-size: .92rem; white-space: nowrap; text-decoration: none; }
.bp-tabs-link:hover { color: var(--primary); }
.bp-tabs-link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--primary); transform: scaleX(0); transition: transform .2s; }
.bp-tabs-link:hover::after { transform: scaleX(1); }

.bp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; padding-top: 28px; }
.bp-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.bp-section { scroll-margin-top: 140px; padding: clamp(20px, 3vw, 30px); border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.bp-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.bp-section-head .bp-h2 { margin-bottom: 0; }
.bp-h2 { margin-bottom: 18px; font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 800; letter-spacing: -.025em; color: var(--ink); }
.bp-count { color: var(--muted); font-size: .9rem; font-weight: 600; }
.bp-muted { color: var(--muted); }

.bp-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 0; }
.bp-fact { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px; border-radius: 6px; background: var(--canvas); }
.bp-fact-ico { grid-row: span 2; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 6px; background: var(--surface); color: var(--primary); font-size: 1.2rem; }
.bp-fact dt { color: var(--muted); font-size: .78rem; }
.bp-fact dd { margin: 0; color: var(--ink); font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; overflow-wrap: break-word; hyphens: auto; }
.bp-about { margin-top: 20px; }
.bp-about-text { max-height: 7.8em; overflow: hidden; position: relative; }
.bp-about-text::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3em; background: linear-gradient(180deg, transparent, var(--surface)); }
.bp-about-text.is-open { max-height: none; }
.bp-about-text.is-open::after { display: none; }
.bp-link-btn { margin-top: 8px; min-height: 40px; padding: 0; border: 0; background: none; color: var(--primary); font: inherit; font-weight: 700; cursor: pointer; }
.bp-link-btn:hover { color: var(--sky); }

.bp-advantages { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.bp-advantages .icon-item { background: var(--canvas); border-color: transparent; border-radius: 6px; font-weight: 600; color: var(--ink); }
.bp-advantages .icon-item .dot { background: var(--accent); color: var(--ink); border-radius: 4px; }

.bp-room-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: thin; }
.bp-room-tabs button { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 52px; padding: 7px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; font-size: .92rem; white-space: nowrap; cursor: pointer; transition: border-color .15s, background .15s; }
.bp-room-tabs button span { color: var(--muted); font-size: .78rem; font-weight: 600; }
.bp-room-tabs button:hover { border-color: var(--sky); }
.bp-room-tabs button.is-active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.bp-room-tabs button.is-active span { color: var(--on-dark); }

.bp-plans { display: flex; flex-direction: column; gap: 8px; }
.bp-plan { display: grid; grid-template-columns: 64px minmax(0, 1.4fr) minmax(0, .6fr) minmax(0, .9fr) minmax(0, 1fr) 32px; align-items: center; gap: 16px; padding: 10px 14px 10px 10px; border: 1px solid var(--line); border-radius: 6px; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.bp-plan:hover { border-color: var(--sky); box-shadow: 0 8px 22px rgba(27,42,61,.08); }
.bp-plan-thumb { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 6px; background: var(--canvas); color: var(--sky); font-size: 1.9rem; overflow: hidden; }
.bp-plan-thumb img { width: 100%; height: 100%; object-fit: contain; }
.bp-plan-name { display: flex; flex-direction: column; min-width: 0; }
.bp-plan-name strong { font-size: 1rem; }
.bp-plan-name span { color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; }
.bp-plan-meta { display: flex; flex-direction: column; }
.bp-plan-meta span { color: var(--muted); font-size: .74rem; }
.bp-plan-meta strong { font-weight: 600; font-size: .92rem; font-variant-numeric: tabular-nums; }
.bp-plan-price { text-align: right; color: var(--primary); font-weight: 800; font-size: 1.08rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bp-plan-go { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 4px; background: var(--canvas); color: var(--primary); transition: background .15s, color .15s; }
.bp-plan:hover .bp-plan-go { background: var(--primary); color: var(--on-primary); }

.bp-legacy .panel.dossier-section { padding: 0; border: 0; box-shadow: none; background: transparent; }
.bp .dossier-section-num:empty { display: none; }
.bp-legacy .panel h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 800; letter-spacing: -.025em; }
.bp-video { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 6px; }

.bp-location { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: stretch; }
.bp-location-list { display: flex; flex-direction: column; margin: 0; }
.bp-location-list > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.bp-location-list > div:last-child { border-bottom: 0; }
.bp-location-list dt { color: var(--muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.bp-location-list dd { margin: 4px 0 0; color: var(--ink); font-weight: 600; }
.bp-location-list a { color: var(--primary); text-decoration: none; }
.bp-location-list a:hover { text-decoration: underline; }
.bp-map { position: relative; min-height: 220px; border-radius: 8px; overflow: hidden; background: var(--brand-soft); display: grid; place-items: center; }
.bp-map-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.bp-map-road { fill: none; stroke: var(--surface); stroke-width: 10; stroke-linecap: round; }
.bp-map-road.is-thin { stroke-width: 4; opacity: .8; }
.bp-map-water { fill: var(--sky); opacity: .25; }
.bp-map-pin { position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--primary); color: var(--on-primary); box-shadow: 0 10px 24px rgba(27,42,61,.3); font-size: 1.4rem; }
.bp-map-pin .icon { transform: rotate(45deg); }
.bp-map-btn { position: absolute; right: 14px; bottom: 14px; background: var(--surface); border-color: var(--surface); color: var(--primary); font-weight: 700; border-radius: 6px; box-shadow: 0 6px 18px rgba(27,42,61,.15); }

.bp-dev { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.bp-dev-name { color: var(--ink); font-size: 1.2rem; font-weight: 800; text-decoration: none; }
.bp-dev-name:hover { color: var(--primary); }
.bp-dev-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; color: var(--muted); font-size: .88rem; }
.bp-dev-body p { margin-top: 10px; color: var(--ink-2); font-size: .94rem; line-height: 1.6; }
.bp-dev-btn { border-radius: 6px; color: var(--primary); font-weight: 700; background: var(--surface); }
.bp-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.bp-docs .doc-link { border-radius: 6px; font-weight: 600; }

.bp-aside { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 12px; }
.bp-price-card { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(27,42,61,.08); }
.bp-price-label { color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.bp-price { color: var(--ink); font-size: 1.6rem; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bp-price-sub { color: var(--muted); font-size: .9rem; }
.bp-price-rooms { list-style: none; margin: 12px 0 4px; padding: 12px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.bp-price-rooms a { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; color: var(--ink-2); text-decoration: none; font-size: .92rem; }
.bp-price-rooms a:hover { color: var(--primary); }
.bp-price-rooms strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.bp-price-cta { margin-top: 10px; min-height: 52px; border-radius: 6px; font-weight: 800; font-size: 1rem; }
.bp-price-phone { min-height: 48px; border-radius: 6px; color: var(--primary); font-weight: 700; background: var(--surface); }
.bp-price-note { margin-top: 6px; color: var(--ink-4); font-size: .78rem; line-height: 1.45; }
.bp-aside-chip { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-radius: 8px; background: var(--brand-soft); color: var(--primary); font-weight: 700; }

.bp-inquiry { margin-top: clamp(40px, 6vw, 72px); padding: clamp(40px, 6vw, 72px) 0; color: var(--on-primary); background: radial-gradient(700px 320px at 100% 0%, rgba(74,118,168,.5), transparent 60%), var(--primary); scroll-margin-top: 120px; }
.bp-inquiry-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 48px; align-items: center; }
.bp-inquiry-copy h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--on-primary); }
.bp-inquiry-copy .home-kicker { color: var(--accent); }
.bp-inquiry-copy p { margin-top: 12px; color: var(--on-dark); font-size: 1.05rem; }
.bp-inquiry-copy ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.bp-inquiry-copy li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.bp-inquiry-copy li .icon { display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 5px; border-radius: 4px; background: var(--accent); color: var(--ink); }
.bp-inquiry-form .panel { padding: 26px; border-radius: 8px; border: 0; background: var(--surface); color: var(--ink); box-shadow: 0 30px 70px rgba(10,22,38,.35); }
.bp-inquiry-form .panel h2 { font-size: 1.35rem; font-weight: 800; }
.bp-inquiry-form .btn.cta { min-height: 52px; border-radius: 6px; font-weight: 800; }
.bp-more { margin-top: clamp(40px, 6vw, 72px); }

.bp-mobile-bar { display: none; }

@media (max-width: 1080px) {
    .bp-layout { grid-template-columns: 1fr; }
    .bp-aside { position: static; order: -1; }
    .bp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bp-inquiry-grid { grid-template-columns: 1fr; gap: 28px; }
    .bp-plan { grid-template-columns: 56px minmax(0, 1fr) auto 28px; }
    .bp-plan-meta { display: none; }
    .bp-plan-thumb { width: 56px; height: 56px; }
}
@media (max-width: 760px) {
    .bp-tabs { top: 60px; }
    .bp-gallery.is-mosaic { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 300px; }
    .bp-gallery.is-mosaic .bp-gallery-item:not(.is-main) { display: none; }
    .bp-gallery { border-radius: 8px; }
    .bp-gallery-price { left: 12px; bottom: 12px; padding: 10px 14px; }
    .bp-gallery-price strong { font-size: 1.1rem; }
    .bp-gallery-note { left: 12px; top: 12px; font-size: .72rem; }
    .bp-location { grid-template-columns: 1fr; }
    .bp-dev { grid-template-columns: auto minmax(0, 1fr); }
    .bp-dev-btn { grid-column: 1 / -1; }
    .bp-head-actions .list-label { display: none; }
    .bp-mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(27,42,61,.1); }
    .bp-mobile-bar div { display: flex; flex-direction: column; min-width: 0; }
    .bp-mobile-bar span { color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
    .bp-mobile-bar strong { color: var(--ink); font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .bp-mobile-bar .btn { min-height: 48px; padding: 0 22px; border-radius: 6px; font-weight: 800; flex-shrink: 0; }
    .bp { padding-bottom: 84px; }
}
@media (max-width: 480px) {
    .bp-facts { grid-template-columns: 1fr 1fr; gap: 8px; }
    .bp-fact { grid-template-columns: 1fr; padding: 12px; }
    .bp-fact-ico { grid-row: auto; width: 34px; height: 34px; margin-bottom: 8px; font-size: 1rem; }
    .bp-plan { gap: 10px; padding: 8px 10px 8px 8px; grid-template-columns: 48px minmax(0, 1fr) auto; }
    .bp-plan-go { display: none; }
    .bp-plan-thumb { width: 48px; height: 48px; font-size: 1.5rem; }
    .bp-plan-price { font-size: .98rem; }
    .bp-section { border-radius: 8px; }
}

/* ════════════════════════════════════════════════════════════
   Domselect v4 — two-tier header, editorial hero, skyline footer
   ════════════════════════════════════════════════════════════ */

/* ── Top bar ── */
.topbar { background: var(--primary-strong); color: var(--on-dark); font-size: .8rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar-city { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--on-primary); }
.topbar-city .icon { color: var(--accent); }
.topbar-links { display: flex; gap: 20px; }
.topbar-links a { display: inline-flex; align-items: center; min-height: 36px; color: var(--on-dark); text-decoration: none; }
.topbar-links a:hover { color: var(--on-primary); }

/* ── Main header ── */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(27,42,61,.03), 0 6px 20px rgba(27,42,61,.05); }
.site-header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.site-header .brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.site-header .brand-logo { width: 46px; height: 35px; }
.site-header .brand-text { display: flex; flex-direction: column; line-height: 1; }
.site-header .brand-name { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.03em; color: var(--primary); }
.site-header .brand-sub { margin-top: 4px; color: var(--muted); font-size: .72rem; font-weight: 500; }
.site-header .main-nav { display: flex; align-items: stretch; gap: 2px; min-height: 72px; margin-left: 8px; }
.nav-item { position: relative; display: flex; align-items: center; }
.site-header .nav-link { position: relative; display: inline-flex; align-items: center; min-height: 72px; padding: 0 4px 0 12px; color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; }
.nav-item:not(:has(.nav-caret)) .nav-link { padding-right: 12px; }
.site-header .nav-link::after { content: ""; position: absolute; left: 12px; right: 4px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--primary); transform: scaleX(0); transition: transform .2s ease; }
.nav-item:not(:has(.nav-caret)) .nav-link::after { right: 12px; }
.site-header .nav-link:hover, .site-header .nav-link.is-current { color: var(--primary); }
.site-header .nav-link.is-current::after, .nav-item:hover .nav-link::after { transform: scaleX(1); }
.nav-caret { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 6px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--ink-4); cursor: pointer; }
.nav-caret:hover, .nav-caret[aria-expanded="true"] { background: var(--brand-soft); color: var(--primary); }
.nav-caret[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav-caret .icon { transition: transform .2s; }
.mega { position: absolute; top: 100%; left: 0; z-index: 40; display: grid; grid-template-columns: repeat(3, minmax(150px, auto)) 220px; gap: 28px; padding: 24px 26px; border-radius: 0 0 8px 8px; background: var(--surface); border: 1px solid var(--line); border-top: 0; box-shadow: 0 24px 50px rgba(27,42,61,.16); }
.mega.is-narrow { grid-template-columns: repeat(2, minmax(160px, auto)); }
.mega-col { display: flex; flex-direction: column; gap: 2px; }
.mega-title { margin-bottom: 6px; color: var(--ink-4); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.mega-col a { display: flex; align-items: center; min-height: 34px; color: var(--ink-2); font-size: .93rem; text-decoration: none; white-space: nowrap; }
.mega-col a:hover { color: var(--primary); }
.mega-promo { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 6px; background: var(--brand-soft); color: var(--ink); text-decoration: none; }
.mega-promo:hover { background: var(--primary); color: var(--on-primary); }
.mega-promo:hover span { color: var(--on-dark); }
.mega-promo-ico { font-size: 1.6rem; line-height: 1; color: var(--primary); }
.mega-promo:hover .mega-promo-ico { color: var(--accent); }
.mega-promo span { color: var(--muted); font-size: .84rem; line-height: 1.4; }
.header-spacer { flex: 1; }
.header-actions { display: flex; align-items: center; gap: 4px; }
.hdr-tool { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 64px; min-height: 52px; padding: 4px 8px; border: 0; border-radius: 6px; background: none; color: var(--ink-2); font: inherit; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.hdr-tool .icon, .hdr-tool-ico { font-size: 1.25rem; line-height: 1; }
.hdr-tool-label { font-size: .72rem; font-weight: 600; }
.hdr-tool:hover { background: var(--brand-soft); color: var(--primary); }
.hdr-tool-form { display: inline-flex; margin: 0; }
.site-header .menu-btn { display: none; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); color: var(--ink); cursor: pointer; }
.site-header .mobile-menu { display: block; padding: 6px 0 18px; border-top: 1px solid var(--line); }
.site-header .mobile-menu .wrap > a { display: flex; align-items: center; min-height: 48px; color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }

@media (max-width: 1080px) {
    .site-header .brand-sub { display: none; }
    .site-header .nav-link { padding-left: 9px; font-size: .9rem; }
    .hdr-tool { min-width: 56px; }
}
@media (max-width: 900px) {
    .site-header .main-nav, .topbar-links { display: none; }
    .site-header .menu-btn { display: inline-grid; }
}
@media (max-width: 600px) {
    .topbar { display: none; }
    .site-header-inner { min-height: 60px; gap: 12px; }
    .hdr-tool { display: none; }
    .site-header .brand-name { font-size: 20px; }
    .site-header .brand-logo { width: 40px; height: 30px; }
}

/* ── Home hero: editorial type, segmented search, city line ── */
.home-hero { position: relative; overflow: hidden; background: var(--primary); color: var(--on-primary); }
.home-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,1) 30%, rgba(0,0,0,1) 70%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,1) 30%, rgba(0,0,0,1) 70%, transparent); pointer-events: none; }
.home-hero-inner { position: relative; z-index: 1; padding-top: clamp(44px, 7vw, 92px); padding-bottom: 28px; }
.home-hero-title { max-width: 900px; font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: .95; font-weight: 800; letter-spacing: -.045em; color: var(--on-primary); }
.home-hero-hash { color: var(--accent); margin-right: .04em; }
.home-hero-sub { max-width: 640px; margin-top: 22px; color: var(--on-dark); font-size: clamp(1rem, 1.6vw, 1.18rem); line-height: 1.55; }
.home-hero-sub strong { color: var(--on-primary); font-weight: 700; white-space: nowrap; }

.home-search { margin-top: 34px; }
.home-search-modes { display: inline-flex; gap: 22px; margin-bottom: 12px; }
.home-search-modes button { position: relative; min-height: 36px; padding: 0; border: 0; background: none; color: var(--on-dark-2); font: inherit; font-weight: 700; font-size: .98rem; cursor: pointer; }
.home-search-modes button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.home-search-modes button.is-active { color: var(--on-primary); }
.home-search-modes button.is-active::after { transform: scaleX(1); }
.home-search-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.7fr) auto; align-items: stretch; padding: 6px; border-radius: 8px; background: var(--surface); box-shadow: 0 20px 50px rgba(10,22,38,.3); }
.seg { position: relative; display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 8px 18px; border-radius: 6px; cursor: pointer; transition: background .15s; }
.seg + .seg::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
.seg:hover, .seg:focus-within { background: var(--canvas); }
.seg:hover::before, .seg:focus-within::before, .seg:hover + .seg::before, .seg:focus-within + .seg::before { opacity: 0; }
.seg-label { color: var(--ink-4); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.seg select, .seg input[type=text] { width: 100%; min-height: 30px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 600; font-size: 1rem; box-shadow: none; appearance: none; -webkit-appearance: none; cursor: pointer; }
.seg input[type=text] { cursor: text; }
.seg input[type=text]::placeholder { color: var(--ink-4); font-weight: 500; }
.seg select:focus, .seg input:focus { outline: 0; box-shadow: none; }
.seg:focus-within { outline: 2px solid var(--primary); outline-offset: -2px; }
.home-search-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 64px; padding: 0 30px; border: 0; border-radius: 6px; background: var(--accent); color: var(--ink); font: inherit; font-weight: 800; font-size: 1.05rem; cursor: pointer; transition: background .15s, color .15s; }
.home-search-go:hover { background: var(--accent-ink); color: var(--on-primary); }
.home-search-go .icon { font-size: 1.2em; }

.home-popular-queries { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 18px; font-size: .9rem; }
.home-popular-queries > span { color: var(--on-dark-2); margin-right: 2px; }
.home-popular-queries a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 13px; border: 1px solid rgba(255,255,255,.22); border-radius: 4px; color: var(--on-primary); text-decoration: none; transition: background .15s, border-color .15s; }
.home-popular-queries a:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); }

.home-rooms { margin-top: 28px; }

/* ── Useful links (list style) ── */
.link-card ul { list-style: none; margin: 0; padding: 0; }
.link-card li { display: flex; align-items: center; gap: 8px; }
.link-card li a { display: inline-flex; align-items: center; min-height: 36px; color: var(--sky); font-size: .95rem; font-weight: 500; text-decoration: none; }
.link-card li a:hover { color: var(--primary); text-decoration: underline; }
.home-geo .link-card ul { columns: 2; column-gap: 24px; }

/* ── Footer ── */
.footer { margin-top: clamp(56px, 8vw, 96px); background: var(--primary-strong); color: var(--on-dark); border-top: 0; }
.footer-main { padding-top: clamp(36px, 5vw, 56px); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 0; padding-bottom: 36px; }
.footer .footer-logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--on-primary); text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -.03em; }
.footer-logo img { width: 46px; height: 35px; }
.footer-brand p { max-width: 340px; margin-top: 14px; color: var(--on-dark); font-size: .92rem; line-height: 1.6; }
.footer-cta { display: inline-flex !important; align-items: center; gap: 8px; margin-top: 20px; min-height: 46px !important; padding: 0 20px !important; border-radius: 6px; background: var(--accent); color: var(--ink) !important; font-weight: 800; font-size: .92rem; text-decoration: none; }
.footer-cta:hover { background: var(--accent-ink); color: var(--on-primary) !important; }
.footer-col { display: flex; flex-direction: column; }
.footer h4 { margin-bottom: 12px; color: var(--on-primary); font-family: var(--font-display); font-size: .95rem; font-weight: 700; text-transform: none; letter-spacing: 0; }
.footer-col a { display: flex; align-items: center; min-height: 36px; padding: 0; color: var(--on-dark); font-size: .9rem; text-decoration: none; }
.footer-col a:hover { color: var(--on-primary); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; padding: 20px 0 28px; border-top: 1px solid rgba(255,255,255,.12); color: var(--on-dark-2); font-size: .82rem; }
.footer-disclaimer { max-width: 560px; }

@media (max-width: 1080px) {
    .home-search-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .seg-wide { grid-column: 1 / 3; }
    .seg-wide::before { display: none; }
    .home-search-go { min-height: 56px; }
    .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    .home-search-bar { grid-template-columns: 1fr 1fr; padding: 6px; gap: 2px; }
    .seg::before { display: none; }
    .seg { padding: 10px 14px; background: var(--canvas); }
    .seg-wide, .home-search-go { grid-column: 1 / -1; }
    .home-hero-title { letter-spacing: -.035em; }
}
@media (max-width: 480px) {
    .home-hero-sub strong { white-space: normal; }
    .home-popular-queries > span { width: 100%; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
}
@media (max-width: 1080px) {
    .home-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .home-search-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .seg { padding: 10px 12px; }
}
@media (max-width: 480px) {
    .home-links { grid-template-columns: 1fr; }
    .home-geo .link-card ul { columns: 1; }
}


.home-hero-title { font-size: clamp(2.8rem, 7.4vw, 5.8rem); line-height: .94; letter-spacing: -.05em; }
.home-hero-title span { color: var(--on-dark); font-weight: 300; letter-spacing: -.04em; }
.home-hero-inner { padding-bottom: 8px; }

.footer { margin-top: clamp(40px, 6vw, 72px); background: var(--primary-strong); }


/* ── v6: photo hero + refined skyline ── */
.home-hero { background:
    linear-gradient(90deg, color-mix(in srgb, var(--primary-strong) 95%, transparent) 0%, color-mix(in srgb, var(--primary-strong) 86%, transparent) 42%, color-mix(in srgb, var(--primary) 62%, transparent) 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--primary-strong) 40%, transparent) 0%, transparent 30%, color-mix(in srgb, var(--primary-strong) 70%, transparent) 100%),
    var(--city-hero) center 40% / cover no-repeat,
    var(--primary-strong); }
.home-hero::before { display: none; }

.footer { background: transparent; }
.footer-main { background: var(--primary-strong); }



/* ── v10: photo panorama of the Neva instead of the drawn skyline ──
   /images/neva-panorama.jpg — "Neva night.jpg", Wikimedia Commons, public domain,
   https://commons.wikimedia.org/wiki/File:Neva_night.jpg (cropped, resized).
   The picture comes from --city-panorama (App\Support\City). Moscow: /images/msk-panorama.jpg —
   "Moscow Kremlin from Patriarshy Bridge, January 2014 02.jpg", CC0; hero /images/hero-msk.jpg —
   "Moscow City 2019.jpg", CC0 (both Wikimedia Commons, cropped, resized). */
.neva-strip { position: relative; height: clamp(150px, 15vw, 260px); background: var(--primary-strong) var(--city-panorama) center 52% / cover no-repeat; overflow: hidden; }
.neva-strip::before { content: ""; position: absolute; inset: 0; background: var(--primary); mix-blend-mode: color; }
.neva-strip::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.neva-strip--hero { -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,1) 45%); mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,1) 45%); }
.neva-strip--hero::after { background: linear-gradient(180deg, transparent 60%, color-mix(in srgb, var(--primary-strong) 35%, transparent)); }
.neva-strip--footer { background-position: 70% 52%; }
.neva-strip--footer::after { background: linear-gradient(180deg, color-mix(in srgb, var(--primary-strong) 30%, transparent) 0%, transparent 30%, transparent 55%, var(--primary-strong) 100%); }
.home-rooms { margin-top: 28px; }
@media (max-width: 760px) {
    .neva-strip { height: 130px; background-position: 78% 52%; }
}

/* ── chip links (districts, metro) ── */
.chip-links { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-links a { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--canvas); color: var(--ink-2); font-size: .9rem; font-weight: 600; text-decoration: none; transition: border-color .15s, background .15s, color .15s; }
.chip-links a:hover { border-color: var(--primary); background: var(--surface); color: var(--primary); }
.chip-links .metro-dot { width: 9px; height: 9px; margin: 0; }
.chip-links .link-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 4px; background: var(--surface); color: var(--muted); font-size: .74rem; font-weight: 700; }
.chip-links a:hover .link-count { background: var(--brand-soft); color: var(--primary); }
.neva-strip { background-position: center 100%; }
.neva-strip--footer { background-position: 70% 100%; }
@media (max-width: 760px) {
    .neva-strip { background-position: 78% 100%; }
}

/* ── search bar: «Найти» is the right edge of the bar, not a button inside it ── */
.home-search-bar { padding: 0; gap: 0; overflow: hidden; align-items: stretch; }
.home-search-bar .seg { border-radius: 0; padding: 12px 20px; }
.home-search-bar .seg:focus-within { outline-offset: -3px; }
.home-search-go { min-height: 68px; height: 100%; border-radius: 0; padding: 0 36px; }
@media (max-width: 1080px) {
    .home-search-go { min-height: 56px; height: auto; }
    .home-search-bar .seg { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
    .home-search-bar { gap: 0; }
    .home-search-bar .seg { background: var(--surface); border-right: 1px solid var(--line); padding: 10px 14px; }
    .home-search-bar .seg:nth-child(3), .home-search-bar .seg-wide { border-right: 0; }
}

/* ── themed collections ── */
.collections { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.collection { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr auto; column-gap: 12px; row-gap: 10px; min-height: 148px; padding: 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.collection:hover { border-color: var(--primary); box-shadow: 0 10px 26px rgba(27,42,61,.1); transform: translateY(-2px); }
.collection-ico { grid-row: 1; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 4px; background: var(--brand-soft); color: var(--primary); font-size: 1.25rem; }
.collection-body { grid-column: 1 / -1; grid-row: 2; display: flex; flex-direction: column; gap: 3px; }
.collection-body strong { color: var(--ink); font-size: 1.02rem; line-height: 1.25; }
.collection-body span { color: var(--muted); font-size: .86rem; line-height: 1.4; }
.collection-count { grid-column: 1 / -1; grid-row: 3; align-self: end; color: var(--accent-ink); font-size: .84rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.collection-go { position: absolute; right: 16px; top: 18px; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 4px; color: var(--ink-4); transition: background .15s, color .15s; }
.collection:hover .collection-go { background: var(--primary); color: var(--on-primary); }
.collection:hover .collection-ico { background: var(--primary); color: var(--on-primary); }
@media (max-width: 1080px) { .collections { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .collections { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
    .collections { grid-template-columns: 1fr; gap: 8px; }
    .collection { min-height: 0; grid-template-rows: auto auto; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; padding: 14px; }
    .collection-body { grid-column: 2; grid-row: 1; }
    .collection-count { grid-column: 2; grid-row: 2; }
    .collection-ico { grid-row: 1 / span 2; }
    .collection-go { position: static; grid-column: 3; grid-row: 1 / span 2; }
}
@media (max-width: 480px) {
    .collections { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .collection { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 0; padding: 12px; }
    .collection-ico { width: 34px; height: 34px; font-size: 1.05rem; }
    .collection-body strong { font-size: .92rem; }
    .collection-body span, .collection-go { display: none; }
    .collection-count { font-size: .8rem; }
}
@media (max-width: 480px) {
    .collection-count { align-self: flex-start; margin-top: auto; }
}

/* ── developers listing ── */
.dev-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dev-card { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; row-gap: 14px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.dev-card:hover { border-color: var(--primary); box-shadow: 0 10px 26px rgba(27,42,61,.1); transform: translateY(-2px); }
.dev-card .developer-logo { width: 52px; height: 52px; font-size: 1.4rem; border-radius: 4px; }
.dev-card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dev-card-body strong { color: var(--ink); font-size: 1.02rem; line-height: 1.25; overflow-wrap: anywhere; }
.dev-card-body span { color: var(--muted); font-size: .84rem; }
.dev-card-facts { grid-column: 1 / -1; display: flex; gap: 18px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.dev-card-facts b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }

@media (max-width: 1080px) {
    .dev-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .dev-list { grid-template-columns: 1fr; gap: 8px; }
}

/* ── mortgage programs listing ── */
.programs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.program { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; row-gap: 4px; align-items: start; padding: 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.program:hover { border-color: var(--primary); box-shadow: 0 10px 26px rgba(27,42,61,.1); transform: translateY(-2px); }
.program-ico { grid-row: 1 / span 2; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 4px; background: var(--brand-soft); color: var(--primary); font-size: 1.25rem; }
.program:hover .program-ico { background: var(--primary); color: var(--on-primary); }
.program strong { color: var(--ink); font-size: 1.02rem; line-height: 1.3; }
.program > span:last-child { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.programs-note { margin-top: 12px; color: var(--ink-4); font-size: .8rem; }
@media (max-width: 1080px) { .programs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .programs { grid-template-columns: 1fr; gap: 8px; } }

/* ════════════════════════════════════════════════════════════
   Inner pages: shared head band, catalog layout, listings
   ════════════════════════════════════════════════════════════ */
.page-head { position: relative; overflow: hidden; color: var(--on-primary); background: var(--primary-strong); }
.page-head::before { content: ""; position: absolute; inset: 0; background: var(--city-panorama) right 100% / auto 100% no-repeat; opacity: .55; -webkit-mask-image: linear-gradient(90deg, transparent 30%, rgba(0,0,0,1) 85%); mask-image: linear-gradient(90deg, transparent 30%, rgba(0,0,0,1) 85%); }
.page-head::after { content: ""; position: absolute; inset: 0; background: var(--primary); mix-blend-mode: color; pointer-events: none; }
.page-head-inner { position: relative; z-index: 1; padding-top: clamp(24px, 3.5vw, 40px); padding-bottom: clamp(28px, 4vw, 44px); }
.page-head.is-compact .page-head-inner { padding-bottom: 28px; }
.page-head-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 14px; font-size: .84rem; color: var(--on-dark-2); }
.page-head-crumbs a { display: inline-flex; align-items: center; min-height: 32px; color: var(--on-dark); text-decoration: none; }
.page-head-crumbs a:hover { color: var(--on-primary); text-decoration: underline; }
.page-head-crumbs span[aria-current] { color: var(--on-primary); font-weight: 600; }
.page-head-title { display: flex; align-items: center; gap: 16px; }
.page-head-title .developer-logo { width: 64px; height: 64px; font-size: 1.6rem; border-radius: 6px; flex-shrink: 0; }
.page-head h1 { max-width: 900px; color: var(--on-primary); font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; }
.page-head-sub { max-width: 680px; margin-top: 12px; color: var(--on-dark); font-size: clamp(.98rem, 1.4vw, 1.08rem); line-height: 1.55; }
.page-head-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.page-head-facts li { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 4px; background: rgba(255,255,255,.08); color: var(--on-primary); font-size: .86rem; font-weight: 600; }
.page-head-facts .icon { color: var(--accent); }

.page-body { padding-top: clamp(24px, 3vw, 36px); }
.page-body > * + * { margin-top: 24px; }
.page-card { padding: clamp(20px, 3vw, 28px); border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.page-card-title { margin-bottom: 14px; font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }

/* ── catalog: sticky filters on the left, results on the right ── */
.catalog { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 28px; }
.catalog.is-full { grid-template-columns: minmax(0, 1fr); }
.catalog > * { min-width: 0; }
.catalog-side { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; scrollbar-width: thin; }
.catalog-side .filter-panel { margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: none; }
.catalog-side .filter-grid { display: flex; flex-direction: column; gap: 16px; }
.catalog-side .field { grid-column: auto !important; }
.catalog-side .field > label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-4); }
.catalog-side .filter-row { display: flex; flex-wrap: wrap; gap: 6px; }
.catalog-side .pill { min-height: 34px; padding: 0 10px; font-size: .84rem; border-radius: 4px; background: var(--surface); }
.catalog-side select, .catalog-side input[type=text], .catalog-side input[type=number] { min-height: 40px; padding: 8px 10px; font-size: .9rem; }
.catalog-side .filter-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.catalog-side .filter-actions > div { flex-direction: column; align-items: stretch !important; }
.catalog-side .filter-sort { display: flex; flex-direction: column; gap: 6px; }
.catalog-side .filter-sort label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-4); }
.catalog-side .sort-select { min-width: 0; width: 100%; }
.catalog-side .filter-actions .btn { width: 100%; }
.catalog-side .filter-actions > span { text-align: center; }

.results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.results-count { color: var(--ink-3); font-size: .95rem; }
.results-count strong { color: var(--ink); font-size: 1.1rem; }
.view-toggle { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.view-toggle button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 4px; background: none; color: var(--ink-3); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.view-toggle button.is-active { background: var(--primary); color: var(--on-primary); }
.catalog-cards { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.crit-chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--surface); color: var(--ink-2); font-size: .84rem; font-weight: 600; }
.crit-chip:hover { border-color: var(--danger); color: var(--danger); }
.landing-related { margin-top: 40px; }
.landing-related .home-section-title { margin-bottom: 14px; font-size: 1.4rem; }

/* ── flat cards ── */
.flat-list { display: flex; flex-direction: column; gap: 10px; }
.flat-card { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px 18px 14px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.flat-card:hover { border-color: var(--sky); box-shadow: 0 8px 22px rgba(27,42,61,.08); }
.flat-card-plan { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 4px; background: var(--canvas); color: var(--sky); font-size: 2.4rem; overflow: hidden; }
.flat-card-plan img { width: 100%; height: 100%; object-fit: contain; }
.flat-card-title { font-size: 1.08rem; font-weight: 700; }
.flat-card-title a { color: var(--ink); text-decoration: none; }
.flat-card-title a:hover { color: var(--primary); }
.flat-card-building { margin-top: 3px; color: var(--muted); font-size: .9rem; }
.flat-card-building a { color: var(--primary); font-weight: 600; text-decoration: none; }
.flat-card-building a:hover { text-decoration: underline; }
.flat-card-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 10px 0 0; padding: 0; color: var(--ink-3); font-size: .86rem; }
.flat-card-facts li { display: inline-flex; align-items: center; gap: 6px; }
.flat-card-facts .icon { color: var(--sky); }
.flat-card-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.flat-card-price { color: var(--ink); font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.flat-card-price.is-muted { color: var(--ink-4); font-size: 1rem; }
.flat-card-meter { color: var(--muted); font-size: .84rem; font-variant-numeric: tabular-nums; }
.flat-card-side .compare-link { margin-top: 8px; min-height: 36px; }

/* ── developer registry table ── */
.dev-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.dev-table { width: 100%; border-collapse: collapse; }
.dev-table th, .dev-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.dev-table thead th { background: var(--canvas); color: var(--ink-4); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.dev-table tbody tr:last-child td { border-bottom: 0; }
.dev-table tbody tr:hover td { background: var(--brand-soft); }
.dev-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dev-table-link { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 700; text-decoration: none; }
.dev-table-link:hover { color: var(--primary); }
.dev-table .fact-value.brand { color: var(--primary); font-weight: 800; }

@media (max-width: 1080px) {
    .catalog { grid-template-columns: 1fr; }
    .catalog-side { position: static; max-height: none; overflow: visible; }
    .catalog-side .filter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .catalog-side .filter-actions > div { flex-direction: row; align-items: center !important; }
    .catalog-side .filter-actions .btn { width: auto; }
}
@media (max-width: 760px) {
    .catalog-side .filter-grid { grid-template-columns: 1fr; }
    .flat-card { grid-template-columns: 64px minmax(0, 1fr); padding: 12px; gap: 12px; }
    .flat-card-plan { width: 64px; height: 64px; font-size: 1.7rem; }
    .flat-card-side { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; text-align: left; padding-top: 10px; border-top: 1px dashed var(--line); }
    .flat-card-side .compare-link { margin-top: 0; }
    .page-head::before { opacity: .35; }
}

/* ── building page header inside the navy band ── */
.bp-band .page-head-inner { padding-bottom: 28px; }
.bp-band .bp-crumbs { margin: 0 0 14px; }
.bp-band .crumbs a { color: var(--on-dark); min-height: 32px; }
.bp-band .crumbs .sep { color: var(--on-dark-2); }
.bp-band .bp-head { margin-bottom: 0; }
.bp-band .bp-title { color: var(--on-primary); }
.bp-band .bp-tag { background: rgba(255,255,255,.12); color: var(--on-primary); }
.bp-band .bp-tag.is-class { background: var(--accent); color: var(--ink); }
.bp-band .bp-tag.is-ready { background: var(--on-primary); color: var(--primary); }
.bp-band .bp-loc-item { color: var(--on-primary); }
.bp-band a.bp-loc-item:hover { color: var(--accent); }
.bp-band .bp-loc-item .icon { color: var(--accent); }
.bp-band .bp-loc-muted { color: var(--on-dark); }
.bp-band .bp-head-actions .list-btn, .bp-band .bp-head-actions .fav-btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); color: var(--on-primary); }
.bp-band .bp-head-actions .list-btn:hover, .bp-band .bp-head-actions .fav-btn:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.55); color: var(--on-primary); }
.bp-band .bp-head-actions .list-btn.active, .bp-band .bp-head-actions .fav-btn.active { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.bp-gallery-wrap { padding-top: 24px; }

/* ── layout (planning) page ── */
.plan-view { display: grid; place-items: center; min-height: 0; }
.plan-view img { width: 100%; max-width: 640px; aspect-ratio: 4 / 3; object-fit: contain; }
.plan-view-empty { display: flex; align-items: center; gap: 18px; width: 100%; }
.plan-view-ico { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 6px; background: var(--canvas); color: var(--sky); font-size: 3rem; flex-shrink: 0; }
.plan-view-empty p { color: var(--ink-3); line-height: 1.55; }
.plan-view-empty strong { color: var(--ink); }
.plan-back { margin-top: 18px; }
.plan-building { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.plan-building > div:nth-last-child(-n+2) { border-bottom: 0; }
.plan-others-head { margin: 12px 0 0; }
.plan-aside { position: static; }
.plan-aside .panel { padding: 22px; border-radius: 8px; }
.plan-aside .bp-price-card { margin-bottom: 4px; }

/* ── journal article ── */
.journal-article { max-width: 760px; margin: 0; }
.journal-article-cover { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 8px; margin-bottom: 24px; }
.journal-article-lead { color: var(--ink); font-size: 1.2rem; line-height: 1.55; font-weight: 500; }
.journal-article-body { margin-top: 20px; font-size: 1.05rem; line-height: 1.75; }
.journal-article-back { margin-top: 32px; }
.prose h2 { margin: 1.6em 0 .6em; font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.prose h3 { margin: 1.4em 0 .5em; font-size: 1.15rem; }
.prose p + p { margin-top: .9em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose a { color: var(--primary); }

/* ── narrow content pages ── */
.page-narrow { max-width: 900px; }
.page-narrow .card { padding: 28px !important; border-radius: 8px; background: var(--surface); }
.page-narrow .section-head { margin-top: 8px; }
.about-steps { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.scenario-card { border-radius: 6px; background: var(--surface); }
.page-actions { display: flex; justify-content: flex-end; }

/* ── auth ── */
.auth-card { max-width: 460px; margin: 0 auto; padding: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 18px 44px rgba(27,42,61,.08); }
.auth-card h1 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; }
.auth-card .btn.primary, .auth-card button[type=submit] { min-height: 48px; font-weight: 700; }

/* ── empty states, pagination ── */
.empty { padding: 40px 24px; border: 1px dashed var(--line-2); border-radius: 8px; background: var(--surface); text-align: center; }
.empty h3 { font-size: 1.25rem; font-weight: 800; }
.empty p { max-width: 520px; margin: 8px auto 0; color: var(--muted); }
.empty-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pagination, nav[aria-label*="агинац"] { margin-top: 24px; }

/* ── compare / budget tables share the registry look ── */
.compare-wrap, .budget-table-wrap, .acct-table-wrap { border-radius: 8px; background: var(--surface); }
.compare-table thead th, .budget-table thead th { background: var(--canvas); }

@media (max-width: 1080px) {
    .plan-building { grid-template-columns: 1fr; }
    .plan-building > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
    .plan-layout .bp-aside { order: 0; }
}
@media (max-width: 760px) {
    .about-steps { grid-template-columns: 1fr !important; }
    .plan-view-empty { flex-direction: column; text-align: center; }
    .auth-card { padding: 22px; }
}
.page-narrow { max-width: 1180px; }
.page-narrow > * { max-width: 900px; }
@media (max-width: 600px) {
    .catalog-side .filter-grid.filter-grid--collapsed { display: none; }
    .catalog-side .filter-panel { padding: 14px; }
}

/* ── building page: link from the trimmed plan list to the flat catalogue ── */
.bp-plans-more { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; min-height: 48px; margin-top: 12px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); color: var(--primary); font-weight: 700; text-decoration: none; }
.bp-plans-more:hover { border-color: var(--primary); background: var(--brand-soft); }


/* ════════════════════════════════════════════════════════════
   Palette v2 — bring back the live site's light blue (#4A76A8)
   and add a second accent, Petersburg gold.
   Roles: navy = structure, blue = links / active / secondary
   surfaces, green = action (CTA, on sale), gold = distinction
   (class, promo, best price). Colours only via these tokens.
   ════════════════════════════════════════════════════════════ */
:root {
    --blue: #4A76A8;
    --blue-strong: #3B6594;
    --blue-light: #A9C6E6;
    --blue-soft: #E8EFF8;
    --blue-line: #C5D7EC;
    --gold: #E2A63B;
    --gold-ink: #8A5C0C;
    --gold-soft: #FBF1DD;
    --sky: var(--blue);
    --brand-soft: var(--blue-soft);
}

/* links and headings accents */
a { color: var(--blue); }
.home-kicker { color: var(--blue); }
.home-head.is-inverse .home-kicker, .bp-inquiry-copy .home-kicker { color: var(--blue-light); }

/* header: blue top strip over the white bar, as on domselect.ru */
.topbar { background: var(--blue); color: rgba(255,255,255,.88); }
.topbar-links a { color: rgba(255,255,255,.88); }
.topbar-links a:hover { color: var(--on-primary); }
.topbar-city .icon { color: var(--on-primary); }
.site-header .nav-link:hover, .site-header .nav-link.is-current { color: var(--blue); }
.site-header .nav-link::after { background: var(--blue); }
.hdr-tool:hover { background: var(--blue-soft); color: var(--blue); }

/* hero: navy on the left melting into the brand blue on the right */
.home-hero { background:
    linear-gradient(90deg, color-mix(in srgb, var(--primary-strong) 95%, transparent) 0%, color-mix(in srgb, var(--primary) 84%, transparent) 45%, color-mix(in srgb, var(--blue) 58%, transparent) 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--primary-strong) 40%, transparent) 0%, transparent 30%, color-mix(in srgb, var(--primary-strong) 70%, transparent) 100%),
    var(--city-hero) center 40% / cover no-repeat,
    var(--primary-strong); }
.home-hero-title span { color: var(--blue-light); }

/* inner page band: same navy → blue sweep instead of a flat navy block */
.page-head { background: linear-gradient(110deg, var(--primary-strong) 0%, var(--primary) 48%, var(--blue) 100%); }
.page-head::after { background: linear-gradient(110deg, var(--primary) 0%, var(--blue) 100%); }
.page-head-facts li { border-color: rgba(255,255,255,.26); background: rgba(255,255,255,.1); }
.page-head-facts .icon { color: var(--blue-light); }

/* active / selected states */
.pill.is-active { background: var(--blue); border-color: var(--blue); color: var(--on-primary); }
.pill:hover { border-color: var(--blue); }
.view-toggle button.is-active { background: var(--blue); }
.bp-tabs-link:hover, .bp-tabs-link.is-active { color: var(--blue); }
.bp-tabs-link::after { background: var(--blue); }
.bp-room-tabs button.is-active { background: var(--blue); border-color: var(--blue); }
.bp-room-tabs button.is-active span { color: rgba(255,255,255,.82); }
.chip-links a:hover { border-color: var(--blue); color: var(--blue); }
.chip-links a:hover .link-count { background: var(--blue-soft); color: var(--blue); }
.pager .active, .pager [aria-current="page"] { background: var(--blue); border-color: var(--blue); color: var(--on-primary); }
.btn:hover { border-color: var(--blue); }
.btn.primary:hover { background: var(--blue); border-color: var(--blue); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-color: var(--blue); }

/* icon tiles pick up the light blue tint */
.home-room-ico, .collection-ico, .program-ico, .link-card-ico, .plan-view-ico, .flat-card-plan { background: var(--blue-soft); color: var(--blue); }

/* building cards */
.building-card-tag { color: var(--blue-strong); }
.building-card-tag.is-ready { background: var(--blue); color: var(--on-primary); }
.building-card-class { background: var(--gold); color: var(--ink); }
.building-card:hover { border-color: var(--blue-line); }

/* gold: class, promotions, best offers */
.bp-tag.is-class, .bp-band .bp-tag.is-class { background: var(--gold); color: var(--ink); }
.bp-band .bp-tag.is-ready { background: var(--blue); color: var(--on-primary); }
.promo-badge { background: var(--gold); color: var(--ink); }
.promo-discount { background: var(--gold-soft); color: var(--gold-ink); }
.promo-card { border-left: 3px solid var(--gold); }
.home-kicker.is-gold { color: var(--gold-ink); }

/* footer: navy with blue headings and a blue hairline on top */
.footer { border-top: 4px solid var(--blue); }
.footer h4 { color: var(--blue-light); }

/* placeholder illustration: a lighter, bluer sky with gold roofs */
.bv-sky-top { stop-color: var(--blue-light); }
.bv-sky-bottom { stop-color: var(--blue-soft); }
.bv-sun { fill: var(--gold); opacity: .45; }
.bv-far { fill: var(--blue); opacity: .25; }
.bv-tower-a { fill: var(--blue); }
.bv-tower-b { fill: var(--primary); }
.bv-tower-c { fill: var(--blue-strong); }
.bv-roof { fill: var(--gold); }
.pager a:hover { border-color: var(--blue); color: var(--blue); }

/* ── palette v2.1: navy → blue gradient hero and footer ──
   One sweep (--sweep) for both, so the page opens and closes in the same light. */
:root {
    --sweep: linear-gradient(110deg, var(--primary-strong) 0%, var(--primary) 40%, var(--blue) 100%);
}

/* hero: the gradient leads, the city photo only shows through faintly */
.home-hero { background:
    linear-gradient(110deg, color-mix(in srgb, var(--primary-strong) 94%, transparent) 0%, color-mix(in srgb, var(--primary) 88%, transparent) 40%, color-mix(in srgb, var(--blue) 86%, transparent) 100%),
    var(--city-hero) center 40% / cover no-repeat,
    var(--primary-strong); }
.neva-strip::before { background: linear-gradient(110deg, var(--primary) 0%, var(--blue) 100%); }
.neva-strip--hero::after { background: none; }

/* footer: the whole block carries the sweep; the Neva strip fades into it */
.footer { background: var(--sweep); border-top: 0; }
.footer-main { background: transparent; }
.neva-strip--footer { background-color: transparent; -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1) 50%, transparent 100%); mask-image: linear-gradient(180deg, rgba(0,0,0,1) 50%, transparent 100%); }
.neva-strip--footer::after { background: linear-gradient(180deg, color-mix(in srgb, var(--primary-strong) 30%, transparent) 0%, transparent 35%); }
.footer a { color: rgba(255,255,255,.82); }
.footer a:hover { color: var(--on-primary); }
.footer-bottom { border-top-color: rgba(255,255,255,.18); color: rgba(255,255,255,.66); }

/* "Часто ищут" chips: stay white on the dark hero, fill on hover */
.home-popular-queries > span { color: rgba(255,255,255,.72); }
.home-popular-queries a, .home-popular-queries a:visited { color: var(--on-primary); border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.06); }
.home-popular-queries a:hover, .home-popular-queries a:focus-visible { color: var(--primary); background: var(--on-primary); border-color: var(--on-primary); }

/* ── palette v2.2: a clearly visible navy → blue sweep ──
   v2.1 let the photo show through and spread the blue over the full width,
   so the screen still read as flat navy. Now the gradient is nearly opaque,
   reaches the brand blue by two thirds and runs diagonally, so the change of
   colour is visible on a phone as well. */
:root {
    --sweep: linear-gradient(125deg, var(--primary-strong) 0%, var(--primary) 30%, var(--blue) 72%, var(--blue-strong) 100%);
}
.home-hero { background:
    linear-gradient(125deg, color-mix(in srgb, var(--primary-strong) 97%, transparent) 0%, color-mix(in srgb, var(--primary) 94%, transparent) 30%, color-mix(in srgb, var(--blue) 92%, transparent) 72%, color-mix(in srgb, var(--blue-strong) 94%, transparent) 100%),
    var(--city-hero) center 40% / cover no-repeat,
    var(--sweep); }
.neva-strip::before { background: linear-gradient(125deg, var(--primary) 0%, var(--blue) 70%); }
.neva-strip--hero { opacity: .9; }
@media (max-width: 760px) {
    :root { --sweep: linear-gradient(160deg, var(--primary-strong) 0%, var(--primary) 35%, var(--blue) 100%); }
    .home-hero { background:
        linear-gradient(160deg, color-mix(in srgb, var(--primary-strong) 97%, transparent) 0%, color-mix(in srgb, var(--primary) 94%, transparent) 35%, color-mix(in srgb, var(--blue) 92%, transparent) 100%),
        var(--city-hero) center 40% / cover no-repeat,
        var(--sweep); }
}


/* ════════════════════════════════════════════════════════════
   Cards v2 — navy → blue instead of flat navy.
   Every card shares the same vocabulary:
   · icon tiles and letter logos carry the brand sweep with a white glyph;
   · a faint blue wash in the top-left corner of the card;
   · hover = blue border + blue-tinted shadow, never a navy fill;
   · secondary figures (counts, "from" prices) in the strong blue.
   ════════════════════════════════════════════════════════════ */
:root {
    --sweep-tile: linear-gradient(135deg, var(--primary) 0%, var(--blue) 100%);
    --card-wash: linear-gradient(155deg, var(--blue-soft) 0%, var(--surface) 46%);
    --card-shadow-hover: 0 14px 34px color-mix(in srgb, var(--blue) 20%, transparent);
}

/* icon tiles and logo squares */
.home-room-ico, .collection-ico, .program-ico, .link-card-ico, .developer-logo:not(.has-image) {
    background: var(--sweep-tile); color: var(--on-primary);
    box-shadow: 0 6px 14px color-mix(in srgb, var(--blue) 26%, transparent);
}
.collection:hover .collection-ico, .program:hover .program-ico { background: var(--sweep-tile); filter: brightness(1.12); }

/* light cards: a faint blue wash and blue hover */
.home-room-tile, .collection, .program, .dev-card, .link-card, .home-article {
    background: var(--card-wash); border-color: var(--blue-line);
}
.home-room-tile:hover, .collection:hover, .program:hover, .dev-card:hover, .home-article:hover, .article-card:hover, .flat-card:hover {
    border-color: var(--blue); box-shadow: var(--card-shadow-hover);
}
.home-room-text span, .collection-count { color: var(--blue-strong); }
.collection-go { color: var(--blue); }
.collection:hover .collection-go { background: var(--blue); color: var(--on-primary); }
.dev-card-facts { border-top-color: var(--blue-line); }
.dev-card-facts b { color: var(--blue-strong); }
.home-article em { color: var(--blue); }
.home-article time, .article-card-date { color: var(--blue); }
.link-card li a { color: var(--blue); }

/* building card: blue-tinted shade under the price, blue actions */
.building-card { border-color: var(--blue-line); }
.building-card:hover { border-color: var(--blue); box-shadow: var(--card-shadow-hover); }
.building-card-media { background: var(--blue-soft); }
.building-card-shade { background:
    linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--primary-strong) 55%, transparent) 78%, color-mix(in srgb, var(--primary) 82%, transparent) 100%),
    linear-gradient(90deg, transparent 40%, color-mix(in srgb, var(--blue) 30%, transparent) 100%); }
.building-card-title a:hover { color: var(--blue); }
.building-card-rooms { border-top-color: var(--blue-line); }
.building-card-rooms dd { color: var(--primary); }
.building-card-foot { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--blue-soft); background: linear-gradient(180deg, var(--surface) 0%, var(--blue-soft) 100%); }
.building-card-more { color: var(--blue); }
.building-card-more:hover { color: var(--primary); }
.building-card-foot .compare-link { border-color: var(--blue-line); color: var(--blue-strong); }
.building-card-foot .compare-link:hover { border-color: var(--blue); background: var(--blue-soft); color: var(--primary); }
.building-card .fav-btn { color: var(--blue); }

/* flat cards and the building price card */
.flat-card { border-color: var(--blue-line); }
.flat-card-building a { color: var(--blue); }
.flat-card-meter { color: var(--blue-strong); }
.bp-price-card { position: relative; overflow: hidden; border-color: var(--blue-line); }
.bp-price-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--sweep); }
.bp-aside-chip { background: var(--blue-soft); color: var(--blue-strong); }

/* developer registry table and article cards */
.article-card { border-color: var(--blue-line); }
.article-card-media { background: linear-gradient(135deg, var(--blue-soft), var(--blue-line)); }
.dev-table-wrap { border-color: var(--blue-line); }
.dev-table thead th { background: var(--blue-soft); color: var(--blue-strong); }
.dev-table .fact-value.brand { color: var(--blue-strong); }

/* ── cards v2.1: a stronger blue glow on the light cards ──
   Building cards keep their photo and stay out of this. The glow is a
   radial blue light from the top-left corner over a soft blue wash that
   now reaches past the middle of the card. */
:root {
    --card-glow:
        radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--blue) 24%, transparent) 0%, color-mix(in srgb, var(--blue) 8%, transparent) 45%, transparent 75%),
        linear-gradient(155deg, var(--blue-soft) 0%, color-mix(in srgb, var(--blue-soft) 55%, var(--surface)) 55%, var(--surface) 100%);
}
.home-room-tile, .collection, .program, .dev-card, .link-card, .home-article,
.article-card-body, .page-card, .scenario-card, .page-narrow .card, .auth-card {
    background: var(--card-glow);
    border-color: var(--blue-line);
}
.home-room-tile:hover, .collection:hover, .program:hover, .dev-card:hover, .link-card:hover, .home-article:hover {
    background:
        radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--blue) 32%, transparent) 0%, color-mix(in srgb, var(--blue) 12%, transparent) 50%, transparent 80%),
        linear-gradient(155deg, var(--blue-soft) 0%, color-mix(in srgb, var(--blue-soft) 70%, var(--surface)) 60%, var(--surface) 100%);
}

/* ── cards v2.2: same glow, lighter ── */
:root {
    --card-glow:
        radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--blue) 13%, transparent) 0%, color-mix(in srgb, var(--blue) 4%, transparent) 45%, transparent 75%),
        linear-gradient(155deg, var(--blue-soft) 0%, color-mix(in srgb, var(--blue-soft) 40%, var(--surface)) 55%, var(--surface) 100%);
}
.home-room-tile:hover, .collection:hover, .program:hover, .dev-card:hover, .link-card:hover, .home-article:hover {
    background:
        radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--blue) 19%, transparent) 0%, color-mix(in srgb, var(--blue) 7%, transparent) 50%, transparent 80%),
        linear-gradient(155deg, var(--blue-soft) 0%, color-mix(in srgb, var(--blue-soft) 55%, var(--surface)) 60%, var(--surface) 100%);
}

/* ── cards v2.3: lighter still ── */
:root {
    --card-glow:
        radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--blue) 7%, transparent) 0%, color-mix(in srgb, var(--blue) 2%, transparent) 45%, transparent 75%),
        linear-gradient(155deg, color-mix(in srgb, var(--blue-soft) 70%, var(--surface)) 0%, color-mix(in srgb, var(--blue-soft) 25%, var(--surface)) 55%, var(--surface) 100%);
}
.home-room-tile:hover, .collection:hover, .program:hover, .dev-card:hover, .link-card:hover, .home-article:hover {
    background:
        radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--blue) 12%, transparent) 0%, color-mix(in srgb, var(--blue) 4%, transparent) 50%, transparent 80%),
        linear-gradient(155deg, var(--blue-soft) 0%, color-mix(in srgb, var(--blue-soft) 40%, var(--surface)) 60%, var(--surface) 100%);
}


/* ════════════════════════════════════════════════════════════
   Building page v3: key figures, price table, live map, nearby
   ════════════════════════════════════════════════════════════ */

/* key figures strip at the top of "О комплексе" */
.bp-keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 14px; }
.bp-key { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border: 1px solid var(--blue-line); border-radius: 8px; background: var(--card-glow); }
.bp-key span { color: var(--blue); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.bp-key strong { color: var(--primary); font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.bp-key small { color: var(--muted); font-size: .8rem; }

/* facts: blue tiles instead of grey */
.bp-fact { background: var(--card-glow); border: 1px solid var(--blue-line); }
.bp-fact-ico { background: var(--sweep-tile); color: var(--on-primary); }

/* price table by room count */
.bp-price-table-wrap { overflow-x: auto; border: 1px solid var(--blue-line); border-radius: 8px; }
.bp-price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.bp-price-table th, .bp-price-table td { padding: 13px 16px; border-bottom: 1px solid var(--blue-soft); text-align: left; vertical-align: middle; white-space: nowrap; }
.bp-price-table thead th { background: var(--blue-soft); color: var(--blue-strong); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.bp-price-table tbody th { color: var(--ink); font-weight: 700; }
.bp-price-table tbody tr:last-child > * { border-bottom: 0; }
.bp-price-table tbody tr:hover > * { background: color-mix(in srgb, var(--blue-soft) 55%, var(--surface)); }
.bp-price-table .num { text-align: right; }
.bp-price-table td strong { display: block; color: var(--primary); font-weight: 800; }
.bp-price-table td small { display: block; color: var(--muted); font-size: .78rem; }

/* location: facts on the left, distances on the right, map full width below */
.bp-location { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
.bp-distances { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; }
.bp-distances li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--blue-line); border-radius: 8px; background: var(--card-glow); }
.bp-distances .icon { grid-row: span 2; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 6px; background: var(--sweep-tile); color: var(--on-primary); font-size: 1.05rem; }
.bp-distances span { color: var(--muted); font-size: .82rem; }
.bp-distances strong { color: var(--ink); font-weight: 700; }
.bp-map-live { position: relative; margin-top: 18px; height: clamp(300px, 38vw, 440px); border: 1px solid var(--blue-line); border-radius: 8px; overflow: hidden; background: var(--blue-soft); }
.bp-map-live iframe { display: block; width: 100%; height: 100%; border: 0; }
.bp-map-open { position: absolute; left: 14px; bottom: 14px; background: var(--surface); border-color: var(--surface); color: var(--primary); font-weight: 700; border-radius: 6px; box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 22%, transparent); }
.bp-map-open:hover { background: var(--blue); border-color: var(--blue); color: var(--on-primary); }
.bp-location + .bp-map-btn { position: static; margin-top: 14px; }

/* nearby complexes, numbered like the green pins on the map */
.bp-nearby { margin-top: 18px; }
.bp-nearby h3 { margin-bottom: 10px; font-size: 1.05rem; font-weight: 800; }
.bp-nearby ol { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; }
.bp-nearby li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; border: 1px solid var(--blue-line); border-radius: 6px; background: var(--surface); }
.bp-nearby li:hover { border-color: var(--blue); }
.bp-nearby-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--ink); font-size: .8rem; font-weight: 800; }
.bp-nearby-main { display: flex; flex-direction: column; min-width: 0; }
.bp-nearby-main a { overflow: hidden; color: var(--ink); font-weight: 700; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.bp-nearby-main a::after { content: ""; position: absolute; inset: 0; }
.bp-nearby li { position: relative; }
.bp-nearby-main a:hover { color: var(--blue); }
.bp-nearby-meta { color: var(--muted); font-size: .8rem; }
.bp-nearby li > strong { color: var(--primary); font-size: .9rem; white-space: nowrap; }

/* aside price card: quick counts */
.bp-price-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; padding: 10px 12px; border-radius: 6px; background: var(--blue-soft); color: var(--ink-3); font-size: .84rem; }
.bp-price-stats strong { color: var(--primary); }

@media (max-width: 760px) {
    .bp-location { grid-template-columns: 1fr; }
    .bp-nearby ol { grid-template-columns: 1fr; }
    .bp-key strong { font-size: 1.25rem; }
    .bp-map-live { height: 320px; }
}

/* ── building map: Leaflet canvas and brand markers ── */
.bp-map-canvas { width: 100%; height: 100%; }
.bp-map-live .leaflet-container { font: inherit; background: var(--blue-soft); }
.bp-map-open { z-index: 500; }
.bp-pin-wrap { background: none; border: 0; }
.bp-pin { display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--surface); border-radius: 50%; background: var(--accent); color: var(--ink); font-size: .8rem; font-weight: 800; box-shadow: 0 3px 10px color-mix(in srgb, var(--primary) 35%, transparent); cursor: pointer; }
.bp-pin.is-main { width: 44px; height: 44px; border: 3px solid var(--surface); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--sweep-tile); box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 45%, transparent); }
.bp-pin.is-main::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); }
.bp-map-live .leaflet-tooltip { padding: 6px 10px; border: 0; border-radius: 6px; color: var(--ink); font-size: .84rem; box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 22%, transparent); }

/* key figures: four in a row in the main column, two on phones */
.bp-keys { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1200px) { .bp-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bp-key strong { font-size: 1.3rem; }
/* Leaflet panes use z-index 400–1000; keep them inside the map box so they never cover the sticky header and tabs. */
.bp-map-live { isolation: isolate; z-index: 0; }

/* ── Building page v3.1: the description reads as a text, not a footnote ── */
.bp-about { margin: 6px 0 18px; padding: 20px 22px; border: 1px solid var(--blue-line); border-radius: 8px; background: var(--card-glow); }
.bp-about-title { margin: 0 0 10px; color: var(--primary); font-size: 1.08rem; font-weight: 800; }
.bp-about-text { max-height: 15em; color: var(--ink-2); font-size: .98rem; line-height: 1.65; }
.bp-about-text[data-short] { max-height: none; }
.bp-about-text[data-short]::after { display: none; }
.bp-about-text::after { background: linear-gradient(180deg, transparent, var(--surface)); height: 4em; }
.bp-about-text p { margin: 0 0 .8em; }
.bp-about-text h3 { margin: 1.1em 0 .35em; color: var(--ink); font-size: 1rem; font-weight: 800; }
.bp-about-text > h3:first-child { margin-top: 0; }
.bp-about-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 0; border: 0; background: none; color: var(--blue); font: inherit; font-weight: 700; cursor: pointer; }
.bp-about-more:hover { color: var(--primary); }
.bp-about-more .icon, .bp-about-more svg { width: 18px; height: 18px; transition: transform .2s; }
.bp-about-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.bp-about-summary { margin: 0 0 8px; color: var(--ink); line-height: 1.6; }
.bp-about .bp-muted { margin: 0; font-size: .86rem; }


/* ════════════════════════════════════════════════════════════
   Developers registry v2: leaders + searchable table
   ════════════════════════════════════════════════════════════ */
.dev-leaders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 40px; }
.dev-leader { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid var(--blue-line); border-radius: 8px; background: var(--card-glow); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.dev-leader:hover { border-color: var(--blue); box-shadow: var(--card-shadow-hover); transform: translateY(-2px); }
.dev-leader-rank { position: absolute; top: 14px; right: 16px; color: var(--blue-line); font-size: 2rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.dev-leader-head { display: flex; align-items: center; gap: 12px; min-width: 0; padding-right: 34px; }
.dev-leader .developer-logo { flex: none; width: 52px; height: 52px; font-size: 1.4rem; border-radius: 6px; }
.dev-leader-name { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dev-leader-name strong { color: var(--ink); font-size: 1.06rem; line-height: 1.25; overflow-wrap: anywhere; }
.dev-leader-name small { overflow: hidden; color: var(--muted); font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.dev-leader-stats { display: flex; flex-wrap: wrap; gap: 6px; }
.dev-leader-stats span { padding: 4px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--ink-2); font-size: .82rem; }
.dev-leader-stats b { color: var(--primary); font-variant-numeric: tabular-nums; }
.dev-leader-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--blue-line); }
.dev-leader-price { color: var(--primary); font-size: 1.1rem; font-weight: 800; }
.dev-leader-go { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); font-size: .88rem; font-weight: 700; }
.dev-leader-go svg { width: 16px; height: 16px; transition: transform .15s; }
.dev-leader:hover .dev-leader-go svg { transform: translateX(3px); }

.dev-registry-box { display: flex; flex-direction: column; gap: 12px; }
.dev-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px; border: 1px solid var(--blue-line); border-radius: 8px; background: var(--blue-soft); }
.dev-search { position: relative; flex: 1 1 280px; display: flex; align-items: center; }
.dev-search svg { position: absolute; left: 12px; width: 18px; height: 18px; color: var(--blue); pointer-events: none; }
.dev-search input { width: 100%; height: 42px; padding: 0 12px 0 38px; border: 1px solid var(--blue-line); border-radius: 6px; background: var(--surface); color: var(--ink); font: inherit; }
.dev-search input:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: var(--blue); }
.dev-sort { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: 6px; background: var(--surface); border: 1px solid var(--blue-line); }
.dev-sort button { padding: 7px 12px; border: 0; border-radius: 4px; background: none; color: var(--ink-2); font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; }
.dev-sort button:hover { color: var(--blue); }
.dev-sort button.is-active { background: var(--blue); color: var(--on-primary); }
.dev-toggle { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: .88rem; cursor: pointer; }
.dev-toggle input { width: 18px; height: 18px; accent-color: var(--blue); }
.dev-toggle span { color: var(--muted); }

.dev-table-wrap { border-color: var(--blue-line); border-radius: 8px; box-shadow: none; }
.dev-table td { padding-top: 14px; padding-bottom: 14px; }
.dev-table tbody tr:hover td { background: color-mix(in srgb, var(--blue-soft) 60%, var(--surface)); }
.dev-table .developer-logo { flex: none; width: 40px; height: 40px; font-size: 1.05rem; border-radius: 6px; }
.dev-table-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dev-table-name { color: var(--ink); font-weight: 700; }
.dev-table-link:hover .dev-table-name { color: var(--blue); }
.dev-table-who small { color: var(--muted); font-size: .8rem; font-weight: 400; }
.dev-table td.num b { color: var(--primary); }
.dev-chip { display: inline-block; margin: 2px 4px 2px 0; padding: 3px 9px; border-radius: 999px; background: var(--blue-soft); color: var(--ink-2); font-size: .8rem; white-space: nowrap; }
.dev-chip.is-more { background: var(--surface); border: 1px solid var(--blue-line); color: var(--blue-strong); cursor: help; }
.dev-table .fact-value.brand { color: var(--primary); white-space: nowrap; }
.dev-empty { margin: 0; padding: 28px; color: var(--muted); text-align: center; }

@media (max-width: 1100px) { .dev-leaders { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
    .dev-leaders { grid-template-columns: minmax(0, 1fr); }
    .dev-col-districts { display: none; }
    .dev-sort { width: 100%; }
    .dev-sort button { flex: 1; }
}

/* ════════════════════════════════════════════════════════════
   Mortgage page v2
   ════════════════════════════════════════════════════════════ */
.mg-h2 { margin: 0 0 18px; color: var(--ink); font-size: 1.3rem; font-weight: 800; }
.mg-calc { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 20px; align-items: stretch; }
.mg-inputs { padding: 24px; border: 1px solid var(--blue-line); border-radius: 8px; background: var(--card-glow); }
.mg-field { padding: 16px 0; border-top: 1px solid var(--blue-line); }
.mg-field:first-of-type { border-top: 0; padding-top: 0; }
.mg-field-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.mg-field-row label { color: var(--ink-2); font-weight: 700; }
.mg-val { color: var(--muted); font-variant-numeric: tabular-nums; }
.mg-val b { color: var(--primary); font-size: 1.1rem; }
.mg-input-wrap { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 700; }
.mg-input-wrap input { width: 150px; height: 38px; padding: 0 10px; border: 1px solid var(--blue-line); border-radius: 6px; background: var(--surface); color: var(--primary); font: inherit; font-size: 1.05rem; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.mg-input-wrap input:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
.mg input[type=range] { width: 100%; accent-color: var(--blue); }
.mg-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mg-presets button { padding: 5px 11px; border: 1px solid var(--blue-line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font: inherit; font-size: .8rem; cursor: pointer; }
.mg-presets button:hover { border-color: var(--blue); color: var(--blue); }
.mg-presets button.is-active { border-color: var(--blue); background: var(--blue); color: var(--on-primary); }
.mg-note { margin: 10px 0 0; color: var(--muted); font-size: .8rem; }

.mg-result { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: 8px; background: var(--sweep); color: var(--on-primary); overflow: hidden; }
.mg-result::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 90% 8%, color-mix(in srgb, var(--blue-light) 35%, transparent), transparent 55%); pointer-events: none; }
.mg-result > * { position: relative; }
.mg-result-label { color: rgba(255,255,255,.72); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mg-result-num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mg-result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); }
.mg-result-grid dt { color: rgba(255,255,255,.68); font-size: .78rem; }
.mg-result-grid dd { margin: 2px 0 0; font-size: 1.08rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.mg-afford { display: flex; align-items: baseline; gap: 10px; padding: 12px 14px; border-radius: 6px; background: rgba(255,255,255,.1); }
.mg-afford strong { color: var(--gold); font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.mg-afford span { color: rgba(255,255,255,.85); font-size: .9rem; }
.mg-result .btn.cta { margin-top: auto; }
.mg-result-note { margin: 0; color: rgba(255,255,255,.62); font-size: .76rem; line-height: 1.45; }

.mg-section { margin-top: 44px; }
.mg-rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.mg-room { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1px solid var(--blue-line); border-radius: 8px; background: var(--card-glow); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.mg-room:hover { border-color: var(--blue); box-shadow: var(--card-shadow-hover); }
.mg-room-label { color: var(--blue); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.mg-room-price { color: var(--ink); font-size: 1.2rem; font-weight: 800; }
.mg-room-pay { color: var(--ink-2); font-size: .92rem; }
.mg-room-pay b { color: var(--primary); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.mg-room-count { margin-top: 6px; color: var(--muted); font-size: .8rem; }

.mg-programs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mg-program { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--blue-line); border-radius: 8px; background: var(--card-glow); }
.mg-program-ico { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 6px; background: var(--sweep-tile); color: var(--on-primary); }
.mg-program-ico svg { width: 22px; height: 22px; }
.mg-program h3 { margin: 4px 0 0; color: var(--ink); font-size: 1.05rem; font-weight: 800; }
.mg-program p { margin: 0; color: var(--ink-3); font-size: .9rem; line-height: 1.5; }
.mg-program-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; }
.mg-program-foot a { color: var(--blue); font-size: .88rem; font-weight: 700; text-decoration: none; }
.mg-program-foot a:hover { color: var(--primary); }
.mg-program-foot a b { display: inline-block; min-width: 26px; padding: 1px 7px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); text-align: center; }
.mg-program-rate { padding: 5px 10px; border: 1px solid var(--blue-line); border-radius: 6px; background: var(--surface); color: var(--ink-2); font: inherit; font-size: .82rem; cursor: pointer; }
.mg-program-rate:hover { border-color: var(--blue); color: var(--blue); }

.mg-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.mg-steps li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 52px 18px 18px; border: 1px solid var(--blue-line); border-radius: 8px; background: var(--surface); counter-increment: step; }
.mg-steps li::before { content: counter(step); position: absolute; top: 14px; left: 18px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sweep-tile); color: var(--on-primary); font-weight: 800; font-size: .9rem; }
.mg-steps b { color: var(--ink); }
.mg-steps span { color: var(--ink-3); font-size: .9rem; line-height: 1.5; }

.mg-faq { display: flex; flex-direction: column; gap: 8px; }
.mg-faq details { border: 1px solid var(--blue-line); border-radius: 8px; background: var(--surface); }
.mg-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; color: var(--ink); font-weight: 700; cursor: pointer; list-style: none; }
.mg-faq summary::-webkit-details-marker { display: none; }
.mg-faq summary::after { content: "+"; color: var(--blue); font-size: 1.4rem; font-weight: 400; line-height: 1; }
.mg-faq details[open] summary::after { content: "−"; }
.mg-faq details[open] { border-color: var(--blue); }
.mg-faq p { margin: 0; padding: 0 18px 16px; color: var(--ink-2); line-height: 1.6; }

.mg-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 44px; padding: 26px 28px; border-radius: 8px; background: var(--sweep); color: var(--on-primary); }
.mg-cta > div { flex: 1 1 320px; }
.mg-cta h2 { margin: 0 0 4px; font-size: 1.3rem; font-weight: 800; color: var(--on-primary); }
.mg-cta p { margin: 0; color: rgba(255,255,255,.8); }
.mg-cta-ghost { border: 1px solid rgba(255,255,255,.45); background: transparent; color: var(--on-primary); }
.mg-cta-ghost:hover { background: var(--on-primary); color: var(--primary); }

@media (max-width: 980px) {
    .mg-calc { grid-template-columns: 1fr; }
    .mg-programs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mg-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .mg-programs, .mg-steps { grid-template-columns: 1fr; }
    .mg-inputs, .mg-result { padding: 18px; }
    .mg-field-row { flex-wrap: wrap; }
    .mg-input-wrap input { width: 130px; }
}

/* ════════════════════════════════════════════════════════════
   Analytics page: one series per chart, brand blue, values as text
   ════════════════════════════════════════════════════════════ */
.an-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.an-kpi { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid var(--blue-line); border-radius: 8px; background: var(--card-glow); }
.an-kpi span { color: var(--blue); font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.an-kpi strong { color: var(--primary); font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.an-kpi small { color: var(--muted); font-size: .8rem; }
.an-kpi.is-lead { border: 0; background: var(--sweep); }
.an-kpi.is-lead span { color: rgba(255,255,255,.75); }
.an-kpi.is-lead strong { color: var(--on-primary); }
.an-kpi.is-lead small { color: rgba(255,255,255,.7); }

.an-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.an-card { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 22px; border: 1px solid var(--blue-line); border-radius: 8px; background: var(--surface); }
.an-card.is-wide { grid-column: 1 / -1; }
.an-card-head h2 { margin: 0 0 4px; color: var(--ink); font-size: 1.15rem; font-weight: 800; }
.an-card-head p { margin: 0; color: var(--muted); font-size: .88rem; }

/* horizontal bars */
.an-bars { position: relative; display: flex; flex-direction: column; gap: 4px; }
.an-bar { position: relative; display: grid; grid-template-columns: minmax(120px, 34%) minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 6px 8px; margin: 0 -8px; border-radius: 6px; outline: none; }
.an-bar:hover, .an-bar:focus-visible { background: var(--blue-soft); }
.an-bar-label { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; min-width: 0; color: var(--ink); font-size: .9rem; font-weight: 600; line-height: 1.3; }
.an-bar-label a { color: inherit; text-decoration: none; }
.an-bar-label a:hover { color: var(--blue); }
.an-bar-label small { flex-basis: 100%; color: var(--muted); font-size: .76rem; font-weight: 400; }
.an-dot { flex: none; align-self: center; width: 9px; height: 9px; border-radius: 50%; background: var(--dot, var(--blue)); }
.an-bar-track { position: relative; height: 14px; }
.an-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; background: var(--blue); transition: background .15s; }
.an-bar:hover .an-bar-fill, .an-bar:focus-visible .an-bar-fill { background: var(--primary); }
.an-bar-avg { position: absolute; top: -5px; bottom: -5px; left: var(--avg); border-left: 2px dashed var(--gold); }
.an-bar-value { min-width: 84px; color: var(--ink); font-size: .9rem; font-weight: 700; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.an-bars-legend { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--muted); font-size: .8rem; }
.an-avg-key { width: 0; height: 14px; border-left: 2px dashed var(--gold); }

/* columns */
.an-cols { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; align-items: end; gap: 3px; height: 240px; padding-top: 8px; }
.an-col { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; height: 100%; color: inherit; text-decoration: none; outline: none; }
.an-col-bar { display: block; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--blue); transition: background .15s; }
.an-col:hover .an-col-bar, .an-col:focus-visible .an-col-bar { background: var(--primary); }
.an-col-num { margin-bottom: 4px; color: var(--ink-2); font-size: .68rem; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.an-col-label { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--blue-line); color: var(--muted); font-size: .68rem; text-align: center; white-space: nowrap; }
.an-cols.is-few { gap: 12px; }
.an-cols.is-few .an-col-num { font-size: .9rem; }
.an-cols.is-few .an-col-label { font-size: .8rem; }

/* hover tooltip shared by bars and columns */
.an-bar[data-tip]::after, .an-col[data-tip]::after {
    content: attr(data-tip); position: absolute; z-index: 5; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
    width: max-content; max-width: 260px; padding: 6px 10px; border-radius: 6px; background: var(--ink); color: var(--on-primary);
    font-size: .78rem; font-weight: 600; line-height: 1.35; white-space: normal; pointer-events: none; display: none;
}
/* shown only on hover: a hidden-but-present tooltip still widens the page on phones */
.an-bar:hover::after, .an-bar:focus-visible::after, .an-col:hover::after, .an-col:focus-visible::after { display: block; }
.an-cols .an-col:first-child::after { left: 0; transform: none; }
.an-cols .an-col:last-child::after { left: auto; right: 0; transform: none; }

.an-method { margin-top: 22px; padding: 20px 22px; border-radius: 8px; background: var(--blue-soft); }
.an-method h2 { margin: 0 0 6px; color: var(--ink); font-size: 1rem; font-weight: 800; }
.an-method p { margin: 0; color: var(--ink-2); font-size: .9rem; line-height: 1.6; }

@media (max-width: 1000px) {
    .an-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .an-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .an-kpi strong { font-size: 1.35rem; }
    .an-card { padding: 16px; }
    .an-bar { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
    .an-bar-track { grid-column: 1 / -1; grid-row: 2; }
    .an-cols { height: 200px; gap: 2px; }
    .an-col-label { font-size: .58rem; }
    .an-col-num { font-size: .58rem; }
}


/* ── Header: favourites counter for guests and members alike ── */
.hdr-tool .icon { font-size: 1.15rem; }
.hdr-fav { position: relative; }
.hdr-badge { position: absolute; top: 2px; left: calc(50% + 4px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--on-primary); font-size: .68rem; font-weight: 800; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--surface); }
.hdr-fav.has-items .icon { color: var(--accent); }

/* ── Favourites page ── */
.fav-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 22px; padding: 16px 20px; border: 1px solid var(--blue-line); border-radius: 8px; background: var(--card-glow); }
.fav-bar-text { display: flex; flex: 1 1 320px; flex-direction: column; gap: 2px; }
.fav-bar-text strong { color: var(--ink); font-size: 1.02rem; }
.fav-bar-text span { color: var(--muted); font-size: .88rem; }
.fav-bar .btn .icon { margin-right: 4px; }
.fav-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 520px; margin: 10px auto; padding: 44px 24px; border: 1px dashed var(--blue-line); border-radius: 8px; background: var(--card-glow); text-align: center; }
.fav-empty-ico { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--sweep-tile); color: var(--on-primary); font-size: 1.6rem; }
.fav-empty h2 { margin: 6px 0 0; color: var(--ink); font-size: 1.3rem; font-weight: 800; }
.fav-empty p { margin: 0 0 8px; color: var(--ink-3); line-height: 1.55; }
/* ── Mega menu: compare tile — icon, title, one button ──
   .site-header .main-nav a styles every link in the nav row, so the tile
   needs the same prefix to opt out of it. */
.site-header .main-nav .mega .mega-promo { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 0; padding: 24px 18px; border-radius: 8px; background: var(--sweep); color: var(--on-primary); text-align: center; white-space: normal; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.site-header .main-nav .mega .mega-promo::after { display: none; }
.site-header .main-nav .mega .mega-promo:hover { color: var(--on-primary); box-shadow: var(--card-shadow-hover); transform: translateY(-1px); }
.site-header .main-nav .mega .mega-promo-ico { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 10px; background: var(--on-primary); box-shadow: 0 8px 20px color-mix(in srgb, var(--primary-strong) 30%, transparent); }
.site-header .main-nav .mega .mega-promo-ico img { display: block; width: 38px; height: auto; }
.site-header .main-nav .mega .mega-promo strong { color: var(--on-primary); font-size: 1.1rem; font-weight: 800; }
.site-header .main-nav .mega .mega-promo-go { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 6px; background: var(--accent); color: var(--on-primary); font-size: .88rem; font-weight: 700; white-space: nowrap; }
.site-header .main-nav .mega .mega-promo-go .icon { width: 16px; height: 16px; color: var(--on-primary); stroke: currentColor; transition: transform .15s; }
.site-header .main-nav .mega .mega-promo:hover .mega-promo-go .icon { transform: translateX(3px); }


/* ════════════════════════════════════════════════════════════
   TGB ad places (tgb.lead-box.ru). Containers come from <x-ad-slot>;
   loader.js marks them data-tgb-state = loading | filled | empty | error.
   ════════════════════════════════════════════════════════════ */
.ad-place { margin-top: 28px; margin-bottom: 28px; }
.home-sections > .ad-place { margin-top: 0; margin-bottom: 0; }
.ad-place [data-tgb-slot] { min-height: 90px; }
/* reserve the height before the block arrives, so the page does not jump */
.ad-place--home-top [data-tgb-slot],
.ad-place--home-after-collections [data-tgb-slot],
.ad-place--home-mid [data-tgb-slot],
.ad-place--catalog-inline-1 [data-tgb-slot],
.ad-place--catalog-inline-2 [data-tgb-slot],
.ad-place--listing-inline [data-tgb-slot],
.ad-place--building-after-lots [data-tgb-slot],
.ad-place--building-before-nearby [data-tgb-slot],
.ad-place--lot-after-mortgage [data-tgb-slot],
.ad-place--mortgage-after-rates [data-tgb-slot],
.ad-place--journal-inline [data-tgb-slot],
.ad-place--article-inline [data-tgb-slot] { min-height: 250px; }
.ad-place--building-sidebar [data-tgb-slot] { min-height: 250px; }

/* an empty place disappears together with its margins */
.ad-place:has([data-tgb-state="empty"]),
.ad-place:has([data-tgb-state="error"]) { display: none; }

/* "Реклама" only above a filled place */
.ad-place [data-tgb-slot][data-tgb-state="filled"]::before {
    content: "Реклама"; display: block; margin-bottom: 6px;
    color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}

/* in a card grid or a list a place takes the whole row */
.grid .ad-place--row, .flat-list .ad-place--row, .home-journal .ad-place--row { grid-column: 1 / -1; margin: 8px 0; }

/* header_top sits between the menu and the page band */
.ad-place--header-top { margin-top: 14px; margin-bottom: 14px; }
.ad-place--footer { margin-top: 40px; margin-bottom: 0; }
.bp-main .ad-place, .plan-layout .ad-place { margin-top: 0; margin-bottom: 28px; }
.bp-aside .ad-place { margin: 4px 0 0; }

/* home_sidebar: a sticky 300 px column in the free field right of the content,
   only where that field exists (content 1180 px + 2 × 340 px) */
.ad-rail { display: none; }
@media (min-width: 1880px) {
    .home-sections { position: relative; }
    .ad-rail { position: absolute; top: 0; bottom: 0; right: calc((100% - 1180px) / 2 - 330px); z-index: 5; display: block; width: 300px; margin: 0; }
    .ad-rail [data-tgb-slot] { position: sticky; top: 140px; min-height: 600px; }
}

/* mobile_sticky: pinned to the bottom of phones, never on desktop */
.ad-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; margin: 0; background: var(--surface); box-shadow: 0 -6px 18px color-mix(in srgb, var(--ink) 14%, transparent); }
.ad-sticky [data-tgb-slot] { min-height: 100px; }
.ad-sticky [data-tgb-slot][data-tgb-state="filled"]::before { display: none; }
@media (min-width: 768px) { .ad-sticky { display: none; } }
/* room for the plate, so it never covers the end of the page */
@media (max-width: 767px) { body:has(.ad-sticky [data-tgb-state="filled"]) { padding-bottom: 100px; } }
@media (max-width: 1080px) { .bp-aside .ad-place { display: none; } }
/* A filled building_sidebar makes the sticky aside taller than a laptop screen,
   and a sticky block taller than the viewport hides its bottom — the ad. */
@media (min-width: 1081px) and (max-height: 1060px) {
    .bp-aside:has(.ad-place [data-tgb-state="filled"]) { position: static; }
}

/* header_top on the home page lies on the hero itself */
.home-hero > .ad-place--on-hero { position: relative; z-index: 2; margin-top: 18px; margin-bottom: 0; }
.home-hero:has(> .ad-place--on-hero [data-tgb-state="filled"]) .home-hero-inner { padding-top: clamp(28px, 4.5vw, 64px); }
.ad-place--on-hero [data-tgb-slot][data-tgb-state="filled"]::before { color: rgba(255,255,255,.6); }


/* ── Footer: partner network and maker marks ── */
:root {
    /* LEAD BOX's own mark colour (the lit corner of its box), used only in that mark */
    --leadbox-mint: #2EE6A6;
}
.footer-partners { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 44px; padding-top: 26px; padding-bottom: 22px; border-top: 1px solid rgba(255,255,255,.18); }
.footer .footer-partner { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 7px; color: rgba(255,255,255,.66); font-size: 12px; text-decoration: none; }
.footer .footer-partner:hover { color: var(--on-primary); }
.footer-partner img { display: block; width: 140px; height: auto; filter: brightness(0) invert(1); opacity: .78; transition: opacity .15s; }
.footer-partner:hover img { opacity: 1; }
.lb-mark { display: inline-flex; align-items: center; color: var(--on-primary); font: 800 22px/1 var(--font-sans); letter-spacing: -.07em; white-space: nowrap; }
.lb-mark > span { position: relative; display: inline-block; margin-left: .07em; padding: .16em .2em .2em; border: 2px solid; transition: background .25s, color .25s; }
.lb-mark i { position: absolute; top: -.13em; right: -.13em; width: .23em; height: .23em; background: var(--leadbox-mint); transition: rotate .3s; }
.footer-maker:hover .lb-mark > span { background: var(--leadbox-mint); color: var(--ink); border-color: var(--leadbox-mint); }
.footer-maker:hover .lb-mark i { rotate: 90deg; background: var(--on-primary); }
.footer-partners + .footer-bottom { border-top: 0; }

/* ── Advertising page (/reklama) ── */
.ads-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ads-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 40px; }
.ads-stat { padding: 18px 20px; border: 1px solid var(--blue-line); border-radius: 8px; background: var(--card-glow); }
.ads-stat strong { display: block; color: var(--primary); font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ads-stat span { color: var(--muted); font-size: .88rem; }
.ads-formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ads-format { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--blue-line); border-radius: 8px; background: var(--surface); }
.ads-format-size { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-strong); font: 700 .8rem/1.3 var(--font-mono); }
.ads-format h3 { margin: 4px 0 0; color: var(--ink); font-size: 1.05rem; font-weight: 800; }
.ads-format p { margin: 0; color: var(--ink-3); font-size: .9rem; line-height: 1.5; }
.ads-format-shape { height: 70px; margin-bottom: 6px; border-radius: 6px; background: var(--blue-soft); position: relative; overflow: hidden; }
.ads-format-shape::after { content: ""; position: absolute; border-radius: 4px; background: var(--sweep-tile); }
.ads-format-shape.is-strip::after { left: 10%; right: 10%; top: 10px; height: 14px; }
.ads-format-shape.is-feed::after { left: 10%; right: 10%; top: 18px; height: 34px; }
.ads-format-shape.is-theme::after { left: 10%; right: 10%; bottom: 10px; height: 30px; }
.ads-format-shape.is-column::after { right: 10%; top: 8px; bottom: 8px; width: 22%; }
.ads-format-shape.is-article::after { left: 22%; right: 22%; top: 24px; height: 22px; }
.ads-format-shape.is-mobile::after { left: 40%; right: 40%; bottom: 6px; height: 12px; }
.ads-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ads-list { padding: 22px; border: 1px solid var(--blue-line); border-radius: 8px; background: var(--card-glow); }
.ads-list h2 { margin: 0 0 12px; color: var(--ink); font-size: 1.15rem; font-weight: 800; }
.ads-list ul { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ads-list li { position: relative; padding-left: 26px; color: var(--ink-2); line-height: 1.45; }
.ads-list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 14px; height: 14px; border-radius: 4px; background: var(--accent); }
.ads-contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 44px; padding: 32px; border-radius: 8px; background: var(--sweep); color: var(--on-primary); }
.ads-contact h2 { margin: 0 0 8px; color: var(--on-primary); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; line-height: 1.15; }
.ads-contact p { margin: 0; color: rgba(255,255,255,.82); line-height: 1.55; }
.ads-person { padding: 20px 22px; border-radius: 8px; background: var(--surface); color: var(--ink); }
.ads-person small { display: block; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ads-person strong { display: block; margin: 4px 0 12px; font-size: 1.2rem; }
.ads-person a { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 700; text-decoration: none; word-break: break-all; }
.ads-person a:hover { color: var(--primary); }
.ads-person .btn { margin-top: 14px; }

@media (max-width: 900px) {
    .ads-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ads-formats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ads-lists, .ads-contact { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .ads-formats { grid-template-columns: 1fr; }
    .ads-contact { padding: 22px; }
}
.ads-person a.btn { color: var(--on-primary); word-break: normal; }


/* ════════════════════════════════════════════════════════════
   Помощник «Домик»
   ════════════════════════════════════════════════════════════ */
/* the mark itself */
.domik { display: block; overflow: visible; }
.dk-shadow { fill: var(--primary); opacity: .18; }
.dk-s-light { stop-color: var(--surface); stop-opacity: .2; }
.dk-s-clear { stop-color: var(--surface); stop-opacity: 0; }
.dk-s-dark { stop-color: var(--ink); stop-opacity: .3; }
.dk-s-glass-hi { stop-color: var(--blue-soft); }
.dk-s-glass-lo { stop-color: color-mix(in srgb, var(--blue) 55%, var(--blue-soft)); }
.dk-s-eye-hi { stop-color: var(--surface); }
.dk-s-eye-lo { stop-color: color-mix(in srgb, var(--blue-soft) 70%, var(--blue-line)); }
.dk-s-iris-hi { stop-color: var(--blue); }
.dk-s-iris-lo { stop-color: var(--primary); }
/* кирпич и черепица */
.dk-mortar { fill: color-mix(in srgb, var(--blue-line) 70%, var(--blue)); }
.dk-brick-a { fill: var(--blue); }
.dk-brick-b { fill: color-mix(in srgb, var(--blue) 86%, var(--primary)); }
.dk-brick-c { fill: color-mix(in srgb, var(--blue) 92%, var(--surface)); }
.dk-brick-hi { fill: var(--surface); opacity: .14; }
.dk-wall-edge { fill: none; stroke: var(--primary); stroke-width: .8; opacity: .45; }
.dk-tile-gap { fill: color-mix(in srgb, var(--primary) 70%, var(--ink)); }
.dk-tile { fill: var(--primary); stroke: color-mix(in srgb, var(--primary) 60%, var(--ink)); stroke-width: .35; }
.dk-tile--b { fill: color-mix(in srgb, var(--primary) 90%, var(--blue)); }
.dk-tile-hi { fill: none; stroke: var(--blue); stroke-width: .45; stroke-linecap: round; opacity: .55; }
.dk-roof-edge { fill: none; stroke: color-mix(in srgb, var(--primary) 60%, var(--ink)); stroke-width: .9; stroke-linejoin: round; }
.dk-ridge { fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; }
.dk-cap-shade { fill: var(--ink); opacity: .35; }
.dk-chimney-cap { fill: var(--primary); }
.dk-cap-hi { fill: var(--surface); opacity: .3; }
.dk-eave-shade { fill: var(--ink); opacity: .32; }
.dk-eave-under { fill: var(--ink); opacity: .3; }
.dk-eave { fill: var(--blue); }
.dk-eave-hi { fill: var(--surface); opacity: .3; }
/* дым: клубы по очереди поднимаются, растут, относятся вправо и тают */
.dk-smoke circle { fill: color-mix(in srgb, var(--blue) 40%, var(--blue-soft)); opacity: 0; transform-box: fill-box; transform-origin: center; animation: dk-puff 3.6s ease-out infinite; }
.dk-smoke circle:nth-child(2) { animation-delay: .9s; }
.dk-smoke circle:nth-child(3) { animation-delay: 1.8s; }
.dk-smoke circle:nth-child(4) { animation-delay: 2.7s; }
@keyframes dk-puff {
    0% { transform: translate(0, 0) scale(.35); opacity: 0; }
    15% { opacity: .95; }
    60% { opacity: .6; }
    100% { transform: translate(6px, -15px) scale(1.9); opacity: 0; }
}
.dk-window-shade { fill: var(--ink); opacity: .3; }
.dk-window-frame { fill: var(--surface); }
.dk-window-bars { fill: none; stroke: var(--primary); stroke-width: 1.1; }
.dk-window-rim { fill: none; stroke: var(--blue); stroke-width: .7; }
.dk-window-glint { fill: none; stroke: var(--surface); stroke-width: .9; stroke-linecap: round; }
.dk-socket { fill: var(--primary); opacity: .45; }
.dk-pupil { fill: var(--ink); }
.dk-glint { fill: var(--surface); }
.dk-lid { fill: none; stroke: var(--primary); stroke-width: .9; stroke-linecap: round; opacity: .3; }
.dk-pupils { transition: transform .12s ease-out; }
.dk-eyes { transform-box: fill-box; transform-origin: center; animation: dk-blink 5.5s infinite; }
@keyframes dk-blink { 0%, 93%, 100% { transform: scaleY(1); } 95.5% { transform: scaleY(.08); } }
.is-thinking .dk-eyes { animation-duration: 1.4s; }
.is-thinking .domik { animation: dk-bob 1s ease-in-out infinite; }
@keyframes dk-bob { 50% { transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .dk-eyes, .dk-smoke circle, .is-thinking .domik { animation: none; } .dk-smoke circle:first-child { opacity: .6; } .dk-pupils { transition: none; } }

/* floating button */
.domik-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 60; }
body:has(.ad-sticky [data-tgb-state="filled"]) .domik-wrap { bottom: 116px; }
@media (min-width: 768px) { body:has(.ad-sticky [data-tgb-state="filled"]) .domik-wrap { bottom: 20px; } }
.domik-fab { position: relative; display: grid; place-items: center; width: 96px; height: 96px; padding: 0; border: 0; border-radius: 12px; background: none; cursor: pointer; }
.domik-fab .domik { filter: drop-shadow(0 6px 10px color-mix(in srgb, var(--primary) 30%, transparent)); transition: transform .18s ease-out; }
.domik-fab:hover .domik { transform: translateY(-3px) rotate(-3deg); }
.domik-fab:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.domik-fab .dk-shadow { display: none; }
.domik-fab__hint { position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%); padding: 8px 12px; border-radius: 8px; background: var(--primary); color: var(--on-primary); font-size: .86rem; font-weight: 700; white-space: nowrap; box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 25%, transparent); }
.domik-fab__hint::after { content: ""; position: absolute; left: 100%; top: 50%; transform: translateY(-50%); border: 6px solid transparent; border-left-color: var(--primary); }
.domik-wrap.is-open .domik-fab { display: none; }

/* panel */
.domik-panel { position: absolute; right: 0; bottom: 0; display: flex; flex-direction: column; width: 400px; height: min(640px, calc(100vh - 120px)); border: 1px solid var(--blue-line); border-radius: 12px; background: var(--surface); box-shadow: 0 24px 60px color-mix(in srgb, var(--primary) 26%, transparent); overflow: hidden; }
.domik-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; background: var(--sweep); color: var(--on-primary); }
.domik-head__avatar { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--surface); flex: none; }
.domik-head__avatar .domik { margin-top: -3px; }
.domik-head__title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.domik-head__title strong { font-size: 1.05rem; font-weight: 800; }
.domik-head__title small { color: rgba(255,255,255,.75); font-size: .8rem; }
.domik-head__btn { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 8px; background: rgba(255,255,255,.14); color: var(--on-primary); font-size: 1rem; cursor: pointer; }
.domik-head__btn:hover { background: rgba(255,255,255,.26); }

.domik-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--canvas, var(--surface)); overscroll-behavior: contain; }
.domik-msg { max-width: 92%; }
.domik-msg p { margin: 0; padding: 10px 13px; border-radius: 12px; font-size: .92rem; line-height: 1.45; white-space: pre-line; }
.domik-msg.is-bot p { border-top-left-radius: 4px; background: var(--blue-soft); color: var(--ink); }
.domik-msg.is-user { align-self: flex-end; }
.domik-msg.is-user p { border-top-right-radius: 4px; background: var(--primary); color: var(--on-primary); }
.domik-typing { display: inline-flex; gap: 4px; }
.domik-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); animation: dk-dot 1s infinite; }
.domik-typing span:nth-child(2) { animation-delay: .15s; }
.domik-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dk-dot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

.domik-suggest { display: flex; flex-wrap: wrap; gap: 6px; }
.domik-suggest button { padding: 7px 12px; border: 1px solid var(--blue-line); border-radius: 999px; background: var(--surface); color: var(--blue-strong); font: inherit; font-size: .84rem; cursor: pointer; }
.domik-suggest button:hover { border-color: var(--blue); background: var(--blue-soft); }

.domik-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 0; padding: 0; list-style: none; }
.domik-chips li { padding: 3px 9px; border-radius: 999px; background: var(--surface); border: 1px solid var(--blue-line); color: var(--blue-strong); font-size: .76rem; font-weight: 600; }
.domik-results { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.domik-card { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 10px; padding: 8px; border: 1px solid var(--blue-line); border-radius: 8px; background: var(--surface); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.domik-card:hover { border-color: var(--blue); box-shadow: var(--card-shadow-hover); }
.domik-card__cover { height: 64px; border-radius: 6px; background: var(--blue-soft); overflow: hidden; }
.domik-card__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.domik-card__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.domik-card__body strong { overflow: hidden; color: var(--ink); font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.domik-card__body small { overflow: hidden; color: var(--muted); font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.domik-card__body b { margin-top: auto; color: var(--primary); font-size: .86rem; }
.domik-more { display: inline-flex; margin-top: 8px; color: var(--blue); font-size: .88rem; font-weight: 700; text-decoration: none; }
.domik-more:hover { color: var(--primary); }

.domik-form { display: flex; gap: 8px; padding: 10px 12px 6px; border-top: 1px solid var(--blue-line); background: var(--surface); }
.domik-form input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--blue-line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: .92rem; }
.domik-form input:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
.domik-send { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 8px; background: var(--accent); color: var(--on-primary); cursor: pointer; }
.domik-send:disabled { opacity: .45; cursor: default; }
.domik-note { margin: 0; padding: 0 12px 10px; background: var(--surface); color: var(--muted); font-size: .72rem; }

@media (max-width: 560px) {
    .domik-wrap { right: 14px; bottom: 14px; }
    .domik-fab { width: 78px; height: 78px; }
    .domik-fab .domik { width: 72px; height: 72px; }
    .domik-wrap.is-open { inset: 0; }
    .domik-panel { position: fixed; inset: 0; width: auto; height: auto; border: 0; border-radius: 0; }
}


/* ── Mega menu tile: «Новостройки на карте» — a small drawn map, title, one button ── */
.site-header .main-nav .mega .mega-promo { gap: 12px; padding: 14px 14px 18px; justify-content: flex-start; }
.mega-promo-map {
    position: relative; display: block; width: 100%; height: 104px; border-radius: 6px; overflow: hidden;
    background:
        linear-gradient(152deg, transparent 0 40%, color-mix(in srgb, var(--blue-light) 85%, var(--surface)) 40% 50%, transparent 50%),
        linear-gradient(90deg, transparent 0 30%, var(--surface) 30% 32%, transparent 32% 68%, var(--surface) 68% 70%, transparent 70%),
        linear-gradient(0deg, transparent 0 38%, var(--surface) 38% 41%, transparent 41% 74%, var(--surface) 74% 77%, transparent 77%),
        var(--blue-soft);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.mega-promo-map i { position: absolute; display: block; width: 12px; height: 12px; border: 2px solid var(--surface); border-radius: 50%; background: var(--accent); box-shadow: 0 2px 6px color-mix(in srgb, var(--primary) 35%, transparent); }
.mega-promo-map i:nth-child(1) { left: 16%; top: 22%; }
.mega-promo-map i:nth-child(2) { left: 74%; top: 62%; background: var(--blue); }
.mega-promo-map i:nth-child(3) { left: 82%; top: 16%; }
.mega-promo-map b { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 38px; height: 38px; margin: -26px 0 0 -19px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--sweep-tile); box-shadow: 0 6px 14px color-mix(in srgb, var(--primary) 40%, transparent); transition: transform .2s; }
.site-header .main-nav .mega .mega-promo-map b .icon { width: 18px; height: 18px; transform: rotate(45deg); color: var(--on-primary); stroke: currentColor; }
.site-header .main-nav .mega .mega-promo:hover .mega-promo-map b { transform: rotate(-45deg) translate(2px, -2px); }
.site-header .main-nav .mega .mega-promo strong { font-size: 1.05rem; line-height: 1.2; }

/* ── City map page (/karta) ── */
.city-map-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 12px; padding: 10px 12px; border: 1px solid var(--blue-line); border-radius: 8px; background: var(--blue-soft); }
.city-map-chips { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; border: 1px solid var(--blue-line); border-radius: 6px; background: var(--surface); }
.city-map-chips button { padding: 6px 11px; border: 0; border-radius: 4px; background: none; color: var(--ink-2); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.city-map-chips button:hover { color: var(--blue); }
.city-map-chips button.is-active { background: var(--blue); color: var(--on-primary); }
.city-map-toggle { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: .88rem; cursor: pointer; }
.city-map-toggle input { width: 17px; height: 17px; accent-color: var(--blue); }
.city-map-count { margin-left: auto; color: var(--muted); font-size: .88rem; }
.city-map-count b { color: var(--primary); }
.city-map-frame { position: relative; isolation: isolate; z-index: 0; border: 1px solid var(--blue-line); border-radius: 8px; overflow: hidden; }
.city-map-canvas { height: max(520px, calc(100vh - 300px)); background: var(--blue-soft); }
.city-map-legend { position: absolute; left: 12px; bottom: 12px; z-index: 500; display: flex; gap: 12px; padding: 7px 11px; border-radius: 6px; background: var(--surface); box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 18%, transparent); color: var(--ink-2); font-size: .8rem; }
.city-map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.city-map-legend i { width: 11px; height: 11px; border: 2px solid var(--surface); border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px var(--blue-line); }
.city-map-legend i.is-priced { background: var(--accent); }
.city-map-note { margin: 12px 0 0; color: var(--muted); font-size: .9rem; }
.city-map-note a { color: var(--blue); font-weight: 700; }

.cm-pin-wrap, .cm-cluster-wrap { background: none; border: 0; }
.cm-pin { display: block; width: 18px; height: 18px; border: 3px solid var(--surface); border-radius: 50%; background: var(--blue); box-shadow: 0 2px 8px color-mix(in srgb, var(--primary) 40%, transparent); cursor: pointer; transition: transform .12s; }
.cm-pin.is-priced { background: var(--accent); }
.cm-pin:hover { transform: scale(1.25); }
.cm-cluster { display: grid; place-items: center; border: 3px solid var(--surface); border-radius: 50%; background: var(--sweep-tile); color: var(--on-primary); font-size: .85rem; font-weight: 800; box-shadow: 0 0 0 5px color-mix(in srgb, var(--blue) 25%, transparent), 0 4px 12px color-mix(in srgb, var(--primary) 35%, transparent); }

.cm-popup .leaflet-popup-content-wrapper { padding: 0; border-radius: 8px; overflow: hidden; }
.cm-popup .leaflet-popup-content { margin: 0; width: 260px !important; }
.cm-pop { display: block; color: var(--ink); text-decoration: none; font-family: var(--font-sans); }
.cm-pop-cover { display: block; height: 120px; background: var(--blue-soft); }
.cm-pop-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cm-pop-body { display: flex; flex-direction: column; gap: 3px; padding: 11px 13px 13px; }
.cm-pop-body strong { color: var(--ink); font-size: .98rem; line-height: 1.25; }
.cm-pop-metro, .cm-pop-meta { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .8rem; }
.cm-pop-metro i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.cm-pop-body b { margin-top: 4px; color: var(--primary); font-size: .95rem; }
.cm-pop-go { margin-top: 4px; color: var(--blue); font-size: .84rem; font-weight: 700; }
.cm-pop:hover .cm-pop-go { color: var(--primary); }

@media (max-width: 760px) {
    .city-map-count { margin-left: 0; width: 100%; }
    .city-map-canvas { height: 70vh; }
}

/* ── One content width everywhere (1180 px, as the home page) ── */
/* text pages: the cards take the full width, only the reading line stays comfortable */
.page-narrow > * { max-width: none; }
.page-narrow .card p, .page-narrow .card li, .page-narrow .prose > * { max-width: 82ch; }
/* статья: текст удобной ширины, колонка рекламы — <x-page-rail code="article_sidebar" /> в поле справа */
.page-body > .journal-article { max-width: none; margin: 0; }
.page-body > .journal-article .journal-article-body, .page-body > .journal-article .journal-article-lead { max-width: 76ch; }
.journal-article .ad-place { margin: 28px 0; }

/* ── Сквозная правая колонка с рекламой (page_sidebar, <x-page-rail />) ──
   Как на главной (.ad-rail): контент не сужается, колонка висит в свободном
   поле справа от него и появляется только там, где это поле есть
   (контент 1180 px + 2 × 340 px). */
.page-rail { display: none; }
.page-rail + * { margin-top: 0 !important; }
@media (min-width: 1880px) {
    .wrap:has(> .page-rail) { position: relative; }
    .page-rail { position: absolute; top: clamp(24px, 3vw, 36px); bottom: 0; left: calc(100% + 30px); z-index: 5; display: block; width: 300px; }
    .catalog > .page-rail { top: 28px; }
    .page-rail .ad-place { position: sticky; top: 140px; margin: 0; }
    .page-rail .ad-place [data-tgb-slot] { min-height: 600px; }
    .wrap:has(> .page-rail [data-tgb-state="empty"]) > .page-rail,
    .wrap:has(> .page-rail [data-tgb-state="error"]) > .page-rail { display: none; }
}

/* ── Домик: режим «на карте» — окно почти на весь экран, чат слева, карта справа ── */
.domik-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 8px; }
.domik-links .domik-more { margin-top: 0; }
.domik-map-btn { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; color: var(--blue); font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
.domik-map-btn .icon { width: 15px; height: 15px; }
.domik-map-btn:hover { color: var(--primary); }
.domik-head__btn .icon { width: 17px; height: 17px; }
.domik-head__btn[aria-pressed="true"] { background: rgba(255,255,255,.3); }
.domik-map { display: none; }
.domik-backdrop { position: fixed; inset: 0; background: color-mix(in srgb, var(--primary) 45%, transparent); }
html.domik-map-open { overflow: hidden; }

.domik-wrap.is-map { z-index: 1000; }
.domik-wrap.is-map .domik-panel {
    position: fixed; inset: 16px; width: auto; height: auto;
    display: grid; grid-template-columns: 420px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto;
}
.domik-wrap.is-map .domik-panel > :not(.domik-map) { grid-column: 1; }
.domik-wrap.is-map .domik-map { position: relative; display: block; grid-column: 2; grid-row: 1 / -1; border-left: 1px solid var(--blue-line); background: var(--blue-soft); isolation: isolate; }
.domik-map__canvas { position: absolute; inset: 0; }
.domik-map__badge { position: absolute; left: 14px; top: 14px; z-index: 500; padding: 8px 14px; border-radius: 999px; background: var(--surface); box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 20%, transparent); color: var(--primary); font-size: .88rem; font-weight: 700; pointer-events: none; }
.domik-map__wait { position: absolute; inset: 0; z-index: 500; display: grid; place-items: center; margin: 0; color: var(--muted); font-weight: 600; }

/* точка — плашка с ценой и хвостиком */
.dk-pin-wrap { background: none; border: 0; }
.dk-pin { position: absolute; left: 0; top: 0; transform: translate(-50%, calc(-100% - 7px)); padding: 5px 10px; border: 2px solid var(--surface); border-radius: 999px; background: var(--primary); color: var(--on-primary); font: 700 .8rem/1.2 var(--font-sans); white-space: nowrap; box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 35%, transparent); cursor: pointer; transition: background .15s, transform .15s; }
.dk-pin::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--primary); transition: border-color .15s; }
.dk-pin.is-noprice { background: var(--blue); }
.dk-pin.is-noprice::after { border-top-color: var(--blue); }
.dk-pin-wrap:hover .dk-pin, .dk-pin-wrap.is-hot .dk-pin { background: var(--accent); transform: translate(-50%, calc(-100% - 10px)) scale(1.06); }
.dk-pin-wrap:hover .dk-pin::after, .dk-pin-wrap.is-hot .dk-pin::after { border-top-color: var(--accent); }
.dk-pin-wrap.is-hot { z-index: 1000 !important; }
.cm-cluster-wrap.is-hot .cm-cluster { background: var(--accent); }

@media (max-width: 760px) {
    .domik-wrap.is-map .domik-panel { inset: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: 42vh auto minmax(0, 1fr) auto auto; }
    .domik-wrap.is-map .domik-map { grid-column: 1; grid-row: 1; border-left: 0; border-bottom: 1px solid var(--blue-line); }
    .domik-wrap.is-map .domik-head { grid-row: 2; }
    .domik-wrap.is-map .domik-body { grid-row: 3; }
    .domik-wrap.is-map .domik-form { grid-row: 4; }
    .domik-wrap.is-map .domik-note { grid-row: 5; }
}
