/* BLACK MANAGER — светлый интерфейс: лендинг, вход, кабинет.
   Тёмная боковая панель + светлое полотно, синий акцент, крупные жирные заголовки. */
:root {
    --bg: #f4f7fc;
    --panel: #ffffff;
    --line: #e1e8f3;
    --ink: #0f1a2b;
    --ink-2: #33415a;
    --mute: #64748b;
    --navy: #101827;
    --navy-2: #1a2538;
    --navy-line: #243047;
    --blue: #1d78f2;
    --blue-d: #1462cf;
    --blue-soft: #e8f1fe;
    --green: #14a05f;
    --green-soft: #e2f6ea;
    --amber: #ee9b1a;
    --amber-soft: #fdf1dc;
    --red: #e04a52;
    --red-soft: #fde8e9;
    --violet: #6f5bd6;
    --radius: 12px;
    --font: 'Golos Text', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
    --side-w: clamp(280px, 19.5vw, 375px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(29, 120, 242, .45); outline-offset: 2px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ── кнопки ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 22px;
    border: 1px solid transparent; border-radius: 10px;
    font-weight: 600; font-size: 1rem; cursor: pointer;
    transition: background .15s, border-color .15s, transform .1s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: default; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-d); }
.btn-line { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: #c4d2e6; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #1b2740; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #eef3fb; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn-block { width: 100%; }

/* ══════════ ПУБЛИЧНАЯ ШАПКА ══════════ */
.bm-wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.bm-top {
    position: sticky; top: 0; z-index: 30;
    background: rgba(244, 247, 252, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.bm-top-in { display: flex; align-items: center; gap: 32px; height: 72px; }
.bm-logo { display: flex; align-items: center; gap: 12px; }
.bm-mark {
    width: 40px; height: 40px; border-radius: 10px; flex: none;
    background: var(--navy); color: #fff;
    display: grid; place-items: center;
    font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em;
    box-shadow: inset 0 0 0 2px rgba(29, 120, 242, .9);
}
.bm-logo b { display: block; font-size: 1.05rem; font-weight: 700; line-height: 1.15; }
.bm-logo small { display: block; color: var(--mute); font-size: .78rem; font-weight: 500; line-height: 1.2; }
.bm-nav { display: flex; gap: 32px; margin-inline: auto; }
.bm-nav a { font-weight: 600; font-size: .95rem; color: var(--ink-2); padding: 6px 0; border-bottom: 2px solid transparent; }
.bm-nav a:hover, .bm-nav a.on { color: var(--ink); border-color: var(--blue); }

/* ══════════ ГЕРОЙ ══════════ */
.bm-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #eef4fd 0%, var(--bg) 100%); }
.bm-hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; min-height: 720px; padding: 72px 0 96px; }
.bm-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.bm-eyebrow i { width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(20, 160, 95, .18); }
.bm-h1 { font-size: clamp(3rem, 8.4vw, 5.9rem); line-height: 1; font-weight: 800; letter-spacing: -.035em; margin: 22px 0 26px; }
.bm-lede { font-size: clamp(1.1rem, 2vw, 1.5rem); line-height: 1.5; font-weight: 600; color: var(--ink-2); max-width: 30ch; max-width: 34em; }
.bm-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.bm-cta .btn { min-height: 54px; padding: 0 26px; }
.bm-checks { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 26px; font-weight: 700; font-size: .9rem; color: var(--ink-2); }
.bm-checks span::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--green); margin-right: 8px; }

/* иллюстрация героя */
.bm-scene { position: relative; height: 470px; }
.bm-chip {
    position: absolute; display: flex; align-items: center; gap: 10px;
    padding: 14px 18px; background: #fff; border-radius: 16px;
    box-shadow: 0 10px 30px rgba(31, 60, 110, .08);
}
.bm-chip i { width: 22px; height: 22px; border-radius: 50%; display: block; }
.bm-chip u { width: 34px; height: 12px; border-radius: 6px; background: #e3e9f3; }
.bm-chip.a { left: 4%; top: 6%; } .bm-chip.a i { background: #9fc4fa; }
.bm-chip.b { left: 44%; top: 0; } .bm-chip.b i { background: #a5dfc0; }
.bm-chip.c { right: 4%; top: 12%; } .bm-chip.c i { background: #f3d59a; }
.bm-line { position: absolute; height: 5px; background: #cfe0f8; border-radius: 3px; transform-origin: left center; }
.bm-line.l1 { left: 22%; top: 15%; width: 26%; transform: rotate(-14deg); }
.bm-line.l2 { left: 58%; top: 12%; width: 22%; transform: rotate(18deg); }
.bm-ghost { position: absolute; left: 0; top: 26%; width: 68%; height: 44%; background: rgba(255, 255, 255, .8); border-radius: 22px; padding: 26px; display: grid; gap: 14px; align-content: start; }
.bm-ghost p { display: flex; align-items: center; gap: 12px; }
.bm-ghost p i { width: 16px; height: 16px; border-radius: 50%; background: #cfe0f8; }
.bm-ghost p u { height: 14px; border-radius: 7px; background: #e6ecf6; flex: 1; }
.bm-ghost p:nth-child(2) i { background: #c9ecd9; }
.bm-card-blue {
    position: absolute; right: 2%; top: 30%; width: 50%; padding: 26px 26px 24px;
    border-radius: 22px; background: #b3bdcb; color: #fff;
}
.bm-card-blue b { font-size: 1.5rem; font-weight: 800; display: block; margin-bottom: 18px; }
.bm-card-blue p { height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .35); margin-bottom: 12px; }
.bm-card-blue p:nth-of-type(2) { width: 74%; }
.bm-card-blue div { display: flex; gap: 12px; margin-top: 22px; }
.bm-card-blue div u { height: 26px; border-radius: 13px; flex: 1; background: #b9d3fb; }
.bm-card-blue div u + u { background: #b9ead0; }
.bm-live {
    position: absolute; right: 0; bottom: 0; width: min(430px, 92%);
    background: var(--navy); color: #d8e1f0; padding: 22px 24px 22px; border-radius: 16px;
    box-shadow: 0 24px 50px rgba(16, 24, 39, .28);
}
.bm-live-h { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: #fff; font-size: .95rem; }
.bm-live-h em { font-style: normal; color: #59e0a1; font-size: .85rem; }
.bm-track { position: relative; display: flex; justify-content: space-between; margin: 26px 0 20px; }
.bm-track::before { content: ''; position: absolute; left: 10px; right: 10px; top: 50%; height: 2px; background: #33415c; transform: translateY(-50%); }
.bm-track i { position: relative; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 5px solid var(--blue); }
.bm-track i:nth-child(2) { border-color: var(--green); }
.bm-track i:nth-child(3) { border-color: var(--amber); }
.bm-live p { font-size: .9rem; line-height: 1.5; }

/* полоса цифр под героем */
.bm-strip { background: #fff; border-block: 1px solid var(--line); }
.bm-strip-in { display: grid; grid-template-columns: repeat(3, 1fr); }
.bm-strip-in div { padding: 34px 40px; border-left: 1px solid var(--line); }
.bm-strip-in div:last-child { border-right: 1px solid var(--line); }
.bm-strip-in b { display: block; font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; }
.bm-strip-in span { color: var(--mute); font-size: .95rem; }

/* ══════════ СЕКЦИИ ══════════ */
.bm-sec { padding: 104px 0; }
.bm-sec-h { max-width: 640px; margin-bottom: 48px; }
.bm-h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.08; font-weight: 800; letter-spacing: -.028em; }
.bm-sub { margin-top: 16px; color: var(--mute); font-size: 1.1rem; }

.bm-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.bm-feat { padding: 34px 32px 38px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bm-feat:nth-child(3n) { border-right: 0; }
.bm-feat:nth-last-child(-n+3) { border-bottom: 0; }
.bm-ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-size: 1.1rem; background: var(--blue-soft); color: var(--blue); margin-bottom: 20px; }
.bm-ico.g { background: var(--green-soft); color: var(--green); }
.bm-ico.a { background: var(--amber-soft); color: var(--amber); }
.bm-ico.v { background: #ece9fb; color: var(--violet); }
.bm-ico.r { background: var(--red-soft); color: var(--red); }
.bm-feat h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.bm-feat p { color: var(--mute); font-size: .97rem; }
.bm-feat p a { color: var(--blue); font-weight: 600; }

/* тёмная секция с макетом панели */
.bm-dark { background: var(--navy); color: #fff; padding: 110px 0; }
.bm-dark-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.bm-dark .k { color: #5aa2ff; font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.bm-dark h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.06; font-weight: 800; letter-spacing: -.03em; margin: 18px 0 22px; }
.bm-dark p { color: #a9b6cc; font-size: 1.15rem; line-height: 1.65; max-width: 30em; }
.bm-dark .btn { margin-top: 34px; min-height: 54px; }

.bm-mock { display: grid; grid-template-columns: 188px 1fr; border-radius: 14px; overflow: hidden; border: 1px solid var(--navy-line); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); background: #f4f7fc; color: var(--ink); }
.bm-mock-side { background: var(--navy-2); padding: 22px 14px; }
.bm-mock-side .bm-mark { width: 66px; height: 48px; font-size: 1.05rem; background: var(--blue); box-shadow: none; margin: 0 0 24px 2px; letter-spacing: 0; }
.bm-mock-side span { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 8px; color: #a9b6cc; font-weight: 600; font-size: .85rem; }
.bm-mock-side span.on { background: #26334b; color: #fff; }
.bm-mock-main { padding: 28px 30px 24px; }
.bm-mock-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.bm-mock-head small { color: var(--mute); font-weight: 600; font-size: .8rem; }
.bm-mock-head h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .8rem; background: var(--green-soft); color: #0e7a47; white-space: nowrap; }
.pill.bad { background: var(--red-soft); color: #b62b33; }
.pill.mute { background: #eaf0f8; color: var(--ink-2); }
.pill.blue { background: var(--blue-soft); color: var(--blue-d); }
.bm-mock-kpi { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); margin-bottom: 8px; }
.bm-mock-kpi div { padding: 18px 18px 16px; border-right: 1px solid var(--line); }
.bm-mock-kpi div:last-child { border-right: 0; }
.bm-mock-kpi div:first-child { padding-left: 0; }
.bm-mock-kpi b { display: block; font-size: 1.7rem; font-weight: 800; line-height: 1.2; }
.bm-mock-kpi span { color: var(--mute); font-size: .8rem; font-weight: 600; }
.bm-mock-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.bm-mock-table th { text-align: left; color: var(--mute); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; padding: 14px 0 10px; font-weight: 700; }
.bm-mock-table td { padding: 15px 0; border-top: 1px solid var(--line); color: var(--mute); }
.bm-mock-table td:first-child { color: var(--ink); font-weight: 700; }
.bm-mock-table td:last-child { color: var(--green); font-weight: 700; }

/* шаги */
.bm-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.bm-step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 30px 34px; counter-increment: s; }
.bm-step::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 22px; }
.bm-step h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.bm-step p { color: var(--mute); }

/* лесенка ролей */
.bm-ladder { display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 10px; }
.bm-rung { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 14px 16px; }
.bm-rung b { display: block; font-size: 1.4rem; font-weight: 800; color: var(--blue); }
.bm-rung span { display: block; font-weight: 600; font-size: .85rem; color: var(--ink-2); line-height: 1.3; margin-top: 4px; }
.bm-rung:nth-child(1) { min-height: 104px; } .bm-rung:nth-child(2) { min-height: 118px; } .bm-rung:nth-child(3) { min-height: 132px; }
.bm-rung:nth-child(4) { min-height: 146px; } .bm-rung:nth-child(5) { min-height: 160px; } .bm-rung:nth-child(6) { min-height: 174px; }
.bm-rung:nth-child(7) { min-height: 188px; background: var(--navy); border-color: var(--navy); }
.bm-rung:nth-child(7) span { color: #d8e1f0; } .bm-rung:nth-child(7) b { color: #5aa2ff; }

/* финальный призыв */
.bm-final { background: var(--blue); color: #fff; border-radius: 20px; padding: 64px clamp(28px, 6vw, 80px); display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.bm-final h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; max-width: 16em; }
.bm-final p { margin-top: 12px; opacity: .9; max-width: 34em; }
.bm-final .bm-cta { margin: 0; }

.bm-foot { border-top: 1px solid var(--line); margin-top: 104px; padding: 36px 0; color: var(--mute); font-size: .92rem; }
.bm-foot-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.bm-foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.bm-foot a:hover { color: var(--ink); }

/* ══════════ ОБОЛОЧКА С БОКОВОЙ ПАНЕЛЬЮ (вход и кабинет) ══════════ */
.bm-app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.bm-side {
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
    background: var(--navy); color: #fff;
    padding: 34px 23px 28px; display: flex; flex-direction: column; gap: 22px;
}
.bm-side .bm-logo small { color: #a9b6cc; }
.bm-side hr { border: 0; border-top: 1px solid var(--navy-line); margin: 0; width: 100%; }
.bm-me { display: flex; gap: 14px; align-items: center; }
.bm-me img, .bm-me > span { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; background: var(--blue); display: grid; place-items: center; font-weight: 800; }
.bm-me b { display: block; font-size: 1.15rem; font-weight: 800; line-height: 1.25; }
.bm-me small { color: #a9b6cc; font-size: .9rem; }
.bm-side-label { color: #7f8ea8; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.bm-chatlist { display: grid; gap: 8px; }
.bm-chatlink { display: block; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--navy-line); background: var(--navy-2); }
.bm-chatlink:hover { border-color: #3a4a68; }
.bm-chatlink.on { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: #16233b; }
.bm-chatlink b { display: block; font-weight: 700; font-size: .98rem; line-height: 1.3; overflow-wrap: anywhere; }
.bm-chatlink small { color: #a9b6cc; font-size: .85rem; }
.bm-side-foot { margin-top: auto; display: grid; gap: 10px; }
.bm-side-foot .btn { justify-content: center; min-height: 46px; font-size: .95rem; }
.btn-side { background: var(--navy-2); color: #fff; border: 1px solid var(--navy-line); }
.btn-side:hover { background: #22304a; }
.btn-side.blue { background: #16305a; border-color: #244a86; }
.btn-side.blue:hover { background: #1b3b6e; }

.bm-main { padding: 40px 56px 64px; min-width: 0; }
.bm-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; }
.bm-title h1 { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; overflow-wrap: anywhere; }
.bm-title p { color: var(--mute); font-size: 1.1rem; margin-top: 6px; }
.bm-title .pill { padding: 12px 22px; font-size: 1.05rem; }

.bm-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; margin-bottom: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.tab { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid transparent; border-radius: 8px; background: none; font-weight: 700; font-size: .95rem; color: var(--ink-2); cursor: pointer; }
.tab:hover { background: #f1f5fb; }
.tab.active { background: var(--blue-soft); border-color: #bcd6fa; color: var(--blue-d); }
.panel { display: none; }
.panel.active { display: block; }

.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 24px; }
.box > h2 { font-size: 1.4rem; font-weight: 800; letter-spacing: -.015em; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.box > h2 .count { margin-left: auto; font-size: .95rem; padding: 6px 14px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-d); }

.bm-access { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.bm-access .bm-ico { width: 60px; height: 60px; border-radius: 14px; font-size: 1.5rem; margin: 0; }
.bm-access-t { flex: 1; min-width: 200px; }
.bm-access-t small { display: block; color: var(--mute); font-weight: 700; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; }
.bm-access-t b { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1.25; }
.bm-access-t span { color: var(--mute); font-size: .95rem; }
.bm-access-b { display: grid; gap: 10px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 24px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 14px; }
.kpi > i { font-size: 1.2rem; color: var(--blue); width: 22px; }
.kpi.g > i { color: var(--green); } .kpi.a > i { color: var(--amber); } .kpi.r > i { color: var(--red); } .kpi.v > i { color: var(--violet); }
.kpi > span { font-weight: 700; color: var(--ink-2); font-size: .95rem; line-height: 1.3; min-height: 2.6em; display: flex; align-items: flex-end; }
.kpi b { font-size: 2.3rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.kpi b small { font-size: 1.1rem; color: var(--mute); font-weight: 600; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.two .box { margin-bottom: 0; }
.info-row { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-top: 1px solid var(--line); }
.info-row:first-child { border-top: 0; padding-top: 0; }
.info-row dt { color: var(--mute); font-weight: 600; }
.info-row dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.info-row dd.mono, .mono { font-family: var(--mono); font-size: .92em; }
dl { margin: 0; }

.bar-row { margin-bottom: 16px; }
.bar-row:last-child { margin-bottom: 0; }
.bar-top { display: flex; justify-content: space-between; font-weight: 600; font-size: .93rem; margin-bottom: 7px; color: var(--ink-2); }
.bar-top b { color: var(--ink); }
.bar { height: 8px; border-radius: 4px; background: #e9eff8; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--blue); border-radius: 4px; }

.top-list { margin: 0; padding: 0; list-style: none; counter-reset: t; }
.top-list li { counter-increment: t; display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); font-weight: 600; }
.top-list li:first-child { border-top: 0; padding-top: 0; }
.top-list li::before { content: counter(t); width: 28px; height: 28px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-d); display: grid; place-items: center; font-size: .85rem; font-weight: 800; }
.top-list li span { flex: 1; }
.muted { color: var(--mute); }

/* карточки бесед (список) */
.chat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.chat-card { display: flex; flex-direction: column; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: border-color .15s; }
.chat-card:hover { border-color: var(--blue); }
.chat-card-top { display: flex; justify-content: space-between; align-items: center; }
.chat-ava { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.chat-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat-ava.big { width: 44px; height: 44px; border-radius: 10px; font-size: 1.1rem; }
.chat-card h3 { font-size: 1.15rem; font-weight: 700; overflow-wrap: anywhere; }
.chat-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--mute); font-size: .9rem; }
.chat-meta .warn { color: var(--red); font-weight: 600; }
.chat-open { margin-top: auto; color: var(--blue); font-weight: 700; font-size: .95rem; }

.empty { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 64px 24px; }
.empty .bm-ico { width: 64px; height: 64px; font-size: 1.6rem; margin: 0 auto 22px; border-radius: 16px; }
.empty h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 10px; }
.empty p { color: var(--mute); margin-bottom: 26px; }

/* параметры */
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; border-top: 1px solid var(--line); cursor: pointer; }
.settings > :first-child { border-top: 0; padding-top: 0; }
.toggle-text b { display: block; font-weight: 700; }
.toggle-text small { color: var(--mute); font-size: .9rem; }
.switch { position: relative; flex: none; width: 48px; height: 28px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 14px; background: #cbd5e4; transition: background .15s; }
.switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch input:checked + i { background: var(--blue); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 3px solid rgba(29, 120, 242, .45); outline-offset: 2px; }
.field { padding: 16px 0; border-top: 1px solid var(--line); }
.field > label { display: block; font-weight: 700; margin-bottom: 10px; }
.field > label small { display: block; color: var(--mute); font-weight: 500; font-size: .88rem; margin-top: 2px; }
.field input, .field textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.field input:focus, .field textarea:focus { border-color: var(--blue); outline: 3px solid rgba(29, 120, 242, .18); }
.actions { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 60; max-width: min(420px, calc(100% - 48px)); padding: 14px 20px; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 600; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: none; }
.toast.err { background: #b62b33; }

.foot-note { margin-top: 40px; color: var(--mute); font-size: .9rem; }
.foot-note a { color: var(--blue); }

/* ══════════ ВХОД ══════════ */
.bm-login-side h2 { font-size: clamp(1.8rem, 2.3vw, 2.3rem); line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.bm-login-side > p { color: #a9b6cc; }
.bm-login-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bm-login-side li { display: flex; gap: 12px; font-weight: 600; font-size: .95rem; }
.bm-login-side li i { color: #3fd08d; margin-top: 4px; }
.bm-login-stage { display: grid; place-items: start center; padding: 112px 32px 48px; }
.bm-login-card { width: min(812px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 36px; box-shadow: 0 30px 60px rgba(31, 60, 110, .09); }
.bm-login-card .bm-ico { width: 70px; height: 70px; border-radius: 14px; font-size: 1.7rem; margin-bottom: 30px; }
.bm-login-card h1 { font-size: clamp(1.9rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.025em; }
.bm-login-card .lead { color: var(--mute); font-size: 1.1rem; margin: 6px 0 26px; }
.bm-vk { display: flex; align-items: center; gap: 18px; padding: 18px; border: 1px solid #cfe0f8; background: #f0f6ff; border-radius: 10px; flex-wrap: wrap; }
.bm-vk-ico { width: 60px; height: 60px; border-radius: 10px; background: #fff; display: grid; place-items: center; color: var(--blue); flex: none; }
.bm-vk-t { flex: 1; min-width: 220px; }
.bm-vk-t b { display: block; font-size: 1.15rem; font-weight: 800; }
.bm-vk-t span { color: var(--mute); font-size: .95rem; }
.bm-vk .btn { min-height: 50px; }
.bm-vk .btn.loading { opacity: .7; pointer-events: none; }
.status { min-height: 1.4em; margin-top: 18px; font-weight: 600; color: var(--mute); }
.status.error { color: var(--red); background: var(--red-soft); padding: 12px 16px; border-radius: 10px; }
.note { margin-top: 18px; color: var(--mute); font-size: .9rem; }
.note a { color: var(--blue); font-weight: 600; }
.bm-back { display: inline-flex; gap: 8px; align-items: center; color: var(--mute); font-weight: 600; margin-bottom: 26px; }
.bm-back:hover { color: var(--ink); }

/* ══════════ АДАПТИВ ══════════ */
@media (max-width: 1100px) {
    .bm-hero-in { grid-template-columns: 1fr; min-height: 0; padding: 56px 0 72px; }
    .bm-scene { height: 430px; max-width: 620px; }
    .bm-dark-in { grid-template-columns: 1fr; gap: 44px; }
    .bm-feats { grid-template-columns: repeat(2, 1fr); }
    .bm-feat:nth-child(3n) { border-right: 1px solid var(--line); }
    .bm-feat:nth-child(2n) { border-right: 0; }
    .bm-feat:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
    .bm-feat:nth-last-child(-n+2) { border-bottom: 0; }
    .bm-ladder { grid-template-columns: repeat(4, 1fr); align-items: stretch; }
    .bm-rung, .bm-rung:nth-child(n) { min-height: 0; }
    .two { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .bm-app { grid-template-columns: 1fr; }
    .bm-side { position: static; height: auto; padding: 22px 20px; }
    .bm-side-foot { margin-top: 0; grid-template-columns: 1fr 1fr; }
    .bm-main { padding: 28px 20px 56px; }
    .bm-login-stage { padding: 32px 20px 48px; }
    .bm-login-side ul, .bm-login-side > p { display: none; }
    .bm-nav { position: absolute; left: 0; right: 0; top: 72px; margin: 0; padding: 0 24px; gap: 24px; overflow-x: auto; background: var(--bg); border-bottom: 1px solid var(--line); }
    .bm-nav a { padding: 12px 0; white-space: nowrap; }
    .bm-top { position: relative; }
    .bm-top-in { margin-left: auto; }
    .bm-top-in .btn { margin-left: auto; }
    .bm-hero { padding-top: 50px; }
}
@media (max-width: 720px) {
    .bm-wrap { width: min(1180px, 100% - 32px); }
    .bm-strip-in, .bm-steps, .bm-feats { grid-template-columns: 1fr; }
    .bm-strip-in div { border-left: 0; border-right: 0 !important; border-bottom: 1px solid var(--line); padding: 24px 4px; }
    .bm-strip-in div:last-child { border-bottom: 0; }
    .bm-feat, .bm-feat:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--line); }
    .bm-feat:last-child { border-bottom: 0; }
    .bm-sec { padding: 72px 0; }
    .bm-dark { padding: 72px 0; }
    .bm-mock { grid-template-columns: 1fr; }
    .bm-mock-side { display: none; }
    .bm-mock-main { padding: 20px; }
    .bm-ladder { grid-template-columns: repeat(2, 1fr); }
    .bm-scene { height: 400px; }
    .bm-card-blue { width: 58%; }
    .bm-final { padding: 40px 24px; }
    .bm-access-b { width: 100%; }
    .kpis { grid-template-columns: repeat(2, 1fr); }
    .box { padding: 20px 18px; }
    .bm-vk .btn { width: 100%; }
    .bm-login-card { padding: 24px 20px; }
}

/* ══════════ КАБИНЕТ: участники, роли, уведомления ══════════ */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #eaf0f8; color: var(--ink-2); white-space: nowrap; }
.badge.blue { background: var(--blue-soft); color: var(--blue-d); }
.badge.owner { background: var(--amber-soft); color: #a86a05; }
.badge.green { background: var(--green-soft); color: #0e7a47; }
.badge.red { background: var(--red-soft); color: #b62b33; }

.ava { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; background: var(--blue-soft); }
.ava-t { display: grid; place-items: center; color: var(--blue-d); font-weight: 800; }
.mem-list { display: grid; }
.mem { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.mem:first-child { border-top: 0; padding-top: 0; }
.mem-t { flex: 1; min-width: 0; }
.mem-t a, .mem-t b { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mem-t a:hover { color: var(--blue); }
.mem-t small { color: var(--mute); font-size: .85rem; }
.mem .badge + .badge { margin-left: -4px; }
.mem-compact .mem { padding: 10px 0; }

.mem-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.mem-search { position: relative; flex: 1 1 260px; }
.mem-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--mute); }
.mem-search input { width: 100%; padding: 12px 14px 12px 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.mem-search input:focus { border-color: var(--blue); outline: 3px solid rgba(29, 120, 242, .18); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--ink-2); }
.chip:hover { border-color: #c4d2e6; }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip small { opacity: .7; margin-left: 4px; }

.notice { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 10px; flex-wrap: wrap; }
.notice > i { font-size: 1.4rem; }
.notice > div { flex: 1; min-width: 220px; }
.notice b { display: block; }
.notice span { color: var(--ink-2); font-size: .95rem; }
.notice.warn { background: var(--amber-soft); border: 1px solid #f3d9a2; }
.notice.warn > i { color: var(--amber); }

.role-form { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.role-form input { flex: 1 1 200px; }
.role-form input, .role-form select { padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; min-height: 40px; }
.role-form input:focus, .role-form select:focus { border-color: var(--blue); outline: 3px solid rgba(29, 120, 242, .18); }
.role-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.role-row img, .avatar-fallback { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar-fallback { display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-d); font-weight: 800; }
.role-info { flex: 1; min-width: 0; }
.role-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-sub { color: var(--mute); font-size: .85rem; }
.role-sub a:hover { color: var(--blue); }
.icon-btn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--mute); cursor: pointer; }
.icon-btn:hover { color: var(--red); border-color: #f0b8bb; background: var(--red-soft); }
.list-empty { color: var(--mute); padding: 8px 0; }
.audit-item { padding: 12px 0; border-top: 1px solid var(--line); }
.audit-item:first-child { border-top: 0; padding-top: 0; }
.audit-time { color: var(--mute); font-size: .8rem; font-weight: 600; }
.audit-text { font-weight: 600; overflow-wrap: anywhere; }
