/* LeaderPitch, стиль «Лайм» (выбран Димой 10.11.2026). Светлая тема по умолчанию, тёмная - по настройке устройства.
   Три цвета: светло-серый, чёрный, лайм. Заголовки и цифры - Unbounded, текст - Onest (оба свои, без Google).
   Лайм - только заливкой (подсветка, кнопки, знаки): текстом на светлом он не читается, там чёрный (--accent-ink).
   Выделенное (открытый раздел, «новое», аватар, знак) - пара --hl-bg/--hl-ink: на светлом чёрное с лаймом, на тёмном наоборот.
   Раскладка «Сцена» (выбрана Димой 10.11.2026): у сайта тёмная рамка (шапка, нижнее меню, подвал), у каждой страницы -
   тёмная «сцена» с заголовком по центру (stageHead во views.js), под ней светлое содержимое. Плашки плоские, без теней,
   подписи - обычными буквами (капс над заголовками убран: он из типовых шаблонов). Цвета сцены - --stage-*. */

@font-face {
  font-family: 'Onest'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('fonts/onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('fonts/onest-latin.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-style: normal; font-weight: 500 800; 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: 500 800; 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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --lime: #c6f135;
  --black: #0b0c0e;
  --bg: #eef0f2;
  --bg-2: #e1e4e8;
  --surface: #ffffff;
  --ink: #0b0c0e;
  --ink-2: #2b2e33;
  --muted: #5f646d;
  --line: rgba(11, 12, 14, 0.09);
  --line-2: rgba(11, 12, 14, 0.17);
  --accent: #c6f135;
  --accent-ink: #0b0c0e;
  --accent-soft: rgba(198, 241, 53, 0.5);
  --hl-bg: #0b0c0e;
  --hl-ink: #c6f135;
  --ring: 0 0 0 1.5px #0b0c0e;
  --badge: #c6f135;
  --badge-ink: #0b0c0e;
  --ok: #17793f;
  --ok-soft: rgba(29, 138, 78, 0.12);
  --warn: #9a5d09;
  --warn-soft: rgba(201, 138, 11, 0.14);
  --err: #c8321f;
  --err-soft: rgba(200, 50, 31, 0.1);
  --btn: #0b0c0e;
  --btn-ink: #ffffff;
  --btn-hover: #26292e;
  --shadow: 0 1px 2px rgba(11, 12, 14, 0.05), 0 8px 24px rgba(11, 12, 14, 0.06);
  --stage: #0b0c0e;
  --stage-2: #1d1f23;
  --stage-ink: #f2f3f5;
  --stage-muted: rgba(242, 243, 245, 0.62);
  --stage-line: rgba(242, 243, 245, 0.14);
  --radius: 18px;
  --radius-sm: 14px;
  --tab-h: 66px;
  --font: 'Onest', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-d: 'Unbounded', 'Onest', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c0e;
    --bg-2: #1d1f23;
    --surface: #141518;
    --ink: #f2f3f5;
    --ink-2: #cfd2d8;
    --muted: #9a9ea6;
    --line: rgba(242, 243, 245, 0.08);
    --line-2: rgba(242, 243, 245, 0.16);
    --accent-ink: #c6f135;
    --accent-soft: rgba(198, 241, 53, 0.16);
    --hl-bg: #c6f135;
    --hl-ink: #0b0c0e;
    --ring: none;
    --ok: #4cc38a;
    --ok-soft: rgba(76, 195, 138, 0.13);
    --warn: #e3a64a;
    --warn-soft: rgba(227, 166, 74, 0.13);
    --err: #ff7a66;
    --err-soft: rgba(255, 122, 102, 0.12);
    --btn: #c6f135;
    --btn-ink: #0b0c0e;
    --btn-hover: #d6f86a;
    --shadow: none;
    color-scheme: dark;
  }
}

/* ---------- основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
svg { display: block; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
[hidden] { display: none !important; }
.ico { width: 20px; height: 20px; flex: none; }

/* ---------- шапка: тёмная рамка, как сцена главной ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--stage); color: var(--stage-ink); padding-top: env(safe-area-inset-top); }
/* демо-режим админа: лаймовая полоса внутри липкой шапки - видна всё время, кнопка возвращает в админку */
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; padding: 7px 16px;
  background: var(--lime); color: var(--black); font-size: 13px; font-weight: 700; line-height: 1.3; text-align: center; }
.demo-bar button { min-height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--black); color: var(--lime);
  font: inherit; cursor: pointer; }
.demo-bar button:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }
.top-in {
  max-width: 1120px; margin: 0 auto; height: 60px;
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  display: flex; align-items: center; gap: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-d); font-weight: 700; font-size: 16px; letter-spacing: -0.02em; text-decoration: none; }
/* знак - поле: на тёмной рамке лаймовый с чёрным; в остальных местах - пара --hl-bg/--hl-ink */
.mark { display: inline-block; flex: none; width: 26px; height: 26px; }
.mark svg { width: 100%; height: 100%; }
.mk-bg { fill: var(--hl-bg); }
.mk-fg { fill: none; stroke: var(--hl-ink); stroke-width: 1.7; }
.top .mk-bg, .foot .mk-bg { fill: var(--lime); }
.top .mk-fg, .foot .mk-fg { stroke: var(--black); }
.top-nav { display: none; }
.top-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang-form { margin: 0; }
.lang-btn {
  height: 34px; min-width: 42px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--stage-line);
  background: transparent; color: var(--stage-ink); font-weight: 800; font-size: 12px; letter-spacing: 0.08em; cursor: pointer;
}
.lang-btn:hover { background: var(--stage-2); }
.top .btn-ghost { color: var(--stage-ink); border-color: var(--stage-line); }
.top .btn-ghost:hover { background: var(--stage-2); }

@media (min-width: 900px) {
  .top-in { height: 68px; }
  .top-nav { display: flex; gap: 4px; margin-left: 28px; }
  .top-nav a {
    position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
    border-radius: 999px; text-decoration: none; color: var(--stage-muted); font-weight: 700; font-size: 15px;
  }
  .top-nav a:hover { color: var(--stage-ink); background: var(--stage-2); }
  .top-nav a[aria-current] { color: var(--black); background: var(--lime); }
  .top-nav .ico { width: 18px; height: 18px; }
  .top-nav .badge { position: static; margin-left: 2px; }
}

/* ---------- нижнее меню (телефон) - продолжение тёмной рамки ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex;
  background: var(--stage); border-top: 1px solid var(--stage-line);
  padding: 6px max(6px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
}
.tabbar a {
  flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 2px;
  text-decoration: none; color: var(--stage-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.01em;
  -webkit-tap-highlight-color: transparent;
}
.tab-ico { position: relative; display: grid; place-items: center; width: 52px; height: 30px; border-radius: 999px; transition: background 0.2s; }
.tabbar .ico { width: 22px; height: 22px; }
.tabbar a[aria-current] { color: var(--stage-ink); }
.tabbar a[aria-current] .tab-ico { background: var(--lime); color: var(--black); }
.tab-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 359px) { .tabbar a { font-size: 10px; letter-spacing: 0; } }   /* «Предложения» на 320 px */
.badge {
  position: absolute; top: -3px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--lime); color: var(--black); box-shadow: 0 0 0 2px var(--stage); font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
}
.tabbar a[aria-current] .badge, .top-nav a[aria-current] .badge { background: var(--black); color: var(--lime); }
body.has-tabs { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .tabbar { display: none; }
  body.has-tabs { padding-bottom: 0; }
}

/* ---------- раскладка ---------- */
.app, .landing { flex: 1; }
.main { width: 100%; max-width: 760px; margin: 0 auto; padding: 26px 16px 56px; }
.main-wide { max-width: 1120px; }
.narrow { max-width: 460px; margin: 0 auto; }
.narrow-md { max-width: 720px; margin: 0 auto; }
.narrow-lg { max-width: 820px; margin: 0 auto; }   /* длинные формы: на компьютере пары полей встают рядом свободно */
@media (min-width: 900px) { .main { padding: 40px 24px 76px; } }

/* шапка страницы - «сцена»: всё по центру, на тёмном; под ней светлое содержимое */
.stage-head { background: var(--stage); color: var(--stage-ink); border-bottom: 1px solid var(--stage-line); }
.sh-in { display: flex; flex-direction: column; align-items: center; max-width: 760px; margin: 0 auto; padding: 22px 16px 34px; text-align: center; }
@media (min-width: 900px) { .sh-in { padding: 40px 24px 50px; } }
.stage-head h1 { max-width: 24ch; font-family: var(--font-d); font-size: clamp(26px, 5.6vw, 42px); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; overflow-wrap: anywhere; }
.stage-head .lead { max-width: 36rem; margin-top: 12px; color: var(--stage-muted); text-wrap: balance; }
.sh-kicker { margin-bottom: 10px; color: var(--stage-muted); font-size: 15px; }
.stage-head .back { align-self: flex-start; margin-bottom: 18px; color: var(--stage-muted); }
.stage-head .back:hover { color: var(--stage-ink); }
.stage-head .meta { justify-content: center; margin-top: 14px; color: var(--stage-muted); }
.stage-head .state { max-width: 36rem; margin-top: 20px; padding: 10px 16px; border-radius: 16px; background: var(--stage-2); font-size: 15px; text-align: left; }
.stage-head .note-box { max-width: 36rem; text-align: left; }
.sh-actions { justify-content: center; margin-top: 22px; }
.sh-note { margin-top: 14px; color: var(--stage-muted); font-size: 14px; }
.stage-head .btn-ghost { color: var(--stage-ink); border-color: var(--stage-line); }
.stage-head .btn-ghost:hover { background: var(--stage-2); }
/* статусы на тёмном - яркие варианты цветов (как в тёмной теме) */
.stage-head .pill { background: var(--stage-2); color: var(--stage-ink); }
.stage-head .pill-sent, .stage-head .pill-mod-pending { background: var(--lime); color: var(--black); }
.stage-head .pill-accepted, .stage-head .pill-mod-approved { background: rgba(76, 195, 138, 0.16); color: #4cc38a; }
.stage-head .pill-declined, .stage-head .pill-mod-rejected { background: rgba(255, 122, 102, 0.14); color: #ff7a66; }
.stage-head .state-ok::before { background: #4cc38a; box-shadow: 0 0 0 4px rgba(76, 195, 138, 0.18); }
.stage-head .state-warn::before { background: #e3a64a; box-shadow: 0 0 0 4px rgba(227, 166, 74, 0.18); }
.stage-head .state-err::before { background: #ff7a66; box-shadow: 0 0 0 4px rgba(255, 122, 102, 0.16); }
.stage-head .state-wait::before { background: var(--lime); box-shadow: 0 0 0 4px rgba(198, 241, 53, 0.18); }

/* полоса цифр (кабинет) и фактов (главная): ячейки по центру, между ними тонкие линии */
.fstrip-wrap { border-top: 1px solid var(--stage-line); }
.fstrip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); max-width: 760px; margin: 0 auto; }
.fstrip > div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 8px 18px; text-align: center; }
.fstrip > div + div { border-left: 1px solid var(--stage-line); }
.fstrip b { font-family: var(--font-d); font-size: 26px; font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.fstrip span { color: var(--stage-muted); font-size: 12px; font-weight: 700; line-height: 1.3; }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; color: var(--muted); font-size: 14px; }
.lead { color: var(--muted); margin-top: 8px; font-size: 16px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: 20px; }
@media (min-width: 600px) { .card-pad { padding: 26px; } }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }
/* дети сеток - не шире своей колонки: иначе строка без переносов (условия предложения, страна)
   или выпадающий список растягивают страницу шире экрана телефона */
.stats > *, .fstrip > *, .anat > *, .path li > *, .duo > *, .search-layout > *, .filters > *, .role-grid > *,
.mini-steps li > *, .frow > *, .kvs-row > * { min-width: 0; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 2px 2px 14px; }
.sec-h { font-family: var(--font-d); font-size: 20px; font-weight: 700; letter-spacing: -0.025em; }
.sec-title { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-family: var(--font-d); font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.sec-gap { margin-top: 36px; }
.kicker-sm { margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.h3 { font-family: var(--font-d); font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.ok-chip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px 0 8px; border-radius: 999px; background: var(--lime); color: var(--black); font-size: 13px; font-weight: 700; white-space: nowrap; }
.ok-chip .ico { width: 14px; height: 14px; stroke-width: 2.4; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent; background: var(--btn); color: var(--btn-ink);
  font-weight: 700; font-size: 15px; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.12s, background-color 0.2s, border-color 0.2s; -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--btn-hover); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn .ico { width: 18px; height: 18px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
/* длинная надпись на узком телефоне (320-375) переносится внутри кнопки, а не вылезает за край:
   10.11 «Интересно, открыть контакты» обрезалась с обеих сторон. Высота - не меньше обычной */
.btn { max-width: 100%; }
.btn-block { height: auto; min-height: 46px; padding-top: 10px; padding-bottom: 10px; white-space: normal; text-align: center; line-height: 1.2; }
.btn-lg.btn-block { min-height: 56px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--line); }
.btn-danger { background: transparent; color: var(--err); border-color: color-mix(in srgb, var(--err) 45%, transparent); }
.btn-danger:hover { background: var(--err-soft); }
.btn-lime { background: var(--lime); color: var(--black); }
.btn-lime:hover { background: #d6f86a; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn-row form { margin: 0; }
.link-more { font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.link-more:hover { text-decoration-color: var(--muted); }
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--muted); font-weight: 700; font-size: 14px; text-decoration: none; }
.back:hover { color: var(--ink); }
.back .ico { width: 18px; height: 18px; }

/* ---------- формы ---------- */
form { margin: 0; }
.form-sec .sec-title { margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; min-width: 0; }
.field:last-child, .fieldset:last-child { margin-bottom: 0; }
.fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.fieldset > .label { margin-bottom: 9px; }
.label { padding: 0; font-weight: 700; font-size: 14px; }
.opt { font-weight: 500; font-size: 13px; color: var(--muted); }
.hint { color: var(--muted); font-size: 13px; line-height: 1.45; }
.err { color: var(--err); font-size: 13px; font-weight: 700; }
.input {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--bg); font-size: 16px; line-height: 1.4;
  transition: border-color 0.15s, box-shadow 0.15s; -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: var(--muted); opacity: 0.75; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.has-error .input, .input[aria-invalid] { border-color: var(--err); }
.textarea { min-height: 112px; resize: vertical; }
.field-short .input { max-width: 170px; }
.select-wrap { position: relative; }
.select { padding-right: 42px; cursor: pointer; text-overflow: ellipsis; }
.select-wrap .ico-chev { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.count { align-self: flex-end; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.count.is-over { color: var(--err); font-weight: 700; }

/* ряды в формах: на телефоне - столбиком, шире 760 - два поля рядом (имя + анонимность, страна + языки…) */
.frow { display: grid; column-gap: 20px; }
.frow > .field, .frow > .fieldset, .frow > .toggle { margin-bottom: 20px; }
.frow:last-child > :last-child { margin-bottom: 0; }
@media (min-width: 760px) {
  .frow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .frow-short { grid-template-columns: minmax(0, 1fr); }   /* лет + размеры структуры: до 900 px друг под другом - рядом с полем пять размеров не влезают в строку */
  .frow-short-end { grid-template-columns: minmax(0, 1fr) 200px; }   /* широкое + короткое (год): подпись «Год запуска по желанию» - в строку */
  .frow:last-child > .field, .frow:last-child > .fieldset, .frow:last-child > .toggle { margin-bottom: 0; }
  .frow > .toggle { margin-top: 28px; }   /* выключатель - на уровне поля соседа, не его подписи */
  .frow > .fieldset + .toggle { margin-top: 30px; }
}
@media (min-width: 900px) { .frow-short { grid-template-columns: 200px minmax(0, 1fr); } }   /* с 900 px - рядом, размеры в одну строку (ru и en) */
.kvs.kvs-row { display: grid; gap: 16px 24px; }
@media (min-width: 600px) { .kvs.kvs-row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
/* кнопки формы: на телефоне - столбиком с зазором, шире 600 - в ряд (отправить + черновик) одной высоты */
.form-actions { display: flex; flex-direction: column; gap: 10px; }
.form-actions > .btn { height: auto; min-height: 56px; font-size: 16px; }
@media (min-width: 600px) {
  .form-actions { flex-direction: row; }
  .form-actions .btn-block { width: auto; flex: 1; }
}

/* «таблетки» и переключатели */
.chips, .seg { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .seg-item, .role-card { position: relative; }
.chip input, .seg-item input, .role-card input, .toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.chip span, .seg-item span {
  display: inline-flex; align-items: center; height: 40px; padding: 0 15px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; font-weight: 700;
  cursor: pointer; user-select: none; transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.chip span:hover, .seg-item span:hover { border-color: var(--ink); }
.chip input:checked + span, .seg-item input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip input:focus-visible + span, .seg-item input:focus-visible + span { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.chip input:disabled + span { opacity: 0.4; cursor: not-allowed; }

.toggle { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 6px 0; margin-bottom: 20px; cursor: pointer; }
.toggle:last-child { margin-bottom: 0; }
.toggle-ui { position: relative; flex: none; width: 50px; height: 30px; margin-top: 1px; border-radius: 999px; background: var(--line-2); transition: background-color 0.2s; }
.toggle-ui::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.2s;
}
.toggle input:checked + .toggle-ui { background: var(--hl-bg); }
.toggle input:checked + .toggle-ui::after { background: var(--hl-ink); }
.toggle input:checked + .toggle-ui::after { transform: translateX(20px); }
.toggle input:focus-visible + .toggle-ui { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.toggle-text { display: flex; flex-direction: column; gap: 3px; }
.toggle-label { font-weight: 700; font-size: 15px; }

.check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); }
.check a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.check-sm { font-size: 14px; }
.check.has-error { color: var(--err); }

/* длинные списки с поиском */
.picker-sum {
  position: relative; display: flex; align-items: center; min-height: 48px; padding: 8px 42px 8px 8px;
  list-style: none; cursor: pointer;
}
.picker-sum::-webkit-details-marker { display: none; }
.picker-sum .ico-chev { position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; color: var(--muted); transform: translateY(-50%); transition: transform 0.2s; }
.picker[open] .picker-sum .ico-chev { transform: translateY(-50%) rotate(180deg); }
.picker-chosen { display: flex; flex-wrap: wrap; gap: 6px; }
.picker-none { padding: 0 6px; color: var(--muted); }
.picker-pop { margin-top: 8px; padding: 10px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow); }
.picker-q { margin-bottom: 6px; }
.picker-max { margin: 4px 6px 6px; font-size: 12px; color: var(--muted); }
.picker-list { display: flex; flex-direction: column; max-height: 290px; overflow: auto; overscroll-behavior: contain; }
.picker-opt { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 10px; font-size: 15px; cursor: pointer; }
.picker-opt:hover { background: var(--line); }
.picker-opt input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.picker-opt:has(input:disabled) { opacity: 0.45; cursor: not-allowed; }
.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; background: var(--bg-2); font-size: 13px; font-weight: 700; white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags-sm .tag { height: 24px; padding: 0 9px; font-size: 12px; }

/* ---------- статусы ---------- */
.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); font-size: 12px; font-weight: 800; letter-spacing: 0.02em; white-space: nowrap; }
.pill-sent, .pill-mod-pending { background: var(--hl-bg); color: var(--hl-ink); }
.pill-accepted, .pill-mod-approved { background: var(--ok-soft); color: var(--ok); }
.pill-declined, .pill-mod-rejected { background: var(--err-soft); color: var(--err); }
.pill-withdrawn, .pill-mod-draft { background: var(--bg-2); color: var(--muted); }
/* статус переносится, если рядом с аватаром тесно (320: «Открыт к предложениям» вылезало за карточку); точка - у первой строки */
.lstatus { display: inline-flex; align-items: flex-start; gap: 7px; font-size: 13px; font-weight: 700; line-height: 18px; color: var(--muted); }
.lstatus i { flex: none; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--muted); }   /* flex: none - на 320 точку сплющивало в черту */
.lstatus-open i { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.lstatus-considering i { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }

.state { display: flex; align-items: flex-start; gap: 11px; font-weight: 700; line-height: 1.45; }
.state::before { content: ''; flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--muted); }
.state-ok::before { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.state-warn::before { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }
.state-wait::before { background: var(--hl-bg); box-shadow: 0 0 0 4px var(--accent-soft); }
.state-err::before { background: var(--err); box-shadow: 0 0 0 4px var(--err-soft); }
.alert { padding: 13px 15px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 700; line-height: 1.45; }
.alert-err { background: var(--err-soft); color: var(--err); }
.alert-warn { background: var(--warn-soft); color: var(--warn); }
.alert-muted { background: var(--bg-2); color: var(--ink-2); }
.note-box { margin-top: 12px; padding: 12px 14px; border-left: 3px solid var(--err); border-radius: 8px; background: var(--err-soft); font-size: 14px; }
.flash {
  display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; margin: 0 auto 18px;
  padding: 11px 18px; border-radius: 999px; background: var(--hl-bg); color: var(--hl-ink); font-weight: 700; font-size: 14px;
  animation: flash-in 0.35s ease both;
}
.flash .ico { width: 18px; height: 18px; }
.land > .flash { margin-top: 18px; background: var(--lime); color: var(--black); }
@keyframes flash-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- списки ---------- */
.list { overflow: hidden; }
.list li + li { border-top: 1px solid var(--line); }
.row-link, .lead-row { display: flex; align-items: center; gap: 14px; padding: 15px 18px; text-decoration: none; transition: background-color 0.15s; }
.lead-row { align-items: flex-start; }
.row-link:hover, .lead-row:hover { background: color-mix(in srgb, var(--bg) 70%, transparent); }
.row-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.row-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-weight: 800; font-size: 16px; }
.row-sub { overflow: hidden; color: var(--muted); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.row-headline { display: -webkit-box; overflow: hidden; color: var(--ink-2); font-size: 14px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.row-end { display: flex; flex: none; flex-direction: column; align-items: flex-end; gap: 6px; }
.row-date { color: var(--muted); font-size: 12px; }
.lead-row .tags { margin-top: 4px; }
.is-new .row-title::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: var(--ring); }
.list-compact { margin-top: 6px; }
.list-compact .row-link { padding: 12px 0; }
.list-compact .row-link:hover { background: transparent; }
/* узкий телефон: статус и дата - строкой под названием (длинный статус «Контакты открыты» сжимал название до наезда) */
@media (max-width: 379px) {
  .row-link { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; }
  .row-link > .row-end { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
}
.row-title { overflow-wrap: anywhere; }   /* одно очень длинное слово переносится, а не уходит под соседа */

.avatar { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--hl-bg); color: var(--hl-ink); font-family: var(--font-d); font-size: 14px; font-weight: 700; }
.avatar-lg { width: 64px; height: 64px; font-size: 22px; }
.avatar-sm { width: 34px; height: 34px; font-size: 13px; }
.avatar-anon { background: var(--bg-2); color: var(--muted); }
.avatar-anon .ico { width: 45%; height: 45%; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stats div { display: flex; flex-direction: column; gap: 3px; }
.stats b { font-family: var(--font-d); font-size: 26px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.3; }
.stats-wide { gap: 18px 10px; grid-template-columns: repeat(2, 1fr); }   /* 320: «Предложений» не влезало в треть ширины */
@media (min-width: 360px) { .stats-wide { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px) { .stats-wide { grid-template-columns: repeat(6, 1fr); } }

.empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 44px 24px; text-align: center; }
.empty > .ico { width: 34px; height: 34px; color: var(--muted); }
.empty p { max-width: 32rem; color: var(--ink-2); }
.empty h1 { font-family: var(--font-d); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.big-num { color: var(--accent-ink); font-family: var(--font-d); font-size: 56px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }

/* ---------- ключ-значение, условия ---------- */
.kvs { display: flex; flex-direction: column; gap: 16px; }
.kv dt { margin-bottom: 3px; color: var(--muted); font-size: 13px; font-weight: 600; }
.kv dd { font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.kv dd a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.kv dd a .ico { width: 15px; height: 15px; }
/* условия предложения - как на главной: подпись, под ней крупно; строки через линию */
.terms > div { padding: 14px 0; border-top: 1px solid var(--line); }
.terms > div:first-child { padding-top: 2px; border-top: 0; }
.terms dt { color: var(--muted); font-size: 14px; }
.terms dd { margin-top: 4px; font-family: var(--font-d); font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.terms + .terms-more { margin-top: 4px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- анкета лидера ---------- */
.leader-card { padding: 22px; }
@media (min-width: 600px) { .leader-card { padding: 28px; } }
.lc-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.lc-title { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lc-title h2 { font-family: var(--font-d); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; overflow-wrap: anywhere; }
.lc-headline { margin-bottom: 16px; font-size: 17px; line-height: 1.5; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 16px; color: var(--ink-2); font-size: 14px; font-weight: 700; }
.facts li { display: inline-flex; align-items: center; gap: 7px; }
.facts .ico { width: 17px; height: 17px; color: var(--muted); }
.leader-card > .tags { margin-bottom: 22px; }
.leader-card .kvs { margin-bottom: 18px; }
.reveal { display: flex; align-items: flex-start; gap: 14px; margin: 4px 0 18px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--ok-soft); }
.reveal > .ico { width: 22px; height: 22px; margin-top: 2px; color: var(--ok); }
.reveal-t { margin-bottom: 4px; font-weight: 700; }
.reveal-n { font-weight: 800; }
.reveal-c { font-size: 18px; font-weight: 800; overflow-wrap: anywhere; }
.reveal.card { margin: 0; border: 0; box-shadow: none; }
.search-layout { display: grid; gap: 16px; align-items: start; }
/* две колонки: главное слева, действие справа (анкета лидера + предложение, условия + ответ).
   На телефоне - один столбец в порядке разметки; шире 900 - по областям: main и more слева, side справа */
.duo { display: grid; gap: 16px; align-items: start; }
@media (min-width: 900px) {
  .duo { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); grid-template-areas: 'main side' 'more side'; grid-template-rows: auto 1fr; gap: 20px; }
  .duo > .a-main { grid-area: main; }
  .duo > .a-side { grid-area: side; }
  .duo > .a-more { grid-area: more; }
  .search-layout { grid-template-columns: 290px minmax(0, 1fr); gap: 20px; }
  .filters { position: sticky; top: 92px; }
}
.filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.filters .check, .filters .btn-row { grid-column: 1 / -1; }
.filters .btn-row { margin-top: 4px; }
@media (min-width: 900px) { .filters { grid-template-columns: 1fr; } }
/* фильтры поиска на телефоне: шрифт 16 px (мельче - iPhone приближает страницу при касании), по два в ряд,
   пятый (условия) - на всю ширину: он и так один в ряду, а подпись у него самая длинная; уже 380 px - в столбик
   (на 360-375 «Любая страна» и «Любой размер» в половину ширины не влезают) */
.select-sm .input { min-height: 44px; padding: 10px 30px 10px 12px; font-size: 16px; }
.select-sm .ico-chev { right: 8px; }
.filters > .select-wrap:nth-child(5) { grid-column: 1 / -1; }
@media (max-width: 599px) { .filters { gap: 8px; } .filters.card-pad { padding: 14px; } }
@media (max-width: 379px) { .filters { grid-template-columns: minmax(0, 1fr); } }
.results-count { margin: 2px 4px 10px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.offer-form .sec-title { margin-bottom: 4px; }
.offer-form .field { margin-bottom: 4px; }

/* ---------- вход ---------- */
.center-card { display: flex; flex-direction: column; align-items: stretch; gap: 16px; text-align: center; }
.center-card h1 { font-family: var(--font-d); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.big-ico { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto; border-radius: 20px; background: var(--accent-soft); color: var(--accent-ink); }
.big-ico .ico { width: 30px; height: 30px; }
.code-label { color: var(--muted); font-size: 14px; font-weight: 600; }
.code { display: flex; justify-content: center; gap: 10px; margin: -6px 0 2px; }
.code span { display: grid; place-items: center; width: 58px; height: 72px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--bg); font-family: var(--font-d); font-size: 32px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mini-steps { display: flex; flex-direction: column; gap: 9px; color: var(--ink-2); font-size: 15px; text-align: left; counter-reset: s; }
.mini-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 6px; counter-increment: s; }
.mini-steps li::before { content: counter(s); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--bg-2); font-size: 13px; font-weight: 800; }
.wait-status p { display: inline-flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-weight: 700; }
.wait-status .alert { display: block; }
.wait-status .ico { width: 18px; height: 18px; color: var(--ok); }
.spinner { width: 16px; height: 16px; border: 2px solid var(--line-2); border-top-color: var(--accent-ink); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.note { margin-top: 14px; color: var(--muted); font-size: 14px; }
.center-card .note { margin-top: 0; }

/* ---------- выбор роли ---------- */
.role-grid { display: grid; gap: 12px; }
@media (min-width: 600px) { .role-grid { grid-template-columns: 1fr 1fr; } }
.role-card { cursor: pointer; }
.role-body { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px; border: 2px solid var(--line-2); border-radius: var(--radius); background: var(--surface); transition: border-color 0.15s, box-shadow 0.15s; }
.role-body .ico { width: 30px; height: 30px; margin-bottom: 6px; color: var(--accent-ink); }
.role-t { font-family: var(--font-d); font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.role-d { color: var(--muted); font-size: 15px; }
.role-card:hover .role-body { border-color: var(--ink); }
.role-card input:checked + .role-body { border-color: var(--ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.role-card input:focus-visible + .role-body { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.role-grid.has-error .role-body { border-color: var(--err); }

/* ---------- раскрывающиеся блоки ---------- */
.decline { margin-top: 12px; }
.decline > summary, .danger-zone > summary { list-style: none; }
.decline > summary::-webkit-details-marker, .danger-zone > summary::-webkit-details-marker { display: none; }
.decline[open] > summary { margin-bottom: 14px; }
.danger-zone > summary { margin: 0; color: var(--err); cursor: pointer; }
.danger-zone > summary .ico-chev { margin-left: auto; transition: transform 0.2s; }
.danger-zone[open] > summary { margin-bottom: 16px; }
.danger-zone[open] > summary .ico-chev { transform: rotate(180deg); }
.mod-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin-top: 20px; }
.mod-reject { display: flex; flex: 1; gap: 8px; min-width: min(100%, 280px); }
.mod-reject .input { min-height: 46px; }
@media (max-width: 479px) { .mod-reject { flex-direction: column; } .mod-reject .btn { width: 100%; } }   /* узкий телефон: причина во всю ширину, кнопка под ней */
.log { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* ---------- правила и политика ---------- */
.doc section { margin-top: 30px; }
.doc h2 { margin-bottom: 10px; font-family: var(--font-d); font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.doc p { margin-bottom: 10px; color: var(--ink-2); line-height: 1.7; }

/* ---------- главная: «Сцена» ---------- */
.landing { background: var(--stage); }
.stage { display: flex; flex-direction: column; align-items: center; padding: 48px 24px 16px; color: var(--stage-ink); text-align: center; }
.stage h1 { font-family: var(--font-d); font-size: clamp(32px, 5vw, 72px); font-weight: 700; line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.stage-lead { max-width: 660px; margin-top: 22px; color: var(--stage-muted); font-size: clamp(16px, 1.35vw, 19px); text-wrap: balance; }
.stage .cta-form, .final .cta-form { margin-top: 30px; }
.stage-note { margin-top: 14px; color: rgba(242, 243, 245, 0.5); font-size: 14px; }
/* веер - под высоту экрана: лидер и лаймовая первая линия видны в первом экране и на ноутбуке */
.fan { position: relative; width: min(1020px, 100%, max(480px, (100vh - 536px) * 2)); margin: 0; padding-top: 24px; }
.fan img { display: block; width: 100%; height: auto; }
.fan figcaption span { position: absolute; padding: 3px 6px; border-radius: 4px; background: var(--stage); color: var(--stage-muted); font-size: 14px; line-height: 1; white-space: nowrap; }
.fan figcaption .fan-leader { left: 50%; bottom: 3.2%; transform: translateX(30px); color: var(--lime); }
.fan-first { right: 61.5%; bottom: 10%; }
.fan-team { right: 91%; bottom: 46%; }

.facts-wrap { background: var(--stage); color: var(--stage-ink); border-top: 1px solid var(--stage-line); }
.land-facts { max-width: 1180px; }
.land-facts > div { padding: 30px 28px 34px; }
.land-facts h2 { font-family: var(--font-d); font-size: 18px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
.land-facts p { max-width: 22em; margin-top: 6px; color: var(--stage-muted); font-size: 15px; }

.sec-big { font-family: var(--font-d); font-size: clamp(26px, 3vw, 44px); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; text-align: center; text-wrap: balance; }
.sec-lead { max-width: 36rem; margin: 14px auto 0; color: var(--muted); font-size: 18px; text-align: center; text-wrap: balance; }

/* одно предложение изнутри: в центре предложение, по сторонам - что в нём важно (линия к своей части) */
.inside { padding: 104px 24px 112px; background: var(--bg); color: var(--ink); }
.anat { display: grid; grid-template-columns: minmax(0, 1fr) 460px minmax(0, 1fr); max-width: 1180px; margin: 60px auto 0; }
.part { position: relative; grid-column: 2; padding: 22px 28px; background: var(--surface); }
.part + .part { border-top: 1px solid var(--line); }
.part-1 { grid-row: 1; border-radius: 18px 18px 0 0; }
.part-2 { grid-row: 2; padding-top: 8px; padding-bottom: 8px; }
.part-3 { grid-row: 3; }
.part-4 { grid-row: 4; display: grid; gap: 10px; padding-bottom: 26px; border-radius: 0 0 18px 18px; }
.o-from, .o-k { color: var(--muted); font-size: 14px; }
.o-name { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-family: var(--font-d); font-size: 17px; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
.o-ava { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--hl-bg); color: var(--hl-ink); font-size: 16px; }
.o-name .ok-chip { margin-left: auto; font-family: var(--font); letter-spacing: 0; }
.part-2 div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 13px 0; }
.part-2 div + div { border-top: 1px solid var(--line); }
.part-2 dt { color: var(--muted); font-size: 15px; }
.part-2 dd { font-family: var(--font-d); font-size: 22px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.part-3 p + p { margin-top: 6px; }
.o-btn { display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 16px; border-radius: 999px; font-size: 16px; font-weight: 700; text-align: center; }
.o-yes { background: var(--btn); color: var(--btn-ink); }
.o-no { border: 1px solid var(--line-2); }
.call { position: relative; align-self: center; max-width: 300px; color: var(--muted); font-size: 16px; line-height: 1.45; }
.call b { display: block; margin-bottom: 6px; color: var(--ink); font-family: var(--font-d); font-size: 16px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
.call::after { content: ''; position: absolute; top: 50%; width: 40px; height: 1.5px; background: var(--ink); }
.call::before { content: ''; position: absolute; top: 50%; width: 9px; height: 9px; margin-top: -3.75px; border-radius: 50%; background: var(--ink); }
.call-l { grid-column: 1; justify-self: end; margin-right: 56px; text-align: right; }
.call-l::after { right: -52px; }
.call-l::before { right: -60px; }
.call-r { grid-column: 3; justify-self: start; margin-left: 56px; }
.call-r::after { left: -52px; }
.call-r::before { left: -60px; }
.call-1 { grid-row: 1; }
.call-2 { grid-row: 2; }
.call-3 { grid-row: 3; }
.call-4 { grid-row: 4; }

/* путь по ролям: переключатель на радиокнопках (работает без скрипта), три шага по линии */
.roles { padding: 104px 24px 112px; background: var(--surface); color: var(--ink); }
.rt { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.switch { display: flex; width: fit-content; margin: 32px auto 0; padding: 6px; border-radius: 999px; background: var(--bg); }
.switch label { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px; border-radius: 999px; font-size: 16px; font-weight: 700; cursor: pointer; user-select: none; }
#rt-leader:checked ~ .switch [for="rt-leader"], #rt-project:checked ~ .switch [for="rt-project"] { background: var(--btn); color: var(--btn-ink); }
#rt-leader:focus-visible ~ .switch [for="rt-leader"], #rt-project:focus-visible ~ .switch [for="rt-project"] { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.path { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1080px; margin: 60px auto 0; }
.path-project, #rt-project:checked ~ .path-leader { display: none; }
#rt-project:checked ~ .path-project { display: grid; }
.path::before { content: ''; position: absolute; top: 26px; left: 16.66%; right: 16.66%; height: 2px; background: var(--ink); }
.path li { padding: 0 28px; text-align: center; }
.path i { position: relative; display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 22px; border-radius: 50%; background: var(--lime); color: var(--black); box-shadow: 0 0 0 2px var(--ink); font-family: var(--font-d); font-size: 18px; font-style: normal; font-weight: 700; }
.path p { max-width: 19em; margin: 0 auto; font-size: 17px; }

.final { padding: 104px 24px 96px; background: var(--stage); color: var(--stage-ink); text-align: center; }
.final .sec-lead { color: var(--stage-muted); }

/* схема по ширине своего блока, а не окна: с боковым меню на компьютере места меньше, чем ширина окна */
.inside { container-type: inline-size; counter-reset: part; }
@media (max-width: 899px) {
  .inside { padding: 72px 16px 80px; }
  .sec-lead { font-size: 16px; }
}
@container (max-width: 899px) {
  .anat { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-top: 36px; }
  .part { grid-column: 1; padding: 18px 20px 18px 30px; }
  .part::before { counter-increment: part; content: counter(part); position: absolute; left: -8px; top: 20px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--lime); color: var(--black); box-shadow: 0 0 0 1.5px var(--black); font: 700 11px/1 var(--font-d); }
  .part-2 dd { font-size: 19px; }
  .o-name { flex-wrap: wrap; row-gap: 10px; }
  .o-title { flex: 1 1 calc(100% - 54px); }
  .o-name .ok-chip { order: 3; margin-left: 54px; }
  .call, .call-l, .call-r { grid-column: 1; justify-self: start; max-width: none; margin: 0; padding: 14px 0 0 34px; text-align: left; font-size: 15px; }
  .call::after { display: none; }
  .call::before { left: 0; right: auto; top: 14px; display: grid; place-items: center; width: 24px; height: 24px; margin: 0; background: var(--lime); color: var(--black); box-shadow: 0 0 0 1.5px var(--black); font: 700 11px/24px var(--font-d); text-align: center; }
  .call-1 { grid-row: 5; padding-top: 26px; }
  .call-1::before { content: '1'; top: 26px; }
  .call-2 { grid-row: 6; }
  .call-2::before { content: '2'; }
  .call-3 { grid-row: 7; }
  .call-3::before { content: '3'; }
  .call-4 { grid-row: 8; }
  .call-4::before { content: '4'; }
  .call b { margin-bottom: 4px; font-size: 15px; }
}
@media (max-width: 759px) {
  .stage { padding: 36px 16px 0; }
  .stage h1 { font-size: clamp(28px, 8.4vw, 36px); }
  .stage-lead { margin-top: 18px; }
  .stage .cta-form, .final .cta-form { margin-top: 26px; }
  .fan { width: calc(100% + 8px); padding-top: 32px; }
  .fan figcaption span { font-size: 11px; }
  .fan figcaption .fan-leader { transform: translateX(16px); bottom: 2%; }
  .fan-first { right: 60%; bottom: 12%; }
  .fan-team { display: none; }
  .land-facts { grid-auto-flow: row; }
  .land-facts > div { padding: 22px 20px 24px; }
  .land-facts > div + div { border-left: 0; border-top: 1px solid var(--stage-line); }
  .land-facts h2 { font-size: 16px; }
  .land-facts p { font-size: 14px; }
  .roles { padding: 72px 16px 80px; }
  .switch { width: 100%; }
  .switch label { flex: 1; padding: 0 12px; }
  .path { grid-template-columns: minmax(0, 1fr); gap: 26px; margin-top: 36px; }
  .path::before { top: 10px; bottom: 30px; left: 25px; right: auto; width: 2px; height: auto; }
  .path li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: start; padding: 0; text-align: left; }
  .path i { margin: 0; }
  .path p { margin: 0; padding-top: 2px; font-size: 16px; }
  .final { padding: 72px 16px 64px; }
}
@media (prefers-color-scheme: dark) {
  .inside { border-top: 1px solid var(--line); }
}

/* ---------- подвал - низ тёмной рамки ---------- */
.foot { padding: 26px 16px; background: var(--stage); color: var(--stage-ink); border-top: 1px solid var(--stage-line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; max-width: 1120px; margin: 0 auto; }
.brand-sm { font-size: 14px; }
.brand-sm .mark { width: 20px; height: 20px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--stage-muted); font-size: 14px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--stage-ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- чёрный список в шапке (10.11): на телефоне - значок (в нижнем меню четыре раздела), с 600 px - со словами ---------- */
.top-bl { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 6px; height: 34px; min-width: 34px; padding: 0 8px;
  border: 1px solid var(--stage-line); border-radius: 999px; color: var(--stage-ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.top-bl .ico { width: 17px; height: 17px; }
.top-bl span { display: none; }
.top-bl:hover { background: var(--stage-2); }
.top-bl[aria-current] { background: var(--lime); border-color: var(--lime); color: var(--black); }
@media (max-width: 359px) { body:not(.has-tabs) .top-bl { display: none; } }   /* гость на 320: шапке тесно рядом с «Войти», ссылка есть в подвале */
@media (min-width: 600px) { .top-bl { padding: 0 12px 0 10px; } .top-bl span { display: inline; } }
@media (min-width: 900px) { .has-tabs .top-bl { display: none; } }   /* у вошедших на компьютере - пункт меню */
@media (min-width: 900px) and (max-width: 1099px) { .top-nav .nav-bl span { display: none; } .top-nav .nav-bl { padding: 0 12px; } }   /* меню тесно - только значок */

/* ---------- админка: разделы вкладками на тёмной шапке ---------- */
.subnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 18px; }
.subnav a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--stage-line); border-radius: 999px;
  color: var(--stage-muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.subnav a:hover { color: var(--stage-ink); background: var(--stage-2); }
.subnav a[aria-current] { background: var(--lime); border-color: var(--lime); color: var(--black); }
.subnav .badge { position: static; box-shadow: none; }
.subnav a[aria-current] .badge { background: var(--black); color: var(--lime); }

/* ---------- вкладки-фильтры (ссылки): переносятся на новую строку, а не прячутся за прокруткой ---------- */
.ftabs { display: flex; flex-wrap: wrap; gap: 6px; }
.ftab { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 4px 12px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.ftab b { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.ftab:hover { border-color: var(--ink); }
.ftab[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.ftab[aria-current] b { color: inherit; opacity: 0.7; }
.narrow-md > .ftabs, .narrow-lg > .ftabs { margin-bottom: 14px; }
.sec-n { color: var(--muted); }
.meta-row { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 14px; }
.meta-row a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- админка: пользователи - поиск, фильтры, строки; на компьютере - колонки ---------- */
.ufilter { display: grid; gap: 14px; margin-bottom: 14px; }
.ufilter-q { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.ufilter-q > .input { grid-column: 1 / -1; min-height: 46px; }
@media (min-width: 760px) { .ufilter-q { grid-template-columns: minmax(0, 1fr) 210px auto; } .ufilter-q > .input { grid-column: auto; } }
.ufilter-row { display: grid; gap: 8px; }
.ufilter-k { color: var(--muted); font-size: 13px; font-weight: 700; }
@media (min-width: 760px) { .ufilter-row { grid-template-columns: 110px minmax(0, 1fr); align-items: start; } .ufilter-k { padding-top: 8px; } }
.ulist ul { margin: 0; padding: 0; list-style: none; }
.ulist li + li { border-top: 1px solid var(--line); }
.urow { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: 'ava main' 'ava meta' 'ava act'; gap: 6px 12px; align-items: center; padding: 14px 16px; }
.urow > .avatar { grid-area: ava; align-self: start; width: 40px; height: 40px; font-size: 13px; }
.u-main { grid-area: main; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.u-name { overflow: hidden; font-weight: 800; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.u-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.u-sub { overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.u-meta { grid-area: meta; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--muted); font-size: 13px; }
.u-role { color: var(--ink-2); font-weight: 700; }
.u-state { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.u-act { grid-area: act; margin: 0; }
.u-act:empty { display: none; }
.u-act .btn-danger { border-color: var(--line-2); color: var(--muted); }   /* в списке тихо, красная - при наведении */
.u-act .btn-danger:hover, .u-act .btn-danger:focus-visible { border-color: color-mix(in srgb, var(--err) 45%, transparent); color: var(--err); }
.urow-head { display: none; }
.urow > *, .u-meta > * { min-width: 0; }
@media (min-width: 900px) {
  .urow { grid-template-columns: 40px minmax(0, 1.5fr) 80px minmax(0, 1.2fr) 96px 96px 150px; grid-template-areas: none; padding: 12px 18px; }
  .urow > .avatar, .urow > .u-main, .urow > .u-meta, .urow > .u-act { grid-area: auto; }
  .urow > .avatar { align-self: center; }
  .u-meta, .urow-head .u-meta { display: contents; }
  .u-k { display: none; }
  .u-act { justify-self: end; }
  .u-act:empty { display: block; }
  .urow-head { display: grid; padding-top: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 700; }
}

/* ---------- чёрный список ---------- */
.avatar-bl { background: var(--err-soft); color: var(--err); }
.avatar-bl .ico { width: 46%; height: 46%; }
.bl-search { margin-bottom: 14px; }
.bl-search .label { display: block; margin-bottom: 8px; }
.bl-q { display: flex; gap: 8px; }
.bl-q .input { flex: 1; min-width: 0; min-height: 48px; }
.bl-q .btn { flex: none; height: 48px; }
@media (max-width: 479px) { .bl-q { flex-direction: column; } .bl-q .btn { width: 100%; } }   /* узкий телефон: поле во всю ширину, кнопка под ним */
.bl-note { margin-top: 18px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.bl-actions { display: flex; }
.truth { padding: 2px; }
.truth .err { margin-top: 6px; }
.truth.has-error .check { color: var(--err); }
.choice-list { display: grid; gap: 12px; margin: 14px 0 4px; }
.form-lead { max-width: 44rem; margin: -8px 0 18px; }
.mine-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.mine-row .row-title a { text-decoration: underline; text-underline-offset: 3px; }
.mine-sub { color: var(--muted); font-size: 13px; }
.mine-note { color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.plain-list { display: grid; gap: 8px; }
.plain-list a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ev a { text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }

/* ---------- компьютер: боковое меню и рабочая шапка (Дима 10.11: «отойти от лендинга на пк», с 1024 px) ----------
   меню слева группами по роли, сворачивается до значков (кука lp_side); шапка - поиск, язык, помощь, вход или меню пользователя;
   сцена страницы - тёмная карточка с заголовком слева. На телефоне и планшете - прежние шапка и нижнее меню. */
.side, .top-search, .top-help, .top-reg, .umenu { display: none; }
.shell { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.page { width: 100%; }
.side :focus-visible, .top :focus-visible, .foot :focus-visible, .tabbar :focus-visible, .stage :focus-visible, .stage-head :focus-visible, .final :focus-visible { outline-color: var(--lime); }

@media (min-width: 1024px) {
  body.has-side { --side-w: 256px; display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); align-items: start; }
  body.has-side.side-mini { --side-w: 76px; }
  .shell { min-height: 100vh; min-height: 100dvh; }

  .side { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
    background: var(--stage); color: var(--stage-ink); border-right: 1px solid var(--stage-line); scrollbar-width: thin; scrollbar-color: var(--stage-2) transparent; }
  .side-top { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 8px; height: 68px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--stage-line); }
  .side .mk-bg { fill: var(--lime); }
  .side .mk-fg { stroke: var(--black); }
  .side-toggle { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--stage-muted); cursor: pointer; }
  .side-toggle:hover { background: var(--stage-2); color: var(--stage-ink); }
  .side-nav { display: flex; flex-direction: column; gap: 22px; padding: 20px 12px 24px; }
  .side-label { padding: 0 12px 8px; color: var(--stage-muted); font-size: 12px; font-weight: 700; letter-spacing: 0.01em; }
  .side-group a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 12px;
    color: var(--stage-muted); font-size: 15px; font-weight: 600; text-decoration: none; transition: background-color 0.15s, color 0.15s; }
  .side-group a + a { margin-top: 2px; }
  .side-group a:hover { background: var(--stage-2); color: var(--stage-ink); }
  .side-group a[aria-current] { background: var(--stage-2); color: var(--lime); }
  .side-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side-ext .ico { width: 14px; height: 14px; opacity: 0.55; }
  .side-badge { flex: none; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--lime); color: var(--black);
    font-size: 12px; font-weight: 800; line-height: 22px; text-align: center; font-variant-numeric: tabular-nums; }
  .side-cta { margin: auto 12px 16px; padding: 18px; border-radius: 16px; background: var(--stage-2); }
  .side-cta-t { font-family: var(--font-d); font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
  .side-cta-d { margin: 6px 0 14px; color: var(--stage-muted); font-size: 13px; line-height: 1.45; }
  /* свёрнутое меню: только значки, подпись - подсказкой; название сайта переезжает в шапку */
  .side-mini .side-top { justify-content: center; padding: 0; }
  .side-mini .side-top .brand, .side-mini .side-label, .side-mini .side-text, .side-mini .side-ext, .side-mini .side-cta { display: none; }
  .side-mini .side-nav { gap: 14px; padding: 16px 10px; }
  .side-mini .side-group + .side-group { padding-top: 14px; border-top: 1px solid var(--stage-line); }
  .side-mini .side-group a { justify-content: center; padding: 0; }
  .side-mini .side-badge { position: absolute; top: 3px; right: 5px; min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; line-height: 18px; }

  /* рабочая шапка */
  .top { border-bottom: 1px solid var(--stage-line); }
  .top-in { max-width: none; padding: 0 28px; gap: 14px; }
  body.has-side:not(.side-mini) .top-in > .brand { display: none; }
  .has-side .top-nav, .has-side .top-bl { display: none; }
  .top-search { display: flex; flex: 1 1 auto; align-items: center; gap: 10px; max-width: 480px; height: 42px; padding: 0 14px;
    border: 1px solid var(--stage-line); border-radius: 12px; background: var(--stage-2); color: var(--stage-muted); }
  .top-search:focus-within { border-color: rgba(198, 241, 53, 0.7); }
  .top-search .ico { width: 18px; height: 18px; }
  .top-q { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; color: var(--stage-ink); font-size: 15px; outline: none; }
  .top-q::placeholder { color: var(--stage-muted); opacity: 1; }
  .top-help { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border: 1px solid var(--stage-line); border-radius: 50%; color: var(--stage-ink); }
  .top-help:hover { background: var(--stage-2); }
  .top-help .ico { width: 19px; height: 19px; }
  .top-reg { display: inline-flex; }
  .umenu { display: block; position: relative; }
  .umenu > summary { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px 0 5px; border: 1px solid var(--stage-line); border-radius: 999px; cursor: pointer; list-style: none; }
  .umenu > summary::-webkit-details-marker { display: none; }
  .umenu > summary:hover, .umenu[open] > summary { background: var(--stage-2); }
  .umenu .avatar { width: 34px; height: 34px; background: var(--lime); color: var(--black); font-size: 12px; }
  .umenu-who { display: flex; flex-direction: column; max-width: 190px; line-height: 1.2; }
  .umenu-who b { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
  .umenu-who span { color: var(--stage-muted); font-size: 12px; }
  .umenu .ico-chev { width: 16px; height: 16px; color: var(--stage-muted); transition: transform 0.15s; }
  .umenu[open] .ico-chev { transform: rotate(180deg); }
  .umenu-pop { position: absolute; top: calc(100% + 8px); right: 0; z-index: 40; min-width: 220px; padding: 6px; border: 1px solid var(--stage-line); border-radius: 14px;
    background: var(--stage-2); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
  .umenu-pop form { margin: 0; }
  .umenu-pop a, .umenu-pop button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px;
    background: transparent; color: var(--stage-ink); font-size: 14px; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
  .umenu-pop a:hover, .umenu-pop button:hover { background: rgba(242, 243, 245, 0.07); }
  .umenu-pop .ico { width: 18px; height: 18px; color: var(--stage-muted); }

  /* страница: сцена - тёмная карточка с заголовком слева, под ней работа по той же левой линии */
  .page { max-width: calc(1040px + 56px); margin: 0 auto; padding: 0 28px; }
  .page-wide { max-width: calc(1240px + 56px); }
  .stage-head { margin-top: 24px; border: 1px solid var(--stage-line); border-radius: 24px; overflow: hidden; }
  .sh-in { align-items: flex-start; max-width: none; margin: 0; padding: 30px 36px 34px; text-align: left; }
  .stage-head .back { margin-bottom: 12px; }
  .stage-head h1 { max-width: 30ch; font-size: clamp(28px, 2.4vw, 38px); }
  .stage-head .lead { max-width: 44rem; }
  .stage-head .meta, .sh-actions { justify-content: flex-start; }
  .has-side .subnav { display: none; }   /* разделы админки - в боковом меню */
  .fstrip { max-width: none; margin: 0; }
  .fstrip > div { align-items: flex-start; padding: 16px 36px 18px; text-align: left; }
  .main, .main-wide { max-width: none; margin: 0; padding: 24px 0 64px; }
  .page:has(> .stage-head) .main > :is(.narrow, .narrow-md, .narrow-lg) { margin-left: 0; }

  /* главная: тоже рабочая область - первый экран тёмной карточкой (текст слева, веер справа), разделы карточками */
  .has-side .landing { background: var(--bg); }
  .landing .page { max-width: calc(1280px + 56px); }
  .stage { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; column-gap: 24px; align-items: start;
    margin-top: 24px; padding: 56px 0 0 52px; border: 1px solid var(--stage-line); border-radius: 28px; background: var(--stage); text-align: left; overflow: hidden; }
  .stage > h1, .stage > .stage-lead, .stage > .cta-form, .stage > .stage-note { grid-column: 1; }
  .stage h1 { font-size: clamp(30px, 2.7vw, 46px); }
  .stage-lead { max-width: 520px; }
  .stage > .stage-note { padding-bottom: 52px; }
  .stage > .fan { grid-column: 2; grid-row: 1 / -1; align-self: end; width: 100%; padding-top: 0; }
  .facts-wrap { margin-top: 16px; background: none; border: 0; }
  .land-facts { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: none; }
  .land-facts > div, .land-facts > div + div { align-items: flex-start; padding: 24px 26px 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); text-align: left; }
  .land-facts p { color: var(--muted); }
  .inside { padding: 72px 0 80px; background: none; border-top: 0; }
  .roles { padding: 60px 40px 68px; border: 1px solid var(--line); border-radius: 24px; }
  .final { margin: 16px 0 28px; padding: 64px 40px; border: 1px solid var(--stage-line); border-radius: 24px; }
  .foot { padding: 22px 28px; }
  .foot-in { max-width: none; }
}
/* узкий компьютер (рабочая область до ~1000 px): первый экран главной в одну колонку - веер под текстом */
@media (min-width: 1024px) and (max-width: 1279px) {
  .stage { grid-template-columns: minmax(0, 1fr); padding: 48px 40px 0; }
  .stage > .stage-note { padding-bottom: 0; }
  .stage > .fan { grid-column: 1; grid-row: auto; justify-self: center; width: min(100%, 640px); padding-top: 28px; }
  .fan-team { display: none; }   /* подпись слева упирается в край карточки */
}
