/* Akademia Coachingu ManawaFlow — wygląd aplikacji.
 * Design system z masterplanu (rozdz. 13): Ink #162C33, Flow teal #17605C, Warm brass #A77F4B, Off-white #F3F6F5,
 * Body ink #23343A, Rule #D6E2DE. Dojrzały, spokojny, czytelny — bez szkolnej infantylizacji.
 * Telefon: dolna nawigacja. Od 1024 px: boczne menu i szeroka kolumna nauki. Jasny + ciemny motyw, reduced motion.
 */

:root {
  --ink: #162C33; --ink-2: #23343A; --muted: #5B6D72; --muted-2: #7D8D91;
  --teal: #17605C; --teal-2: #1E7A74; --teal-3: #2C9A92; --teal-t: #E3EFEC; --teal-tt: #F0F6F4;
  --brass: #A77F4B; --brass-2: #C29A62; --brass-t: #F4ECDF;
  --bg: #F3F6F5; --bg-2: #E9EFED; --card: #FFFFFF; --card-2: #F8FAF9;
  --rule: #D6E2DE; --rule-2: #C2D2CD;
  --ok: #1F7A4D; --ok-t: #E2F3EA; --no: #B23A3A; --no-t: #F9E6E4; --warn: #9A6A12; --warn-t: #FBF0D9; --info: #2B5F86; --info-t: #E4EEF6;
  --focus: #0E6BA8;
  --shadow: 0 1px 2px rgba(22,44,51,.05), 0 8px 24px rgba(22,44,51,.06);
  --shadow-lg: 0 18px 50px rgba(22,44,51,.18);
  --r: 16px; --r-sm: 10px; --r-xs: 7px;
  --head: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --sans: 'Lato', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fs: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --nav-h: 64px; --top-h: 56px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #E7F0EE; --ink-2: #D2DFDC; --muted: #9DB1AD; --muted-2: #7F9692;
    --teal: #3FA39B; --teal-2: #5BB8B0; --teal-3: #7CCBC3; --teal-t: #16312F; --teal-tt: #132927;
    --brass: #CFA66E; --brass-2: #DDBA88; --brass-t: #2E2619;
    --bg: #0E1B1F; --bg-2: #13252A; --card: #152A2F; --card-2: #193137;
    --rule: #26403F; --rule-2: #31504E;
    --ok: #4FC08A; --ok-t: #143426; --no: #F08A84; --no-t: #3A1C1B; --warn: #E3B657; --warn-t: #36290F; --info: #7FB4DD; --info-t: #17293A;
    --focus: #7CC4F5;
    --shadow: 0 1px 2px rgba(0,0,0,.35), 0 10px 30px rgba(0,0,0,.3); --shadow-lg: 0 20px 60px rgba(0,0,0,.55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #E7F0EE; --ink-2: #D2DFDC; --muted: #9DB1AD; --muted-2: #7F9692;
  --teal: #3FA39B; --teal-2: #5BB8B0; --teal-3: #7CCBC3; --teal-t: #16312F; --teal-tt: #132927;
  --brass: #CFA66E; --brass-2: #DDBA88; --brass-t: #2E2619;
  --bg: #0E1B1F; --bg-2: #13252A; --card: #152A2F; --card-2: #193137;
  --rule: #26403F; --rule-2: #31504E;
  --ok: #4FC08A; --ok-t: #143426; --no: #F08A84; --no-t: #3A1C1B; --warn: #E3B657; --warn-t: #36290F; --info: #7FB4DD; --info-t: #17293A;
  --focus: #7CC4F5;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 10px 30px rgba(0,0,0,.3); --shadow-lg: 0 20px 60px rgba(0,0,0,.55);
  color-scheme: dark;
}
:root[data-text="large"] { --fs: 18px; }
:root[data-text="xl"] { --fs: 20px; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; font-size: var(--fs); }
body { margin: 0; background: var(--bg); color: var(--ink-2); font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.65rem; font-weight: 600; }
h2 { font-size: 1.3rem; font-weight: 600; }
h3 { font-size: 1.08rem; font-weight: 600; }
h4 { font-size: .95rem; font-weight: 600; }
p { margin: 0 0 .9em; }
a { color: var(--teal); text-underline-offset: 2px; }
strong { color: var(--ink); font-weight: 700; }
small, .small { font-size: .85rem; }
.muted { color: var(--muted); }
.brass { color: var(--brass); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.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; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
button { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 1.4rem 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--card); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- powłoka ---------- */
.app { min-height: 100vh; }
.col { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 30; height: calc(var(--top-h) + var(--safe-t)); padding: var(--safe-t) 12px 0; display: flex; align-items: center; gap: 8px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; }
.topbar.scrolled { border-bottom-color: var(--rule); }
.topbar .tb-title { flex: 1; min-width: 0; font: 600 1rem/1.2 var(--head); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .tb-brand { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; text-decoration: none; color: var(--ink); }
.topbar .tb-brand > span { min-width: 0; display: block; }
.topbar .tb-brand + .spacer, .topbar .tb-title + .spacer { display: none; }
.topbar .tb-brand b { font: 600 .98rem/1.15 var(--head); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .tb-brand small { display: block; color: var(--muted); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 12px; border: 0; background: transparent; display: inline-grid; place-items: center; cursor: pointer; color: var(--ink); flex: none; }
.icon-btn:hover { background: var(--bg-2); }
.icon-btn .dot { position: absolute; top: 7px; right: 7px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--brass); color: #fff; font: 700 .66rem/17px var(--sans); text-align: center; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font: 600 .9rem var(--head); }

.main { padding: 14px 16px calc(var(--nav-h) + var(--safe-b) + 28px); max-width: 1180px; margin: 0 auto; }
.page { animation: pageIn .28s ease both; }
.page-narrow { max-width: 760px; margin: 0 auto; }
.page-read { max-width: 720px; margin: 0 auto; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.nav { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: calc(var(--nav-h) + var(--safe-b)); padding: 6px 6px var(--safe-b); display: grid; grid-template-columns: repeat(5, 1fr);
  background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--rule); }
.nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--muted); font: 600 .7rem/1.1 var(--sans); border-radius: 12px; }
.nav a svg { width: 23px; height: 23px; }
.nav a.on { color: var(--teal); }
.nav a.on svg { stroke-width: 2.2; }
.side { display: none; }

@media (min-width: 1024px) {
  .app { display: grid; grid-template-columns: 252px 1fr; }
  .nav { display: none; }
  .side { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 22px 14px; border-right: 1px solid var(--rule); background: var(--card); }
  .side .s-brand { display: flex; gap: 10px; align-items: center; padding: 0 8px 20px; text-decoration: none; color: var(--ink); }
  .side .s-brand b { font: 600 1rem/1.15 var(--head); display: block; }
  .side .s-brand small { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
  .side a.s-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
  .side a.s-link:hover { background: var(--bg); }
  .side a.s-link.on { background: var(--teal-t); color: var(--teal); }
  .side a.s-link svg { width: 20px; height: 20px; }
  .side .s-sep { margin: 14px 12px 6px; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); font-weight: 700; }
  .side .s-foot { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--rule); font-size: .78rem; color: var(--muted); }
  .main { padding: 22px 36px 60px; }
  .topbar { padding: 0 28px; }
  .topbar .tb-brand { visibility: hidden; }
}

/* ---------- elementy ---------- */
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.card + .card, .card + .sec, .sec + .card { margin-top: 14px; }
.card.flat { box-shadow: none; }
.card.tint { background: var(--teal-tt); border-color: var(--teal-t); }
.card.brass { background: var(--brass-t); border-color: color-mix(in srgb, var(--brass) 30%, transparent); }
.card.click { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s; text-decoration: none; color: inherit; display: block; }
.card.click:hover { transform: translateY(-2px); border-color: var(--rule-2); box-shadow: var(--shadow-lg); }
.card h3:first-child, .card h2:first-child { margin-top: 0; }
.hero { position: relative; overflow: hidden; border-radius: 20px; padding: 24px 20px; color: #F3F6F5; background: radial-gradient(600px 300px at 110% -20%, rgba(167,127,75,.45), transparent 60%), linear-gradient(140deg, #162C33 0%, #17605C 100%); box-shadow: var(--shadow-lg); }
.hero h1, .hero h2, .hero h3, .hero strong { color: #fff; }
.hero p { color: rgba(243,246,245,.86); }
.hero .eyebrow { color: #E9D3AE; }
.hero::after { content: ''; position: absolute; right: -40px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 0 0 26px rgba(255,255,255,.04), 0 0 0 54px rgba(255,255,255,.03); pointer-events: none; }
.eyebrow { font: 700 .72rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--brass); margin-bottom: 6px; display: block; }
.sec { margin: 26px 0 10px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.sec h2 { margin: 0; font-size: 1.12rem; }
.sec a { font-size: .9rem; font-weight: 600; text-decoration: none; }

.grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .grid.g2 { grid-template-columns: repeat(2, 1fr); } .grid.g3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid.g3 { grid-template-columns: repeat(3, 1fr); } .grid.g4 { grid-template-columns: repeat(4, 1fr); } }
.grid.g4 { grid-template-columns: repeat(2, 1fr); }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 10px; }
.spacer { flex: 1; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: 12px; border: 1px solid transparent; font: 700 .95rem/1.2 var(--sans); cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .1s, box-shadow .15s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--teal) 28%, transparent); }
.btn-primary:hover { background: var(--teal-2); }
:root[data-theme="dark"] .btn-primary, :root:not([data-theme="light"]) .btn-primary { color: #fff; }
.btn-secondary { background: var(--card); color: var(--ink); border-color: var(--rule-2); }
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); }
.btn-ghost { background: transparent; color: var(--teal); }
.btn-ghost:hover { background: var(--teal-tt); }
.btn-brass { background: var(--brass); color: #fff; }
.btn-brass:hover { background: var(--brass-2); }
.btn-danger { background: var(--no); color: #fff; }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-light:hover { background: rgba(255,255,255,.22); }
.btn-white { background: #fff; color: #162C33; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: .85rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.linkbtn { background: none; border: 0; color: var(--teal); font-weight: 700; cursor: pointer; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: 700 .74rem/1.5 var(--sans); background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.chip svg { width: 14px; height: 14px; }
.chip.teal { background: var(--teal-t); color: var(--teal); }
.chip.brass { background: var(--brass-t); color: var(--brass); }
.chip.ok { background: var(--ok-t); color: var(--ok); }
.chip.no { background: var(--no-t); color: var(--no); }
.chip.warn { background: var(--warn-t); color: var(--warn); }
.chip.info { background: var(--info-t); color: var(--info); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.bar { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--teal-3)); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.bar.brass > i { background: linear-gradient(90deg, var(--brass), var(--brass-2)); }
.ring { display: block; }
.ring .bg { stroke: var(--bg-2); }
.ring .fg { stroke: var(--teal); transition: stroke-dashoffset .9s cubic-bezier(.2,.8,.2,1); }
.hero .ring .bg { stroke: rgba(255,255,255,.18); }
.hero .ring .fg { stroke: #E9D3AE; }

.kpi { padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--rule); }
.kpi b { display: block; font: 600 1.5rem/1.1 var(--head); color: var(--ink); }
.kpi span { font-size: .8rem; color: var(--muted); }

.list { list-style: none; margin: 0; padding: 0; }
.li { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; }
.li:last-child { border-bottom: 0; }
a.li:hover, button.li:hover { background: var(--card-2); }
button.li { width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; cursor: pointer; }
.li .li-main { flex: 1; min-width: 0; }
.li .li-main b { display: block; color: var(--ink); font-weight: 700; }
.li .li-main small { color: var(--muted); display: block; }
.li .li-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-tt); color: var(--teal); flex: none; }
.li .li-ico.done { background: var(--ok-t); color: var(--ok); }
.li .li-ico.lock { background: var(--bg-2); color: var(--muted-2); }
.li .li-ico.brass { background: var(--brass-t); color: var(--brass); }
.li .li-ico svg { width: 20px; height: 20px; }

/* formularze */
.form { display: grid; gap: 14px; }
.lbl { display: grid; gap: 6px; font-weight: 700; color: var(--ink); font-size: .92rem; }
.lbl small { font-weight: 400; color: var(--muted); }
.field, .field-area, select.field { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--rule-2); background: var(--card); color: var(--ink); font: 400 1rem/1.45 var(--sans); transition: border-color .15s, box-shadow .15s; }
.field-area { resize: vertical; min-height: 96px; }
.field:focus, .field-area:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 18%, transparent); }
.field[aria-invalid="true"], .field-area[aria-invalid="true"] { border-color: var(--no); }
.count { font-size: .78rem; color: var(--muted); text-align: right; font-weight: 400; }
.count.short { color: var(--warn); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--teal); flex: none; }
.form-err { color: var(--no); background: var(--no-t); padding: 10px 12px; border-radius: 10px; font-size: .9rem; margin: 0; }
.opts { display: grid; gap: 8px; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border: 1.5px solid var(--rule-2); border-radius: 12px; background: var(--card); cursor: pointer; text-align: left; width: 100%; font: inherit; color: var(--ink-2); transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--teal); }
.opt .mark { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--rule-2); flex: none; margin-top: 1px; display: grid; place-items: center; }
.opt.sel { border-color: var(--teal); background: var(--teal-tt); }
.opt.sel .mark { border-color: var(--teal); background: var(--teal); box-shadow: inset 0 0 0 3px var(--card); }
.opt.ok { border-color: var(--ok); background: var(--ok-t); }
.opt.ok .mark { border-color: var(--ok); background: var(--ok); }
.opt.no { border-color: var(--no); background: var(--no-t); }
.opt.no .mark { border-color: var(--no); background: var(--no); }
.opt[disabled] { cursor: default; }
.opt-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.seg { display: inline-flex; background: var(--bg-2); padding: 4px; border-radius: 12px; gap: 4px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 9px; font-weight: 700; font-size: .85rem; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--rule); margin: 0 0 16px; scrollbar-width: none; }
.tabs button, .tabs a { border: 0; background: none; padding: 10px 14px; font-weight: 700; color: var(--muted); border-bottom: 2.5px solid transparent; cursor: pointer; white-space: nowrap; text-decoration: none; font-size: .92rem; }
.tabs .on { color: var(--teal); border-bottom-color: var(--teal); }

/* komunikaty */
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--info-t); color: var(--ink-2); margin: 12px 0; }
.callout svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--info); }
.callout.tip { background: var(--teal-tt); } .callout.tip svg { color: var(--teal); }
.callout.warning, .callout.warn { background: var(--warn-t); } .callout.warning svg, .callout.warn svg { color: var(--warn); }
.callout.danger { background: var(--no-t); } .callout.danger svg { color: var(--no); }
.callout.ok { background: var(--ok-t); } .callout.ok svg { color: var(--ok); }
.callout p:last-child { margin-bottom: 0; }
.empty { text-align: center; padding: 34px 18px; color: var(--muted); }
.empty svg { width: 44px; height: 44px; color: var(--rule-2); margin-bottom: 8px; }
.empty h3 { color: var(--ink); }
.skel { background: linear-gradient(90deg, var(--bg-2), var(--card-2), var(--bg-2)); background-size: 200% 100%; animation: skel 1.3s infinite linear; border-radius: 12px; min-height: 18px; }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.offline-bar { position: fixed; top: calc(var(--top-h) + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 45; background: var(--ink); color: var(--card); padding: 6px 14px; border-radius: 0 0 10px 10px; font-size: .8rem; font-weight: 700; }

/* okna */
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(10,22,26,.5); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .2s; padding: 0; }
.modal.open { opacity: 1; }
.modal-card { position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; background: var(--card); border-radius: 22px 22px 0 0; padding: 24px 20px calc(20px + var(--safe-b)); box-shadow: var(--shadow-lg); transform: translateY(24px); transition: transform .24s cubic-bezier(.2,.8,.2,1); }
.modal.open .modal-card { transform: none; }
.modal-wide .modal-card { max-width: 860px; }
@media (min-width: 640px) { .modal { align-items: center; padding: 20px; } .modal-card { border-radius: 20px; } }
.modal-x { position: absolute; top: 10px; right: 10px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.modal-actions .btn { flex: 1 1 auto; }
.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 16px); transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--card); padding: 12px 18px; border-radius: 12px; font-weight: 700; font-size: .92rem; box-shadow: var(--shadow-lg); transition: all .25s; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { background: var(--ok); color: #fff; }
.toast.no { background: var(--no); color: #fff; }
@media (min-width: 1024px) { .toast { bottom: 28px; } }

/* ---------- akademia ---------- */
.ac-card { position: relative; overflow: hidden; }
.ac-num { font: 600 2.2rem/1 var(--head); color: var(--rule-2); position: absolute; right: 16px; top: 12px; }
.mod-row { display: flex; gap: 12px; align-items: center; }
.lesson-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; background: var(--bg-2); color: var(--muted); flex: none; }
.lesson-dot.done { background: var(--ok); color: #fff; }
.lesson-dot.prog { background: var(--teal-t); color: var(--teal); box-shadow: inset 0 0 0 2px var(--teal); }
.dots { display: flex; gap: 4px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--bg-2); }
.dots i.done { background: var(--ok); }
.dots i.prog { background: var(--teal-3); }
.lock-note { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .88rem; }

/* ---------- odtwarzacz lekcji ---------- */
.lp-head { margin-bottom: 14px; }
.lp-crumb { font-size: .8rem; color: var(--muted); font-weight: 700; letter-spacing: .02em; }
.lp-steps { display: flex; gap: 4px; margin: 12px 0 18px; }
.lp-steps button { flex: 1; height: 6px; border: 0; padding: 0; border-radius: 6px; background: var(--bg-2); cursor: pointer; }
.lp-steps button.done { background: var(--teal-3); }
.lp-steps button.on { background: var(--teal); }
.lp-sec-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.lp-sec-title .n { width: 30px; height: 30px; border-radius: 10px; background: var(--teal-t); color: var(--teal); display: grid; place-items: center; font: 600 .85rem var(--head); }
.lp-body { font-size: 1.04rem; line-height: 1.72; }
.lp-body ul { padding-left: 1.2em; margin: 0 0 .9em; }
.lp-body li { margin: .25em 0; }
.lp-foot { position: sticky; bottom: calc(var(--nav-h) + var(--safe-b) + 8px); z-index: 20; display: flex; gap: 10px; margin-top: 22px; padding: 10px; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--rule); border-radius: 16px; box-shadow: var(--shadow); }
.lp-foot .btn-primary { flex: 1; }
@media (min-width: 1024px) { .lp-foot { bottom: 16px; } }
.saved { font-size: .78rem; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.saved svg { width: 14px; height: 14px; }
.theory-block { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.theory-block:last-child { border-bottom: 0; }
.theory-block h3 { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.claim { display: inline-flex; align-items: center; gap: 4px; font: 700 .68rem/1.4 var(--sans); padding: 2px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; cursor: help; border: 0; }
.claim.A { background: var(--info-t); color: var(--info); }
.claim.B { background: var(--teal-t); color: var(--teal); }
.claim.C { background: var(--warn-t); color: var(--warn); }
.claim.E { background: var(--brass-t); color: var(--brass); }
.theory-block.tip { background: var(--teal-tt); border-radius: 14px; padding: 16px 18px; border: 0; margin: 10px 0; }
.theory-block.warning { background: var(--warn-t); border-radius: 14px; padding: 16px 18px; border: 0; margin: 10px 0; }
.src-ref { font-size: .8rem; color: var(--muted); }
.dialog { display: grid; gap: 10px; margin: 14px 0; }
.bubble { max-width: 88%; padding: 11px 14px; border-radius: 16px; font-size: .98rem; line-height: 1.55; }
.bubble small { display: block; font: 700 .7rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; opacity: .75; }
.bubble.client { background: var(--bg-2); border-bottom-left-radius: 4px; justify-self: start; }
.bubble.coach { background: var(--teal-t); color: var(--ink); border-bottom-right-radius: 4px; justify-self: end; }
.bubble.good { background: var(--ok-t); justify-self: end; border-bottom-right-radius: 4px; }
.bubble.weak { background: var(--no-t); justify-self: end; border-bottom-right-radius: 4px; }
.compare { display: grid; gap: 12px; }
@media (min-width: 720px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare > div { padding: 14px 16px; border-radius: 14px; }
.compare .good { background: var(--ok-t); }
.compare .weak { background: var(--no-t); }
.compare h4 { display: flex; gap: 6px; align-items: center; }
.compare h4 svg { width: 18px; height: 18px; }
.compare .good h4 { color: var(--ok); }
.compare .weak h4 { color: var(--no); }
.spot { font-size: 1.12rem; line-height: 2.1; padding: 16px; background: var(--card-2); border: 1px dashed var(--rule-2); border-radius: 14px; }
.spot button { font: inherit; border: 0; background: transparent; padding: 2px 3px; border-radius: 6px; cursor: pointer; color: var(--ink); border-bottom: 2px dotted var(--rule-2); }
.spot button.sel { background: var(--warn-t); border-bottom-color: var(--warn); }
.spot button.hit { background: var(--no-t); border-bottom-color: var(--no); }
.spot button.miss { background: var(--warn-t); outline: 2px dashed var(--warn); }
.spot button.fp { background: var(--bg-2); text-decoration: line-through; }
.sort-items { display: grid; gap: 8px; }
.sort-item { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--rule); background: var(--card); }
.sort-item .seg { margin-top: 8px; }
.sort-item.ok { border-color: var(--ok); background: var(--ok-t); }
.sort-item.no { border-color: var(--no); background: var(--no-t); }
.order-list { display: grid; gap: 8px; }
.order-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--rule); background: var(--card); }
.order-item .n { font: 600 .9rem var(--head); color: var(--teal); width: 22px; }
.order-item .t { flex: 1; }
.order-item .mv { display: flex; flex-direction: column; gap: 2px; }
.order-item .mv button { width: 34px; height: 28px; border-radius: 8px; border: 1px solid var(--rule); background: var(--card-2); cursor: pointer; display: grid; place-items: center; }
.order-item.ok { border-color: var(--ok); background: var(--ok-t); }
.order-item.no { border-color: var(--no); background: var(--no-t); }
.fb { margin-top: 10px; padding: 12px 14px; border-radius: 12px; font-size: .95rem; }
.fb.ok { background: var(--ok-t); }
.fb.no { background: var(--no-t); }
.fb.neutral { background: var(--bg-2); }
.ws-material { background: var(--card-2); border: 1px solid var(--rule); border-left: 4px solid var(--brass); border-radius: 12px; padding: 16px 18px; margin: 12px 0; }
.ws-steps { counter-reset: s; list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.ws-steps li { counter-increment: s; display: flex; gap: 10px; }
.ws-steps li::before { content: counter(s); width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--teal-t); color: var(--teal); font: 700 .78rem/24px var(--sans); text-align: center; margin-top: 1px; }
.timer { display: inline-flex; align-items: center; gap: 8px; font: 600 1rem var(--head); color: var(--ink); padding: 6px 12px; border-radius: 10px; background: var(--bg-2); }
.timer.run { background: var(--teal-t); color: var(--teal); }
.timer button { border: 0; background: none; cursor: pointer; color: inherit; display: grid; }
.model-answer { background: var(--brass-t); border-radius: 14px; padding: 16px 18px; margin-top: 14px; }
.rubric li { list-style: none; }
.summary-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.summary-list li { display: flex; gap: 10px; }
.summary-list li svg { width: 20px; height: 20px; color: var(--teal); flex: none; margin-top: 3px; }
.term { padding: 12px 14px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--rule); }
.term b { color: var(--ink); }
.done-hero { text-align: center; padding: 30px 18px; }
.done-hero .medal { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, #E9D3AE, #A77F4B); color: #fff; box-shadow: 0 10px 30px rgba(167,127,75,.4); animation: pop .5s cubic-bezier(.2,1.4,.4,1) both; }
.done-hero .medal svg { width: 40px; height: 40px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.req-list { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 6px; }
.req-list li { display: flex; gap: 8px; align-items: center; font-size: .92rem; }
.req-list li svg { width: 18px; height: 18px; }
.req-list li.ok svg { color: var(--ok); }
.req-list li.no svg { color: var(--muted-2); }

/* ---------- test ---------- */
.tq-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 16px; }
.tq-nav button { width: 34px; height: 34px; border-radius: 9px; border: 1.5px solid var(--rule-2); background: var(--card); font: 700 .8rem var(--sans); cursor: pointer; color: var(--muted); }
.tq-nav button.ans { background: var(--teal-t); border-color: var(--teal-t); color: var(--teal); }
.tq-nav button.on { border-color: var(--teal); color: var(--ink); }
.score-big { font: 600 3.2rem/1 var(--head); color: var(--ink); }
.comp-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.comp-row .bar { grid-column: 1 / -1; }
.wrong-item { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.wrong-item:last-child { border-bottom: 0; }

/* ---------- konsultacje ---------- */
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.day-btn { flex: none; min-width: 74px; padding: 10px 8px; border-radius: 12px; border: 1.5px solid var(--rule-2); background: var(--card); cursor: pointer; text-align: center; }
.day-btn b { display: block; font: 600 1.15rem/1.1 var(--head); color: var(--ink); }
.day-btn small { color: var(--muted); font-size: .72rem; text-transform: uppercase; font-weight: 700; }
.day-btn.on { border-color: var(--teal); background: var(--teal-tt); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 12px; }
.slot-btn { padding: 11px 8px; border-radius: 10px; border: 1.5px solid var(--rule-2); background: var(--card); font: 700 .95rem var(--sans); cursor: pointer; color: var(--ink); }
.slot-btn.on { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ---------- strona publiczna ---------- */
.land { max-width: 1120px; margin: 0 auto; padding: 0 18px 40px; }
.land-top { display: flex; align-items: center; gap: 12px; padding: 18px 0; }
.land-hero { display: grid; gap: 28px; align-items: center; padding: 28px 0 40px; }
@media (min-width: 900px) { .land-hero { grid-template-columns: 1.15fr .85fr; padding: 50px 0 70px; } }
.land-hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.08; font-weight: 600; letter-spacing: -.02em; }
.land-hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.emblem-wrap { display: grid; place-items: center; }
.land-sec { padding: 34px 0; }
.land-sec h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.move-card { padding: 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--rule); }
.move-card .n { font: 600 1.6rem/1 var(--head); color: var(--brass); }
.foot { padding: 28px 0 10px; border-top: 1px solid var(--rule); color: var(--muted); font-size: .84rem; margin-top: 30px; }
.foot a { color: var(--muted); }

/* godło */
.emblem { display: block; }
.emblem .orbit { transform-origin: 50% 50%; animation: spin 26s linear infinite; }
.emblem .orbit2 { transform-origin: 50% 50%; animation: spin 40s linear infinite reverse; }
.emblem .pulse { transform-origin: 50% 50%; animation: breathe 5s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.06); opacity: 1; } }

/* drukowanie (certyfikat, raporty, eksport) */
.print-only { display: none; }
@media print {
  body { background: #fff; color: #000; }
  .nav, .side, .topbar, .lp-foot, .no-print, .toast, .btns { display: none !important; }
  .main { padding: 0; max-width: none; }
  .card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  .print-only { display: block; }
}
.cert { position: relative; aspect-ratio: 1.414 / 1; max-width: 900px; margin: 0 auto; padding: 6% 7%; background: #FBF8F2; color: #162C33; border: 1px solid #D6C7AA; border-radius: 6px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; justify-content: center; text-align: center; }
.cert::before { content: ''; position: absolute; inset: 14px; border: 2px solid #A77F4B; border-radius: 4px; pointer-events: none; }
.cert h1 { color: #162C33; font-size: clamp(1.1rem, 3vw, 2rem); }
.cert .holder { font: 600 clamp(1.4rem, 4vw, 2.6rem)/1.2 var(--head); color: #17605C; margin: .3em 0; }
.cert small { color: #5B6D72; }

/* ruch ograniczony */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
:root[data-motion="reduce"] *, :root[data-motion="reduce"] *::before, :root[data-motion="reduce"] *::after { animation: none !important; transition: none !important; }
