/* design · стиль: Статика (подразделение в системе «Ураласбест», design.md v1) · структура: полноэкранный фото-герой с «пропуском» совета, конвейер подразделений, табло цифр, анкета-чеклист, стопка карточек направлений, пропуска-отзывы · тема: «Ураласбест» (фирменный зелёный + минеральный белый, янтарный акцент) · шрифты: Unbounded 300/500 (молодёжный акцидент вместо Segoe Semilight) + Manrope + JetBrains Mono · анимации: hero rise + падение пропуска, конвейер (marquee), number scramble, галочки анкеты, stacking cards, линия таймлайна, reveal · навигация: N3 (служебная строка + главная) · подвал: Ft2 */

/* Сетка как у корпоративного сайта: колонка 1320px, заголовки слева, факты справа; светлый → минеральный → тёмно-зелёный. */
:root {
  /* Цвета бренда — один в один с design.md «Ураласбеста» */
  --c-green:      #005244;
  --c-green-deep: #00382F;
  --c-green-ink:  #002A23;
  --c-sage:       #699E82;
  --c-sage-soft:  #CFE0D5;
  --c-graphite:   #535A58;
  --c-text:       #1E2523;
  --c-mineral:    #F2F4F0;
  --c-paper:      #FBFCFA;
  --c-white:      #FEFFFE;
  --c-line:       #D9DFDA;
  --c-amber:      #FCB23A;
  --c-on-dark:    #EEF3EF;
  --c-on-dark-2:  #A9C2B5;
  --c-lines-bg:   #0F2A1F;
  --c-error:      #B3261E;

  /* Шрифты: Unbounded — голос молодёжи, Manrope — текст, JetBrains Mono — метаданные (как у комбината) */
  --f-display: "Unbounded", "Segoe UI", "Open Sans", system-ui, sans-serif;
  --f-body:    "Manrope", "Segoe UI", "Open Sans", system-ui, -apple-system, sans-serif;
  --f-mono:    "JetBrains Mono", "IBM Plex Mono", ui-monospace, "Consolas", monospace;

  --fs-hero:  clamp(2.3rem, 5.4vw, 5.2rem);
  --fs-h2:    clamp(1.75rem, 3.3vw, 3rem);
  --fs-h3:    clamp(1.1rem, 1.35vw, 1.3rem);
  --fs-lead:  clamp(1.05rem, 1.2vw, 1.2rem);
  --fs-body:  1.0625rem;
  --fs-meta:  .72rem;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 56px);
  --sec: clamp(72px, 9vw, 136px);
  --radius: 2px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --header-h: 76px;

  /* Тени и узоры — подбираются панелью настройки (js/tuner.js, Ctrl+Shift+T); градиент и фото героя — переменные --hg-*, --hp-* с запасными значениями ниже */
  --pass-shadow: .65;   /* тень пропуска */
  --pass-tilt: -3;      /* наклон пропуска, градусы */
  --lines-op: 1;        /* узор «волокна» на зелёных блоках */
  --dir-shadow: .55;    /* тень карточек направлений */
  --photo-ov: .85;      /* затемнение под подписями на фото */
  color-scheme: light;
}

/* ---------- шрифты (self-host, кириллица + латиница) ---------- */
@font-face { font-family: "Unbounded"; font-weight: 300; font-display: swap; src: url("../fonts/unbounded-cyrillic-300-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 300; font-display: swap; src: url("../fonts/unbounded-latin-300-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, 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-weight: 500; font-display: swap; src: url("../fonts/unbounded-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 500; font-display: swap; src: url("../fonts/unbounded-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url("../fonts/manrope-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("../fonts/manrope-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("../fonts/manrope-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("../fonts/jetbrains-mono-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--c-paper); color: var(--c-text); font: 400 var(--fs-body)/1.62 var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; text-wrap: balance; overflow-wrap: anywhere; min-width: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--c-amber); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 1000; background: var(--c-green); color: var(--c-white); padding: 10px 14px; }
.skip:focus { top: 8px; }
.nobr { white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.meta { font: 500 var(--fs-meta)/1.45 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.h2 { font: 300 var(--fs-h2)/1.12 var(--f-display); letter-spacing: -.02em; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--c-graphite); max-width: 60ch; }
.sec { padding-block: var(--sec); }
.sec--mineral { background: var(--c-mineral); }
.sec--dark { background: var(--c-green-deep); color: var(--c-on-dark); }
.sec--dark .lead { color: var(--c-on-dark-2); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px clamp(24px, 4vw, 72px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head > .meta { color: var(--c-sage); grid-column: 1 / -1; margin-bottom: -6px; }
.sec-head .h2 { color: var(--c-green-deep); }
.sec--dark .sec-head .h2 { color: var(--c-on-dark); }
.sec-head .side { display: grid; gap: 18px; justify-items: start; }

/* ---------- эмблема совета: маска, красится текущим цветом ---------- */
.emblem { display: block; flex: none; width: 52px; height: 52px; background: url("../img/emblem-white.png") center / contain no-repeat; }

/* ---------- кнопки и ссылки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7em; white-space: nowrap;
  font: 700 .92rem/1 var(--f-body); letter-spacing: .01em; text-decoration: none;
  padding: 1.05em 1.5em; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out), transform .25s var(--ease-out);
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; transition: transform .3s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c-green); color: var(--c-white); }
.btn--primary:hover { background: var(--c-green-deep); }
.btn--light { background: var(--c-paper); color: var(--c-green-deep); }
.btn--light:hover { background: var(--c-sage-soft); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: rgb(255 255 255 / .08); }
.btn--sm { padding: .85em 1.15em; font-size: .82rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn.is-loading { opacity: .7; cursor: progress; }

.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; font-size: .95rem; color: var(--c-green); text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: ""; width: 22px; height: 1px; background: currentColor; transition: width .35s var(--ease-out); }
.link-arrow:hover::after { width: 38px; }
.sec--dark .link-arrow { color: var(--c-sage-soft); }

/* ---------- служебная строка ---------- */
.topbar { background: var(--c-green-ink); color: var(--c-on-dark-2); font-size: .8rem; position: relative; z-index: 60; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 38px; }
.topbar ul { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: center; }
.topbar a { text-decoration: none; white-space: nowrap; transition: color .2s; }
.topbar a:hover { color: var(--c-white); }
.topbar .tb-parent { display: inline-flex; align-items: center; gap: 10px; color: var(--c-on-dark); }
.topbar .tb-parent svg { width: 14px; height: 14px; transition: transform .3s var(--ease-out); }
.topbar .tb-parent:hover svg { transform: translateX(-3px); }
.topbar .tb-parent img { height: 18px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
.topbar .tb-right { display: flex; gap: 22px; align-items: center; white-space: nowrap; }

/* ---------- шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  color: var(--c-white); background: transparent; margin-bottom: calc(-1 * var(--header-h));
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.header.is-solid { background: var(--c-paper); color: var(--c-text); box-shadow: 0 1px 0 var(--c-line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; min-width: 0; }
.brand .emblem { width: 50px; height: 50px; }
.header.is-solid .brand .emblem { background-image: url("../img/emblem-green.png"); }
.brand-name { display: grid; gap: 3px; }
.brand-name b { font: 500 .92rem/1.15 var(--f-display); letter-spacing: -.01em; white-space: nowrap; }
.brand-name small { font: 500 .62rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; opacity: .75; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav ul { display: flex; gap: clamp(14px, 1.7vw, 28px); }
.nav-link { display: inline-flex; align-items: center; height: var(--header-h); font: 700 .78rem/1 var(--f-body); letter-spacing: .07em; text-transform: uppercase; text-decoration: none; white-space: nowrap; position: relative; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 22px; height: 2px; background: var(--c-amber); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.header:not(.is-solid) .nav .btn--primary { background: var(--c-paper); color: var(--c-green-deep); }
.header:not(.is-solid) .nav .btn--primary:hover { background: var(--c-sage-soft); }

.burger { display: none; width: 46px; height: 46px; border: 1px solid currentColor; background: none; border-radius: 50%; cursor: pointer; place-items: center; flex: none; }
.burger span { display: block; width: 18px; height: 1.5px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }

/* мобильное меню */
.mmenu { position: fixed; inset: 0; z-index: 200; background: var(--c-green-deep); color: var(--c-on-dark); overflow-y: auto;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 40px);
  transform: translateX(100%); visibility: hidden; transition: transform .55s var(--ease-out), visibility 0s .55s; }
.mmenu.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.mmenu-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; gap: 16px; }
.mmenu-close { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--c-paper); color: var(--c-green-deep); font-size: 20px; cursor: pointer; flex: none; }
.mmenu nav a { display: block; padding: 16px 0; font: 300 1.5rem/1.15 var(--f-display); text-decoration: none; border-bottom: 1px solid rgb(255 255 255 / .14); }
.mmenu nav a[aria-current="page"] { color: var(--c-amber); }
.mmenu .m-util { margin-top: 28px; display: grid; gap: 12px; font-size: .95rem; color: var(--c-on-dark-2); }
.mmenu .m-util a { text-decoration: none; }
.mmenu .btn { margin-top: 26px; }

/* ---------- фон «волокна» — фирменная подложка комбината ---------- */
.has-lines { position: relative; overflow: hidden; isolation: isolate; background-color: var(--c-lines-bg); }
.has-lines > .wrap { position: relative; z-index: 1; }
.bg-lines { position: absolute; inset: -14% 0; z-index: 0; pointer-events: none; opacity: var(--lines-op);
  background: var(--c-lines-bg) url("../img/bg-lines.webp") center / cover no-repeat; translate: 0 var(--py, 0px); }
.bg-lines--static { inset: 0; translate: none; }

/* ---------- герой: фото на весь экран + «пропуск» совета ---------- */
.hero { position: relative; min-height: max(640px, calc(100svh - 38px)); color: var(--c-white); background: var(--c-green-ink); overflow: hidden; isolation: isolate; display: grid; }
.hero-media { position: absolute; inset: 0; z-index: -2; transform: scale(var(--hp-z, 1)); transform-origin: 50% 50%; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); filter: brightness(var(--hp-br, 1)) contrast(var(--hp-ct, 1)) saturate(var(--hp-sat, 1)) blur(var(--hp-blur, 0px)); object-position: var(--hp-x, 50%) var(--hp-y, 50%);
  transition: opacity 1.4s var(--ease-in-out), transform 9s var(--ease-out); }
.hero-media img.is-active { opacity: 1; transform: scale(1); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(var(--hg-ang, 90deg), rgb(var(--hg-rgb, 0 42 35) / var(--hg-a0, .9)) 0%, rgb(var(--hg-rgb, 0 42 35) / var(--hg-a1, .55)) var(--hg-p1, 45%), rgb(var(--hg-rgb, 0 42 35) / var(--hg-a2, .1)) var(--hg-p2, 78%), rgb(var(--hg-rgb, 0 42 35) / var(--hg-a3, .1)) 100%),
    linear-gradient(0deg, rgb(var(--hg-rgb2, 0 42 35) / var(--hg-b, .85)) 0%, rgb(var(--hg-rgb2, 0 42 35) / 0) var(--hg-bh, 45%)),
    linear-gradient(180deg, rgb(var(--hg-rgb2, 0 42 35) / var(--hg-t, .6)) 0%, rgb(var(--hg-rgb2, 0 42 35) / 0) var(--hg-th, 22%)); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px clamp(32px, 5vw, 96px); align-items: end;
  padding-top: calc(var(--header-h) + 48px); padding-bottom: clamp(48px, 8vh, 88px); min-height: inherit; }
.hero-eyebrow { color: var(--c-sage-soft); display: flex; gap: 14px; align-items: center; margin-bottom: 26px; }
.hero-eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--c-amber); }
.hero-title { font-family: var(--f-display); font-size: clamp(2.6rem, 6.6vw, 6.8rem); line-height: .98; letter-spacing: -.045em; display: grid; justify-items: start; }
.hero-title .l1 { font-weight: 300; color: var(--c-sage-soft); }
.hero-title .l2 { font-weight: 500; position: relative; }
.hero-title .l2::after { content: ""; position: absolute; left: .04em; right: .04em; bottom: .02em; height: .09em; background: var(--c-amber); transform: scaleX(0); transform-origin: left; }
.is-ready .hero-title .l2::after { animation: underline .9s .9s var(--ease-out) forwards; }
@keyframes underline { to { transform: scaleX(1); } }
.hero-title .l3 { font-weight: 300; }
.hero-lead { margin-top: 28px; font-size: var(--fs-lead); line-height: 1.55; color: rgb(238 243 239 / .9); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn--amber { background: var(--c-amber); color: var(--c-green-ink); }
.btn--amber:hover { background: #FFC45E; }

/* пропуск совета: карточки сменяют друг друга — одна плавно уходит, следующая появляется */
.pass-wrap { width: 340px; align-self: center; display: grid; gap: 18px; justify-items: center; }
.pass-stack { display: grid; width: 100%; }
.pass { grid-area: 1 / 1; position: relative; background: var(--c-paper); color: var(--c-text); border-radius: 14px; padding-bottom: 18px;
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / var(--pass-shadow)), 0 2px 0 rgb(0 0 0 / .08);
  opacity: 0; visibility: hidden; transform: translateY(36px) rotate(-9deg) scale(.94);
  transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out), visibility 0s 1.1s; }
.pass.is-active { opacity: 1; visibility: visible; transform: rotate(calc(var(--pass-tilt) * 1deg)); transition-delay: .25s, .25s, 0s; z-index: 2; }
.pass.is-out { opacity: 0; visibility: visible; transform: translateY(-28px) rotate(4deg) scale(.96); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out), visibility 0s .8s; z-index: 1; }
.pass-slot { position: absolute; left: 50%; top: 12px; width: 54px; height: 9px; border-radius: 6px; transform: translateX(-50%); background: var(--c-green-ink); box-shadow: inset 0 2px 3px rgb(0 0 0 / .5); z-index: 1; }
.pass-top { display: flex; align-items: center; gap: 12px; background: var(--c-green); color: var(--c-white); padding: 34px 22px 16px; border-radius: 14px 14px 0 0; position: relative; overflow: hidden; }
.pass-top .emblem { width: 46px; height: 46px; }
.pass-top b { display: block; font: 500 .82rem/1.2 var(--f-display); }
.pass-top .meta { color: var(--c-sage-soft); font-size: .62rem; }
.pass-top::after { content: ""; position: absolute; right: -18px; bottom: -10px; width: 90px; height: 90px; opacity: .35;
  background: repeating-linear-gradient(105deg, var(--c-sage-soft) 0 6px, transparent 6px 14px); -webkit-mask: linear-gradient(0deg, #000, transparent); mask: linear-gradient(0deg, #000, transparent); }
.pass-pane { display: grid; gap: 10px; padding: 22px 22px 6px; }
.pass-pane .meta { color: var(--c-sage); }
.pass-big { font: 300 clamp(2.4rem, 3.2vw, 3rem)/1 var(--f-display); color: var(--c-green-deep); letter-spacing: -.04em; white-space: nowrap; }
.pass-big small { font-size: .45em; letter-spacing: 0; color: var(--c-sage); }
.pass-pane p:last-child { color: var(--c-graphite); font-size: .95rem; line-height: 1.45; }
.pass-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; }
.hero-tabs { display: flex; gap: 8px; }
.hero-tab { position: relative; width: 34px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgb(255 255 255 / .3); cursor: pointer; overflow: hidden; }
.hero-tab::after { content: ""; position: absolute; inset: -10px 0; }
.hero-tab:hover { background: rgb(255 255 255 / .5); }
.hero-tab .bar { position: absolute; inset: 0; background: var(--c-amber); transform: scaleX(0); transform-origin: left; }
.hero-tab.is-active .bar { animation: tab-progress var(--dur, 4s) linear forwards; }
.hero.is-paused .hero-tab.is-active .bar { animation-play-state: paused; }
@keyframes tab-progress { to { transform: scaleX(1); } }
.hero-caption { color: rgb(238 243 239 / .7); font-size: .62rem; text-align: right; }

.rise { opacity: 0; transform: translateY(22px); }
.is-ready .rise { animation: rise .9s var(--ease-out) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- конвейер подразделений ---------- */
.conveyor { background: var(--c-green-deep); color: var(--c-on-dark); padding: 26px 0 0; overflow: hidden; }
.conveyor-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.conveyor-head .meta { color: var(--c-sage-soft); font-size: .7rem; }
.conveyor .link-arrow { color: var(--c-amber); font-size: .85rem; padding: 6px 0; }
.belt { margin-top: 18px; border-block: 1px solid rgb(255 255 255 / .14); padding: 22px 0;
  background: repeating-linear-gradient(90deg, transparent 0 46px, rgb(255 255 255 / .04) 46px 48px); }
.belt-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: belt 70s linear infinite; }
.belt:hover .belt-track { animation-play-state: paused; }
.belt-track span { font: 300 clamp(1.6rem, 3vw, 2.8rem)/1 var(--f-display); letter-spacing: -.03em; white-space: nowrap; }
.belt-track span.o { color: transparent; -webkit-text-stroke: 1px var(--c-sage-soft); }
.belt-track i { width: 14px; height: 14px; background: var(--c-amber); transform: rotate(45deg); flex: none; }
@keyframes belt { to { transform: translateX(-50%); } }

/* ---------- о совете: заявление + таймлайн ---------- */
.about-meta { color: var(--c-sage); margin-bottom: 22px; }
.statement { font: 300 clamp(2.1rem, 5vw, 4.8rem)/1.06 var(--f-display); letter-spacing: -.04em; color: var(--c-green-deep); max-width: 17ch; }
.statement em { font-style: normal; text-decoration: underline; text-decoration-color: var(--c-amber); text-decoration-thickness: .08em; text-underline-offset: .14em; text-decoration-skip-ink: none; }
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 88px); align-items: center; margin-top: clamp(32px, 4vw, 56px); }
.about-photo { margin: 0; }
.about-photo img { mix-blend-mode: multiply; width: 100%; }
.about-text { display: grid; gap: 18px; color: var(--c-graphite); justify-items: start; }
.about-text p:first-child { color: var(--c-text); font-size: var(--fs-lead); line-height: 1.5; }
.about-text strong { color: var(--c-green-deep); font-weight: 700; }
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 88px); position: relative; padding-top: 30px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--c-green); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease-out); }
.timeline.is-in::before, .no-js .timeline::before { transform: scaleX(1); }
.timeline li { position: relative; display: grid; gap: 8px; padding-right: 24px; min-width: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: -30px; width: 16px; height: 16px; border-radius: 50%; background: var(--c-paper); border: 2px solid var(--c-green); }
.timeline li:last-child::before { background: var(--c-amber); border-color: var(--c-amber); }
.timeline b { font: 300 clamp(2rem, 3.4vw, 3.2rem)/1 var(--f-display); color: var(--c-green); letter-spacing: -.04em; }
.timeline p { color: var(--c-graphite); font-size: .95rem; line-height: 1.45; max-width: 26ch; }

/* ---------- цифры: табло ---------- */
.numbers { color: var(--c-white); padding-block: clamp(64px, 8vw, 120px); }
.numbers-title { color: var(--c-sage-soft); margin-bottom: clamp(24px, 3vw, 40px); }
.numbers-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 5vw, 96px); }
.n { border-top: 1px solid rgb(255 255 255 / .2); padding: 18px 0 clamp(28px, 4vw, 56px); display: grid; gap: 12px; align-content: start; min-width: 0; }
.n2, .n4 { margin-top: clamp(40px, 7vw, 120px); }
.n .num { font: 300 clamp(4.2rem, 12vw, 11.5rem)/.9 var(--f-display); letter-spacing: -.07em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.n .num i { font-style: normal; font-size: .3em; letter-spacing: -.02em; color: var(--c-amber); margin-left: .12em; vertical-align: .9em; }
.n p { color: rgb(238 243 239 / .8); max-width: 30ch; }

/* ---------- хочешь в совет: анкета с галочками ---------- */
.join-sec { background: var(--c-mineral); }
.join-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.join-copy { display: grid; gap: 22px; justify-items: start; position: sticky; top: calc(var(--header-h) + 40px); }
.join-copy > .meta { color: var(--c-sage); }
.join-title { font: 300 clamp(2.2rem, 4.4vw, 4.2rem)/1.05 var(--f-display); letter-spacing: -.04em; color: var(--c-green-deep); }
.join-title span { display: inline-block; font-weight: 500; background: var(--c-amber); color: var(--c-green-ink); padding: .02em .22em .08em; margin-top: .15em; transform: rotate(-3deg); }
.join-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 6px; }
.checklist { display: grid; counter-reset: none; }
.check { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 22px; padding: 28px 0; border-bottom: 1px solid var(--c-line); }
.check:first-child { border-top: 1px solid var(--c-line); }
.check .box { width: 52px; height: 52px; border: 2px solid var(--c-green); border-radius: 6px; display: grid; place-items: center; background: var(--c-paper); transition: background-color .4s var(--ease-out); }
.check .box svg { width: 30px; height: 30px; fill: none; stroke: var(--c-green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 0; }
.js .check .box svg { stroke-dashoffset: 24; transition: stroke-dashoffset .5s var(--ease-out) var(--cd, 0s); }
.js .check.is-in .box svg { stroke-dashoffset: 0; }
.check.is-in .box { background: var(--c-sage-soft); }
.check h3 { font: 500 clamp(1.2rem, 1.8vw, 1.6rem)/1.15 var(--f-display); color: var(--c-green-deep); letter-spacing: -.02em; margin-bottom: 8px; }
.check p { color: var(--c-graphite); max-width: 52ch; }

/* ---------- направления: карточки складываются стопкой при прокрутке ---------- */
.dirs-sec { background: var(--c-green-ink); color: var(--c-on-dark); padding-block: var(--sec); }
.dirs-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 4vw, 56px); }
.dirs-head .meta { color: var(--c-sage); }
.dirs-head .h2 { max-width: 20ch; }
.stack { display: grid; gap: clamp(20px, 4vh, 40px); }
.card-dir { position: sticky; top: calc(var(--header-h) + 20px + var(--k, 0) * 14px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: min(560px, 68vh); background: var(--c-green); border-radius: 4px; overflow: hidden; box-shadow: 0 -24px 48px -20px rgb(0 0 0 / var(--dir-shadow)); }
.card-dir:nth-child(2) { --k: 1; background: var(--c-paper); color: var(--c-text); }
.card-dir:nth-child(3) { --k: 2; background: #2E5A47; }
.card-dir:nth-child(4) { --k: 3; background: var(--c-mineral); color: var(--c-text); }
.card-dir:nth-child(5) { --k: 4; background: var(--c-green-deep); }
.card-dir figure { margin: 0; position: relative; min-height: 260px; }
.card-dir img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: clamp(28px, 4vw, 64px); display: grid; align-content: space-between; gap: 32px; }
.card-body .meta { color: var(--c-amber); }
.card-dir:nth-child(even) .card-body .meta { color: var(--c-sage); }
.card-body h3 { font: 300 clamp(1.35rem, 2.2vw, 2.2rem)/1.18 var(--f-display); letter-spacing: -.03em; }
.card-dir:nth-child(even) h3 { color: var(--c-green-deep); }

/* ---------- пропуска: «Как я попал в совет» ---------- */
.passes-sec { background: var(--c-mineral); overflow: hidden; }
.passes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); padding-top: 20px; }
.pass-card { margin: 0; background: var(--c-paper); border-radius: 12px; overflow: hidden; position: relative; box-shadow: 0 24px 48px -28px rgb(0 42 35 / .5);
  transition: transform .6s var(--ease-out); display: grid; align-content: start; }
.pass-card:nth-child(1) { transform: rotate(-2deg); }
.pass-card:nth-child(2) { transform: rotate(1.5deg) translateY(18px); }
.pass-card:nth-child(3) { transform: rotate(-1deg); }
.pass-card:hover { transform: none; }
.pc-top { display: flex; align-items: center; gap: 10px; background: var(--c-green); color: var(--c-white); padding: 28px 20px 14px; position: relative; }
.pc-top::before { content: ""; position: absolute; left: 50%; top: 10px; width: 44px; height: 8px; border-radius: 5px; transform: translateX(-50%); background: var(--c-mineral); }
.pc-top .emblem { width: 34px; height: 34px; }
.pc-top .meta { color: var(--c-sage-soft); font-size: .62rem; }
.pc-who { display: flex; align-items: center; gap: 14px; padding: 20px 20px 0; }
.pc-who .ph, .pc-who .ini { width: 64px; height: 80px; border-radius: 4px; object-fit: cover; object-position: center 20%; flex: none; background: var(--c-sage-soft); }
.pc-who .ini { display: grid; place-items: center; color: var(--c-green-deep); font: 500 1.1rem/1 var(--f-display); }
.pc-who b { font: 500 1.05rem/1.25 var(--f-display); color: var(--c-green-deep); }
.pass-card blockquote { margin: 0; padding: 18px 20px 26px; color: var(--c-graphite); font-size: 1rem; line-height: 1.55; border-top: 1px dashed var(--c-line); margin-top: 18px; }

/* ---------- фото подразделений ---------- */
.units-sec { padding-bottom: 0; }

/* ---------- шапка внутренних страниц ---------- */
.page-head { position: relative; overflow: hidden; isolation: isolate; background: var(--c-lines-bg); color: var(--c-white);
  padding: calc(var(--header-h) + clamp(28px, 3vw, 44px)) 0 clamp(32px, 3.4vw, 48px); }
.page-head > .wrap { position: relative; z-index: 2; }
/* фото шапки внутренних страниц + градиент — как на uralasbest.ru, переменные --pg-* и --pp-* настраиваются панелью */
.hero-photo { position: absolute; inset: 0; z-index: 0; background: var(--c-lines-bg); overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block;
  filter: brightness(var(--pp-br, 1)) contrast(var(--pp-ct, 1)) saturate(var(--pp-sat, 1)) blur(var(--pp-blur, 0px)); transform: scale(var(--pp-z, 1)); object-position: var(--pp-x, 50%) var(--pp-y, 50%); }
.hero-photo::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(var(--pg-ang, 90deg), rgb(var(--pg-rgb, 0 42 35) / var(--pg-a0, .9)) 0%, rgb(var(--pg-rgb, 0 42 35) / var(--pg-a1, .78)) var(--pg-p1, 36%), rgb(var(--pg-rgb, 0 42 35) / var(--pg-a2, .4)) var(--pg-p2, 70%), rgb(var(--pg-rgb, 0 42 35) / var(--pg-a3, .25)) 100%); }
@media (max-width: 720px) { .hero-photo::after { background: linear-gradient(180deg, rgb(var(--pg-rgb, 0 42 35) / .85), rgb(var(--pg-rgb, 0 42 35) / .6)); } }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; color: var(--c-on-dark-2); margin-bottom: 24px; }
.crumbs a { text-decoration: none; display: inline-block; padding: 5px 0; }
.crumbs a:hover { color: var(--c-white); }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: .5; }
.page-head h1 { font: 300 clamp(1.9rem, 3.6vw, 3.2rem)/1.08 var(--f-display); letter-spacing: -.03em; }
.page-head .lead { color: rgb(238 243 239 / .82); margin-top: 14px; max-width: 72ch; }
.page-head .lead a { color: var(--c-white); }
.page-head .crumbs { margin-bottom: 14px; }

/* документ-ссылка */
.doc { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; text-decoration: none; padding: 16px 0; border-bottom: 1px solid var(--c-line); transition: padding .3s var(--ease-out), color .2s; }
.doc:hover { color: var(--c-green); padding-left: 6px; }
.doc .ft { font: 500 .66rem/1 var(--f-mono); letter-spacing: .08em; color: var(--c-white); background: var(--c-green); padding: 7px 7px; border-radius: var(--radius); }
.doc .tt { font-weight: 600; line-height: 1.4; }
.doc .dl { width: 20px; height: 20px; color: var(--c-sage); }
.join-actions .doc { border: 0; padding: 0; }

/* ---------- где работают ---------- */
.units-mosaic { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr) minmax(0, 5fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); height: clamp(460px, 44vw, 640px); }
.uph { position: relative; margin: 0; overflow: hidden; background: var(--c-green-deep); min-height: 0; }
.uph--big { grid-row: 1 / 3; }
.uph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-out); }
.uph:hover img { transform: scale(1.04); }
.uph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(0 42 35 / var(--photo-ov)) 0%, rgb(0 42 35 / 0) 46%); pointer-events: none; }
.uph figcaption { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; color: var(--c-white); font-size: .92rem; font-weight: 600; }
.uph--big figcaption b { display: block; font: 300 clamp(2.4rem, 4.4vw, 4.2rem)/1 var(--f-display); letter-spacing: -.04em; margin-bottom: 6px; }
.units-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 64px); margin-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--c-line); }
.units-list li { padding: 14px 0; border-bottom: 1px solid var(--c-line); font-weight: 600; display: flex; gap: 14px; align-items: baseline; min-width: 0; }
.units-list li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--c-sage); transform: translateY(-1px) skewX(-14deg); }

/* ---------- новости ---------- */
.news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2vw, 32px); }
.news--feat { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); }
.news--feat .ncard:first-child { grid-row: span 2; }
.news--feat .ncard:first-child .ncard-img { aspect-ratio: 4 / 3; }
.news--feat .ncard:first-child h3 { font-size: clamp(1.4rem, 2.2vw, 2.1rem); }
.news--feat .ncard:first-child p { -webkit-line-clamp: 4; font-size: 1.02rem; }
.ncard { text-decoration: none; display: grid; gap: 14px; align-content: start; min-width: 0; }
.ncard-img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--c-line); }
.ncard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.ncard:hover img { transform: scale(1.04); }
.ncard .src { position: absolute; left: 10px; top: 10px; background: var(--c-paper); color: var(--c-green-deep); padding: 5px 7px; font: 500 .62rem/1 var(--f-mono); letter-spacing: .08em; }
.ncard time { color: var(--c-sage); }
.ncard h3 { font: 300 1.2rem/1.28 var(--f-display); color: var(--c-green-deep); letter-spacing: -.01em; transition: color .2s; }
.ncard:hover h3 { color: var(--c-green); }
.ncard p { color: var(--c-graphite); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-more { display: flex; justify-content: center; margin-top: clamp(36px, 4vw, 56px); }
.news-status { text-align: center; color: var(--c-graphite); font-size: .9rem; margin-top: 16px; min-height: 1.4em; }

/* ---------- вопрос + контакты ---------- */
.ask { color: var(--c-on-dark); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 110px); }
.cta-grid .h2 { color: var(--c-white); font-size: clamp(1.6rem, 2.6vw, 2.5rem); }
.contacts-list { margin-top: 36px; border-top: 1px solid rgb(255 255 255 / .16); }
.contacts-list div { padding: 15px 0; border-bottom: 1px solid rgb(255 255 255 / .16); display: grid; gap: 4px; }
.contacts-list .meta { color: var(--c-sage); }
.contacts-list a { text-decoration: none; color: var(--c-white); font-size: 1.05rem; }
.contacts-list a:hover { text-decoration: underline; }
.contacts-list span, .contacts-list small { color: var(--c-on-dark); }
.contacts-list small { color: var(--c-on-dark-2); font-size: .88rem; }

.form { display: grid; gap: 18px; background: var(--c-paper); color: var(--c-text); padding: clamp(24px, 4vw, 48px); align-content: start; }
.form h3 { font: 300 1.5rem/1.2 var(--f-display); color: var(--c-green-deep); letter-spacing: -.01em; }
.form .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-size: .85rem; color: var(--c-graphite); font-weight: 700; }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--c-text); background: var(--c-mineral); border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 13px 14px; width: 100%; transition: border-color .2s, background-color .2s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--c-sage); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--c-green); outline-offset: 0; background: var(--c-white); border-color: var(--c-green); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--c-error); }
.field input:disabled, .field textarea:disabled { opacity: .55; cursor: not-allowed; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .85rem; color: var(--c-graphite); line-height: 1.45; }
.consent input { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--c-green); }
.consent input[aria-invalid="true"] { outline: 2px solid var(--c-error); outline-offset: 2px; }
.consent a, .cookie a { color: var(--c-green); }
.form-status { font-size: .92rem; padding: 12px 14px; border-left: 3px solid var(--c-green); background: var(--c-mineral); }
.form-status.is-error { border-color: var(--c-error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* светлый вариант блока вопроса — когда над ним уже тёмная шапка страницы */
.ask--light { background: var(--c-paper); color: var(--c-text); }
.ask--light .cta-grid .h2 { color: var(--c-green-deep); }
.ask--light .contacts-list { border-top-color: var(--c-line); }
.ask--light .contacts-list div { border-bottom-color: var(--c-line); }
.ask--light .contacts-list a { color: var(--c-green-deep); }
.ask--light .contacts-list span { color: var(--c-text); }
.ask--light .contacts-list small { color: var(--c-graphite); }
.ask--light .form { background: var(--c-mineral); border: 1px solid var(--c-line); }
.ask--light .field input, .ask--light .field textarea { background: var(--c-paper); }

/* ---------- статья ---------- */
.article { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.article-cover { margin: 0 0 clamp(28px, 3vw, 40px); aspect-ratio: 2 / 1; overflow: hidden; background: var(--c-line); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { display: grid; gap: 20px; max-width: 68ch; }
.prose p:first-child { font-size: var(--fs-lead); line-height: 1.5; color: var(--c-text); }
.prose p { color: var(--c-graphite); }
.prose .ph-note { border-left: 2px solid var(--c-amber); padding: 12px 16px; background: var(--c-mineral); font-size: .9rem; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: clamp(32px, 4vw, 48px); }
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.gallery a:hover img { transform: scale(1.05); }
.aside { display: grid; gap: 28px; position: sticky; top: calc(var(--header-h) + 24px); }
.aside-box { border-top: 2px solid var(--c-green); padding-top: 20px; display: grid; gap: 14px; }
.aside-box .meta { color: var(--c-sage); }
.mini { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; text-decoration: none; align-items: start; }
.mini img { width: 84px; height: 64px; object-fit: cover; }
.mini b { font-weight: 600; font-size: .95rem; line-height: 1.35; display: block; }
.mini:hover b { color: var(--c-green); }
.mini time { color: var(--c-sage); }
.share { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- публикации ---------- */
.pubs { display: grid; gap: 0; border-top: 1px solid var(--c-line); }
.pub { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 48px); padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid var(--c-line); text-decoration: none; align-items: start; }
.pub-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-line); }
.pub-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.pub:hover img { transform: scale(1.04); }
.pub-body { display: grid; gap: 12px; align-content: start; }
.pub time { color: var(--c-sage); }
.pub h2 { font: 300 clamp(1.3rem, 2vw, 1.8rem)/1.2 var(--f-display); color: var(--c-green-deep); letter-spacing: -.015em; }
.pub:hover h2 { color: var(--c-green); }
.pub p { color: var(--c-graphite); max-width: 64ch; }

/* ---------- документы ---------- */
.docs { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 72px); padding: clamp(28px, 3vw, 40px) 0; border-top: 1px solid var(--c-line); }
.docs:first-child { border-top: 0; padding-top: 0; }
.docs h2 { font: 300 clamp(1.25rem, 1.8vw, 1.6rem)/1.25 var(--f-display); color: var(--c-green-deep); letter-spacing: -.01em; }
.docs h2 small { display: block; margin-top: 8px; color: var(--c-sage); }
.docs ul { border-top: 1px solid var(--c-line); }

/* ---------- карта ---------- */
.map { position: relative; aspect-ratio: 16 / 7; background: var(--c-mineral); border: 1px solid var(--c-line); display: grid; place-items: center; overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map .btn { position: relative; z-index: 1; }

/* ---------- подвал ---------- */
.footer { background: var(--c-green-ink); color: var(--c-on-dark-2); padding-block: clamp(56px, 7vw, 96px) 28px; font-size: .92rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgb(255 255 255 / .12); }
.footer .brand { color: var(--c-on-dark); }
.footer address { font-style: normal; margin-top: 24px; line-height: 1.6; color: var(--c-on-dark); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--c-white); }
.footer .f-mail { display: inline-block; margin-top: 12px; color: var(--c-white); font-size: 1.1rem; }
.footer .f-tel { display: block; margin-top: 2px; padding: 4px 0; color: var(--c-white); white-space: nowrap; }
.footer h2 { font: 500 var(--fs-meta)/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--c-sage); margin-bottom: 16px; }
.footer ul { display: grid; gap: 2px; }
.footer ul a { display: inline-block; padding: 5px 0; }
.footer .join-note p { color: var(--c-on-dark); max-width: 38ch; }
.footer .join-note .btn { margin-top: 20px; }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a { width: 42px; height: 42px; border: 1px solid rgb(255 255 255 / .22); border-radius: 50%; display: grid; place-items: center; color: var(--c-on-dark); transition: background-color .2s, border-color .2s; }
.social a:hover { background: var(--c-green); border-color: var(--c-green); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; padding-top: 24px; align-items: center; font-size: .8rem; }
.footer-bottom .parent { display: flex; align-items: center; gap: 14px; }
.footer-bottom .parent img { height: 30px; width: auto; filter: brightness(0) invert(1); opacity: .85; }
.footer-bottom .parent a { display: inline-flex; }
.footer-bottom .parent span a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(255 255 255 / .4); transition: text-decoration-color .2s; }
.footer-bottom .parent span a:hover { text-decoration-color: currentColor; }
@media (max-width: 720px) { .footer-bottom { padding-bottom: 64px; } }  /* чтобы кнопка «Наверх» не закрывала копирайт */

/* просмотр фото галереи */
.lb { position: fixed; inset: 0; z-index: 9500; display: grid; place-items: center; padding: 24px; background: rgb(0 20 16 / .92); }
.lb[hidden] { display: none; }
.lb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb button { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: #fff; color: var(--c-green-deep); font-size: 22px; cursor: pointer; }
.lb .lb-prev, .lb .lb-next { top: 50%; translate: 0 -50%; right: auto; }
.lb .lb-prev { left: 12px; }
.lb .lb-next { left: auto; right: 12px; }

/* ---------- калькулятор льгот ---------- */
.calc-sec { color: var(--c-on-dark); }
.calc-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.calc-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.calc-intro .meta { color: var(--c-amber); }
.calc-intro .h2 { margin: 16px 0 20px; color: var(--c-white); }
.calc-intro .lead { color: var(--c-on-dark-2); }
.calc-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding: 0; list-style: none; }
.calc-facts li { border: 1px solid rgb(255 255 255 / .22); padding: 7px 10px; color: var(--c-on-dark); }
.calc { background: var(--c-paper); color: var(--c-text); padding: clamp(22px, 3vw, 40px); box-shadow: 0 30px 80px rgb(0 20 16 / .35); min-height: 380px; }
.calc-top { display: grid; gap: 10px; margin-bottom: 22px; }
.calc-top .meta { color: var(--c-sage); }
.calc-bar { height: 4px; background: var(--c-line); }
.calc-bar span { display: block; height: 100%; background: var(--c-amber); transition: width .5s var(--ease-out); }
.calc-q { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc-legend { font: 300 clamp(1.35rem, 2.2vw, 1.9rem)/1.2 var(--f-display); color: var(--c-green-deep); margin-bottom: 18px; padding: 0; outline: none; }
.calc-hint { font-size: .88rem; color: var(--c-graphite); margin: -6px 0 16px; line-height: 1.5; }
.calc-opts { display: grid; gap: 10px; }
.calc-opt { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--c-line); background: var(--c-white); cursor: pointer; transition: border-color .2s, background .2s; line-height: 1.35; }
.calc-opt:hover { border-color: var(--c-sage); }
.calc-opt input { appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border: 1.5px solid var(--c-sage); border-radius: 50%; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.calc-opt input[type=checkbox] { border-radius: 3px; }
.calc-opt input:checked { background: var(--c-green); border-color: var(--c-green); box-shadow: inset 0 0 0 4px var(--c-white); }
.calc-opt input[type=checkbox]:checked { box-shadow: none; background: var(--c-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3'/%3E%3C/svg%3E") center / 16px no-repeat; }
.calc-opt:has(input:checked) { border-color: var(--c-green); background: var(--c-mineral); }
.calc-opt:has(input:focus-visible) { outline: 3px solid var(--c-amber); outline-offset: 2px; }
.calc-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-top: 24px; }
.calc-nav .btn--ghost { color: var(--c-green-deep); }
.calc-nav .btn[disabled] { opacity: .4; pointer-events: none; }
.calc-back[hidden] { display: inline-flex; visibility: hidden; }
.calc-res-head .meta { color: var(--c-sage); }
.calc-res-title { font: 300 clamp(1.4rem, 2.4vw, 2rem)/1.15 var(--f-display); color: var(--c-green-deep); margin: 10px 0 20px; outline: none; }
.calc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 20px; }
.calc-tile { background: var(--c-green); color: var(--c-white); padding: 16px 18px; display: grid; gap: 4px; }
.calc-tile b { font: 400 clamp(1.25rem, 2vw, 1.6rem)/1.1 var(--f-display); color: var(--c-amber); }
.calc-tile span { font-size: .85rem; color: var(--c-on-dark-2); }
.calc-cards { display: grid; gap: 10px; }
.calc-card { border: 1px solid var(--c-line); border-left: 3px solid var(--c-green); background: var(--c-white); padding: 16px 18px; display: grid; gap: 8px; font-size: .93rem; line-height: 1.5; color: var(--c-graphite); }
.cc-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: baseline; }
.cc-head h4 { font: 500 1rem/1.3 var(--f-display); color: var(--c-green-deep); margin: 0; }
.cc-big { font: 500 1.05rem/1.2 var(--f-display); color: var(--c-green); margin: 0; white-space: nowrap; }
.cc-big small { font: 500 var(--fs-meta)/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--c-sage); margin-left: 8px; }
.cc-how b { color: var(--c-text); font-weight: 600; }
.cc-doc { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--c-green); text-decoration: none; }
.cc-doc .ft { font: 600 .62rem/1 var(--f-mono); background: var(--c-green); color: var(--c-white); padding: 4px 5px; }
.cc-doc:hover { text-decoration: underline; }
.calc-more { margin-top: 16px; }
.calc-more summary { cursor: pointer; font-weight: 600; color: var(--c-green-deep); padding: 10px 0; }
.calc-more .calc-card { border-left-color: var(--c-sage); }
.calc-note { font-size: .8rem; color: var(--c-graphite); margin-top: 16px; line-height: 1.5; }
/* анонс калькулятора на главной */
.calc-teaser { background: var(--c-amber); color: var(--c-green-ink); padding-block: clamp(36px, 5vw, 64px); }
.ct-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; }
.ct-copy .meta { color: var(--c-green); }
.ct-title { font: 400 clamp(1.5rem, 3vw, 2.4rem)/1.12 var(--f-display); letter-spacing: -.01em; margin: 10px 0 12px; }
.ct-copy p:last-child { max-width: 62ch; line-height: 1.55; }
.ct-btn { white-space: nowrap; }
@media (max-width: 900px) {
  .calc-grid, .ct-grid { grid-template-columns: minmax(0, 1fr); }
  .calc-intro { position: static; }
  .ct-btn { justify-self: start; white-space: normal; }
}

/* ---------- меню «Поделиться» ---------- */
.share-menu { position: relative; display: inline-block; }
.share-menu summary { list-style: none; cursor: pointer; }
.share-menu summary::-webkit-details-marker { display: none; }
.share-menu summary svg { width: 1.05em; height: 1.05em; }
.share-menu summary:hover svg { transform: none; }
.share-pop { position: absolute; left: 0; top: calc(100% + 8px); z-index: 20; min-width: 230px; background: var(--c-white); border: 1px solid var(--c-line); box-shadow: 0 18px 40px rgb(0 42 35 / .18); padding: 6px; display: grid; }
.share-pop a, .share-pop button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; background: none; font: 500 .92rem/1.2 var(--f-body); color: var(--c-green-deep); text-decoration: none; text-align: left; cursor: pointer; }
.share-pop a:hover, .share-pop button:hover { background: var(--c-mineral); }
.sm-ic { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--c-mineral); color: var(--c-green); font: 700 .7rem/1 var(--f-body); }
.sm-vk { background: #0077FF; color: #fff; }
.sm-max { background: linear-gradient(135deg, #3C8CFF, #7B4DFF); color: #fff; font-size: .85rem; }

/* ---------- кнопка «Наверх» ---------- */
.totop { position: fixed; right: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); z-index: 80; width: 48px; height: 48px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: var(--c-green); color: #fff; box-shadow: 0 0 0 2px rgb(255 255 255 / .85), 0 8px 24px rgb(0 42 35 / .3); cursor: pointer;
  opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s, background .2s; }
.totop[hidden] { display: none; }
.totop.is-on { opacity: 1; transform: none; }
.totop:hover { background: var(--c-green-deep); }
.totop:focus-visible { outline: 3px solid var(--c-amber); outline-offset: 3px; }
.totop svg { width: 22px; height: 22px; }

/* ---------- плашка cookie ---------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); z-index: 90; max-width: 520px; margin-left: auto;
  background: var(--c-paper); color: var(--c-text); box-shadow: 0 20px 40px -20px rgb(0 42 35 / .5); border: 1px solid var(--c-line);
  padding: 16px 18px; display: flex; gap: 16px; align-items: center; font-size: .85rem; }
.cookie[hidden] { display: none; }
.cookie .btn { padding: .8em 1.1em; }

/* появление разделов */
.reveal { transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .reveal:not(.is-in) { opacity: .001; transform: translateY(26px); }

/* ---------- адаптив ---------- */
@media (max-width: 1180px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); align-items: end; }
  .pass-wrap { justify-self: start; }
  .card-dir { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .join-grid { grid-template-columns: minmax(0, 1fr); }
  .join-copy { position: static; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .timeline::before { display: none; }
  .passes { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .pass-card:nth-child(n) { transform: none; }
  .card-dir { grid-template-columns: minmax(0, 1fr); grid-template-rows: 42vh auto; min-height: 0; }
}
@media (max-width: 720px) {
  .hero { min-height: auto; }
  .hero-inner { padding-top: calc(var(--header-h) + 56px); padding-bottom: 40px; }
  .hero-title { font-size: clamp(2.5rem, 12vw, 3.6rem); }
  .pass-wrap { width: min(100%, 340px); margin-top: 12px; }
  .pass.is-active { transform: rotate(calc(var(--pass-tilt) * .66deg)); }
  .belt-track span { font-size: 1.5rem; }
  .numbers-grid { grid-template-columns: minmax(0, 1fr); }
  .n2, .n4 { margin-top: 0; }
  .n .num { font-size: clamp(4rem, 24vw, 6.5rem); }
  .timeline { grid-template-columns: minmax(0, 1fr); }
  .timeline li { padding-left: 32px; }
  .timeline li::before { top: 4px; }
  .timeline { padding-top: 0; }
  .check { grid-template-columns: 40px minmax(0, 1fr); gap: 16px; }
  .check .box { width: 40px; height: 40px; }
  .card-dir { grid-template-rows: 30vh auto; top: calc(var(--header-h) + 12px + var(--k, 0) * 10px); }
  .card-body { padding: 22px; gap: 14px; }
}

@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: grid; }
  .topbar .tb-links { display: none; }
  .news--feat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news--feat .ncard:first-child { grid-row: auto; grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .cta-grid, .sec-head, .article, .about-grid { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
  .news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .units-mosaic { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: none; height: auto; }
  .uph--big { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .uph { aspect-ratio: 4 / 3; }
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-top > :first-child { grid-column: 1 / -1; }
  .docs { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .topbar { display: none; }
  .brand .emblem { width: 42px; height: 42px; }
  .brand-name b { font-size: .8rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .uph { aspect-ratio: 1 / 1; }
  .uph figcaption { left: 10px; right: 10px; bottom: 10px; font-size: .8rem; line-height: 1.3; }
  .units-list { grid-template-columns: minmax(0, 1fr); }
  .news, .news--feat { grid-template-columns: minmax(0, 1fr); }
  .pub { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form .row { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .map { aspect-ratio: 4 / 3; }
  .bg-lines { background-image: url("../img/bg-lines-m.webp"); }
  .cookie { padding: 10px 12px; gap: 12px; font-size: .78rem; line-height: 1.35; }
  .cookie .btn { padding: .7em .9em; font-size: .82rem; }
}
@media (max-width: 380px) {
  .brand-name small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rise, .js .reveal:not(.is-in) { opacity: 1; transform: none; }
  .belt-track { animation: none; flex-wrap: wrap; width: auto; padding-inline: var(--gutter); row-gap: 14px; }
  .belt-track > :nth-child(n+21) { display: none; }
  .js .check .box svg { stroke-dashoffset: 0; }
  .timeline::before { transform: scaleX(1); }
  .hero-title .l2::after { transform: scaleX(1); }
  .bg-lines { translate: none; inset: 0; }
}

/* ===================== MODX-версия: дополнения ===================== */
/* статьи из старой базы: убираем шрифты и отступы, вставленные из Word */
.prose { max-width: 72ch; }
.prose [style] { font-family: inherit !important; font-size: inherit !important; line-height: inherit !important; color: inherit; }
.prose p, .prose li { margin: 0 !important; }
.prose img { max-width: 100%; height: auto; }
.prose h2, .prose h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.2; color: var(--c-green-deep); margin-top: 12px; }
.prose h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.prose h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 8px; color: var(--c-graphite); }
.prose a { color: var(--c-green); text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--c-line); padding: 8px 10px; text-align: left; }
.prose iframe { max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.prose .vk-source { font-size: .9rem; }
.article-lead { margin-bottom: 24px; color: var(--c-text); }
.about-text p + p { margin-top: 1em; }
.gallery-video { grid-column: 1 / -1; aspect-ratio: 16 / 9; background: var(--c-line); }
.gallery-video iframe { width: 100%; height: 100%; border: 0; }
/* постраничная навигация (pdoPage) */
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: clamp(32px, 4vw, 56px); }
.pager a, .pager span { min-width: 44px; height: 44px; padding: 0 12px; display: inline-grid; place-items: center; border: 1px solid var(--c-line); font-family: var(--f-mono); font-size: .85rem; color: var(--c-green-deep); text-decoration: none; }
.pager a:hover { border-color: var(--c-green); background: var(--c-mineral); }
.pager [aria-current] { background: var(--c-green); border-color: var(--c-green); color: #fff; }
.pager .skip-dots { border-color: transparent; }
/* ошибки FormIt и пустой статус */
.form-status:empty { display: none; }
/* фото из постов ВК внутри текста статьи */
.prose .gallery { margin-top: 8px; }
.prose .gallery img { height: 100%; }
.prose .gallery a { text-decoration: none; }
.prose .vk-links, .prose .vk-docs { font-size: .95rem; }
