/* Inter: локальные файлы static/fonts (кириллица и латиница), внешних запросов нет */
@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(/news/assets/fonts/inter-cyrillic-400.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(/news/assets/fonts/inter-latin-400.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(/news/assets/fonts/inter-cyrillic-500.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(/news/assets/fonts/inter-latin-500.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(/news/assets/fonts/inter-cyrillic-600.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(/news/assets/fonts/inter-latin-600.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(/news/assets/fonts/inter-cyrillic-700.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(/news/assets/fonts/inter-latin-700.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{
  color-scheme:light dark;
  --bg:#f7f8fb;--surface:#ffffff;--surface-muted:#eef0f6;
  --text-1:#1c1f2a;--text-muted:#6b7280;--border:#dcdfe9;
  --brand:#5e6ad2;--brand-strong:#4954b8;
  --success:#157f3b;--danger:#b42318;--warning:#9a6700;
  --grid-header:#f2f3fb;--grid-odd:#f8f9fe;--grid-border:#e3e5f2;
  --top3:#e7e9fb;--top10:#e7f7ed;--top30:#fff5d8;
  --notfound-bg:#fff1dc;--notfound-ink:#7a4c00;
  --missing-bg:#f8fafc;--missing-ink:#6b7280;
  --note-bg:#fff8e6;--note-ink:#7a4c00;--note-border:#f0dcae;
  --shadow:0 1px 2px rgba(16,24,40,.06), 0 10px 28px rgba(16,24,40,.07);
  --mono:ui-monospace,Menlo,Consolas,"SFMono-Regular",monospace;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --bg:#101218;--surface:#171a22;--surface-muted:#20242f;
  --text-1:#e6e8ef;--text-muted:#9aa0b2;--border:#2b3040;
  --brand:#7c86e6;--brand-strong:#9aa2ee;
  --success:#4cc07a;--danger:#f0705f;--warning:#d9a53c;
  --grid-header:#1d2130;--grid-odd:#1b1f29;--grid-border:#2b3040;
  --top3:#242a45;--top10:#1a2e24;--top30:#2e2919;
  --notfound-bg:#2e2416;--notfound-ink:#e2b878;
  --missing-bg:#1b1f29;--missing-ink:#9aa0b2;
  --note-bg:#241f14;--note-ink:#e2c98a;--note-border:#463c26;
  --shadow:0 1px 2px rgba(0,0,0,.4), 0 10px 28px rgba(0,0,0,.32);
}}
:root[data-theme="dark"]{
  --bg:#101218;--surface:#171a22;--surface-muted:#20242f;
  --text-1:#e6e8ef;--text-muted:#9aa0b2;--border:#2b3040;
  --brand:#7c86e6;--brand-strong:#9aa2ee;
  --success:#4cc07a;--danger:#f0705f;--warning:#d9a53c;
  --grid-header:#1d2130;--grid-odd:#1b1f29;--grid-border:#2b3040;
  --top3:#242a45;--top10:#1a2e24;--top30:#2e2919;
  --notfound-bg:#2e2416;--notfound-ink:#e2b878;
  --missing-bg:#1b1f29;--missing-ink:#9aa0b2;
  --note-bg:#241f14;--note-ink:#e2c98a;--note-border:#463c26;
  --shadow:0 1px 2px rgba(0,0,0,.4), 0 10px 28px rgba(0,0,0,.32);
}
*{box-sizing:border-box}
[hidden]{display:none!important}

/* .page-root — контейнер запросов: мобильная вёрстка включается и по ширине экрана,
   и по ширине рамки «Как на телефоне», одним и тем же набором правил */
.page-root{container-type:inline-size;background:var(--bg)}
html,body{max-width:100%;overflow-x:hidden}
body{margin:0;background:var(--bg);color:var(--text-1);
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  font-size:14px;line-height:1.4;-webkit-text-size-adjust:100%}
a{color:var(--brand);font-weight:600;text-decoration:none}
a:hover{color:var(--brand-strong)}
h1,h2,h3,h4{margin:0;font-weight:700;text-wrap:balance}
h1{font-size:clamp(24px,2.4vw,28px);line-height:1.2;letter-spacing:-.02em}
h2{font-size:17px;line-height:1.3;letter-spacing:-.01em}
h3{font-size:14px}
p{margin:0}
code{font-family:var(--mono);font-size:.9em}
.num,.val,.leader-val,table{font-variant-numeric:tabular-nums}
.lbl{font-size:11px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;color:var(--text-muted)}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* контейнер: поля задаёт padding, а не width:calc() */
.wrap{max-width:1120px;margin-inline:auto;padding-inline:24px}

/* каркас */
.notice{background:var(--surface-muted);border-top:1px solid var(--border);margin-top:40px;font-size:13px}
.notice+.foot{margin-top:0}
.notice .wrap{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline;padding-block:9px}
.notice b{font-weight:600}
.notice span{color:var(--text-muted)}
.site{background:var(--surface);border-bottom:1px solid var(--border)}
.site .wrap{display:flex;align-items:center;justify-content:space-between;gap:12px 24px;flex-wrap:wrap;padding-block:14px}
.brand{display:inline-flex;align-items:center;gap:9px;font-weight:700;font-size:16px;color:var(--text-1);letter-spacing:-.02em}
.brand__mark{flex:none;width:24px;height:24px;color:var(--brand)}
.brand__name{line-height:1}
.brand:hover{color:var(--brand)}
.brand--foot{align-self:center;font-size:15px}
.brand--foot .brand__mark{width:20px;height:20px}
.site nav{display:flex;gap:18px;flex-wrap:wrap;font-size:13px}
.site nav a{color:var(--text-muted);font-weight:500}
/* «Жилые комплексы» → «ЖК» на узком экране: пять пунктов шапки встают в одну строку и на 360 px. В ссылке
   две подписи, видна одна: скрытая через display:none в доступное имя не входит, поэтому имя ссылки совпадает
   с видимым текстом (WCAG 2.5.3); у короткой — title с полным названием (Refs #96). */
.site nav .nav-short{display:none}
@media (max-width:480px){.site nav .nav-full{display:none}.site nav .nav-short{display:inline}}
.foot{border-top:1px solid var(--border);margin-top:40px;background:var(--surface)}
/* подвал в три строки: сайт, ссылки «О сайте» с «Настройками cookie», кто отвечает (решение владельца 04.10.2026) */
.foot .wrap{display:grid;gap:10px;padding-block:22px;font-size:13px;color:var(--text-muted)}
.foot-row{display:flex;flex-wrap:wrap;gap:6px 20px;align-items:baseline;margin:0}
.foot-btn{font:inherit;font-weight:600;color:var(--brand);background:none;border:0;padding:0;cursor:pointer}
.foot-btn:hover{color:var(--brand-strong)}


/* блоки и карточки */
.blk{margin-bottom:24px}
.blk.group{margin-bottom:40px}
.card{background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow);overflow:hidden}
.card-head{background:var(--surface-muted);padding:16px 20px;border-bottom:1px solid var(--border);
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 32px;align-items:center}
.card-head .intro{color:var(--text-muted);font-size:13px;line-height:1.5;margin-top:4px}
.card-head .aside{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.card-body{padding:20px}

/* кнопки, пилюли, поля */
.seg{display:inline-flex;gap:4px;background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:3px}
.seg-btn{font:inherit;font-size:13px;font-weight:600;padding:6px 14px;border:0;background:transparent;
  color:var(--text-muted);border-radius:8px;cursor:pointer}
.seg-btn.on{background:var(--brand);color:#fff}
a.seg-btn{text-decoration:none;display:inline-flex;align-items:center}
span.seg-btn{display:inline-flex;align-items:center}
.btn-ghost{font:inherit;font-size:13px;font-weight:600;padding:6px 12px;border:1px solid var(--border);
  background:var(--surface);color:var(--brand);border-radius:8px;cursor:pointer}
.search{font:inherit;font-size:13px;padding:7px 11px;border:1px solid var(--border);border-radius:8px;
  background:var(--surface);color:var(--text-1);min-width:180px;max-width:100%}
.pill{display:inline-block;border-radius:999px;padding:1px 9px;font-size:11px;font-weight:700;letter-spacing:.4px}
.pill--a{background:rgba(21,127,59,.12);color:var(--success)}
.pill--b{background:rgba(154,103,0,.14);color:var(--warning)}
.pill--c{background:var(--surface-muted);color:var(--text-muted)}
.hint{font-size:12px;color:var(--text-muted)}
.tabs{display:inline-flex;gap:4px;background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:3px;flex-wrap:wrap}
.tab-btn{font:inherit;font-size:13px;font-weight:600;padding:6px 12px;border:0;background:transparent;
  color:var(--text-muted);border-radius:8px;cursor:pointer}
.tab-btn.on{background:var(--brand);color:#fff}
.more{margin-top:12px;display:flex;justify-content:center}
.facts--wide{grid-template-columns:repeat(2,minmax(0,1fr))}
.retained-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.retained-list .hint{margin-left:6px}
/* Последние рассчитанные цифры на странице, где сейчас мало объявлений: видно, что это не «сейчас» (Refs #82). */
.facts--past .kpi{background:var(--surface-muted);border-style:dashed}
.retained-more{margin-top:10px}
.retained-more summary{cursor:pointer;color:var(--brand);font-weight:600;margin-bottom:8px}
.sub-head{margin:20px 0 10px;font-size:13px;font-weight:700}
.compare-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.compare-grid:has(> :only-child){grid-template-columns:minmax(0,1fr)}
.compare-card{border:1px solid var(--border);border-radius:8px;overflow:hidden;background:var(--surface)}
.compare-card h3{background:var(--surface-muted);border-bottom:1px solid var(--border);padding:10px 14px;font-size:14px}
.cmp-list{list-style:none;margin:0;padding:0}
.cmp-row{display:grid;gap:3px;padding:12px 14px;border-bottom:1px solid var(--border)}
.cmp-row:last-child{border-bottom:0}
.cmp-label{font-size:11px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;color:var(--text-muted)}
.cmp-values{font-size:13px;line-height:1.5}
.cmp-values b{font-size:15px}
.cmp-row .bar{display:block;height:4px;border-radius:2px;background:var(--surface-muted);position:relative;margin-top:4px}
.cmp-row .bar::after{content:"";position:absolute;top:0;bottom:0;left:0;width:var(--w);background:var(--brand);border-radius:2px}
.matrix .grid td{text-align:right}
.matrix .grid td a{display:block;font-weight:600}
.matrix .grid td .sub{display:block;font-size:11px;color:var(--text-muted);font-weight:400}

/* hero */
.hero-body{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,1fr);gap:24px 40px;align-items:start}
.hero-body .lead{font-size:15px;line-height:1.55;color:var(--text-muted);margin-top:5px}
.facts{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.kpi{border:1px solid var(--border);border-radius:8px;padding:10px 12px;display:flex;flex-direction:column;gap:4px;background:var(--surface)}
.kpi .val{font-size:18px;font-weight:700;line-height:1.2}
.kpi .val--text{font-size:13px;font-weight:600;line-height:1.4}
.kpi .sub{font-size:11.5px;color:var(--text-muted);line-height:1.4}
.kpi .sub a{font-size:11.5px}

/* таблица */
.grid-wrap{width:100%;overflow-x:auto;border:1px solid var(--grid-border);border-radius:8px}
table.grid{border-collapse:collapse;width:100%;font-size:13px}
.grid th,.grid td{padding:7px 10px;text-align:left;border-bottom:1px solid var(--grid-border)}
.grid thead th{background:var(--grid-header);font-size:11px;font-weight:600;color:var(--text-muted);
  letter-spacing:.4px;text-transform:uppercase;white-space:nowrap;vertical-align:bottom}
.th-sub{display:block;text-transform:none;letter-spacing:0;font-weight:400;font-size:10.5px}
.grid tbody tr:nth-child(odd) td,.grid tbody tr:nth-child(odd) th{background:var(--grid-odd)}
.grid tbody th[scope=row]{font-weight:600}
.grid tbody tr:last-child th,.grid tbody tr:last-child td{border-bottom:0}
.grid td.num,.grid th.num{text-align:right;white-space:nowrap}
.grid td.is-missing{background:var(--missing-bg);color:var(--missing-ink)}
.grid td.pair .sep{color:var(--text-muted)}
.grid tr.group-row th{background:var(--surface-muted)!important;font-size:11.5px;font-weight:700;letter-spacing:.3px;color:var(--text-1);padding:8px 10px}
.row-sub{display:block;font-weight:400;font-size:12px;color:var(--text-muted);margin-top:2px}
.grid tbody tr.is-current th,.grid tbody tr.is-current td{background:var(--top3)!important}
/* списки сравнения: три первых места и первая десятка подсвечены токенами top3 / top10 */
.grid tbody tr.is-top3 th,.grid tbody tr.is-top3 td{background:var(--top3)!important}
.grid tbody tr.is-top10 th,.grid tbody tr.is-top10 td{background:var(--top10)!important}
.rank{display:inline-block;min-width:26px;text-align:center;border-radius:6px;padding:1px 6px;margin-right:8px;
  font-size:12px;font-weight:700;background:var(--surface-muted);color:var(--text-muted);vertical-align:baseline}
.is-top3 .rank{background:var(--brand);color:#fff}
.is-top10 .rank{background:var(--success);color:#fff}
.select{font:inherit;font-size:13px;padding:7px 10px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text-1);max-width:100%}
.top-tiles{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.top-tile{border:1px solid var(--border);border-radius:8px;padding:12px 14px;background:var(--surface)}
.top-tile .lbl{margin-bottom:4px}
.top-tile b{display:block;font-size:20px;letter-spacing:-.01em;line-height:1.1}
.top-tile a{display:block;margin-top:6px;font-size:13px;line-height:1.35}
.top-tile small{display:block;font-size:12px;color:var(--text-muted);margin-top:2px}
@container (max-width:1023px){.top-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}
@container (max-width:767px){.top-tiles{grid-template-columns:1fr}}

/* сноски: всегда на всю ширину блока, при двух — в две колонки */
.foot-notes{margin-top:14px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 32px}
.foot-note{font-size:12.5px;line-height:1.5;color:var(--text-muted)}
.card-body>.foot-note{margin-top:14px}

/* лидеры районов */
.city-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.city-card{border:1px solid var(--border);border-radius:8px;overflow:hidden;background:var(--surface)}
.city-card-head{background:var(--surface-muted);border-bottom:1px solid var(--border);padding:10px 14px;
  display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.city-card-head h3 a{color:var(--text-1)}
.city-card-head h3 a:hover{color:var(--brand)}
.leader-list{list-style:none;padding:0;margin:0}
.leader{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 12px;padding:10px 14px;border-bottom:1px solid var(--border)}
.leader:last-child{border-bottom:0}
.leader.is-top{background:var(--top3)}
.leader-name{font-weight:600;color:var(--text-1);min-width:0}
.leader-name:hover{color:var(--brand)}
.leader-val{font-weight:700;font-size:15px;color:var(--brand);text-align:right;white-space:nowrap}
.leader-val small{font-weight:600;font-size:11px}
.leader .bar{grid-column:1/3;display:block;height:4px;border-radius:2px;background:var(--surface-muted);position:relative;margin:2px 0 3px}
.leader .bar::after{content:"";position:absolute;top:0;bottom:0;left:0;width:var(--w);background:var(--brand);border-radius:2px}
.leader-sub{grid-column:1/3;font-size:11.5px;line-height:1.5;color:var(--text-muted)}
.leader-sub .pill{margin-left:2px}

/* сравнения */
.cmp-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.cmp{display:flex;flex-direction:column;gap:6px;border:1px solid var(--border);border-radius:8px;
  padding:14px 16px;color:var(--text-1);background:var(--surface);font-weight:400}
.cmp:hover{border-color:var(--brand);color:var(--text-1)}
.cmp h3{font-size:13.5px}
.cmp p{font-size:12px;line-height:1.45;color:var(--text-muted)}
.cmp-go{margin-top:auto;padding-top:8px;font-size:12.5px;font-weight:600;color:var(--brand)}
.cmp-go::after{content:" →"}

/* проза: собственная колонка сетки, а не max-width внутри широкой */
.prose-row{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:24px 40px;align-items:start}
.prose{display:flex;flex-direction:column;gap:12px;font-size:15px;line-height:1.55}
.prose p{color:var(--text-muted)}
.prose p.first{color:var(--text-1)}
.prose a{text-decoration:underline}
.links{list-style:none;padding:0;margin:0}
.links li{border:1px solid var(--border);border-radius:8px;padding:10px 12px;background:var(--surface)}
.links li+li{margin-top:8px}
.links span{display:block;font-size:11.5px;line-height:1.4;color:var(--text-muted);margin-top:2px}


:focus-visible{outline:2px solid var(--brand);outline-offset:2px}

@container (max-width:767px){.compare-grid{grid-template-columns:1fr}}
@container (max-width:1023px){
  .hero-body{grid-template-columns:1fr;gap:20px}
  .cmp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .prose-row{grid-template-columns:1fr}
}
@container (max-width:767px){
  .wrap{padding-inline:16px}
  .card-body{padding:16px}
  .card-head{padding:14px 16px;grid-template-columns:1fr;align-items:start}
  .card-head .aside{justify-content:flex-start}
  .city-grid,.cmp-grid,.facts,.foot-notes{grid-template-columns:1fr}
  /* таблица превращается в карточки: заголовок строки — шапка карточки,
     остальные ячейки — «подпись слева, значение справа» (образец kurers) */
  .grid-wrap{overflow:visible;border:0;border-radius:0;background:transparent}
  .grid,.grid thead,.grid tbody,.grid tr,.grid th,.grid td{display:block;width:100%}
  .grid thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
    clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
  .grid tbody tr{margin-bottom:12px;padding:0 14px;background:var(--surface);
    border:1px solid var(--border);border-radius:12px;box-shadow:none}
  .grid tbody tr:last-child{margin-bottom:0}
  .grid tbody tr:nth-child(odd) td,.grid tbody tr:nth-child(odd) th{background:transparent}
  .grid tbody th[scope=row]{display:block;padding:12px 0 9px;border-bottom:2px solid var(--border);
    font-size:15px;font-weight:700;text-align:left;background:transparent}
  .grid td{display:grid;grid-template-columns:minmax(0,1fr) max-content;gap:12px;align-items:baseline;
    padding:9px 0;border:0;border-bottom:1px solid var(--grid-border);
    text-align:right!important;overflow-wrap:anywhere;min-width:0}
  .grid td::before{content:attr(data-label);font-family:inherit;font-size:12.5px;font-weight:600;
    letter-spacing:0;text-transform:none;color:var(--text-muted);text-align:left;min-width:0;
    white-space:normal;overflow-wrap:anywhere}
  .grid tbody tr td:last-child{border-bottom:0}
  .grid tbody tr.group-row{background:transparent;border:0;padding:0;margin:16px 0 8px;box-shadow:none}
  .grid tbody tr.group-row:first-child{margin-top:0}
  .grid tr.group-row th{display:block;padding:0 0 4px;border:0;background:transparent!important;font-size:12px;text-transform:uppercase;letter-spacing:.6px;color:var(--text-muted)}
  .grid td.num,.grid td.pair,.grid td .v{white-space:nowrap}
  /* таблица «что известно / значение»: на телефоне остаётся двумя колонками, без карточек */
  .grid--pairs tbody tr{display:grid;grid-template-columns:minmax(0,1fr) max-content;gap:12px;align-items:baseline;
    margin:0;padding:8px 0;border:0;border-bottom:1px solid var(--grid-border);border-radius:0;box-shadow:none}
  .grid--pairs tbody tr:last-child{border-bottom:0}
  .grid--pairs tbody th[scope=row]{display:block;padding:0;border:0;font-size:13px;font-weight:500;color:var(--text-muted)}
  .grid--pairs td{display:block;padding:0;border:0;text-align:right!important}
  .grid--pairs td::before{content:none}
  .grid td.is-missing{background:transparent;color:var(--missing-ink);padding-inline:0;border-radius:0}
  /* служебная таблица токенов: длинный текст, поэтому подпись над значением */
}
@media (prefers-reduced-motion:no-preference){.leader .bar::after{transition:width .3s ease}}
/* хлебные крошки: всегда первыми в потоке, до H1 */
.crumbs{list-style:none;display:flex;flex-wrap:wrap;gap:4px 8px;padding:0;margin:0 0 12px;font-size:12.5px;color:var(--text-muted)}
.crumbs li+li::before{content:"›";margin-right:8px;color:var(--text-muted)}
.crumbs a{color:var(--text-muted);font-weight:500}
.crumbs a:hover{color:var(--brand)}

/* карточка города каталога */
.city-tile{display:flex;flex-direction:column;border:1px solid var(--border);border-radius:8px;background:var(--surface);overflow:hidden}
.city-tile-head{background:var(--surface-muted);border-bottom:1px solid var(--border);padding:10px 14px;
  display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.city-tile-head h3{font-size:15px}
.city-tile-head h3 a{color:var(--text-1)}
.city-tile-head h3 a:hover{color:var(--brand)}
.city-tile-body{padding:14px}
.city-kpis{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.city-tile-foot{margin-top:12px;display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 16px}
.city-tile-foot .hint{font-size:12px}
.city-note{margin-top:12px;font-size:12.5px;line-height:1.5;color:var(--text-muted)}

/* служебные страницы «Как мы считаем» и «Откуда данные»: оглавление, формула, шаги */
.toc{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 20px;counter-reset:toc}
.toc li{font-size:13px;line-height:1.4;padding-left:26px;position:relative;counter-increment:toc}
.toc li::before{content:counter(toc);position:absolute;left:0;top:1px;width:18px;height:18px;border-radius:6px;background:var(--surface-muted);
  color:var(--text-muted);font-size:11px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}
.toc a{font-weight:500}
.formula{background:var(--surface-muted);border:1px solid var(--border);border-radius:10px;padding:14px 16px;font-size:14px;line-height:1.55}
.formula b{font-variant-numeric:tabular-nums}
.formula+.formula{margin-top:10px}
.prose--full{display:grid;gap:12px}
.prose--full p{font-size:15px;line-height:1.55;color:var(--text-muted)}
.prose--full p b{color:var(--text-1)}
.prose--full h3{margin-top:8px}
.steps{margin:0;padding-left:20px;display:grid;gap:6px;font-size:14px;line-height:1.5;color:var(--text-muted)}
.steps li::marker{color:var(--brand);font-weight:700}
@container (max-width:767px){.toc{grid-template-columns:1fr}}

/* чипы будущих городов */
.chips{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:8px}
.chips li{border:1px solid var(--border);border-radius:999px;padding:5px 12px;font-size:13px;color:var(--text-1);background:var(--surface)}
.chips .chip-sub{color:var(--text-muted);font-size:11.5px;margin-left:4px}

/* пустое состояние поиска */
.empty{border:1px dashed var(--border);border-radius:8px;padding:20px;text-align:left;background:var(--surface-muted);
  display:flex;flex-direction:column;align-items:stretch;gap:8px;margin-top:16px}
.empty .btn-ghost{align-self:flex-start}
.empty p{font-size:13px;color:var(--text-muted)}

@container (max-width:767px){
  .city-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* элементы сайта, которых нет в макете */
.skip-link{position:absolute;left:0;top:0;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);background:var(--brand);color:#fff;padding:8px 12px;border-radius:0 0 8px 0;z-index:10;font-weight:600}
.skip-link:focus{width:auto;height:auto;clip:auto;overflow:visible}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
main{display:block}
.page-lead{font-size:15px;line-height:1.55;color:var(--text-muted);margin:8px 0 20px}
.site nav a[aria-current]{color:var(--text-1);font-weight:600}
.site .city-switch{font-size:13px}
.site .city-switch summary{cursor:pointer;color:var(--text-muted);font-weight:500;list-style:none}
.site .city-switch nav{display:flex;gap:12px;flex-wrap:wrap;padding-top:6px}
.seg-btn[aria-current]{background:var(--brand);color:#fff}
/* лидеры районов на главной: та же карточка, что .leader в макете, плюс подпись из dl */
.district-leader{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 12px;padding:10px 14px;border-bottom:1px solid var(--border)}
.district-leader:last-child{border-bottom:0}
.district-leader[data-top]{background:var(--top3)}
.district-leader .bar{grid-column:1/3;display:block;height:4px;border-radius:2px;background:var(--surface-muted);position:relative;margin:2px 0 3px}
.district-leader .bar::after{content:"";position:absolute;top:0;bottom:0;left:0;width:var(--w);background:var(--brand);border-radius:2px}
dl.leader-val-dl{margin:0;text-align:right}
dl.leader-val-dl dd{margin:0}
dl.leader-sub{grid-column:1/3;margin:0;display:flex;flex-wrap:wrap;gap:2px 0;font-size:11.5px;line-height:1.5;color:var(--text-muted)}
dl.leader-sub div{display:inline}
dl.leader-sub dd{display:inline;margin:0}
dl.leader-sub div+div dd::before{content:"· ";color:var(--text-muted)}
dl.leader-sub .pill{margin-left:2px}
.city-card-head a.city-rating{font-size:12px;white-space:nowrap}

/* аналитические страницы (этап 2 переноса): плитки с показателями, разброс цены, изменение по датам */
.kpi .val{display:flex;align-items:baseline;gap:5px;flex-wrap:wrap}
.kpi .metric-value{font-size:18px;font-weight:700;line-height:1.2}
.kpi .unit{font-size:13px;font-weight:600;color:var(--text-muted)}
.compare-card h3{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap}
.compare-card h3 a{color:var(--text-1);text-decoration:underline;text-decoration-color:var(--border)}
.compare-card h3 .hint{font-weight:500}
.spread{margin-top:16px}
.spread-text{font-size:13.5px;line-height:1.55;color:var(--text-muted)}
.spread-text b{color:var(--text-1);font-weight:600}
.quartile-scale{display:block;width:100%;height:16px;margin:8px 0 4px;stroke:var(--brand);stroke-width:2}
.quartile-scale line:not([data-quartile-point]){stroke:var(--border);stroke-width:6;stroke-linecap:round}
.history-metric:empty{display:none}
.history-chart{margin:12px 0 0}
.history-chart svg{width:100%;height:auto;color:var(--brand)}
.history-chart figcaption{font-size:12px;color:var(--text-muted)}
.reasons{padding-left:18px;margin:6px 0 0}
.reasons li+li{margin-top:4px}
.fingerprint{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11.5px;word-break:break-all}
.grid tbody tr.is-current th,.grid tbody tr.is-current td{background:var(--top3)!important}

/* карта территорий (Refs #28): контуры из /maps/<слой>.svg через <use>, цвет — класс q0…q5 на странице */
:root{--map-neutral:#d5d9ea;--map-q0:#e6e8ee;--map-q1:#e4e7fb;--map-q2:#c1c7f3;--map-q3:#98a1e8;--map-q4:#6a76d8;--map-q5:#3d48a8}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--map-neutral:#343a52;--map-q0:#262a36;--map-q1:#2b3052;--map-q2:#3a4283;--map-q3:#5260b8;--map-q4:#7c89e6;--map-q5:#b3bcff}}
:root[data-theme="dark"]{--map-neutral:#343a52;--map-q0:#262a36;--map-q1:#2b3052;--map-q2:#3a4283;--map-q3:#5260b8;--map-q4:#7c89e6;--map-q5:#b3bcff}
.map-card .card-head{flex-wrap:wrap}
.map-card .card-head>div:first-child{flex:1 1 360px;min-width:0}
.map-card .card-head .aside{justify-content:flex-end}
.map-tabs-row{padding:12px 20px 0}
.map-body--compact .dmap{max-height:540px}
.map-body{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(240px,1fr);gap:20px 28px;align-items:start}
.map-body--compact{grid-template-columns:1fr;gap:12px}
.map-embed{margin-bottom:20px}
.map-embed-head{margin-bottom:10px}
.map-embed-head .sub-head{margin:0 0 4px}
.map-embed .map-foot{padding-top:10px}
.map-canvas{position:relative;border:1px solid var(--border);border-radius:10px;background:var(--surface-muted);overflow:hidden}
.dmap{display:block;width:100%;height:auto;fill:var(--map-q0);stroke:var(--surface);stroke-width:.8}
.dmap .backdrop{fill:var(--map-q0);stroke:var(--surface);stroke-width:.6;opacity:.55}
.dmap .place{fill:var(--map-neutral);stroke:var(--surface);stroke-width:.7;opacity:.45}
.dmap .dist{fill:var(--map-q0);stroke:var(--surface);stroke-width:.8;transition:opacity .15s}
.dmap .q1{fill:var(--map-q1)}.dmap .q2{fill:var(--map-q2)}.dmap .q3{fill:var(--map-q3)}.dmap .q4{fill:var(--map-q4)}.dmap .q5{fill:var(--map-q5)}
.dmap .hull{stroke-dasharray:3 2}
.dmap .osm-place{stroke:var(--text-1);stroke-width:1}
.dmap a.dist:hover,.dmap a.dist:focus-visible,.dmap g.dist:hover,.dmap g.dist:focus-visible{stroke:var(--text-1);stroke-width:1.6;outline:0}
.dmap .is-neighbour{opacity:.9}
.dmap .is-current{fill:var(--brand);stroke:var(--text-1);stroke-width:2.4}
.dmap text{font-family:Inter,system-ui,sans-serif;font-weight:600;fill:var(--text-1);text-anchor:middle;
  paint-order:stroke;stroke:var(--surface);stroke-linejoin:round;pointer-events:none}
.dmap text.lbl-current{font-weight:700}
.dmap text.lbl-place{font-weight:500;fill:var(--text-muted)}
.map-full{position:absolute;top:10px;right:10px}
.map-attr{position:absolute;left:10px;bottom:8px;font-size:10.5px;color:var(--text-muted);background:color-mix(in srgb,var(--surface) 80%,transparent);padding:2px 6px;border-radius:5px;max-width:calc(100% - 20px)}
.map-tip{position:absolute;pointer-events:none;background:var(--surface);border:1px solid var(--border);border-radius:8px;
  padding:6px 10px;font-size:12.5px;box-shadow:var(--shadow);white-space:nowrap;transform:translate(12px,12px);z-index:2}
.map-tip b{display:block}
.map-side{display:flex;flex-direction:column;gap:12px;min-width:0}
.map-side .sub-head{margin:6px 0 0}
.map-side .map-panel-intro{margin:0;font-size:13px;color:var(--text-muted);line-height:1.5}
.map-info{border:1px solid var(--border);border-radius:8px;padding:12px 14px;background:var(--surface);min-height:96px}
.map-info .lbl{margin:0}
.map-info-name{font-weight:700;font-size:15px;margin:4px 0 0}
.map-info-val{font-weight:700;font-size:18px;color:var(--brand);margin:2px 0 0;font-variant-numeric:tabular-nums}
.map-info .hint{margin:4px 0 0}
.map-legend{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px;font-size:12.5px}
.map-legend li{display:flex;align-items:center;gap:8px;white-space:nowrap}
.map-legend-row .map-legend{grid-template-columns:repeat(3,minmax(0,1fr))}
.map-legend-row .hint{margin:6px 0 0}
.sw{display:inline-block;width:14px;height:14px;border-radius:3px;border:1px solid var(--border);flex:none}
.sw.q0{background:var(--map-q0)}.sw.q1{background:var(--map-q1)}.sw.q2{background:var(--map-q2)}
.sw.q3{background:var(--map-q3)}.sw.q4{background:var(--map-q4)}.sw.q5{background:var(--map-q5)}
.map-list{list-style:none;margin:0;padding:0}
.map-list li{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-bottom:1px solid var(--grid-border);font-size:13px}
.map-list li:last-child{border-bottom:0}
.map-list .num{white-space:nowrap;font-weight:600;text-align:right}
.map-list small{color:var(--text-muted);font-weight:500;display:block}
.map-outside .sub-head{margin-top:0}
.chips-small li{font-size:12px;padding:3px 9px}
.map-foot{border-top:1px solid var(--border);padding-block:12px}
.map-foot .foot-note{margin:0}
/* полноэкранный режим: наши контуры с зумом и перетаскиванием; улицы — по отдельной кнопке (MapLibre + OpenFreeMap) */
.map-overlay{position:fixed;inset:0;z-index:50;background:var(--bg);display:flex;flex-direction:column}
.map-overlay-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;
  padding-top:calc(10px + env(safe-area-inset-top,0px));border-bottom:1px solid var(--border);background:var(--surface);flex-wrap:wrap}
.map-overlay-bar b{font-size:15px}
.map-overlay-bar .aside{display:flex;gap:8px;flex-wrap:wrap}
.map-overlay-stage{flex:1;min-height:0;overflow:hidden;touch-action:none;cursor:grab;position:relative}
.map-overlay-stage svg{width:100%;height:100%}
.map-overlay-stage .layer-lbl{display:none}
.map-overlay-stage.zoomed .layer-lbl{display:block}
.map-overlay-streets{position:absolute;inset:0}
.map-overlay-note{position:absolute;left:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));right:12px;font-size:12px;color:var(--text-muted);
  background:color-mix(in srgb,var(--surface) 88%,transparent);border:1px solid var(--border);border-radius:8px;padding:8px 10px;pointer-events:none;z-index:3}
.map-overlay .map-tip{transform:translate(12px,12px)}
@container (max-width:1023px){.map-body{grid-template-columns:1fr}}
@container (max-width:767px){
  .map-body{gap:14px}
  .dmap .layer-lbl{display:none}
  .map-legend-row .map-legend{grid-template-columns:repeat(2,minmax(0,1fr))}
  .map-full{top:8px;right:8px;padding:5px 10px}
}
@media (prefers-reduced-motion:reduce){.dmap .dist{transition:none}}

/* FAQ block */
.faq-card .card-body{padding:8px 20px 16px}
.faq-list{display:flex;flex-direction:column}
.faq-item{border-bottom:1px solid var(--border);padding:14px 0}
.faq-item:last-child{border-bottom:none}
.faq-q{display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;font-weight:600;font-size:15px;line-height:1.45;color:var(--text);list-style:none;user-select:none}
.faq-q::-webkit-details-marker{display:none}
.faq-q:hover{color:var(--brand)}
.faq-icon{flex-shrink:0;transition:transform .2s ease;color:var(--text-muted)}
.faq-item[open] .faq-icon{transform:rotate(180deg);color:var(--brand)}
.faq-a{margin-top:10px;font-size:14px;line-height:1.6;color:var(--text-muted)}
.faq-a p{margin:0}
@container (max-width:767px){
  .faq-card .card-body{padding:6px 16px 14px}
  .faq-q{font-size:14px;gap:12px}
  .faq-a{font-size:13.5px}
}

/* «Контакты», «О проекте» и страница редактора: кто отвечает за сайт (решение владельца 04.10.2026) */
.prose--full ul:not([class]){margin:0;padding-left:20px;display:grid;gap:6px;font-size:15px;line-height:1.55;color:var(--text-muted)}
.prose--full ul:not([class])>li::marker{color:var(--brand)}
.contact-grid{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.contact-tile{border:1px solid var(--border);border-radius:8px;padding:14px 16px;background:var(--surface);display:grid;gap:6px;align-content:start}
.contact-value{font-size:16px;overflow-wrap:anywhere}
.contact-tile p{font-size:13px;line-height:1.5;color:var(--text-muted)}
.person{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px 20px;align-items:center}
.person-photo{display:block;width:96px;height:96px;border-radius:50%;object-fit:cover;background:var(--surface-muted)}
.person--hero .person-photo{width:160px;height:160px}
.person-text{display:grid;gap:4px;min-width:0}
.person .person-name{font-size:16px;font-weight:600}
.person .person-role{font-size:15px;line-height:1.45;color:var(--text-1)}
.person-meta{display:flex;flex-wrap:wrap;gap:4px 16px;margin-top:6px;font-size:13px;color:var(--text-muted)}
@container (max-width:767px){
  .contact-grid{grid-template-columns:1fr}
  .person--hero{grid-template-columns:1fr}
  .person--hero .person-photo{width:120px;height:120px}
}

/* плашка «Настройки cookie» (layouts/partials/market/cookie-consent.html): открывается кнопкой из подвала,
   стоит внизу окна поверх страницы; пока она открыта, скрипт добавляет под страницей столько же места.
   Ниже раскрытой карты (.map-overlay, 50): карта на весь экран закрывает всё. При крупном масштабе
   карточка не выше окна и прокручивается сама — заголовок и «Закрыть» не уходят за верх экрана */
.cookie-panel{position:fixed;left:0;right:0;bottom:0;z-index:40;padding:0 16px 16px;pointer-events:none}
.cookie-card{pointer-events:auto;max-width:720px;margin:0 auto;display:grid;gap:10px;padding:16px 20px;
  max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow-y:auto;
  background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow);font-size:14px;line-height:1.5}
.cookie-card:focus{outline:none}
.cookie-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.cookie-head h2{font-size:16px}
.cookie-card p{color:var(--text-muted)}
.cookie-status{font-size:13px}
.cookie-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}
.cookie-btn{font:inherit;font-size:13px;font-weight:600;padding:7px 14px;border:1px solid var(--border);border-radius:8px;
  background:var(--surface);color:var(--text-1);cursor:pointer}
.cookie-btn:hover{border-color:var(--brand);color:var(--brand)}
.cookie-btn--main{background:var(--brand);border-color:var(--brand);color:#fff}
.cookie-btn--main:hover{background:var(--brand-strong);border-color:var(--brand-strong);color:#fff}
.cookie-btn--quiet{padding:4px 10px;color:var(--text-muted)}
@media (max-width:480px){
  .cookie-panel{padding:0 8px 8px}
  .cookie-card{padding:14px 16px}
  .cookie-actions .cookie-btn{flex:1 1 auto}
}
