/* Unbounded — дисплейный шрифт для заголовков (.display, .l-h1, .l-h2 и т.д.),
   уже упоминается по всему landing.css/app.css, но файлы никогда не были
   подключены — рендерился обычный system-ui. Файлы лежат в static/fonts/. */
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/static/fonts/unbounded-500-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/static/fonts/unbounded-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/static/fonts/unbounded-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/static/fonts/unbounded-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/static/fonts/unbounded-700-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/static/fonts/unbounded-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/static/fonts/unbounded-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/static/fonts/unbounded-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Палитра: нейтраль с лёгким холодным уклоном + три акцента по ветвям тестов —
   фиолетовый Е-Кызмет, зелёный ОКК, синий QRT, как в реальных интерфейсах. */
:root {
  --ground: #F4F5F7;
  --raised: #FFFFFF;
  --sunk:   #ECEEF1;
  --ink:    #171A21;
  --muted:  #5D6470;
  --line:   #E1E4E9;
  --line-strong: #C9CDD5;
  --accent: #3D5AFE;
  --accent-ink: #FFFFFF;
  --good:   #1E7A46;
  --good-bg:#E6F4EC;
  --bad:    #C0392B;
  --bad-bg: #FBEAE7;
  --warn:   #B4671A;
  --warn-bg:#FBF0E2;
  --ekyzmet:#7A45B8;
  --okk:    #2C7A52;
  --qrt:    #2664C8;
  --bolashak:#B8862C;
  --vnzh:   #B8452C;
  --shadow: 0 1px 2px rgba(20,24,40,.05), 0 6px 20px rgba(20,24,40,.06);
  --radius: 12px;
  --maxw: 900px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0F1116; --raised: #171A21; --sunk: #1E222B;
    --ink: #E9ECF2; --muted: #9BA2B2; --line: #262B36; --line-strong: #333A48;
    --accent: #6D8BFF; --accent-ink: #0F1116;
    --good: #5FCB8A; --good-bg: #14301F; --bad: #F0857A; --bad-bg: #351A17;
    --warn: #E0A15C; --warn-bg: #33260F;
    --ekyzmet: #B18BE0; --okk: #6DB98D; --qrt: #74A6DE; --bolashak: #D9A441; --vnzh: #E08A74;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.3);
  }
}
:root[data-theme="dark"] {
  --ground: #0F1116; --raised: #171A21; --sunk: #1E222B;
  --ink: #E9ECF2; --muted: #9BA2B2; --line: #262B36; --line-strong: #333A48;
  --accent: #6D8BFF; --accent-ink: #0F1116;
  --good: #5FCB8A; --good-bg: #14301F; --bad: #F0857A; --bad-bg: #351A17;
  --warn: #E0A15C; --warn-bg: #33260F;
  --ekyzmet: #B18BE0; --okk: #6DB98D; --qrt: #74A6DE; --bolashak: #D9A441; --vnzh: #E08A74;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.3);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 16px/1.55 ui-sans-serif, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { letter-spacing: -.02em; text-wrap: balance; line-height: 1.2; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 28px 20px 80px; }

/* --- шапка --- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 20px; background: color-mix(in srgb, var(--raised) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700;
         color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 22px; height: 22px; flex: none; display: block; }
/* Иконка Testmaster в шапке — выделенная: чуть крупнее, мягкая тень цвета accent,
   при наведении оживает (поворот + рост). Футерный логотип остаётся как был. */
.topbar .brand-mark {
  width: 26px; height: 26px;
  filter: drop-shadow(0 2px 7px color-mix(in srgb, var(--accent) 38%, transparent));
  transition: transform .25s ease;
}
.topbar .brand:hover .brand-mark { transform: rotate(10deg) scale(1.12); }
/* Плашка-пилюля под иконкой и словом Testmaster: тон цвета accent, светлая
   граница, при наведении чуть плотнее. Тёмная тема подхватывается сама через raised. */
.topbar .brand {
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 8%, var(--raised));
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  transition: background .2s ease;
}
.topbar .brand:hover {
  background: color-mix(in srgb, var(--accent) 14%, var(--raised));
}
.topnav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.topnav a { color: var(--muted); font-weight: 500; }
.topnav a:hover { color: var(--ink); text-decoration: none; }
/* --- всплывающая мини-статистика у ссылки «Статистика» --- */
.nav-pop-wrap { position: relative; }
.nav-pop {
  position: absolute; top: calc(100% + 10px); left: 50%;
  width: 252px; padding: 13px 16px 12px;
  background: var(--raised); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 30; cursor: default; text-align: left;
}
.nav-pop-wrap:hover .nav-pop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
/* стрелочка + невидимый мостик, чтобы курсор не «терял» окно на пути к нему */
.nav-pop::before {
  content: ""; position: absolute; top: -5.5px; left: 50%; margin-left: -5.5px;
  width: 10px; height: 10px; background: var(--raised);
  border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
.nav-pop::after { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-pop-t { display: block; font-size: 12px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 7px; }
.nav-pop-row { display: flex; justify-content: space-between; gap: 12px;
  font-size: 14px; padding: 5px 0; border-top: 1px dashed var(--line); }
.nav-pop-row b { color: var(--accent); }
.nav-pop-more { display: block; margin-top: 8px; font-size: 13px; font-weight: 600; }
.nav-pop-v { text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.nav-pop-v a { color: var(--accent); }
.nav-pop-note { display: block; margin-top: 7px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 560px) { .nav-pop { display: none; } }
.who { color: var(--ink); font-weight: 600; }
.inline { display: inline; margin: 0; }
.lang-toggle { display: inline-flex; margin: 0; border: 1px solid var(--line-strong);
  border-radius: 8px; overflow: hidden; }
.lang-toggle button { border: none; background: var(--raised); color: var(--muted);
  font: 600 12px/1 ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: .04em; padding: 6px 9px; cursor: pointer; }
.lang-toggle button + button { border-left: 1px solid var(--line); }
.lang-toggle button.on { background: var(--accent); color: var(--accent-ink); }
.lang-toggle button:not(.on):hover { color: var(--ink); }
.link { background: none; border: none; color: var(--muted); font: inherit;
        cursor: pointer; padding: 0; font-weight: 500; }
.link:hover { color: var(--ink); }
/* Переключатель темы: рукописный SVG (солнце/месяц), сменяются поворотом
   с растворением. Показываем ту иконку, КУДА переключаемся: в светлой теме —
   месяц, в тёмной — солнце. */
.theme-toggle { border: 1px solid var(--line-strong); background: var(--raised);
  border-radius: 8px; padding: 4px; cursor: pointer; line-height: 0;
  /* у button цвет не наследуется — без этого SVG через currentColor
     в тёмной теме рисуется чёрным по чёрному */
  color: var(--ink); }
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle .tt-ic { display: block;
  transition: transform .15s ease; }
.theme-toggle:active .tt-ic { transform: scale(.86); }
.theme-toggle .tt-sun, .theme-toggle .tt-moon { transform-origin: 50% 50%;
  transition: opacity .3s ease, transform .5s cubic-bezier(.35,.09,.24,.98); }
[data-theme="light"] .tt-sun { opacity: 0; transform: rotate(60deg) scale(.55); }
[data-theme="dark"] .tt-moon { opacity: 0; transform: rotate(-60deg) scale(.55); }

/* Ссылка на админку: шестерёнка в том же штриховом стиле, что и иконка темы.
   Цвет — var(--bad), чтобы в тёмной теме красный светлел, а не чернел. */
a.adm-link { display: inline-flex; align-items: center; gap: 5px;
  color: var(--bad); font-weight: 600; }
a.adm-link:hover { color: var(--bad); opacity: .85; }
a.adm-link svg { display: block; }

/* --- профиль: история входов. Две строки на запись; User-Agent — длинная
   строка без пробелов, в ячейке таблицы ellipsis не работает, поэтому
   блоками: устройство режется многоточием, полный текст — в title. --- */
.lh-row { padding: 7px 0; border-bottom: 1px solid var(--line); }
.lh-row:last-child { border-bottom: none; }
.lh-line { display: flex; gap: 12px; font-size: 13px; flex-wrap: wrap; }
.lh-date { white-space: nowrap; }
.lh-ip { font-family: ui-monospace, Consolas, monospace; }
.lh-ua { margin-top: 2px; font-size: 12px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- кнопки --- */
.btn, .btn-sm {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; cursor: pointer; border-radius: 9px; border: 1px solid var(--line-strong);
  background: var(--raised); color: var(--ink); text-decoration: none;
  transition: transform .04s ease, border-color .15s ease, background .15s ease;
}
.btn { padding: 12px 20px; font-size: 16px; }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn:hover, .btn-sm:hover { border-color: var(--ink); text-decoration: none; }
.btn:active, .btn-sm:active { transform: translateY(1px); }
.btn.primary, .btn-sm.primary {
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover, .btn-sm.primary:hover {
  background: color-mix(in srgb, var(--accent) 88%, black); border-color: transparent; }
.btn[disabled], .btn-sm[disabled] { opacity: .5; cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- карточки/панели --- */
.card { background: var(--raised); border: 1px solid var(--line);
        border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 22px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* --- лендинг --- */
.hero { text-align: center; padding: 40px 0 8px; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); margin: 0 0 12px; }
.hero p { color: var(--muted); font-size: 18px; max-width: 52ch; margin: 0 auto 26px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.branch-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
               margin-top: 40px; }
.branch-card { padding: 20px; display: flex; flex-direction: column; gap: 6px;
               border-top: 3px solid var(--bc, var(--accent)); }
.branch-card[data-b="e-kyzmet"] { --bc: var(--ekyzmet); }
.branch-card[data-b="okk"]      { --bc: var(--okk); }
.branch-card[data-b="qrt"]      { --bc: var(--qrt); }
.branch-card[data-b="bolashak"] { --bc: var(--bolashak); }
.branch-card[data-b="vnzh"]     { --bc: var(--vnzh); }
.branch-card .n { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums;
                  letter-spacing: -.03em; }
.branch-card .name { font-weight: 600; }
.branch-card .sub { color: var(--muted); font-size: 14px; }
a.branch-card.plat { text-decoration: none; color: var(--ink); transition: transform .08s, box-shadow .15s, border-color .15s; }
a.branch-card.plat:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(20,24,40,.12); }
.plat-tag { font: 12px/1 ui-monospace, Menlo, monospace; color: var(--muted); }
.plat-go { margin-top: 8px; font-weight: 600; font-size: 14px; color: var(--bc, var(--accent)); }

.plat-head { padding: 4px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 26px;
  border-left: 4px solid var(--bc, var(--accent)); padding-left: 16px; }
.plat-head[data-b="e-kyzmet"] { --bc: var(--ekyzmet); }
.plat-head[data-b="okk"] { --bc: var(--okk); }
.plat-head[data-b="qrt"] { --bc: var(--qrt); }
.plat-head[data-b="bolashak"] { --bc: var(--bolashak); }
.plat-head[data-b="vnzh"] { --bc: var(--vnzh); }
.plat-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 22px;
  padding: 16px 20px; margin-bottom: 26px; background: var(--raised); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); }
.plat-sum-item { display: flex; flex-direction: column; gap: 2px; }
.plat-sum-item .n { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.plat-sum-item .k { font-size: 12px; color: var(--muted); }
.plat-summary[data-b] .plat-sum-item .n { color: var(--bc, var(--accent)); }
.plat-summary[data-b="e-kyzmet"] { --bc: var(--ekyzmet); }
.plat-summary[data-b="okk"] { --bc: var(--okk); }
.plat-summary[data-b="qrt"] { --bc: var(--qrt); }
.plat-summary[data-b="bolashak"] { --bc: var(--bolashak); }
.plat-summary[data-b="vnzh"] { --bc: var(--vnzh); }
.plat-sum-status { margin-left: auto; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 8px; }
.plat-sum-status.ok { background: var(--good-bg); color: var(--good); }
.plat-sum-status.bad { background: var(--warn-bg); color: var(--warn); }

/* --- саппорт-виджет --- */
.support-wg { position: fixed; right: 18px; bottom: 18px; z-index: 190; display: flex;
  flex-direction: column; align-items: flex-end; gap: 12px; }
.support-fab { width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font-size: 22px; display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(20,24,40,.28); transition: transform .15s ease; position: relative; }
.support-fab:hover { transform: translateY(-2px) scale(1.04); }
.support-fab-x { display: none; }
.support-fab.open .support-fab-icon { display: none; }
.support-fab.open .support-fab-x { display: block; font-size: 26px; }
.support-panel { width: 300px; background: var(--raised); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 16px 40px rgba(20,24,40,.25); padding: 16px; animation: promo-in .25s ease; }
.support-panel[hidden] { display: none; }
.support-panel-head { margin-bottom: 10px; }
.support-panel-head b { display: block; font-size: 14.5px; }
.support-panel-head .muted { font-size: 12px; }
.support-panel-links { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; font-size: 13px; }
.support-panel-links a { color: var(--accent); text-decoration: none; }
.support-panel-links a:hover { text-decoration: underline; }
.support-panel textarea { width: 100%; padding: 9px 11px; border-radius: 9px; border: 1px solid var(--line-strong);
  background: var(--ground); color: var(--ink); font: inherit; resize: vertical; margin-bottom: 10px; }
.support-panel-ok { margin: 10px 0 0; font-size: 12.5px; color: var(--good); text-align: center; }

/* --- промо-тост QRT --- */
.promo-toast { position: fixed; right: 18px; bottom: var(--promo-bottom, 84px); z-index: 180; max-width: 320px;
  background: var(--raised); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 12px 34px rgba(20,24,40,.22); animation: promo-in .35s ease; }
.promo-toast[hidden] { display: none; }
@keyframes promo-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.promo-toast-x { position: absolute; top: 8px; right: 10px; border: none; background: none;
  color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; padding: 4px; }
.promo-toast-x:hover { color: var(--ink); }
.promo-toast-body { display: block; padding: 18px 18px 16px; text-decoration: none; color: var(--ink); }
.promo-toast-badge { display: inline-block; background: var(--qrt); color: #fff; font-weight: 800;
  font-size: 13px; padding: 3px 9px; border-radius: 7px; margin-bottom: 8px; }
.promo-toast-body p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.45; }
.promo-toast-sign { font-size: 12px; color: var(--muted); }
@media (max-width: 480px) { .promo-toast { left: 12px; right: 12px; max-width: none; } }

.mode-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.mode-card { padding: 24px; display: flex; flex-direction: column; gap: 6px; text-decoration: none;
  color: var(--ink); border-top: 3px solid var(--bc, var(--accent));
  transition: transform .08s, box-shadow .15s; }
.mode-card[data-b="e-kyzmet"] { --bc: var(--ekyzmet); }
.mode-card[data-b="okk"] { --bc: var(--okk); }
.mode-card[data-b="qrt"] { --bc: var(--qrt); }
.mode-card[data-b="bolashak"] { --bc: var(--bolashak); }
.mode-card[data-b="vnzh"] { --bc: var(--vnzh); }
.mode-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(20,24,40,.12);
  text-decoration: none; }
/* Иконка режима — фирменный штриховой SVG (макросы _icons.html), цвет —
   цвет ветки платформы (--bc), размером меньше прежних 30px-эмодзи */
.mode-ic { line-height: 0; color: var(--bc, var(--accent)); }
.mode-ic svg { display: block; }
.mode-nm { font-weight: 700; font-size: 19px; }
.mode-d { color: var(--muted); font-size: 14px; flex: 1; }
.mode-go { margin-top: 8px; font-weight: 600; font-size: 14px; color: var(--bc, var(--accent)); }

.lock-note { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px;
  border-radius: 8px; background: var(--sunk); color: var(--muted); font-size: 14px; }

/* --- формы --- */
.form-narrow { max-width: 400px; margin: 40px auto; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 14px; }
input[type=text], input[type=password], input[type=number], select {
  font: inherit; padding: 11px 13px; border-radius: 9px; border: 1px solid var(--line-strong);
  background: var(--raised); color: var(--ink); width: 100%; }
.error { background: var(--bad-bg); color: var(--bad); border: 1px solid transparent;
         padding: 10px 13px; border-radius: 9px; font-size: 14px; margin-bottom: 16px; }

/* --- бейджи ветвей --- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px;
         font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
         padding: 3px 9px; border-radius: 6px; color: #fff; }
.badge[data-b="e-kyzmet"] { background: var(--ekyzmet); }
.badge[data-b="okk"]      { background: var(--okk); }
.badge[data-b="qrt"]      { background: var(--qrt); }
.badge[data-b="bolashak"] { background: var(--bolashak); }
.badge[data-b="vnzh"]     { background: var(--vnzh); }
.badge.soft { background: var(--sunk); color: var(--muted); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }

/* --- фильтры --- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
           margin-bottom: 20px; }
.toolbar input[type=text] { flex: 1; min-width: 180px; }
.toolbar select { width: auto; }
.chk { display: inline-flex; align-items: center; gap: 7px; font-size: 14px;
       color: var(--muted); cursor: pointer; user-select: none; }
.chk input { accent-color: var(--accent); }

/* --- вопрос --- */
.q-list { display: flex; flex-direction: column; gap: 16px; }
.q-card { padding: 20px; }
.q-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.q-stem { font-size: 17px; font-weight: 600; margin: 0 0 14px; white-space: pre-wrap; }
.opts { display: flex; flex-direction: column; gap: 8px; }
.opt {
  display: flex; gap: 10px; align-items: flex-start; text-align: left; width: 100%;
  padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--raised); color: var(--ink); cursor: pointer; font: inherit;
  transition: border-color .12s, background .12s;
}
.opt:hover:not([disabled]) { border-color: var(--accent); }
.opt .mark { flex: none; width: 24px; height: 24px; border-radius: 6px; background: var(--sunk);
  display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--muted); }
.opt.chosen { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--raised)); }
.opt.correct { border-color: var(--good); background: var(--good-bg); }
.opt.correct .mark { background: var(--good); color: #fff; }
.opt.wrong { border-color: var(--bad); background: var(--bad-bg); }
.opt.wrong .mark { background: var(--bad); color: #fff; }
.opt[disabled] { cursor: default; }

.reveal { margin-top: 14px; padding: 14px; border-radius: 10px; background: var(--sunk);
          border: 1px solid var(--line); font-size: 15px; display: none; }
.reveal.show { display: block; }
.reveal .src { font-size: 13px; color: var(--muted); margin-top: 8px; }
.answer-note { font-size: 13px; color: var(--warn); }

.q-foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }

/* --- пагинация --- */
.pager { display: flex; gap: 10px; align-items: center; justify-content: center;
         margin-top: 28px; }
.pager[hidden] { display: none; }  /* класс display:flex иначе перебивает [hidden] */
.pager .info { color: var(--muted); font-variant-numeric: tabular-nums; }

/* --- экзамен --- */
.exam-bar { position: sticky; top: 57px; z-index: 10; display: flex; align-items: center;
  gap: 16px; padding: 12px 16px; background: var(--raised); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 20px;
         letter-spacing: .02em; }
.timer.low { color: var(--bad); }
.progress-dots { display: flex; flex-wrap: wrap; gap: 5px; }
.dot { width: 12px; height: 12px; border-radius: 4px; background: var(--sunk);
       border: 1px solid var(--line-strong); }
.dot.answered { background: var(--accent); border-color: var(--accent); }
.dot.current { outline: 2px solid var(--ink); outline-offset: 1px; }

.score-ring { --p: 0; width: 132px; height: 132px; border-radius: 50%; display: grid;
  place-items: center; margin: 0 auto 12px;
  background: conic-gradient(var(--accent) calc(var(--p)*1%), var(--sunk) 0); }
.score-ring span { width: 104px; height: 104px; border-radius: 50%; background: var(--raised);
  display: grid; place-items: center; font-size: 30px; font-weight: 700;
  font-variant-numeric: tabular-nums; }

/* --- Е-Қызмет --- */
/* Прогресс-бар как на proctor.eqyzmet.gov.kz: градиент синий → фиолетовый →
   красный, остаток серый. Таймер зелёный, кнопки навигации золотисто-бежевые,
   кружки номеров: отвеченный синий, текущий оранжевый. */
.ek-bar { height: 8px; border-radius: 6px; background: #E3E5E9; overflow: hidden;
  min-width: 60px; }
.ek-bar i { display: block; height: 100%; border-radius: 6px; width: 0;
  background: linear-gradient(90deg, #3947C2, var(--ekyzmet), #D9534F);
  transition: width .25s ease; }
.ek-bar.big { height: 13px; margin: 14px 0 20px; }
:root[data-theme="dark"] .ek-bar { background: var(--sunk); }

/* Варианты Е-Қызмет: радиокнопка + текст на плоской строке, как в оригинале */
.ek-opts .ek-opt { border: none; background: transparent; padding: 10px 6px;
  border-radius: 8px; }
.ek-opts .ek-opt:hover:not([disabled]) { background: var(--sunk); border: none; }
.ek-opts .ek-opt.chosen { background: color-mix(in srgb, var(--ekyzmet) 7%, transparent);
  border: none; }
.ek-opts .ek-opt.correct { background: var(--good-bg); }
.ek-opts .ek-opt.wrong { background: var(--bad-bg); }
.ek-radio { flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #9AA0AC; margin-top: 2px; display: inline-block; position: relative; }
.ek-opt.chosen .ek-radio { border-color: var(--ekyzmet); }
.ek-opt.chosen .ek-radio::after { content: ""; position: absolute; inset: 3px;
  border-radius: 50%; background: var(--ekyzmet); }
.ek-opt.correct .ek-radio { border-color: var(--good); }
.ek-opt.correct .ek-radio::after { content: ""; position: absolute; inset: 3px;
  border-radius: 50%; background: var(--good); }
.ek-opt.wrong .ek-radio { border-color: var(--bad); }
.ek-opt.wrong .ek-radio::after { content: ""; position: absolute; inset: 3px;
  border-radius: 50%; background: var(--bad); }

/* «› Скрыть меню» — строка сверху панели, как в оригинале */
.ek-side-toggle { align-self: flex-start; display: inline-flex; align-items: center;
  gap: 8px; width: 30px; height: 30px; justify-content: center;
  border: 1px solid var(--line-strong); background: var(--raised); border-radius: 6px;
  cursor: pointer; color: var(--muted); font-size: 16px; line-height: 1; }
.ek-side.collapsed #ek-side { display: none; }
.ek-side.collapsed { padding: 8px; }

/* Шапка портала: «eQyzmet | Агентство РК по делам государственной службы» */
.ek-brand { display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 12px 18px 14px; background: var(--raised); border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0; }
.ek-brand-mark { font-weight: 700; font-size: 22px; letter-spacing: -.01em;
  color: #2f3ab8; }
.ek-brand-agency { font-size: 11px; line-height: 1.25; color: var(--muted);
  text-transform: uppercase; letter-spacing: .03em; border-left: 1px solid var(--line-strong);
  padding-left: 14px; }

.ek-head-row { display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; padding: 16px 18px; background: var(--raised); border: 1px solid var(--line);
  border-top: none; border-radius: 0 0 var(--radius) var(--radius); }
.ek-test-nm { font-weight: 700; font-size: 17px; }
.ek-left { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.ek-left-lbl { color: var(--muted); font-size: 13px; text-transform: uppercase;
  letter-spacing: .05em; }
.ek-timer { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 22px;
  color: var(--good); letter-spacing: .02em; }
.ek-timer.low { color: var(--bad); }

.ek-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px;
  align-items: start; }
.ek-main { background: var(--raised); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
/* Кейс: общий сценарий для нескольких вопросов подряд — показан один раз */
.ek-passage { background: var(--sunk); border-left: 3px solid var(--ekyzmet);
  border-radius: 0 8px 8px 0; padding: 12px 14px; margin-bottom: 16px;
  font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.ek-case-switch { display: flex; gap: 8px; margin-top: 16px; }
.ek-case-dot { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--raised); color: var(--muted); font-weight: 700; font-size: 13px; cursor: pointer; }
.ek-case-dot.answered { background: var(--ekyzmet); border-color: var(--ekyzmet); color: #fff; }
.ek-case-dot.current { outline: 2px solid var(--ekyzmet); outline-offset: 2px; }
.ek-q-top { display: flex; gap: 14px; align-items: flex-start; }
.ek-stem { color: var(--ekyzmet); flex: 1; margin: 0 0 16px; }
.ek-nav { display: flex; gap: 8px; flex: none; }
.ek-arrow { width: 44px; height: 38px; border: none; border-radius: 9px;
  background: #D9B282; color: #5b4322; font-size: 20px; font-weight: 700;
  cursor: pointer; transition: filter .12s; }
.ek-arrow:hover { filter: brightness(1.06); }
.ek-finish { border: 1px solid #D9B282; background: color-mix(in srgb, #D9B282 18%, var(--raised));
  color: var(--ink); font: 600 13px/1 ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  text-transform: uppercase; letter-spacing: .05em; padding: 11px 18px;
  border-radius: 9px; cursor: pointer; }
.ek-finish:hover { background: #D9B282; color: #3d2c14; }

.ek-side { padding: 16px; display: flex; flex-direction: column; gap: 18px;
  position: sticky; top: 72px; max-height: calc(100vh - 90px); overflow-y: auto; }
.ek-topic-t { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.ek-circles { display: flex; flex-wrap: wrap; gap: 6px; }
.ek-circ { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--raised); color: var(--muted); font: 600 12px/1 ui-sans-serif, sans-serif;
  cursor: pointer; display: grid; place-items: center; transition: background .12s; }
.ek-circ.answered { background: #3947C2; border-color: #3947C2; color: #fff; }
.ek-circ.current { background: #D98E32; border-color: #D98E32; color: #fff; }
.ek-unanswered { color: var(--bad); font-size: 13px; margin-top: 10px; }

@media (max-width: 760px) {
  .ek-layout { grid-template-columns: 1fr; }
  .ek-side { position: static; max-height: none; order: -1; }
}

.ek-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ek-card { padding: 20px; display: flex; flex-direction: column; gap: 12px;
  border-top: 3px solid var(--ekyzmet); }
.ek-card.ek-off { opacity: .65; }
.ek-head { display: flex; gap: 12px; align-items: flex-start; }
.ek-ic { font-size: 28px; }
.ek-nm { font-weight: 700; font-size: 17px; }
.ek-cats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column;
  gap: 6px; font-size: 14px; }
.ek-cats li { display: flex; justify-content: space-between; gap: 12px;
  padding: 6px 0; border-bottom: 1px dashed var(--line); }
.ek-cats li:last-child { border-bottom: none; }
.ek-foot { display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: auto; }
.ek-go { border-color: var(--ekyzmet); color: var(--ekyzmet); font-weight: 700; }
.ek-go:hover { background: var(--ekyzmet); color: #fff; border-color: var(--ekyzmet);
  text-decoration: none; }

.ek-sec { display: flex; align-items: center; gap: 10px; font-weight: 700;
  font-size: 16px; padding: 14px 4px 2px; }
.ek-sec-n { flex: none; width: 26px; height: 26px; border-radius: 8px; color: #fff;
  display: grid; place-items: center; font-size: 14px;
  background: linear-gradient(135deg, #A78BFA, var(--ekyzmet)); }

.score-ring.ek { background: conic-gradient(var(--ekyzmet) calc(var(--p)*1%), var(--sunk) 0); }
.ek-res-row { display: grid; grid-template-columns: minmax(140px, 1fr) 2fr auto;
  gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line);
  font-size: 14px; }
.ek-res-row:last-child { border-bottom: none; }
.ek-res-nm { font-weight: 600; }
@media (max-width: 560px) {
  .ek-res-row { grid-template-columns: 1fr auto; }
  .ek-res-row .ek-bar { display: none; }
}

/* --- ОКК --- */
/* Зелёный стиль okk.oes.kz: слева инфо-панель, по центру вопрос с зелёной
   «Сохранить», справа квадратные плитки номеров текущего блока. */
.ek-bar.okk i { background: linear-gradient(90deg, #4CAF6D, var(--okk)); }
.okk-card { padding: 20px; border-top: 3px solid var(--okk); }
.okk-instr { display: flex; gap: 14px; align-items: center; }
.okk-circle { width: 54px; height: 54px; border-radius: 50%; background: var(--okk);
  color: #fff; display: grid; place-items: center; font-size: 24px; flex: none; }
.okk-circle.big { width: 72px; height: 72px; font-size: 32px; margin: 0 auto; }
.okk-go { border-color: var(--okk); color: var(--okk); font-weight: 700; }
.okk-go:hover { background: var(--okk); color: #fff; border-color: var(--okk);
  text-decoration: none; }
.okk-btn { background: var(--okk); border-color: var(--okk); color: #fff; }
.okk-btn:hover { background: color-mix(in srgb, var(--okk) 85%, black); }

.okk-layout { display: grid; grid-template-columns: 230px 1fr 210px; gap: 22px;
  align-items: start; }
.okk-left { padding: 20px 16px; text-align: center; position: sticky; top: 72px; }
.okk-test-nm { font-weight: 700; margin-top: 12px; }
/* таймер как в оригинале: чёрный жирный в светлом боксе */
.okk-timer { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 22px;
  margin: 8px auto 0; padding: 8px 14px; background: var(--sunk);
  border: 1px solid var(--line); border-radius: 6px; display: inline-block; }
.okk-timer.low { color: var(--bad); }
.ek-finish.okk { border-color: var(--okk);
  background: color-mix(in srgb, var(--okk) 14%, var(--raised)); width: 100%; }
.ek-finish.okk:hover { background: var(--okk); color: #fff; }
.okk-main { padding: 24px; }
.okk-comp { text-align: center; margin: 0 0 18px; font-size: 22px; }
/* вопрос синим, как на okk.oes.kz */
.okk-main .q-stem { color: #2B5EB8; }
:root[data-theme="dark"] .okk-main .q-stem { color: #7FA7E8; }
/* варианты: серые плоские плашки во всю ширину, буква с точкой, шрифт с засечками */
.okk-opt { background: var(--sunk); border: 1px solid transparent; border-radius: 4px;
  padding: 12px 16px; font-family: Georgia, "Times New Roman", serif; font-size: 15.5px; }
.okk-opt .mark { background: none; width: auto; height: auto; font-family: inherit;
  font-weight: 400; color: var(--ink); font-size: inherit; white-space: nowrap;
  display: inline; place-items: unset; }
.okk-opt .mark::after { content: "."; }
.okk-opt:hover:not([disabled]) { border-color: var(--okk); }
.okk-opt.chosen { border-color: var(--okk);
  background: color-mix(in srgb, var(--okk) 12%, var(--raised)); }
.okk-opt.correct { border-color: var(--good); background: var(--good-bg); }
.okk-opt.wrong { border-color: var(--bad); background: var(--bad-bg); }
.okk-save { background: var(--okk); color: #fff; border: none; border-radius: 8px;
  padding: 12px 34px; font: 600 15px/1 ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  cursor: pointer; }
.okk-save:hover { filter: brightness(1.08); }
.okk-right { padding: 16px; position: sticky; top: 72px; }
.okk-q-title { font-weight: 700; margin-bottom: 10px; }
.okk-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.okk-tile { aspect-ratio: 1; min-width: 44px; border-radius: 5px; border: none;
  cursor: pointer;
  background: color-mix(in srgb, var(--okk) 20%, var(--raised));
  color: color-mix(in srgb, var(--okk) 55%, var(--muted));
  font: 700 14px/1 ui-sans-serif, sans-serif; }
.okk-tile.answered { background: var(--okk); color: #fff; }
.okk-tile.current { outline: 2px solid var(--ink); outline-offset: 1px; }
@media (max-width: 860px) {
  .okk-layout { grid-template-columns: 1fr; }
  .okk-left, .okk-right { position: static; }
}

/* --- статистика --- */
.stat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
             margin-bottom: 26px; }
.stat { padding: 18px; }
.stat .v { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums;
           letter-spacing: -.02em; }
.stat .k { color: var(--muted); font-size: 14px; }
table.exams { width: 100%; border-collapse: collapse; font-size: 15px; }
table.exams th, table.exams td { text-align: left; padding: 10px 12px;
  border-bottom: 1px solid var(--line); }
table.exams th { color: var(--muted); font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: .04em; }
table.exams td.num { text-align: right; font-variant-numeric: tabular-nums; }

.empty { text-align: center; color: var(--muted); padding: 48px 20px; }
.spin { text-align: center; color: var(--muted); padding: 40px; }

/* --- юридические страницы / контакты --- */
.legal { max-width: 720px; }
.legal h1 { margin: 6px 0 18px; }
.legal h2 { font-size: 17px; margin: 22px 0 6px; }
.legal p { margin: 0 0 10px; line-height: 1.55; }

/* --- тарифы --- */
.pr { display: flex; flex-direction: column; gap: 26px; }
.pr-head { text-align: center; display: flex; flex-direction: column; gap: 6px;
  align-items: center; }
.pr-head h1 { margin: 0; font-size: 26px; }
.pr-head p { margin: 0; font-size: 15px; max-width: 52ch; }
.pr .display { font-family: 'Unbounded', ui-sans-serif, sans-serif; }
.pr-order { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.pr-order > div { display: flex; justify-content: space-between; gap: 10px; }
.pr-total { border-top: 1px dashed var(--line); padding-top: 8px; }
.pr-total b { font-size: 18px; }
.pr-kaspi { border: 1.5px dashed var(--line-strong); border-radius: 10px; padding: 14px;
  display: flex; flex-direction: column; gap: 6px; background: var(--sunk); }
.pr-kaspi b { font-size: 14px; }
.pr-kaspi p { margin: 0; font-size: 13px; }
.pr-kaspi .btn-sm { align-self: flex-start; }
.pr-how { display: flex; gap: 18px; align-items: center; }
.pr-qr { flex: none; width: 112px; height: 112px; border-radius: 10px;
  border: 1.5px dashed var(--line-strong); background: var(--sunk); display: grid;
  place-items: center; text-align: center; font-size: 11px; color: var(--muted);
  padding: 8px; }
.pr-how > div:last-child { display: flex; flex-direction: column; gap: 8px;
  font-size: 13.5px; color: var(--muted); }
.pr-how b { color: var(--ink); font-size: 14.5px; }

/* --- страница результата попытки --- */
.att { display: flex; flex-direction: column; gap: 20px; }
.att-crumbs { font-size: 13px; }
.att-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; }
.att-hero .score-ring.ok { background: conic-gradient(var(--good) calc(var(--p)*1%), var(--sunk) 0); }
.att-hero .score-ring.no { background: conic-gradient(var(--bad) calc(var(--p)*1%), var(--sunk) 0); }
.att-hero-txt { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.att-hero-txt h1 { margin: 0; font-size: 21px; }
.att-hero-txt p { margin: 0; font-size: 14px; }
.att-badges { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.att-pass { background: var(--good-bg); color: var(--good); }
.att-fail { background: var(--bad-bg); color: var(--bad); }
.att-actions { display: flex; flex-direction: column; gap: 10px; }
.st-row--att { grid-template-columns: minmax(120px, 220px) 1fr 92px; }
.att-wrong { display: flex; flex-direction: column; gap: 12px; }
.att-wrong h2 { margin: 0; font-size: 17px; }
.att-q { display: flex; flex-direction: column; gap: 12px; }
.att-q-meta { display: flex; gap: 10px; align-items: baseline; }
.att-q-meta .muted { font-size: 12.5px; }
.att-q-stem { margin: 0; font-weight: 600; white-space: pre-wrap; }
.att-q .opt { cursor: default; }
.att-exp { background: var(--sunk); border-radius: 10px; padding: 12px 14px;
  font-size: 13.5px; color: var(--muted); }
.att-exp b { color: var(--ink); }
@media (max-width: 760px) { .att-hero { grid-template-columns: 1fr; text-align: center;
  justify-items: center; } .att-actions { flex-direction: row; } }

/* --- статистика --- */
.st { display: flex; flex-direction: column; gap: 20px; }
.st-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.st-head h1 { margin: 0; font-size: 23px; flex: 1; }
.st-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.st .l-strip { margin: 0; }
.st-dyn { display: flex; flex-direction: column; gap: 14px; }
.st-dyn-head { display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; }
.st-dyn-head .muted { font-size: 12.5px; }
.st-dash { display: inline-block; width: 18px; border-top: 2px dashed var(--bad);
  vertical-align: middle; margin-right: 6px; }
.st-bars { position: relative; height: 150px; display: flex; align-items: flex-end; gap: 8px; }
.st-goal { position: absolute; left: 0; right: 0; bottom: 70%;
  border-top: 2px dashed var(--bad); opacity: .55; pointer-events: none; }
.st-bar { flex: 1; background: var(--sunk); border: 1px solid var(--line-strong);
  border-radius: 6px 6px 0 0; }
.st-bar.pass { background: var(--good-bg); border-color: var(--good); }
.st-bar.last { background: color-mix(in srgb, var(--accent) 18%, var(--raised));
  border-color: var(--accent); }
.st-dyn-note { margin: 0; font-size: 13px; }
.st-2c { }
.st-topics { display: flex; flex-direction: column; gap: 11px; }
.st-row { display: grid; grid-template-columns: minmax(110px, 190px) 1fr 52px;
  gap: 10px; align-items: center; font-size: 13.5px; }
.st-track { height: 8px; border-radius: 4px; background: var(--sunk); overflow: hidden;
  display: block; }
.st-track i { display: block; height: 100%; border-radius: 4px; }
.st-row b { font-variant-numeric: tabular-nums; text-align: right; }
.st-more { margin-top: auto; font-size: 13.5px; font-weight: 600; }
.st-table { overflow: hidden; }
.st-table-head { display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.st-table-head h2 { margin: 0; font-size: 16px; }
.st-tr { display: grid; grid-template-columns: 92px 116px 1fr 110px 60px; gap: 12px;
  align-items: center; padding: 11px 22px; border-bottom: 1px solid var(--line);
  font-size: 13.5px; }
.st-tr:last-child { border-bottom: none; }
.st-tr--head { font-size: 11.5px; font-weight: 700; letter-spacing: .05em;
  color: var(--muted); text-transform: uppercase; padding: 9px 22px; }
.st-tr .num { text-align: right; font-variant-numeric: tabular-nums; }
.st-tr .badge { justify-self: start; }
@media (max-width: 680px) { .st-tr { grid-template-columns: 82px 1fr 60px; }
  .st-tr > :nth-child(2), .st-tr > :nth-child(4) { display: none; } }

/* --- авторизация --- */
.auth-wrap { max-width: 480px; margin: 48px auto 0; display: flex;
  flex-direction: column; gap: 20px; }
.auth-head { text-align: center; }
.auth-head h1 { margin: 0 0 6px; font-size: 27px; }
.auth-head p { margin: 0; font-size: 15px; }
.auth-card { padding: 30px 30px 26px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: var(--sunk); border-radius: 10px; padding: 4px; margin-bottom: 20px; }
.auth-tabs a { font-size: 15px; font-weight: 600; padding: 9px; border-radius: 8px;
  text-align: center; color: var(--muted); }
.auth-tabs a:hover { text-decoration: none; color: var(--ink); }
.auth-tabs a.on { background: var(--raised); color: var(--ink); box-shadow: var(--shadow); }
.auth-fineprint { font-size: 13.5px; line-height: 1.5; margin: 0 0 14px; }
.auth-note { text-align: center; font-size: 14px; margin: 0; }

/* --- имитация вебкамеры в режиме экзамена (examcam.js) --- */
.examcam { position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 148px; border-radius: 12px; overflow: hidden; background: var(--raised);
  border: 1px solid var(--line); box-shadow: var(--shadow); }
.examcam.left { right: auto; left: 18px; }
.examcam-video { aspect-ratio: 4/3; background: #111; }
.examcam-video video { width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scaleX(-1); }
.examcam-note { display: flex; align-items: center; gap: 6px; padding: 6px 8px;
  font-size: 10.5px; line-height: 1.3; color: var(--muted); }
.examcam-dot { flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: var(--good); }
@media (max-width: 560px) { .examcam { width: 108px; right: 10px; bottom: 10px; }
  .examcam.left { right: auto; left: 10px; } }

/* --- дашборд (главный экран после входа) --- */
.dash { display: flex; flex-direction: column; gap: 22px; }
.dash-hello { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.dash-hello > div { flex: 1; min-width: 240px; }
.dash-hello h1 { margin: 0 0 2px; font-size: 23px; }
.dash-hello p { margin: 0; font-size: 14px; }
.dash .l-strip { margin: 0; }
.dash-2c { display: grid; grid-template-columns: 1.25fr .75fr; gap: 16px; align-items: stretch; }
.dash-main { display: flex; gap: 22px; align-items: center;
  border-top: 3px solid var(--bc, var(--accent)); }
.dash-main[data-b="e-kyzmet"] { --bc: var(--ekyzmet); }
.dash-main[data-b="okk"] { --bc: var(--okk); }
.dash-main[data-b="qrt"] { --bc: var(--qrt); }
.dash-main[data-b="bolashak"] { --bc: var(--bolashak); }
.dash-main[data-b="vnzh"] { --bc: var(--vnzh); }
.dash-main .score-ring { flex: none; }
.dash-main-txt { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dash-main-txt .badge { align-self: flex-start; }
.dash-main-txt strong { font-size: 18px; }
.dash-main-txt p { margin: 0; font-size: 14px; }
.dash-main-act { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.dash-others { display: flex; flex-direction: column; gap: 10px; }
.dash-cap { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em;
  color: var(--muted); text-transform: uppercase; }
.dash-other { display: flex; align-items: center; gap: 10px; color: var(--ink);
  font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; }
.dash-other:hover { text-decoration: none; border-color: var(--line-strong); }
.dash-other-nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; }
.dash-other-go { font-weight: 600; }
.dash-hint { margin: auto 0 0; font-size: 12.5px; }
.dash-qod { display: flex; flex-direction: column; gap: 12px; }
.dash-qod-top { display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; }
.dash-qod-top .muted { font-size: 12.5px; }
.dash-qod-stem { margin: 0; font-weight: 600; font-size: 15px; white-space: pre-wrap; }
@media (max-width: 760px) { .dash-2c { grid-template-columns: 1fr; } }

/* --- подвал сайта --- */
.sitefoot { border-top: 1px solid var(--line); margin-top: 56px; background: var(--sunk); }
.sitefoot-in { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.sitefoot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
  padding-top: 44px; padding-bottom: 28px; }
.sitefoot-brand { display: flex; flex-direction: column; gap: 12px; }
.sitefoot-logo { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.sitefoot-brand p { margin: 0; color: var(--muted); font-size: 13.5px; max-width: 30ch; }
.sitefoot-col { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.sitefoot-col strong { font-size: 12px; letter-spacing: .05em; color: var(--muted);
  text-transform: uppercase; }
.sitefoot-col a { color: var(--ink); }
.sitefoot-col a:hover { color: var(--accent); text-decoration: none; }
.sitefoot-wa { display: inline-flex; align-items: center; gap: 8px; }
.sitefoot-wa .wa-ic { display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 7px; background: var(--okk); color: #fff; flex: none; }
.sitefoot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 8px 16px; padding-bottom: 26px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 720px) { .sitefoot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .sitefoot-grid { grid-template-columns: 1fr; } }

/* прижать подвал к низу на коротких страницах */
body { display: flex; flex-direction: column; min-height: 100vh; overflow-x: clip; }
main.wrap { flex: 1; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 560px) {
  .topnav { gap: 12px; font-size: 15px; }
  .brand span:not(.brand-mark) { display: none; }
}

/* ===== Прокторинг 360: проверка устройства + QR-сопряжение с телефоном =====
   Общий для всех веток (Е-Кызмет/ОКК/Болашак/QRT) — цвет берётся из --bc по
   data-b, как и остальные брендированные карточки (.mode-card, .badge и т.д.). */
.pc-exam {
  --bc: var(--accent);
  --blue: var(--bc); --dark: color-mix(in srgb, var(--bc) 78%, black);
  --blue-soft: color-mix(in srgb, var(--bc) 9%, white);
  --blue-line: color-mix(in srgb, var(--bc) 22%, white);
  --ink: #1c2733; --soft: #6b7684; --bg: #e9edf3; --card: #ffffff; --line: #dbe1e9;
  --good: #1e7a46; --good-bg: #e6f4ec; --bad: #c0392b; --bad-bg: #fbeae7;
  --sh-sm: 0 1px 2px rgba(20,40,70,.06), 0 2px 8px rgba(20,40,70,.05);
  --sh-md: 0 6px 20px rgba(20,40,70,.12);
  --sh-blue: 0 6px 16px color-mix(in srgb, var(--bc) 34%, transparent);
  position: fixed; inset: 0; z-index: 50; background: var(--bg); color: var(--ink);
  display: flex; flex-direction: column; overflow: hidden;
  font: 16px/1.5 ui-sans-serif, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.pc-exam[data-b="e-kyzmet"] { --bc: var(--ekyzmet); }
.pc-exam[data-b="okk"]      { --bc: var(--okk); }
.pc-exam[data-b="qrt"]      { --bc: var(--qrt); }
.pc-exam[data-b="bolashak"] { --bc: var(--bolashak); }
.pc-exam[data-b="vnzh"]     { --bc: var(--vnzh); }

.pc-topbar { flex: none; height: 60px; background: var(--card);
  border-bottom: 1px solid var(--line); box-shadow: var(--sh-sm);
  display: flex; align-items: center; gap: 18px; padding: 0 22px; z-index: 3; }
.pc-topbar .brand-nm { font-weight: 800; color: var(--blue); letter-spacing: .02em; }
.pc-topbar .exit { color: var(--soft); text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 7px 12px; border-radius: 8px; transition: background .15s; }
.pc-topbar .exit:hover { color: var(--bad); background: var(--bad-bg); }
.pc-topbar .spacer { margin-left: auto; }
.pc-crumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--soft); }
.pc-crumb b { color: var(--blue); font-weight: 700; }
.pc-crumb .sep { opacity: .5; }

.pc-body { flex: 1; overflow-y: auto; display: flex; justify-content: center; padding: 40px 20px; }
.pc-card { width: 100%; max-width: 620px; height: fit-content; background: var(--card);
  border-radius: 20px; padding: 40px clamp(20px, 5vw, 48px); box-shadow: var(--sh-md);
  text-align: center; transition: max-width .2s ease; }
.pc-card:has(.pc-grid[style*="grid"]) { max-width: 640px; }
.pc-card h2 { margin: 0 0 6px; font-size: 20px; }
.pc-card .pc-sub { color: var(--soft); font-size: 13.5px; margin: 0 0 22px; }
.pc-list { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.pc-list.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 26px; }
.pc-row { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.pc-row-wide { grid-column: 1 / -1; }
.pc-ic { width: 22px; height: 22px; display: grid; place-items: center; color: var(--soft);
  position: relative; flex: none; margin-top: 1px; transition: color .15s; }
.pc-ic svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.pc-ic.spin { color: var(--blue-line); }
.pc-ic.spin svg { animation: pc-fade 1.1s ease-in-out infinite; }
@keyframes pc-fade { 50% { opacity: .35; } }
.pc-ic.ok { color: var(--good); }
.pc-ic.bad { color: var(--bad); }
.pc-tx b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.pc-tx span { display: block; font-size: 11.5px; color: var(--soft); margin-top: 1px; line-height: 1.3; }
.pc-tx span.ok { color: var(--good); } .pc-tx span.bad { color: var(--bad); }
.pc-actions { margin-top: 28px; }
.pc-note { margin-top: 18px; font-size: 12.5px; color: var(--soft); line-height: 1.5; }

.pc-btn { font: 600 15px/1 inherit; padding: 13px 30px; border-radius: 11px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none;
  display: inline-block; transition: transform .08s, box-shadow .15s, background .15s, border-color .15s; }
.pc-btn:hover { border-color: var(--dark); transform: translateY(-1px); box-shadow: var(--sh-sm); }
.pc-btn.primary { background: linear-gradient(180deg, color-mix(in srgb, var(--bc) 88%, white 6%), var(--blue));
  color: #fff; border-color: var(--blue); box-shadow: var(--sh-blue); }
.pc-btn.primary:hover { box-shadow: 0 8px 22px color-mix(in srgb, var(--bc) 42%, transparent); transform: translateY(-1px); }
.pc-btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; pointer-events: none; }

.pc-pair { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.pc-qr-frame { width: 220px; height: 220px; border: 1.5px solid var(--line); border-radius: 16px;
  padding: 14px; background: #fff; display: grid; place-items: center; }
.pc-qr-frame img { width: 100%; height: 100%; image-rendering: pixelated; }
.pc-pair-steps { text-align: left; }
.pc-pair-steps ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px;
  font-size: 14px; color: var(--ink); }
.pc-status { margin-top: 24px; display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-radius: 12px; background: var(--bg); font-size: 14px; font-weight: 600; }
.pc-status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--soft);
  animation: pc-pulse 1.1s ease-in-out infinite; }
.pc-status.on { background: var(--good-bg); color: var(--good); }
.pc-status.on .dot { background: var(--good); animation: none; }
@keyframes pc-pulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.pc-skip { display: inline-block; margin-top: 16px; font-size: 12.5px; color: var(--soft);
  background: none; border: none; cursor: pointer; font-family: inherit; text-decoration: underline; }
@media (max-width: 640px) { .pc-pair { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .pc-pair-steps { text-align: left; } }

/* мобильная страница подключения (proctor_mobile.html) */
.mob-wrap { max-width: 420px; margin: 0 auto; padding: 28px 18px 40px; text-align: center; }
.mob-logo { font-weight: 800; font-size: 15px; color: var(--blue, var(--accent));
  letter-spacing: .04em; margin-bottom: 22px; }
.mob-card { background: var(--card); border-radius: 18px; padding: 28px 22px; box-shadow: var(--sh-md); }
.mob-card h2 { margin: 0 0 8px; font-size: 19px; }
.mob-card p { margin: 0 0 20px; color: var(--soft); font-size: 14px; line-height: 1.55; }
.mob-card ul { text-align: left; margin: 0 0 20px; padding-left: 20px; color: var(--ink);
  font-size: 13.5px; line-height: 1.7; }
.mob-preview { position: relative; border-radius: 16px; overflow: hidden; background: #0b1a2b;
  aspect-ratio: 3/4; margin-bottom: 18px; }
.mob-preview video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mob-preview .hint { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px;
  background: linear-gradient(0deg, rgba(0,0,0,.65), transparent); color: #fff; font-size: 12.5px; }
/* финальный шаг ("Подключено") — превью камеры на весь экран телефона,
   поверх — полупрозрачный баннер с галочкой (видео живое, не заглушка) */
.mob-preview.full { position: fixed; inset: 0; z-index: 50; border-radius: 0;
  aspect-ratio: unset; margin: 0; }
.mob-done-banner { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 22px 40px;
  background: linear-gradient(0deg, rgba(0,0,0,.82) 40%, transparent); color: #fff; text-align: center; }
.mob-done-banner .pc-ic { margin: 0 auto 14px; width: 56px; height: 56px; font-size: 26px; }
.mob-done-banner h2 { margin: 0 0 6px; font-size: 19px; color: #fff; }
.mob-done-banner p { margin: 0; font-size: 13.5px; color: rgba(255,255,255,.8); line-height: 1.5; }
