/* AKADEMIA — jeden arkusz, najpierw telefon. Paleta: ciemne tło, neon #FF5A1F. */
:root {
  --bg: #0f0f10;
  --bg-2: #171719;
  --bg-3: #202024;
  --line: #2b2b30;
  --fg: #f2f2ef;
  --fg-2: #b9b9b3;
  --fg-3: #7d7d78;
  --accent: #FF5A1F;
  --accent-ink: #1a0a04;
  --ok: #4cc38a;
  --warn: #f5c451;
  --radius: 12px;
  --gutter: 16px;
  --max: 880px;
  font-size: 16px;
}
@media (prefers-color-scheme: light) {
  :root { --bg:#f6f5f2; --bg-2:#ffffff; --bg-3:#eeede8; --line:#dedcd5; --fg:#141414; --fg-2:#4a4a46; --fg-3:#80807a; --accent-ink:#fff; }
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--fg); font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input { font: inherit; }
.inline { display: inline; }
.link { background: none; border: 0; color: var(--fg-2); cursor: pointer; padding: 6px 8px; text-decoration: underline; }
.link:hover { color: var(--fg); }

.top { display: flex; align-items: center; justify-content: space-between; padding: 12px var(--gutter); border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.brand { font-weight: 800; letter-spacing: .14em; text-decoration: none; font-size: 13px; display: flex; align-items: center; gap: 10px; }
.brand__mark { background: var(--accent); color: var(--accent-ink); border-radius: 6px; padding: 2px 6px; font-size: 11px; letter-spacing: .04em; }
.top__nav { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.top__nav a { color: var(--fg-2); text-decoration: none; padding: 6px 8px; }
.top__nav a:hover { color: var(--fg); }

.page { max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter) 56px; }
.foot { text-align: center; color: var(--fg-3); font-size: 12px; padding: 24px var(--gutter) 40px; }

h1 { font-size: 26px; line-height: 1.2; margin: 6px 0 4px; letter-spacing: -.01em; }
h2 { font-size: 18px; margin: 28px 0 10px; }
h3 { font-size: 16px; margin: 18px 0 8px; }
.muted { color: var(--fg-2); }
.small { font-size: 13px; }
.eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.crumbs { font-size: 13px; color: var(--fg-3); margin-bottom: 6px; }
.crumbs a { color: var(--fg-2); text-decoration: none; }

.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 12px 0; }
.card--accent { border-color: var(--accent); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.grow { flex: 1 1 auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 10px; padding: 12px 18px; font-weight: 700; text-decoration: none; cursor: pointer; min-height: 44px; }
.btn:hover { filter: brightness(1.05); }
.btn--ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--fg-3); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }

.bar { height: 6px; background: var(--bg-3); border-radius: 3px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); }

.modules { list-style: none; padding: 0; margin: 0; }
.module { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); margin: 10px 0; overflow: hidden; }
.module__head { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; }
.module__num { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: var(--bg-3); color: var(--fg-2); font-size: 14px; }
.module--open .module__num { background: var(--accent); color: var(--accent-ink); }
.module--done .module__num { background: var(--ok); color: #06301d; }
.module__title { font-weight: 700; margin: 0; }
.module__meta { color: var(--fg-3); font-size: 13px; }
.module__lock { color: var(--warn); font-size: 13px; margin-top: 2px; }
.lessons { list-style: none; padding: 0 8px 8px; margin: 0; border-top: 1px solid var(--line); }
.lesson { display: flex; gap: 10px; align-items: center; padding: 10px 8px; border-radius: 8px; text-decoration: none; }
.lesson:hover { background: var(--bg-3); }
.lesson__dot { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--fg-3); display: grid; place-items: center; font-size: 12px; }
.lesson--done .lesson__dot { background: var(--ok); border-color: var(--ok); color: #06301d; }
.lesson__title { flex: 1 1 auto; }
.lesson__time { color: var(--fg-3); font-size: 13px; flex: 0 0 auto; }
.tag { display: inline-block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: var(--bg-3); color: var(--fg-2); margin-left: 6px; vertical-align: middle; }
.tag--core { background: rgba(255,90,31,.15); color: var(--accent); }

.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; margin: 12px calc(-1 * var(--gutter)) 0; }
@media (min-width: 640px) { .player { margin-left: 0; margin-right: 0; } }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--fg-2); text-align: center; padding: 24px; }
.resume { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-top: 10px; font-size: 14px; }
.audio { margin-top: 14px; }
.audio iframe { width: 100%; height: 80px; border: 0; border-radius: 10px; }
.audio details summary { cursor: pointer; color: var(--fg-2); font-size: 14px; }

.body { margin-top: 20px; }
.body h2 { margin-top: 22px; }
.body pre, .body code { background: var(--bg-3); border-radius: 6px; padding: 2px 6px; }
.protocol { border-left: 3px solid var(--accent); padding: 8px 14px; margin: 16px 0; color: var(--fg-2); }
.attachments { list-style: none; padding: 0; margin: 8px 0; }
.attachments li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.attachments a { text-decoration: none; display: flex; justify-content: space-between; gap: 10px; }

.nav-lessons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.nav-lessons .btn { text-align: center; }
.done-form { margin-top: 20px; }

.field { margin: 14px 0; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { color: var(--fg-3); font-size: 13px; margin-bottom: 6px; }
.field textarea, .field input[type=email] { width: 100%; background: var(--bg-3); color: var(--fg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; min-height: 44px; }
.field textarea { min-height: 84px; resize: vertical; }
.field textarea:focus, .field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.saved { color: var(--ok); font-size: 13px; }
.errorlist { color: var(--warn); list-style: none; padding: 0; margin: 6px 0; font-size: 14px; }

.auth { max-width: 420px; margin: 8vh auto 0; }
.auth h1 { font-size: 30px; }

.live { border-left: 3px solid var(--warn); }
.live .when { font-weight: 700; }

@media (min-width: 720px) {
  .page { padding-top: 32px; }
  h1 { font-size: 34px; }
  .nav-lessons { grid-template-columns: 1fr 1fr; }
}
