/* Учебный центр (/learning/). Базовые переменные, кнопки и тосты — из /pi-planning/base.css (копия стилей трекера). */

body {
  min-height: 100%;
  background:
    radial-gradient(900px 420px at 88% -120px, rgba(124, 58, 237, 0.10), transparent 70%),
    radial-gradient(700px 380px at -10% 10%, rgba(226, 98, 44, 0.07), transparent 70%),
    radial-gradient(rgba(124, 58, 237, 0.07) 1.2px, transparent 1.2px) 0 0 / 26px 26px,
    var(--bg);
}
body.lc-noscroll { overflow: hidden; }
a { color: inherit; }
svg { width: 1em; height: 1em; flex: none; }

/* ── Шапка ── */
.lc-top {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 24px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2)); height: 60px;
  background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
}
.lc-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'Unbounded', sans-serif; font-weight: 600; font-size: 15px; }
.lc-brand-mark { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 17px;
  background: linear-gradient(135deg, var(--purple), #e2622c); box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3); }
.lc-tabs { display: flex; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.lc-tabs::-webkit-scrollbar { display: none; }
.lc-tabs a { white-space: nowrap; text-decoration: none; font-weight: 600; font-size: 13px; color: var(--text2); padding: 7px 14px; border-radius: 20px; transition: background .15s, color .15s; }
.lc-tabs a:hover { background: var(--bg4); color: var(--text); }
.lc-tabs a.active { background: var(--text); color: #fff; }
.lc-narrow { display: none; }
.lc-back { white-space: nowrap; margin-left: auto; text-decoration: none; font-size: 13px; font-weight: 600; color: var(--text2); padding: 7px 12px; border-radius: var(--r); }
.lc-back:hover { background: var(--bg4); color: var(--text); }

.lc-main { max-width: 1240px; margin: 0 auto; padding: 36px 24px 80px; }
.lc-loading, .lc-empty { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 80px 20px; color: var(--text2); text-align: center; }
.lc-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--purple-mid); border-top-color: var(--purple); animation: lc-spin .8s linear infinite; }
@keyframes lc-spin { to { transform: rotate(360deg); } }
.lc-kicker { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent, var(--purple)); }
.lc-arrow { display: inline-flex; font-size: 18px; transition: transform .2s; }

/* ── Главная ── */
.lc-hero { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: end; margin-bottom: 40px; }
.lc-hero h1 { font-family: 'Unbounded', sans-serif; font-weight: 600; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -0.02em; margin: 12px 0 16px; }
.lc-hero p { font-size: 16px; color: var(--text2); max-width: 620px; line-height: 1.6; }
.lc-hero-stats { display: flex; gap: 28px; margin-top: 24px; color: var(--text2); font-size: 13px; }
.lc-hero-stats b { display: block; font-family: 'Unbounded', sans-serif; font-size: 26px; font-weight: 600; color: var(--text); line-height: 1.2; }
.lc-hero-gloss { display: flex; align-items: center; gap: 16px; padding: 20px; text-decoration: none; border-radius: var(--r-xl);
  background: var(--text); color: #fff; box-shadow: var(--shadow-lg); transition: transform .2s; }
.lc-hero-gloss:hover { transform: translateY(-2px); }
.lc-hero-gloss:hover .lc-arrow { transform: translateX(4px); }
.lc-hero-gloss-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: rgba(255, 255, 255, 0.12); }
.lc-hero-gloss b { display: block; font-family: 'Unbounded', sans-serif; font-weight: 500; font-size: 16px; }
.lc-hero-gloss small { display: block; font-size: 12.5px; color: rgba(255, 255, 255, 0.7); margin-top: 3px; line-height: 1.45; }
.lc-hero-gloss .lc-arrow { margin-left: auto; }

.lc-courses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.lc-course { display: flex; flex-direction: column; text-decoration: none; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
  animation: lc-rise .5s both; animation-delay: calc(var(--i) * 70ms); border-top: 4px solid var(--accent); }
.lc-course:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.lc-course:hover .lc-arrow { transform: translateX(4px); }
@keyframes lc-rise { from { opacity: 0; transform: translateY(14px); } }
.lc-course-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, #fff), color-mix(in srgb, var(--accent) 6%, #fff)); }
.lc-course-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lc-course-count { position: absolute; left: 14px; bottom: 14px; background: rgba(26, 29, 46, 0.82); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 20px; }
.lc-course-body { padding: 20px 22px 18px; display: flex; flex-direction: column; flex: 1; }
.lc-course-body h2 { font-family: 'Unbounded', sans-serif; font-weight: 600; font-size: 21px; margin-bottom: 8px; }
.lc-course-body p { color: var(--text2); font-size: 14px; line-height: 1.55; flex: 1; }
.lc-progress { height: 6px; border-radius: 6px; background: var(--bg4); overflow: hidden; margin-top: 18px; }
.lc-progress span { display: block; height: 100%; background: var(--accent, var(--purple)); border-radius: 6px; transition: width .4s; }
.lc-course-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--text2); }
.lc-course-foot .lc-arrow { color: var(--accent); }

.lc-poster-na { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text3); font-size: 13px; font-weight: 600; }

/* ── Курс ── */
.lc-crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--text3); margin-bottom: 18px; }
.lc-crumbs a { color: var(--text2); text-decoration: none; font-weight: 600; }
.lc-crumbs a:hover { color: var(--accent); }
.lc-course-head { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 32px; align-items: end; padding-bottom: 24px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.lc-course-head h1 { font-family: 'Unbounded', sans-serif; font-weight: 600; font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.02em; line-height: 1.1; }
.lc-course-head h1::after { content: ''; display: block; width: 56px; height: 5px; border-radius: 3px; background: var(--accent); margin-top: 14px; }
.lc-course-head p { color: var(--text2); font-size: 15px; max-width: 680px; margin-top: 14px; line-height: 1.6; }
.lc-meter-num { font-size: 13px; color: var(--text2); }
.lc-meter-num b { font-family: 'Unbounded', sans-serif; font-size: 30px; color: var(--text); font-weight: 600; }
.lc-course-meter .lc-progress { margin-top: 8px; }
.lc-meter-cap { font-size: 12px; color: var(--text3); margin-top: 6px; }
.lc-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text2); margin-bottom: 20px; cursor: pointer; }
.lc-check input { accent-color: var(--accent); width: 16px; height: 16px; }

.lc-intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); text-decoration: none; background: var(--text); color: #fff;
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); margin-bottom: 36px; }
.lc-intro-poster { position: relative; aspect-ratio: 16 / 9; background: #2a2e44; overflow: hidden; }
.lc-intro-poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.lc-intro:hover .lc-intro-poster img { transform: scale(1.03); }
.lc-intro-body { padding: 30px 30px; display: flex; flex-direction: column; justify-content: center; }
.lc-intro-body .lc-kicker { color: color-mix(in srgb, var(--accent) 60%, #fff); }
.lc-intro-body h2 { font-family: 'Unbounded', sans-serif; font-weight: 500; font-size: 22px; line-height: 1.25; margin: 10px 0 12px; }
.lc-intro-body p { color: rgba(255, 255, 255, 0.72); font-size: 14px; line-height: 1.6; }
.lc-intro-cta { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 20px; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 24px; }
.lc-intro.na { cursor: default; }
.lc-intro.na .lc-intro-cta { background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.7); }

.lc-sec { font-family: 'Unbounded', sans-serif; font-weight: 500; font-size: 16px; margin-bottom: 16px; }
.lc-module { margin-bottom: 36px; }
.lc-module-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 8px; margin-bottom: 12px; }
.lc-module-head .lc-sec { margin: 0; }
.lc-module-meta { font-size: 13px; color: var(--text3); font-weight: 600; }
.lc-module-sum { color: var(--text2); font-size: 14px; margin: -2px 0 14px; max-width: 760px; }
.lc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.lc-video { display: flex; flex-direction: column; text-decoration: none; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.lc-video:not(.na):hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.lc-video.na { cursor: default; opacity: .75; }
.lc-video-poster { position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, #fff), color-mix(in srgb, var(--accent) 5%, #fff)); }
.lc-video-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lc-play { position: absolute; inset: 0; margin: auto; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; color: #fff;
  background: color-mix(in srgb, var(--accent) 92%, #000); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s; }
.lc-play svg { margin-left: 3px; }
.lc-video:hover .lc-play, .lc-play-lg { opacity: 1; transform: none; }
.lc-play-lg { width: 68px; height: 68px; font-size: 26px; }
.lc-video-no { position: absolute; top: 10px; left: 10px; min-width: 26px; text-align: center; background: #fff; color: var(--text); font-weight: 800; font-size: 12px; border-radius: 20px; padding: 2px 8px; box-shadow: var(--shadow-sm); }
.lc-video-done { position: absolute; top: 10px; right: 10px; display: none; align-items: center; gap: 4px; background: var(--green); color: #fff; font-weight: 700; font-size: 11px; border-radius: 20px; padding: 3px 9px; }
.viewed .lc-video-done { display: inline-flex; }
.lc-video-title { font-weight: 700; font-size: 15px; line-height: 1.35; padding: 13px 16px 4px; }
.lc-video-sum { font-size: 13px; color: var(--text2); padding: 0 16px 16px; line-height: 1.5; }

/* ── Плеер ── */
.lc-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(15, 17, 30, 0.72); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 24px; animation: lc-fade .2s; }
@keyframes lc-fade { from { opacity: 0; } }
.lc-player { width: min(1080px, 100%); max-height: 100%; overflow: auto; background: var(--bg2); border-radius: var(--r-xl); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4); }
.lc-player-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 16px 20px; }
.lc-player-title { font-family: 'Unbounded', sans-serif; font-weight: 500; font-size: 18px; margin-top: 4px; }
.lc-x { border: 0; background: var(--bg4); width: 34px; height: 34px; border-radius: 50%; font-size: 20px; cursor: pointer; color: var(--text2); flex: none; }
.lc-x:hover { background: var(--border2); color: var(--text); }
.lc-player-stage { position: relative; background: #000; }
.lc-player-stage video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.lc-end { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px;
  background: rgba(15, 17, 30, 0.88); color: #fff; animation: lc-fade .3s; }
.lc-end[hidden] { display: none; }
.lc-end-cap { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.lc-end-title { font-family: 'Unbounded', sans-serif; font-size: clamp(18px, 2.4vw, 26px); font-weight: 500; max-width: 640px; }
.lc-end-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.lc-end .btn { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.lc-end .btn-primary { background: var(--accent); box-shadow: none; }
.lc-player-foot { padding: 16px 20px 20px; }
.lc-player-foot p { color: var(--text2); font-size: 14px; }
.lc-terms { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; align-items: center; }
.lc-terms:empty { display: none; }
.lc-terms-cap { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text3); margin-right: 4px; }
.lc-terms a { font-size: 12.5px; font-weight: 600; text-decoration: none; padding: 4px 11px; border-radius: 20px; background: color-mix(in srgb, var(--accent) 10%, #fff); color: color-mix(in srgb, var(--accent) 80%, #000); }
.lc-terms a:hover { background: color-mix(in srgb, var(--accent) 20%, #fff); }

/* ── Глоссарий ── */
.lc-gloss-head { max-width: 760px; margin-bottom: 28px; }
.lc-gloss-head h1 { font-family: 'Unbounded', sans-serif; font-weight: 600; font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.02em; margin: 10px 0 12px; }
.lc-gloss-head p { color: var(--text2); font-size: 15px; line-height: 1.6; }
.lc-search { display: flex; align-items: center; gap: 10px; margin-top: 22px; background: var(--bg2); border: 1.5px solid var(--border); border-radius: 14px; padding: 0 16px; box-shadow: var(--shadow-sm); color: var(--text3); font-size: 18px; transition: border-color .15s, box-shadow .15s; }
.lc-search:focus-within { border-color: var(--purple); box-shadow: 0 0 0 4px var(--purple-light); }
.lc-search input { flex: 1; border: 0; outline: 0; background: none; font: inherit; font-size: 15px; color: var(--text); padding: 14px 0; }
.lc-gloss-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 36px; align-items: start; }
.lc-toc { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 100px); overflow: auto; }
.lc-toc a { display: flex; justify-content: space-between; gap: 10px; text-decoration: none; font-size: 13px; font-weight: 600; color: var(--text2); padding: 7px 12px; border-radius: var(--r); }
.lc-toc a:hover { background: var(--bg4); color: var(--text); }
.lc-toc a span { color: var(--text3); font-weight: 500; }
.lc-toc a.muted { opacity: .4; }
.lc-gloss-sec { margin-bottom: 36px; scroll-margin-top: 80px; }
.lc-gloss-sec h2 { font-family: 'Unbounded', sans-serif; font-weight: 500; font-size: 19px; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 2px solid var(--text); }
.lc-term { position: relative; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px 20px; margin-bottom: 10px; scroll-margin-top: 84px; }
.lc-term-sec { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--purple); margin-bottom: 4px; }
.lc-term h3 { font-size: 16px; font-weight: 800; line-height: 1.35; }
.lc-term-anchor { position: absolute; left: 6px; top: 16px; text-decoration: none; color: var(--purple-mid); font-weight: 700; opacity: 0; transition: opacity .15s; }
.lc-term:hover .lc-term-anchor { opacity: 1; }
.lc-term-alt { font-size: 12.5px; color: var(--text3); margin-top: 2px; }
.lc-term p { margin-top: 8px; font-size: 14.5px; line-height: 1.6; }
.lc-term-note { margin-top: 8px; font-size: 13.5px; line-height: 1.55; color: var(--text2); padding: 8px 12px; border-radius: var(--r); background: var(--bg3); border-left: 3px solid var(--border2); }
.lc-term-note.warn { border-left-color: var(--yellow); background: #fffaf0; }
.lc-term-note.ours { border-left-color: var(--purple); background: var(--purple-light); }
.lc-term-note b { color: var(--text); }
.lc-term-videos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lc-term-videos a { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; text-decoration: none; padding: 4px 11px; border-radius: 20px; border: 1px solid var(--border); color: var(--text2); }
.lc-term-videos a svg { font-size: 10px; color: var(--purple); }
.lc-term-videos a:hover { border-color: var(--purple-mid); color: var(--purple); }
.lc-term.flash { animation: lc-flash 2s ease-out; }
@keyframes lc-flash { 0%, 30% { border-color: var(--purple); box-shadow: 0 0 0 4px var(--purple-light); } }

/* ── Телефон ── */
@media (max-width: 900px) {
  .lc-hero, .lc-course-head, .lc-intro { grid-template-columns: 1fr; }
  .lc-hero { gap: 24px; }
  .lc-courses { grid-template-columns: 1fr; }
  .lc-gloss-body { grid-template-columns: 1fr; gap: 16px; }
  .lc-toc { position: sticky; top: 60px; z-index: 5; flex-direction: row; overflow-x: auto; max-height: none; background: var(--bg); padding: 8px 0; margin: 0 -24px; padding-left: 24px; }
  .lc-toc a { white-space: nowrap; border: 1px solid var(--border); border-radius: 20px; background: var(--bg2); }
  .lc-term, .lc-gloss-sec { scroll-margin-top: 130px; }
}
@media (max-width: 600px) {
  .lc-top { gap: 10px; padding: 0 14px; }
  .lc-brand span:last-child { display: none; }
  .lc-tabs a { padding: 6px 11px; }
  .lc-wide { display: none; }
  .lc-narrow { display: inline; }
  .lc-tabs a { padding: 6px 9px; }
  .lc-back { padding: 6px 8px; }
  .lc-main { padding: 24px 16px 60px; }
  .lc-toc { margin: 0 -16px; padding-left: 16px; }
  .lc-hero-stats { gap: 20px; }
  .lc-intro-body { padding: 20px; }
  .lc-overlay { padding: 0; place-items: stretch; }
  .lc-player { border-radius: 0; }
  .lc-term { padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ── Тесты ── */
.lc-quiz { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; margin-top: 16px; padding: 16px 20px;
  border-radius: var(--r-lg); background: var(--bg2); border: 1px solid var(--border); border-left: 4px solid var(--accent); box-shadow: var(--shadow-sm); }
.lc-quiz-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, #fff); }
.lc-quiz-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 800; font-size: 15px; }
.lc-quiz-chip { font-size: 11px; font-weight: 700; letter-spacing: .02em; padding: 2px 9px; border-radius: 20px; background: var(--bg4); color: var(--text2); }
.lc-quiz-note { font-size: 13px; color: var(--text2); margin-top: 3px; }
.lc-quiz-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.lc-quiz-actions .btn, .lc-quiz-start-actions .btn, .lc-rep-actions .btn, .lc-dialog-actions .btn { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.lc-quiz .btn-primary, .lc-quiz-page .btn-primary { background: var(--accent); box-shadow: none; }
.lc-quiz .btn-primary:hover, .lc-quiz-page .btn-primary:hover { background: color-mix(in srgb, var(--accent) 85%, #000); }
.lc-quiz.is-locked, .lc-quiz.is-preparing { border-left-color: var(--border2); background: var(--bg3); }
.lc-quiz.is-locked .lc-quiz-ic, .lc-quiz.is-preparing .lc-quiz-ic { color: var(--text3); background: var(--bg4); }
.lc-quiz.is-passed { border-left-color: var(--green); }
.lc-quiz.is-passed .lc-quiz-ic { color: #fff; background: var(--green); }
.lc-quiz.is-passed .lc-quiz-chip { background: #e5f7ee; color: #007a3d; }
.lc-quiz.is-failed .lc-quiz-chip, .lc-quiz.is-exhausted .lc-quiz-chip { background: #fff0f4; color: #c81e4b; }
.lc-quiz.is-available .lc-quiz-chip, .lc-quiz.is-in_progress .lc-quiz-chip { background: color-mix(in srgb, var(--accent) 12%, #fff); color: color-mix(in srgb, var(--accent) 80%, #000); }

.lc-quiz-page { max-width: 860px; margin: 0 auto; animation: lc-rise .35s both; }
.lc-quiz-start { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow); padding: 32px 36px; border-top: 5px solid var(--accent); }
.lc-quiz-start h1, .lc-take-head h1 { font-family: 'Unbounded', sans-serif; font-weight: 600; font-size: clamp(22px, 3vw, 30px); line-height: 1.2; letter-spacing: -0.01em; margin: 10px 0 18px; }
.lc-quiz-lead { color: var(--text2); font-size: 15px; line-height: 1.6; }
.lc-quiz-rules { list-style: none; display: grid; gap: 10px; margin-bottom: 24px; }
.lc-quiz-rules li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 1.55; color: var(--text2); }
.lc-quiz-rules li::before { content: ''; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.lc-quiz-rules b { color: var(--text); }
.lc-quiz-start-actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.lc-mentor { padding: 18px 20px; border-radius: var(--r-lg); background: var(--bg3); border: 1px solid var(--border); }
.lc-mentor label { font-weight: 800; font-size: 14px; }
.lc-mentor label span { font-weight: 600; font-size: 12px; color: var(--text3); margin-left: 6px; }
.lc-mentor p { font-size: 13px; color: var(--text2); margin: 4px 0 12px; }
.lc-mentor-box { position: relative; }
.lc-mentor-box input { width: 100%; font: inherit; font-size: 14px; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--r); background: var(--bg2); outline: 0; }
.lc-mentor-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
.lc-mentor-list { position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 4px); background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-lg); max-height: 290px; overflow: auto; padding: 4px; }
.lc-mentor-list button { display: block; width: 100%; text-align: left; border: 0; background: none; font: inherit; padding: 8px 10px; border-radius: var(--r-sm); cursor: pointer; }
.lc-mentor-list button:hover { background: var(--bg4); }
.lc-mentor-list b, .lc-mentor-chip b { display: block; font-size: 14px; }
.lc-mentor-list small, .lc-mentor-chip small, .lc-table small { display: block; font-size: 12px; color: var(--text3); }
.lc-mentor-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 30px; background: var(--bg2); border: 1.5px solid var(--accent); color: var(--accent); }
.lc-mentor-chip span { color: var(--text); }
.lc-mentor-chip button { border: 0; background: var(--bg4); color: var(--text2); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; font-size: 12px; }
.lc-mentor-chip button:hover { background: var(--border2); color: var(--text); }

/* Прохождение */
.lc-take-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.lc-take-head h1 { margin-bottom: 6px; }
.lc-take-mentor { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text2); }
.lc-take-count { text-align: right; font-size: 13px; color: var(--text2); flex: none; }
.lc-take-count b { font-family: 'Unbounded', sans-serif; font-size: 28px; color: var(--text); font-weight: 600; }
.lc-take-count small { display: block; font-size: 12px; color: var(--text3); }
.lc-take-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0; }
.lc-take-nav button { width: 34px; height: 34px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--bg2); font: inherit; font-size: 13px; font-weight: 700; color: var(--text2); cursor: pointer; transition: all .15s; }
.lc-take-nav button:hover { border-color: var(--accent); }
.lc-take-nav button.done { background: color-mix(in srgb, var(--accent) 14%, #fff); border-color: transparent; color: color-mix(in srgb, var(--accent) 80%, #000); }
.lc-take-nav button.cur { background: var(--text); border-color: var(--text); color: #fff; }
.lc-q { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow); padding: 28px 30px; }
.lc-q-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: .08em; }
.lc-q-kind { font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: none; padding: 2px 9px; border-radius: 20px; background: var(--bg4); color: var(--text2); }
.lc-q-text { font-size: 17px; line-height: 1.6; font-weight: 600; margin: 14px 0 18px; }
.lc-q-hint { font-size: 13px; color: color-mix(in srgb, var(--accent) 80%, #000); font-weight: 600; margin: -8px 0 14px; }
.lc-opts { display: grid; gap: 10px; }
.lc-opt { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border-radius: var(--r-lg); border: 1.5px solid var(--border);
  background: var(--bg3); cursor: pointer; transition: border-color .15s, background .15s; }
.lc-opt:hover { border-color: var(--border2); background: var(--bg2); }
.lc-opt input { position: absolute; opacity: 0; pointer-events: none; }
.lc-opt:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 2px; }
.lc-opt-mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--bg2); border: 1.5px solid var(--border2); color: var(--text2); }
.lc-opts[role="radiogroup"] .lc-opt-mark { border-radius: 50%; }
.lc-opt-text { font-size: 15px; line-height: 1.55; padding-top: 4px; }
.lc-opt.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, #fff); }
.lc-opt.on .lc-opt-mark { background: var(--accent); border-color: var(--accent); color: #fff; }
.lc-take-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.lc-take-foot .btn { display: inline-flex; align-items: center; gap: 8px; }
.lc-take-foot .lc-finish { background: var(--text); }

.lc-dialog { width: min(480px, 100%); background: var(--bg2); border-radius: var(--r-xl); padding: 26px 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.lc-dialog h2 { font-family: 'Unbounded', sans-serif; font-weight: 600; font-size: 20px; margin-bottom: 12px; }
.lc-dialog p { font-size: 14px; color: var(--text2); line-height: 1.55; margin-bottom: 8px; }
.lc-dialog .lc-dialog-warn { color: #b4183f; background: #fff0f4; padding: 10px 12px; border-radius: var(--r); font-weight: 600; }
.lc-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* Отчёт */
.lc-report { max-width: 900px; }
.lc-rep-head { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: center; padding: 28px 30px; border-radius: var(--r-xl); color: #fff;
  background: radial-gradient(500px 220px at 100% 0, rgba(255, 255, 255, 0.10), transparent 70%), var(--text); box-shadow: var(--shadow-lg); }
.lc-rep-verdict { display: flex; gap: 18px; align-items: center; }
.lc-rep-badge { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; flex: none; }
.lc-report.ok .lc-rep-badge { background: var(--green); }
.lc-report.fail .lc-rep-badge { background: var(--red); }
.lc-rep-head .lc-kicker { color: rgba(255, 255, 255, 0.6); }
.lc-rep-head h1 { font-family: 'Unbounded', sans-serif; font-weight: 600; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; margin: 4px 0; }
.lc-rep-test { color: rgba(255, 255, 255, 0.72); font-size: 14px; }
.lc-rep-num { display: flex; align-items: baseline; gap: 10px; }
.lc-rep-num b { font-family: 'Unbounded', sans-serif; font-size: 40px; font-weight: 600; }
.lc-rep-num span { color: rgba(255, 255, 255, 0.7); font-size: 14px; }
.lc-rep-bar { position: relative; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.14); margin: 10px 0 8px; }
.lc-rep-bar span { display: block; height: 100%; border-radius: 8px; }
.lc-report.ok .lc-rep-bar span { background: var(--green); }
.lc-report.fail .lc-rep-bar span { background: var(--red); }
.lc-rep-bar i { position: absolute; top: -4px; width: 2px; height: 16px; background: #fff; border-radius: 2px; }
.lc-rep-cap { font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.lc-rep-meta { display: flex; flex-wrap: wrap; gap: 18px; margin: 16px 4px 22px; font-size: 13px; color: var(--text2); }
.lc-rep-meta span { display: inline-flex; align-items: center; gap: 6px; }
.lc-rep-reset { color: #b4183f; font-weight: 700; }
.lc-rep-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.lc-seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--bg4); }
.lc-seg button { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--text2); padding: 7px 14px; border-radius: 9px; cursor: pointer; }
.lc-seg button.active { background: var(--bg2); color: var(--text); box-shadow: var(--shadow-sm); }
.lc-seg button:disabled { opacity: .45; cursor: default; }
.lc-rep-actions { display: flex; gap: 8px; }
.lc-rep-list.only-wrong .lc-rq.ok { display: none; }
.lc-rq { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px 22px; margin-bottom: 12px; border-left: 4px solid var(--green); }
.lc-rq.bad { border-left-color: var(--red); }
.lc-rq-head { display: flex; align-items: center; gap: 10px; }
.lc-rq-no { font-weight: 800; font-size: 13px; color: var(--text3); }
.lc-rq-res { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 20px; background: #e5f7ee; color: #007a3d; }
.lc-rq.bad .lc-rq-res { background: #fff0f4; color: #c81e4b; }
.lc-rq .lc-q-text { font-size: 15.5px; margin: 12px 0 14px; }
.lc-rq-opts { list-style: none; display: grid; gap: 8px; }
.lc-rq-opts li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--bg3); border: 1.5px solid transparent; }
.lc-rq-opts li.right { background: #effaf4; border-color: #9fdcbc; }
.lc-rq-opts li.chosen:not(.right) { background: #fff4f7; border-color: #ffc2d2; }
.lc-rq-opts li.right .lc-opt-mark { background: var(--green); border-color: var(--green); color: #fff; }
.lc-rq-opts li.chosen:not(.right) .lc-opt-mark { background: var(--red); border-color: var(--red); color: #fff; }
.lc-rq-opt { font-size: 14.5px; line-height: 1.5; font-weight: 600; }
.lc-rq-opt em { font-style: normal; font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 20px; margin-left: 8px; white-space: nowrap; }
.lc-rq-opt .tag-right { background: var(--green); color: #fff; }
.lc-rq-opt .tag-chosen { background: var(--text); color: #fff; }
.lc-rq-why { font-size: 13.5px; color: var(--text2); line-height: 1.55; margin-top: 4px; }
.lc-rq-explain { margin-top: 12px; font-size: 14px; line-height: 1.6; padding: 10px 14px; border-radius: var(--r); background: color-mix(in srgb, var(--accent) 8%, #fff); border-left: 3px solid var(--accent); }

/* Подопечные */
.lc-table-wrap { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: auto; box-shadow: var(--shadow-sm); }
.lc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lc-table th { text-align: left; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text3); padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg3); }
.lc-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.lc-table tr:last-child td { border-bottom: 0; }
.lc-status { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 20px; background: var(--bg4); color: var(--text2); white-space: nowrap; }
.lc-status.is-passed { background: #e5f7ee; color: #007a3d; }
.lc-status.is-failed, .lc-status.is-exhausted { background: #fff0f4; color: #c81e4b; }
.lc-status.is-in_progress { background: var(--purple-light); color: var(--purple); }
.lc-att { display: flex; flex-wrap: wrap; gap: 6px; }
.lc-att a, .lc-att span { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 20px; text-decoration: none; white-space: nowrap; background: var(--bg4); color: var(--text2); }
.lc-att a.ok { background: #e5f7ee; color: #007a3d; }
.lc-att a.bad { background: #fff0f4; color: #c81e4b; }
.lc-att a.reset { opacity: .55; text-decoration: line-through; }

@media (max-width: 900px) {
  .lc-rep-head { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 600px) {
  .lc-quiz { grid-template-columns: auto minmax(0, 1fr); padding: 14px 16px; }
  .lc-quiz-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .lc-quiz-start { padding: 22px 18px; }
  .lc-q { padding: 20px 16px; }
  .lc-q-text { font-size: 16px; }
  .lc-take-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .lc-take-count { text-align: left; }
  .lc-take-nav button { width: 32px; height: 32px; }
  .lc-rep-head { padding: 22px 18px; }
  .lc-rq { padding: 16px; }
  .lc-table thead { display: none; }
  .lc-table, .lc-table tbody, .lc-table tr, .lc-table td { display: block; }
  .lc-table tr { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .lc-table td { border: 0; padding: 4px 16px; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
  .lc-table td::before { content: attr(data-l); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text3); padding-top: 3px; }
}
