/* =========================================================
   Инвестиционный портал Яснодольского района (демо)
   Графит + тёплое золото, Unbounded для заголовков и цифр,
   Manrope для текста. Шрифты локальные, внешних запросов нет.
   ========================================================= */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("../fonts/manrope-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("../fonts/manrope-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("../fonts/unbounded-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("../fonts/unbounded-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ============ Токены ============ */
:root {
  --ink-950: #0b0e13;
  --ink-900: #0e1116;
  --ink-800: #161b23;
  --ink-700: #232a35;
  --ink-600: #343c49;
  --on-dark: #e9ecf0;
  --on-dark-2: #a3abb6;
  --gold: #d6b264;
  --gold-2: #e6c987;
  --gold-deep: #b07a12;
  --bronze: #7a5410;
  --text: #262b33;
  --heading: #0e1116;
  --muted: #555b66;
  --line: #e1ddd3;
  --line-2: #ece9e2;
  --bg: #ffffff;
  --paper: #f5f3ee;
  --paper-2: #ebe7dd;
  --green: #1d6b45;
  --green-soft: #e3f1e8;
  --amber: #8a4b00;
  --amber-soft: #fbf0dc;
  --red: #a3242b;
  --blue-soft: #e8eef4;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(14, 17, 22, .05), 0 3px 10px rgba(14, 17, 22, .05);
  --shadow-md: 0 2px 6px rgba(14, 17, 22, .06), 0 22px 44px -20px rgba(14, 17, 22, .3);

  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.22, .7, .2, 1);
  --focus: var(--gold-deep);
}

/* ============ Основа ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--font); font-size: 16.5px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.is-locked { overflow: hidden; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--bronze); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--heading); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.15; font-weight: 700; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
h1 { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 5vw, 60px); letter-spacing: -.02em; line-height: 1.08; }
h2 { font-family: var(--display); font-weight: 600; font-size: clamp(23px, 3vw, 36px); letter-spacing: -.015em; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.005em; }
table { border-collapse: collapse; width: 100%; }
address { font-style: normal; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
code { font-size: .92em; background: var(--paper); padding: 1px 6px; border-radius: 5px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.section--dark :focus-visible, .hero :focus-visible, .header :focus-visible, .footer :focus-visible, .phead :focus-visible, .demo-bar :focus-visible, .panel--dark :focus-visible { outline-color: var(--gold); }
[hidden] { display: none !important; }
main:focus { outline: none; }

.container { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 880px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 300; padding: 10px 16px; background: var(--gold); color: var(--ink-900); border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: 12px; color: var(--ink-900); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.print-only { display: none; }
.req { color: var(--red); }

/* ============ Кнопки ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 11px 22px; font-weight: 700; font-size: 15.5px; line-height: 1.2; text-decoration: none; text-align: center; border-radius: 999px; border: 1.5px solid transparent; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.btn .ico { width: 18px; height: 18px; }
.btn--gold { background: var(--gold); color: var(--ink-900); }
.btn--gold:hover { background: var(--gold-2); color: var(--ink-900); }
.btn--dark { background: var(--ink-900); color: #fff; }
.btn--dark:hover { background: var(--ink-600); color: #fff; }
.btn--ghost { border-color: #cfc9bb; color: var(--heading); background: #fff; }
.btn--ghost:hover { border-color: var(--heading); color: var(--heading); }
.btn--outline-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--outline-light:hover { border-color: var(--gold); color: var(--gold); }
.btn--text { color: var(--muted); padding-inline: 10px; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.btn--text:hover { color: var(--heading); }
.btn--sm { min-height: 38px; padding: 7px 14px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 16.5px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; text-decoration: none; color: var(--bronze); white-space: nowrap; }
.link-more .ico { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.link-more:hover .ico { transform: translateX(3px); }
.link-more--light { color: var(--gold); }
.link-more--light:hover { color: var(--gold-2); }

.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.eyebrow--dark { color: var(--bronze); }

/* ============ Демо-плашка ============ */
.demo-bar { background: var(--ink-950); color: var(--on-dark-2); font-size: 13.5px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.demo-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; padding-block: 6px; }
.demo-bar p { display: flex; align-items: center; gap: 8px; }
.demo-bar .ico { width: 16px; height: 16px; color: var(--gold); }
.demo-bar a { color: #fff; white-space: nowrap; }

/* ============ Шапка ============ */
.header { background: var(--ink-900); color: var(--on-dark); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255, 255, 255, .08); }
html.a11y-on .header { position: static; }
.header__top { display: flex; align-items: center; gap: 24px; min-height: 80px; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; min-width: 0; }
.brand:hover { color: #fff; }
.brand__emblem { width: 46px; height: 46px; flex: none; }
.brand__text { display: flex; flex-direction: column; font-family: var(--display); font-size: 18px; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
.brand__text small { font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.header__tools { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.hotline { display: flex; flex-direction: column; text-decoration: none; color: #fff; line-height: 1.25; }
.hotline span { font-size: 12.5px; color: var(--on-dark-2); }
.hotline b { font-size: 15.5px; white-space: nowrap; }
.hotline:hover { color: var(--gold); }
.btn-a11y { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1.5px solid rgba(255, 255, 255, .3); border-radius: 999px; font-weight: 600; font-size: 14px; color: #fff; line-height: 1.2; text-align: left; }
.btn-a11y:hover { border-color: var(--gold); color: var(--gold); }
.btn-a11y .ico { width: 22px; height: 22px; }
.icon-btn { display: none; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .3); color: #fff; }
.burger span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .2s; }
.burger span + span { margin-top: 4px; }
.burger { flex-direction: column; justify-content: center; align-items: center; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mainnav { border-top: 1px solid rgba(255, 255, 255, .08); }
.mainnav ul { display: flex; flex-wrap: wrap; gap: 0 4px; }
.mainnav a { display: flex; align-items: center; min-height: 50px; padding: 0 14px; color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: 15px; border-bottom: 2px solid transparent; }
.mainnav li:first-child a { padding-left: 0; }
.mainnav a:hover { color: var(--gold); }
.mainnav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }
.mainnav__cta { display: none; }

@media (max-width: 1200px) { .hotline { display: none; } }
@media (max-width: 1020px) {
  .header__top { min-height: 68px; gap: 12px; }
  .icon-btn { display: inline-grid; }
  .burger { display: inline-flex; }
  .btn-a11y span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .btn-a11y { padding: 0; width: 44px; justify-content: center; }
  .mainnav { position: fixed; left: 0; right: 0; bottom: 0; top: var(--nav-top, 104px); background: var(--ink-900); overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s .3s; z-index: 49; }
  .mainnav.is-open { transform: none; visibility: visible; transition: transform .3s var(--ease); }
  .mainnav ul { flex-direction: column; padding-block: 12px 32px; }
  .mainnav a { padding: 0; min-height: 56px; font-size: 18px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .mainnav a[aria-current="page"] { color: var(--gold); box-shadow: inset 3px 0 0 var(--gold); padding-left: 14px; }
  .mainnav__cta { display: block; margin-top: 18px; }
  .mainnav__cta a { justify-content: center; border-radius: 999px; background: var(--gold); color: var(--ink-900); border: 0; padding: 0 20px; }
  .mainnav__cta a:hover { color: var(--ink-900); background: var(--gold-2); }
}
@media (min-width: 1021px) { .burger { display: none; } }
@media (max-width: 640px) {
  .header__cta { display: none; }
  .brand__text { font-size: 15px; }
  .brand__text small { font-size: 10.5px; }
  .brand__emblem { width: 40px; height: 40px; }
  .demo-bar__inner { font-size: 12.5px; }
}

/* ============ Секции ============ */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(32px, 5vw, 56px); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink-900); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head h2 { max-width: 760px; }

/* ============ Hero ============ */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% 10%, #232a35 0%, rgba(35, 42, 53, 0) 60%), var(--ink-900); color: var(--on-dark); padding-block: clamp(48px, 7vw, 96px) 0; }
.hero__glow { position: absolute; inset: auto -10% -40% auto; width: 60%; height: 80%; background: radial-gradient(closest-side, rgba(214, 178, 100, .16), transparent); pointer-events: none; }
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; }
.hero h1 { color: #fff; }
.hero__lead { margin-top: 24px; font-size: clamp(17px, 1.6vw, 20px); color: #c9ced6; max-width: 620px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__art svg { width: 100%; height: auto; display: block; }
.hero__facts { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid rgba(255, 255, 255, .12); }
.hero__facts > div { padding: 26px 20px 30px 0; border-right: 1px solid rgba(255, 255, 255, .08); }
.hero__facts > div + div { padding-left: 20px; }
.hero__facts > div:last-child { border-right: 0; }
.hero__facts dt { font-size: 13.5px; color: var(--on-dark-2); }
.hero__facts dd { font-family: var(--display); font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; color: #fff; margin-top: 6px; line-height: 1.1; }
.hero__facts dd small { display: block; font-family: var(--font); font-size: 13.5px; font-weight: 600; color: var(--gold); margin-top: 6px; }
@media (max-width: 1100px) {
  .hero__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero__facts > div:nth-child(3n) { border-right: 0; }
  .hero__facts > div:nth-child(3n+1) { padding-left: 0; }
  .hero__facts > div:nth-child(n+4) { border-top: 1px solid rgba(255, 255, 255, .08); }
}
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__art { max-width: 460px; }
}
@media (max-width: 560px) {
  .hero__art { display: none; }
  .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__facts > div, .hero__facts > div + div { padding: 18px 12px 20px 0; border-right: 0; }
  .hero__facts > div:nth-child(even) { padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .08); }
  .hero__facts > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .08); }
  .hero__cta .btn { width: 100%; }
}

/* ============ Почему ============ */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.why li { background: #fff; padding: clamp(24px, 3vw, 36px); }
.why__n { display: block; font-family: var(--display); font-size: clamp(28px, 3.2vw, 42px); font-weight: 600; color: var(--heading); letter-spacing: -.02em; line-height: 1; margin-bottom: 18px; }
.why__n::after { content: ""; display: block; width: 36px; height: 3px; background: var(--gold); margin-top: 16px; border-radius: 2px; }
.why h3 { margin-bottom: 8px; }
.why p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .why { grid-template-columns: minmax(0, 1fr); } }

/* ============ Шаги «одного окна» ============ */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: st; }
.steps li { position: relative; padding: 24px 20px 24px; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r-md); background: var(--ink-800); }
.steps li::before { counter-increment: st; content: "0" counter(st); display: block; font-family: var(--display); font-size: 28px; color: var(--gold); margin-bottom: 18px; line-height: 1; }
.steps b { display: block; color: #fff; font-size: 16.5px; line-height: 1.3; }
.steps span { display: block; margin-top: 8px; font-size: 14.5px; color: var(--on-dark-2); }
.band-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .1); }
.band-cta p { font-size: 18px; color: #fff; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ============ Карточки ============ */
.cards { display: grid; gap: 20px; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cards--3 { grid-template-columns: minmax(0, 1fr); } }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: box-shadow .25s var(--ease), border-color .25s, transform .25s var(--ease); }
.card:hover { box-shadow: var(--shadow-md); border-color: #d2ccbe; }
.card__media { position: relative; aspect-ratio: 16 / 9; background: var(--paper); border-bottom: 1px solid var(--line); }
.card__media svg { display: block; width: 100%; height: 100%; }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13.5px; color: var(--muted); }
.card h3 { font-size: 18.5px; }
.card h3 a { color: var(--heading); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card h3 a:hover { text-decoration: underline; }
.card p { font-size: 15px; color: var(--muted); }
.card__foot { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--text); }
.card__foot b { font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--heading); }
.card__dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-2); }
.card__dl dt { font-size: 12.5px; color: var(--muted); }
.card__dl dd { font-weight: 700; color: var(--heading); font-size: 15px; }

.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--paper); color: var(--text); font-size: 12.5px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.tag--g { background: #eef2e6; color: #3b5221; }
.tag--b { background: #f3e9d8; color: var(--bronze); }
.tag--zone { background: var(--ink-900); color: var(--gold); }
.tag--done { background: var(--green-soft); color: var(--green); }
.tag--go { background: var(--amber-soft); color: var(--amber); }
.tag--plan { background: var(--blue-soft); color: #2c4a66; }
.tag--light { background: rgba(255, 255, 255, .1); color: #fff; }
.utils { display: flex; gap: 6px; }
.utils span { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--paper); color: #b1ada3; }
.utils span.on { background: var(--ink-900); color: var(--gold); }
.utils .ico { width: 16px; height: 16px; }

/* Обложки проектов */
.cover { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, #1c222c, #0e1116); color: var(--gold); }
.cover .ico { width: 54px; height: 54px; stroke-width: 1.3; }
.cover::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(214, 178, 100, .07) 0 1px, transparent 1px 16px); }

/* ============ Меры (главная) ============ */
.perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.perks a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 28px 24px; border-radius: var(--r-lg); background: var(--ink-900); color: #fff; text-decoration: none; transition: transform .25s var(--ease), background-color .25s; }
.perks a:hover { background: var(--ink-700); color: #fff; }
.perks b { font-family: var(--display); font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; color: var(--gold); line-height: 1.05; }
.perks span { font-size: 17px; font-weight: 700; margin-top: 8px; line-height: 1.3; }
.perks small { font-size: 14px; color: var(--on-dark-2); margin-top: auto; padding-top: 14px; }
.split-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.tile-cta { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; color: var(--heading); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.tile-cta:hover { border-color: var(--heading); color: var(--heading); box-shadow: var(--shadow-sm); }
.tile-cta > .ico:first-child { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--ink-900); color: var(--gold); }
.tile-cta span { flex: 1; display: flex; flex-direction: column; }
.tile-cta b { font-size: 17px; }
.tile-cta small { font-size: 14.5px; color: var(--muted); }
@media (max-width: 1000px) { .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .split-cta { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .perks { grid-template-columns: minmax(0, 1fr); } }

/* ============ Итоги ============ */
.totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.totals > div { padding: 20px 22px; border-radius: var(--r-md); background: var(--paper); }
.totals dt { font-size: 14px; color: var(--muted); }
.totals dd { font-family: var(--display); font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; color: var(--heading); line-height: 1.15; margin-top: 4px; }
@media (max-width: 800px) { .totals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ============ Инвеступолномоченный ============ */
.ombud { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.ombud__figure { border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(214, 178, 100, .3); }
.ombud__art { display: block; width: 100%; height: auto; }
.ombud__figure figcaption { padding: 10px 14px; font-size: 13px; color: var(--on-dark-2); background: var(--ink-800); }
.ombud__role { color: var(--on-dark-2); margin-top: 8px; font-size: 17px; }
.ombud__quote { margin-top: 26px; padding-left: 22px; border-left: 3px solid var(--gold); font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; color: #fff; }
.ombud__facts { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); gap: 18px 32px; margin-top: 30px; }
.ombud__facts dt { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--on-dark-2); }
.ombud__facts dt .ico { width: 16px; height: 16px; color: var(--gold); }
.ombud__facts dd { margin-top: 4px; font-weight: 600; color: #fff; overflow-wrap: anywhere; }
.ombud__facts a { color: #fff; }
.ombud__facts a:hover { color: var(--gold); }
.ombud__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 900px) { .ombud { grid-template-columns: minmax(0, 1fr); } .ombud__figure { max-width: 320px; } .ombud__facts { grid-template-columns: minmax(0, 1fr); } }

.passband { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 40px; }
.passband p { margin-top: 10px; color: var(--muted); max-width: 640px; }

/* ============ Шапка страницы ============ */
.phead { background: radial-gradient(900px 400px at 90% 0%, #232a35, rgba(35, 42, 53, 0) 70%), var(--ink-900); color: var(--on-dark); padding-block: 28px clamp(36px, 5vw, 60px); }
.phead h1 { color: #fff; font-size: clamp(28px, 4.2vw, 50px); max-width: 980px; }
.phead__lead { margin-top: 18px; max-width: 780px; color: #c9ced6; font-size: clamp(16px, 1.4vw, 18.5px); }
.phead__warn { display: inline-flex; gap: 10px; align-items: flex-start; margin-top: 20px; padding: 12px 16px; border-radius: var(--r-sm); background: rgba(214, 178, 100, .12); border: 1px solid rgba(214, 178, 100, .35); color: #f3e4bf; font-size: 15px; max-width: 780px; }
.phead__warn .ico { color: var(--gold); margin-top: 2px; }
.phead__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 26px; }
.phead__hint { font-size: 14px; color: var(--on-dark-2); }
.phead__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; margin-bottom: 22px; }
.crumbs li { display: flex; align-items: center; color: var(--on-dark-2); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: #5f6773; }
.crumbs a { color: var(--on-dark); text-decoration: none; }
.crumbs a:hover { color: var(--gold); text-decoration: underline; }

/* ============ Формы ============ */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .field > legend, .field .label { font-weight: 700; font-size: 14.5px; color: var(--heading); }
.field > legend { margin-bottom: 7px; }
input[type="text"], input[type="number"], input[type="search"], input[type="email"], input[type="tel"], input[type="url"], input:not([type]), select, textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid #cfc9bb; border-radius: var(--r-sm); background: #fff; font-size: 16px; color: var(--heading); transition: border-color .2s, box-shadow .2s; }
textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23262b33' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
input:hover, select:hover, textarea:hover { border-color: #a9a294; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--heading); }
::placeholder { color: #7b808a; }
[aria-invalid="true"] { border-color: var(--red) !important; }
.field__hint { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--muted); }
.field__err { font-size: 13.5px; color: var(--red); font-weight: 600; }
.field__err:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1.5px solid #cfc9bb; border-radius: 999px; font-size: 14.5px; font-weight: 600; background: #fff; transition: background-color .2s, color .2s, border-color .2s; }
.chip input:checked + span { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.chip:hover span { border-color: var(--heading); }
.checks { display: grid; gap: 4px; }
.checks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
@media (max-width: 560px) { .checks--2 { grid-template-columns: minmax(0, 1fr); } }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink-900); flex: none; }
.check .ico { width: 18px; height: 18px; color: var(--bronze); }
.check--consent { align-items: flex-start; font-size: 14.5px; line-height: 1.5; }
.check--consent input { margin-top: 2px; }
.range2 { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.search-inp { position: relative; }
.search-inp .ico { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--muted); }
.search-inp input { padding-left: 44px; }

/* Сегментированный переключатель */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.seg button, .seg label span { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--text); cursor: pointer; }
.seg button .ico { width: 17px; height: 17px; }
.seg button[aria-pressed="true"], .seg input:checked + span { background: var(--ink-900); color: #fff; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 1px; }

/* ============ Площадки ============ */
.sites { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.sfilter { position: sticky; top: 150px; display: grid; gap: 22px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
html.a11y-on .sfilter { position: static; }
.sfilter__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sfilter__head h2 { display: flex; align-items: center; gap: 8px; font-family: var(--font); font-size: 18px; font-weight: 800; letter-spacing: 0; }
.sites__main { min-width: 0; }
.sites__bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.sites__count { font-weight: 700; color: var(--heading); font-size: 16px; margin-bottom: 16px; }
.sites__bar .sites__count { margin-bottom: 0; }
.mapbox { position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #f4f2ec; }
.mapbox__canvas { position: relative; }
.dmap { display: block; width: 100%; height: auto; }
.mapbox__pins { position: absolute; inset: 0; }
.pin { position: absolute; display: grid; place-items: center; width: 32px; height: 32px; translate: -50% -50%; border-radius: 50% 50% 50% 4px; rotate: -45deg; background: var(--ink-900); color: var(--gold); border: 2px solid #fff; box-shadow: 0 3px 8px rgba(14, 17, 22, .35); font-weight: 800; font-size: 13px; transition: transform .2s var(--ease), background-color .2s; }
.pin > span { rotate: 45deg; }
.pin--b { background: var(--bronze); color: #fff; }
.pin:hover, .pin.is-active { background: var(--gold); color: var(--ink-900); transform: scale(1.2); z-index: 2; }
.pin:focus-visible { outline: 3px solid var(--ink-900); outline-offset: 2px; z-index: 3; }
.pin.is-dim { opacity: .3; }
.pin--static { position: static; translate: none; rotate: 0deg; width: 22px; height: 22px; font-size: 11px; border-radius: 50%; border-width: 1.5px; transform: none; }
.mapbox__pop { position: absolute; left: 16px; bottom: 16px; width: min(380px, calc(100% - 32px)); padding: 18px 18px 18px; background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.mapbox__pop h3 { font-size: 17px; padding-right: 36px; }
.mapbox__pop p { font-size: 14.5px; color: var(--muted); margin-top: 6px; }
.mapbox__pop .card__dl { margin-top: 12px; }
.mapbox__pop .pop__close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--heading); }
.mapbox__pop .pop__close:hover { background: var(--paper); }
.mapbox__pop .pop__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mlegend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 14px 0 26px; font-size: 13.5px; color: var(--muted); }
.mlegend li { display: inline-flex; align-items: center; gap: 8px; }
.mlegend i { display: inline-block; width: 26px; height: 0; }
.mlegend__road { border-top: 5px solid var(--gold-deep); }
.mlegend__rail { border-top: 4px dashed #3b414b; }
.mlegend__river { border-top: 5px solid #9cc0d4; }
.mlegend__zone { height: 14px !important; border: 2px dashed var(--gold-deep); background: rgba(176, 122, 18, .1); }
.slist { display: grid; gap: 12px; }
.sitem { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 18px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; transition: border-color .2s, box-shadow .2s; }
.sitem:hover, .sitem.is-active { border-color: var(--heading); box-shadow: var(--shadow-sm); }
.sitem.is-active { box-shadow: inset 4px 0 0 var(--gold), var(--shadow-sm); }
.sitem__n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink-900); color: var(--gold); font-weight: 800; font-size: 14px; }
.sitem--b .sitem__n { background: var(--bronze); color: #fff; }
.sitem h3 { font-size: 17px; }
.sitem h3 a { color: var(--heading); text-decoration: none; }
.sitem h3 a:hover { text-decoration: underline; }
.sitem__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--muted); margin-top: 4px; }
.sitem__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.sitem__area { font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--heading); white-space: nowrap; }
.sitem__show { font-size: 13.5px; font-weight: 700; color: var(--bronze); text-decoration: underline; text-underline-offset: 3px; }
.mapbox.is-list, .mlegend.is-list { display: none; }
@media (max-width: 1020px) { .sites { grid-template-columns: minmax(0, 1fr); } .sfilter { position: static; } }
@media (max-width: 620px) {
  .pin { width: 26px; height: 26px; font-size: 11px; border-width: 1.5px; }
  .mapbox__pop { position: static; width: auto; box-shadow: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
  .sitem { grid-template-columns: auto minmax(0, 1fr); }
  .sitem__side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

.empty { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 40px 20px; border: 1.5px dashed #cfc9bb; border-radius: var(--r-lg); background: var(--paper); }
.empty > .ico { width: 40px; height: 40px; color: var(--bronze); }
.empty p { max-width: 520px; }
.empty__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }

/* ============ Карточка площадки ============ */
.site-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.site-layout > * { min-width: 0; }
.site-main { display: grid; gap: 28px; }
.site-side { position: sticky; top: 150px; display: grid; gap: 16px; }
html.a11y-on .site-side { position: static; }
.site-key { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.site-key > div { padding: 18px; border-radius: var(--r-md); background: var(--paper); }
.site-key dt { font-size: 13px; color: var(--muted); }
.site-key dd { font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--heading); margin-top: 4px; line-height: 1.2; overflow-wrap: anywhere; }
.ugrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ucard { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); }
.ucard__ico { grid-row: span 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ink-900); color: var(--gold); }
.ucard--off .ucard__ico { background: var(--paper); color: var(--muted); }
.ucard h3 { font-size: 16px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.ucard p { font-size: 14.5px; color: var(--muted); }
.ucard b { color: var(--heading); }
.plan { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.plan svg { display: block; width: 100%; height: auto; }
.plan figcaption { padding: 12px 18px; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line-2); }
.transport { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.transport li { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); }
.transport .ico { color: var(--bronze); }
.transport b { font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--heading); }
.transport span { font-size: 13.5px; color: var(--muted); }
.h-sub { font-family: var(--font); font-size: 21px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 14px; }
@media (max-width: 1020px) { .site-layout { grid-template-columns: minmax(0, 1fr); } .site-side { position: static; } }
@media (max-width: 700px) { .site-key, .transport { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ugrid { grid-template-columns: minmax(0, 1fr); } }

/* ============ Таблицы ============ */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.table th, .table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.table tr:last-child > * { border-bottom: 0; }
.table thead th { background: var(--paper); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.table--kv th { width: 46%; font-weight: 600; color: var(--muted); }
.table--kv td { color: var(--heading); font-weight: 600; }
.table td.num, .table th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ============ Панели ============ */
.panel { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.panel h2 { font-family: var(--font); font-size: 18px; font-weight: 800; letter-spacing: -.005em; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel > p + p { margin-top: 10px; }
.panel--dark { background: var(--ink-900); border-color: var(--ink-900); color: var(--on-dark); }
.panel--dark h2 { color: #fff; margin-bottom: 14px; }
.panel--dark a:not(.btn) { color: var(--gold); }
.panel--gold { background: var(--ink-900); border-color: var(--ink-900); color: var(--on-dark); }
.panel--gold h2 { color: #fff; }
.contact-card p { font-size: 15px; }
.contact-card p + p { margin-top: 8px; }
.contact-card .btn { width: 100%; margin-top: 16px; }

/* ============ Меры поддержки ============ */
.match { padding: clamp(20px, 3vw, 32px); border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); margin-bottom: 28px; scroll-margin-top: 150px; }
.match__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 20px; }
.match__head h2 { display: flex; align-items: center; gap: 10px; font-family: var(--font); font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.match__head h2 .ico { color: var(--bronze); width: 24px; height: 24px; }
.match__head p { font-size: 14px; color: var(--muted); }
.match__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.match__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }
.seg--light { background: #fff; }
.match__result { margin-top: 16px; font-weight: 700; color: var(--heading); }
.match__result:empty { display: none; }
@media (max-width: 900px) { .match__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .match__grid { grid-template-columns: minmax(0, 1fr); } }
.measures { display: grid; gap: 36px; margin-bottom: 28px; }
.mgroup h2 { display: flex; align-items: baseline; gap: 12px; font-size: clamp(21px, 2.2vw, 27px); margin-bottom: 16px; }
.mgroup h2 small { font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.mlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.measure { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; scroll-margin-top: 150px; transition: opacity .2s, border-color .2s, box-shadow .2s; }
.measure__benefit { font-family: var(--display); font-weight: 600; font-size: clamp(19px, 1.8vw, 23px); color: var(--heading); line-height: 1.2; }
.measure h3 { font-size: 17px; }
.measure p { font-size: 15px; color: var(--muted); }
.measure ul { display: grid; gap: 4px; font-size: 14.5px; }
.measure ul li { position: relative; padding-left: 18px; }
.measure ul li::before { content: ""; position: absolute; left: 2px; top: .65em; width: 7px; height: 7px; border-radius: 2px; background: var(--gold-deep); }
.measure__foot { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 13.5px; color: var(--muted); }
.measure__badge { position: absolute; top: 18px; right: 18px; display: none; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 13px; font-weight: 800; }
.measure__badge .ico { width: 15px; height: 15px; stroke-width: 2.6; }
.measure.is-match { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.measure.is-match .measure__badge { display: inline-flex; }
.measure.is-match .measure__benefit { padding-right: 110px; }
.measure.is-miss { background: var(--paper); border-style: dashed; border-color: #cfc9bb; }
.measure.is-miss .measure__benefit { color: var(--muted); }
.measure:target { box-shadow: 0 0 0 3px var(--gold); }
@media (max-width: 800px) { .mlist { grid-template-columns: minmax(0, 1fr); } }

/* ============ Калькулятор ============ */
.calc { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 28px; align-items: start; }
.calc__form { position: sticky; top: 150px; display: grid; gap: 18px; padding: 24px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
html.a11y-on .calc__form { position: static; }
.calc__form h2 { font-family: var(--font); font-size: 19px; font-weight: 800; letter-spacing: 0; }
.calc__out { display: grid; gap: 20px; min-width: 0; }
.calc__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kpi { padding: 22px; border-radius: var(--r-lg); background: var(--ink-900); color: var(--on-dark); }
.kpi dt, .kpi .kpi__l { font-size: 14px; color: var(--on-dark-2); }
.kpi dd, .kpi .kpi__v { display: block; font-family: var(--display); font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; color: #fff; margin-top: 6px; line-height: 1.1; }
.kpi--gold .kpi__v { color: var(--gold); }
.kpi small { display: block; margin-top: 6px; font-size: 13px; color: var(--on-dark-2); }
.applied { display: grid; gap: 8px; }
.applied li { display: flex; flex-wrap: wrap; min-width: 0; justify-content: space-between; gap: 4px 16px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--paper); font-size: 15px; }
.applied li a { font-weight: 700; }
.applied li b { color: var(--green); white-space: nowrap; }
.applied li.is-off { background: #fff; border: 1px dashed #cfc9bb; color: var(--muted); }
.applied li.is-off b { color: var(--muted); font-weight: 600; white-space: normal; }
.gantt { display: grid; gap: 10px; }
.gantt__scale { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px; font-size: 12.5px; color: var(--muted); }
.gantt__ticks { position: relative; height: 18px; }
.gantt__ticks span { position: absolute; top: 0; translate: -50% 0; white-space: nowrap; }
.gantt__ticks span:first-child { translate: 0 0; }
.gantt__ticks span:last-child { translate: -100% 0; }
.gantt__row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px; align-items: center; }
.gantt__row > span { font-size: 14.5px; font-weight: 600; color: var(--heading); }
.gantt__track { position: relative; height: 30px; border-radius: 8px; background: repeating-linear-gradient(90deg, var(--paper) 0 calc(100% / 6 - 1px), var(--line) calc(100% / 6 - 1px) calc(100% / 6)); }
.gantt__bar { position: absolute; top: 4px; bottom: 4px; border-radius: 6px; background: var(--ink-900); color: #fff; font-size: 12.5px; font-weight: 700; display: flex; align-items: center; padding: 0 8px; white-space: nowrap; min-width: 28px; }
.gantt__bar--gold { background: var(--gold); color: var(--ink-900); }
.gantt__bar--soft { background: var(--ink-600); }
.calc__cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 1020px) { .calc { grid-template-columns: minmax(0, 1fr); } .calc__form { position: static; } }
@media (max-width: 640px) {
  .calc__kpis { grid-template-columns: minmax(0, 1fr); }
  .gantt__row, .gantt__scale { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .gantt__scale > span:first-child { display: none; }
}

/* ============ Графики ============ */
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--font); }
.chart .bar { transition: opacity .15s; }
.chart .bar:hover { opacity: .8; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; font-size: 14px; color: var(--text); }
.chart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.chart-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.chart-note { font-size: 13px; color: var(--muted); margin-top: 8px; }
.datatable { margin-top: 14px; }
.datatable summary { cursor: pointer; font-weight: 700; color: var(--bronze); font-size: 14.5px; min-height: 32px; display: inline-flex; align-items: center; }
.datatable .table-wrap { margin-top: 10px; }
.hbars { display: grid; gap: 12px; }
.hbar { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr) 48px; gap: 12px; align-items: center; font-size: 14.5px; }
.hbar__t { height: 14px; border-radius: 0 4px 4px 0; background: var(--paper); overflow: hidden; }
.hbar__t i { display: block; height: 100%; background: var(--ink-900); border-radius: 0 4px 4px 0; }
.hbar b { text-align: right; color: var(--heading); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .hbar { grid-template-columns: minmax(0, 1fr) 44px; } .hbar__t { grid-column: 1 / -1; grid-row: 2; } }

/* ============ Инвестпаспорт ============ */
.passport { display: grid; gap: 24px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pgrid .table-wrap, .pgrid .table { border: 0; }
.pgrid .table th, .pgrid .table td { padding-inline: 0 12px; }
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--ink-900) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d6b264' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .charts, .pgrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .kpis { grid-template-columns: minmax(0, 1fr); } }

/* ============ Обращение ============ */
.apply { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.apply__main { min-width: 0; }
.apply__side { display: grid; gap: 16px; }
.stepper { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 24px; counter-reset: none; }
.stepper li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--paper); font-weight: 700; font-size: 14.5px; color: var(--muted); }
.stepper li span { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 1.5px solid #cfc9bb; font-size: 13.5px; }
.stepper li[aria-current="step"] { background: var(--ink-900); color: #fff; }
.stepper li[aria-current="step"] span { background: var(--gold); border-color: var(--gold); color: var(--ink-900); }
.stepper li.is-done { color: var(--green); }
.stepper li.is-done span { background: var(--green); border-color: var(--green); color: #fff; }
@media (max-width: 700px) { .stepper { grid-template-columns: repeat(4, minmax(0, 1fr)); } .stepper li { flex-direction: column; text-align: center; padding: 10px 4px; font-size: 12.5px; gap: 6px; } }
.aform { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.astep > legend { margin-bottom: 20px; }
.astep > legend h2 { font-size: clamp(21px, 2.2vw, 26px); }
.astep > p { margin: -8px 0 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field--wide { grid-column: 1 / -1; }
@media (max-width: 620px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.aform__draft { font-size: 13.5px; color: var(--green); font-weight: 600; min-height: 1.4em; margin-bottom: 8px; }
.aform__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 28px 0 12px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.aform__nav [data-clear] { margin-left: auto; }
.mini-steps { display: grid; gap: 14px; counter-reset: ms; }
.mini-steps li { position: relative; padding-left: 40px; font-size: 14.5px; color: var(--on-dark-2); }
.mini-steps li::before { counter-increment: ms; content: counter(ms); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold); font-weight: 800; font-size: 13px; }
.mini-steps b { display: block; color: #fff; font-size: 15px; }
.asuccess { padding: clamp(24px, 4vw, 40px); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.asuccess:focus { outline: none; }
.asuccess__badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-weight: 800; font-size: 14px; margin-bottom: 16px; }
.asuccess h2 { font-size: clamp(22px, 2.6vw, 30px); }
.asuccess h2 span { white-space: nowrap; }
.asuccess > p { margin-top: 12px; }
.asuccess__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 16px; }
.track { display: grid; gap: 0; margin-top: 26px; }
.track li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 14px; padding-bottom: 22px; }
.track li::before { content: ""; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: var(--line); }
.track li:last-child::before { display: none; }
.track__dot { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #cfc9bb; background: #fff; color: var(--muted); font-weight: 800; font-size: 13px; }
.track__dot .ico { width: 18px; height: 18px; stroke-width: 2.6; }
.track b { display: block; color: var(--heading); }
.track small { display: block; font-size: 14px; color: var(--muted); }
.track .is-done .track__dot { background: var(--green); border-color: var(--green); color: #fff; }
.track .is-done::before { background: var(--green); }
.track .is-now .track__dot { background: var(--gold); border-color: var(--gold); color: var(--ink-900); }
.track .is-now b::after { content: " · в работе"; color: var(--amber); font-weight: 700; }
@media (max-width: 1020px) { .apply { grid-template-columns: minmax(0, 1fr); } }

/* ============ Проекты / документы / новости ============ */
.bar-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 20px; padding: 20px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); margin-bottom: 22px; }
.bar-filter .field { min-width: 220px; }
.bar-filter .field--grow { flex: 1; min-width: min(100%, 280px); }
@media (max-width: 560px) { .bar-filter .field { min-width: 0; width: 100%; } }
.doclist { display: grid; gap: 10px; }
.doc { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 18px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; position: relative; }
.doc:hover { border-color: var(--heading); }
.doc__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--paper); color: var(--bronze); }
.doc h3 { font-size: 16.5px; }
.doc h3 a { color: var(--heading); text-decoration: none; }
.doc h3 a::after { content: ""; position: absolute; inset: 0; }
.doc h3 a:hover { text-decoration: underline; }
.doc__meta { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.doc mark, .doclist mark { background: #f6e3b4; color: inherit; border-radius: 3px; padding: 0 2px; }
@media (max-width: 620px) { .doc { grid-template-columns: auto minmax(0, 1fr); } .doc > .tag { grid-column: 2; justify-self: start; } }
.paper { padding: clamp(24px, 5vw, 56px); border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm); }
.paper__org { font-size: 13.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.paper h2 { margin: 12px 0 8px; font-size: clamp(22px, 2.6vw, 30px); }
.paper__num { color: var(--muted); margin-bottom: 24px; }
.paper__body p + p { margin-top: 14px; }
.paper__tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; font-weight: 700; text-decoration: none; }
.back .ico { width: 18px; height: 18px; }
.tags-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tags-filter button { min-height: 40px; padding: 7px 16px; border-radius: 999px; border: 1.5px solid #cfc9bb; font-weight: 700; font-size: 14px; background: #fff; }
.tags-filter button[aria-pressed="true"] { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.tags-filter button:hover { border-color: var(--heading); }
.ncard__date { font-size: 13.5px; color: var(--muted); }
.ncard .card__body { padding-top: 26px; }
.ncard::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }

/* ============ Текст ============ */
.prose h2 { font-size: clamp(20px, 2vw, 24px); margin: 32px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 12px; }
.prose ul { display: grid; gap: 6px; padding-left: 20px; list-style: disc; }

/* ============ Соответствие ============ */
.comp { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 40px; align-items: start; }
.comp > *, .comp__body > * { min-width: 0; }
.comp__toc { position: sticky; top: 150px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
html.a11y-on .comp__toc { position: static; }
.comp__toc-h { font-weight: 800; color: var(--heading); margin-bottom: 10px; }
.comp__toc li + li { margin-top: 8px; }
.comp__toc a { font-size: 15px; }
.comp__body { display: grid; gap: 44px; }
.comp__sec > p { margin: 12px 0 18px; max-width: 840px; }
.comp__sec h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: clamp(21px, 2.3vw, 27px); scroll-margin-top: 150px; margin-bottom: 14px; }
.lawtag { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--ink-900); color: var(--gold); font-family: var(--font); font-size: 13.5px; font-weight: 800; letter-spacing: .03em; }
.ctable th[scope="row"] { width: 36%; font-weight: 600; font-size: 14.5px; color: var(--heading); }
.ctable td { font-size: 14.5px; }
.ctable td.ok { width: 104px; white-space: nowrap; color: var(--green); font-weight: 700; }
.ctable td.ok .ico { width: 18px; height: 18px; stroke-width: 2.4; margin-right: 4px; }
.note { display: flex; gap: 12px; padding: 18px 20px; border-radius: var(--r-md); background: var(--amber-soft); color: #4f3200; font-size: 15px; }
.note .ico { color: var(--amber); margin-top: 2px; }
.note--info { background: var(--paper); color: var(--text); }
.note--info .ico { color: var(--bronze); }
@media (max-width: 960px) { .comp { grid-template-columns: minmax(0, 1fr); } .comp__toc { position: static; } }

/* ============ Подвал ============ */
.footer { background: var(--ink-950); color: var(--on-dark-2); font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; padding-block: 56px 40px; }
.footer address { margin-top: 20px; line-height: 1.75; }
.footer a { color: var(--on-dark); text-decoration: none; overflow-wrap: anywhere; }
.footer a:hover { color: var(--gold); text-decoration: underline; }
.footer__h { color: #fff; font-family: var(--font); font-size: 13.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer li + li { margin-top: 9px; }
.footer__person { color: #fff; font-weight: 700; margin-bottom: 10px; }
.footer__person span { font-weight: 500; color: var(--on-dark-2); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; }
.footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 20px 24px; }
.footer__bottom strong { color: #fff; font-weight: 700; }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer__bottom li + li { margin-top: 0; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* ============ Тост ============ */
.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 200; padding: 12px 20px; border-radius: 999px; background: var(--ink-900); color: #fff; font-weight: 600; box-shadow: var(--shadow-md); max-width: calc(100% - 32px); }

/* ============ Появление при прокрутке ============ */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  html.js .reveal.is-in { opacity: 1; transform: none; }
}
html.a11y-on .reveal { opacity: 1 !important; transform: none !important; }

/* ============ Уменьшенная анимация ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ============ Печать ============ */
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  .demo-bar, .header, .footer, .crumbs, .phead__actions, .phead__hint, .toast, .skip, .datatable summary, .calc__cta, .calc__form .field__hint, .back, .paper__tools { display: none !important; }
  body { font-size: 10.5pt; color: #000; background: #fff; }
  .phead { background: none !important; color: #000; padding: 0 0 8mm; border-bottom: 2px solid #000; }
  .phead h1, .phead__lead { color: #000; }
  .phead h1 { font-size: 22pt; }
  .phead__warn { color: #000; background: none; border: 1px solid #000; }
  .section, .section--tight { padding-block: 6mm; }
  .print-only { display: block; }
  .print-head { font-size: 9pt; border-bottom: 1px solid #999; padding-bottom: 3mm; }
  .kpi { background: #fff !important; color: #000; border: 1px solid #999; }
  .kpi .kpi__v, .kpi dd { color: #000 !important; }
  .kpi .kpi__l, .kpi dt, .kpi small { color: #333 !important; }
  .panel, .chart, .table-wrap { break-inside: avoid; }
  .passport { display: block; }
  .passport > * { margin-bottom: 5mm; }
  .charts, .pgrid { display: block; columns: 2; column-gap: 6mm; }
  .charts > .panel, .pgrid > .panel { display: block; margin: 0 0 5mm; break-inside: avoid; }
  .panel { padding: 4mm; border-color: #999; }
  .kpis { grid-template-columns: repeat(4, 1fr); gap: 3mm; }
  .kpi { padding: 4mm; border-radius: 3mm; }
  .kpi dd, .kpi .kpi__v { font-size: 15pt; }
  .hbar { grid-template-columns: 38% 1fr 12mm; font-size: 9pt; }
  .hbar__t { grid-column: auto; grid-row: auto; }
  .hbar__t i, .ticks li::before { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .table th, .table td { padding: 2mm 2mm 2mm 0; font-size: 9pt; }
  .datatable[open] .table-wrap, .datatable .table-wrap { display: block; }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc__form { position: static; break-inside: avoid; }
  .container { max-width: none; padding: 0; }
  a { color: #000; text-decoration: none; }
}

/* Одноколоночные гриды не должны раздвигаться содержимым */
.calc__out, .site-main, .passport, .measures, .comp__body, .apply__side, .site-side, .slist, .doclist, .gantt, .applied { grid-template-columns: minmax(0, 1fr); }
.ucard > :not(.ucard__ico) { grid-column: 2; }
.ucard__ico { grid-row: 1 / span 4; }

/* Фильтр площадок на узких экранах сворачивается */
.sfilter__body { display: grid; gap: 22px; }
.sfilter__toggle { display: none; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1.5px solid #cfc9bb; font-weight: 700; }
.sfilter__toggle span { flex: 1; text-align: left; }
.sfilter__toggle[aria-expanded="true"] .ico:last-child { transform: rotate(180deg); }
@media (max-width: 1020px) {
  .sfilter__toggle { display: flex; }
  .sfilter.is-collapsed .sfilter__body { display: none; }
  .sfilter.is-collapsed { gap: 14px; }
}
@media (max-width: 620px) { .mapbox__pop { position: relative; left: auto; bottom: auto; } }

.plan__legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; padding: 14px 18px 4px; font-size: 14px; }
.plan__legend li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.plan__legend li.on { color: var(--heading); font-weight: 600; }
.plan__legend span { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px dashed #8a8f98; font-weight: 800; font-size: 12.5px; }
.plan__legend li.on span { border: 2px solid var(--ink-900); background: var(--gold); color: var(--ink-900); }
@media (max-width: 560px) { .plan__legend { grid-template-columns: minmax(0, 1fr); } }
