/* Akademia OLT Express VA – styl (biało-czerwony, granat jako kontrast) */
:root {
  --red: #E30613; --red-strong: #C8000E; --red-deep: #9E000B; --red-tint: #FDEDEE;
  --navy: #0B1F33; --navy-2: #13304D;
  --bg: #F4F6F8; --panel: #FFFFFF; --tint: #F1F3F6; --line: #E5E8ED; --line-2: #D3D9E0;
  --text: #0B1F33; --muted: #546175; --dim: #6E7A8B;
  --green: #0F7A45; --green-tint: #E5F4EB; --amber: #B26A00; --amber-tint: #FFF2D9;
  --f-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --r: 22px; --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 1px 2px rgba(11,31,51,.04), 0 18px 40px -22px rgba(11,31,51,.28);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; color: var(--text); font: 400 17px/1.6 var(--f-body); -webkit-font-smoothing: antialiased;
  background: radial-gradient(1200px 600px at 100% -10%, rgba(227,6,19,.07), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(11,31,51,.06), transparent 60%), var(--bg); }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.02; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
a { color: var(--red-strong); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; } .skip:focus { left: 8px; z-index: 99; background: #fff; padding: 8px 12px; }
.mono { font-family: var(--f-mono) !important; }
.wrap { width: min(100% - 32px, 1180px); margin-inline: auto; }
.narrow { width: min(100% - 32px, 820px); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.center { text-align: center; padding: 40px; display: grid; gap: 16px; justify-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 12px; font: 600 .74rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--red-strong); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(227,6,19,.14); }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 62ch; margin: 14px 0 0; }
.hint { color: var(--dim); font-size: .86rem; margin: 0; }
.note { margin: 16px 0; padding: 14px 16px; border-radius: 14px; background: var(--red-tint); border-left: 4px solid var(--red); color: var(--navy); font-size: .96rem; }

/* przyciski */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font: 600 .98rem/1 var(--f-body); text-decoration: none; cursor: pointer; white-space: nowrap; position: relative; overflow: hidden;
  transition: transform .25s var(--ease), background-color .2s, border-color .2s, box-shadow .25s; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--red { background: var(--red-strong); color: #fff; box-shadow: 0 12px 26px -14px rgba(200,0,14,.9); }
.btn--red:hover:not(:disabled) { background: var(--red-deep); }
.btn--red::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn--red:hover::after { transform: translateX(120%); }
.btn--ghost { background: #fff; color: var(--navy); border-color: var(--line-2); }
.btn--ghost:hover:not(:disabled) { border-color: var(--navy); }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: .88rem; }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 1.05rem; }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }

/* nagłówek */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px clamp(16px, 4vw, 40px); background: rgba(255,255,255,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.top__brand img { height: 40px; width: auto; }
.top__tag { padding: 6px 10px; border-radius: 8px; background: var(--navy); color: #fff; font: 600 .7rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; }
.top__pilot { display: flex; align-items: center; gap: 10px; }
.chip { padding: 8px 12px; border-radius: 999px; background: var(--tint); font-size: .9rem; color: var(--muted); }
.chip b { font-family: var(--f-mono); color: var(--navy); }

.app { flex: 1; outline: none; padding: clamp(24px, 4vw, 48px) 0 64px; }
.loading { display: grid; place-items: center; min-height: 40vh; }
.loading span { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--red); animation: spin .9s linear infinite; }
.app > section { animation: fadein .6s var(--ease) both; }
@keyframes fadein { from { opacity: 0; transform: translateY(14px); } }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 22px clamp(16px, 4vw, 40px); color: var(--dim); font-size: .84rem; border-top: 1px solid var(--line); background: #fff; }
.empty { padding: 40px; text-align: center; display: grid; gap: 12px; justify-items: center; }

/* logowanie */
.login { width: min(100% - 32px, 1180px); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.login__form h1 { font-size: clamp(2.6rem, 5.4vw, 4.2rem); }
.form { margin-top: 26px; padding: clamp(20px, 3vw, 30px); display: grid; gap: 16px; }
.fld { display: grid; gap: 7px; min-width: 0; }
.fld > span { font-weight: 600; font-size: .95rem; }
.fld small { color: var(--dim); font-weight: 400; margin-left: 4px; }
.fld input { width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; color: var(--navy); font: 400 1rem/1.4 var(--f-body); transition: border-color .2s, box-shadow .2s; }
.fld input.mono { text-transform: uppercase; letter-spacing: .06em; }
.fld input.pin { letter-spacing: .4em; font-size: 1.2rem; }
.fld input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(227,6,19,.12); }
.fld.has-error input { border-color: var(--red); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__msg { margin: 0; color: var(--red-strong); font-weight: 500; min-height: 0; }
.form__msg:empty { display: none; }
.login__art { margin: 0; border-radius: 28px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(11,31,51,.6); transform: rotate(1.2deg); max-height: 78vh; }
.login__art img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* kokpit */
.dash__hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: 28px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(700px 360px at 100% 0%, rgba(227,6,19,.55), transparent 65%), linear-gradient(135deg, var(--navy), var(--navy-2)); box-shadow: 0 40px 80px -40px rgba(11,31,51,.7); }
.dash__hero::after { content: ""; position: absolute; inset: 0; opacity: .1; background-image: repeating-linear-gradient(115deg, #fff 0 1px, transparent 1px 22px); mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); pointer-events: none; }
.dash__hero > * { position: relative; z-index: 1; }
.dash__hero .kicker { color: #FF8A92; }
.dash__hero .lead { color: rgba(255,255,255,.82); }
.dash__hero .btn { margin-top: 22px; }
.dash__prog { position: relative; width: 170px; height: 170px; display: grid; place-items: center; }
.dash__prog .ring { position: absolute; inset: 0; }
.dash__num { text-align: center; }
.dash__num strong { display: block; font: 600 3rem/1 var(--f-display); }
.dash__num small { font-size: 1.4rem; opacity: .7; }
.dash__num span { font-size: .8rem; opacity: .8; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring circle:first-child { stroke: rgba(255,255,255,.15); }
.ring__v { stroke: #fff; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: calc(327 - 327 * var(--p) / 100); animation: ring 1.4s var(--ease) both .2s; }
@keyframes ring { from { stroke-dashoffset: 327; } }
.ring--ok circle:first-child, .ring--bad circle:first-child { stroke: var(--tint); }
.ring--ok .ring__v { stroke: var(--green); } .ring--bad .ring__v { stroke: var(--red); }
.badge-ok { display: inline-block; margin-top: 18px; padding: 10px 14px; border-radius: 12px; background: var(--green-tint); color: var(--green); font-weight: 600; }
.dash__hero .badge-ok { background: rgba(255,255,255,.14); color: #fff; }

.path { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 22px; position: relative; }
.path::before { content: ""; position: absolute; left: 21px; top: 24px; bottom: 24px; width: 2px; background: repeating-linear-gradient(180deg, var(--line-2) 0 8px, transparent 8px 16px); }
.path__item { position: relative; padding-left: 64px; animation: fadein .6s var(--ease) both; animation-delay: calc(var(--i) * 90ms + .1s); }
.path__node { position: absolute; left: 0; top: 26px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line-2); font: 600 1rem/1 var(--f-mono); color: var(--muted); z-index: 1; }
.is-open .path__node { border-color: var(--red); color: var(--red-strong); box-shadow: 0 0 0 6px rgba(227,6,19,.1); }
.is-done .path__node { background: var(--green); border-color: var(--green); color: #fff; }
.is-locked .path__node { font-size: .9rem; }
.course { display: grid; grid-template-columns: 240px minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s; }
.is-open .course:hover, .is-done .course:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -30px rgba(11,31,51,.4); }
.is-locked .course { opacity: .72; filter: saturate(.4); }
.course__cover { position: relative; background: var(--tint); min-height: 200px; }
.course__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.course__no { position: absolute; left: 12px; bottom: 12px; padding: 6px 10px; border-radius: 8px; background: rgba(11,31,51,.85); color: #fff; font: 600 .72rem/1 var(--f-mono); letter-spacing: .12em; }
.course__body { padding: 22px 24px 22px; display: grid; gap: 8px; align-content: start; }
.course__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 5px 9px; border-radius: 999px; background: var(--tint); color: var(--muted); font: 600 .7rem/1 var(--f-mono); letter-spacing: .06em; }
.tag--done { background: var(--green-tint); color: var(--green); }
.tag--open { background: var(--red-tint); color: var(--red-strong); }
.course h2 { font-size: 1.9rem; margin-top: 4px; }
.course__sub { margin: 0; color: var(--red-strong); font-weight: 600; }
.course__desc { margin: 0; color: var(--muted); }
.course__meta { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--dim); font-size: .9rem; }
.course__meta b { color: var(--navy); font-family: var(--f-mono); }
.course__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.course__read { color: var(--dim); font-size: .84rem; }
.course__lock { margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--tint); color: var(--muted); font-size: .92rem; }

/* kurs */
.course-v { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 22px; align-items: start; }
.toc { position: sticky; top: 86px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.toc__back { display: inline-block; margin-bottom: 12px; color: var(--muted); text-decoration: none; font-size: .9rem; }
.toc__back:hover { color: var(--navy); }
.toc__title { margin: 0; font: 600 1.35rem/1.1 var(--f-display); }
.toc__bar { height: 6px; border-radius: 6px; background: var(--tint); margin: 12px 0 14px; overflow: hidden; }
.toc__bar i { display: block; height: 100%; background: linear-gradient(90deg, #F48A90, var(--red)); border-radius: inherit; transition: width .6s var(--ease); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.toc a { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 12px; text-decoration: none; color: var(--muted); font-size: .94rem; line-height: 1.3; transition: background-color .2s, color .2s; }
.toc a span { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); font: 600 .74rem/1 var(--f-mono); }
.toc a:hover { background: var(--tint); color: var(--navy); }
.toc a.is-on { background: var(--red-tint); color: var(--navy); font-weight: 600; }
.toc a.is-on span { background: var(--red); color: #fff; }
.toc a.is-seen span { background: var(--green-tint); color: var(--green); }
.toc a.is-on.is-seen span { background: var(--red); color: #fff; }
.toc__test { margin-top: 6px; border: 1px dashed var(--line-2); }
.lesson { padding: clamp(22px, 3.4vw, 40px); }
.lesson h1 { font-size: clamp(2rem, 4vw, 3rem); }
.lesson__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 30px; margin-top: 22px; align-items: start; }
.lesson__grid.no-img { grid-template-columns: minmax(0, 1fr); max-width: 72ch; }
.lesson__text p { margin: 0 0 12px; }
.lesson__text h3 { font-size: 1.5rem; margin: 22px 0 8px; }
.lesson__text ul { margin: 0 0 14px; padding-left: 0; list-style: none; display: grid; gap: 7px; }
.lesson__text li { position: relative; padding-left: 22px; }
.lesson__text li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--red); transform: rotate(45deg); }
.lesson__text strong { color: var(--navy); }
.lesson__img { margin: 0; position: sticky; top: 90px; }
.zoomable { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 16px; overflow: hidden; position: relative; box-shadow: 0 24px 50px -28px rgba(11,31,51,.6); }
.zoomable img { width: 100%; transition: transform .6s var(--ease); }
.zoomable:hover img { transform: scale(1.03); }
.zoomable span { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); padding: 7px 12px; border-radius: 999px; background: rgba(11,31,51,.82); color: #fff; font-size: .78rem; white-space: nowrap; }
.lesson__nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.zoom { position: fixed; inset: 0; z-index: 80; background: rgba(5,14,24,.92); display: grid; place-items: center; overflow: auto; padding: 24px; cursor: zoom-out; animation: fadein .3s var(--ease); }
.zoom[hidden] { display: none; }
.zoom img { max-width: min(100%, 1024px); height: auto; border-radius: 12px; cursor: default; }
.zoom__x { position: fixed; top: 16px; right: 16px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; font-size: 1.6rem; cursor: pointer; }

/* test */
.test-intro { padding: clamp(24px, 4vw, 44px); text-align: center; display: grid; justify-items: center; gap: 14px; }
.rules { list-style: none; margin: 8px 0; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.rules li { min-width: 120px; padding: 14px 16px; border-radius: 16px; background: var(--tint); display: grid; gap: 4px; }
.rules b { font: 600 2rem/1 var(--f-display); color: var(--red-strong); }
.rules span { font-size: .84rem; color: var(--muted); }
.test-intro .note { text-align: left; }
.quiz__head { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .92rem; }
.quiz__head .mono { color: var(--navy); font-weight: 600; }
.quiz__bar { height: 6px; border-radius: 6px; background: #fff; border: 1px solid var(--line); margin: 10px 0 18px; overflow: hidden; }
.quiz__bar i { display: block; height: 100%; background: var(--navy); transition: width .4s var(--ease); }
.quiz__card { padding: clamp(22px, 3.6vw, 38px); animation: q-in .45s var(--ease) both; }
@keyframes q-in { from { opacity: 0; transform: translateX(26px); } }
@keyframes q-in-left { from { opacity: 0; transform: translateX(-26px); } }
.quiz__card h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); line-height: 1.12; }
.quiz__hint { margin: 10px 0 0; color: var(--amber); font-weight: 600; font-size: .92rem; }
.opts { display: grid; gap: 10px; margin-top: 22px; }
.opt { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line-2); background: #fff; cursor: pointer; transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.opt:hover { border-color: var(--navy); transform: translateX(3px); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__key { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--tint); font: 600 .9rem/1 var(--f-mono); color: var(--muted); transition: background-color .2s, color .2s; }
.opt__t { font-size: 1.02rem; }
.opt.is-on { border-color: var(--navy); background: #F3F6FA; }
.opt.is-on .opt__key { background: var(--navy); color: #fff; }
.opt:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }
.quiz__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.dots button { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; cursor: pointer; }
.dots button.is-ans { background: var(--navy); border-color: var(--navy); }
.dots button.is-cur { box-shadow: 0 0 0 3px rgba(227,6,19,.35); border-color: var(--red); }
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(11,31,51,.5); backdrop-filter: blur(4px); animation: fadein .25s var(--ease); }
.modal__card { max-width: 480px; padding: 28px; display: grid; gap: 12px; text-align: center; }
.modal__card p { margin: 0; color: var(--muted); }

/* wynik */
.result { padding: clamp(26px, 4vw, 48px); text-align: center; display: grid; justify-items: center; gap: 10px; }
.result__ring { position: relative; width: 150px; height: 150px; display: grid; place-items: center; margin-bottom: 8px; }
.result__ring .ring { position: absolute; inset: 0; }
.result__ring strong { font: 600 2.6rem/1 var(--f-display); }
.is-pass .result__ring strong { color: var(--green); } .is-fail .result__ring strong { color: var(--red-strong); }
.wrong { width: 100%; max-width: 620px; margin-top: 14px; padding: 18px 20px; border-radius: 18px; background: var(--tint); text-align: left; }
.wrong h2 { font-size: 1.4rem; }
.wrong ol { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.wrong li::marker { color: var(--red-strong); font-weight: 600; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: fall linear forwards; box-shadow: 0 0 0 1px rgba(11,31,51,.06); }
@keyframes fall { to { transform: translateY(105vh) rotate(var(--r)); } }

@media (max-width: 980px) {
  .login { grid-template-columns: 1fr; }
  .login__art { order: -1; max-height: 300px; transform: none; }
  .course-v { grid-template-columns: 1fr; }
  .toc { position: static; }
  .lesson__grid { grid-template-columns: 1fr; }
  .lesson__img { position: static; max-width: 420px; }
}
@media (max-width: 720px) {
  .dash__hero { grid-template-columns: 1fr; }
  .dash__prog { width: 130px; height: 130px; }
  .dash__num strong { font-size: 2.3rem; }
  .course { grid-template-columns: 1fr; }
  .course__cover { min-height: 150px; }
  .path__item { padding-left: 0; }
  .path::before, .path__node { display: none; }
  .row2 { grid-template-columns: 1fr; }
  .top__brand img { height: 32px; }
  .chip { display: none; }
  .quiz__nav { flex-wrap: wrap; }
  .dots { order: -1; width: 100%; }
  .quiz__nav .btn { flex: 1; }
  .lesson__nav .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* zdjęcie na stronie logowania z kartami informacyjnymi */
.login__art { position: relative; aspect-ratio: 5 / 6; }
.login__art img { object-position: 70% center; }
.login__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,31,51,0) 40%, rgba(11,31,51,.78) 100%); pointer-events: none; }
.login__cards { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 1; display: grid; gap: 8px; }
.glass { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; color: #fff; font-size: .92rem; line-height: 1.3;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  animation: fadein .7s var(--ease) both; }
.glass:nth-child(2) { animation-delay: .15s; } .glass:nth-child(3) { animation-delay: .3s; }
.glass b { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--red); font: 600 .74rem/1 var(--f-mono); }
@media (max-width: 980px) { .login__art { aspect-ratio: 16 / 10; } .login__cards { display: none; } }

/* powrót na stronę główną */
.top__home { margin-left: auto; margin-right: 6px; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--navy); font-weight: 600; font-size: .9rem; text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
.top__home:hover { border-color: var(--navy); transform: translateY(-1px); }
.top__home svg { color: var(--red-strong); }
.foot a { color: var(--muted); }
@media (max-width: 720px) { .top__home span { display: none; } .top__home { padding: 0 11px; } }
/* nowe logo (bez marginesów w pliku) */
.top__brand img { height: 28px; }
@media (max-width: 700px) { .top__brand img { height: 24px; } }

/* okładka kursu bez grafiki: numer kursu na tle w barwach linii */
.course { grid-template-columns: 180px minmax(0, 1fr); }
.course__cover.is-art { min-height: 160px; overflow: hidden; background: radial-gradient(120% 90% at 100% 0%, rgba(227,6,19,.55), transparent 60%), linear-gradient(160deg, #0B1F33, #13304D 60%, #1C3D5E); }
.course__big { position: absolute; left: 14px; top: 8px; font: 700 4.6rem/1 var(--f-display, "Barlow Condensed", sans-serif); color: #fff; letter-spacing: -.02em; opacity: .95; }
.course__plane { position: absolute; right: -10px; bottom: 26px; width: 92px; height: 92px; fill: rgba(255,255,255,.12); transform: rotate(45deg); transition: transform .5s ease; }
.course:hover .course__plane { transform: rotate(45deg) translateY(-8px); }
.is-done .course__cover.is-art { background: radial-gradient(120% 90% at 100% 0%, rgba(19,150,90,.6), transparent 60%), linear-gradient(160deg, #0B1F33, #13304D 60%, #1C3D5E); }
@media (max-width: 700px) { .course { grid-template-columns: 1fr; } .course__cover.is-art { min-height: 110px; } .course__big { font-size: 3.4rem; } }

/* ===== v25: grafiki kursów i plansze ===== */
.course__cover img[src$=".svg"] { object-position: center; }
.course:hover .course__cover img[src$=".svg"] { transform: scale(1.03); }
.course__cover img { transition: transform .5s ease; }
.course__cover { overflow: hidden; }
.lesson__text h3 { display: flex; align-items: center; gap: 10px; }
.lesson__text h3::before { content: ""; flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23fff' transform='rotate(45 24 24)' d='M24 4c1.6 0 2.5 1.7 2.5 4v10.5l15 8.5v3.6l-15-4.6v9l4.5 3.4V41L24 39.4 19 41v-2.6l4.5-3.4v-9l-15 4.6V27l15-8.5V8c0-2.3.9-4 2.5-4Z'/%3E%3C/svg%3E") center / 18px no-repeat; }
@media (min-width: 981px) { .lesson__grid:not(.no-img) { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); } }
.course:has(.course__cover img) { grid-template-columns: 260px minmax(0, 1fr); }
@media (max-width: 700px) { .course:has(.course__cover img) { grid-template-columns: 1fr; } .course__cover:has(img) { min-height: 170px; } }

/* ===== v27: krok startowy (Discord / Facebook), wyniki bez progu, ponowne podejście ===== */
.onb { position: relative; margin: 26px 0 30px; padding: 26px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 90px; }
.onb::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: linear-gradient(180deg, #5865F2, var(--red)); }
.onb__head { display: flex; gap: 18px; align-items: flex-start; }
.onb__step { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--navy); color: #fff; font: 600 .78rem/1.1 var(--f-mono); text-align: center; letter-spacing: .06em; }
.onb__head h2 { margin: 4px 0 8px; font-size: 1.7rem; }
.onb__head p { margin: 0; color: var(--muted); max-width: 70ch; }
.onb__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 18px; }
.onb__item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--tint); }
.onb__item > div { flex: 1; display: grid; gap: 4px; }
.onb__item b { font-size: 1.05rem; }
.onb__ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: #fff; }
.onb__ic svg { width: 26px; height: 26px; }
.onb__item--dc .onb__ic { background: #5865F2; }
.onb__item--fb .onb__ic { background: #1877F2; }
.onb__req, .onb__opt { justify-self: start; padding: 3px 8px; border-radius: 999px; font: 600 .66rem/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.onb__req { background: var(--red-tint); color: var(--red-strong); }
.onb__opt { background: #E8EEF6; color: var(--muted); }
.btn--dc { background: #5865F2; color: #fff; border-color: #5865F2; }
.btn--fb { background: #fff; color: #1877F2; border: 2px solid #1877F2; }
.onb__nolink { font-size: .8rem; color: var(--dim); }
.onb__form { display: grid; gap: 12px; max-width: 560px; }
.onb__form.card { margin: -14px 0 26px; padding: 20px; }
.chk { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .97rem; }
.chk input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--red); flex: none; }
.chk em { font-style: normal; color: var(--dim); font-size: .85rem; }
.onb--done { display: flex; align-items: center; gap: 14px; padding: 14px 20px; margin: 22px 0 26px; }
.onb--done::before { background: var(--green); }
.onb--done p { flex: 1; margin: 0; }
.onb__check { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; flex: none; }
.onb__links { display: flex; gap: 14px; align-items: center; font-size: .9rem; }
.onb__links a { color: var(--navy); }
.linkbtn { border: 0; background: none; padding: 0; color: var(--red-strong); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.tag--wait { background: var(--amber-tint); color: var(--amber); }
.ring--ok .ring__v { stroke: var(--green); } .ring--mid .ring__v { stroke: #E08A00; } .ring--low .ring__v { stroke: #7D8B9C; }
.ring--mid circle:first-child, .ring--low circle:first-child { stroke: var(--tint); }
.retake { margin: 22px 0 6px; padding: 16px 18px; border-radius: 16px; background: var(--tint); text-align: left; }
.retake__st { margin: 0 0 10px; font-weight: 600; color: var(--muted); }
.retake__st.is-wait { color: var(--amber); } .retake__st.is-ok { color: var(--green); }
.retake__ask summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.retake__ask form { display: grid; gap: 10px; margin-top: 12px; }
.retake__ask textarea { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); font: 400 .95rem/1.4 var(--f-body); }
@media (max-width: 720px) { .onb { padding: 20px 18px; } .onb__grid { grid-template-columns: 1fr; } .onb__head { flex-direction: column; gap: 10px; } .onb__item { flex-wrap: wrap; } .onb--done { flex-wrap: wrap; } }
.result.is-ok .result__ring strong { color: var(--green); } .result.is-mid .result__ring strong { color: #C47A00; } .result.is-low .result__ring strong { color: var(--navy); }
.retake { width: 100%; }
