/* ══════════════════════════════════════════════════════════════
   «Твой репетитор» — страница «Возможности» (новый дизайн)
   Подключается только на ней (build.js → meta.css).
   Общие блоки (первый экран, заголовки секций, появление,
   финальный призыв) — в site.css.
   ══════════════════════════════════════════════════════════════ */

/* Цвета разделов — как у трёх демо на главной:
   менеджмент — оранжевый, обучение — индиго, инструменты — зелёный */
.c-mgmt  { --c: var(--tutor);   --ct: var(--tutor-t);   --cs: rgba(232, 115, 74, .13); }
.c-learn { --c: var(--student); --ct: var(--student-t); --cs: rgba(99, 102, 241, .12); }
.c-tools { --c: var(--parent);  --ct: var(--parent-t);  --cs: rgba(16, 185, 129, .14); }

/* ══════════════ ФУНКЦИИ: бенто-сетка ══════════════ */
.feat { padding: clamp(24px, 4vw, 48px) 0 clamp(80px, 10vw, 130px); scroll-margin-top: 70px; }

/* Навигация по главам: те же пилюли, что .roles на главной, но ссылки */
.chap-nav a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border-radius: 999px; border: 1px solid rgba(26, 26, 31, .1); background: #fff; font: 600 14px var(--font-sans); color: var(--ink); text-decoration: none; transition: border-color .25s ease, box-shadow .25s ease; }
.chap-nav a::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.chap-nav a:hover { border-color: var(--c); box-shadow: 0 8px 20px -10px var(--c); }
.chap-nav a:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }

/* Главы: заголовок раздела слева, строка о нём справа, большой воздух между главами */
.chap { margin-top: clamp(96px, 12vw, 150px); scroll-margin-top: 96px; }
.chap:first-of-type { margin-top: clamp(56px, 7vw, 96px); }
.chap__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 48px; margin-bottom: clamp(24px, 3vw, 36px); }
.chap__t { display: inline-flex; align-items: center; gap: 14px; font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; }
.chap__t::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 6px var(--cs); flex-shrink: 0; }
.chap__lead { max-width: 440px; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.55; color: var(--text-secondary); }

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.fc {
  grid-column: span var(--span, 4); display: flex; flex-direction: column; min-width: 0;
  padding: 8px; border-radius: 28px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-xs);
}
/* Появление (opacity/transform/filter) + плавная тень при наведении и приглушение фильтром */
.fc, .reveal-ready .fc {
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out), box-shadow .35s ease, border-color .35s ease;
  transition-delay: calc(var(--si, 0) * 90ms), calc(var(--si, 0) * 90ms), calc(var(--si, 0) * 90ms), 0s, 0s;
}
.fc:hover { border-color: rgba(26, 26, 31, .1); box-shadow: 0 30px 60px -32px rgba(26, 26, 31, .28), 0 2px 6px rgba(26, 26, 31, .04); }
.fc__vis { position: relative; height: 252px; border-radius: 21px; background: var(--bg); overflow: hidden; container-type: inline-size; }
.fc__body { padding: 22px 22px 20px; }
.fc__top { display: flex; align-items: center; gap: 10px; }
.fc__ic { width: 36px; height: 36px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--cs); color: var(--ct); }
.fc__ic svg { width: 19px; height: 19px; }
.fc__cat { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-secondary); }
.fc__cat::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.fc h4 { margin-top: 16px; font-size: 21px; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.fc p { margin-top: 8px; max-width: 540px; font-size: 15px; line-height: 1.55; color: var(--text-secondary); }

/* Широкая карточка: текст слева, картинка справа */
.fc--row { flex-direction: row; align-items: stretch; }
.fc--row .fc__body { flex: 1 1 0; display: flex; flex-direction: column; justify-content: center; padding: clamp(18px, 3vw, 36px); }
.fc--row h4 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.03em; }
.fc--row p { font-size: 16px; }
.fc--row .fc__vis { flex: 1 1 0; height: auto; min-height: 300px; }
/* Тест в широкой карточке — по центру, не на всю ширину */
.fc--row .mu-quiz { justify-content: center; align-items: center; padding: 24px; }
.fc--row .mu-quiz .qz { width: 100%; max-width: 420px; }
.fc--row .mu-quiz .qz__bd { align-self: center; }

/* Каналы в карточке уведомлений */
.chl { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chl li { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 6px; border-radius: 12px; background: var(--bg); font-size: 13.5px; font-weight: 600; }
.chl__ic { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chl__ic svg { width: 100%; height: 100%; }
.chl__ic--push { border-radius: 8px; background: var(--accent); color: #fff; }
.chl__ic--push svg { width: 15px; height: 15px; }

/* ══════════════ Мини-интерфейсы внутри карточек ══════════════ */
.mu { position: absolute; inset: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.3; color: var(--ink); text-align: left; }
.mu s { text-decoration: none; }
.mu em { font-style: normal; }
.mu-card { background: #fff; border-radius: 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 0 0 1px rgba(0, 0, 0, .04); }
.mu-mono { font-family: var(--font-mono); letter-spacing: -.02em; }
.mu-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 28px; }
.mu-hd b { font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.mu-seg { display: inline-flex; padding: 3px; border-radius: 9px; background: rgba(0, 0, 0, .06); flex-shrink: 0; }
.mu-seg i { padding: 4px 10px; border-radius: 7px; font-size: 12px; font-weight: 500; font-style: normal; color: var(--text-secondary); white-space: nowrap; }
.mu-seg i.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.mu-num { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; margin-left: 4px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font: 700 11.5px var(--font-sans); vertical-align: 1px; }
.mu-link { font-size: 12.5px; font-weight: 600; color: var(--orange-text); }
.mu-btn { margin-top: auto; flex-shrink: 0; display: flex; align-items: center; justify-content: center; height: 36px; border-radius: 11px; background: linear-gradient(180deg, #ef8158, var(--accent)); color: #fff; font-size: 13.5px; font-weight: 700; box-shadow: 0 6px 16px -8px rgba(232, 115, 74, .8); }
.av { width: 30px; height: 30px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; font-size: 13px; font-weight: 700; }
.av--o { background: linear-gradient(135deg, #f39a76, #e8734a); }
.av--i { background: linear-gradient(135deg, #8b8df5, #6366f1); }
.av--g { background: linear-gradient(135deg, #34d399, #10b981); }
.st { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.st--ok { background: rgba(16, 185, 129, .13); color: var(--parent-t); }
.st--wait { background: rgba(245, 158, 11, .15); color: #92600a; }

/* — Расписание: неделя. Статусы — как в приложении: оранжевый — запланировано,
   зелёный — проведено, индиго-пунктир — заявка, штриховка — личные события — */
.cal { flex: 1; min-height: 0; display: grid; grid-template-columns: 38px repeat(5, minmax(0, 1fr)); grid-template-rows: 22px repeat(4, minmax(0, 1fr)); gap: 3px; padding: 5px 6px 6px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .05); }
.cal__d { grid-row: 1; display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.cal__d b, .cal__d em { font: 600 11.5px var(--font-mono); letter-spacing: 0; color: var(--ink); }
.cal__d em { padding: 0 5px; border-radius: 6px; background: var(--accent); color: #fff; }
.cal__t { grid-column: 1; grid-row: var(--row); padding-top: 3px; font: 10px var(--font-mono); color: var(--text-muted); text-align: right; padding-right: 4px; }
.cal__b { grid-row: var(--row); position: relative; min-width: 0; padding: 3px 6px; border-radius: 7px; border-left: 3px solid var(--tutor); background: rgba(232, 115, 74, .12); overflow: hidden; }
.cal__b b { display: block; font-size: 11.5px; line-height: 1.25; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal__b s { display: flex; align-items: center; gap: 3px; font: 9.5px/1.3 var(--font-mono); color: var(--text-secondary); white-space: nowrap; overflow: hidden; }
.cal__b.is-done { background: rgba(16, 185, 129, .13); border-color: var(--parent); }
.cal__b.is-done s::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--parent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 7px no-repeat; }
.cal__b--x { border-left: 0; padding-left: 7px; background: repeating-linear-gradient(45deg, rgba(0, 0, 0, .06) 0 5px, rgba(0, 0, 0, .02) 5px 10px); }
.cal__b--x b { color: var(--text-secondary); }
.cal__b--busy { border-color: #4a4c57; background: repeating-linear-gradient(45deg, rgba(0, 0, 0, .06) 0 5px, rgba(0, 0, 0, .02) 5px 10px); }
.cal__b--busy b { white-space: normal; }
.cal__b--new { background: rgba(99, 102, 241, .08); border-color: var(--student); outline: 1.5px dashed rgba(99, 102, 241, .55); outline-offset: -1.5px; }
.cal__b--new s { color: var(--student-t); }
.fc.is-visible .cal__b--new { animation: calNew 2.4s ease-in-out 1s infinite; }
@keyframes calNew { 0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); } 50% { box-shadow: 0 0 0 4px rgba(99, 102, 241, .16); } }

.cal [data-d="1"] { grid-column: 2; }
.cal [data-d="2"] { grid-column: 3; }
.cal [data-d="3"] { grid-column: 4; }
.cal [data-d="4"] { grid-column: 5; }
.cal [data-d="5"] { grid-column: 6; }
/* Узкая карточка — три дня (ср–пт), чтобы имена читались */
@container (max-width: 440px) {
  .cal { grid-template-columns: 34px repeat(3, minmax(0, 1fr)); }
  .cal [data-d="1"], .cal [data-d="2"] { display: none; }
  .cal [data-d="3"] { grid-column: 2; }
  .cal [data-d="4"] { grid-column: 3; }
  .cal [data-d="5"] { grid-column: 4; }
}

/* — Заявки — */
.req { display: grid; grid-template-columns: 20px 30px minmax(0, 1fr); align-items: center; gap: 10px; padding: 5px 10px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .04); }
.req b { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; }
.req s { display: block; margin-top: 1px; font-size: 12px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.req__ck { width: 20px; height: 20px; border-radius: 6px; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.req__ck svg, .qz__op b svg, .qz__bd svg, .lib__add svg, .rl__ck svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
.req--warn { background: #fffaf0; box-shadow: 0 0 0 1px rgba(245, 158, 11, .35); }
.req__tag { padding: 1px 7px; border-radius: 999px; background: rgba(245, 158, 11, .18); color: #92600a; font-size: 11px; font-weight: 700; }
.req__bar { margin-top: auto; flex-shrink: 0; display: flex; align-items: center; gap: 6px; padding: 5px 5px 5px 12px; border-radius: 13px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; }
.req__bar span:first-child { margin-right: auto; }
.req__no, .req__ok { padding: 6px 11px; border-radius: 9px; font-weight: 700; }
.req__no { background: rgba(255, 255, 255, .12); }
.req__ok { background: var(--accent); }

/* — Пакет и оплаты — */
.pk { padding: 12px 14px; }
.pk__hd { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.pk__hd b { font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.pk__hd s { font-size: 11.5px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk__dots { margin-top: 10px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.pk__dots i { height: 10px; border-radius: 5px; background: linear-gradient(90deg, #f39a76, var(--accent)); transform-origin: left; }
.pk__dots i.off { background: rgba(26, 26, 31, .08); }
.pk__left { margin-top: 9px; font-size: 12.5px; color: var(--text-secondary); }
.pk__left b { color: var(--orange-text); }
.pay { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; font-size: 13px; }
.pay span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* — Аналитика: доход линией, незаконченная неделя пунктиром — */
.an__per { font-size: 12px; color: var(--text-secondary); }
.an__kp { display: grid; grid-template-columns: 1.2fr 1fr; gap: 8px; }
.an__kp > div { padding: 8px 11px; }
.an__kp s { display: block; font-size: 11.5px; color: var(--text-secondary); white-space: nowrap; }
.an__kp b { display: block; margin-top: 1px; font-size: 19px; font-weight: 600; white-space: nowrap; }
.an__rev { color: var(--accent); }
.an__ch { flex: 1; min-height: 0; width: 100%; display: block; overflow: visible; clip-path: inset(0 0 0 0); transition: clip-path 1.2s var(--ease-out) .35s; }
.an__a { fill: rgba(232, 115, 74, .12); }
.an__l, .an__d { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.an__d { stroke-dasharray: 5 5; }
.an__rk { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 11px; border-radius: 11px; background: rgba(232, 115, 74, .1); font-size: 13px; font-weight: 600; }
.an__rk span { display: flex; gap: 5px; }
.an__rk i { padding: 3px 9px; border-radius: 999px; background: #fff; color: var(--orange-text); font-size: 11.5px; font-style: normal; white-space: nowrap; }

/* — Политика отмен: лестница правил — */
.rl { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.rl__t { font-size: 13.5px; font-weight: 700; }
.rl__row { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-secondary); white-space: nowrap; }
.rl__row em { padding: 3px 8px; border-radius: 8px; background: var(--bg); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); color: var(--ink); font: 600 12px var(--font-mono); }
.rl__ck { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink); }
.rl__ck i { flex: none; width: 17px; height: 17px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); }
.rl__ck i svg { width: 10px; height: 10px; }
.rl__note { display: grid; grid-template-columns: 18px 1fr; gap: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(245, 158, 11, .13); color: #7c5205; font-size: 12.5px; line-height: 1.45; }
.rl__note svg { width: 18px; height: 18px; }

/* — ДЗ с автопроверкой: разбор после сдачи — */
.qz { padding: 11px 13px; }
.qz__h { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600; color: var(--student-t); }
.qz__h span { font-weight: 600; color: var(--parent-t); }
.qz__t { margin-top: 6px; font-size: 13.5px; line-height: 1.5; }
.qz__fx { display: inline-block; margin-left: 2px; padding: 1px 7px; border-radius: 7px; background: var(--bg); font: italic 500 13.5px var(--font-sans); white-space: nowrap; }
.qz__op { display: flex; align-items: center; gap: 9px; height: 32px; margin-top: 6px; padding: 0 10px; border-radius: 9px; border: 1px solid rgba(0, 0, 0, .08); font-size: 13px; }
.qz__op b { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #c9c7c0; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.qz__op.is-ok { background: rgba(16, 185, 129, .1); border-color: var(--parent); box-shadow: 0 0 0 3px rgba(16, 185, 129, .12); }
.qz__op.is-ok b { background: var(--parent); border-color: var(--parent); }
.qz__op b svg { width: 10px; height: 10px; }
.qz__bd { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--parent); color: #fff; font-size: 12.5px; font-weight: 700; box-shadow: 0 8px 18px -8px rgba(16, 185, 129, .7); }

/* — Доска со звонком внутри: плавающие плашки, светлая панель звонка,
   панель инструментов снизу по центру — */
.mu-board { padding: 0; gap: 0; background-color: #fdfcfa; background-image: linear-gradient(rgba(99, 102, 241, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(99, 102, 241, .07) 1px, transparent 1px); background-size: 20px 20px; }
.bd__area { position: absolute; left: 0; right: 170px; top: 36px; bottom: 44px; }
.bd__plot { position: absolute; left: 6px; top: 0; width: 240px; height: 166px; overflow: visible; }
.bd__ax { stroke: var(--ink); stroke-width: 1.8; fill: none; stroke-linecap: round; }
.bd__curve { stroke: var(--student); stroke-width: 4; fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.reveal-ready .fc:not(.is-visible) .bd__curve { stroke-dashoffset: 1; }
.fc.is-visible .bd__curve { animation: bdDraw 1.8s cubic-bezier(.6, 0, .3, 1) .5s both; }
@keyframes bdDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.bd__f { position: absolute; left: 188px; top: 8px; font: 500 15px var(--font-sans); color: var(--student-t); white-space: nowrap; }
.bd__roots { position: absolute; left: 60px; top: 146px; font: 500 14px var(--font-sans); color: var(--tutor-t); white-space: nowrap; }
.bd__top { position: absolute; left: 10px; top: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 11px; background: #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .08), 0 0 0 1px rgba(0, 0, 0, .05); font-size: 12px; font-weight: 700; color: var(--parent-t); }
.bd__top b { width: 20px; height: 20px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: var(--text-secondary); }
.bd__top i { width: 7px; height: 7px; border-radius: 50%; background: var(--parent); }
.bd__note { position: absolute; right: 178px; bottom: 54px; width: 92px; padding: 8px 9px; border-radius: 6px; background: #fde9df; box-shadow: 0 8px 16px rgba(194, 96, 58, .14); font-size: 12px; line-height: 1.3; font-weight: 600; color: #7a3a1f; }
.bd__call { position: absolute; right: 10px; top: 8px; width: 152px; padding: 7px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; border-radius: 14px; background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 12px 28px rgba(26, 26, 31, .14), 0 0 0 1px rgba(0, 0, 0, .05); }
.bd__ch { align-self: stretch; display: flex; align-items: center; gap: 5px; padding: 1px 3px; font-size: 11px; color: var(--text-secondary); white-space: nowrap; }
.bd__ch i { width: 6px; height: 6px; border-radius: 50%; background: #e5484d; animation: bdBlink 1.4s infinite; }
.bd__ch em { font: 600 11.5px var(--font-mono); color: var(--ink); }
@keyframes bdBlink { 50% { opacity: .25; } }
.bd__vid { position: relative; width: 138px; aspect-ratio: 16 / 9; border-radius: 9px; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); display: flex; align-items: center; justify-content: center; }
.bd__vid b { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 600; }
.bd__vid em { position: absolute; left: 6px; bottom: 3px; font-size: 10px; color: rgba(255, 255, 255, .85); }
.bd__vid--b { background: linear-gradient(150deg, #2b2c45, #24243a); }
.bd__vid--b b { background: linear-gradient(135deg, #8b8df5, #6366f1); }
.bd__vid--a { width: 70px; background: linear-gradient(150deg, #3a2c28, #2a2326); }
.bd__vid--a b { width: 20px; height: 20px; font-size: 8.5px; background: linear-gradient(135deg, #f39a76, #e8734a); box-shadow: 0 0 0 2px rgba(232, 115, 74, .45), 0 0 12px 3px rgba(232, 115, 74, .5); }
.bd__vid--a em { font-size: 8.5px; left: 4px; bottom: 1px; }
.bd__tb { position: absolute; left: 50%; bottom: 8px; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .1), 0 0 0 1px rgba(0, 0, 0, .05); transform: translateX(-50%); }
.bd__tb b { width: 26px; height: 26px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; }
.bd__tb b svg { width: 14px; height: 14px; fill: none; stroke: var(--text-secondary); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bd__tb b.on { background: rgba(232, 115, 74, .12); }
.bd__tb b.on svg { stroke: var(--accent); }
.bd__tb u { width: 13px; height: 13px; margin: 0 2px; border-radius: 50%; }
.bd__tb u.on { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #6366f1; }

/* Узкая карточка: панель звонка компактнее, формула под графиком, стикер прячем */
@container (max-width: 460px) {
  .bd__area { right: 110px; }
  .bd__plot { left: 0; width: 196px; height: 136px; }
  .bd__f { left: 14px; top: auto; bottom: 4px; font-size: 14px; }
  .bd__roots, .bd__note { display: none; }
  .bd__call { width: 100px; padding: 5px; }
  .bd__vid { width: 88px; }
  .bd__vid--a { width: 46px; }
  .bd__ch { font-size: 10px; }
  .bd__ch s { display: none; }
}

/* — База заданий — */
.lib__search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 11px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); font-size: 13px; color: var(--ink); }
.lib__search svg { width: 16px; height: 16px; color: var(--text-muted); }
.lib__tags { display: flex; flex-wrap: wrap; gap: 5px; }
.lib__tags span { padding: 3px 9px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); color: var(--text-secondary); font-size: 11.5px; font-weight: 600; }
.lib__tags span:first-child { background: rgba(99, 102, 241, .12); box-shadow: none; color: var(--student-t); }
.lib__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 8px 12px; }
.lib__row > div { min-width: 0; }
.lib__row b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib__row s { display: block; margin-top: 1px; font-size: 11.5px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib__add { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; height: 28px; padding: 0 10px; border-radius: 9px; background: rgba(232, 115, 74, .12); color: var(--orange-text); font-size: 12px; font-weight: 700; white-space: nowrap; }
.lib__add.is-on { width: 28px; padding: 0; background: var(--parent); }

/* — Прогресс ученика: уровень, серия, медали, статистика — */
.pg__hd { display: flex; align-items: center; gap: 10px; }
.pg__hd b { display: block; font-size: 14px; font-weight: 700; }
.pg__hd s { display: block; font-size: 12px; color: var(--text-secondary); }
.pg__row { padding: 9px 12px 10px; }
.pg__line { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.pg__line span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg__line .mu-mono { font-size: 11.5px; font-weight: 600; color: var(--student-t); white-space: nowrap; }
.pg__bar { display: block; position: relative; margin-top: 8px; height: 7px; border-radius: 6px; background: rgba(26, 26, 31, .07); overflow: hidden; }
.pg__bar::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--w) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--student), var(--parent)); transform-origin: left; }
.pg__st { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pg__st > div { padding: 7px 10px; }
.pg__st b { display: block; font-size: 16px; font-weight: 600; }
.pg__st s { display: block; font-size: 11px; color: var(--text-secondary); }
.pg__award { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 8px; border-radius: 999px; background: rgba(245, 158, 11, .15); color: #7c5205; font-size: 12.5px; font-weight: 700; }
.pg__award svg { width: 16px; height: 16px; }

/* — Отчёты для родителей: сводка и заметка после занятия — */
.rp { padding: 11px 13px; }
.rp__t { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-secondary); }
.rp p { margin-top: 6px; font-size: 13px; line-height: 1.45; }
.rp__kpi { margin-top: 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rp__kpi div { padding: 6px 9px; border-radius: 10px; background: var(--bg); }
.rp__kpi b { display: block; font-size: 16px; font-weight: 600; }
.rp__kpi s { display: block; font-size: 10.5px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp__tag { display: inline-flex; margin-top: 8px; padding: 4px 10px; border-radius: 999px; background: rgba(245, 158, 11, .15); color: #7c5205; font-size: 12px; font-weight: 700; }

/* — Уведомления на экране блокировки — */
.fc__vis--lock { background: linear-gradient(165deg, #fbd9c7 0%, #eadcf5 52%, #cfe9df 100%); }
/* В широкой карточке уведомления идут потоком: область растёт, если текст переносится */
.mu-notes { position: relative; inset: auto; min-height: 100%; justify-content: center; padding: 18px clamp(14px, 3vw, 36px); gap: 8px; }
.nt { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: start; gap: 10px; padding: 10px 12px; border-radius: 18px; background: rgba(255, 255, 255, .74); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 6px 16px -8px rgba(26, 26, 31, .25); }
.nt b { display: block; font-size: 12.5px; font-weight: 700; }
.nt p { margin-top: 1px; font-size: 13px; line-height: 1.35; color: var(--ink); }
.nt em { font-size: 11.5px; color: var(--text-secondary); }
.nt__ic { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; }
.nt__ic svg { width: 100%; height: 100%; }
.nt__ic--push { border-radius: 10px; background: var(--accent); color: #fff; }
.nt__ic--push svg { width: 17px; height: 17px; }

/* Оживление мини-интерфейсов при появлении карточки */
.reveal-ready .fc:not(.is-visible) .pk__dots i,
.reveal-ready .fc:not(.is-visible) .pg__bar::after { transform: scale(0, 1); }
.reveal-ready .fc:not(.is-visible) .an__ch { clip-path: inset(0 100% 0 0); }
.reveal-ready .fc:not(.is-visible) .nt { opacity: 0; transform: translateY(14px) scale(.95); }
.pk__dots i, .pg__bar::after { transition: transform 1s var(--ease-out); transition-delay: .35s; }
.pk__dots i:nth-child(2) { transition-delay: .43s; }
.pk__dots i:nth-child(3) { transition-delay: .51s; }
.pk__dots i:nth-child(4) { transition-delay: .59s; }
.pk__dots i:nth-child(5) { transition-delay: .67s; }
.pk__dots i:nth-child(6) { transition-delay: .75s; }
.pk__dots i:nth-child(7) { transition-delay: .83s; }
.nt { transition: opacity .55s var(--ease-out), transform .6s var(--ease-spring); transition-delay: calc(.35s + var(--d) * .22s); }

/* — Карточка ученика — */
.fc__vis--stu { background: linear-gradient(160deg, #fde3d6 0%, #f6efe9 55%, #e6e7fb 100%); }
.mu-stu { position: relative; inset: auto; min-height: 100%; align-items: center; justify-content: center; padding: 18px clamp(14px, 3vw, 36px); }
.su { width: 100%; max-width: 400px; padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 18px 40px -22px rgba(26, 26, 31, .35), 0 0 0 1px rgba(0, 0, 0, .04); }
.su__hd { display: flex; align-items: center; gap: 10px; }
.su__hd b { display: block; font-size: 15px; font-weight: 700; }
.su__hd s { display: block; font-size: 12px; color: var(--text-secondary); }
.su__prm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.su__prm div { padding: 8px 10px; border-radius: 10px; background: var(--bg); }
.su__prm b { display: block; font-size: 14px; font-weight: 600; }
.su__prm s, .su__note s { display: block; font-size: 11.5px; color: var(--text-secondary); }
.su__note { padding: 8px 10px; border-radius: 10px; background: var(--bg); font-size: 12.5px; }
.su__par { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.su__par b { color: var(--ink); font-weight: 700; }
.su__par i { width: 20px; height: 20px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: rgba(16, 185, 129, .14); }
.su__par svg { width: 12px; height: 12px; fill: none; stroke: var(--parent-t); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.su__pay { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 600; }
.su__inv { display: flex; align-items: center; justify-content: center; height: 34px; border-radius: 10px; border: 1.5px dashed color-mix(in srgb, var(--tutor) 55%, transparent); color: var(--tutor-t); font-size: 13px; font-weight: 700; }

/* ══════════════ АДАПТИВ ══════════════ */
@media (max-width: 1024px) {
  .fc { grid-column: span 6; }
  .fc--row { grid-column: span 12; }
  /* нечётная последняя карточка главы не остаётся одна в ряду */
  .fc:not(.fc--row):last-child:nth-child(even) { grid-column: span 12; }
}
@media (max-width: 760px) {
  .fc, .fc--row { grid-column: span 12; }
  .fc--row { flex-direction: column-reverse; }
  .fc--flip { flex-direction: column; }
  .fc--row .fc__vis { flex: none; min-height: 290px; }
  .fc--row .fc__body { padding: 18px 16px 14px; }
}
@media (max-width: 640px) {
  .bento { gap: 16px; }
  .fc { border-radius: 24px; }
  .fc__vis { border-radius: 18px; }
  .fc h4 { font-size: 20px; }
  .chap__head { flex-direction: column; }
}
@media (max-width: 400px) {
  .mu:not(.mu-board):not(.mu-notes) { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .bd__curve { stroke-dashoffset: 0 !important; }
  .an__ch { clip-path: none !important; }
}
