/* Bil Counseling Aktobe. Цвета взяты из брендбука Білім-Инновация. */
:root {
  --navy: #121234;
  --peri: #6D8DE4;
  --sand: #CBB38F;
  --mist: #F4F4F4;

  --bg: #FFFFFF;
  --bg-2: #F4F4F4;
  --surface: #FFFFFF;
  --ink: #121234;
  --muted: #4A4C68;
  --line: #DADBE3;
  --line-2: #ECECF1;
  --primary: #121234;
  --on-primary: #FFFFFF;
  --accent: #CBB38F;
  --on-accent: #121234;
  --peri-soft: #E3E9FA;
  --sand-soft: #F3ECE1;
  --link: #2F4FB5;
  --warn: #8A4B00;
  --warn-bg: #FBEBD2;
  --danger: #A12A2A;
  --danger-bg: #FBE4E4;
  --ok: #1F6B45;
  --ok-bg: #DDF1E6;
  --focus: #2F4FB5;
  --radius: 8px;
  --font: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C0C24; --bg-2: #101030; --surface: #16163C; --ink: #F0F0F6; --muted: #B4B6CC; --line: #2E2F5A;
    --line-2: #23244A; --primary: #CBB38F; --on-primary: #121234; --accent: #CBB38F; --on-accent: #121234;
    --peri-soft: #222A5E; --sand-soft: #3A3122; --link: #AFC0F7; --warn: #F2C27A; --warn-bg: #3D2C12;
    --danger: #F5A3A3; --danger-bg: #431C22; --ok: #8FD9B0; --ok-bg: #173A2A; --focus: #AFC0F7; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C0C24; --bg-2: #101030; --surface: #16163C; --ink: #F0F0F6; --muted: #B4B6CC; --line: #2E2F5A;
  --line-2: #23244A; --primary: #CBB38F; --on-primary: #121234; --accent: #CBB38F; --on-accent: #121234;
  --peri-soft: #222A5E; --sand-soft: #3A3122; --link: #AFC0F7; --warn: #F2C27A; --warn-bg: #3D2C12;
  --danger: #F5A3A3; --danger-bg: #431C22; --ok: #8FD9B0; --ok-bg: #173A2A; --focus: #AFC0F7; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); }
a { color: var(--link); }
a:hover { color: var(--ink); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.spread { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
[hidden] { display: none !important; }

/* Кнопки и поля */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--primary); border-radius: var(--radius); background: var(--primary); color: var(--on-primary);
  font: 600 15px var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { filter: brightness(1.12); color: var(--on-primary); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); filter: none; }
.btn.accent { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: default; filter: none; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius);
  border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font: inherit;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }

label.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
input[type="text"], input[type="password"], input[type="email"], input[type="date"], input[type="time"], input[type="tel"], input[type="number"], input[type="search"], select, textarea {
  width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); font: 400 16px var(--font);
}
textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
input:disabled, select:disabled, textarea:disabled { background: var(--bg-2); color: var(--muted); }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--peri); flex: none; }
.check { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 10px 0; cursor: pointer; font-size: 15px; }
.check input { margin-top: 1px; }

/* Шапка */
.top { background: var(--bg); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 18px; }
.brand img { width: 44px; height: 44px; display: block; }
.brand:hover { color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 0; }
.nav a:hover { text-decoration: underline; }
.tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.langs { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.langs button { min-height: 44px; padding: 0 11px; border: 0; background: transparent; color: var(--ink); font: 600 13px var(--font); cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }

.demo-bar { background: var(--sand-soft); color: var(--ink); text-align: center; font-size: 14px; font-weight: 600; padding: 8px 16px; }
.mark { display: inline-flex; width: 20px; height: 20px; flex: none; }

/* Главная */
.hero { background: var(--navy); color: #FFFFFF; overflow: hidden; display: flex; flex-wrap: wrap-reverse; align-items: flex-start; }
.hero .art { flex: 1 1 380px; max-width: 600px; min-width: 0; }
.hero .art img { display: block; width: 100%; height: auto; }
.hero .text { flex: 1 1 460px; min-width: 0; align-self: center; padding: 56px 20px; }
.hero .text > div { max-width: 640px; }
.hero .kicker { display: flex; align-items: center; gap: 10px; color: var(--sand); font-weight: 600; font-size: 15px; margin-bottom: 16px; }
.hero h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.06; color: #FFFFFF; }
.hero p.lead { margin-top: 20px; font-size: 19px; color: #E4E6F2; }
.hero .btn.accent { color: var(--navy); }
.hero .btn.ghost { color: #FFFFFF; border-color: #FFFFFF; }
.section { padding: 64px 0; }
.section.alt { background: var(--bg-2); }
.section h2 { font-size: clamp(26px, 3.5vw, 34px); margin-bottom: 24px; }
.steps { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.step { flex: 1 1 220px; border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; color: var(--navy); }
.step .num { font-size: 48px; font-weight: 800; line-height: 1; }
.step h3 { margin: 10px 0 4px; }
.step p { font-size: 15px; }
.step.s8 { background: #E3E9FA; min-height: 220px; }
.step.s9 { background: #B3C3F0; min-height: 260px; }
.step.s10 { background: #6D8DE4; min-height: 300px; }
.step.s11 { background: #121234; color: #FFFFFF; min-height: 340px; border: 1px solid var(--line); }
.feature { border-top: 3px solid var(--ink); padding-top: 14px; }
.feature p { color: var(--muted); margin-top: 6px; }
.results { background: var(--sand); color: var(--navy); }
.results .num { font-size: 44px; font-weight: 800; }
.card-link { display: block; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; background: var(--surface); }
.card-link:hover { border-color: var(--ink); color: var(--ink); }
.card-link p { color: var(--muted); margin-top: 6px; }
.foot { background: var(--navy); color: #FFFFFF; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.foot a { color: var(--sand); }
.foot img { width: 40px; height: 40px; }

/* Карточки и плашки */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.card.dark { background: var(--navy); color: #FFFFFF; border-color: var(--navy); }
.card.dark .muted { color: #C9CBE0; }
.card.peri { background: var(--peri-soft); border-color: transparent; }
.card.sand { background: var(--sand-soft); border-color: transparent; }
.card h2 { font-size: 20px; margin-bottom: 12px; }
.tile .big { font-size: 34px; font-weight: 800; line-height: 1.1; }
.tile .muted { font-size: 15px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--bg-2); color: var(--ink); white-space: nowrap; }
.badge.open { background: var(--ok-bg); color: var(--ok); }
.badge.soon { background: var(--peri-soft); color: var(--ink); }
.badge.closed { background: var(--bg-2); color: var(--muted); }
.badge.waiting { background: var(--sand-soft); color: var(--ink); }
.badge.unknown { background: var(--bg-2); color: var(--muted); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.danger { background: var(--danger-bg); color: var(--danger); }
.badge.stage { background: var(--peri-soft); color: var(--ink); }
.notice { padding: 12px 14px; border-radius: var(--radius); background: var(--sand-soft); font-size: 15px; }
.notice.error { background: var(--danger-bg); color: var(--danger); }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.progress { height: 10px; border-radius: 5px; background: var(--peri-soft); overflow: hidden; }
.progress > div { height: 100%; background: var(--peri); }

/* Таблицы */
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 10px 12px; border-top: 1px solid var(--line-2); vertical-align: middle; }
table.data tbody tr:first-child td { border-top: 0; }
table.data tr.clickable { cursor: pointer; }
table.data tr.clickable:hover td { background: var(--bg-2); }
table.data a.rowlink { color: var(--ink); font-weight: 600; text-decoration: none; }
table.data a.rowlink:hover { text-decoration: underline; }
.overdue { color: var(--danger); font-weight: 600; }

/* Редактор списков: на узком экране строки становятся карточками */
.list-editor table { width: 100%; border-collapse: collapse; }
.list-editor th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 6px 6px; }
.list-editor td { padding: 6px; vertical-align: top; }
.list-editor td input, .list-editor td select { min-height: 40px; font-size: 15px; padding: 6px 8px; }
.list-editor tr.done input[type="text"] { text-decoration: line-through; color: var(--muted); }
.list-editor .empty { padding: 16px 6px; color: var(--muted); }
@media (max-width: 760px) {
  .list-editor thead { display: none; }
  .list-editor table, .list-editor tbody, .list-editor tr, .list-editor td { display: block; width: 100%; }
  .list-editor tr { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; margin-bottom: 10px; }
  .list-editor td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
  .list-editor td.actions::before { content: none; }
  .list-editor td { padding: 4px 2px; }
  .list-editor td.cell-check { display: flex; align-items: center; gap: 10px; flex-direction: row-reverse; justify-content: flex-end; }
  .list-editor td.cell-check::before { margin: 0; font-size: 15px; color: var(--ink); }
  .list-editor td.actions { text-align: right; }
}

/* Вкладки */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.tabs button, .tabs a {
  min-height: 44px; padding: 0 14px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted);
  font: 600 15px var(--font); cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center;
}
.tabs [aria-selected="true"] { color: var(--ink); border-bottom-color: var(--peri); }

/* Оболочка трекера и кабинета */
.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { flex: 1 1 240px; max-width: 100%; background: var(--navy); color: #FFFFFF; padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; }
.side .brand { color: #FFFFFF; padding: 4px 8px 14px; font-size: 16px; }
.side .brand img { width: 40px; height: 40px; }
.side a.item {
  min-height: 44px; display: flex; align-items: center; padding: 0 12px; border-radius: var(--radius); color: #FFFFFF;
  text-decoration: none; font-weight: 500; font-size: 15px;
}
.side a.item:hover { background: rgba(255, 255, 255, .08); }
.side a.item[aria-current="page"] { background: var(--sand); color: var(--navy); font-weight: 700; }
.side .who { margin-top: auto; padding: 14px 8px 0; font-size: 14px; color: #C9CBE0; }
.side .who-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.side .langs { border-color: rgba(255, 255, 255, .35); }
.side .langs button { color: #FFFFFF; }
.side .langs button[aria-pressed="true"] { background: var(--sand); color: var(--navy); }
.side .icon-btn, .side .side-btn { color: #FFFFFF; border-color: rgba(255, 255, 255, .35); background: transparent; }
.side .icon-btn:hover, .side .side-btn:hover { border-color: #FFFFFF; color: #FFFFFF; }
.side-btn svg { width: 16px; height: 16px; }
.list-editor tr.overdue-row input[type="date"] { color: var(--danger); font-weight: 600; }
.main { flex: 999 1 560px; min-width: 0; padding: 24px clamp(16px, 3vw, 40px) 64px; background: var(--bg-2); }
.main-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.save-state { font-size: 14px; color: var(--muted); min-height: 20px; }
.save-state.error { color: var(--danger); font-weight: 600; }
.readonly-bar { position: sticky; bottom: 0; background: var(--sand); color: var(--navy); text-align: center; padding: 8px; font-weight: 600; font-size: 14px; }
@media (max-width: 860px) {
  .side { flex: 1 1 100%; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; align-items: center; padding: 10px 12px; gap: 6px; }
  .side .brand { padding: 0 8px 0 0; }
  .side .brand span { display: none; }
  .side a.item { flex: none; }
  .side .who { margin: 0 0 0 8px; padding: 0; flex: none; }
  .side .who-name { display: none; }
  .side .who-tools { margin: 0; flex-wrap: nowrap; }
  .main { padding-top: 18px; }
}

/* Карточка ученика */
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form-grid .wide { grid-column: 1 / -1; }
.changed-by-student { font-size: 12px; font-weight: 600; color: var(--warn); margin-left: 6px; }
.hidden-note { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 6px; }
.checklist h3 { font-size: 15px; margin: 14px 0 2px; }
.meeting { border-top: 1px solid var(--line-2); padding: 12px 0; }
.meeting:first-child { border-top: 0; }

/* Каталог программ */
.filters { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--ink);
  font: 500 15px var(--font); cursor: pointer;
}
.pill[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.seg { display: inline-flex; border: 1px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.seg button { min-height: 44px; padding: 0 18px; border: 0; background: var(--surface); color: var(--ink); font: 600 15px var(--font); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.cal-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head h2 { min-width: 180px; text-align: center; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.cal { min-width: 720px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal .dow { padding: 4px 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.cal .day { min-height: 108px; padding: 6px; border-radius: 6px; background: var(--bg-2); display: flex; flex-direction: column; gap: 4px; }
.cal .day.blank { background: transparent; }
.cal .day.today { outline: 2px solid var(--ink); outline-offset: -2px; }
.cal .day .d { font-size: 13px; font-weight: 600; color: var(--muted); }
.ev { display: block; width: 100%; text-align: left; padding: 3px 6px; border: 0; border-radius: 4px; font: 500 12px/1.25 var(--font); cursor: pointer; }
.ev.reg { background: #6D8DE4; color: #121234; }
.ev.dead { background: #121234; color: #FFFFFF; }
.ev.start { background: #CBB38F; color: #121234; }
:root[data-theme="dark"] .ev.dead { background: #F0F0F6; color: #121234; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ev.dead { background: #F0F0F6; color: #121234; } }
.prog { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.prog .info { flex: 3 1 320px; min-width: 0; }
.prog .meta { flex: 1 1 120px; }
.prog .meta .k { font-size: 13px; color: var(--muted); }
.prog .meta .v { font-size: 17px; font-weight: 700; }
.prog-detail dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 0 0; font-size: 15px; }
.prog-detail dt { color: var(--muted); }
.prog-detail dd { margin: 0; }

/* Диалоги и уведомления */
dialog { border: 1px solid var(--line); border-radius: 12px; padding: 22px; background: var(--surface); color: var(--ink); width: min(560px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(12, 12, 36, .55); }
dialog .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--navy); color: #FFFFFF; padding: 12px 18px; border-radius: var(--radius); z-index: 50; max-width: calc(100vw - 32px); font-size: 15px; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.toast.error { background: var(--danger); }
.secret { font: 600 18px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--bg-2); padding: 10px 14px; border-radius: var(--radius); user-select: all; word-break: break-all; }

/* Вход */
.auth { min-height: 100vh; display: flex; flex-wrap: wrap; background: var(--bg); }
.auth .art { flex: 1 1 360px; background: var(--navy); display: flex; align-items: flex-end; overflow: hidden; min-height: 220px; }
.auth .art img { width: 100%; max-width: 560px; display: block; }
.auth .panel { flex: 1 1 420px; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth form { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 16px; }

@media print {
  .side, .top, .tools, .btn, .tabs { display: none !important; }
  .main { padding: 0; background: #FFFFFF; }
}
.save-state:empty { display: none; }

/* Полосы на главной: страны выпускников */
.bar-row { display: grid; grid-template-columns: minmax(110px, 160px) 1fr 44px; gap: 12px; align-items: center; min-height: 34px; }
.bar-label { font-size: 15px; }
.bar-track { height: 12px; border-radius: 6px; background: var(--peri-soft); overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--peri); border-radius: 6px; }
.bar-value { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.compare-text .big-text { font-size: 20px; font-weight: 600; line-height: 1.4; }
.bar-row.cmp { grid-template-columns: minmax(120px, 170px) 1fr 52px; min-height: 46px; }
.bar-row.cmp .bar-label { display: flex; flex-direction: column; line-height: 1.25; }
.bar-year { font-size: 13px; color: var(--muted); }
.bar-row.ours { background: var(--sand-soft); border-radius: 6px; padding: 0 8px; margin: 2px -8px; }
.bar-row.ours .bar-label > span:first-child { font-weight: 700; }
.bar-row.ours .bar-fill { background: var(--sand); }
@media (max-width: 560px) { .bar-row.cmp { grid-template-columns: 116px 1fr 46px; gap: 8px; } .compare-text .big-text { font-size: 18px; } }
details.sources { margin-top: 10px; }
details.sources summary { cursor: pointer; color: var(--link); }
details.sources ul { margin: 8px 0 0; padding-left: 18px; }
details.sources li { padding: 2px 0; }
details.country { border-top: 1px solid var(--line-2); }
details.country summary { list-style: none; cursor: pointer; padding: 4px 0; }
details.country summary::-webkit-details-marker { display: none; }
details.country summary .bar-label::before { content: '▸'; display: inline-block; width: 16px; color: var(--muted); transition: transform .15s; }
details.country[open] summary .bar-label::before { transform: rotate(90deg); }
details.country ul { list-style: none; margin: 0 0 10px; padding: 0 0 0 16px; }
details.country li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 15px; color: var(--muted); }
details.country li b { color: var(--ink); }

/* Запись на встречи */
.slot-picker { display: flex; flex-direction: column; gap: 14px; }
.slot-day h3 { font-size: 15px; margin-bottom: 8px; color: var(--muted); }
.slot-times { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-btn { min-width: 76px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: 600 15px var(--font); cursor: pointer; font-variant-numeric: tabular-nums; }
.slot-btn:hover { border-color: var(--ink); }
.slot-btn[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.slot-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 6px 0 10px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-variant-numeric: tabular-nums; }
.slot-chip.pending { background: var(--warn-bg); border-color: transparent; }
.slot-chip.confirmed { background: var(--ok-bg); border-color: transparent; }
.slot-chip button { width: 28px; height: 28px; border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: 6px; font-size: 16px; }
.slot-chip button:hover { background: var(--bg-2); color: var(--danger); }
.booking-row { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line-2); }
.booking-row:first-of-type { border-top: 0; }
.booking-row .who { flex: 1 1 300px; min-width: 0; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.nav-badge { display: inline-flex; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 8px; border-radius: 11px; background: var(--peri); color: #121234; font-size: 12px; font-weight: 700; align-items: center; justify-content: center; }

/* Платформы, опрос, отчёт по встречам */
.plat-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.plat-tile { display: flex; flex-direction: column; gap: 6px; text-align: left; cursor: pointer; font: inherit; color: inherit; padding: 14px 16px; min-height: 96px; }
.plat-tile[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 14px var(--font); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--bg-2); border-radius: var(--radius); overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.help-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.help-list b { font-size: 18px; }
.fb-item { border-top: 1px solid var(--line-2); padding: 14px 0; }
.fb-item:first-child { border-top: 0; }
.fb-item.new { background: var(--sand-soft); margin: 0 -12px; padding: 14px 12px; border-radius: 6px; }
.method h2 { font-size: 20px; margin: 22px 0 8px; }
.method li { margin: 6px 0; }
.stage-strip { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.stage-strip li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: var(--radius); background: var(--bg-2); color: var(--muted); text-align: center; font-size: 13px; line-height: 1.2; }
.stage-strip li b { font-size: 17px; }
.stage-strip li.done { background: var(--peri-soft); color: var(--ink); }
.stage-strip li.now { background: var(--primary); color: var(--on-primary); }
.fact-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 18px; }
.fact { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; text-decoration: none; color: inherit; }
.fact b { font-size: 20px; overflow-wrap: anywhere; }
@media (max-width: 640px) { .stage-strip { grid-template-columns: repeat(3, 1fr); } }

/* Профтесты */
.test-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.test-num { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 10px; background: var(--peri-soft); font-size: 18px; }
.test-opts { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.test-opts.three { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.test-opt { display: flex; align-items: center; gap: 12px; text-align: left; font: inherit; color: inherit; cursor: pointer; min-height: 84px; padding: 16px; }
.test-opt:hover, .test-opt:focus-visible { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.test-key { flex: 0 0 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--bg-2); font-weight: 700; font-size: 14px; }
.test-code { font-size: 24px; letter-spacing: .08em; }
.test-top { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
