/* =====================================================================
   СВІТЛОФОР · Навчальна платформа
   Фірмові кольори з логотипа: червоний, жовтий, зелений.
   Семантика статусів уроків — як у світлофора:
     зелений — складено / пройдено
     жовтий  — у процесі
     червоний — тест не складено
     сірий   — заблоковано / не розпочато
   ===================================================================== */

:root {
  --red: #e12b1c;
  --red-soft: #fde9e7;
  --yellow: #fadf12;
  --yellow-ink: #8a6d00;
  --yellow-soft: #fff8cc;
  --green: #1fa84f;
  --green-dark: #0b7d37;
  --green-soft: #e3f5e9;

  --ink: #15171d;      /* темні плашки: меню, банери, кнопки */
  --ink-2: #23262f;
  --fg: #15171d;       /* найконтрастніший колір тексту (у темній темі — світлий) */
  --text: #1b1d24;
  --muted: #6b7080;
  --dim: #9aa0ad;
  --bg: #f5f4f0;
  --surface: #ffffff;
  --surface-2: #faf9f6;
  --line: #e9e6df;
  --line-strong: #d9d5cc;

  --primary: var(--green-dark);
  --primary-hover: #086a2e;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(20, 22, 28, .05);
  --shadow: 0 1px 2px rgba(20, 22, 28, .04), 0 8px 24px rgba(20, 22, 28, .06);
  --shadow-lg: 0 24px 60px rgba(20, 22, 28, .18);
  --ease: cubic-bezier(.2, .7, .3, 1);
  --header-h: 68px;

  --font-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
img { max-width: 100%; }
/* Іконки за замовчуванням — розміром з текст (конкретні місця перевизначають) */
svg { width: 1em; height: 1em; flex: none; vertical-align: -0.125em; }
.breadcrumbs svg { width: 14px; height: 14px; color: var(--dim); }
::selection { background: var(--yellow); color: var(--ink); }
[hidden] { display: none !important; }
button { font: inherit; }

/* ---------------------------------------------------------- brand stripe & header */
.brand-stripe { height: 4px; display: flex; position: sticky; top: 0; z-index: 41; }
.brand-stripe i { flex: 1; }
.brand-stripe i:nth-child(1) { background: var(--red); }
.brand-stripe i:nth-child(2) { background: var(--yellow); }
.brand-stripe i:nth-child(3) { background: var(--green); }

.topbar {
  position: sticky; top: 4px; z-index: 40; height: var(--header-h);
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { max-width: 1280px; height: 100%; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--fg); }
.brand:hover { text-decoration: none; }
.brand img { height: 42px; width: auto; transition: transform .4s var(--ease); }
.brand:hover img { transform: rotate(-2deg) scale(1.03); }
.brand-sub { font-family: var(--font-display); font-size: .72rem; font-weight: 500; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; border-left: 1px solid var(--line-strong); padding-left: 12px; line-height: 1.2; }
.nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.nav a.nav-link { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .92rem; transition: background .2s, color .2s; }
.nav a.nav-link:hover { background: var(--bg); color: var(--fg); text-decoration: none; }
.nav a.nav-link.active { background: var(--ink); color: #fff; }
.nav a.nav-link svg { width: 17px; height: 17px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: var(--fg);
  background: conic-gradient(from 200deg, var(--red), var(--yellow), var(--green), var(--red)); padding: 2px; margin-left: 6px; }
.avatar span { width: 100%; height: 100%; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.avatar:hover { text-decoration: none; transform: scale(1.05); }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--muted); transition: all .2s; }
.icon-btn:hover { color: var(--red); border-color: var(--red); }
.icon-btn svg { width: 18px; height: 18px; }

.container { max-width: 1280px; margin: 0 auto; padding: 28px 20px 80px; }
.narrow { max-width: 460px; margin: 0 auto; }
.medium { max-width: 860px; margin: 0 auto; }

/* ---------------------------------------------------------- animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(31, 168, 79, .55); } 70% { box-shadow: 0 0 0 9px rgba(31, 168, 79, 0); } }
@keyframes shimmer { from { background-position: -400px 0; } to { background-position: 400px 0; } }
@keyframes lightCycle {
  0%, 30% { opacity: 1; filter: none; }
  33%, 100% { opacity: .18; filter: grayscale(.6); }
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes spin { to { transform: rotate(360deg); } }

.view-in { animation: fadeUp .45s var(--ease) both; }
.stagger > * { animation: fadeUp .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------------------------------------------------------- traffic light loader */
.loader-wrap { display: grid; place-items: center; padding: 80px 0; }
.tl { display: inline-flex; flex-direction: column; gap: 7px; padding: 9px; background: var(--ink); border-radius: 16px; box-shadow: var(--shadow); }
.tl i { width: 18px; height: 18px; border-radius: 50%; animation: lightCycle 1.5s infinite; }
.tl i:nth-child(1) { background: var(--red); box-shadow: 0 0 14px var(--red); }
.tl i:nth-child(2) { background: var(--yellow); box-shadow: 0 0 14px var(--yellow); animation-delay: .5s; }
.tl i:nth-child(3) { background: var(--green); box-shadow: 0 0 14px var(--green); animation-delay: 1s; }
.tl.big { gap: 14px; padding: 16px; border-radius: 28px; }
.tl.big i { width: 44px; height: 44px; }
.tl.horizontal { flex-direction: row; }

/* ---------------------------------------------------------- surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px; }
.card + .card, .card + .section, .section + .card { margin-top: 18px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-title h2, .card-title h3 { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.tiny { font-size: .76rem; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 6px; }
.spacer { flex: 1; }
.mt { margin-top: 16px; } .mt-lg { margin-top: 28px; } .mb { margin-bottom: 16px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { margin: 0; }
.eyebrow { font-family: var(--font-display); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 6px; }
.breadcrumbs { font-size: .86rem; color: var(--muted); margin-bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--fg); }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .tl { margin-bottom: 14px; }

/* ---------------------------------------------------------- forms */
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .88rem; }
.field { margin-bottom: 16px; }
input[type=text], input[type=password], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: var(--surface); color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(31, 168, 79, .14); }
textarea { resize: vertical; min-height: 96px; }
textarea.code { font-family: var(--font-mono); font-size: .88rem; min-height: 220px; line-height: 1.6; }
.hint { font-size: .78rem; color: var(--muted); margin-top: 6px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check-pill { display: inline-flex; gap: 8px; align-items: center; padding: 7px 14px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 500; margin: 0; transition: all .2s; user-select: none; }
.check-pill:has(input:checked) { border-color: var(--green); background: var(--green-soft); color: var(--green-dark); }
.check-pill input { accent-color: var(--green); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; margin: 0; }
.switch input { appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line-strong); position: relative; cursor: pointer; transition: background .25s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s var(--ease); }
.switch input:checked { background: var(--green); }
.switch input:checked::after { transform: translateX(18px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--ink); color: #fff; font-weight: 700; font-size: .92rem; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .15s var(--ease), background .2s, box-shadow .2s, border-color .2s, color .2s;
}
.btn:hover { background: #000; text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(20, 22, 28, .18); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-go { background: var(--green-dark); }
.btn-go:hover { background: var(--primary-hover); box-shadow: 0 8px 20px rgba(11, 125, 55, .3); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: var(--fg); box-shadow: none; }
.btn-danger { background: var(--surface); color: var(--red); border-color: var(--red-soft); }
.btn-danger:hover { background: var(--red); color: #fff; border-color: var(--red); box-shadow: 0 6px 16px rgba(225, 43, 28, .25); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #f1d200; }
.btn-tg { background: #229ed9; color: #fff; }
.btn-tg:hover { background: #1b8cc2; }
.btn-sm { padding: 7px 13px; font-size: .84rem; }
.btn-xs { padding: 5px 9px; font-size: .78rem; }
.btn-block { width: 100%; }
.btn-icon { padding: 8px; width: 36px; height: 36px; }
.btn-link { background: none; border: none; color: var(--green-dark); cursor: pointer; padding: 0; font-weight: 700; }
.btn-link:hover { text-decoration: underline; }

/* ---------------------------------------------------------- badges / progress / status */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; background: var(--bg); color: var(--muted); white-space: nowrap; }
.badge.ok { background: var(--green-soft); color: var(--green-dark); }
.badge.bad { background: var(--red-soft); color: var(--red); }
.badge.warn { background: var(--yellow-soft); color: var(--yellow-ink); }
.badge.dark { background: var(--ink); color: #fff; }
.badge svg { width: 13px; height: 13px; }
.light { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--line-strong); display: inline-block; }
.light.done { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.light.progress { background: var(--yellow); box-shadow: 0 0 0 3px var(--yellow-soft); }
.light.failed { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.light.locked { background: var(--line-strong); }
.light.live { background: var(--green); animation: pulse 1.8s infinite; }
.light.paused { background: var(--yellow); }

.progress { height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.progress { flex: 1; min-width: 60px; }
.progress > div { height: 100%; border-radius: 999px; background: var(--green); transition: width 1s var(--ease); }
.ring { --size: 84px; --stroke: 8; width: var(--size); height: var(--size); position: relative; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: var(--stroke); }
.ring .track { stroke: rgba(127, 127, 127, .18); }
.ring .bar { stroke: var(--green); stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease); }
.ring .val { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: calc(var(--size) / 5.6); }

.alert { padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 14px; display: flex; gap: 10px; align-items: flex-start; }
.alert.err { background: var(--red-soft); color: #a41d12; }
.alert.info { background: #eef1f7; color: var(--ink-2); }
.alert.warn { background: var(--yellow-soft); color: var(--yellow-ink); }
.alert.ok { background: var(--green-soft); color: var(--green-dark); }

/* ---------------------------------------------------------- auth screen */
.auth { min-height: calc(100vh - var(--header-h) - 4px); display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-art { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-art::before, .auth-art::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(80px); opacity: .35; }
.auth-art::before { background: var(--red); top: -160px; left: -140px; }
.auth-art::after { background: var(--green); bottom: -200px; right: -160px; }
.auth-art > * { position: relative; z-index: 1; }
.auth-art .logo-pill { background: #fff; border-radius: 22px; padding: 10px 16px; display: inline-block; align-self: flex-start; }
.auth-art .logo-pill img { height: 54px; display: block; }
.auth-art h1 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); color: #fff; margin: 28px 0 14px; }
.auth-art h1 em { font-style: normal; background: linear-gradient(90deg, var(--red), var(--yellow), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-art p { color: #c9ccd4; max-width: 440px; font-size: 1.05rem; }
.auth-art .tl { animation: floaty 5s ease-in-out infinite; align-self: flex-end; background: #0c0d11; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.auth-features { display: grid; gap: 12px; margin-top: 28px; }
.auth-features div { display: flex; gap: 12px; align-items: center; color: #e4e6eb; }
.auth-features i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.auth-form { display: grid; place-items: center; padding: 40px 24px; }
.auth-form .card { width: 100%; max-width: 440px; padding: 34px; box-shadow: var(--shadow); animation: scaleIn .5s var(--ease) both; }

/* ---------------------------------------------------------- hero (dashboard) */
.hero { position: relative; overflow: hidden; border-radius: 26px; background: var(--ink); color: #fff; padding: 34px 36px; display: flex; align-items: center; gap: 28px; margin-bottom: 26px; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(600px 260px at 0% 0%, rgba(225, 43, 28, .35), transparent 60%),
  radial-gradient(500px 260px at 60% 120%, rgba(250, 223, 18, .22), transparent 60%),
  radial-gradient(600px 300px at 110% 20%, rgba(31, 168, 79, .35), transparent 60%); }
.hero > * { position: relative; }
.hero h1 { color: #fff; margin-bottom: 6px; }
.hero p { color: #c3c7d0; margin: 0; }
.hero .ring .track { stroke: rgba(255,255,255,.14); }
.hero-stats { display: flex; gap: 26px; margin-top: 18px; flex-wrap: wrap; }
.hero-stats b { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.hero-stats > div > span { color: #aab0bc; font-size: .82rem; }
.hero .btn-yellow { margin-top: 20px; }
.hero .btn, .course-hero .btn, .test-cta .btn, .result .btn { white-space: normal; max-width: 100%; text-align: left; }
.hero-main { flex: 1; min-width: 0; }

/* ---------------------------------------------------------- filter bar */
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; font-size: .88rem; color: var(--muted); transition: all .2s; }
.chip:hover { border-color: var(--fg); color: var(--fg); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.search { position: relative; margin-left: auto; min-width: 240px; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; color: var(--dim); }
.search input { padding-left: 40px; border-radius: 999px; }

/* ---------------------------------------------------------- course cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.course-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; color: inherit;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); text-decoration: none; border-color: transparent; }
.course-card:hover .cover img, .course-card:hover .cover .gen { transform: scale(1.06); }
.cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.cover img, .cover .gen { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease); }
.cover .chips { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.cover .chips .badge { background: rgba(255,255,255,.92); color: var(--ink); backdrop-filter: blur(6px); }
.cover .chips .badge.draft { background: var(--yellow); }
.gen { position: relative; }
.gen-0 { background: radial-gradient(circle at 20% 30%, #ff5a45 0, var(--red) 35%, #8f170d 100%); }
.gen-1 { background: radial-gradient(circle at 20% 30%, #fff27a 0, var(--yellow) 40%, #c9a800 100%); }
.gen-2 { background: radial-gradient(circle at 20% 30%, #4fd27c 0, var(--green) 40%, #075c28 100%); }
.gen-3 { background: linear-gradient(135deg, #23262f, #0c0d11); }
.gen::before { content: ""; position: absolute; inset: -20%; background: repeating-linear-gradient(115deg, rgba(255,255,255,.12) 0 18px, transparent 18px 46px); }
.gen::after { content: attr(data-letter); position: absolute; right: 18px; bottom: -14px; font-family: var(--font-display); font-weight: 700; font-size: 6.5rem; color: rgba(255,255,255,.28); line-height: 1; }
.gen-1::after { color: rgba(20,22,28,.18); }
.course-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.course-body h3 { margin: 0; font-size: 1.05rem; }
.course-body p { margin: 0; color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-meta { display: flex; gap: 14px; color: var(--muted); font-size: .8rem; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.course-meta span { display: inline-flex; align-items: center; gap: 5px; }
.course-meta svg { width: 14px; height: 14px; }

/* ---------------------------------------------------------- course page */
.course-hero { position: relative; border-radius: 26px; overflow: hidden; color: #fff; background: var(--ink); margin-bottom: 24px; }
.course-hero .bg { position: absolute; inset: 0; }
.course-hero .bg img, .course-hero .bg .gen { width: 100%; height: 100%; object-fit: cover; }
.course-hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,13,17,.94) 0%, rgba(12,13,17,.75) 55%, rgba(12,13,17,.35) 100%); }
.course-hero .inner { position: relative; padding: 36px; display: flex; gap: 30px; align-items: center; flex-wrap: wrap; }
.course-hero h1 { color: #fff; }
.course-hero p { color: #c9ccd4; max-width: 640px; margin: 0; }
.course-hero .breadcrumbs a, .course-hero .breadcrumbs { color: #aab0bc; }
.course-hero .ring .track { stroke: rgba(255,255,255,.16); }
.course-hero .grow { flex: 1; min-width: 260px; }

.module { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.module-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; cursor: pointer; user-select: none; }
.module-head:hover { background: var(--surface-2); }
.module-num { font-family: var(--font-display); font-weight: 600; font-size: .78rem; color: var(--muted); background: var(--bg); border-radius: 10px; padding: 6px 10px; }
.module-head h3 { margin: 0; flex: 1; }
.module-head .chev { transition: transform .3s var(--ease); color: var(--muted); width: 20px; }
.module.collapsed .chev { transform: rotate(-90deg); }
.module-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .35s var(--ease); }
.module.collapsed .module-body { grid-template-rows: 0fr; }
.module-body > div { overflow: hidden; }
.lesson { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-top: 1px solid var(--line); color: inherit; transition: background .2s; }
a.lesson:hover { background: var(--surface-2); text-decoration: none; }
a.lesson:hover .lesson-go { transform: translateX(4px); color: var(--fg); }
.lesson.locked { color: var(--dim); }
.lesson-title { font-weight: 700; }
.lesson-main { flex: 1; min-width: 0; }
.lesson-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-top: 3px; }
.lesson-meta span { display: inline-flex; align-items: center; gap: 4px; }
.lesson-meta svg { width: 13px; height: 13px; }
.lesson-go { color: var(--dim); transition: transform .25s var(--ease), color .2s; width: 20px; flex: none; }

/* ---------------------------------------------------------- lesson page */
.study { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 26px; align-items: start; }
.outline { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 10px 12px; }
.outline-head { padding: 0 10px 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.outline-head a { color: var(--fg); font-weight: 800; }
.outline h4 { font-family: var(--font-body); font-weight: 800; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 14px 10px 6px; }
.outline a, .outline .o-locked { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; color: var(--text); font-size: .9rem; font-weight: 600; line-height: 1.3; }
.outline a:hover { background: var(--bg); text-decoration: none; }
.outline a.current { background: var(--ink); color: #fff; }
.outline .o-locked { color: var(--dim); }
.outline-toggle { display: none; }

.study-bar { position: sticky; top: calc(var(--header-h) + 12px); z-index: 10; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; margin-bottom: 18px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.timer { font-family: var(--font-mono); font-weight: 700; font-variant-numeric: tabular-nums; }
.lesson-head { margin-bottom: 18px; }
.lesson-head h1 { margin-bottom: 8px; }

/* blocks */
.blocks > * { margin-bottom: 22px; }
.blocks > *:last-child { margin-bottom: 0; }
.prose { font-size: 1.04rem; line-height: 1.75; overflow-wrap: anywhere; }
.prose h2, .prose h3, .prose h4 { margin: 1.4em 0 .5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose ul li::marker { color: var(--green); }
.prose img { border-radius: var(--radius-sm); }
.prose blockquote { margin: 1em 0; padding: 12px 18px; border-left: 4px solid var(--yellow); background: var(--yellow-soft); border-radius: 0 12px 12px 0; }
.prose code { background: var(--bg); padding: 2px 7px; border-radius: 6px; font-family: var(--font-mono); font-size: .88em; }
.prose hr { border: none; height: 4px; margin: 2em 0; background: linear-gradient(90deg, var(--red) 0 33%, var(--yellow) 33% 66%, var(--green) 66%); border-radius: 4px; opacity: .8; }
.prose mark { background: var(--yellow); padding: 0 3px; border-radius: 3px; }

.note { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid; align-items: flex-start; }
.note svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.note.info { background: #eef4ff; border-color: #d7e3fb; color: #1f3b78; }
.note.warn { background: var(--yellow-soft); border-color: #f3e28a; color: #6b5400; }
.note.ok { background: var(--green-soft); border-color: #bfe6cc; color: var(--green-dark); }
.note.danger { background: var(--red-soft); border-color: #f7c6c1; color: #a41d12; }
.note div { white-space: pre-wrap; }

.media { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; }
.media.ratio { aspect-ratio: 16 / 9; }
.media iframe, .media video { width: 100%; height: 100%; border: 0; display: block; }
.media video { max-height: 78vh; background: #000; }
.media-title { font-weight: 700; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.media-title svg { width: 18px; color: var(--muted); }
audio { width: 100%; }

.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.gallery.single { grid-template-columns: 1fr; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; background: var(--bg); }
.gallery:not(.single) figure { aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.gallery.single img { height: auto; max-height: 70vh; object-fit: contain; background: var(--bg); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; color: #fff; font-size: .84rem; background: linear-gradient(transparent, rgba(0,0,0,.65)); }

.slider { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.slider-track { display: flex; transition: transform .55s var(--ease); }
.slider-track figure { margin: 0; min-width: 100%; aspect-ratio: 16 / 9; display: grid; place-items: center; position: relative; }
.slider-track img { width: 100%; height: 100%; object-fit: contain; }
.slider-track figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px 18px 14px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255,255,255,.9); cursor: pointer; display: grid; place-items: center; transition: transform .2s; }
.slider-nav:hover { transform: translateY(-50%) scale(1.08); }
.slider-nav.prev { left: 12px; } .slider-nav.next { right: 12px; }
.slider-nav svg { width: 20px; }
.slider-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.slider-dots i { width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.5); transition: all .3s; cursor: pointer; }
.slider-dots i.on { width: 22px; background: var(--yellow); }

.pdf { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.pdf-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); flex-wrap: wrap; }
.pdf-bar .t { font-weight: 700; flex: 1; min-width: 120px; display: flex; gap: 8px; align-items: center; }
.pdf-bar .t svg { width: 18px; color: var(--red); }
.pdf-stage { position: relative; background: #2a2d36; display: grid; place-items: center; min-height: 240px; padding: 14px; }
.pdf-stage canvas { display: block; max-width: 100%; border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.4); background: #fff; animation: fadeIn .35s ease; }
.pdf-counter { font-family: var(--font-mono); font-size: .86rem; min-width: 70px; text-align: center; }
.pdf:fullscreen { border: none; border-radius: 0; display: flex; flex-direction: column; }
.pdf:fullscreen .pdf-stage { flex: 1; }
/* PowerPoint / Word прямо на сторінці */
.office-host { max-width: 100%; animation: fadeIn .35s ease; }
.office-pptx .pdf-stage { cursor: pointer; }
.office-pptx .pptx-preview-wrapper-next, .office-pptx .pptx-preview-wrapper-pagination { display: none !important; }
.office-pptx .pptx-preview-wrapper { background: transparent !important; }
.office-pptx .office-host { border-radius: 6px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.4); background: #fff; line-height: normal; }
.office-docx .pdf-stage { display: block; background: #e7e8ec; max-height: 78vh; overflow: auto; padding: 0; }
.office-docx .pdf-stage .tl { margin: 90px auto; }
.office-docx .docx-wrapper { background: transparent !important; padding: 16px !important; }
.office-docx .docx-wrapper > section.docx { box-shadow: 0 6px 24px rgba(20,22,28,.14) !important; margin-bottom: 16px !important; color: #111; }
.pdf.office-docx:fullscreen .pdf-stage { max-height: none; }
.pdf-progress { height: 3px; background: var(--line); }
.pdf-progress div { height: 100%; background: var(--green); transition: width .3s var(--ease); }

.file-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: all .25s var(--ease); color: inherit; }
.file-card:hover { border-color: var(--fg); transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.file-ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-display); font-size: .68rem; font-weight: 700; color: #fff; flex: none; text-transform: uppercase; }
.file-card .grow { flex: 1; min-width: 0; }
.file-card .grow > span { display: block; }
.file-card .name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lesson-foot { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; margin-top: 26px; }
.nav-card { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 3px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: inherit; transition: all .25s var(--ease); }
.nav-card:hover { border-color: var(--fg); text-decoration: none; transform: translateY(-2px); }
.nav-card.next { text-align: right; }
.nav-card small { color: var(--muted); font-weight: 600; }
.nav-card b { font-weight: 800; }
.nav-card.disabled { opacity: .5; pointer-events: none; }
.test-cta { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 24px 26px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 26px; position: relative; overflow: hidden; }
.test-cta::before { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(var(--green), transparent 70%); opacity: .45; }
.test-cta > * { position: relative; }
.test-cta h3 { color: #fff; margin: 0 0 4px; }
.test-cta p { margin: 0; color: #b8bdc8; }

/* ---------------------------------------------------------- tests */
.test-head { position: sticky; top: calc(var(--header-h) + 12px); z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; display: flex; align-items: center; gap: 14px; margin-bottom: 18px; box-shadow: var(--shadow); }
.test-head .progress { flex: 1; }
.question { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 14px; transition: border-color .3s, background .3s; }
.question h3 { font-family: var(--font-body); font-weight: 800; font-size: 1.06rem; display: flex; gap: 12px; }
.question h3 .qn { flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; font-family: var(--font-display); font-size: .8rem; }
.option { display: flex; gap: 12px; align-items: center; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 14px; margin-top: 9px; cursor: pointer; font-weight: 500; transition: all .2s var(--ease); }
.option:hover { border-color: var(--fg); }
.option input { appearance: none; width: 22px; height: 22px; border: 2px solid var(--line-strong); border-radius: 50%; margin: 0; flex: none; display: grid; place-items: center; transition: all .2s; cursor: pointer; }
.option input[type=checkbox] { border-radius: 7px; }
.option input::after { content: ""; width: 10px; height: 10px; border-radius: inherit; background: #fff; transform: scale(0); transition: transform .2s var(--ease); }
.option input:checked { border-color: var(--green-dark); background: var(--green-dark); }
.option input:checked::after { transform: scale(1); }
.option:has(input:checked) { border-color: var(--green-dark); background: var(--green-soft); }
.question.wrong { border-color: var(--red); background: linear-gradient(180deg, var(--red-soft), var(--surface) 120px); }
.question.right { border-color: var(--green); background: linear-gradient(180deg, var(--green-soft), var(--surface) 120px); }
.result { text-align: center; padding: 34px 24px; animation: scaleIn .5s var(--ease) both; }
.result .ring { --size: 150px; --stroke: 11; margin: 0 auto 16px; }
.result h2 { font-size: 1.6rem; }

/* ---------------------------------------------------------- tables / admin */
.table-wrap { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 12px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
tbody tr { transition: background .15s; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--surface-2); }
.person { display: flex; align-items: center; gap: 10px; }
.person .avatar { width: 34px; height: 34px; margin: 0; font-size: .75rem; }

.tabs { display: inline-flex; gap: 4px; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 24px; overflow-x: auto; max-width: 100%; }
.tabs a { display: flex; align-items: center; gap: 7px; padding: 9px 16px; color: var(--muted); font-weight: 700; font-size: .88rem; border-radius: 999px; white-space: nowrap; transition: all .2s; }
.tabs a svg { width: 16px; height: 16px; }
.tabs a:hover { text-decoration: none; color: var(--fg); background: var(--bg); }
.tabs a.active { color: #fff; background: var(--ink); }

.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 22px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c, var(--green)); }
.stat .v { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
.stat .l { color: var(--muted); font-size: .82rem; font-weight: 600; }

.admin-module { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 14px; overflow: hidden; }
.admin-module-head { display: flex; gap: 10px; align-items: center; padding: 14px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.admin-module-head input { flex: 1; min-width: 180px; font-weight: 700; background: transparent; border-color: transparent; }
.admin-module-head input:hover { border-color: var(--line); }
.admin-lesson { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.admin-lesson:last-child { border-bottom: none; }
.admin-lesson .grow { flex: 1; min-width: 160px; }
.admin-lesson a.grow { color: var(--fg); }
.admin-lesson a.grow:hover { color: var(--green-dark); }
.cover-edit .col { align-items: flex-start; }
.kinds { display: inline-flex; gap: 4px; color: var(--muted); }
.kinds svg { width: 15px; height: 15px; }
.cover-edit { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.cover-edit .cover { width: 280px; border-radius: var(--radius-sm); flex: none; }

/* block editor */
.block-edit { border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 14px; animation: fadeUp .35s var(--ease) both; }
.block-edit:focus-within { border-color: var(--fg); }
.block-edit-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); border-radius: var(--radius) var(--radius) 0 0; }
.block-edit-head .type { display: flex; gap: 8px; align-items: center; font-weight: 800; font-size: .86rem; flex: 1; }
.block-edit-head .type svg { width: 18px; }
.block-edit-body { padding: 16px; }
.add-blocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.add-block { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; font-weight: 700; font-size: .84rem; color: var(--muted); transition: all .2s var(--ease); }
.add-block:hover { border-style: solid; border-color: var(--fg); color: var(--fg); transform: translateY(-2px); }
.add-block svg { width: 24px; height: 24px; }
.dropzone { border: 2px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 26px; text-align: center; color: var(--muted); cursor: pointer; transition: all .2s; background: var(--surface-2); }
.dropzone:hover, .dropzone.over { border-color: var(--green); background: var(--green-soft); color: var(--green-dark); }
.dropzone svg { width: 30px; height: 30px; margin-bottom: 6px; }
.dropzone b { color: var(--fg); }
.upload-progress { margin-top: 10px; }
.upload-progress .row { font-size: .82rem; margin-bottom: 4px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.thumb { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); position: relative; }
.thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.thumb input { border: none; border-top: 1px solid var(--line); border-radius: 0; font-size: .8rem; padding: 7px 9px; }
.thumb button { position: absolute; top: 6px; right: 6px; }
.md-toolbar { display: flex; gap: 4px; margin-bottom: 6px; flex-wrap: wrap; }
.md-toolbar button { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 4px 10px; cursor: pointer; font-weight: 700; font-size: .82rem; }
.md-toolbar button:hover { border-color: var(--fg); }
.q-edit { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; background: var(--surface); animation: fadeUp .3s var(--ease) both; }
.opt-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.opt-row input[type=text] { flex: 1; }
.opt-row .correct-toggle { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; margin: 0; white-space: nowrap; color: var(--muted); cursor: pointer; padding: 6px 10px; border-radius: 999px; border: 1.5px solid var(--line); }
.opt-row .correct-toggle:has(input:checked) { color: var(--green-dark); border-color: var(--green); background: var(--green-soft); }
.opt-row .correct-toggle input { accent-color: var(--green); margin: 0; }
.sticky-save { position: sticky; bottom: 16px; z-index: 20; display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; pointer-events: none; }
.sticky-save > * { pointer-events: auto; box-shadow: var(--shadow-lg); }

/* ---------------------------------------------------------- overlays */
.modal-backdrop { position: fixed; inset: 0; background: rgba(12, 13, 17, .55); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 100; padding: 16px; animation: fadeIn .25s ease both; }
.modal { background: var(--surface); border-radius: 24px; padding: 32px; max-width: 440px; width: 100%; text-align: center; box-shadow: var(--shadow-lg); animation: scaleIn .35s var(--ease) both; }
.modal h2 { margin-top: 14px; }
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(8, 9, 12, .94); display: grid; place-items: center; animation: fadeIn .25s ease both; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 10px; animation: scaleIn .35s var(--ease) both; }
.lightbox .cap { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #e5e7eb; }
.lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: none; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox button svg { width: 22px; }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; z-index: 200; }
.toast { background: var(--ink); color: #fff; padding: 12px 18px 12px 14px; border-radius: 14px; box-shadow: var(--shadow-lg); max-width: 380px; animation: slideIn .35s var(--ease) both; display: flex; gap: 10px; align-items: center; font-weight: 600; }
.toast::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); flex: none; }
.toast.ok::before { background: var(--green); }
.toast.err::before { background: var(--red); }
.toast.out { opacity: 0; transform: translateX(30px); transition: all .3s; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 150; }

/* ---------------------------------------------------------- link telegram */
.tg-steps { counter-reset: s; list-style: none; padding: 0; margin: 18px 0; }
.tg-steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.tg-steps li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.code-box { font-family: var(--font-mono); font-size: 1.05rem; background: var(--bg); padding: 9px 14px; border-radius: 10px; display: inline-block; user-select: all; }

/* ---------------------------------------------------------- responsive */
.study > *, .grid > *, .course-hero .grow, .hero-main { min-width: 0; }
.nav-card { min-width: min(200px, 100%); }
@media (max-width: 1000px) {
  .study { grid-template-columns: minmax(0, 1fr); }
  .outline { position: static; max-height: none; display: none; }
  .outline.open { display: block; animation: fadeUp .3s var(--ease); }
  .outline-toggle { display: inline-flex; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { padding: 32px 24px; }
  .auth-art .tl, .auth-features { display: none; }
}
@media (max-width: 680px) {
  :root { --header-h: 60px; }
  .container { padding: 20px 14px 70px; }
  .brand img { height: 34px; }
  .brand-sub, .nav .label { display: none; }
  .nav a.nav-link { padding: 9px 11px; }
  .hero, .course-hero .inner { padding: 24px 20px; }
  .hero { flex-direction: column; align-items: flex-start; }
  .card { padding: 18px; }
  .study-bar, .test-head { border-radius: 16px; }
  .search { min-width: 100%; margin-left: 0; }
  .hide-sm { display: none; }
  .pdf-bar .t { flex-basis: 100%; }
  .pdf-stage { padding: 6px; }
  .file-card .btn { padding: 8px; }
  .file-card .btn span, .file-card .btn { font-size: 0; gap: 0; }
  .file-card .btn svg { width: 18px; height: 18px; }
  .lesson-foot .nav-card { flex-basis: 100%; }
  body { overflow-x: hidden; }
  .lesson, .module-head { padding-left: 16px; padding-right: 16px; }
}
