/* Schoolook Dashboard — общий стиль кабинета и занятия (редизайн TG 7310).
   Токены (--panel, --bg, --line, --sh, --navy, --accent, --fg*, --display, --body) используются и доской (board.css) — имена не менять. */
@font-face { font-family: 'Montserrat X'; src: url('../fonts/Montserrat-ExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Montserrat X'; src: url('../fonts/Montserrat-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Montserrat X'; src: url('../fonts/Montserrat-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Montserrat X'; src: url('../fonts/Montserrat-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --navy: #0b1530; --navy2: #15214a; --navy3: #22305e;
  --bg: #f4f2ec; --bg2: #fbfaf6; --panel: #ffffff; --line: rgba(16,28,63,.09); --line2: rgba(16,28,63,.17);
  --fg: #0f1b3d; --fg2: #4a5372; --fg3: #6f7791;
  --accent: #f2b705; --accent2: #ffd34d; --accent-ink: #1d1600; --accent-soft: #fff6d6; --accent-line: #f3dc8a;
  --green: #15803d; --green-soft: #e6f6ec; --red: #d61f45; --red-soft: #fdecef; --blue: #2547d0; --blue-soft: #edf1ff;
  --r: 16px; --r-sm: 12px;
  --sh: 0 10px 30px -8px rgba(15,27,61,.18), 0 2px 6px rgba(15,27,61,.06);
  --sh-sm: 0 1px 2px rgba(15,27,61,.06), 0 1px 1px rgba(15,27,61,.03);
  --sh-lift: 0 14px 34px -12px rgba(15,27,61,.22), 0 2px 6px rgba(15,27,61,.06);
  --display: 'Montserrat X', 'Montserrat', system-ui, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1); --spring: cubic-bezier(.3,1.4,.5,1);
  --side: 248px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--fg); font: 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
html { height: 100%; } body { height: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; letter-spacing: -.015em; margin: 0; line-height: 1.2; }
.hidden { display: none !important; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 2px; }
svg { flex: none; }
:where(.wrap, .side, .split, .modal, .bnav, .mtop, .auth) svg { width: 20px; height: 20px; }
#app { min-height: 100vh; min-height: 100dvh; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- кнопки и поля ---------- */
.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--r-sm); min-height: 44px; padding: 0 18px; font: 700 14px/1 var(--display); background: var(--accent); color: var(--accent-ink); transition: transform .2s var(--spring), background-color .15s, box-shadow .15s; white-space: nowrap; box-shadow: inset 0 -2px 0 rgba(0,0,0,.08); }
.btn:hover { background: var(--accent2); } .btn:active { transform: scale(.97); }
.btn.ghost { background: var(--panel); color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line2); }
.btn.ghost:hover { background: var(--bg2); box-shadow: inset 0 0 0 1.5px var(--fg3); }
.btn.soft { background: var(--bg); color: var(--fg); box-shadow: none; } .btn.soft:hover { background: #ebe8df; }
.btn.dark { background: var(--navy); color: #fff; box-shadow: none; } .btn.dark:hover { background: var(--navy3); }
.btn.danger { background: var(--panel); color: var(--red); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--red) 35%, transparent); }
.btn.danger:hover { background: var(--red-soft); }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.lg { min-height: 52px; padding: 0 24px; font-size: 15px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }
.btn.sm svg { width: 16px; height: 16px; }
.field { display: block; margin: 0 0 16px; }
.field > span { display: block; font: 600 13px var(--display); color: var(--fg2); margin-bottom: 7px; }
.field > small { display: block; color: var(--fg3); font-size: 12.5px; margin-top: 6px; }
.inp { width: 100%; min-height: 46px; border: 1.5px solid var(--line2); background: var(--panel); border-radius: var(--r-sm); padding: 10px 14px; outline: none; transition: border-color .15s, box-shadow .15s; font-size: 15px; }
.inp:hover { border-color: color-mix(in srgb, var(--fg3) 60%, transparent); }
.inp:focus { border-color: var(--navy); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); }
.inp[readonly] { background: var(--bg2); color: var(--fg2); }
textarea.inp { resize: vertical; min-height: 110px; line-height: 1.5; }
.msg { min-height: 20px; font-size: 14px; color: var(--red); margin: 2px 0 10px; }
.msg.ok { color: var(--green); }
.muted { color: var(--fg3); }
.linkbtn { border: 0; background: none; padding: 4px 0; color: var(--blue); font: 600 14px var(--body); }
.linkbtn:hover { text-decoration: underline; }
.iconbtn { width: 40px; height: 40px; border: 0; border-radius: 11px; background: transparent; display: grid; place-items: center; color: var(--fg2); flex: none; transition: background-color .15s, color .15s; }
.iconbtn:hover { background: var(--bg); color: var(--fg); }
.iconbtn svg { width: 19px; height: 19px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; background: var(--bg); color: var(--fg2); font: 700 12px var(--display); white-space: nowrap; }
.chip.live { background: var(--green-soft); color: var(--green); }
.chip.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); animation: pulse 1.8s infinite; }
.chip.gold { background: var(--accent-soft); color: #7a5a00; }
.chip.warn { background: var(--red-soft); color: var(--red); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); } }

/* ---------- бренд ---------- */
.brand { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; text-decoration: none; color: inherit; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand b { font: 800 17px/1.1 var(--display); display: block; letter-spacing: -.01em; }
.brand small { display: block; font: 600 12px var(--display); color: var(--fg3); margin-top: 2px; }

/* ---------- вход (одна карточка: и ученик на занятии) ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 28px 16px; background:
  radial-gradient(1200px 600px at 10% -10%, rgba(242,183,5,.14), transparent 60%),
  linear-gradient(rgba(16,28,63,.045) 1px, transparent 1px) 0 0 / 24px 24px,
  linear-gradient(90deg, rgba(16,28,63,.045) 1px, transparent 1px) 0 0 / 24px 24px, var(--bg); }
.auth-card { width: 100%; max-width: 420px; background: var(--panel); border-radius: 24px; box-shadow: var(--sh); padding: 32px 30px 26px; border: 1px solid var(--line); }
.auth-card h2 { font-size: 24px; margin-bottom: 6px; }
.auth-card .sub { color: var(--fg2); margin: 0 0 22px; font-size: 14.5px; }
.slogin .who-t { color: var(--fg2); margin: 0 0 20px; }
.tabs { display: flex; gap: 4px; background: var(--bg); padding: 4px; border-radius: 13px; margin-bottom: 22px; }
.tabs button { flex: 1; border: 0; background: transparent; min-height: 40px; border-radius: 10px; font: 700 13.5px var(--display); color: var(--fg2); transition: background-color .15s, color .15s; }
.tabs button.on { background: var(--panel); color: var(--fg); box-shadow: 0 1px 4px rgba(16,28,63,.14); }
.pwrap { position: relative; } .pwrap .inp { padding-right: 48px; }
.pwrap .eye { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); }

/* вход педагога: две колонки */
.split { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--bg); }
.split .pitch { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 48px 56px; display: flex; flex-direction: column; }
.split .pitch::before { content: ''; position: absolute; inset: 0; background:
  linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 28px 28px,
  linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 28px 28px; mask-image: radial-gradient(circle at 70% 60%, #000 20%, transparent 75%); }
.split .pitch > * { position: relative; }
.split .pitch .brand small { color: rgba(255,255,255,.6); }
.pitch h1 { font-size: clamp(30px, 3.3vw, 46px); line-height: 1.08; margin: auto 0 18px; max-width: 560px; letter-spacing: -.025em; }
.pitch h1 em { font-style: normal; color: var(--accent); }
.pitch .lead { color: rgba(255,255,255,.72); font-size: 16.5px; max-width: 480px; margin: 0 0 30px; }
.pitch .feats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; max-width: 540px; margin: 0; padding: 0; list-style: none; }
.pitch .feats li { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: rgba(255,255,255,.85); }
.pitch .feats li svg { width: 20px; height: 20px; color: var(--accent); margin-top: 1px; }
.pitch .feats b { display: block; color: #fff; font: 700 14px var(--display); margin-bottom: 1px; }
.pitch .art { align-self: flex-end; width: 400px; max-width: 80%; height: auto; margin: 28px -56px -48px 0; pointer-events: none; }
.pitch .art .draw { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 2.4s var(--ease) .3s forwards; }
.pitch .art .draw.d2 { animation-delay: 1.1s; } .pitch .art .draw.d3 { animation-delay: 1.8s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.split .formside { display: grid; place-items: center; padding: 40px 24px; }
.split .formside .auth-card { box-shadow: none; border: 0; background: transparent; padding: 0; max-width: 400px; }
.split .formside .brand { display: none; }
.foot-note { margin: 18px 0 0; font-size: 13px; color: var(--fg3); text-align: center; }

/* ---------- кабинет: каркас ---------- */
.shell { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: var(--side) minmax(0, 1fr); }
.side { position: sticky; top: 0; height: 100vh; height: 100dvh; background: var(--navy); color: #fff; display: flex; flex-direction: column; padding: 20px 14px 16px; }
.side .brand { padding: 0 8px; margin-bottom: 26px; } .side .brand small { color: rgba(255,255,255,.55); }
.side nav { display: flex; flex-direction: column; gap: 3px; }
.navi { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 12px; color: rgba(255,255,255,.72); text-decoration: none; font: 700 14px var(--display); transition: background-color .15s, color .15s; border: 0; background: transparent; width: 100%; text-align: left; }
.navi svg { width: 20px; height: 20px; }
.navi:hover { background: rgba(255,255,255,.07); color: #fff; }
.navi.on { background: rgba(255,255,255,.1); color: #fff; }
.navi.on::before { content: ''; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--accent); }
.navi .cnt { margin-left: auto; min-width: 22px; height: 22px; border-radius: 11px; background: var(--accent); color: var(--accent-ink); font: 800 11px/22px var(--display); text-align: center; padding: 0 6px; }
.side .grow { flex: 1; }
.planbox { margin: 0 2px 12px; padding: 14px; border-radius: 14px; background: linear-gradient(140deg, rgba(242,183,5,.22), rgba(242,183,5,.06)); border: 1px solid rgba(242,183,5,.3); text-decoration: none; color: #fff; display: block; }
.planbox b { font: 800 14px var(--display); display: block; }
.planbox small { color: rgba(255,255,255,.7); font-size: 12.5px; display: block; margin: 2px 0 10px; }
.planbox .bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.15); overflow: hidden; }
.planbox .bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.meuser { display: flex; align-items: center; gap: 10px; padding: 10px 8px 0; border-top: 1px solid rgba(255,255,255,.1); margin-top: 4px; }
.meuser .ava { width: 36px; height: 36px; border-radius: 11px; font-size: 14px; }
.meuser .tx { min-width: 0; flex: 1; } .meuser b { display: block; font: 700 13.5px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meuser small { display: block; font-size: 12px; color: rgba(255,255,255,.55); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meuser .iconbtn { color: rgba(255,255,255,.6); } .meuser .iconbtn:hover { background: rgba(255,255,255,.08); color: #fff; }

.mainc { min-width: 0; }
.mtop { display: none; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 34px 36px 80px; animation: rise .35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.phead { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.phead .t { flex: 1; min-width: 220px; }
.phead h1 { font-size: 30px; letter-spacing: -.025em; }
.phead p { margin: 6px 0 0; color: var(--fg2); }
.crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--fg2); text-decoration: none; font: 700 13px var(--display); margin-bottom: 10px; }
.crumb:hover { color: var(--fg); } .crumb svg { width: 16px; height: 16px; }
.sect { margin-top: 34px; }
.sect h2 { font-size: 18px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.sect h2 .sp { flex: 1; }
.sect h2 a, .sect h2 button.linkbtn { font: 700 13px var(--display); text-decoration: none; }

/* карточки */
.card { background: var(--panel); border-radius: var(--r); box-shadow: var(--sh-sm); border: 1px solid var(--line); padding: 20px; }
.card.pad0 { padding: 0; overflow: hidden; }
.card h3 { font-size: 16px; margin-bottom: 4px; }
.empty { text-align: center; padding: 52px 24px; color: var(--fg2); }
.empty .ill { width: 112px; height: 84px; margin: 0 auto 16px; display: block; }
.empty h3 { font-size: 19px; margin-bottom: 6px; color: var(--fg); }
.empty p { margin: 0 auto 18px; max-width: 420px; }

/* аватары */
.ava { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font: 800 16px var(--display); background: var(--accent-soft); color: #7a5a00; position: relative; flex: none; }
.ava.on::after { content: ''; position: absolute; right: -3px; bottom: -3px; width: 13px; height: 13px; border-radius: 50%; background: #22c55e; border: 2.5px solid var(--panel); }
.ava.c0 { background: #fff1c7; color: #7a5a00; } .ava.c1 { background: #e3ecff; color: #2547d0; } .ava.c2 { background: #dff5e8; color: #157a3b; }
.ava.c3 { background: #fde6ec; color: #b4173c; } .ava.c4 { background: #efe6ff; color: #6a35c9; } .ava.c5 { background: #def4f7; color: #0b7285; }

/* главная */
.hello { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; background: var(--navy); color: #fff; border-radius: 22px; padding: 28px 30px; position: relative; overflow: hidden; }
.hello::after { content: ''; position: absolute; left: 38%; top: -140px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(242,183,5,.16), transparent 65%); pointer-events: none; }
.hello h1 { font-size: 28px; letter-spacing: -.02em; }
.hello p { color: rgba(255,255,255,.7); margin: 6px 0 0; }
.hello .row { position: relative; z-index: 1; }
.hello .btn.ghost { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.2); }
.hello .btn.ghost:hover { background: rgba(255,255,255,.14); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--sh-sm); display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; transition: transform .2s var(--ease), box-shadow .2s; }
a.stat:hover { transform: translateY(-2px); box-shadow: var(--sh-lift); }
.stat .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--bg); color: var(--fg); }
.stat .ic svg { width: 21px; height: 21px; }
.stat b { display: block; font: 800 24px/1.1 var(--display); letter-spacing: -.02em; }
.stat small { color: var(--fg3); font-size: 13px; }
.meter { height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden; margin-top: 7px; }
.meter i { display: block; height: 100%; background: var(--navy); border-radius: 3px; transition: width .6s var(--ease); }
.meter.warn i { background: var(--red); }
.two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; }
.feed { display: flex; flex-direction: column; }
.feed .it { display: flex; align-items: center; gap: 12px; padding: 12px 16px; text-decoration: none; color: inherit; border-top: 1px solid var(--line); transition: background-color .15s; min-height: 64px; }
.feed .it:first-child { border-top: 0; }
.feed a.it:hover { background: var(--bg2); }
.feed .it .ava { width: 38px; height: 38px; font-size: 14px; border-radius: 11px; }
.feed .it .tx { flex: 1; min-width: 0; }
.feed .it b { display: block; font: 700 14px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed .it small { color: var(--fg3); font-size: 13px; }
.feed .it > svg { width: 18px; height: 18px; color: var(--fg3); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.steps li:first-child { border-top: 0; padding-top: 4px; }
.steps .ck { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line2); color: transparent; flex: none; font: 800 12px var(--display); }
.steps li.done .ck { background: var(--green); border-color: var(--green); color: #fff; }
.steps li.done span { color: var(--fg3); text-decoration: line-through; text-decoration-color: var(--line2); }
.steps li span { flex: 1; }
.steps .ck svg { width: 14px; height: 14px; }
.prog { display: flex; align-items: center; gap: 10px; font: 700 13px var(--display); color: var(--fg2); margin-bottom: 8px; }
.prog .meter { flex: 1; margin: 0; } .prog .meter i { background: var(--green); }

/* доски-плитки */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.tile { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--sh-sm); transition: transform .2s var(--ease), box-shadow .2s; display: flex; flex-direction: column; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--sh-lift); }
.tile .pv { aspect-ratio: 16 / 9; background-color: #fdfcf7; background-image: linear-gradient(rgba(70,120,210,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(70,120,210,.13) 1px, transparent 1px); background-size: 14px 14px; position: relative; border-bottom: 1px solid var(--line); }
.tile .pv svg { position: absolute; inset: 14% 18%; width: 64%; height: 72%; }
.tile .ti { padding: 11px 14px 13px; display: flex; gap: 8px; align-items: center; }
.tile .ti .tx { flex: 1; min-width: 0; }
.tile .ti b { display: block; font: 700 14px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .ti small { color: var(--fg3); font-size: 12.5px; }
.tile .acts3 { position: absolute; right: 8px; top: 8px; display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.tile:hover .acts3, .tile:focus-within .acts3 { opacity: 1; }
.tile .acts3 .iconbtn { width: 34px; height: 34px; background: rgba(255,255,255,.95); box-shadow: var(--sh-sm); }
.tile.new { border: 2px dashed var(--line2); box-shadow: none; background: transparent; display: grid; place-items: center; min-height: 160px; color: var(--fg2); font: 700 14px var(--display); cursor: pointer; }
.tile.new:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--fg); transform: none; box-shadow: none; }
.tile.new span { display: flex; flex-direction: column; align-items: center; gap: 8px; } .tile.new svg { width: 26px; height: 26px; }
@media (hover: none) { .tile .acts3 { opacity: 1; } }

/* ученики */
.tools { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.search { position: relative; flex: 1; min-width: 200px; max-width: 380px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--fg3); pointer-events: none; }
.search .inp { padding-left: 42px; }
.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; min-height: 38px; padding: 0 13px; border-radius: 9px; font: 700 13px var(--display); color: var(--fg2); white-space: nowrap; }
.seg button.on { background: var(--navy); color: #fff; }
.slist { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.scard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-sm); padding: 18px; display: flex; flex-direction: column; gap: 14px; transition: box-shadow .2s, transform .2s var(--ease); }
.scard:hover { box-shadow: var(--sh-lift); }
.scard .sh { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.scard .sh .tx { flex: 1; min-width: 0; }
.scard .sh > svg { width: 20px; height: 20px; color: var(--fg3); }
.scard .sh b { display: block; font: 800 17px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scard .sh small { color: var(--fg3); font-size: 13px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.scard .note { font-size: 13.5px; color: var(--fg2); background: var(--bg2); border-radius: 10px; padding: 9px 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.scard .warnline { font-size: 13px; color: #7a5a00; background: var(--accent-soft); border-radius: 10px; padding: 9px 12px; display: flex; gap: 8px; align-items: flex-start; }
.scard .warnline svg { width: 16px; height: 16px; margin-top: 2px; }
.scard .row .btn:first-child { flex: 1; }

/* карточка ученика */
.sgrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.sgrid aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 24px; }
.bigava { width: 64px; height: 64px; border-radius: 18px; font-size: 24px; }
.phead.st { align-items: center; }
.share { padding: 14px; border-radius: 13px; background: var(--blue-soft); font-size: 13.5px; }
.share b { font: 700 13px var(--display); }
.share code { display: block; word-break: break-all; font-size: 12px; color: var(--fg2); margin: 6px 0 10px; background: rgba(255,255,255,.7); padding: 8px 10px; border-radius: 8px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; margin: 0; }
.kv dt { color: var(--fg3); } .kv dd { margin: 0; font-weight: 600; text-align: right; }
.saved { font-size: 12.5px; color: var(--fg3); min-height: 18px; margin-top: 6px; }

/* файлы */
.drop { border: 2px dashed var(--line2); border-radius: var(--r); padding: 26px 20px; text-align: center; color: var(--fg2); margin-bottom: 20px; transition: background-color .15s, border-color .15s; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; background: var(--bg2); }
.drop svg { width: 30px; height: 30px; color: var(--fg3); }
.drop b { color: var(--fg); font: 700 15px var(--display); display: block; }
.drop.over { background: var(--accent-soft); border-color: var(--accent); }
.drop .txt { text-align: left; }
.flist { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.fcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--sh-sm); transition: box-shadow .2s, transform .2s var(--ease); }
.fcard:hover { box-shadow: var(--sh-lift); transform: translateY(-2px); }
.fcard .th { aspect-ratio: 4/3; background: var(--bg2) center/contain no-repeat; display: grid; place-items: center; color: var(--fg3); border-bottom: 1px solid var(--line); position: relative; cursor: pointer; border-top: 0; border-left: 0; border-right: 0; width: 100%; padding: 0; }
.fcard .th .ext { position: absolute; left: 10px; top: 10px; font: 800 10.5px var(--display); letter-spacing: .06em; padding: 3px 7px; border-radius: 6px; background: var(--navy); color: #fff; }
.fcard .th .ext.pdf { background: #c62d3f; } .fcard .th .ext.img { background: #157a3b; } .fcard .th .ext.doc { background: #2547d0; }
.fcard .fi { padding: 10px 12px 4px; font-size: 13px; }
.fcard .fi b { display: block; font: 700 13.5px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fcard .fi small { color: var(--fg3); }
.fcard .fa { display: flex; justify-content: flex-end; padding: 0 6px 6px; gap: 2px; }
.fcard .fa .iconbtn { width: 36px; height: 36px; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--line2); border-top-color: var(--navy); animation: sp 0.8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

/* подписка */
.subhero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0; overflow: hidden; padding: 0; }
.subhero .l { padding: 26px 28px; }
.subhero .r { padding: 26px 28px; background: var(--bg2); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.subhero .pname { font: 800 28px var(--display); letter-spacing: -.02em; margin: 10px 0 4px; }
.subhero .l p { margin: 0 0 18px; color: var(--fg2); }
.use b { font: 700 13.5px var(--display); display: flex; justify-content: space-between; }
.use b span { color: var(--fg3); font-weight: 600; }
.period { display: flex; justify-content: center; margin: 34px 0 20px; }
.period .seg button .off { margin-left: 6px; font-size: 11px; padding: 2px 6px; border-radius: 6px; background: var(--green-soft); color: var(--green); }
.period .seg button.on .off { background: rgba(255,255,255,.18); color: #fff; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; align-items: stretch; max-width: 820px; margin: 0 auto; }
.plan { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 24px 22px 22px; display: flex; flex-direction: column; box-shadow: var(--sh-sm); }
.plan.pop { border: 2px solid var(--accent); box-shadow: 0 18px 40px -16px rgba(242,183,5,.45); }
.plan.cur { border-color: var(--navy); }
.plan .flag { position: absolute; top: -12px; left: 22px; background: var(--accent); color: var(--accent-ink); font: 800 11.5px var(--display); padding: 5px 10px; border-radius: 8px; letter-spacing: .02em; }
.plan .flag.navy { background: var(--navy); color: #fff; }
.plan h3 { font-size: 18px; }
.plan .price { margin: 12px 0 2px; display: flex; align-items: baseline; gap: 6px; }
.plan .price b { font: 800 36px/1 var(--display); letter-spacing: -.03em; }
.plan .price span { color: var(--fg3); font-size: 14px; }
.plan .per { color: var(--fg3); font-size: 13px; min-height: 20px; margin: 0 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 14px; align-items: flex-start; }
.plan li svg { width: 18px; height: 18px; color: var(--green); margin-top: 1px; }
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; font: 700 14.5px var(--display); padding: 16px 0; display: flex; align-items: center; gap: 10px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; margin-left: auto; font: 600 20px var(--body); color: var(--fg3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--fg2); font-size: 14px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font: 700 12px var(--display); color: var(--fg3); text-transform: uppercase; letter-spacing: .05em; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.table td { padding: 13px 18px; border-bottom: 1px solid var(--line); } .table tr:last-child td { border-bottom: 0; }

/* профиль */
.settings { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.settings .card h3 { font-size: 17px; margin-bottom: 4px; }
.settings .card > p { margin: 0 0 18px; color: var(--fg2); font-size: 14px; }

/* модалки и тосты */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(11,21,48,.45); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal .box { width: 100%; max-width: 440px; background: var(--panel); border-radius: 22px; padding: 24px; box-shadow: var(--sh); max-height: calc(100% - 20px); overflow: auto; animation: pop .22s var(--spring); }
.modal .box.wide { max-width: 880px; }
.modal h3 { font-size: 20px; margin-bottom: 14px; }
.modal .acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; box-shadow: var(--sh); animation: fade .2s; max-width: calc(100% - 32px); }


/* расписание (TG 7314) */
.calbar { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.calbar > b { font: 800 17px var(--display); }
.calbar .muted { margin-left: auto; font-size: 13.5px; }
.week { overflow: hidden; }
.week .wh { display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: var(--bg2); }
.week .wh > div { padding: 10px 6px; text-align: center; }
.week .wh small { display: block; font: 700 11.5px var(--display); color: var(--fg3); text-transform: uppercase; letter-spacing: .05em; }
.week .wh b { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font: 800 16px var(--display); margin-top: 2px; }
.week .wh .today b { background: var(--navy); color: #fff; }
.week .wb { position: relative; display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); }
.week .hours { position: relative; border-right: 1px solid var(--line); }
.week .hours span { position: absolute; right: 8px; transform: translateY(-50%); font: 600 11.5px var(--display); color: var(--fg3); }
.week .hours span:first-child { transform: none; top: 4px !important; }
.week .col { position: relative; border-left: 1px solid var(--line); background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 52px; cursor: copy; min-height: 100%; }
.week .col:first-of-type { border-left: 0; }
.week .col.today { background-color: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.week .col:hover { background-color: var(--bg2); }
.week .now { position: absolute; left: 0; right: 0; height: 2px; background: var(--red); z-index: 2; pointer-events: none; }
.week .now::before { content: ''; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.ev { position: absolute; left: 3px; right: 3px; border-radius: 9px; padding: 5px 8px; overflow: hidden; cursor: pointer; z-index: 1; border-left: 3px solid currentColor; box-shadow: var(--sh-sm); transition: transform .15s var(--ease), box-shadow .15s; }
.ev:hover { transform: translateY(-1px); box-shadow: var(--sh-lift); z-index: 3; }
.ev b { display: block; font: 700 12.5px/1.25 var(--display); color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev small { display: block; font-size: 11.5px; color: var(--fg2); white-space: nowrap; }
.ev.past { opacity: .55; }
.ev.c0 { background: #fff1c7; color: #c49100; } .ev.c1 { background: #e3ecff; color: #2547d0; } .ev.c2 { background: #dff5e8; color: #157a3b; }
.ev.c3 { background: #fde6ec; color: #b4173c; } .ev.c4 { background: #efe6ff; color: #6a35c9; } .ev.c5 { background: #def4f7; color: #0b7285; }
.agenda { display: flex; flex-direction: column; }
.occ { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--line); min-height: 62px; cursor: pointer; transition: background-color .15s; }
.occ:first-child { border-top: 0; }
.occ:hover { background: var(--bg2); }
.occ.live { background: var(--green-soft); }
.occ.empty-occ { cursor: default; } .occ.empty-occ .tx small { white-space: normal; } .occ.empty-occ:hover { background: transparent; }
.occ .tm { width: 76px; flex: none; white-space: nowrap; }
.occ .tm b { display: block; font: 800 15px var(--display); }
.occ .tm small { color: var(--fg3); font-size: 12px; }
.occ .ava { width: 36px; height: 36px; border-radius: 11px; font-size: 14px; }
.occ .tx { flex: 1; min-width: 0; }
.occ .tx b { display: block; font: 700 14px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.occ .tx small { color: var(--fg3); font-size: 12.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda.mini { margin: 6px -20px 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.agenda.mini .occ { padding: 9px 20px; min-height: 52px; }
.occhead { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.aday { margin-bottom: 16px; }
.aday h4 { display: flex; align-items: center; font: 800 14px var(--display); margin: 0 0 8px; }
.aday h4::first-letter { text-transform: uppercase; }
.aday h4 .iconbtn { margin-left: auto; }
.aday.today h4 { color: var(--blue); }
.aday .nol { margin: 0; font-size: 13.5px; padding: 0 2px; }

/* мобильная навигация */
.bnav { display: none; }

@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two, .sgrid { grid-template-columns: minmax(0, 1fr); }
  .sgrid aside { position: static; }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split .pitch { padding: 32px 28px 36px; }
  .pitch h1 { margin-top: 40px; } .pitch .art { display: none; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .mtop { display: flex; position: sticky; top: 0; z-index: 30; align-items: center; gap: 10px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .mtop .brand { margin: 0; flex: 1; } .mtop .brand img { width: 34px; height: 34px; } .mtop .brand small { display: none; }
  .bnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--panel); border-top: 1px solid var(--line); padding: 6px 6px max(6px, env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(15,27,61,.06); }
  .bnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 50px; justify-content: center; text-decoration: none; color: var(--fg3); font: 700 11px var(--display); border-radius: 12px; position: relative; }
  .bnav a svg { width: 22px; height: 22px; }
  .bnav a.on { color: var(--fg); } .bnav a.on svg { color: var(--navy); }
  .bnav a.on::before { content: ''; position: absolute; top: -6px; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
  .bnav .cnt { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 17px; height: 17px; border-radius: 9px; background: var(--red); color: #fff; font: 800 10px/17px var(--display); padding: 0 4px; }
  .wrap { padding: 22px 16px 110px; }
  .phead h1 { font-size: 25px; }
  .hello { grid-template-columns: minmax(0, 1fr); padding: 22px; border-radius: 18px; } .hello h1 { font-size: 23px; }
  .subhero { grid-template-columns: minmax(0, 1fr); } .subhero .r { border-left: 0; border-top: 1px solid var(--line); }
  .faq, .settings { grid-template-columns: minmax(0, 1fr); }
  .slist { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .stats { gap: 10px; } .stat { padding: 13px; gap: 10px; } .stat .ic { width: 36px; height: 36px; } .stat b { font-size: 20px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .flist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pitch .feats, .pitch .art { display: none; } .split .pitch { padding: 22px 20px 26px; } .pitch h1 { margin-top: 22px; font-size: 26px; } .pitch .lead { font-size: 15px; margin: 0; }
  .tools .seg { width: 100%; } .tools .seg button { flex: 1; } .search { max-width: none; }
  .drop .txt { text-align: center; }
  .auth-card { padding: 26px 20px 22px; }
}

/* 13.11 TG 7417: код подтверждения, пробный период через мессенджер, привязки */
.codeinp { font: 800 28px/1 var(--display); letter-spacing: .5em; text-align: center; }
.trialcard { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border: 1.5px solid rgba(242,183,5,.45); background: linear-gradient(140deg, rgba(242,183,5,.12), transparent 70%); }
.trialcard h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.trialcard h3 svg { width: 20px; height: 20px; color: #e0a800; }
.trialcard p { margin: 0; color: var(--fg2); max-width: 560px; }
.trialcard .row { display: flex; flex-wrap: wrap; gap: 10px; }
.msgs { display: grid; gap: 0; padding-top: 6px; padding-bottom: 6px; }
.msgrow { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; }
.msgrow + .msgrow { border-top: 1px solid rgba(127,127,127,.18); }
.msgrow small { display: block; color: var(--fg2); font-size: 13px; margin-top: 2px; }
.codelinks { display: flex; flex-direction: column; gap: 8px; align-items: center; }

/* 13.11 TG 7448: Start — блёклый, Plus — средний, Flagship — главный */
.plans { max-width: 1060px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: center; }
@media (min-width: 1100px) { .plans { grid-template-columns: .92fr 1fr 1.12fr; } }
.plan.t-free { background: transparent; border: 1.5px dashed var(--line2); box-shadow: none; color: var(--fg2); }
.plan.t-free h3, .plan.t-free .price b { color: var(--fg3); }
.plan.t-free .price b { font-size: 30px; }
.plan.t-free li svg { color: var(--fg3); }
.plan.t-pro { border: 1px solid var(--line2); }
.plan.t-flagship { color: #fff; border: 0; padding: 30px 26px 26px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 80% at 100% 0%, rgba(140,92,242,.55), transparent 60%), radial-gradient(90% 70% at 0% 100%, rgba(84,104,255,.45), transparent 60%), linear-gradient(160deg, #101c45, #0b1530 60%, #1a1446);
  box-shadow: 0 0 0 1.5px rgba(242,183,5,.75), 0 30px 60px -20px rgba(84,104,255,.55), 0 18px 40px -18px rgba(242,183,5,.45); transform: translateY(-4px); }
.plan.t-flagship::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.13) 50%, transparent 65%); transform: translateX(-100%); animation: flsheen 4.5s ease-in-out 1s infinite; }
@keyframes flsheen { 0%, 60% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .plan.t-flagship::before { animation: none; } }
.plan.t-flagship h3 { font-size: 24px; color: #fff; }
.plan.t-flagship .tag { margin: 4px 0 0; color: rgba(255,255,255,.75); font-size: 13.5px; }
.plan.t-flagship .price b { font-size: 46px; background: linear-gradient(180deg, #ffe58a, #f2b705); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan.t-flagship .price span, .plan.t-flagship .per { color: rgba(255,255,255,.65); }
.plan.t-flagship li { color: rgba(255,255,255,.92); }
.plan.t-flagship li svg { color: #ffd34d; }
.plan.t-flagship .flag.fl { display: inline-flex; align-items: center; gap: 5px; position: static; align-self: flex-start; margin-bottom: 12px; background: linear-gradient(90deg, #ffd34d, #f2b705); color: #1d1600; }
.plan.t-flagship .flag.fl svg { width: 14px; height: 14px; }
.plan.t-flagship .flag.navy { background: #fff; color: var(--navy); }
.btn.fl-btn { background: linear-gradient(180deg, #ffd34d, #f2b705); color: #1d1600; box-shadow: 0 10px 26px -8px rgba(242,183,5,.75); }
.btn.fl-btn:hover { filter: brightness(1.05); }
.plan.t-flagship .btn.ghost[disabled] { color: #fff; border-color: rgba(255,255,255,.35); }
.plan.t-flagship .flag { position: static; align-self: flex-start; margin-bottom: 12px; }
@media (max-width: 1099px) { .plan.t-flagship { order: -1; } .plans { max-width: 520px; } }

/* 13.11 TG 7450: вход/регистрация — флагманская обёртка: слева ролик, справа крупное название и форма */
.split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: stretch; }
.split .pitch.stage { padding: 40px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(70% 60% at 85% 10%, rgba(140,92,242,.45), transparent 65%), radial-gradient(60% 60% at 10% 95%, rgba(84,104,255,.35), transparent 65%), linear-gradient(160deg, #0d1840, #0b1530 55%, #160f3c); }
.split .pitch.stage::before { display: none; }
.showcase { width: 100%; max-width: 680px; display: flex; flex-direction: column; gap: 18px; }
.sc-win { border-radius: 20px; overflow: hidden; background: #111d47; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 40px 80px -30px rgba(0,0,0,.7), 0 0 60px -10px rgba(140,92,242,.35); }
.sc-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.07); font: 600 12.5px var(--display); color: rgba(255,255,255,.6); }
.sc-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); } .sc-bar i:first-child { background: #f2b705; }
.sc-bar span { margin-left: 10px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-live { color: #ff6b7a; font-weight: 700; white-space: nowrap; }
.sc-svg { display: block; width: 100% !important; height: auto !important; }
.sc-svg .lb { font: 700 17px var(--display); fill: #fff; } .sc-svg .lb.sm { font-size: 15px; } .sc-svg .lb.xs { font-size: 12px; }
.sc-svg .hw { font: 800 44px var(--display); letter-spacing: -.01em; }
.sc-cap { color: #fff; min-height: 58px; }
.sc-cap.in { animation: capin .5s var(--ease); }
@keyframes capin { from { opacity: 0; transform: translateY(6px); } }
.sc-t { font: 800 clamp(20px, 2vw, 26px)/1.2 var(--display); letter-spacing: -.01em; }
.sc-s { color: rgba(255,255,255,.65); font-size: 15px; margin-top: 4px; }
.sc-dots { display: flex; gap: 8px; }
.sc-dots button { flex: 1; height: 18px; padding: 7px 0; border: 0; background: none; cursor: pointer; }
.sc-dots i { display: block; height: 4px; border-radius: 2px; background: rgba(255,255,255,.18); overflow: hidden; position: relative; }
.sc-dots button.on i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #5468ff, #a45cf2); transform-origin: left; transform: scaleX(var(--p, 0)); }
.sc-dots button:focus-visible { outline: 2px solid #f2b705; outline-offset: 2px; border-radius: 4px; }
.split .formside { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 48px 32px;
  background: radial-gradient(60% 40% at 100% 0%, rgba(164,92,242,.12), transparent 70%), radial-gradient(50% 35% at 0% 100%, rgba(242,183,5,.12), transparent 70%), var(--bg); }
.split .formside .auth-card { max-width: 420px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(15,27,61,.35), 0 2px 6px rgba(15,27,61,.05); padding: 30px 30px 24px; border-radius: 24px; }
.wm { display: flex; align-items: center; gap: 18px; width: 100%; max-width: 420px; }
.wm img { width: 72px; height: 72px; border-radius: 20px; box-shadow: 0 14px 30px -12px rgba(84,104,255,.6); flex: none; }
.wm-t { display: flex; flex-direction: column; line-height: .95; }
.wm .w1 { font: 800 clamp(34px, 3.6vw, 50px) var(--display); letter-spacing: -.035em; color: var(--navy); }
.wm .w2 { font: 800 clamp(34px, 3.6vw, 50px) var(--display); letter-spacing: -.035em; background: linear-gradient(90deg, #5468ff, #a45cf2); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 4px; }
.wm-sub { width: 100%; max-width: 420px; color: var(--fg2); font-size: 15px; margin: 14px 0 26px; }
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split .formside { order: -1; padding: 32px 18px 28px; justify-content: flex-start; }
  .split .pitch.stage { padding: 28px 16px 32px; }
  .wm img { width: 56px; height: 56px; border-radius: 16px; }
  .split .formside .auth-card { padding: 24px 20px 20px; }
}

/* TG 7455: слева — запись настоящей доски на всю половину, подписи поверх */
.split .pitch.stage { padding: 0; display: block; position: relative; background: #f6f3ea; min-height: 100dvh; }
.stv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.stage::after { content: ""; position: absolute; inset: auto 0 0 0; height: 42%; background: linear-gradient(to top, rgba(11,21,48,.82), rgba(11,21,48,.35) 55%, transparent); pointer-events: none; }
.stcap { position: absolute; left: clamp(20px, 4vw, 56px); right: 24px; bottom: clamp(24px, 5vh, 56px); z-index: 1; color: #fff; }
.stcap b { display: block; font: 800 clamp(26px, 3vw, 44px)/1.08 var(--display); letter-spacing: -.025em; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.stcap span { display: block; margin-top: 8px; font-size: clamp(15px, 1.3vw, 18px); color: rgba(255,255,255,.85); }
.stcap.in b, .stcap.in span { animation: capin .6s var(--ease) both; } .stcap.in span { animation-delay: .08s; }
@media (max-width: 900px) { .split .pitch.stage { min-height: 0; aspect-ratio: 11 / 12; } }
@media (prefers-reduced-motion: reduce) { .stcap.in b, .stcap.in span { animation: none; } }
.split .pitch.stage > .stv, .split .pitch.stage > .stcap { position: absolute; }
.split .pitch.stage::after { z-index: 1; } .split .pitch.stage > .stcap { z-index: 2; }
.stcap b, .stcap span { overflow-wrap: anywhere; }
.stv { object-position: 50% 0%; }
.stage::after { height: 50%; background: linear-gradient(to top, rgba(11,21,48,.92), rgba(11,21,48,.6) 45%, transparent); }

/* экскурсия по кабинету (TG 7470) */
.tour { position: fixed; inset: 0; z-index: 400; }
.tour-hole { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(8,14,34,.62), 0 0 0 3px #f2b705, 0 0 26px 6px rgba(242,183,5,.55); transition: all .45s var(--ease); pointer-events: none; }
.tour-card { position: fixed; background: var(--panel); color: var(--fg); border-radius: 18px; padding: 20px 20px 16px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.55); max-width: calc(100vw - 24px); width: 340px; animation: pop .3s var(--spring); }
.tour-card h3 { font: 800 19px/1.2 var(--display); margin: 2px 0 8px; }
.tour-card p { margin: 0 0 16px; color: var(--fg2); font-size: 14.5px; line-height: 1.5; }
.tour-n { font: 700 12px var(--display); color: #c98a00; }
.tour-acts { display: flex; align-items: center; gap: 8px; }
@media (prefers-reduced-motion: reduce) { .tour-hole { transition: none; } .tour-card { animation: none; } }
