/* R27academy — учебный интерфейс. Палитра R27: антрацит + лайм (#E1FF00). Тёмная тема по умолчанию, светлая по выбору.
   Скругления: карточки 20px, внутренние блоки и кнопки 12px, бейджи 8px. Цвет состояния — только у исключений
   (просрочено, не сдано), всегда со словом. Плашек с цветной полосой по краю нет. */
:root {
  --r-card: 20px; --r: 12px; --r-sm: 8px;
  --side-w: 248px; --top-h: 68px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --lime: #E1FF00; --lime-ink: #121500;
  --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-synthesis: none;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0C0E0F; --surface: #141719; --surface-2: #1A1E20; --surface-3: #22272A; --surface-hi: #2A3033;
  --line: rgba(255,255,255,.07); --line-2: rgba(255,255,255,.12); --line-3: rgba(255,255,255,.2);
  --text: #EEF1EC; --text-2: rgba(238,241,236,.78); --mut: rgba(238,241,236,.6); --faint: rgba(238,241,236,.4);
  --accent: var(--lime); --accent-ink: var(--lime-ink); --accent-soft: rgba(225,255,0,.12); --accent-line: rgba(225,255,0,.32);
  --mark: var(--lime); --mark-ink: var(--lime-ink); --mark-track: rgba(255,255,255,.08);
  --danger: #FF6B5A; --danger-soft: rgba(255,107,90,.13); --warn: #F5B841; --warn-soft: rgba(245,184,65,.13); --good: #9BE27A; --good-soft: rgba(155,226,122,.12);
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 40px -24px rgba(0,0,0,.7);
  --pop: 0 24px 60px -20px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.08);
  --side-bg: #0F1213; --scrim: rgba(5,6,7,.72);
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #EEEFEB; --surface: #FFFFFF; --surface-2: #F4F5F1; --surface-3: #E9EBE6; --surface-hi: #E1E4DE;
  --line: rgba(20,25,27,.08); --line-2: rgba(20,25,27,.13); --line-3: rgba(20,25,27,.24);
  --text: #151A1C; --text-2: rgba(21,26,28,.8); --mut: rgba(21,26,28,.62); --faint: rgba(21,26,28,.42);
  --accent: #1E2427; --accent-ink: #FFFFFF; --accent-soft: rgba(30,36,39,.07); --accent-line: rgba(30,36,39,.3);
  --mark: #1E2427; --mark-ink: #fff; --mark-track: rgba(20,25,27,.09);
  --danger: #D23A2A; --danger-soft: rgba(210,58,42,.09); --warn: #A86A00; --warn-soft: rgba(196,134,0,.12); --good: #2E7D32; --good-soft: rgba(46,125,50,.09);
  --shadow: 0 1px 2px rgba(20,25,27,.05), 0 12px 32px -20px rgba(20,25,27,.25);
  --pop: 0 24px 60px -20px rgba(20,25,27,.35), 0 0 0 1px rgba(20,25,27,.08);
  --side-bg: #111415; --scrim: rgba(17,20,21,.5);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 400 14.5px/1.5 Onest, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--mark); outline-offset: 2px; border-radius: 6px; }
.ic { width: 20px; height: 20px; flex: none; fill: currentColor; display: inline-block; vertical-align: middle; }
.ic.s { width: 16px; height: 16px; } .ic.l { width: 24px; height: 24px; } .ic.xl { width: 32px; height: 32px; }
.num { font-variant-numeric: tabular-nums; }
.mut { color: var(--mut); } .faint { color: var(--faint); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--line-3); background-clip: padding-box; border: 3px solid transparent; }
@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; } }

/* ── каркас ─────────────────────────────────────────────────────────────── */
.shell { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100dvh; background: var(--side-bg); color: #EEF1EC; display: flex; flex-direction: column; padding: 22px 14px 16px; border-right: 1px solid rgba(255,255,255,.05); z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 10px 22px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand b { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.brand b span { color: var(--lime); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav h6 { margin: 18px 12px 6px; font-size: 12px; font-weight: 500; color: rgba(238,241,236,.38); }
.nav a { position: relative; display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: var(--r); color: rgba(238,241,236,.72); font-weight: 500; transition: background .2s, color .2s; }
.nav a:hover { background: rgba(255,255,255,.05); color: #EEF1EC; }
.nav a[aria-current="page"] { background: rgba(255,255,255,.08); color: #fff; }
.nav a[aria-current="page"] .ic { color: var(--lime); }
.nav a .cnt { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--lime); color: var(--lime-ink); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.me-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); }
.me-card .who { min-width: 0; flex: 1; } .me-card .who b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-card .who span { display: block; font-size: 12px; color: rgba(238,241,236,.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-tools { display: flex; gap: 6px; }
.side-tools button { flex: 1; height: 36px; border-radius: 10px; color: rgba(238,241,236,.6); display: grid; place-items: center; background: rgba(255,255,255,.03); }
.side-tools button:hover { color: #fff; background: rgba(255,255,255,.07); }
.demo-tag { margin: 0 10px 8px; font-size: 12px; color: rgba(238,241,236,.45); }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 15; height: var(--top-h); display: flex; align-items: center; gap: 16px; padding: 0 32px; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.top.scrolled { box-shadow: 0 1px 0 var(--line); }
.top h1 { font-size: 20px; font-weight: 600; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .back { width: 38px; height: 38px; border-radius: var(--r); display: grid; place-items: center; color: var(--mut); margin-left: -8px; }
.top .back:hover { background: var(--surface-2); color: var(--text); }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.search-btn { display: flex; align-items: center; gap: 10px; height: 40px; width: 280px; white-space: nowrap; padding: 0 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--faint); }
.search-btn:hover { border-color: var(--line-2); color: var(--mut); }
.search-btn kbd { margin-left: auto; font: 500 11.5px Onest; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--mut); }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: var(--r); display: grid; place-items: center; color: var(--mut); transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn .dot { position: absolute; top: 7px; right: 7px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--lime); color: var(--lime-ink); font-size: 10.5px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.view { padding: 8px 32px 48px; width: 100%; max-width: 1480px; margin: 0 auto; }
.view.wide { max-width: none; }
.view.enter > * { animation: rise .5s var(--ease) both; }
.view.enter > *:nth-child(2) { animation-delay: .04s; } .view.enter > *:nth-child(3) { animation-delay: .08s; } .view.enter > *:nth-child(4) { animation-delay: .12s; } .view.enter > *:nth-child(n+5) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── общие элементы ─────────────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); }
.card.pad { padding: 22px 24px; }
.sec { margin-top: 28px; }
.sec-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sec-h h2 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.sec-h .cnt { color: var(--faint); font-weight: 500; }
.sec-h .more { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--mut); font-weight: 500; font-size: 13.5px; }
.sec-h .more:hover { color: var(--text); }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-h h3 { font-size: 15.5px; font-weight: 600; }
.card-h .more { margin-left: auto; color: var(--mut); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.card-h .more:hover { color: var(--text); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: var(--r); font-weight: 600; white-space: nowrap; transition: transform .15s var(--ease), background .2s, opacity .2s, box-shadow .2s; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }
.btn:hover { background: var(--surface-3); }
.btn:active { transform: scale(.98); }
.btn.pri { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.pri:hover { filter: brightness(1.06); }
.btn.lime { background: var(--lime); color: var(--lime-ink); border-color: transparent; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--mut); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.danger { color: var(--danger); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn.lg { height: 50px; padding: 0 24px; font-size: 15.5px; border-radius: 14px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.sq { width: 42px; padding: 0; } .btn.sm.sq { width: 34px; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: var(--r-sm); font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--surface-3); color: var(--text-2); }
.badge.bad { background: var(--danger-soft); color: var(--danger); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.good { background: var(--good-soft); color: var(--good); }
.badge.acc { background: var(--accent-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent-line); }
.badge .ic { width: 14px; height: 14px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--mut); font-size: 13px; }
.meta > span { display: inline-flex; align-items: center; gap: 6px; }
.meta .ic { width: 16px; height: 16px; opacity: .8; }
.bar { height: 6px; border-radius: 6px; background: var(--mark-track); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 6px; background: var(--mark); width: 0; transition: width .9s var(--ease); }
.av { font-style: normal; flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #111; overflow: hidden; background: #B9C4BE; }
.av { position: relative; } .av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.av.sm { width: 28px; height: 28px; font-size: 11px; } .av.lg { width: 56px; height: 56px; font-size: 19px; } .av.xl { width: 76px; height: 76px; font-size: 26px; }
.empty { padding: 40px 20px; text-align: center; color: var(--mut); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty .ic { width: 40px; height: 40px; opacity: .45; }
.empty b { color: var(--text); font-weight: 600; font-size: 15px; }
.skel { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shim 1.4s linear infinite; border-radius: var(--r); }
@keyframes shim { to { background-position: -200% 0; } }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { height: 32px; padding: 0 14px; border-radius: 9px; font-weight: 500; font-size: 13.5px; color: var(--mut); white-space: nowrap; transition: background .2s, color .2s; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--surface-hi); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.18); }
[data-theme="light"] .seg button[aria-pressed="true"] { background: #fff; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.filters .grow { flex: 1; }
.sel { height: 40px; padding: 0 34px 0 12px; border-radius: var(--r); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23888'%3E%3Cpath d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E") right 11px center / 14px no-repeat; border: 1px solid var(--line); appearance: none; -webkit-appearance: none; }
.sel:hover { border-color: var(--line-2); }
.ring { position: relative; display: grid; place-items: center; }
.ring svg { transform: rotate(-90deg); }
.ring .tr { stroke: var(--mark-track); }
.ring .fg { stroke: var(--mark); stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease); }
.ring .lbl { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .lbl b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.dark-card .ring .tr { stroke: rgba(255,255,255,.1); } .dark-card .ring .fg { stroke: var(--lime); }
.tip { position: relative; }
.tip[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 6px 10px; border-radius: 8px; background: #050607; color: #EEF1EC; font-size: 12.5px; font-weight: 500; z-index: 50; pointer-events: none; }
.grid { display: grid; gap: 20px; }
.kbd { font: 500 11.5px Onest; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--mut); }
hr.sep { border: 0; height: 1px; background: var(--line); margin: 18px 0; }

/* ── вход ───────────────────────────────────────────────────────────────── */
.login { min-height: 100dvh; display: grid; grid-template-columns: minmax(420px, 1fr) 1.25fr; background: #0C0E0F; color: #EEF1EC; }
.login-l { position: relative; isolation: isolate; display: flex; flex-direction: column; padding: 40px 56px; }
.login-l::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.075) 1px, transparent 1.4px); background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(58% 52% at 50% 52%, #000 0%, transparent 100%); mask-image: radial-gradient(58% 52% at 50% 52%, #000 0%, transparent 100%); animation: lc-grid 40s linear infinite; }
@keyframes lc-grid { to { background-position: 24px 48px; } }
.login-l .brand { padding: 0; }
.login-l .brand img { width: 36px; height: 36px; }
.login-l .brand b { font-size: 20px; }
/* карточка входа: тёмная плита, в углу концентрические дуги (мотив колец прогресса) */
.lc { position: relative; overflow: hidden; margin: auto; width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 14px; padding: 36px 34px 32px; border-radius: 30px;
  background: linear-gradient(180deg, #171A1C 0%, #111416 100%); border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 50px 90px -40px rgba(0,0,0,.95); animation: lc-in .7s var(--ease) both; }
.lc::before, .lc::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.lc::before { width: 300px; height: 300px; right: -180px; top: -180px; border: 1px solid rgba(225,255,0,.16); outline: 1px solid rgba(255,255,255,.055); outline-offset: 34px; }
.lc::after { width: 150px; height: 150px; right: -105px; top: -105px; border: 1px dashed rgba(225,255,0,.22); animation: lc-orbit 60s linear infinite; }
@keyframes lc-orbit { to { transform: rotate(360deg); } }
.lc > * { position: relative; z-index: 1; animation: lc-up .6s var(--ease) both; }
.lc > :nth-child(2) { animation-delay: .06s; } .lc > :nth-child(3) { animation-delay: .12s; } .lc > :nth-child(4) { animation-delay: .16s; }
.lc > :nth-child(5) { animation-delay: .2s; } .lc > :nth-child(6) { animation-delay: .24s; }
@keyframes lc-in { from { opacity: 0; transform: translateY(18px) scale(.985); } }
@keyframes lc-up { from { opacity: 0; transform: translateY(10px); } }
.lc.shake { animation: lc-shake .45s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes lc-shake { 15% { transform: translateX(-10px); } 35% { transform: translateX(9px); } 55% { transform: translateX(-6px); } 75% { transform: translateX(4px); } }
.lc-head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.lc h1 { font-size: 40px; font-weight: 750; letter-spacing: -.04em; line-height: 1; }
/* кольцо у заголовка: --p от 0 до 1 */
.lc-ring { --p: 0; position: relative; flex: none; width: 56px; height: 56px; display: grid; place-items: center; }
.lc-ring .rg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.lc-ring circle { fill: none; stroke-width: 3.5; }
.lc-ring .t { stroke: rgba(255,255,255,.09); }
.lc-ring .f { stroke: var(--lime); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - 100 * var(--p)); opacity: min(1, calc(var(--p) * 40)); transition: opacity .2s, stroke-dashoffset .7s var(--ease), stroke .3s; }
.lc-ring .ic { width: 22px; height: 22px; color: rgba(238,241,236,.5); transition: color .3s, transform .4s var(--ease); }
.lc.full .lc-ring .ic { color: var(--lime); transform: rotate(-12deg) scale(1.08); }
.lc.busy .lc-ring .rg { animation: lc-spin .9s linear infinite; }
.lc.busy .lc-ring .f { stroke-dashoffset: 72; opacity: 1; }
.lc.bad .lc-ring .f { stroke: #FF6B5A; }
.lc.bad .lc-ring .ic { color: #FF8A7A; transform: none; }
@keyframes lc-spin { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }
/* поле: плитка значка + плавающая подпись; при фокусе по рамке бежит лаймовая дуга */
@property --fx-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.fx { position: relative; display: flex; align-items: center; gap: 14px; height: 68px; padding: 0 12px 0 11px; border-radius: 20px; cursor: text;
  background: #0E1113; border: 1px solid rgba(255,255,255,.08); transition: border-color .25s, background .25s; }
.fx:hover { border-color: rgba(255,255,255,.14); }
.fx::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: conic-gradient(from var(--fx-a), rgba(225,255,0,0) 0 55%, rgba(225,255,0,.9) 80%, #F4FF9A 84%, rgba(225,255,0,0) 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.fx:focus-within { background: #121618; border-color: rgba(225,255,0,.26); }
.fx:focus-within::before { opacity: 1; animation: fx-run 3s linear infinite; }
@keyframes fx-run { to { --fx-a: 360deg; } }
.fx-ic { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.05); color: rgba(238,241,236,.5);
  transition: background .3s var(--ease), color .3s, transform .4s var(--ease); }
.fx-ic .ic { width: 20px; height: 20px; }
.fx:has(input:not(:placeholder-shown)) .fx-ic { color: #EEF1EC; background: rgba(255,255,255,.08); }
.lc .fx:focus-within .fx-ic.fx-ic { background: var(--lime); color: var(--lime-ink); transform: rotate(-6deg); }
.fx-b { position: relative; flex: 1; min-width: 0; align-self: stretch; }
.fx-b input { position: absolute; inset: 0; width: 100%; padding: 19px 0 0; border: 0; background: transparent; color: #EEF1EC; font-size: 16.5px; font-weight: 550; outline: none; }
.fx-b input[type=password] { letter-spacing: .14em; }
.fx-l { position: absolute; left: 0; top: 50%; transform: translateY(-50%); font-size: 16px; color: rgba(238,241,236,.5); pointer-events: none; white-space: nowrap;
  transition: top .3s var(--ease), transform .3s var(--ease), font-size .3s var(--ease), color .25s; }
.fx-b input:focus + .fx-l, .fx-b input:not(:placeholder-shown) + .fx-l { top: 15px; transform: none; font-size: 12px; font-weight: 600; }
.fx-b input:-webkit-autofill + .fx-l { top: 15px; transform: none; font-size: 12px; font-weight: 600; }
.fx-b input:focus + .fx-l { color: var(--lime); }
.fx-b input:-webkit-autofill { -webkit-text-fill-color: #EEF1EC; -webkit-box-shadow: 0 0 0 1000px #121618 inset; transition: background-color 9999s; }
.fx-caps { flex: none; height: 24px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: 7px; background: rgba(245,184,65,.15); color: #F5B841; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.fx-caps[hidden] { display: none; }
.fx-eye { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: rgba(238,241,236,.5); transition: background .2s, color .2s; }
.fx-eye .ic { width: 20px; height: 20px; }
.fx-eye:hover { background: rgba(255,255,255,.07); color: #EEF1EC; }
.fx-eye.on { color: var(--lime); }
.lc.bad .fx, .lc.bad .otp-c i { border-color: rgba(255,107,90,.55); }
.lc.bad .fx-ic { background: rgba(255,107,90,.13); color: #FF8A7A; }
.lc-err { min-height: 20px; display: flex; align-items: center; gap: 8px; margin: -2px 4px 0; color: #FF8A7A; font-size: 13.5px; font-weight: 500; }
.lc-err .ic { flex: none; width: 17px; height: 17px; }
.lc-err:empty { display: none; }
.lc-err:not(:empty) { animation: lc-up .3s var(--ease) both; }
/* кнопка: лаймовая плита, стрелка в тёмной капсуле, блик при наведении */
.lgo { position: relative; overflow: hidden; display: flex; align-items: center; width: 100%; height: 64px; padding: 0 9px 0 26px; border: 0; border-radius: 20px; cursor: pointer;
  background: var(--lime); color: var(--lime-ink); font-size: 17px; font-weight: 700; letter-spacing: -.01em; transition: transform .15s var(--ease), filter .2s; }
.lgo-t { flex: 1; text-align: left; }
.lgo-a { position: relative; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--lime-ink); color: var(--lime); transition: width .45s var(--ease); }
.lgo-a .ic { width: 22px; height: 22px; transition: transform .45s var(--ease), opacity .2s; }
.lgo::after { content: ''; position: absolute; top: -20%; bottom: -20%; left: -45%; width: 32%; transform: skewX(-22deg); pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.6), rgba(255,255,255,0)); }
.lgo:hover { filter: brightness(1.04); }
.lgo:hover .lgo-a { width: 72px; }
.lgo:hover .lgo-a .ic { transform: translateX(4px); }
.lgo:hover::after { animation: lgo-sheen .9s var(--ease); }
.lgo:active { transform: scale(.985); }
.lgo:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.lgo:disabled { cursor: default; }
@keyframes lgo-sheen { to { left: 125%; } }
.lc.busy .lgo-a .ic { opacity: 0; }
.lc.busy .lgo-a::after { content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(225,255,0,.25); border-top-color: var(--lime); animation: lc-spin2 .7s linear infinite; }
@keyframes lc-spin2 { to { transform: rotate(360deg); } }
/* код из MAX: шесть ячеек поверх одного поля (автоподстановка кода телефоном работает) */
.otp { position: relative; display: block; height: 74px; }
.otp input { position: absolute; inset: 0; z-index: 2; width: 100%; padding: 0; border: 0; box-shadow: none; background: transparent; color: transparent; -webkit-text-fill-color: transparent; caret-color: transparent; font-size: 16px; outline: none; }
.otp input::selection { background: transparent; }
.otp-c { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; height: 100%; }
.otp-c i:nth-child(3) { margin-right: 9px; }
.otp-c i { position: relative; display: grid; place-items: center; border-radius: 18px; background: #0E1113; border: 1px solid rgba(255,255,255,.08); font-style: normal;
  font-size: 30px; font-weight: 700; color: #EEF1EC; font-variant-numeric: tabular-nums; transition: border-color .2s, background .2s; }
.otp-c i.on { background: #15191B; border-color: rgba(255,255,255,.16); animation: otp-pop .3s var(--ease); }
.otp-c i.cur { border-color: var(--lime); background: #121618; }
.otp-c i.cur:empty::after { content: ''; width: 2px; height: 30px; border-radius: 2px; background: var(--lime); animation: otp-blink 1s steps(1) infinite; }
@keyframes otp-pop { from { transform: scale(.86); } }
@keyframes otp-blink { 50% { opacity: 0; } }
.lc.full .otp-c i { border-color: rgba(225,255,0,.4); }
.lc-foot { display: flex; justify-content: space-between; gap: 8px; margin: 0 -10px -6px; }
.lc-link { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 10px; border: 0; border-radius: 11px; background: none; color: rgba(238,241,236,.62); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.lc-link:hover:not(:disabled) { background: rgba(255,255,255,.06); color: #EEF1EC; }
.lc-link:disabled { color: rgba(238,241,236,.38); cursor: default; }
.lc-link b { font-weight: 600; font-variant-numeric: tabular-nums; }
.login-r { position: relative; overflow: hidden; min-height: 100dvh; background: #000; }
.login-r::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #0C0E0F 0%, rgba(12,14,15,.35) 30%, rgba(12,14,15,0) 60%), linear-gradient(0deg, rgba(12,14,15,.85) 0%, rgba(12,14,15,0) 45%); }
.login-r .cap { position: absolute; left: 56px; right: 56px; bottom: 56px; z-index: 2; }
.login-r .cap b { display: block; font-size: clamp(44px, 5.2vw, 76px); font-weight: 700; letter-spacing: -.035em; line-height: .98; }
.login-r .cap b span { color: var(--lime); }
.login-r .stripes { display: flex; gap: 10px; margin-top: 22px; }
.login-r .stripes i { height: 4px; width: 46px; border-radius: 4px; background: rgba(255,255,255,.25); }
.login-r .stripes i:first-child { background: var(--lime); width: 92px; }
.login-r img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: kb 22s ease-in-out infinite alternate; }
@keyframes kb { to { transform: scale(1.14) translate(-1.5%, -1%); } }
/* ── главная ────────────────────────────────────────────────────────────── */
.home-top { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 20px; }
.hero { position: relative; min-height: 340px; border-radius: 24px; overflow: hidden; background: #0F1213; color: #EEF1EC; isolation: isolate; display: flex; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.hero:hover > img { transform: scale(1.03); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgba(10,12,13,.96) 0%, rgba(10,12,13,.86) 38%, rgba(10,12,13,.25) 75%, rgba(10,12,13,.1) 100%); }
.hero-in { padding: 32px 36px; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; max-width: 620px; }
.hero .over { color: var(--lime); font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.hero h2 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.08; font-weight: 700; letter-spacing: -.03em; }
.hero .lesson { display: flex; align-items: center; gap: 12px; color: rgba(238,241,236,.82); font-size: 14.5px; }
.hero .lesson .k { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.1); display: grid; place-items: center; backdrop-filter: blur(6px); }
.hero .prog { display: flex; align-items: center; gap: 14px; max-width: 420px; color: rgba(238,241,236,.7); font-size: 13px; }
.hero .prog .bar { flex: 1; background: rgba(255,255,255,.14); }
.hero .prog .bar > i { background: var(--lime); }
.hero .acts { display: flex; gap: 10px; margin-top: 6px; }
.hero .btn.glass { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.12); color: #fff; backdrop-filter: blur(8px); }
.hero .btn.glass:hover { background: rgba(255,255,255,.16); }
.me-stack { display: grid; grid-template-rows: auto 1fr; gap: 20px; min-width: 0; }
.home-top > *, .home-grid > * { min-width: 0; }
.dark-card { background: #121516; color: #EEF1EC; border: 1px solid rgba(255,255,255,.06); border-radius: 24px; }
[data-theme="dark"] .dark-card { background: var(--surface); border-color: var(--line); }
.lvl { padding: 22px 24px; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.lvl .t { font-size: 13px; color: rgba(238,241,236,.58); font-weight: 500; }
.lvl .v { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; }
.lvl .s { font-size: 13px; color: rgba(238,241,236,.6); margin-top: 6px; }
.streak { padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.streak .row { display: flex; align-items: center; gap: 12px; }
.streak .fl { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--faint); }
.streak .fl.on { background: var(--accent-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent-line); }
[data-theme="dark"] .streak .fl.on { color: var(--lime); }
.streak .row b { font-size: 18px; font-weight: 700; display: block; letter-spacing: -.01em; }
.streak .row span { font-size: 13px; color: var(--mut); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week div { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; color: var(--faint); }
.week i { width: 100%; height: 30px; border-radius: 9px; background: var(--surface-2); display: grid; place-items: center; }
.week i.on { background: var(--mark); color: var(--mark-ink); }
.week i.today { box-shadow: inset 0 0 0 1.5px var(--line-3); }
.week i .ic { width: 15px; height: 15px; }
.repeat-cta { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); transition: border-color .2s, background .2s; text-align: left; width: 100%; }
.repeat-cta:hover { border-color: var(--line-2); background: var(--surface-3); }
.repeat-cta .k { width: 40px; height: 40px; border-radius: 12px; background: var(--mark); color: var(--mark-ink); display: grid; place-items: center; flex: none; }
.repeat-cta b { display: block; font-weight: 600; }
.repeat-cta span { font-size: 13px; color: var(--mut); }
.repeat-cta > .ic:last-child { margin-left: auto; color: var(--faint); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 20px; margin-top: 20px; align-items: start; }
.home-grid > div { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* курс-карточка */
.courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.courses.row3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ccard { position: relative; display: flex; flex-direction: column; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease), border-color .2s, box-shadow .35s var(--ease); box-shadow: var(--shadow); }
.ccard:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 24px 48px -28px rgba(0,0,0,.55); }
.ccard .cv { position: relative; aspect-ratio: 16 / 9.5; overflow: hidden; background: var(--surface-3); }
.ccard .cv img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ccard:hover .cv img { transform: scale(1.05); }
.ccard .cv::after { content: ''; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(0deg, rgba(0,0,0,.35), transparent); }
.ccard .bd { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ccard .tr { font-size: 12.5px; color: var(--mut); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccard h3 { font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.ccard .ft { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.ccard .ft .l { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--mut); }
.ccard .ft .l b { margin-left: auto; color: var(--text); font-weight: 600; }
.ccard .done-mark { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); display: grid; place-items: center; z-index: 2; }
.ccard.draft .cv img { filter: grayscale(.8) brightness(.7); }

/* список строк */
.rows { display: flex; flex-direction: column; }
.rowi { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-top: 1px solid var(--line); min-width: 0; }
.rowi:first-child { border-top: 0; }
.rowi.link { border-radius: 12px; padding: 12px; margin: 0 -8px; border-top-color: transparent; transition: background .2s; }
.rowi.link + .rowi.link { box-shadow: 0 -1px 0 var(--line); }
.rowi.link:hover { background: var(--surface-2); box-shadow: none; }
.rowi.link:hover + .rowi.link { box-shadow: none; }
.rowi .tx { min-width: 0; flex: 1; }
.rowi .tx b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rowi .tx span { display: block; font-size: 13px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rowi .end { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.datebox { width: 52px; height: 56px; flex: none; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.datebox b { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.datebox span { font-size: 11.5px; color: var(--mut); margin-top: 3px; }
.datebox.today { background: var(--mark); border-color: transparent; color: var(--mark-ink); }
.datebox.today span { color: inherit; opacity: .75; }
.kind-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.thumb { width: 64px; height: 44px; flex: none; border-radius: 10px; overflow: hidden; background: var(--surface-3); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* рейтинг филиалов */
.board { display: flex; flex-direction: column; gap: 12px; }
.board .it { display: grid; grid-template-columns: 22px 1fr 44px; gap: 10px; align-items: center; font-size: 13.5px; }
.board .it .n { color: var(--faint); font-weight: 600; }
.board .it .nm { display: flex; flex-direction: column; gap: 6px; }
.board .it.me .nm span { font-weight: 600; }
.board .it .v { text-align: right; font-weight: 600; }

/* ── курс ───────────────────────────────────────────────────────────────── */
.course-hero { position: relative; border-radius: 26px; overflow: hidden; color: #EEF1EC; background: #0F1213; isolation: isolate; min-height: 360px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; padding: 36px 40px; }
.course-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.course-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,12,13,.97) 0%, rgba(10,12,13,.88) 42%, rgba(10,12,13,.35) 100%), linear-gradient(0deg, rgba(10,12,13,.6), transparent 50%); }
.course-hero .info { max-width: 720px; display: flex; flex-direction: column; gap: 14px; }
.course-hero .over { color: var(--lime); font-weight: 600; font-size: 13.5px; display: flex; gap: 10px; align-items: center; }
.course-hero h1 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; }
.course-hero p { color: rgba(238,241,236,.78); font-size: 15.5px; max-width: 60ch; }
.course-hero .meta { color: rgba(238,241,236,.72); }
.course-hero .acts { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.course-hero .side-ring { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 22px; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.course-hero .side-ring .ring .tr { stroke: rgba(255,255,255,.12); } .course-hero .side-ring .ring .fg { stroke: var(--lime); }
.course-hero .side-ring small { color: rgba(238,241,236,.65); font-size: 12.5px; }
.course-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; margin-top: 24px; align-items: start; }
.mods { display: flex; flex-direction: column; gap: 14px; }
.mod { padding: 6px; }
.mod-h { display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; border-radius: 14px; user-select: none; }
.mod-h:hover { background: var(--surface-2); }
.mod-h .no { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; background: var(--surface-2); color: var(--text-2); flex: none; }
.mod-h .no.done { background: var(--mark); color: var(--mark-ink); }
.mod-h h3 { font-size: 16px; font-weight: 600; }
.mod-h .meta { margin-top: 2px; }
.mod-h .chev { margin-left: auto; color: var(--faint); transition: transform .3s var(--ease); }
.mod.closed .chev { transform: rotate(-90deg); }
.mod.closed .les { display: none; }
.les { display: flex; flex-direction: column; padding: 2px 6px 6px; }
.lrow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 10px; border-radius: 12px; transition: background .2s; }
.lrow:hover { background: var(--surface-2); }
.lrow .st { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-2); color: var(--mut); margin-left: 4px; }
.lrow .st.done { background: var(--mark); border-color: transparent; color: var(--mark-ink); }
.lrow .st.cur { border-color: var(--mark); color: var(--text); box-shadow: 0 0 0 4px var(--accent-soft); }
.lrow .st.lock { border-style: dashed; color: var(--faint); }
.lrow .t { font-weight: 500; }
.lrow .t small { display: flex; gap: 12px; color: var(--mut); font-size: 12.5px; font-weight: 400; margin-top: 2px; }
.lrow.locked { opacity: .55; }
.lrow .r { color: var(--mut); font-size: 13px; display: flex; gap: 8px; align-items: center; }
.aside-card { padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.facts div { display: flex; flex-direction: column; gap: 2px; }
.facts span { font-size: 12.5px; color: var(--mut); }
.facts b { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.skills { display: flex; flex-wrap: wrap; gap: 8px; }
.skills span { padding: 6px 10px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.stars { display: inline-flex; gap: 4px; }
.stars button { color: var(--faint); transition: transform .15s, color .15s; }
.stars button:hover { transform: scale(1.12); }
.stars button.on { color: var(--warn); }
[data-theme="dark"] .stars button.on { color: var(--lime); }

/* ── урок ───────────────────────────────────────────────────────────────── */
.player { display: grid; grid-template-columns: 320px minmax(0, 1fr); min-height: 100dvh; }
.player.no-outline { grid-template-columns: 0 minmax(0, 1fr); }
.player.no-outline .outline { visibility: hidden; }
.outline { position: sticky; top: 0; height: 100dvh; overflow: auto; background: var(--surface); border-right: 1px solid var(--line); padding: 18px 14px 24px; }
.outline .oc { display: flex; align-items: center; gap: 10px; padding: 4px 6px 16px; }
.outline .oc a { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--mut); flex: none; }
.outline .oc a:hover { background: var(--surface-2); color: var(--text); }
.outline .oc b { font-size: 14px; font-weight: 600; line-height: 1.3; }
.outline .op { padding: 0 6px 18px; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--mut); }
.outline h6 { margin: 14px 6px 6px; font-size: 12px; font-weight: 600; color: var(--faint); }
.outline .ol { display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 10px; font-size: 13.5px; color: var(--text-2); line-height: 1.3; }
.outline .ol:hover { background: var(--surface-2); }
.outline .ol[aria-current="true"] { background: var(--surface-3); color: var(--text); font-weight: 500; }
.outline .ol .st { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 1.5px solid var(--line-2); color: var(--faint); }
.outline .ol .st .ic { width: 12px; height: 12px; }
.outline .ol .st.done { background: var(--mark); border-color: transparent; color: var(--mark-ink); }
.outline .ol.locked { opacity: .5; pointer-events: none; }
.pmain { min-width: 0; display: flex; flex-direction: column; }
.ptop { position: sticky; top: 0; z-index: 10; height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 28px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ptop .crumb { min-width: 0; display: flex; flex-direction: column; }
.ptop .crumb span { font-size: 12.5px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptop .crumb b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptop .pbar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); }
.ptop .pbar i { display: block; height: 100%; background: var(--mark); transition: width .6s var(--ease); }
.pbody { flex: 1; padding: 20px 28px 120px; }
.lesson-w { max-width: 820px; margin: 0 auto; }
.lesson-w.wide { max-width: 1120px; }
.lesson-h { margin: 18px 0 28px; display: flex; flex-direction: column; gap: 12px; }
.lesson-h .k { display: inline-flex; align-items: center; gap: 8px; color: var(--mut); font-weight: 500; font-size: 13.5px; }
.lesson-h h1 { font-size: clamp(28px, 3vw, 40px); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; }
.pfoot { position: sticky; bottom: 0; z-index: 10; display: flex; align-items: center; gap: 10px; padding: 14px 28px calc(14px + var(--safe-bottom)); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 -1px 0 var(--line); }
.pfoot .mid { margin: 0 auto; display: flex; gap: 10px; align-items: center; }
.done-pill { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 12px; background: var(--good-soft); color: var(--good); font-weight: 600; }

/* статья */
.article { font-size: 17px; line-height: 1.7; color: var(--text-2); display: flex; flex-direction: column; gap: 20px; }
.article h2 { font-size: 23px; line-height: 1.25; color: var(--text); font-weight: 650; letter-spacing: -.02em; margin-top: 14px; }
.article p { max-width: 68ch; }
.article ul.list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.article ul.list li { position: relative; padding-left: 26px; }
.article ul.list li::before { content: ''; position: absolute; left: 4px; top: .72em; width: 8px; height: 8px; border-radius: 3px; background: var(--mark); }
.article ol.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 0; }
.article ol.steps li { counter-increment: s; position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 0 0 18px; }
.article ol.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); font-weight: 700; font-size: 15px; z-index: 1; }
.article ol.steps li::after { content: ''; position: absolute; left: 16.5px; top: 38px; bottom: 4px; width: 1px; background: var(--line-2); }
.article ol.steps li:last-child::after { display: none; }
.article ol.steps li:last-child { padding-bottom: 0; }
.article .keyb { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 18px 20px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); font-weight: 500; }
.article .keyb { align-items: start; }
.article .keyb .k { width: 28px; height: 28px; margin-top: 2px; border-radius: 9px; display: grid; place-items: center; background: var(--mark); color: var(--mark-ink); font-weight: 800; font-size: 17px; line-height: 1; }
.article blockquote { margin: 0; padding: 22px 26px; border-radius: 18px; background: var(--surface-2); font-size: 21px; line-height: 1.45; color: var(--text); font-weight: 500; letter-spacing: -.01em; position: relative; }
.article blockquote .ic { position: absolute; top: -14px; left: 22px; width: 30px; height: 30px; padding: 6px; border-radius: 10px; background: var(--mark); color: var(--mark-ink); }
.article .dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.article .dodont > div { padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface); }
.article .dodont h4 { display: flex; align-items: center; gap: 8px; font-size: 14.5px; margin-bottom: 12px; color: var(--text); }
.article .dodont h4 .ic { width: 22px; height: 22px; }
.article .dodont .g h4 .ic { color: var(--good); } .article .dodont .b h4 .ic { color: var(--danger); }
.article .dodont ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15.5px; line-height: 1.55; }
.article .term { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.article .term + .term { margin-top: -20px; }
.article .term b { color: var(--text); font-weight: 600; }
.article hr { border: 0; height: 1px; background: var(--line); margin: 6px 0; }
.article figure { margin: 0; } .article figure img { border-radius: 16px; }
.media-box { border-radius: 22px; overflow: hidden; background: #000; position: relative; box-shadow: var(--shadow); }
.media-box video { width: 100%; display: block; aspect-ratio: 16 / 9; background: #000; }
.media-box iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.vctl { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--mut); font-size: 13px; flex-wrap: wrap; }
.vctl .seg button { height: 28px; padding: 0 10px; font-size: 12.5px; }
/* аудио */
.audio { padding: 28px; border-radius: 24px; background: #121516; color: #EEF1EC; display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; border: 1px solid rgba(255,255,255,.06); }
.audio .art { width: 200px; aspect-ratio: 1; border-radius: 18px; overflow: hidden; position: relative; }
.audio .art img { width: 100%; height: 100%; object-fit: cover; }
.audio .ctl { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.audio .ttl b { display: block; font-size: 20px; font-weight: 650; letter-spacing: -.015em; }
.audio .ttl span { font-size: 13px; color: rgba(238,241,236,.55); }
.wave { position: relative; height: 56px; display: flex; align-items: center; gap: 3px; cursor: pointer; }
.wave i { flex: 1; border-radius: 3px; background: rgba(255,255,255,.18); min-width: 2px; transition: background .2s; }
.wave i.on { background: var(--lime); }
.audio .row { display: flex; align-items: center; gap: 14px; }
.audio .pp { width: 58px; height: 58px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); display: grid; place-items: center; transition: transform .2s var(--ease); }
.audio .pp:hover { transform: scale(1.05); }
.audio .sk { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: rgba(238,241,236,.75); }
.audio .sk:hover { background: rgba(255,255,255,.08); color: #fff; }
.audio .tm { font-variant-numeric: tabular-nums; color: rgba(238,241,236,.6); font-size: 13px; margin-left: auto; }
.audio .spd { height: 32px; padding: 0 10px; border-radius: 9px; background: rgba(255,255,255,.08); font-weight: 600; font-size: 13px; }
/* слайды */
.slides { display: flex; flex-direction: column; gap: 14px; }
.slide-stage { position: relative; border-radius: 22px; overflow: hidden; background: #0F1213; aspect-ratio: 16 / 9; box-shadow: var(--shadow); }
.slide-stage canvas { width: 100%; height: 100%; display: block; }
.slide-stage .nv { position: absolute; top: 0; bottom: 0; width: 22%; display: flex; align-items: center; padding: 0 18px; color: #fff; opacity: 0; transition: opacity .25s; }
.slide-stage:hover .nv { opacity: 1; }
.slide-stage .nv.p { left: 0; } .slide-stage .nv.n { right: 0; justify-content: flex-end; }
.slide-stage .nv span { width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); display: grid; place-items: center; }
.slide-bar { display: flex; align-items: center; gap: 12px; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; flex: 1; scroll-snap-type: x mandatory; }
.thumbs button { flex: none; width: 112px; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line); scroll-snap-align: start; opacity: .6; transition: opacity .2s; }
.thumbs button canvas { width: 100%; height: 100%; display: block; }
.thumbs button[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--mark); }
.thumbs button.seen { opacity: .9; }
/* заметки */
.notes-panel { margin-top: 36px; }
.notes-panel textarea { width: 100%; min-height: 110px; resize: vertical; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); line-height: 1.55; }
.notes-panel textarea:focus { outline: none; border-color: var(--line-3); }

/* ── тест ───────────────────────────────────────────────────────────────── */
.quiz-intro { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.qfacts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.qfacts div { background: var(--surface); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.qfacts span { font-size: 12.5px; color: var(--mut); }
.qfacts b { font-size: 20px; font-weight: 650; letter-spacing: -.01em; }
.qrun { max-width: 780px; margin: 0 auto; }
.qtop { display: flex; align-items: center; gap: 14px; margin: 8px 0 26px; }
.qdots { display: flex; gap: 5px; flex: 1; }
.qdots button { flex: 1; height: 6px; border-radius: 6px; background: var(--mark-track); transition: background .2s; }
.qdots button.ans { background: color-mix(in srgb, var(--mark) 45%, transparent); }
.qdots button.cur { background: var(--mark); }
.timer { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; background: var(--surface-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.timer.low { background: var(--danger-soft); color: var(--danger); }
.qcard { padding: 30px 32px; }
.qcard .qn { color: var(--mut); font-size: 13px; font-weight: 500; display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.qcard h2 { font-size: 22px; line-height: 1.35; font-weight: 600; letter-spacing: -.015em; margin-bottom: 22px; }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: center; padding: 15px 18px; border-radius: 14px; background: var(--surface-2); border: 1.5px solid transparent; text-align: left; font-size: 15.5px; transition: border-color .15s, background .15s, transform .15s var(--ease); }
.opt:hover { border-color: var(--line-3); }
.opt:active { transform: scale(.995); }
.opt .mk { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-3); display: grid; place-items: center; color: transparent; }
.opt.multi .mk { border-radius: 7px; }
.opt[aria-checked="true"] { border-color: var(--mark); background: var(--accent-soft); }
.opt[aria-checked="true"] .mk { background: var(--mark); border-color: var(--mark); color: var(--mark-ink); }
.opt .mk .ic { width: 14px; height: 14px; }
.opt.right { border-color: var(--good); background: var(--good-soft); }
.opt.right .mk { background: var(--good); border-color: var(--good); color: #fff; }
.opt.wrong { border-color: var(--danger); background: var(--danger-soft); }
.opt.wrong .mk { background: var(--danger); border-color: var(--danger); color: #fff; }
.opt[disabled] { cursor: default; }
textarea.ans { width: 100%; min-height: 180px; resize: vertical; padding: 16px 18px; border-radius: 14px; background: var(--surface-2); border: 1.5px solid var(--line); font-size: 15.5px; line-height: 1.6; }
textarea.ans:focus { outline: none; border-color: var(--mark); }
.qnav { display: flex; gap: 10px; margin-top: 22px; }
.qnav .r { margin-left: auto; display: flex; gap: 10px; }
.result-hero { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; padding: 30px 34px; }
.result-hero h2 { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.result-hero p { color: var(--mut); margin-top: 8px; }
.result-hero .acts { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.rev { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.rev .qcard { padding: 22px 24px; }
.rev .qcard h2 { font-size: 17px; margin-bottom: 14px; }
.rev .opt { padding: 11px 14px; font-size: 14.5px; }
.explain { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14.5px; color: var(--text-2); }
.explain .ic { width: 20px; height: 20px; color: var(--mut); }
.open-ans { padding: 14px 16px; border-radius: 14px; background: var(--surface-2); white-space: pre-wrap; font-size: 15px; line-height: 1.6; }
.qmark { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13.5px; }
.qmark.ok { color: var(--good); } .qmark.no { color: var(--danger); } .qmark.part { color: var(--warn); } .qmark.wait { color: var(--mut); }
/* повторение */
.repeat-w { max-width: 680px; margin: 0 auto; }
.flip-in { animation: flip .45s var(--ease) both; }
@keyframes flip { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; }

/* ── задание ─────────────────────────────────────────────────────────────── */
.task-box { padding: 24px 26px; display: flex; flex-direction: column; gap: 16px; }
.crit { display: flex; flex-direction: column; gap: 8px; }
.crit div { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 15px; }
.crit .ic { width: 20px; height: 20px; color: var(--mut); margin-top: 1px; }
.files { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; max-width: 100%; min-width: 0; }
.fchip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fchip button { color: var(--faint); display: grid; place-items: center; }
.fchip button:hover { color: var(--danger); }
.sub-h { display: flex; flex-direction: column; gap: 12px; }
.sub-it { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.sub-it .hd { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--mut); }
.sub-it .hd .badge { margin-left: auto; }
.sub-it .txt { white-space: pre-wrap; line-height: 1.6; }
.sub-it .rv { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: 14.5px; }

/* ── формы и окна ───────────────────────────────────────────────────────── */
.fld { display: flex; flex-direction: column; gap: 7px; }
.fld > span { font-size: 13px; font-weight: 500; color: var(--mut); }
.fld > span i { color: var(--danger); font-style: normal; }
.inp, .ta { width: 100%; height: 42px; padding: 0 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); transition: border-color .2s, box-shadow .2s; }
.ta { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.55; }
.inp:focus, .ta:focus, .sel:focus { outline: none; border-color: var(--mark); box-shadow: 0 0 0 3px var(--accent-soft); }
.inp::placeholder, .ta::placeholder { color: var(--faint); }
.form { display: flex; flex-direction: column; gap: 16px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.chk { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; user-select: none; }
.chk input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--line-3); display: grid; place-items: center; margin: 0; transition: background .15s, border-color .15s; flex: none; }
.chk input:checked { background: var(--mark); border-color: var(--mark); }
.chk input:checked::after { content: ''; width: 5px; height: 10px; border: solid var(--mark-ink); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.sw { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.sw input { appearance: none; -webkit-appearance: none; width: 38px; height: 22px; border-radius: 22px; background: var(--surface-3); border: 1px solid var(--line-2); margin: 0; transition: background .2s; position: relative; flex: none; }
.sw input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--faint); transition: transform .25s var(--ease), background .2s; }
.sw input:checked { background: var(--mark); border-color: transparent; }
.sw input:checked::after { transform: translateX(16px); background: var(--mark-ink); }
.backdrop { position: fixed; inset: 0; z-index: 60; background: var(--scrim); display: grid; place-items: center; padding: 24px; animation: fade .2s ease both; backdrop-filter: blur(3px); }
@keyframes fade { from { opacity: 0; } }
.dialog { width: min(560px, 100%); max-height: calc(100dvh - 48px); display: flex; flex-direction: column; background: var(--surface); border-radius: 22px; box-shadow: var(--pop); animation: pop .3s var(--ease) both; }
.dialog.wide { width: min(880px, 100%); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.dialog .dh { display: flex; align-items: center; gap: 12px; padding: 20px 24px 6px; }
.dialog .dh h2 { font-size: 19px; font-weight: 650; letter-spacing: -.015em; }
.dialog .dh .x { margin-left: auto; }
.dialog .db { padding: 14px 24px 18px; overflow: auto; margin-block: 2px; }
.dialog .df { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 24px 20px; border-top: 1px solid var(--line); }
.dialog .df .l { margin-right: auto; }
.dialog .err { color: var(--danger); font-size: 13.5px; }
.drawer-bd { position: fixed; inset: 0; z-index: 60; background: var(--scrim); animation: fade .2s ease both; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(560px, 100%); background: var(--bg); box-shadow: var(--pop); display: flex; flex-direction: column; animation: slide .35s var(--ease) both; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.drawer .dh { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer .dh h2 { font-size: 18px; font-weight: 650; }
.drawer .dh .x { margin-left: auto; }
.drawer .db { flex: 1; overflow: auto; padding: 20px 22px 32px; display: flex; flex-direction: column; gap: 18px; }
.pop { position: fixed; z-index: 70; background: var(--surface); border-radius: 18px; box-shadow: var(--pop); width: 380px; max-height: 70vh; display: flex; flex-direction: column; animation: pop .25s var(--ease) both; }
.pop .ph { display: flex; align-items: center; padding: 16px 18px 10px; }
.pop .ph b { font-size: 16px; }
.pop .ph button { margin-left: auto; font-size: 13px; color: var(--mut); font-weight: 500; }
.pop .pb { overflow: auto; padding: 0 8px 10px; }
.note { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 10px; border-radius: 12px; }
.note:hover { background: var(--surface-2); }
.note .k { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--text-2); }
.note.new .k { background: var(--mark); color: var(--mark-ink); }
.note p { font-size: 13.5px; line-height: 1.45; }
.note span { font-size: 12px; color: var(--faint); }
#toast { position: fixed; left: 50%; bottom: calc(26px + var(--safe-bottom)); transform: translateX(-50%) translateY(20px); z-index: 99; padding: 12px 18px; border-radius: 14px; background: #050607; color: #EEF1EC; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s var(--ease); display: flex; align-items: center; gap: 10px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.6); max-width: calc(100% - 32px); }
#toast.on { opacity: 1; transform: translateX(-50%); }
#toast .ic { color: var(--lime); }
/* поиск */
.palette { width: min(640px, 100%); background: var(--surface); border-radius: 20px; box-shadow: var(--pop); overflow: hidden; align-self: start; margin-top: 10vh; animation: pop .25s var(--ease) both; }
.palette .ph { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.palette input { flex: 1; height: 60px; border: 0; background: transparent; font-size: 17px; }
.palette input:focus { outline: none; }
.palette .pr { max-height: 56vh; overflow: auto; padding: 8px; }
.palette h6 { margin: 10px 10px 4px; font-size: 12px; font-weight: 600; color: var(--faint); }
.palette a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; }
.palette a:hover, .palette a.sel-i { background: var(--surface-2); }
.palette a span { color: var(--mut); font-size: 13px; margin-left: auto; white-space: nowrap; }

/* ── мероприятия ────────────────────────────────────────────────────────── */
.ev-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.cal { padding: 20px; }
.cal-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cal-h h3 { font-size: 18px; font-weight: 650; text-transform: capitalize; }
.cal-h .nav2 { margin-left: auto; display: flex; gap: 6px; }
.cal-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-g .wd { font-size: 12px; color: var(--faint); text-align: center; padding-bottom: 6px; font-weight: 500; }
.cal-d { min-height: 104px; border-radius: 14px; background: var(--surface-2); padding: 8px; display: flex; flex-direction: column; gap: 4px; min-width: 0; border: 1px solid transparent; }
.cal-d.out { opacity: .38; }
.cal-d.today { border-color: var(--mark); }
.cal-d .dn { font-size: 13px; font-weight: 600; color: var(--mut); }
.cal-d.today .dn { color: var(--text); }
.cal-e { display: block; text-align: left; font-size: 12px; line-height: 1.3; padding: 5px 7px; border-radius: 8px; background: var(--surface); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; border: 1px solid var(--line); }
.cal-e:hover { border-color: var(--line-3); }
.cal-e.must { background: var(--mark); color: var(--mark-ink); border-color: transparent; }
.cal-e.past { opacity: .6; }
.ev-card { display: flex; flex-direction: column; gap: 14px; }
.ev-it { display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 14px; border-radius: 16px; transition: background .2s; text-align: left; width: 100%; }
.ev-it:hover { background: var(--surface-2); }
.ev-it b { display: block; font-weight: 600; line-height: 1.3; }
.ev-it .meta { margin-top: 4px; }
.ev-kind { font-size: 12.5px; color: var(--mut); font-weight: 500; }

/* ── база знаний ────────────────────────────────────────────────────────── */
.kb-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 26px; align-items: start; }
.kb-nav { position: sticky; top: calc(var(--top-h) + 8px); display: flex; flex-direction: column; gap: 2px; }
.kb-nav button { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 10px; color: var(--mut); font-weight: 500; text-align: left; }
.kb-nav button:hover { background: var(--surface-2); color: var(--text); }
.kb-nav button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.kb-nav button span { margin-left: auto; color: var(--faint); font-size: 12.5px; }
.kb-search { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 18px; }
.kb-search input { flex: 1; border: 0; background: transparent; font-size: 15.5px; height: 100%; }
.kb-search input:focus { outline: none; }
.kb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.kb-card { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; transition: transform .3s var(--ease), border-color .2s; }
.kb-card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.kb-card h3 { font-size: 16px; font-weight: 600; line-height: 1.35; }
.kb-card p { font-size: 13.5px; color: var(--mut); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kb-card .meta { margin-top: auto; }
.kb-art { max-width: 820px; }
.kb-art .head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.kb-art h1 { font-size: clamp(28px, 3vw, 38px); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; }
.ack-box { margin-top: 32px; padding: 20px 22px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ack-box .t b { display: block; font-weight: 600; }
.ack-box .t span { font-size: 13px; color: var(--mut); }
.ack-box .btn { margin-left: auto; }

/* ── результаты ─────────────────────────────────────────────────────────── */
.prof { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 26px 30px; }
.prof h2 { font-size: 26px; font-weight: 700; letter-spacing: -.025em; }
.prof .meta { margin-top: 6px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kpi span { font-size: 13px; color: var(--mut); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.kpi b { font-size: 32px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.kpi b small { font-size: 16px; font-weight: 600; color: var(--mut); margin-left: 4px; letter-spacing: 0; }
.kpi .d { font-size: 12.5px; color: var(--mut); display: inline-flex; align-items: center; gap: 4px; }
.kpi .d.up { color: var(--good); } .kpi .d.down { color: var(--danger); }
.kpi.hl { background: #121516; color: #EEF1EC; border-color: rgba(255,255,255,.06); }
[data-theme="dark"] .kpi.hl { background: var(--surface-2); }
.kpi.hl b { color: var(--lime); }
[data-theme="light"] .kpi.hl b { color: var(--lime); }
.kpi.hl span { color: rgba(238,241,236,.6); }
.heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 13px); gap: 3px; overflow-x: auto; padding-bottom: 4px; }
.heat i { width: 13px; height: 13px; border-radius: 3px; background: var(--surface-3); }
.heat i.l1 { background: color-mix(in srgb, var(--mark) 30%, var(--surface-3)); } .heat i.l2 { background: color-mix(in srgb, var(--mark) 55%, var(--surface-3)); }
.heat i.l3 { background: color-mix(in srgb, var(--mark) 80%, var(--surface-3)); } .heat i.l4 { background: var(--mark); }
.heat-legend { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--faint); margin-top: 8px; justify-content: flex-end; }
.heat-legend i { width: 11px; height: 11px; border-radius: 3px; }
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bdg { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; border-radius: 16px; background: var(--surface-2); text-align: center; font-size: 12.5px; font-weight: 600; color: var(--faint); }
.bdg .ic { width: 30px; height: 30px; }
.bdg.got { color: var(--text); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
[data-theme="dark"] .bdg.got .ic { color: var(--lime); }
.skillbars { display: flex; flex-direction: column; gap: 14px; }
.skillbars div { display: grid; grid-template-columns: minmax(0, 1fr) 46px; gap: 6px 12px; align-items: center; font-size: 14px; }
.skillbars .bar { grid-column: 1 / -1; }
.skillbars b { text-align: right; font-weight: 600; }
.cert-row { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; }
.cert-row:hover { background: var(--surface-2); }
.cert-row .seal { width: 44px; height: 44px; border-radius: 12px; background: var(--mark); color: var(--mark-ink); display: grid; place-items: center; flex: none; }
.lb { display: flex; flex-direction: column; }
.lb .it { display: grid; grid-template-columns: 26px 32px 1fr auto; gap: 10px; align-items: center; padding: 8px 6px; border-radius: 10px; font-size: 14px; }
.lb .it.me { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.lb .it .n { color: var(--faint); font-weight: 600; text-align: center; }
.lb .it b { font-weight: 600; font-variant-numeric: tabular-nums; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 500; color: var(--mut); font-size: 12.5px; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th.r, .tbl td.r { text-align: right; }
.tbl th button { display: inline-flex; align-items: center; gap: 4px; color: inherit; font-weight: inherit; }
.tbl th button:hover { color: var(--text); }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr.link { cursor: pointer; }
.tbl tbody tr.link:hover { background: var(--surface-2); }
.tbl .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tbl .who b { font-weight: 600; white-space: nowrap; }
.tbl .who span { font-size: 12.5px; color: var(--mut); display: block; }
.tbl .mini { display: flex; align-items: center; gap: 10px; min-width: 120px; }
.tbl .mini .bar { flex: 1; height: 5px; }
.tbl .mini b { width: 38px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.tbl-wrap { overflow-x: auto; }

/* ── сертификат ─────────────────────────────────────────────────────────── */
.cert-page { display: grid; place-items: center; padding: 20px 0 40px; }
.cert { width: min(1060px, 100%); aspect-ratio: 297 / 210; background: #0E1112; color: #EEF1EC; border-radius: 18px; position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 34%; box-shadow: var(--pop); }
.cert .l { padding: 6% 6% 5%; display: flex; flex-direction: column; }
.cert .l .brand { padding: 0; } .cert .l .brand b { font-size: 22px; }
.cert .l .k { margin-top: auto; color: var(--lime); font-weight: 600; font-size: clamp(12px, 1.4vw, 16px); }
.cert .l h1 { font-size: clamp(26px, 4.4vw, 52px); line-height: 1; letter-spacing: -.035em; font-weight: 700; margin-top: 10px; }
.cert .l .c { margin-top: 18px; font-size: clamp(13px, 1.6vw, 19px); color: rgba(238,241,236,.75); }
.cert .l .c b { color: #EEF1EC; font-weight: 600; }
.cert .l .f { margin-top: auto; display: flex; gap: 40px; font-size: clamp(10px, 1.1vw, 13px); color: rgba(238,241,236,.55); }
.cert .l .f b { display: block; color: #EEF1EC; font-size: clamp(12px, 1.3vw, 15px); font-weight: 600; margin-top: 2px; }
.cert .r { position: relative; background: center / cover no-repeat; }
.cert .r::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #0E1112, rgba(14,17,18,.2)); }
.cert .seal-b { position: absolute; right: 9%; bottom: 9%; width: 26%; aspect-ratio: 1; border-radius: 50%; background: var(--lime); color: var(--lime-ink); display: grid; place-items: center; text-align: center; font-weight: 700; font-size: clamp(9px, 1vw, 12px); line-height: 1.2; }
.cert .seal-b .ic { width: 38%; height: 38%; margin-bottom: 4%; }
.cert .seal-b div { display: flex; flex-direction: column; align-items: center; }

/* ── аналитика ──────────────────────────────────────────────────────────── */
.an-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.an-row { display: grid; gap: 20px; margin-top: 20px; }
.an-row.c2 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.an-row.c2e { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.an-row > *, .kpis > *, .an-kpis > * { min-width: 0; }
.an-row.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chart { position: relative; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .gl { stroke: var(--line); stroke-width: 1; }
.chart .ax { fill: var(--faint); font-size: 11.5px; font-family: Onest; }
.chart .ln { fill: none; stroke: var(--mark); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .ar { fill: url(#agrad); }
.chart .pt { fill: var(--mark); stroke: var(--surface); stroke-width: 2; }
.chart .br { fill: var(--mark); }
.chart .br.dim { fill: var(--mark-track); }
.chart .hv { fill: transparent; }
.chart .cross { stroke: var(--line-3); stroke-width: 1; }
.ctip { position: absolute; z-index: 5; pointer-events: none; padding: 8px 11px; border-radius: 10px; background: #050607; color: #EEF1EC; font-size: 12.5px; line-height: 1.45; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); }
.ctip b { font-weight: 650; }
.funnel { display: flex; flex-direction: column; gap: 12px; }
.funnel .f { display: grid; grid-template-columns: 150px 1fr 56px; gap: 14px; align-items: center; font-size: 13.5px; }
.funnel .f .tr2 { height: 30px; border-radius: 8px; position: relative; }
.funnel .f .tr2 i { position: absolute; inset: 0 auto 0 0; border-radius: 8px; background: var(--mark); transition: width 1s var(--ease); }
.funnel .f:nth-child(n+2) .tr2 i { opacity: calc(1 - var(--k) * .14); }
.funnel .f b { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.funnel .f .pc { color: var(--mut); font-size: 12px; font-weight: 500; display: block; }
.matrix { width: 100%; border-collapse: separate; border-spacing: 4px; font-size: 13.5px; }
.matrix th { font-weight: 500; color: var(--mut); font-size: 12.5px; text-align: left; padding: 4px 6px; }
.matrix th.c { text-align: center; }
.matrix td.h { padding: 4px 6px; font-weight: 600; white-space: nowrap; }
.matrix td.v { height: 50px; border-radius: 10px; text-align: center; font-weight: 650; font-variant-numeric: tabular-nums; }
.risk { display: flex; flex-direction: column; }
.risk .it { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 10px 8px; border-radius: 12px; cursor: pointer; }
.risk .it:hover { background: var(--surface-2); }
.risk .why { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.hardq .it { padding: 12px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 64px; gap: 6px 14px; align-items: center; }
.hardq .it:first-child { border-top: 0; }
.hardq .it p { font-size: 14px; line-height: 1.4; }
.hardq .it span { font-size: 12.5px; color: var(--mut); grid-column: 1; }
.hardq .it b { grid-row: 1 / 3; grid-column: 2; text-align: right; font-size: 20px; font-weight: 700; color: var(--danger); }
.quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.quotes .q { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; border-radius: 18px; background: var(--surface-2); }
.quotes .q p { font-size: 15px; line-height: 1.5; color: var(--text); }
.quotes .q .w { display: flex; align-items: center; gap: 10px; margin-top: auto; font-size: 12.5px; color: var(--mut); }
.quotes .q .w b { color: var(--text); font-weight: 600; display: block; font-size: 13px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--mut); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; background: var(--mark); }

/* ── конструктор ────────────────────────────────────────────────────────── */
.b-list { display: flex; flex-direction: column; gap: 10px; }
.b-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.b-row:hover { border-color: var(--line-2); }
.b-row .thumb { width: 96px; height: 60px; border-radius: 12px; }
.b-row h3 { font-size: 15.5px; font-weight: 600; }
.b-row .end { display: flex; gap: 10px; align-items: center; }
.builder { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 22px; align-items: start; }
.tree { position: sticky; top: calc(var(--top-h) + 8px); max-height: calc(100dvh - var(--top-h) - 24px); overflow: auto; padding: 12px; }
.tree .tc { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; font-weight: 600; cursor: pointer; }
.tree .tc:hover, .tree .tl:hover { background: var(--surface-2); }
.tree .tc[aria-current="true"], .tree .tl[aria-current="true"] { background: var(--surface-3); }
.tree .tm { margin-top: 8px; }
.tree .tmh { display: flex; align-items: center; gap: 6px; padding: 8px 6px 4px 10px; font-size: 12.5px; font-weight: 600; color: var(--mut); }
.tree .tmh input { flex: 1; min-width: 0; height: 30px; padding: 0 8px; border-radius: 8px; border: 1px solid transparent; background: transparent; font-weight: 600; color: var(--text); }
.tree .tmh input:hover { border-color: var(--line-2); }
.tree .tmh input:focus { outline: none; border-color: var(--mark); background: var(--surface); }
.tree .tl { display: grid; grid-template-columns: 18px 26px 1fr; gap: 8px; align-items: center; padding: 8px 8px; border-radius: 10px; font-size: 13.5px; cursor: pointer; }
.tree .tl .grip { color: var(--faint); cursor: grab; display: grid; place-items: center; }
.tree .tl .ki { color: var(--mut); display: grid; place-items: center; }
.tree .tl.drag { opacity: .4; }
.tree .tl.over { box-shadow: 0 -2px 0 var(--mark); }
.tree .add { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; color: var(--mut); font-size: 13px; font-weight: 500; width: 100%; }
.tree .add:hover { background: var(--surface-2); color: var(--text); }
.ed { padding: 24px 26px; }
.ed-h { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.ed-h h2 { font-size: 19px; font-weight: 650; }
.ed-h .r { margin-left: auto; display: flex; gap: 8px; }
.covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.covers button { aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; opacity: .7; box-shadow: inset 0 0 0 1px var(--line); transition: opacity .2s; }
.covers button img { width: 100%; height: 100%; object-fit: cover; }
.covers button:hover { opacity: 1; }
.covers button[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--mark); }
.blocks { display: flex; flex-direction: column; gap: 10px; }
.blk { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: start; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.blk .bk { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface); color: var(--mut); }
.blk .bt { display: flex; gap: 2px; }
.blk .bt button { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--faint); }
.blk .bt button:hover { background: var(--surface); color: var(--text); }
.blk textarea, .blk input { width: 100%; border: 1px solid transparent; background: transparent; padding: 4px 6px; border-radius: 8px; resize: vertical; line-height: 1.5; }
.blk textarea:focus, .blk input:focus { outline: none; border-color: var(--line-3); background: var(--surface); }
.blk .h { font-size: 18px; font-weight: 650; }
.blk .sub { font-size: 12px; color: var(--faint); margin: 4px 6px 2px; font-weight: 500; }
.blk .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.add-blocks { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; }
.qed { display: flex; flex-direction: column; gap: 12px; }
.qe { padding: 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.qe .qh { display: flex; align-items: center; gap: 10px; }
.qe .qh b { font-size: 13.5px; color: var(--mut); font-weight: 600; }
.qe.draft { border-color: var(--accent-line); }
.qe .qh .r { margin-left: auto; display: flex; gap: 4px; }
.qe .op { display: grid; grid-template-columns: 34px 1fr 34px; gap: 8px; align-items: center; }
.qe .op .okb { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-3); color: transparent; }
.qe .op .okb.multi { border-radius: 8px; }
.qe .op .okb.on { background: var(--good); border-color: var(--good); color: #fff; }
.qe .op .okb .ic { width: 14px; height: 14px; }
.drop { border: 1.5px dashed var(--line-3); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--mut); text-align: center; transition: border-color .2s, background .2s; }
.drop.over { border-color: var(--mark); background: var(--accent-soft); }
.prog-up { height: 4px; border-radius: 4px; background: var(--mark-track); overflow: hidden; width: 100%; }
.prog-up i { display: block; height: 100%; background: var(--mark); width: 0; transition: width .2s; }

/* шаги курса в конструкторе */
.steps-bar { display: flex; align-items: center; gap: 6px; padding: 10px; margin-bottom: 18px; overflow-x: auto; }
.stp { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 14px; text-align: left; flex: none; transition: background .2s; }
.stp:hover { background: var(--surface-2); }
.stp .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; border: 1.5px solid var(--line-3); color: var(--mut); flex: none; }
.stp.ok .n { background: var(--mark); color: var(--mark-ink); border-color: transparent; }
.stp b { display: block; font-weight: 600; font-size: 14px; }
.stp small { display: block; font-size: 12px; color: var(--mut); white-space: nowrap; }
.stp-l { flex: 1; min-width: 16px; height: 1px; background: var(--line-2); }
.kind-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kt { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); text-align: left; transition: border-color .2s, transform .2s var(--ease); }
.kt:hover { border-color: var(--mark); transform: translateY(-1px); }
.kt b { display: block; font-weight: 600; }
.kt small { display: block; font-size: 12.5px; color: var(--mut); margin-top: 2px; }
@media (max-width: 999px) { .kind-tiles { grid-template-columns: 1fr; } }

/* ── проверка ───────────────────────────────────────────────────────────── */
.rv-layout { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 22px; align-items: start; }
.rv-list { padding: 10px; }
.rv-it { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; cursor: pointer; text-align: left; width: 100%; }
.rv-it:hover { background: var(--surface-2); }
.rv-it[aria-current="true"] { background: var(--surface-3); }
.rv-it b { display: block; font-weight: 600; font-size: 14px; }
.rv-it span { display: block; font-size: 12.5px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grade-in { display: flex; align-items: center; gap: 10px; }
.stepper { display: inline-flex; align-items: center; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.stepper button { width: 38px; height: 38px; display: grid; place-items: center; color: var(--mut); }
.stepper button:hover { color: var(--text); }
.stepper b { min-width: 52px; text-align: center; font-weight: 650; font-variant-numeric: tabular-nums; }
.model { padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line-3); font-size: 14px; color: var(--text-2); display: grid; grid-template-columns: 22px 1fr; gap: 10px; }

/* ── мобильный ──────────────────────────────────────────────────────────── */
.tabs { display: none; }
@media (max-width: 1200px) {
  .home-top, .home-grid { grid-template-columns: 1fr; }
  .me-stack { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .an-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .an-row.c2, .an-row.c3 { grid-template-columns: 1fr; }
  .course-body { grid-template-columns: 1fr; }
  .ev-layout { grid-template-columns: 1fr; }
  .rv-layout { grid-template-columns: 340px minmax(0, 1fr); }
}
@media (max-width: 999px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .top { padding: 0 16px; padding-top: var(--safe-top); height: calc(60px + var(--safe-top)); }
  .search-btn { width: 40px; padding: 0; justify-content: center; }
  .search-btn span, .search-btn kbd { display: none; }
  .view { padding: 4px 16px calc(96px + var(--safe-bottom)); }
  .tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 6px 6px calc(6px + var(--safe-bottom)); background: color-mix(in srgb, var(--side-bg) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid rgba(255,255,255,.06); }
  .tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; font-size: 11px; color: rgba(238,241,236,.55); font-weight: 500; position: relative; }
  .tabs a[aria-current="page"] { color: #fff; } .tabs a[aria-current="page"] .ic { color: var(--lime); }
  .tabs a .cnt { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--lime); color: var(--lime-ink); font-size: 10px; font-weight: 700; display: grid; place-items: center; }
  .me-stack { grid-template-columns: 1fr; }
  .hero { min-height: 380px; border-radius: 20px; }
  .hero::before { background: linear-gradient(0deg, rgba(10,12,13,.97) 0%, rgba(10,12,13,.75) 55%, rgba(10,12,13,.2) 100%); }
  .hero-in { padding: 22px; }
  .courses.row3 { grid-template-columns: 1fr; }
  .course-hero { grid-template-columns: 1fr; padding: 24px; min-height: 420px; border-radius: 20px; }
  .course-hero::before { background: linear-gradient(0deg, rgba(10,12,13,.97) 10%, rgba(10,12,13,.6) 70%, rgba(10,12,13,.3)); }
  .course-hero .side-ring { flex-direction: row; justify-content: flex-start; }
  .player, .player.no-outline { grid-template-columns: 1fr; }
  .outline { display: none; }
  .player.show-outline .outline { display: block; position: fixed; inset: 0; z-index: 50; height: 100dvh; width: min(340px, 88vw); box-shadow: var(--pop); }
  .ptop { padding: 0 12px; padding-top: var(--safe-top); height: calc(60px + var(--safe-top)); }
  .pbody { padding: 12px 16px 120px; }
  .pfoot { padding: 10px 12px calc(10px + var(--safe-bottom)); }
  .pfoot .btn span.l { display: none; }
  .article { font-size: 16px; }
  .article .dodont { grid-template-columns: 1fr; }
  .article .term { grid-template-columns: 1fr; gap: 4px; }
  .audio { grid-template-columns: 1fr; padding: 20px; }
  .audio .art { width: 100%; aspect-ratio: 16/9; }
  .quiz-intro { grid-template-columns: 1fr; }
  .qcard { padding: 22px 20px; }
  .result-hero { grid-template-columns: 1fr; justify-items: start; padding: 22px; }
  .kb-layout { grid-template-columns: 1fr; }
  .kb-nav { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .kb-nav button { flex: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-row.c2e { grid-template-columns: 1fr; }
  .prof { grid-template-columns: auto 1fr; padding: 20px; }
  .prof > :last-child { grid-column: 1 / -1; }
  .builder, .rv-layout { grid-template-columns: 1fr; }
  .tree { position: static; max-height: none; }
  .login { grid-template-columns: 1fr; }
  .login-r { position: fixed; inset: 0; z-index: 0; }
  .login-r::after { background: linear-gradient(0deg, #0C0E0F 35%, rgba(12,14,15,.55) 100%); }
  .login-r .cap { display: none; }
  .login-l { position: relative; z-index: 1; padding: calc(28px + var(--safe-top)) 18px calc(24px + var(--safe-bottom)); min-height: 100dvh; }
  .lc { padding: 28px 20px 24px; border-radius: 26px; background: rgba(17,20,22,.84); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
  .lc h1 { font-size: 34px; }
  .lc-ring { width: 50px; height: 50px; }
  .otp { height: 64px; } .otp-c { gap: 6px; } .otp-c i:nth-child(3) { margin-right: 6px; } .otp-c i { font-size: 26px; border-radius: 15px; }
  .form .two, .form .three { grid-template-columns: 1fr; }
  .cal-d { min-height: 64px; padding: 5px; }
  .cal-e { font-size: 0; padding: 0; height: 6px; border-radius: 3px; }
  .funnel .f { grid-template-columns: 110px 1fr 48px; }
  .dialog { border-radius: 20px; }
  .backdrop { padding: 12px; align-items: end; }
  .drawer { width: 100%; }
  .pop { left: 8px !important; right: 8px; width: auto; }
  .b-row { grid-template-columns: 64px minmax(0, 1fr); }
  .b-row .thumb { width: 64px; height: 44px; }
  .b-row .end { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body { background: #fff; }
  .side, .top, .tabs, .no-print { display: none !important; }
  .shell { display: block; }
  .view { padding: 0; max-width: none; }
  .cert { width: 100%; box-shadow: none; border-radius: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ── тур первого входа ──────────────────────────────────────────────────── */
.tour { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.tour-hole { position: absolute; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(6, 8, 9, .72), 0 0 0 2px var(--mark); transition: left .25s var(--ease), top .25s var(--ease), width .25s var(--ease), height .25s var(--ease); }
.tour-card { position: absolute; width: min(380px, calc(100vw - 24px)); background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: var(--pop); padding: 18px 20px 14px; pointer-events: auto; animation: pop .25s var(--ease) both; }
.tour-h { display: flex; align-items: center; gap: 8px; color: var(--mut); font-size: 13px; font-weight: 500; }
.tour-h .ic { width: 18px; height: 18px; color: var(--mark); }
.tour-h .tour-n { margin-left: auto; font-variant-numeric: tabular-nums; }
.tour-t { font-size: 18px; font-weight: 650; letter-spacing: -.015em; margin: 10px 0 6px; }
.tour-x { color: var(--text-2); line-height: 1.5; font-size: 14.5px; }
.tour-f { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.tour-dots { display: flex; gap: 5px; margin: 0 auto; }
.tour-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-3); }
.tour-dots i.on { background: var(--mark); }
@media (max-width: 999px) { .tour-card { padding: 16px; } }
