/* Связи × Зимняя Ассамблея — мобильное приложение гостя, v5 (v7: карта выставки и карточка встречи — светлые, праздничные).
   Минимализм v3 сохранён (белые поверхности, волосяные линии, один шрифт Golos Text, линейные иконки 1.5 px, без градиентов),
   палитра v5 «поярче» — из материалов организатора: синий ЛОТПП (основной), золото и графит презентации «Выставка партнёров»
   (#EDE17C на #1B1C1D), красный «#КОМАНДА 47» и «Никольских рядов» (#E32126). Цвета частей вечера: выставка и B2B — синий,
   торжественная часть — графит с золотом, фуршет — красный. Для текста — тёмные «-ink» оттенки (WCAG AA). */
:root {
  --bg: #F6F6F4; --surface: #FFFFFF; --fill: #EDEDEA; --fill-2: #F2F2EF;
  --line: #E6E6E1; --line-2: #D6D6D0;
  --text: #15171C; --text-2: #5C6069; --text-3: #8B8F97;
  --acc: #2747C9; --acc-soft: #EEF1FC; --acc-ink: #1E39A6;
  --gold: #EDE17C; --gold-soft: #FBF6DA; --gold-line: #EADB86; --gold-ink: #6E5A00;
  --red: #D7262E; --red-soft: #FDEEEE; --red-ink: #A81C24; --red-deep: #B3202A;
  --ink: #1B1C1D; --ink-2: #2A2B2D;
  /* v6 — цвета сцены со скрина владельца: ночь зала, синий экрана «47», голубой «ВЕРА», янтарь ёлки */
  --night: #0B1029; --night-2: #161D45; --night-line: #2A3470;
  /* v7 — светлый «снежный» зал для карты: фон, линии, подписи */
  --snow: #EEF5FC; --snow-line: #CFE0F2; --snow-ink: #3F4E6E; --pulse: #E8761E;
  --stage: #3D63FF; --sky: #4CB4F5; --sky-ink: #0B5E94; --sky-soft: #E6F4FD;
  --amber: #F4A859; --amber-ink: #8A4B0A; --amber-soft: #FDF0E1;
  --danger: #B42318;
  --r-s: 12px; --r-m: 16px; --r-l: 22px;
  --tab-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.45 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
h1, h2, h3, p { margin: 0; }
b { font-weight: 600; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 8px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
.ic { width: 20px; height: 20px; flex: none; }
.muted { color: var(--text-2); }
.sm { font-size: 14px; }
.center { text-align: center; }
.mt { margin-top: 16px; }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.eyebrow.live { display: inline-flex; align-items: center; gap: 7px; color: var(--acc); }
.eyebrow.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- каркас ---------- */
#app { position: relative; min-height: 100dvh; background: var(--bg); max-width: 600px; margin: 0 auto; }
.top { position: sticky; top: 0; z-index: 30; background: rgb(246 246 244 / 95%); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); padding-top: env(safe-area-inset-top, 0px); }
.hd { display: flex; align-items: flex-end; gap: 8px; padding: 14px 16px 12px 20px; }
.hd-l { flex: 1; min-width: 0; }
.hd-t { font-size: 17px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-t.big { font-size: 28px; line-height: 1.15; letter-spacing: -.025em; margin-top: 3px; }
.hd.deep { align-items: center; padding: 8px 12px 8px 8px; border-bottom: 1px solid var(--line); }
.hd.deep .hd-t { flex: 1; min-width: 0; }
.hd-r { display: flex; gap: 2px; margin-left: auto; flex: none; }
.ibtn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--text); transition: background .15s; flex: none; }
.ibtn:hover { background: var(--fill); }
.ibtn .ic { width: 22px; height: 22px; }
main { display: block; padding: 4px 20px calc(var(--tab-h) + var(--safe-b) + 40px); outline: none; }
main > * + * { margin-top: 12px; }
main > .sh { margin-top: 28px; }

/* нижняя панель — fixed (не sticky: в мобильном Safari sticky уезжает), как у Эмпатиума */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgb(255 255 255 / 92%); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
.tb-in { display: flex; max-width: 600px; margin: 0 auto; }
.tb-in a { flex: 1; height: var(--tab-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--text-3); font-size: 11px; font-weight: 500; transition: color .15s; }
.tb-in a.on { color: var(--acc); }
.tb-i { position: relative; display: grid; place-items: center; }
.tb-i .ic { width: 24px; height: 24px; }
.tb-in a.on .ic { stroke-width: 1.9; }
.tb-in .dot { position: absolute; top: -5px; right: -10px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--acc); color: #fff; font: 600 10px/17px 'Golos Text', sans-serif; font-style: normal; text-align: center; box-shadow: 0 0 0 2px #fff; }
/* главная вкладка дня — круг акцентного цвета над панелью */
.tb-in a.main .tb-i { width: 50px; height: 50px; border-radius: 50%; background: var(--acc); color: #fff; margin-top: -22px; box-shadow: 0 0 0 5px #fff; }
.tb-in a.main .ic { width: 24px; height: 24px; stroke-width: 1.8; }
.tb-in a.main { color: var(--text-2); }
.tb-in a.main.on { color: var(--acc); }

/* переходы между экранами */
.fx-tab { animation: fx-t .22s var(--ease); }
.fx-push { animation: fx-r .26s var(--ease); }
.fx-pop { animation: fx-l .26s var(--ease); }
@keyframes fx-t { from { opacity: 0; transform: translateY(6px); } }
@keyframes fx-r { from { opacity: 0; transform: translateX(28px); } }
@keyframes fx-l { from { opacity: 0; transform: translateX(-20px); } }

/* ---------- базовые блоки ---------- */
.card { display: block; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px; }
.lede { color: var(--text-2); font-size: 15px; }
.sh { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: -2px; }
.sh h2 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.lnk { display: inline-flex; align-items: center; gap: 4px; color: var(--acc); font-size: 14px; font-weight: 500; white-space: nowrap; }
.lnk .ic { width: 16px; height: 16px; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; background: var(--fill); color: var(--text-2); font-size: 12px; font-weight: 500; white-space: nowrap; vertical-align: 1px; }

/* сгруппированный список — как настройки iOS */
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 12px 14px 12px 16px; position: relative; transition: background .12s; }
.row + .row::before { content: ''; position: absolute; top: 0; right: 0; left: 54px; border-top: 1px solid var(--line); }
@media (hover: hover) { .row:hover:not(.static) { background: var(--fill-2); } }
.row-i { min-width: 24px; display: grid; place-items: center; color: var(--text-2); flex: none; }
.row-i .ic { width: 22px; height: 22px; }
.row-i .av, .row-i .num { width: 32px; height: 32px; }
.row-i .tm-i { min-width: 0; }
.row:has(.tm-i) + .row::before, .row + .row:has(.tm-i)::before { left: 74px; }
.row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-t b { font-size: 15px; font-weight: 500; line-height: 1.3; hyphens: auto; overflow-wrap: break-word; }
.row-t small { font-size: 13px; color: var(--text-2); line-height: 1.35; margin-top: 2px; }
.row-t em { font-style: normal; font-size: 13px; color: var(--acc); margin-top: 4px; line-height: 1.35; }
.row-c { color: var(--text-3); display: grid; flex: none; }
.row-c .ic { width: 18px; height: 18px; }
.row.static .row-c { display: none; }
.row.stand + .row.stand::before, .row:has(> .num) + .row::before, .row:has(> .av) + .row::before, .row + .row:has(> .num)::before, .row + .row:has(> .av)::before { left: 66px; }
.row.past { opacity: .5; }
.tm-i { min-width: 44px; font-size: 14px; font-weight: 600; color: var(--acc); font-variant-numeric: tabular-nums; }
.free { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.got { width: 26px; height: 26px; border-radius: 50%; background: var(--acc-soft); color: var(--acc); display: grid; place-items: center; flex: none; }
.got .ic { width: 15px; height: 15px; stroke-width: 2; }

.num { width: 38px; height: 38px; border-radius: 11px; background: var(--fill); color: var(--text); display: grid; place-items: center; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; flex: none; }
.num.xl { width: 64px; height: 64px; border-radius: 18px; font-size: 26px; }
.av { width: 40px; height: 40px; border-radius: 50%; background: var(--acc-soft); color: var(--acc-ink); display: grid; place-items: center; font-weight: 600; font-size: 14px; flex: none; letter-spacing: .02em; }
.av.xs { width: 30px; height: 30px; font-size: 11px; }
.av.sm { width: 34px; height: 34px; font-size: 12px; }
.av.xl { width: 64px; height: 64px; font-size: 22px; }

.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; padding: 0 18px; border-radius: 14px; background: var(--acc); color: #fff; font-size: 16px; font-weight: 600; letter-spacing: -.005em; transition: background .15s, transform .1s; text-align: center; }
.btn:hover { background: var(--acc-ink); }
.btn:active { transform: scale(.985); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn.ghost:hover { background: var(--fill-2); }
.btn.ok { background: var(--acc-soft); color: var(--acc-ink); cursor: default; }
.btn.sm { width: auto; min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn .ic { width: 19px; height: 19px; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; }
.acts .btn:not(.sm) { flex: 1 1 140px; white-space: nowrap; padding: 0 12px; }
main > .btn + .btn { margin-top: 8px; }

.news { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-m); font-size: 14px; color: var(--text-2); }
.news .ic { color: var(--acc); width: 18px; height: 18px; margin-top: 1px; }
.news b { color: var(--text); font-variant-numeric: tabular-nums; }

/* сегменты внутри раздела — липкая полоса под шапкой, как у Эмпатиума и БРИКС: графитовая капсула, активный — синий ЛОТПП с мягкой тенью */
.stick { position: sticky; top: var(--hd-h, 72px); z-index: 20; margin-left: -20px; margin-right: -20px; padding: 6px 20px 10px; background: rgb(246 246 244 / 94%); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); transition: box-shadow .2s; }
.stick.is-stuck { box-shadow: 0 1px 0 var(--line), 0 12px 20px -16px rgb(21 23 28 / 35%); }
.seg { display: flex; gap: 3px; padding: 4px; border-radius: 99px; background: var(--ink); box-shadow: 0 12px 24px -14px rgb(21 23 28 / 60%), inset 0 0 0 1px rgb(255 255 255 / 6%); }
.seg a { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; text-align: center; text-wrap: balance; line-height: 1.2; min-height: 42px; padding: 6px 10px; border-radius: 99px; font-size: 14px; font-weight: 500; color: rgb(255 255 255 / 72%); transition: background-color .2s, color .2s, box-shadow .2s, transform .15s; }
@media (hover: hover) { .seg a:hover:not(.on) { color: #fff; } }
.seg a:active { transform: scale(.97); }
.seg a:focus-visible { outline: 2px solid #fff; outline-offset: -4px; border-radius: 99px; }
.seg a.on { background: linear-gradient(135deg, #3D63FF, var(--acc) 60%, var(--acc-ink)); color: #fff; font-weight: 600; box-shadow: 0 6px 14px -6px rgb(39 71 201 / 80%), inset 0 0 0 1px rgb(255 255 255 / 16%); }
@media (max-width: 359px) { .stick { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; } .seg a { padding: 6px 6px; font-size: 13px; } }

/* ---------- Сейчас ---------- */
.now h2 { font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -.015em; margin-top: 8px; }
.now .where { display: flex; gap: 6px; align-items: center; margin-top: 8px; font-size: 14px; color: var(--text-2); }
.now .where .ic { width: 16px; height: 16px; }
.bar { height: 4px; border-radius: 2px; background: var(--fill); margin-top: 18px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--acc); border-radius: 2px; }
.bar-l { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.todo { margin-top: 14px; font-size: 15px; }
.now .muted.sm { margin-top: 6px; }
.now .btn { margin-top: 16px; }
.now .muted { margin-top: 6px; }

/* ---------- Программа ---------- */
.part { margin-top: 28px; }
.part:first-of-type { margin-top: 16px; }
.part-h h2 { font-size: 20px; font-weight: 600; letter-spacing: -.015em; margin-top: 4px; }
.part-h .muted { margin-top: 4px; }
.plist { list-style: none; margin: 12px 0 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.pi { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; padding: 14px 6px 14px 16px; position: relative; scroll-margin: 120px; }
.pi + .pi { border-top: 1px solid var(--line); }
.pi-t b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.pi-t small { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.pi-b h3 { font-size: 15px; font-weight: 500; line-height: 1.35; }
.pi-b .eyebrow.live { margin-bottom: 4px; }
.pi-b .muted { margin-top: 3px; font-size: 13px; }
.pi-b .lnk { margin-top: 8px; }
.pi.cur { background: var(--acc-soft); }
.pi.cur::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--acc); }
.pi.past { opacity: .45; }
.rem { width: 40px; height: 40px; color: var(--text-3); align-self: start; }
.rem .ic { width: 20px; height: 20px; }
.rem.on { color: var(--acc); }
.rem.on .ic { fill: currentColor; }
.flash { animation: flash 1.6s ease; }
@keyframes flash { 30% { background: var(--acc-soft); } }

/* ---------- Выставка ---------- */
.hero-s { display: flex; gap: 16px; align-items: center; padding-top: 8px; }
.hero-s h2 { font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; margin-top: 4px; }
.hero-s .muted { margin-top: 2px; }
.why { background: var(--acc-soft); border-radius: var(--r-m); padding: 14px 16px; }
.why .eyebrow { color: var(--acc-ink); }
.why ul, .whyl { margin: 8px 0 0; padding: 0; list-style: none; }
.why li, .whyl li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.45; }
.why li + li, .whyl li + li { margin-top: 4px; }
.why li::before, .whyl li::before { content: ''; position: absolute; left: 2px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }
.bul { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.6; }
.txt { font-size: 15px; line-height: 1.55; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sl { min-height: 58px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: center; transition: background .12s, border-color .12s; }
.sl small { display: block; font-size: 11px; font-weight: 400; color: var(--text-2); }
.sl:hover:not(:disabled) { border-color: var(--acc); }
.sl:disabled { background: var(--fill-2); border-color: transparent; color: var(--text-3); cursor: default; }
.sl:disabled small { color: var(--text-3); }
.sl.mine { background: var(--acc); border-color: var(--acc); color: #fff; }
.sl.mine small { color: rgb(255 255 255 / 85%); }
.gen { text-align: left; transition: border-color .15s; }
.gen:hover { border-color: var(--line-2); }
.gen h2 { font-size: 22px; font-weight: 600; letter-spacing: -.015em; margin-top: 6px; }
.gen .muted { margin-top: 2px; }
.gives { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 14px; }
.gives .ic { color: var(--acc); width: 18px; height: 18px; margin-top: 1px; }
.gen .lnk { margin-top: 14px; }

/* ---------- Связи ---------- */
.people { display: grid; gap: 12px; }
.person { padding: 16px; }
.pc-h { display: flex; gap: 12px; align-items: center; }
.person .whyl { margin-top: 12px; }
.person > .muted { margin-top: 10px; }
.person .acts { margin-top: 14px; }
.intro h2 { font-size: 22px; font-weight: 600; letter-spacing: -.015em; margin-top: 6px; }
.intro .muted { margin: 8px 0 18px; }
.intro .btn + .btn { margin-top: 8px; }
.empty { text-align: center; padding: 40px 24px; color: var(--text-2); }
.empty .ic { width: 32px; height: 32px; color: var(--text-3); margin-bottom: 8px; }
.kv { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 0 16px; }
.kv div { padding: 12px 0; }
.kv div + div { border-top: 1px solid var(--line); }
.kv dt { font-size: 12px; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; font-weight: 500; }
.kv dd { margin: 2px 0 0; font-size: 15px; }

/* ---------- профиль ---------- */
.form { display: grid; gap: 20px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.form label small, .form legend small { font-weight: 400; color: var(--text-3); }
.form input:not([type=checkbox]) { height: 50px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); padding: 0 14px; font: 400 16px 'Golos Text', sans-serif; color: var(--text); }
.form input:not([type=checkbox]):focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-size: 13px; font-weight: 500; color: var(--text-2); padding: 0; margin-bottom: 8px; }
.chips-in { display: flex; flex-wrap: wrap; gap: 8px; }
.ch { min-height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; transition: background .12s, color .12s, border-color .12s; }
.ch:hover { border-color: var(--text-3); }
.ch.on { background: var(--acc); border-color: var(--acc); color: #fff; }
.form label.sw { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; font-weight: 400; color: var(--text); }
.sw input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--acc); flex: none; }
.err { color: var(--danger); font-size: 14px; }
.err:empty { display: none; }
.form .btn + .btn { margin-top: -12px; }

/* ---------- паспорт ---------- */
.pass-h { display: flex; gap: 12px; align-items: center; }
.pass-h b { display: block; font-size: 16px; margin-top: 2px; }
.crest { width: 42px; height: 42px; border-radius: 50%; background: var(--acc-soft); color: var(--acc); display: grid; place-items: center; flex: none; }
.cnt { margin-left: auto; font-size: 28px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cnt small { font-size: 15px; color: var(--text-2); font-weight: 500; }
.meter { height: 6px; border-radius: 3px; background: var(--fill); margin: 16px 0 12px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--acc); border-radius: 3px; }
.ticket { display: flex; gap: 12px; align-items: center; background: var(--acc-soft); border-radius: 14px; padding: 14px; }
.ticket > .ic { color: var(--acc); width: 26px; height: 26px; }
.ticket b { display: block; font-size: 20px; letter-spacing: -.01em; }
.ticket small { font-size: 13px; color: var(--text-2); }
.stamps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stamp { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); text-align: center; min-width: 0; }
.stamp .seal { width: 52px; height: 52px; border-radius: 50%; border: 1.5px dashed var(--line-2); display: grid; place-items: center; margin-bottom: 4px; }
.stamp .seal i { font-style: normal; font-weight: 600; color: var(--text-3); font-size: 15px; }
.stamp.done .seal { border: 0; transform: rotate(var(--r)); }
.stamp.done .seal svg { width: 56px; height: 56px; }
.seal svg circle { fill: none; stroke: var(--acc); stroke-width: 2; }
.seal svg circle + circle { stroke-width: 1; }
.seal svg text { fill: var(--acc); font: 700 9.5px 'Golos Text', sans-serif; text-anchor: middle; letter-spacing: .04em; }
.seal svg text.d { font-size: 7.5px; font-weight: 500; }
.stamp b { font-size: 12px; line-height: 1.25; }
.stamp small { font-size: 11px; color: var(--text-2); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 12px; align-items: center; padding: 8px 0; font-size: 15px; line-height: 1.4; }
.steps b { width: 28px; height: 28px; border-radius: 50%; background: var(--acc-soft); color: var(--acc-ink); display: grid; place-items: center; font-size: 13px; flex: none; }

/* ---------- визитка, помощь ---------- */
.qr-card { text-align: center; padding: 28px 20px 24px; }
.qr-card .qr { width: 220px; margin: 0 auto 18px; }
.qr-card .qr svg { width: 100%; height: auto; display: block; }
.qr-card b { display: block; font-size: 19px; letter-spacing: -.01em; }
.qr-card small { display: block; font-size: 14px; margin-top: 4px; }
.card h3 { font-size: 19px; font-weight: 600; margin: 6px 0 4px; }
.card > .btn.sm { margin-top: 14px; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px; font-size: 15px; font-weight: 500; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { width: 18px; height: 18px; color: var(--text-3); transition: transform .2s; }
.faq details[open] summary .ic { transform: rotate(90deg); }
.faq details p { padding: 0 16px 16px; font-size: 14px; color: var(--text-2); }

/* ---------- схема ---------- */

/* ---------- шторки, тосты ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; }
.scrim { position: absolute; inset: 0; background: rgb(12 14 22 / 40%); opacity: 0; transition: opacity .25s; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-width: 600px; margin: 0 auto; max-height: 86%; overflow-y: auto; background: var(--surface); border-radius: 24px 24px 0 0; padding: 10px 20px calc(24px + var(--safe-b)); transform: translateY(100%); transition: transform .3s var(--ease); }
.sheet-wrap.in .scrim { opacity: 1; }
.sheet-wrap.in .sheet { transform: none; }
.grab { display: block; width: 36px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 0 auto 14px; }
.sheet .x { position: absolute; top: 10px; right: 10px; color: var(--text-2); }
.sheet h3 { font-size: 21px; font-weight: 600; letter-spacing: -.015em; margin: 6px 44px 8px 0; }
.sheet > p { font-size: 15px; }
.sheet > .btn { margin-top: 10px; }
.sheet > p + .btn { margin-top: 20px; }
.sheet .row.static { padding-left: 0; padding-right: 0; }
.sheet .list .row.static { padding-left: 16px; }
.ans { display: grid; gap: 8px; margin-top: 18px; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 16px); z-index: 70; transform: translate(-50%, 8px); opacity: 0; transition: opacity .2s, transform .2s; background: var(--text); color: #fff; padding: 11px 16px; border-radius: 12px; font-size: 14px; max-width: calc(100% - 40px); width: max-content; text-align: center; pointer-events: none; }
.toast.in { opacity: 1; transform: translate(-50%, 0); }

/* ---------- десктоп: телефон по центру + панель о прототипе (как у соседей семейства) ---------- */
.deskside { display: none; }
@media (min-width: 1000px) {
  body { background: #E9E9E5; }
  #app { width: 390px; max-width: none; height: min(calc(100dvh - 48px), 860px); min-height: 0; margin: max(24px, calc((100dvh - 860px) / 2)) auto 0; border-radius: 44px; overflow: hidden; box-shadow: 0 0 0 10px #16171B, 0 30px 60px -20px rgb(0 0 0 / 35%); transform: translateX(170px); }
  .scroller { height: 100%; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
  .scroller::-webkit-scrollbar { display: none; }
  .top { padding-top: 10px; }
  .tabbar { position: absolute; padding-bottom: 10px; }
  .sheet-wrap { position: absolute; }
  .toast { position: absolute; bottom: calc(var(--tab-h) + 26px); }
  .deskside { display: block; position: fixed; top: 50%; left: calc(50% - 480px); width: 380px; transform: translateY(-50%); }
  .deskside h2 { font-size: 32px; line-height: 1.12; font-weight: 600; letter-spacing: -.03em; margin: 12px 0 14px; }
  .deskside > p { font-size: 15px; color: var(--text-2); }
  .ds-qr { display: flex; gap: 16px; align-items: center; margin: 22px 0 18px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); font-size: 14px; color: var(--text-2); }
  .ds-qr .qr { width: 104px; height: 104px; flex: none; }
  .ds-qr .qr svg { width: 100%; height: 100%; display: block; }
}
@media (max-width: 359px) {
  main { padding-left: 16px; padding-right: 16px; }
  .slots { grid-template-columns: repeat(3, 1fr); }
  .stamps { grid-template-columns: repeat(3, 1fr); }
  .tb-in a { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
#layer:has(.sheet-wrap) .toast { top: calc(env(safe-area-inset-top, 0px) + 14px); bottom: auto; }
.top:has(.deep) + main { padding-top: 16px; }
html.locked, html.locked body, html.locked .scroller { overflow: hidden; }

/* ---------- v4: анкета, % совпадения, моё расписание, заметки, лёгкие механики ---------- */
[hidden] { display: none !important; }
.ob-h { padding: 4px 0 8px; }
.ob-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0 18px; }
.ob-bar i { height: 4px; border-radius: 2px; background: var(--fill); transition: background .25s var(--ease); }
.ob-bar i.on { background: var(--acc); }
.ob-h h2 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.ob-h .muted { margin-top: 6px; }
.ob-nav { display: flex; gap: 8px; }
.ob-nav .btn { flex: 1; }
.ob-nav .btn.ghost { flex: 0 0 34%; }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form legend { font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 8px; padding: 0; }
.pct { margin-left: auto; flex: none; font-size: 15px; font-weight: 600; color: var(--acc); font-variant-numeric: tabular-nums; }
.pct.lg { display: grid; justify-items: end; font-size: 24px; line-height: 1; letter-spacing: -.02em; }
.pct.lg small { font-size: 11px; font-weight: 500; color: var(--text-2); letter-spacing: .04em; text-transform: uppercase; margin-top: 4px; }
.pc-h .row-t { flex: 1; min-width: 0; }
.btn[disabled] { background: var(--acc-soft); color: var(--acc-ink); cursor: default; }
.ice { padding: 16px 0 4px; border-top: 1px solid var(--line); }
.ice-q { font-size: 18px; line-height: 1.4; margin: 6px 0 8px; letter-spacing: -.01em; }
.note { display: grid; gap: 8px; }
.note textarea { width: 100%; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); padding: 12px 14px; font: 400 16px/1.45 'Golos Text', sans-serif; color: var(--text); resize: vertical; }
.note textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.note-s { margin-top: 12px; padding-left: 12px; border-left: 2px solid var(--acc); font-size: 14px; color: var(--text-2); }
.person > .lnk { margin-top: 10px; }
.quick h3 { font-size: 17px; margin: 6px 0 4px; }
.quick .acts { margin-top: 14px; }
.fnd-h { display: grid; gap: 12px; padding: 16px 20px; }
.fnd-h b { display: block; font-size: 22px; letter-spacing: -.02em; margin-top: 2px; }
.fnd { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fc { display: grid; align-content: start; gap: 6px; min-height: 116px; padding: 14px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--surface); text-align: left; transition: border-color .15s; }
.fc:hover { border-color: var(--line-2); }
.fc b { font-size: 15px; font-weight: 500; line-height: 1.3; }
.fc small { font-size: 13px; color: var(--text-2); }
.fc-n { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 12px; color: var(--text-2); }
.fc.done { background: var(--acc-soft); border-color: transparent; }
.fc.done .ic { color: var(--acc); width: 22px; height: 22px; }
.fc.done small { color: var(--acc-ink); }
.plist.my .pi { grid-template-columns: 48px 1fr; }
.ds-link { display: inline-block; margin: 4px 0 14px; color: var(--acc); font-weight: 500; font-size: 15px; }
.fnd-h .meter { margin: 0; }
.form .ob-nav .btn + .btn { margin-top: 0; }
.note + .kv, .note + .list, .ice + .kv { margin-top: 16px; }

/* ---------- v5: палитра «поярче» ---------- */
.pill.gold { background: var(--gold-soft); color: var(--gold-ink); box-shadow: inset 0 0 0 1px var(--gold-line); }
.news .ic { color: var(--red); }

/* «Сейчас» — главная карточка в цвете части вечера */
.now.p1, .now.p2, .now.p3, .now.p0 { color: #fff; border-color: transparent; }
.now.p1 { background: var(--acc); }
.now.p2, .now.p0 { background: var(--ink); }
.now.p3 { background: var(--red-deep); }
.now.p1 .eyebrow, .now.p3 .eyebrow, .now.p1 .muted, .now.p3 .muted, .now.p1 .where, .now.p3 .where, .now.p1 .bar-l, .now.p3 .bar-l { color: rgb(255 255 255 / 84%); }
.now.p2 .eyebrow, .now.p0 .eyebrow { color: var(--gold); }
.now.p2 .muted, .now.p0 .muted, .now.p2 .where, .now.p2 .bar-l { color: rgb(255 255 255 / 76%); }
.now .eyebrow.live i { background: currentColor; }
.now.p1 .bar, .now.p2 .bar, .now.p3 .bar { background: rgb(255 255 255 / 22%); }
.now.p1 .bar i, .now.p3 .bar i { background: #fff; }
.now.p2 .bar i { background: var(--gold); }
.now.p1 .btn { background: #fff; color: var(--acc-ink); }
.now.p2 .btn { background: var(--gold); color: var(--ink); }
.now.p3 .btn { background: #fff; color: var(--red-ink); }
.now.p1 .btn:hover, .now.p3 .btn:hover { background: #F1F3F9; }
.now.p2 .btn:hover { background: #F3E995; }

/* программа: три части — три тона */
.part.p1 { --pc: var(--acc); --pc-soft: var(--acc-soft); }
.part.p2 { --pc: var(--gold-ink); --pc-soft: var(--gold-soft); }
.part.p3 { --pc: var(--red); --pc-soft: var(--red-soft); }
.part .pn { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; margin-right: 8px; background: var(--pc); color: #fff; font-size: 11px; letter-spacing: 0; vertical-align: 1px; }
.part.p2 .pn { background: var(--ink); color: var(--gold); }
.part .plist { box-shadow: inset 0 3px 0 var(--pc); }
.part.p2 .plist { box-shadow: inset 0 3px 0 var(--gold); }
.part .pi.cur { background: var(--pc-soft); }
.part .pi.cur::before { background: var(--pc); }
.part .pi .eyebrow.live { color: var(--pc); }
.part .rem.on { color: var(--pc); }

/* номера стендов и аватары — в тонах палитры */
.num[style*="--pc"] { background: color-mix(in srgb, var(--pc) 13%, #fff); color: color-mix(in srgb, var(--pc) 70%, #000); }
.av.t1 { background: var(--gold-soft); color: var(--gold-ink); }
.av.t2 { background: var(--red-soft); color: var(--red-ink); }
.av.t3 { background: #ECECEE; color: var(--ink-2); }

/* паспорт: штампы трёх цветов, билет — золотой */
.stamp.done { background: var(--acc-soft); border-color: transparent; }
.stamp.done.red { background: var(--red-soft); }
.stamp.done.gold { background: var(--gold-soft); }
.stamp.red .seal svg circle { stroke: var(--red); }
.stamp.red .seal svg text { fill: var(--red-ink); }
.stamp.gold .seal svg circle { stroke: var(--gold-ink); }
.stamp.gold .seal svg text { fill: var(--gold-ink); }
.ticket { background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold-line); }
.ticket > .ic { color: var(--gold-ink); }

/* ---------- партнёры: плашки с айдентикой ---------- */
.plogo { display: grid; place-items: center; height: 76px; padding: 14px 16px; background: color-mix(in srgb, var(--pc) 5%, #fff); box-shadow: inset 0 3px 0 var(--pc); border-bottom: 1px solid var(--line); }
.plogo img { display: block; width: auto; height: auto; max-width: 86%; max-height: 30px; object-fit: contain; }
.plogo.tall img { max-height: 44px; }
.plogo.mono i { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 12px; background: var(--pc); color: #fff; font-style: normal; font-weight: 600; font-size: 14px; letter-spacing: .04em; }
.plogo.lg { height: 112px; }
.plogo.lg img { max-height: 42px; max-width: 72%; }
.plogo.lg.tall img { max-height: 60px; }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pgrid.one { grid-template-columns: 1fr; }
.ptile { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; text-align: left; transition: border-color .15s, transform .1s; }
.ptile:hover { border-color: var(--line-2); }
.ptile:active { transform: scale(.985); }
.ptile-t { padding: 10px 12px 12px; }
.ptile-t b { display: block; font-size: 14px; line-height: 1.3; }
.ptile-t small { display: block; margin-top: 3px; font-size: 12px; line-height: 1.35; color: var(--text-2); }
.pgrid.one .plogo { height: 92px; }
.card.gen { overflow: hidden; padding-top: 0; }
.card.gen .plogo { margin: 0 -20px 16px; }
.psheet .plogo { border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.pgrid > .ptile:last-child:nth-child(odd):not(:only-child) { grid-column: 1 / -1; }
.part.p3 .pi .eyebrow.live { color: var(--red-ink); }
.part .pi .eyebrow.live i { background: currentColor; }

/* ---------- v7: карта зала — светлая праздничная («снежный» зал, объекты в цветах сцены) ---------- */
.mapc { background: var(--snow); border: 1px solid var(--snow-line); border-radius: var(--r-l); padding: 10px 10px 14px; color: var(--text); }
.hmap-w { display: block; }
.hmap { display: block; width: 100%; height: auto; font-family: 'Golos Text', sans-serif; }
.hmap .bg { fill: var(--snow); }
.hmap .flake { fill: #C9DEF3; }
.hmap .floor { fill: #FFFFFF; stroke: var(--snow-line); stroke-width: 1.5; }
.hmap .fl { fill: var(--snow-ink); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-anchor: middle; }
.hmap .tl { fill: var(--sky-ink); font-size: 9.5px; font-weight: 600; letter-spacing: .08em; text-anchor: middle; }
.hmap .gw { stroke: #B9CBE0; stroke-width: 1.2; fill: none; }
.hmap .o { cursor: pointer; transition: opacity .2s; }
.hmap .o:focus { outline: none; }
.hmap .o text { text-anchor: middle; font-weight: 600; pointer-events: none; }
.hmap .st rect { stroke: #fff; stroke-width: 2; filter: drop-shadow(0 3px 6px rgb(27 40 90 / 22%)); }
.hmap .st .n { fill: #fff; font-size: 22px; font-weight: 700; }
.hmap .st .u { fill: #fff; font-size: 7.5px; letter-spacing: .14em; }
.hmap .gotc { fill: #fff; stroke: #13804B; stroke-width: 1.2; } .hmap .gotp { fill: none; stroke: #13804B; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hmap .tb circle { fill: var(--sky); stroke: #fff; stroke-width: 2; filter: drop-shadow(0 3px 6px rgb(11 94 148 / 30%)); }
.hmap .tb text { fill: var(--night); font-size: 13px; font-weight: 700; }
.hmap .tb.me circle { fill: var(--amber); filter: drop-shadow(0 0 10px rgb(232 118 30 / 70%)); }
.hmap .tb.me .mine { fill: var(--amber-ink); font-size: 8.5px; letter-spacing: .1em; }
.hmap .tb .pulse { fill: none; stroke: var(--pulse); stroke-width: 3.5; filter: none; transform-box: fill-box; transform-origin: center; animation: ring 1.8s ease-out infinite; }
.hmap .tb .pulse.p2 { animation-delay: .9s; }
@keyframes ring { from { transform: scale(1); opacity: 1; } to { transform: scale(2.1); opacity: 0; } }
.hmap .tree path { fill: var(--amber); stroke: #fff; stroke-width: 1.5; filter: drop-shadow(0 2px 8px rgb(232 118 30 / 45%)); }
.hmap .tree rect { fill: #9C6A3A; } .hmap .tree .star { fill: var(--gold); stroke: var(--gold-ink); stroke-width: 1; }
.hmap .tree .bl { stroke: none; filter: none; }
.hmap .tree text { fill: var(--amber-ink); font-size: 12px; text-anchor: start; }
.hmap .bar rect { fill: var(--red); stroke: #fff; stroke-width: 2; filter: drop-shadow(0 3px 6px rgb(179 32 42 / 30%)); }
.hmap .bar text { fill: #fff; font-size: 13px; }
.hmap .hall rect { fill: var(--gold); stroke: #fff; stroke-width: 2; filter: drop-shadow(0 2px 4px rgb(110 90 0 / 16%)); }
.hmap .hall.live rect { stroke: var(--gold-ink); stroke-width: 2.5; }
.hmap .hall .h1 { fill: var(--ink); font-size: 13px; letter-spacing: .1em; }
.hmap .hall .h2 { fill: var(--gold-ink); font-size: 10.5px; font-weight: 500; }
.hmap .ward rect { fill: #DCEAF8; stroke: var(--snow-line); stroke-width: 1.5; }
.hmap .ward text { fill: var(--night); font-size: 12px; }
.hmap .entry rect { fill: var(--acc); filter: drop-shadow(0 3px 6px rgb(39 71 201 / 28%)); }
.hmap .entry text { fill: #fff; font-size: 12.5px; } .hmap .entry .s { fill: #fff; font-size: 10px; font-weight: 500; }
.hmap .o .hit { fill: transparent; stroke: none; filter: none; }
.hmap .o.sel rect:not(.hit), .hmap .o.sel circle:not(.pulse):not(.hit), .hmap .o:focus-visible rect:not(.hit), .hmap .o:focus-visible circle:not(.pulse):not(.hit), .hmap .o:focus-visible path { stroke: var(--night); stroke-width: 3.5; }
@media (hover: hover) { .hmap .o:hover { opacity: .85; } }
.hmap.cmp .o { cursor: default; }
.hmap.cmp .o.dim { opacity: .55; filter: saturate(.7); }
.mapc-h { display: flex; gap: 8px; align-items: center; margin: 10px 6px 0; font-size: 13px; color: var(--text-2); }
.mapc-h .ic { width: 16px; height: 16px; color: var(--sky-ink); }
.mlg { list-style: none; margin: 12px 4px 0; padding: 12px 0 0; border-top: 1px solid var(--snow-line); display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.mlg li { display: flex; gap: 9px; align-items: flex-start; font-size: 12px; line-height: 1.35; color: var(--text-2); }
.mlg b { display: block; color: var(--text); font-size: 13px; font-weight: 600; }
.mlg .k { flex: none; width: 16px; height: 16px; margin-top: 1px; border-radius: 5px; }
.mlg .k.st { background: linear-gradient(135deg, #B8893A 0 33%, #3B6FD8 33% 66%, #1E8A6A 66%); }
.mlg .k.tb { border-radius: 50%; background: var(--sky); }
.mlg .k.me { border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgb(232 118 30 / 35%); }
.mlg .k.tree { background: var(--amber); clip-path: polygon(50% 0, 100% 100%, 0 100%); border-radius: 0; }
.mlg .k.bar { background: var(--red); }
.mlg .k.hall { background: var(--gold); box-shadow: inset 0 0 0 1.5px var(--gold-ink); }
.next-meet { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-m); background: var(--amber-soft); border: 1px solid #F3CFA2; color: var(--text); }
.next-meet .row-t small { color: var(--amber-ink); }
.next-meet > .ic { color: var(--amber-ink); width: 18px; height: 18px; }
.nm-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--amber); flex: none; animation: glow 1.8s ease-out infinite; }
@keyframes glow { 0% { box-shadow: 0 0 0 0 rgb(232 118 30 / 70%); } 100% { box-shadow: 0 0 0 12px rgb(232 118 30 / 0%); } }
.why-s { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--acc-soft); color: var(--acc-ink); font-size: 14px; line-height: 1.4; }

/* ---------- v7: встреча пары — светлая тёплая карточка ---------- */
.meet { background: var(--amber-soft); border-color: #F3CFA2; color: var(--text); }
.meet .eyebrow.live { color: var(--amber-ink); }
.meet .eyebrow.live i { background: var(--pulse); }
.mc-h { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.mc-h .row-t b { font-size: 17px; font-weight: 600; }
.meet .mc-h .row-t small { color: var(--text-2); }
.meet .pct { color: var(--acc-ink); }
.mflow { list-style: none; margin: 16px 0 14px; padding: 0; display: grid; gap: 2px; }
.mflow li { display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; position: relative; }
.mflow li + li::before { content: ''; position: absolute; left: 13px; top: -9px; height: 14px; border-left: 2px solid #EBCB9F; }
.mflow i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; font: 600 13px/1 'Golos Text', sans-serif; font-style: normal; background: #fff; color: var(--text-2); box-shadow: inset 0 0 0 1.5px #E5C9A3; }
.mflow i .ic { width: 15px; height: 15px; stroke-width: 2.4; }
.mflow li.done i { background: var(--sky); color: var(--night); box-shadow: none; }
.mflow li.cur i { background: var(--amber); color: var(--night); box-shadow: 0 0 0 4px rgb(232 118 30 / 25%); }
.mflow b { display: block; font-size: 15px; font-weight: 600; }
.mflow small { display: block; font-size: 13px; color: var(--text-2); line-height: 1.35; }
.mflow li:not(.done):not(.cur) b { color: var(--text-2); }
.meet .hmap-w { margin: 0 -8px 14px; border-radius: 16px; overflow: hidden; border: 1px solid var(--snow-line); }
.meet .btn { background: var(--amber); color: var(--night); }
.meet .btn:hover { background: #F7BB7A; }
.mc-n { margin-top: 10px; font-size: 13px; color: var(--text-2); line-height: 1.45; }
.mc-n a { color: var(--acc-ink); text-decoration: underline; }
.fb { display: grid; gap: 10px; }
.fb-q { font-size: 17px; font-weight: 600; }
.fb-c { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fb-c input { position: absolute; opacity: 0; pointer-events: none; }
.fb-c span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px #E5C9A3; font-weight: 600; cursor: pointer; }
.fb-c input:checked + span { background: var(--sky); color: var(--night); box-shadow: none; }
.fb-c label:last-child input:checked + span { background: var(--red-soft); color: var(--red-ink); box-shadow: inset 0 0 0 1.5px var(--red-ink); }
.fb-c input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
.fb textarea { width: 100%; border-radius: 12px; border: 1.5px solid #E5C9A3; background: #fff; color: var(--text); padding: 12px 14px; font: 400 16px/1.45 'Golos Text', sans-serif; resize: vertical; }
.fb textarea::placeholder { color: var(--text-2); }
.fb textarea:focus { outline: none; border-color: var(--sky-ink); }
.meet .err { color: var(--danger); }
.pair h3 { font-size: 19px; margin: 6px 0 4px; }
.pair .acts { margin-top: 14px; }
.pair .acts .btn { flex: 1 1 100%; }
.howto { list-style: none; margin: 0; padding: 4px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.howto li { display: flex; gap: 12px; align-items: center; padding: 10px 0; }
.howto li + li { border-top: 1px solid var(--line); }
.howto b { width: 28px; height: 28px; border-radius: 50%; background: var(--sky-soft); color: var(--sky-ink); display: grid; place-items: center; font-size: 13px; flex: none; }
.howto span { font-size: 15px; font-weight: 500; }
.howto small { display: block; font-size: 13px; font-weight: 400; color: var(--text-2); }
/* сканер */
.vf { position: relative; margin: 16px auto 4px; width: min(100%, 260px); aspect-ratio: 1; border-radius: 22px; background: var(--night); overflow: hidden; display: grid; place-items: center; }
.vf video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.vf.on video { display: block; }
.vf-c { position: absolute; inset: 22%; border-radius: 16px; box-shadow: 0 0 0 3px var(--amber), 0 0 24px rgb(244 168 89 / 60%); animation: vf 2s ease-in-out infinite; }
@keyframes vf { 50% { transform: scale(.94); } }
.vf-t { position: absolute; left: 12px; right: 12px; bottom: 12px; text-align: center; color: rgb(255 255 255 / 86%); font-size: 12.5px; line-height: 1.35; }
.sheet.scan .btn { margin-top: 10px; }
.mc-x { display: flex; margin: 14px auto 0; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }

/* ---------- v8: вкладка «Встречи» объясняет себя сама — зачем, как, что получу ----------
   Обложка с фото прошлой Ассамблеи и 3 выгодами, 5 шагов с иллюстрациями, карточки пар с причиной совпадения.
   Референсы: Эмпатиум (подбор → место встречи → QR друг друга, правила списком), Refero — LinkedIn «icebreaker» (ценность + превью встречи),
   222 «you both…» (почему вы подходите), Tinder «it's a match» (две аватарки), Haptic «step» (шаги карточками), Days (отсчёт). */
.mhero { border-radius: var(--r-l); overflow: hidden; background: var(--acc-ink); color: #fff; }
.mhero-ph { position: relative; height: 150px; background: #1E2A5E url(img/meet-hero.webp) center 62% / cover no-repeat; }
.mhero-ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(30 57 166 / 0%) 45%, var(--acc-ink)); }
.mhero-b { padding: 4px 20px 20px; }
.mhero-e { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.mhero h2 { font-size: 24px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; margin: 8px 0 8px; }
.mhero-b > p:not(.mhero-e) { font-size: 15px; line-height: 1.45; color: rgb(255 255 255 / 92%); }
.mhero-k { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mhero-k li { min-width: 0; display: grid; align-content: start; gap: 2px; padding: 10px; border-radius: 14px; background: rgb(255 255 255 / 13%); font-size: 12px; line-height: 1.25; color: rgb(255 255 255 / 90%); }
.mhero-k .ic { width: 28px; height: 28px; padding: 5px; border-radius: 9px; margin-bottom: 6px; }
.mhero-k .c1 .ic { background: #fff; color: var(--acc-ink); } .mhero-k .c2 .ic { background: var(--gold); color: var(--ink); } .mhero-k .c5 .ic { background: var(--red); color: #fff; }
.mhero-k small { font-size: 12px; hyphens: auto; }
.mhero-k b { font-size: 14px; font-weight: 600; color: #fff; }
@media (max-width: 359px) { .mhero-k li { padding: 8px; } .mhero-k b { font-size: 13px; } }


.msteps { list-style: none; margin: 0; padding: 6px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }
.msteps li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; position: relative; }
.msteps li:not(:last-child)::after { content: ''; position: absolute; left: 31px; top: 80px; bottom: -8px; border-left: 2px dashed var(--line-2); }
.mst-a { position: relative; width: 64px; height: 64px; border-radius: 18px; flex: none; display: grid; place-items: center; }
.mst-a svg { width: 60px; height: 60px; }
.mst-a i { position: absolute; top: -5px; left: -5px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 12px/22px 'Golos Text', sans-serif; text-align: center; font-style: normal; box-shadow: 0 0 0 2px #fff; }
.mst-a.c1 { background: var(--acc); } .mst-a.c2 { background: var(--gold); } .mst-a.c3 { background: var(--sky); }
.mst-a.c4 { background: var(--ink); } .mst-a.c4 i { background: var(--gold); color: var(--ink); } .mst-a.c5 { background: var(--red); }
.mst-t { padding-top: 4px; }
.mst-t b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.mst-t small { display: block; margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--text-2); }
.mhow { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.mhow summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; font-weight: 600; font-size: 15px; cursor: pointer; list-style: none; }
.mhow summary::-webkit-details-marker { display: none; }
.mhow summary .ic { color: var(--acc); }
.mhow summary .ic:last-child { margin-left: auto; color: var(--text-3); transition: transform .2s; }
.mhow[open] summary .ic:last-child { transform: rotate(90deg); }
.mhow .msteps { border: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--r-m) var(--r-m); }

.mav { position: relative; display: inline-grid; flex: none; }
.mav .av.xl { width: 56px; height: 56px; font-size: 19px; }
.mav i { position: absolute; right: -3px; bottom: -3px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--pc); color: #fff; font: 700 12px/22px 'Golos Text', sans-serif; text-align: center; font-style: normal; box-shadow: 0 0 0 2px #fff; }
.mpair { padding: 0; overflow: hidden; }
.mpair-h { display: flex; align-items: center; gap: 12px; padding: 18px 18px 4px; background: linear-gradient(180deg, var(--acc-soft), var(--surface)); }
.mpair-h .row-t b { font-size: 17px; }
.mpair > :not(.mpair-h) { margin-left: 18px; margin-right: 18px; }
.mring { margin-left: auto; flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(closest-side, #fff 76%, transparent 78% 100%), conic-gradient(var(--acc) calc(var(--v) * 1%), #D5DCF6 0); }
.mring b { font-size: 15px; font-weight: 700; color: var(--acc-ink); font-variant-numeric: tabular-nums; }
.mwhy { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.mwhy li { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.35; }
.mwhy li small { display: block; font-size: 13px; color: var(--text-2); }
.mwhy li.in { background: var(--acc-soft); } .mwhy li.in b { color: var(--acc-ink); }
.mwhy li.out { background: var(--gold-soft); } .mwhy li.out b { color: var(--gold-ink); }
.mwhy-i { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; }
.mwhy li.in .mwhy-i { background: var(--acc); } .mwhy li.out .mwhy-i { background: var(--ink); color: var(--gold); }
.mtalk { margin-top: 10px; font-size: 14px; line-height: 1.4; color: var(--text); }
.mtalk span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); margin-bottom: 2px; }
.mpair-f { display: flex; align-items: center; gap: 12px; margin-top: 14px !important; padding: 14px 0 18px; border-top: 1px solid var(--line); }
.mslot { display: flex; align-items: center; gap: 8px; flex: none; font-size: 12px; color: var(--text-2); line-height: 1.25; }
.mslot .ic { color: var(--acc); }
.mslot b { display: block; font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; }
.mpair-f .btn { flex: 1; width: auto; min-width: 0; padding: 0 10px; font-size: 15px; white-space: nowrap; }

.mc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mc-when { font-size: 13px; font-weight: 600; color: var(--amber-ink); background: #fff; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.mc-when:empty { display: none; }
.mduo { display: flex; align-items: center; justify-content: center; gap: 0; margin: 16px 0 6px; }
.mduo-p { display: grid; justify-items: center; gap: 4px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.mduo-p .av.xl { width: 56px; height: 56px; font-size: 19px; box-shadow: 0 0 0 3px #fff; }
.mduo-t { position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin: 0 22px 20px; border-radius: 50%; background: var(--amber); color: var(--night); line-height: 1.05; box-shadow: 0 0 0 5px rgb(232 118 30 / 22%); text-align: center; }
.mduo-t b { font-size: 18px; font-weight: 700; }
.mduo-t small { font-size: 12px; font-weight: 600; }
.mduo-t::before, .mduo-t::after { content: ''; position: absolute; top: 50%; width: 20px; border-top: 2px dashed #E5B378; }
.mduo-t::before { right: 100%; } .mduo-t::after { left: 100%; }
.mc-who { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; text-align: center; }
.mc-who b { font-size: 17px; font-weight: 600; }
.mc-who small { flex-basis: 100%; font-size: 14px; color: var(--text-2); }
.mc-who .pct { margin: 4px 0 0; order: 3; font-size: 12px; font-weight: 600; color: var(--acc-ink); background: #fff; padding: 3px 10px; border-radius: 999px; }
.meet .mwhy li.in { background: #fff; }
.mbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 16px; }
.mbar i { height: 6px; border-radius: 3px; background: #EBCB9F; }
.mbar i.done { background: var(--sky); } .mbar i.cur { background: var(--pulse); }
.meet .mflow { margin-top: 8px; }

.mempty { text-align: center; padding: 24px 20px; }
.mempty-a { display: inline-grid; place-items: center; width: 80px; height: 80px; border-radius: 24px; background: var(--acc); margin-bottom: 12px; }
.mempty-a svg { width: 70px; height: 70px; }
.mempty h3 { font-size: 19px; margin-bottom: 6px; }
.mempty .btn { margin-top: 16px; }

.mrow { gap: 12px; }
.mrow-t { display: grid; min-width: 46px; line-height: 1.2; }
.mrow-t b { font-size: 15px; color: var(--acc); font-variant-numeric: tabular-nums; }
.mrow-t small { font-size: 12px; color: var(--text-2); }
.mst { font-style: normal; font-weight: 500; }
.mst.s0 { color: var(--amber-ink); } .mst.s1 { color: var(--acc-ink); } .mst.s2 { color: var(--red-ink); } .mst.s3 { color: var(--sky-ink); }
@media (max-width: 389px) { .mpair-f { flex-wrap: wrap; } .mpair-f .btn { flex-basis: 100%; } }
/* v9: «Как мы подбираем собеседника» — веса из match(), разбор процента по тапу на кольцо */
.sh .lnk, .mhm-h .lnk { min-height: 44px; }
button.mring { cursor: pointer; transition: transform .15s var(--ease); }
button.mring:hover { transform: scale(1.05); }
button.mring:focus-visible, .mc-who button.pct:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.mc-who button.pct { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; cursor: pointer; }
.mc-who button.pct .ic { width: 14px; height: 14px; }
.mhm { padding: 18px; border-top: 4px solid var(--acc); }
.mhm-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.mhm-h h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.mw { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.mw li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--fill-2); }
.mw li.in { background: var(--acc-soft); } .mw li.out { background: var(--gold-soft); }
.mw-i { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; background: var(--text-2); }
.mw li.in .mw-i { background: var(--acc); } .mw li.out .mw-i { background: var(--ink); color: var(--gold); } .mw li.gov .mw-i { background: var(--red-ink); }
.mw-t { flex: 1; min-width: 0; line-height: 1.3; }
.mw-t b { display: block; font-size: 14px; font-weight: 600; }
.mw-t small { display: block; font-size: 13px; color: var(--text-2); }
.mw-w { flex: none; display: flex; align-items: center; gap: 8px; }
.mw-w i { width: 44px; height: 8px; border-radius: 4px; background: #fff; position: relative; overflow: hidden; }
.mw-w i::after { content: ''; position: absolute; inset: 0; width: calc(var(--w) * 100%); border-radius: 4px; background: var(--acc); }
.mw li.out .mw-w i::after { background: var(--ink); } .mw li.sec .mw-w i::after { background: var(--text-2); } .mw li.gov .mw-w i::after { background: var(--red-ink); }
.mw-w b { min-width: 24px; text-align: right; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--acc-ink); }
.mw li.out .mw-w b { color: var(--gold-ink); } .mw li.sec .mw-w b, .mw li.gov .mw-w b { color: var(--text-2); }
.mhm-n { margin-top: 12px; font-size: 14px; line-height: 1.4; padding: 10px 12px; border-radius: 12px; background: var(--sky-soft); color: var(--text); }
.mhm-n b { color: var(--sky-ink); }
.mhm-f { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.mhm-f .btn { flex: none; }
.mwy-h { display: flex; align-items: center; gap: 12px; margin: 12px 0 10px; }
.mwy-h .row-t b { font-size: 16px; }
.mwy { list-style: none; margin: 0 0 14px; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mwy li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; font-size: 14px; line-height: 1.35; }
.mwy li + li { border-top: 1px solid var(--line); }
.mwy li b { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--acc-ink); }
.mwy li.out b { color: var(--gold-ink); }
.mwy li.sum { background: var(--acc-soft); font-weight: 600; }
.mfacts { list-style: none; margin: 14px 0 16px; padding: 0; display: grid; gap: 8px; font-size: 14px; line-height: 1.4; color: var(--text-2); }
.mfacts b { color: var(--text); }
@media (max-width: 389px) { .mhm-f { flex-wrap: wrap; } .mhm-f .btn { width: 100%; } .mw-w i { width: 28px; } }

@media (max-width: 359px) { .mhero h2 { font-size: 21px; } .mduo-t { margin: 0 14px 20px; } }
.sheet h3:focus { outline: none; }

/* ---------- премиум-доводка по образцу Эмпатиума и БРИКС (задача 1793642409, .claude/preship/premium-audit-dr-tpp.md) ----------
   светлая схема и деловой тон v9–v11 сохранены; добавлены глубина и тактильность: карточки — волосяная линия + мягкая «приподнятая» тень,
   главная кнопка — объём и тень в цвет ЛОТПП, «Сейчас» — карточка с бликом и цветной тенью, нажатие — лёгкое сжатие */
:root { --lift: 0 1px 2px rgb(21 23 28 / 4%), 0 8px 22px -12px rgb(21 23 28 / 14%); }
.card, .list, .plist, .kv { box-shadow: var(--lift); }
.news { background: var(--surface); box-shadow: var(--lift); }
.btn { background: linear-gradient(180deg, #3152D6, var(--acc)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 16%), 0 8px 18px -10px rgb(39 71 201 / 75%); transition: background .15s, transform .12s, box-shadow .15s; }
.btn:hover { background: var(--acc-ink); }
.btn.ghost, .btn.ok, .btn[disabled] { box-shadow: none; }
.btn.ghost { background: var(--surface); }
.now.p1 .btn, .now.p2 .btn, .now.p3 .btn, .meet .btn { box-shadow: 0 8px 18px -10px rgb(0 0 0 / 45%); }
.now.p1 { background: radial-gradient(120% 90% at 100% 0, rgb(255 255 255 / 16%), transparent 55%), linear-gradient(160deg, #3157DE, var(--acc) 55%, var(--acc-ink)); box-shadow: 0 18px 36px -18px rgb(39 71 201 / 70%); }
.now.p2, .now.p0 { background: radial-gradient(120% 90% at 100% 0, rgb(237 225 124 / 14%), transparent 55%), linear-gradient(160deg, #2A2B2D, var(--ink)); box-shadow: 0 18px 36px -18px rgb(21 23 28 / 70%); }
.now.p3 { background: radial-gradient(120% 90% at 100% 0, rgb(255 255 255 / 14%), transparent 55%), linear-gradient(160deg, #D7262E, var(--red-deep)); box-shadow: 0 18px 36px -18px rgb(179 32 42 / 65%); }
.sh h2 { font-size: 20px; letter-spacing: -.02em; }
.part-h h2 { font-size: 21px; letter-spacing: -.02em; }
/* главная вкладка дня — круг с объёмом и цветной тенью */
.tb-in a.main .tb-i { background: linear-gradient(160deg, #3D63FF, var(--acc) 60%, var(--acc-ink)); box-shadow: 0 0 0 5px #fff, 0 10px 20px -6px rgb(39 71 201 / 60%); }
a.card, button.card, .row:not(.static), .person { transition: transform .12s, background .12s, box-shadow .15s; }
a.card:active, button.card:active, .row:not(.static):active { transform: scale(.99); }
.row:not(.static):active { background: var(--fill-2); }
@media (prefers-reduced-motion: reduce) { a.card:active, button.card:active, .row:not(.static):active, .seg a:active, .btn:active { transform: none; } }
