:root {
  --bg: #0e0d13;
  --surface: #17151f;
  --surface-2: #201d2b;
  --line: #2c2839;
  --text: #f3f1f8;
  --muted: #a7a2b8;
  --accent: #8f5cf7;
  --accent-2: #ff7a1a;
  --ok: #34c77b;
  --radius: 14px;
  --head: 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: #c4a8ff; }
a:hover { color: #fff; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(680px, 100% - 32px); }
.section { padding: 56px 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.lead { font-size: 18px; color: var(--muted); max-width: 62ch; }
.center .lead { margin-inline: auto; }
h1, h2, h3 { line-height: 1.2; }
.page-title, .section-title, .hero h1, .lesson h1 { font-family: var(--head); font-weight: 600; letter-spacing: .01em; text-transform: uppercase; }
.page-title { font-size: clamp(30px, 5vw, 44px); margin: 0 0 8px; }
.section-title { font-size: clamp(26px, 4vw, 36px); margin: 0 0 8px; }

/* header */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: rgba(14, 13, 19, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--head); font-size: 20px; text-transform: uppercase; letter-spacing: .03em; }
.brand img { width: 34px; height: 34px; }
.topbar nav { display: flex; align-items: center; gap: 18px; }
.topbar nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.topbar nav a:hover { color: var(--text); }
.topbar nav a.btn { color: #fff; }
@media (max-width: 560px) { .topbar nav a:not(.btn) { display: none; } .brand span { font-size: 17px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; background: var(--accent); color: #fff; font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: #a57bff; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* hero */
.hero { position: relative; min-height: 78vh; display: grid; place-items: center; text-align: center; background: linear-gradient(180deg, rgba(14,13,19,.55), rgba(14,13,19,.92) 85%, var(--bg)), url('/assets/hero.jpg') center/cover no-repeat; }
.hero-in { padding: 64px 0; }
.hero-logo { margin: 0 auto 18px; width: min(360px, 80%); }
.hero h1 { font-size: clamp(34px, 6vw, 60px); margin: 0 0 12px; }
.hero .lead { margin-inline: auto; color: #d9d4e6; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* course cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin: 28px 0; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--text); }
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--surface-2); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0 0 14px; color: var(--muted); font-size: 15px; flex: 1; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.progress-pill:not(:empty) { background: rgba(52, 199, 123, .15); color: var(--ok); padding: 3px 10px; border-radius: 999px; font-weight: 600; }

/* bands */
.band { background: var(--surface); border-block: 1px solid var(--line); padding: 56px 0; }
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.about img { border-radius: var(--radius); }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 24px; }
.quotes figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.quotes blockquote { margin: 0 0 12px; font-size: 16px; }
.quotes figcaption { color: var(--accent-2); font-weight: 600; }

/* course page */
.back { display: inline-block; margin-bottom: 18px; color: var(--muted); text-decoration: none; font-size: 15px; }
.back:hover { color: var(--text); }
.course-hero { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: center; margin-bottom: 36px; }
.course-hero img { border-radius: var(--radius); border: 1px solid var(--line); }
@media (max-width: 760px) { .course-hero { grid-template-columns: 1fr; } }
.bar { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: 14px 0 18px; max-width: 420px; }
.bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .3s; }
.module { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.module h2 { font-size: 19px; margin: 0 0 10px; display: flex; gap: 12px; align-items: baseline; }
.mnum { font-family: var(--head); color: var(--accent-2); font-size: 16px; }
.module ol, .side-mod ol { list-style: none; margin: 0; padding: 0; }
.module li a, .side-mod li a { display: flex; gap: 10px; align-items: flex-start; padding: 8px 6px; border-radius: 8px; color: var(--text); text-decoration: none; }
.module li a:hover, .side-mod li a:hover { background: var(--surface-2); }
.check { flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; border: 2px solid var(--line); }
.done .check { background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--ok); }
.tag { font-style: normal; font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; margin-left: 6px; }

/* lesson page */
.lesson-layout { display: grid; grid-template-columns: 320px 1fr; min-height: calc(100vh - 60px); }
.sidebar { background: var(--surface); border-right: 1px solid var(--line); padding: 20px 16px; position: sticky; top: 57px; height: calc(100vh - 57px); overflow-y: auto; }
.side-mod h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 6px 6px; }
.side-mod li a { font-size: 14px; padding: 7px 6px; }
.side-mod a[aria-current] { background: var(--surface-2); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.lesson { padding: 28px clamp(16px, 4vw, 48px) 64px; max-width: 1000px; width: 100%; }
.lesson h1 { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 18px; }
.crumb { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-missing { display: grid; place-items: center; color: var(--muted); }
.lesson-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 18px 0 8px; }
.complete.is-done { border-color: var(--ok); color: var(--ok); }
.lesson-body { font-size: 17px; margin-top: 18px; overflow-wrap: anywhere; }
.lesson-body img { border-radius: 10px; margin: 12px 0; }
.downloads { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-top: 24px; }
.downloads h2 { font-size: 18px; margin: 0 0 8px; }
.downloads ul { margin: 0; padding-left: 20px; }
.outline-toggle { display: none; margin-bottom: 16px; }
@media (max-width: 900px) {
  .lesson-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar.open { display: block; }
  .outline-toggle { display: inline-flex; }
}

/* forms */
.form { display: grid; gap: 16px; margin-top: 24px; }
.form label { display: grid; gap: 6px; font-weight: 500; }
.form input, .form select, .form textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 16px var(--body); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.5em; margin: 0; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: #ff6b6b; }

/* legal */
.legal { max-width: 820px; }
.legal h1 { font-family: var(--head); text-transform: uppercase; }
.note { background: var(--surface); border-left: 3px solid var(--accent-2); padding: 12px 16px; border-radius: 8px; color: var(--muted); }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; margin-top: 24px; color: var(--muted); font-size: 14px; }
.lesson-page .footer { margin-top: 0; }
.footer-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer strong { color: var(--text); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

.btn:disabled { opacity: .45; cursor: not-allowed; }

/* contact form success */
.sent-panel { margin-top: 24px; padding: 36px 24px; text-align: center; background: rgba(52, 199, 123, .1); border: 1px solid var(--ok); border-radius: var(--radius); outline: none; }
.sent-panel h2 { font-family: var(--head); text-transform: uppercase; font-size: 28px; margin: 12px 0 6px; }
.sent-panel p { color: var(--text); margin: 0 0 20px; }
.sent-icon { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: var(--ok); color: #fff; font-size: 34px; line-height: 64px; font-weight: 700; }
.form-status.err { font-weight: 600; }

/* email check page */
.access-page .page-title { margin-top: 8px; }
.access-course { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 22px; }
.access-course img { width: 160px; height: 90px; object-fit: cover; border-radius: 10px; flex: none; }
.access-course-title { font-family: var(--head); text-transform: uppercase; font-size: 22px; margin: 2px 0; line-height: 1.15; }
.access-course p { margin: 0; }
.eyebrow { color: var(--accent-2); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.moved-note { background: rgba(143, 92, 247, .14); border: 1px solid var(--accent); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; line-height: 1.5; }
.access-facts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.access-facts li { padding-left: 26px; position: relative; }
.access-facts li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.not-student { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 480px) { .access-course img { width: 110px; height: 62px; } .access-course-title { font-size: 19px; } }
