:root {
  color-scheme: dark;
  --bg: #080b10;
  --bg-soft: #0d1118;
  --panel: #111722;
  --panel-2: #151d29;
  --ink: #f5f8fb;
  --muted: #97a3b4;
  --muted-2: #657184;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.17);
  --blue: #3784ff;
  --blue-deep: #1358c7;
  --orange: #ff5a24;
  --orange-soft: #ff8d67;
  --green: #55d890;
  --ice: #eaf5ff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --sidebar: 288px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 72% -20%, rgba(55, 132, 255, 0.09), transparent 34rem),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { color: inherit; }
img { max-width: 100%; display: block; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: rgba(8, 11, 16, 0.96);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.brand-row { display: flex; align-items: center; justify-content: space-between; min-height: 82px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1; letter-spacing: 0.06em; }
.brand span:last-child { display: grid; gap: 4px; }
.brand strong { font-family: "Arial Narrow", Impact, sans-serif; font-size: 1rem; letter-spacing: 0.1em; }
.brand small { color: var(--muted); font-size: 0.68rem; letter-spacing: 0.24em; }
.brand-mark { position: relative; width: 31px; height: 36px; display: block; transform: skew(-14deg); }
.brand-mark i { position: absolute; width: 9px; height: 32px; top: 2px; background: var(--orange); }
.brand-mark i:first-child { left: 5px; }
.brand-mark i:last-child { right: 5px; background: var(--blue); }

.icon-button { border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; border-radius: 9px; }
.sidebar-close { display: none; font-size: 2rem; color: var(--muted); width: 40px; height: 40px; }

.sidebar-progress { margin: 16px 16px 8px; padding: 16px; background: linear-gradient(135deg, rgba(55,132,255,.13), rgba(255,90,36,.05)); border: 1px solid rgba(55,132,255,.22); border-radius: var(--radius-sm); }
.progress-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; font-size: .84rem; }
.progress-meta span { color: var(--muted); }
.progress-meta strong { font-variant-numeric: tabular-nums; }
.progress-track { height: 4px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--orange)); transition: width .35s ease; }
.sidebar-progress small { display: block; margin-top: 9px; color: var(--muted-2); font-size: .75rem; }

#courseNav { padding: 10px 10px 28px; }
.nav-group { margin-top: 15px; }
.nav-group-title { padding: 0 12px 6px; color: var(--muted-2); font-size: .7rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.nav-link { position: relative; display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 12px; color: var(--muted); text-decoration: none; border-radius: 10px; font-size: .88rem; transition: .2s ease; }
.nav-link:hover { color: var(--ink); background: rgba(255,255,255,.045); }
.nav-link.active { color: var(--ink); background: rgba(55,132,255,.12); }
.nav-link.active::before { content: ""; position: absolute; left: -10px; top: 9px; bottom: 9px; width: 3px; background: var(--blue); border-radius: 0 3px 3px 0; }
.nav-index { min-width: 22px; color: var(--muted-2); font-size: .72rem; font-variant-numeric: tabular-nums; }
.nav-link.active .nav-index { color: var(--blue); }
.nav-done { margin-left: auto; width: 17px; height: 17px; border: 1px solid var(--line-strong); border-radius: 50%; }
.nav-done.done { border-color: var(--green); background: var(--green); }
.nav-done.done::after { content: "✓"; display: block; color: #06130c; font-size: 11px; line-height: 15px; text-align: center; font-weight: 900; }
.sidebar-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 18px 22px; border-top: 1px solid var(--line); }
.sidebar-foot div { display: grid; }
.sidebar-foot strong { font-size: .78rem; }
.sidebar-foot small { color: var(--muted-2); font-size: .72rem; }
.status-pulse { width: 8px; height: 8px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 5px rgba(85,216,144,.08); }

.main { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { position: sticky; top: 0; z-index: 30; height: 82px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(22px, 4vw, 58px); background: rgba(8, 11, 16, .82); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.crumb { display: grid; line-height: 1.15; }
.crumb span { color: var(--muted-2); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.crumb strong { margin-top: 5px; font-size: .88rem; font-weight: 650; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.search-trigger { height: 40px; display: flex; align-items: center; gap: 9px; padding: 0 9px 0 13px; color: var(--muted); background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.search-trigger:hover { color: var(--ink); border-color: var(--line-strong); }
.search-trigger svg, .search-head svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
kbd, .key-button { min-width: 35px; padding: 3px 7px; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 6px; color: var(--muted-2); font-size: .68rem; box-shadow: inset 0 -1px rgba(255,255,255,.05); }
.top-progress { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--blue) var(--course-progress, 0%), rgba(255,255,255,.08) 0); position: relative; }
.top-progress::after { content: ""; position: absolute; inset: 4px; border-radius: inherit; background: var(--bg); }
.top-progress span { position: relative; z-index: 1; font-size: .66rem; font-weight: 800; }
.menu-button { display: none; width: 42px; height: 42px; gap: 4px; }
.menu-button span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }

#view { min-height: calc(100vh - 82px); }
.page { width: min(1220px, calc(100% - clamp(32px, 7vw, 96px))); margin: 0 auto; padding: clamp(28px, 5vw, 62px) 0 80px; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--orange-soft); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--orange); }
h1, h2, h3 { margin-top: 0; line-height: 1.04; }
h1, .display-title { font-family: "Arial Narrow", Impact, Haettenschweiler, sans-serif; font-stretch: condensed; text-transform: uppercase; letter-spacing: -.018em; }
h1 { max-width: 870px; margin: 18px 0; font-size: clamp(2.9rem, 7vw, 6.7rem); font-weight: 900; }
h2 { font-size: clamp(1.65rem, 3vw, 2.45rem); letter-spacing: -.025em; }
h3 { font-size: 1.05rem; }
.lead { max-width: 720px; color: #c4cedb; font-size: clamp(1.05rem, 1.5vw, 1.22rem); }
.muted { color: var(--muted); }

.hero { position: relative; min-height: 510px; display: flex; align-items: flex-end; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("assets/academy-hero.webp") center / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,8,12,.95) 0%, rgba(5,8,12,.7) 42%, rgba(5,8,12,.12) 76%), linear-gradient(0deg, rgba(5,8,12,.92), transparent 60%); }
.hero-content { max-width: 740px; padding: clamp(28px, 5vw, 62px); }
.hero h1 { font-size: clamp(3.3rem, 7.2vw, 7.3rem); margin-bottom: 10px; }
.hero h1 em { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.66); font-style: normal; }
.hero .lead { max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 18px; border: 1px solid transparent; border-radius: 10px; text-decoration: none; font-weight: 750; font-size: .88rem; cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--orange); color: white; box-shadow: 0 12px 30px rgba(255,90,36,.18); }
.button.primary:hover { background: #ff6b39; }
.button.secondary { background: rgba(10,14,20,.55); border-color: rgba(255,255,255,.22); backdrop-filter: blur(10px); }
.button.secondary:hover { border-color: rgba(255,255,255,.4); }
.button.small { min-height: 39px; padding: 0 14px; font-size: .8rem; }
.button.success { background: rgba(85,216,144,.12); border-color: rgba(85,216,144,.35); color: #96f0bd; }
.button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.stat { padding: 22px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .78rem; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 58px 0 20px; }
.section-head h2 { margin-bottom: 0; }
.section-head p { max-width: 510px; margin: 0; color: var(--muted); font-size: .9rem; }
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.course-card { position: relative; min-height: 300px; overflow: hidden; display: flex; flex-direction: column; padding: 26px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: .22s ease; }
.course-card::after { content: attr(data-code); position: absolute; right: -2px; bottom: -30px; color: rgba(255,255,255,.025); font-family: Impact, sans-serif; font-size: 9rem; line-height: 1; }
.course-card:hover { transform: translateY(-3px); border-color: var(--line-strong); background: var(--panel-2); }
.course-card .course-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: auto; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--card-color, var(--blue)); }
.course-card svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.course-card h3 { margin: 24px 0 6px; font-family: "Arial Narrow", Impact, sans-serif; font-size: 2rem; letter-spacing: -.01em; text-transform: uppercase; }
.course-card p { max-width: 300px; margin: 0 0 18px; color: var(--muted); font-size: .86rem; }
.course-foot { display: flex; align-items: center; justify-content: space-between; color: var(--muted-2); font-size: .75rem; }
.course-mini-progress { width: 78px; height: 3px; overflow: hidden; background: rgba(255,255,255,.08); border-radius: 8px; }
.course-mini-progress i { display: block; height: 100%; background: var(--card-color, var(--blue)); }

.category-map { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.category-column { padding: 24px; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: var(--radius); }
.category-column-head { display: flex; align-items: center; gap: 11px; margin-bottom: 17px; }
.category-column-head span { width: 32px; height: 32px; display: grid; place-items: center; color: var(--category-color); border: 1px solid color-mix(in srgb, var(--category-color) 45%, transparent); border-radius: 50%; }
.category-column-head svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.category-column-head h3 { margin: 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-list span { padding: 6px 9px; color: #aeb9c7; background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 7px; font-size: .72rem; }
.category-note { margin: 15px 0 0; color: var(--muted-2); font-size: .7rem; }

.framework { display: grid; grid-template-columns: .8fr 1.2fr; gap: 16px; }
.framework-intro, .framework-steps { padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); border-radius: var(--radius); }
.framework-intro { background: linear-gradient(145deg, rgba(55,132,255,.18), rgba(17,23,34,.7)); }
.framework-word { margin: 18px 0 4px; font-family: Impact, "Arial Narrow", sans-serif; font-size: clamp(4.5rem, 8vw, 8rem); line-height: .9; letter-spacing: .02em; }
.framework-word span { color: var(--orange); }
.framework-intro p { color: #b8c5d5; }
.framework-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--panel); }
.framework-step { padding: 18px; border-bottom: 1px solid var(--line); }
.framework-step:nth-child(odd) { border-right: 1px solid var(--line); }
.framework-step:nth-last-child(-n+2) { border-bottom: 0; }
.framework-step b { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-bottom: 18px; border-radius: 8px; background: rgba(255,90,36,.13); color: var(--orange-soft); }
.framework-step strong { display: block; margin-bottom: 5px; }
.framework-step span { color: var(--muted); font-size: .82rem; }

.resume-card { display: flex; align-items: center; gap: 18px; margin-top: 16px; padding: 22px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.resume-index { width: 50px; height: 50px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: rgba(55,132,255,.12); color: var(--blue); font-weight: 900; }
.resume-card div:nth-child(2) { flex: 1; }
.resume-card small { color: var(--muted-2); }
.resume-card h3 { margin: 3px 0 0; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.principle { padding: 25px; border-top: 2px solid var(--principle-color, var(--blue)); background: var(--panel); }
.principle span { color: var(--muted-2); font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.principle h3 { margin: 26px 0 8px; }
.principle p { margin: 0; color: var(--muted); font-size: .86rem; }

.lesson-page { width: min(1040px, calc(100% - clamp(32px, 7vw, 96px))); margin: 0 auto; padding: clamp(32px, 5vw, 68px) 0 90px; }
.lesson-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.lesson-number { color: var(--orange-soft); font-size: .72rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.lesson-header h1 { max-width: 760px; margin: 12px 0 14px; font-size: clamp(2.65rem, 6vw, 5.5rem); }
.lesson-header .lead { margin: 0; font-size: 1.04rem; }
.lesson-meta { min-width: 154px; display: grid; gap: 8px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.lesson-meta div { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.lesson-meta span { color: var(--muted); font-size: .74rem; }
.lesson-meta strong { font-size: .78rem; }

.lesson-body { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: clamp(26px, 5vw, 60px); padding-top: 42px; }
.content-stack { min-width: 0; }
.content-section { margin-bottom: 48px; scroll-margin-top: 110px; }
.content-section h2 { margin-bottom: 16px; font-size: 1.55rem; }
.content-section > p { color: #b8c3d0; }
.section-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--blue); font-size: .7rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.section-kicker span { width: 18px; height: 1px; background: currentColor; }
.goal-list, .check-list, .warning-list { list-style: none; margin: 0; padding: 0; }
.goal-list { display: grid; gap: 9px; }
.goal-list li { position: relative; padding-left: 27px; color: #c9d3df; }
.goal-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 13px; height: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }

.evidence-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); background: var(--panel); }
.evidence-table th, .evidence-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.evidence-table tr:last-child td { border-bottom: 0; }
.evidence-table th { color: var(--muted-2); font-size: .69rem; letter-spacing: .1em; text-transform: uppercase; }
.evidence-table td { font-size: .84rem; color: #c6d0dd; }
.evidence-table td:first-child { color: var(--ink); font-weight: 700; }

.floor-card { position: relative; overflow: hidden; padding: 27px; background: linear-gradient(135deg, rgba(255,90,36,.13), rgba(55,132,255,.08)); border: 1px solid rgba(255,90,36,.24); border-radius: var(--radius); }
.floor-card::before { content: "ØVELSE"; position: absolute; right: -6px; top: -13px; color: rgba(255,255,255,.035); font-family: Impact, sans-serif; font-size: 4.5rem; }
.floor-card h3 { font-size: 1.25rem; }
.floor-card ol { margin: 16px 0 0; padding-left: 22px; color: #c5cfda; }
.floor-card li { margin: 8px 0; padding-left: 4px; }

.phrase-card { padding: 24px; border-left: 3px solid var(--blue); background: var(--panel); }
.phrase-card blockquote { margin: 0; color: var(--ice); font-size: 1.08rem; line-height: 1.6; }
.phrase-card small { display: block; margin-top: 13px; color: var(--muted-2); }

.warning-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.warning-item { padding: 18px; background: rgba(255,255,255,.028); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.warning-item strong { display: block; margin-bottom: 5px; color: #ffd0bf; font-size: .86rem; }
.warning-item span { color: var(--muted); font-size: .8rem; }

.quiz-card { padding: clamp(24px, 4vw, 34px); background: #101722; border: 1px solid rgba(55,132,255,.23); border-radius: var(--radius); }
.quiz-card h3 { margin: 8px 0 20px; font-size: 1.22rem; line-height: 1.35; }
.quiz-options { display: grid; gap: 9px; }
.quiz-option { width: 100%; display: flex; align-items: center; gap: 11px; padding: 13px 14px; text-align: left; color: #c6d0dc; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.quiz-option:hover { border-color: var(--line-strong); color: var(--ink); }
.quiz-option.selected { border-color: var(--blue); background: rgba(55,132,255,.1); }
.quiz-option.correct { border-color: var(--green); background: rgba(85,216,144,.09); }
.quiz-option.wrong { border-color: var(--orange); background: rgba(255,90,36,.08); }
.quiz-letter { display: grid; place-items: center; flex: 0 0 26px; height: 26px; border-radius: 7px; background: rgba(255,255,255,.06); font-size: .7rem; font-weight: 850; }
.quiz-feedback { margin: 15px 0 0; padding: 13px 15px; color: #c9d5e2; background: rgba(255,255,255,.035); border-radius: 9px; font-size: .82rem; }

.lesson-aside { position: sticky; top: 110px; align-self: start; }
.aside-card { padding: 19px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.aside-card + .aside-card { margin-top: 12px; }
.aside-card h3 { margin-bottom: 13px; font-size: .82rem; }
.aside-links { display: grid; }
.aside-links a, .aside-links button { padding: 7px 0; color: var(--muted); background: none; border: 0; text-align: left; text-decoration: none; font-size: .76rem; cursor: pointer; }
.aside-links a:hover, .aside-links button:hover { color: var(--ink); }
.aside-tip { color: var(--muted); font-size: .78rem; }
.aside-tip strong { color: var(--orange-soft); }

.lesson-complete { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.lesson-complete p { margin: 3px 0 0; color: var(--muted); font-size: .8rem; }
.lesson-pagination { display: flex; gap: 8px; }

.course-page-head { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: end; margin-bottom: 28px; }
.course-page-head h1 { margin-bottom: 8px; font-size: clamp(3rem, 7vw, 6.5rem); }
.course-summary { padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.course-summary-line { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: .78rem; }
.module-list { display: grid; gap: 10px; }
.module-card { display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 18px; min-height: 102px; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; transition: .2s ease; }
.module-card:hover { transform: translateX(3px); border-color: var(--line-strong); }
.module-number { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted-2); font-weight: 800; font-size: .78rem; }
.module-number.done { color: #07140d; background: var(--green); border-color: var(--green); }
.module-card h3 { margin: 0 0 5px; }
.module-card p { margin: 0; color: var(--muted); font-size: .8rem; }
.module-card-meta { text-align: right; color: var(--muted-2); font-size: .72rem; }

.exam-intro { display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; }
.exam-rules { padding: 26px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.exam-rules ul { padding-left: 20px; color: var(--muted); }
.exam-rules li { margin: 9px 0; }
.exam-score { display: grid; place-items: center; text-align: center; padding: 30px; background: linear-gradient(145deg, rgba(55,132,255,.16), rgba(17,23,34,.8)); border: 1px solid rgba(55,132,255,.22); border-radius: var(--radius); }
.score-ring { width: 132px; height: 132px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--blue) var(--score, 0%), rgba(255,255,255,.08) 0); position: relative; }
.score-ring::after { content: ""; position: absolute; inset: 10px; border-radius: inherit; background: #101722; }
.score-ring strong { position: relative; z-index: 1; font-size: 2rem; }
.exam-question { margin-top: 14px; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.exam-question h3 { line-height: 1.4; }
.exam-question .question-no { color: var(--blue); font-size: .7rem; font-weight: 800; letter-spacing: .12em; }
.exam-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; }
.exam-result { padding: clamp(30px, 6vw, 60px); text-align: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.exam-result strong.big-score { display: block; color: var(--green); font-family: Impact, sans-serif; font-size: clamp(4rem, 12vw, 8rem); line-height: 1; }

.search-dialog { width: min(680px, calc(100% - 28px)); max-height: min(660px, calc(100vh - 40px)); margin-top: 8vh; padding: 0; color: var(--ink); background: #0e141d; border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: 0 30px 120px rgba(0,0,0,.65); }
.search-dialog::backdrop { background: rgba(3,5,8,.72); backdrop-filter: blur(7px); }
.search-head { height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 14px 0 20px; border-bottom: 1px solid var(--line); }
.search-head { color: var(--muted); }
.search-head input { flex: 1; height: 100%; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 1rem; }
.search-head input::placeholder { color: var(--muted-2); }
.key-button { cursor: pointer; }
.search-results { max-height: 520px; overflow-y: auto; padding: 10px; }
.search-result { display: grid; gap: 4px; padding: 13px 14px; color: inherit; text-decoration: none; border-radius: 10px; }
.search-result:hover, .search-result:focus { background: rgba(55,132,255,.1); outline: 0; }
.search-result small { color: var(--blue); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.search-result span { color: var(--muted); font-size: .78rem; }
.search-empty { padding: 44px 20px; text-align: center; color: var(--muted); }

.toast { position: fixed; z-index: 90; right: 22px; bottom: 22px; max-width: 340px; padding: 13px 17px; color: #07140d; background: var(--green); border-radius: 10px; font-size: .82rem; font-weight: 750; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(12px); transition: .25s ease; }
.toast.show { opacity: 1; transform: none; }

.source-note { margin-top: 58px; padding-top: 22px; color: var(--muted-2); border-top: 1px solid var(--line); font-size: .74rem; }
.source-note a { color: var(--muted); }

@media (max-width: 1060px) {
  .course-grid { grid-template-columns: 1fr 1fr; }
  .course-card:last-child { grid-column: 1 / -1; }
  .lesson-body { grid-template-columns: 1fr; }
  .lesson-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .course-page-head { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .sidebar { transform: translateX(-102%); transition: transform .25s ease; box-shadow: 20px 0 60px rgba(0,0,0,.42); }
  body.nav-open .sidebar { transform: none; }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 35; display: block; background: rgba(3,5,8,.65); }
  body:not(.nav-open) .sidebar-scrim { display: none; }
  .sidebar-close { display: grid; }
  .main { margin-left: 0; }
  .menu-button { display: grid; }
  .topbar { padding-inline: 16px; }
  .crumb { margin-right: auto; margin-left: 7px; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .search-trigger { width: 40px; justify-content: center; padding: 0; }
  .framework { grid-template-columns: 1fr; }
  .category-map { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .exam-intro { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .page, .lesson-page { width: min(100% - 28px, 1220px); }
  .topbar { height: 68px; }
  #view { min-height: calc(100vh - 68px); }
  .crumb span { display: none; }
  .hero { min-height: 560px; border-radius: 18px; }
  .hero::before { background-position: 61% center; opacity: .72; }
  .hero::after { background: linear-gradient(0deg, rgba(5,8,12,.98) 5%, rgba(5,8,12,.7) 61%, rgba(5,8,12,.18)); }
  .hero-content { padding: 26px 22px; }
  .hero h1 { font-size: clamp(3rem, 17vw, 5.2rem); }
  .hero-actions .button { flex: 1 1 100%; }
  .stat { padding: 16px; }
  .section-head { align-items: flex-start; flex-direction: column; margin-top: 42px; }
  .course-grid { grid-template-columns: 1fr; }
  .course-card:last-child { grid-column: auto; }
  .course-card { min-height: 255px; }
  .framework-steps { grid-template-columns: 1fr; }
  .framework-step:nth-child(odd) { border-right: 0; }
  .framework-step:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .resume-card { align-items: flex-start; flex-wrap: wrap; }
  .resume-card .button { width: 100%; }
  .principles { grid-template-columns: 1fr; }
  .lesson-header { grid-template-columns: 1fr; }
  .lesson-meta { grid-template-columns: 1fr 1fr; }
  .lesson-body { padding-top: 30px; }
  .evidence-table, .evidence-table tbody, .evidence-table tr, .evidence-table td { display: block; }
  .evidence-table thead { display: none; }
  .evidence-table tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .evidence-table td { padding: 4px 0; border: 0; }
  .evidence-table td::before { display: block; color: var(--muted-2); font-size: .62rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
  .evidence-table td:nth-child(1)::before { content: "Se etter"; }
  .evidence-table td:nth-child(2)::before { content: "Betyr"; }
  .evidence-table td:nth-child(3)::before { content: "Spør kunden"; }
  .warning-grid { grid-template-columns: 1fr; }
  .lesson-aside { grid-template-columns: 1fr; }
  .lesson-complete { align-items: flex-start; flex-direction: column; }
  .lesson-pagination { width: 100%; }
  .lesson-pagination .button { flex: 1; }
  .module-card { grid-template-columns: 48px 1fr; gap: 12px; }
  .module-number { width: 42px; height: 42px; }
  .module-card-meta { grid-column: 2; text-align: left; }
  .exam-actions { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

@media print {
  .sidebar, .topbar, .lesson-aside, .lesson-complete, .search-dialog, .toast { display: none !important; }
  .main { margin: 0; }
  body { background: white; color: #101318; }
  .lesson-page { width: 100%; padding: 0; }
  .lesson-header, .content-section { break-inside: avoid; }
  .muted, .lesson-header .lead, .content-section > p, .floor-card li, .evidence-table td { color: #303846; }
  .floor-card, .quiz-card, .phrase-card, .evidence-table { background: #f3f5f7; border-color: #ccd2d9; }
}
