/* Kuźnia Księgowych – design system (wyglad.md §1, §5, §6, §9)
   Styl wizualny wzorowany na szablonie Mocco: kremowe tło, Fustat, odręczne nadtytuły,
   pigułkowe przyciski, pastelowe bloki i „poszarpane" pasy sekcji. */
:root {
  /* paleta bazowa */
  --ink: #1E1E1E;
  --ink-70: #1E1E1EB3;
  --ink-40: #1E1E1E66;
  --cream: #F8F6F1;
  --cream-deep: #EFEADF;
  --orange: #FF662A;           /* dekoracje, kształty, akcenty */
  --orange-cta: #F2561D;       /* tło przycisków z białym tekstem 19px+ pogrubionym (3.4:1) */
  --orange-cta-hover: #DE4A12;
  --orange-text: #C2410C;      /* odręczne nadtytuły i drobny tekst na kremowym tle */
  --orange-light: #FF8555;
  --yellow: #FFDE7B;
  --yellow-light: #FFE494;
  --green-pale: #E1F3AB;
  --lime: #AEFF00;
  --green: #2EBB5E;
  --blue: #58A5EF;
  --pink: #F25471;

  /* zachowane nazwy zmiennych używane w całym szablonie */
  --navy: #1E1E1E;
  --emerald: #FF662A;
  --emerald-deep: #F2561D;
  --emerald-deep-hover: #DE4A12;
  --bg-primary: #F8F6F1;
  --card-bg: #FFFFFF;
  --text-primary: #1E1E1E;
  --text-muted: #5B5955;
  --border-color: #E7E1D6;
  --wn: #1D4ED8;
  --wn-bg: #EAF3FD;
  --ma: #C2410C;
  --ma-bg: #FFF1E8;
  --success: #059669;
  --success-text: #047857;
  --success-bg: #EEF8D2;
  --error: #DC2626;
  --error-bg: #FEF2F2;
  --warning: #D97706;
  --warning-bg: #FFF4CC;
  --lock-bg: #F0ECE4;
  --lock-text: #5B5955;
  --header-bg: #F8F6F1;
  --header-text: #1E1E1E;
  --pill-bg: #FFFFFF;
  --band-bg: #EFEADF;
  --star-off: #D9D2C4;
  --shadow: 0 1px 2px rgba(30, 30, 30, 0.04);
  --shadow-lift: 0 18px 40px -18px rgba(30, 30, 30, 0.25);
  --font-heading: 'Fustat', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: 'Fustat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-hand: 'Just Me Again Down Here', 'Segoe Print', cursive;
  --font-num: 'Fustat', "JetBrains Mono", Consolas, monospace;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-btn: 80px;
  /* poszarpana krawędź – kształt jak wydarty kawałek papieru */
  --torn: polygon(0 26px, 9% 6px, 21% 22px, 34% 0, 47% 18px, 61% 4px, 74% 24px, 88% 2px, 100% 16px,
                  100% calc(100% - 20px), 91% 100%, 78% calc(100% - 26px), 63% calc(100% - 4px), 49% calc(100% - 22px),
                  35% 100%, 22% calc(100% - 18px), 10% calc(100% - 2px), 0 calc(100% - 24px));
  --torn-top: polygon(0 22px, 12% 4px, 26% 20px, 41% 0, 57% 18px, 72% 2px, 86% 20px, 100% 6px, 100% 100%, 0 100%);
}

/* Tryb ciemny tylko z wyboru w ustawieniach konta (Ciemny albo Automatyczny – wtedy skrypt w <head> ustawia data-theme
   według systemu); domyślnie jasny. */
:root[data-theme="dark"] {
  --bg-primary: #171614;
  --card-bg: #24221F;
  --text-primary: #F8F6F1;
  --text-muted: #CFC9BE;
  --border-color: #3A3732;
  --wn: #93C5FD;
  --wn-bg: #172554;
  --ma: #FDBA74;
  --ma-bg: #431407;
  --success-text: #BEF264;
  --success-bg: #26310F;
  --error-bg: #450A0A;
  --warning-bg: #3B2A06;
  --lock-bg: #33302B;
  --lock-text: #CFC9BE;
  --header-bg: #171614;
  --header-text: #F8F6F1;
  --pill-bg: #24221F;
  --band-bg: #211F1C;
  --star-off: #4A463F;
  --orange-text: #FF8555;
  --navy: #F8F6F1;
  --ink-70: #F8F6F1B3;
}

* { box-sizing: border-box; }
[id] { scroll-margin-top: 96px; }
svg { max-width: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  letter-spacing: -0.02rem;
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}
@media (min-width: 960px) { body { padding-bottom: 0; } }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; margin: 1.4em 0 0.5em; }
h1 { font-size: 34px; line-height: 1.04; letter-spacing: -0.07rem; margin-top: 0.4em; }
h2 { font-size: 26px; line-height: 1.09; letter-spacing: -0.05rem; }
h3 { font-size: 20px; line-height: 1.15; letter-spacing: -0.03rem; }
h4 { font-size: 17px; line-height: 1.2; }
@media (min-width: 900px) {
  h1 { font-size: 48px; letter-spacing: -0.12rem; }
  h2 { font-size: 34px; letter-spacing: -0.08rem; }
  h3 { font-size: 24px; letter-spacing: -0.05rem; }
}
p { margin: 0 0 1em; }
a { color: var(--wn); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--orange); outline-offset: 2px;
}
code { font-family: var(--font-num); font-size: 0.9em; background: var(--lock-bg); padding: 0 5px; border-radius: 6px; }
.num, td.num, .kwota { font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.muted { color: var(--text-muted); }
.small { font-size: 0.875rem; line-height: 1.4; }
/* env(safe-area-inset-*) – na pełnym ekranie aplikacji treść omija wycięcie aparatu (w przeglądarce = 0) */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
@media (min-width: 700px) { .wrap { padding: 0 max(24px, env(safe-area-inset-right, 0px)) 0 max(24px, env(safe-area-inset-left, 0px)); } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Odręczny nadtytuł (jak „tag" w Mocco) */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-hand); font-size: 28px; line-height: 1.1; letter-spacing: -0.04rem;
  color: var(--orange-text); margin: 0 0 10px;
}
.tag svg { width: 22px; height: 22px; flex: none; color: var(--orange); }
@media (min-width: 900px) { .tag { font-size: 32px; } }
.tag-dark { color: var(--ink); }
.tag-dark svg { color: var(--ink); }

/* Logo – „Kuźnia” + kropka Anny, pod spodem rozstrzelone „KSIĘGOWYCH”.
   Proporcje (em napisu „Kuźnia”) jak w plikach z narzedzia/buduj_logo.py: kropka 0,549, „KSIĘGOWYCH” 0,34
   z odstępem liter 0,418 em – kończy się równo z kropką. Wielkość całego znaku ustawia font-size na .brand. */
.brand { white-space: nowrap; display: inline-flex; flex-direction: column; align-items: flex-start; font-size: 30px; line-height: 1; color: var(--header-text); text-decoration: none; }
.brand-word { font-family: var(--font-heading); font-weight: 800; letter-spacing: -0.035em; }
.brand-word .kropka { width: 0.549em; height: 0.549em; margin-left: 0.07em; vertical-align: baseline; fill: var(--orange); }
.brand-sub { font-family: var(--font-sans); font-weight: 600; font-size: 0.34em; letter-spacing: 0.418em; margin: 0.32em -0.418em 0 0.05em; text-transform: uppercase; }

/* Nagłówek i nawigacja */
.site-header { background: color-mix(in srgb, var(--header-bg) 88%, transparent); color: var(--header-text); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 76px; }
/* gość / zalogowany: klasa kk-zalogowany na <html> (skrypt w <head> i app.js) */
.kk-zalogowany [data-tylko-gosc], html:not(.kk-zalogowany) [data-tylko-user] { display: none !important; }
.top-nav { display: none; margin: 0 0 0 28px; gap: 4px; align-items: center; }
.top-nav > a, .nav-wiecej {
  white-space: nowrap; color: var(--ink-70); text-decoration: none; padding: 8px 14px; border-radius: var(--radius-btn);
  font: inherit; font-size: 1.05rem; font-weight: 500; background: none; border: none; cursor: pointer;
}
.top-nav > a:hover, .nav-wiecej:hover { color: var(--text-primary); background: var(--pill-bg); }
.top-nav > a[aria-current="page"] { background: var(--pill-bg); color: var(--text-primary); font-weight: 600; }
.nav-wiecej::after { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 0 3px 8px; border: solid currentColor;
  border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (min-width: 960px) { .top-nav { display: flex; } }
/* konto w nagłówku (hk): gość – „Zaloguj” + ikona, zalogowany – nazwa + ikona z menu */
.hk { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hk .auth-link { white-space: nowrap; }
.hk-ikona, .hk-btn { display: inline-flex; align-items: center; gap: 8px; color: var(--header-text); text-decoration: none; }
.hk-ikona { width: 44px; height: 44px; justify-content: center; border-radius: 50%; }
.hk-ikona:hover { background: var(--pill-bg); }
.hk-ikona svg, .hk-btn svg { width: 28px; height: 28px; flex: none; }
.hk-btn { min-height: 44px; padding: 4px 6px 4px 14px; border: none; border-radius: var(--radius-btn); background: none; font: inherit;
  font-size: 1.05rem; font-weight: 500; cursor: pointer; }
.hk-btn:hover { background: var(--pill-bg); }
.hk-nazwa { max-width: 16em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hk .nav-drop-list { left: auto; right: 0; min-width: 220px; }
@media (max-width: 599px) { .hk-nazwa { max-width: 9em; } .hk-btn { font-size: 0.95rem; padding-left: 10px; } }

.bottom-nav {
  position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 60;
  display: flex; justify-content: space-around;
  background: var(--card-bg); border-radius: 24px;
  box-shadow: 0 10px 30px -8px rgba(30, 30, 30, 0.3);
}
.bottom-nav a, .bottom-nav button {
  flex: 1; min-height: 58px; min-width: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-decoration: none; color: var(--text-muted); font: inherit; font-size: 0.72rem; line-height: 1.15; gap: 2px; font-weight: 500;
  background: none; border: none; cursor: pointer; text-align: center; padding: 4px 2px;
}
.bottom-nav a[aria-current="page"], .bottom-nav button[aria-expanded="true"] { color: var(--orange-text); font-weight: 700; }
.bottom-nav svg { width: 22px; height: 22px; flex: none; }
@media (min-width: 960px) { .bottom-nav, .wiecej-arkusz { display: none !important; } }
/* „Więcej” na telefonie: arkusz nad dolnym menu */
.wiecej-arkusz {
  position: fixed; left: 8px; right: 8px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 61;
  display: grid; padding: 8px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 20px;
  box-shadow: var(--shadow-lift);
}
.wiecej-arkusz[hidden] { display: none; }
.wiecej-arkusz a { padding: 13px 14px; border-radius: 12px; color: var(--text-primary); text-decoration: none; font-weight: 500; }
.wiecej-arkusz a:hover { background: var(--bg-primary); }

/* Aplikacja na pełnym ekranie (viewport-fit=cover): nagłówek i menu omijają wycięcie aparatu i pasek gestów */
.site-header { padding-top: env(safe-area-inset-top, 0px); }
.bottom-nav { bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }

/* Zachęty do instalacji aplikacji – niewidoczne w samej aplikacji */
@media (display-mode: fullscreen), (display-mode: standalone) { .app-tylko-www { display: none !important; } }
.kk-w-aplikacji .app-tylko-www, .kk-app-jest [data-app-promo] { display: none !important; }
.app-przyciski { display: flex; flex-wrap: wrap; gap: 8px; }
.app-przyciski .btn { gap: 8px; }
.app-przyciski svg { width: 20px; height: 20px; flex: none; }
.app-przyciski .btn-small { padding: 8px 18px 7px; font-size: 0.95rem; min-height: 42px; }
.app-promo { display: grid; gap: 20px 32px; align-items: center; padding: 32px; }
.app-promo h2 { margin: 6px 0 10px; }
.app-promo .list-check { margin: 14px 0 20px; }
.app-promo-ikona { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow); }
@media (min-width: 760px) { .app-promo { grid-template-columns: auto 1fr; padding: 40px 48px; } .app-promo-ikona { width: 132px; height: 132px; border-radius: 30px; } }
.app-baner { position: relative; display: flex; gap: 16px; align-items: flex-start; margin: 0 0 20px; padding: 20px 48px 20px 20px; }
.app-baner[hidden] { display: none; }
.app-baner img { flex: none; border-radius: 14px; }
.app-baner h2 { margin: 0 0 4px; font-size: 1.15rem; }
.app-baner p { margin: 0 0 12px; }
.app-baner-x { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: none; background: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; border-radius: 50%; }
.app-baner-x:hover { background: var(--pill-bg); }

/* Okno instalacji aplikacji */
.app-okno { width: min(440px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border: none; border-radius: var(--radius); padding: 28px 24px 24px;
  background: var(--card-bg); color: var(--text-primary); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5); text-align: center; }
.app-okno::backdrop { background: rgba(20, 20, 20, 0.55); backdrop-filter: blur(3px); }
.app-okno h2 { margin: 12px 0 6px; font-size: 1.35rem; }
.app-okno > p { margin: 0 0 18px; }
.app-okno .app-okno-ikona { width: 72px; height: 72px; border-radius: 18px; }
.app-okno .app-zamknij { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: none; background: none; color: var(--text-muted); font-size: 1.6rem; cursor: pointer; border-radius: 50%; }
.app-okno .app-zamknij:hover { background: var(--pill-bg); }
.app-okno [data-app-instaluj] { width: 100%; margin-bottom: 8px; }
.app-zakladki { display: flex; gap: 4px; padding: 4px; margin: 4px 0 16px; background: var(--pill-bg); border-radius: var(--radius-btn); }
.app-zakladki button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border: none; border-radius: var(--radius-btn);
  background: none; color: var(--ink-70); font: inherit; font-weight: 600; cursor: pointer; }
.app-zakladki button[aria-selected="true"] { background: var(--card-bg); color: var(--text-primary); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
.app-zakladki svg { width: 18px; height: 18px; }
.app-kroki { list-style: none; counter-reset: krok; margin: 0; padding: 0; text-align: left; display: grid; gap: 12px; }
.app-kroki li { counter-increment: krok; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.app-kroki li::before { content: counter(krok); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--orange-cta); color: #FFFFFF; font-weight: 700; }
.app-kroki svg { width: 20px; height: 20px; vertical-align: -4px; color: var(--orange-text); }
.app-kroki .kbd { display: inline-block; min-width: 1.6em; padding: 0 4px; border-radius: 6px; background: var(--pill-bg); font-weight: 700; text-align: center; }
.app-qr { display: grid; justify-items: center; gap: 8px; margin: 0 0 18px; }
.app-qr svg { width: 168px; height: 168px; background: #FFFFFF; border-radius: 12px; padding: 6px; }
.app-uwaga { margin: 14px 0 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--pill-bg); text-align: left; }
.app-gotowe { margin: 10px 0 0; font-weight: 600; color: var(--orange-text); }
.app-kroki[hidden], .app-qr[hidden] { display: none; }

/* Przyciski – pigułki */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 14px 30px 13px; border-radius: var(--radius-btn);
  font-family: var(--font-sans); font-weight: 700; font-size: 1.2rem; line-height: 1.05; letter-spacing: -0.02rem;
  text-decoration: none; cursor: pointer; text-align: center;
  border: 2px solid transparent; transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary, .btn-accent { background: var(--orange-cta); color: #FFFFFF; }
.btn-primary:hover, .btn-accent:hover { background: var(--orange-cta-hover); }
.btn-secondary { background: var(--ink); color: #FFFFFF; }
.btn-secondary:hover { background: #000000; }
:root[data-theme="dark"] .btn-secondary { background: #F8F6F1; color: #1E1E1E; }
.btn-ghost { background: transparent; color: var(--text-primary); border-color: var(--text-primary); }
.btn-ghost:hover { background: var(--text-primary); color: var(--bg-primary); }
.btn-small { min-height: 44px; padding: 10px 20px 9px; font-size: 1rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* Karty i pigułki */
.card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.card + .card { margin-top: 16px; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8rem; font-weight: 600; padding: 3px 11px; border-radius: 999px; white-space: nowrap; }
.pill svg { width: 14px; height: 14px; }
.pill-free { background: var(--green-pale); color: #2F4A04; }
.pill-lock { background: var(--lock-bg); color: var(--lock-text); }
.pill-done { background: var(--wn-bg); color: var(--wn); }
:root[data-theme="dark"] .pill-free { background: var(--success-bg); color: var(--success-text); }
/* z abonamentem na kurs wszystko jest dostępne – oznaczenia dostępu tylko dla pozostałych (app.js) */
.kk-pelny-dostep .pill-free, .kk-pelny-dostep .pill-lock { display: none; }
.grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Strona główna – hero */
.hero { padding: 40px 0 56px; position: relative; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } .hero { padding: 64px 0 88px; } }
.hero h1 { font-size: 42px; margin: 0.1em 0 0.35em; }
@media (min-width: 600px) { .hero h1 { font-size: 52px; } }
@media (min-width: 1100px) { .hero h1 { font-size: 64px; letter-spacing: -0.16rem; } }
.hero .lead { font-size: 1.15rem; color: var(--text-muted); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.eyebrow { font-family: var(--font-hand); font-size: 30px; color: var(--orange-text); }

/* Kolaż w hero – wydarte kolorowe kształty z kartami księgowymi */
.collage { position: relative; min-height: 420px; max-width: 560px; margin: 0 auto; width: 100%; }
.collage .shape { position: absolute; clip-path: var(--torn); }
.collage .s1 { background: var(--orange-light); left: 4%; top: 12%; width: 54%; height: 68%; transform: rotate(-4deg); }
.collage .s2 { background: var(--blue); right: 0; top: 0; width: 46%; height: 38%; transform: rotate(5deg); }
.collage .s3 { background: var(--lime); right: 3%; bottom: 0; width: 44%; height: 46%; transform: rotate(-3deg); }
.mini { position: absolute; background: #FFFFFF; color: #1E1E1E; border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow-lift); font-size: 0.9rem; line-height: 1.35; }
.mini .k { font-size: 0.72rem; color: #5B5955; text-transform: none; letter-spacing: 0; display: block; margin-bottom: 4px; font-weight: 600; }
.mini-t { left: 12%; top: 24%; width: 46%; transform: rotate(-2deg); }
.mini-t .t-head { text-align: center; font-weight: 700; border-bottom: 2px solid #1E1E1E; padding-bottom: 6px; }
.mini-t .t-cols { display: grid; grid-template-columns: 1fr 1fr; font-variant-numeric: tabular-nums; }
.mini-t .t-cols > div { padding: 6px 8px; }
.mini-t .t-cols > div:first-child { border-right: 2px solid #1E1E1E; }
.mini-t .wn { color: #1D4ED8; font-weight: 700; font-size: 0.75rem; display: block; }
.mini-t .ma { color: #C2410C; font-weight: 700; font-size: 0.75rem; text-align: right; display: block; }
.mini-t .amt-r { text-align: right; display: block; }
.mini-d { right: 6%; top: 7%; width: 40%; transform: rotate(4deg); }
.mini-d .row { display: flex; justify-content: space-between; gap: 8px; font-variant-numeric: tabular-nums; }
.mini-q { right: 7%; bottom: 10%; width: 38%; transform: rotate(-3deg); }
.mini-q .opt-ok { display: flex; align-items: center; gap: 6px; background: #E1F3AB; border-radius: 8px; padding: 5px 8px; margin-top: 6px; font-weight: 600; }
.ok-badge { position: absolute; left: 6%; bottom: 6%; background: #1E1E1E; color: #FFFFFF; border-radius: 14px; padding: 12px 16px; font-weight: 700; box-shadow: var(--shadow-lift); }
.ok-badge small { display: block; font-weight: 500; opacity: 0.75; font-size: 0.75rem; }
.collage .doodle { position: absolute; color: #1E1E1E; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.collage .d1 { left: 50%; top: 52%; width: 70px; transform: rotate(10deg); }
.collage .d2 { left: 0; top: 0; width: 56px; color: var(--orange); }
:root[data-theme="dark"] .collage .doodle.d1 { color: #F8F6F1; }
@media (max-width: 599px) {
  .collage { min-height: 360px; }
  .mini { font-size: 0.8rem; padding: 10px 12px; }
  .mini-t { width: 56%; left: 4%; }
  .mini-d { width: 48%; right: 0; }
  .mini-q { width: 50%; right: 0; }
  .collage .d1 { display: none; }
}

/* Pasek faktów – żółta belka jak pasek partnerów */
.facts-band { background: var(--yellow); border-radius: var(--radius); padding: 18px 20px 20px; text-align: center; color: #1E1E1E; }
.facts-band .lbl { font-weight: 600; font-size: 0.95rem; margin-bottom: 12px; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 0; padding: 0; list-style: none; }
.facts li { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.03rem; display: inline-flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1E1E1E; }
@media (min-width: 900px) { .facts { justify-content: space-around; } .facts li { font-size: 1.35rem; } }

/* Sekcje */
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section h2 { margin-top: 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.section-head h2 { font-size: 34px; margin-bottom: 12px; }
@media (min-width: 900px) { .section-head h2 { font-size: 56px; letter-spacing: -0.14rem; } }
.section-head p:not(.tag) { color: var(--text-muted); font-size: 1.1rem; margin: 0; }
.section-alt { background: transparent; }
/* pasy z poszarpaną krawędzią */
.band { position: relative; isolation: isolate; padding: 88px 0; margin: 24px 0; }
.band::before { content: ""; position: absolute; inset: 0; background: var(--band-bg); clip-path: var(--torn); z-index: -1; }
.band-yellow::before { background: var(--yellow); }
.band-yellow { color: #1E1E1E; }
.band-yellow .tag { color: #1E1E1E; }
.band-yellow .tag svg { color: #1E1E1E; }
.band-yellow .muted, .band-yellow .section-head p { color: #3D3B37; }
main { position: relative; z-index: 0; }

/* Kroki „jak to działa" */
.steps { display: grid; gap: 28px; }
.step { display: grid; gap: 24px; align-items: center; background: var(--card-bg); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border-color); }
@media (min-width: 860px) { .step { grid-template-columns: 1fr 1fr; padding: 40px; gap: 48px; } .step:nth-child(even) .step-art { order: -1; } }
.step-no { font-family: var(--font-hand); font-size: 28px; color: var(--orange-text); }
.step h3 { font-size: 26px; margin: 4px 0 12px; }
@media (min-width: 900px) { .step h3 { font-size: 36px; letter-spacing: -0.09rem; } }
.step p { color: var(--text-muted); margin: 0; font-size: 1.05rem; }
.step-art { position: relative; min-height: 220px; display: flex; align-items: center; justify-content: center; padding: 28px; }
.step-art::before { content: ""; position: absolute; inset: 0; clip-path: var(--torn); background: var(--orange-light); }
.step:nth-child(2) .step-art::before { background: var(--blue); }
.step:nth-child(3) .step-art::before { background: var(--green-pale); }
.step-art > * { position: relative; }
.art-card { background: #FFFFFF; color: #1E1E1E; border-radius: 16px; padding: 16px; width: 100%; max-width: 320px; box-shadow: var(--shadow-lift); }
.art-video { background: #1E1E1E; color: #FFFFFF; aspect-ratio: 16 / 9; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; }
.art-video .play { width: 52px; height: 52px; border-radius: 50%; background: var(--orange); display: flex; align-items: center; justify-content: center; }
.art-video .play svg { width: 22px; height: 22px; fill: #FFFFFF; stroke: none; }
.art-video .sub { background: #000000D9; border-radius: 4px; padding: 2px 8px; font-size: 0.8rem; }
.art-lines span { display: block; height: 9px; border-radius: 9px; background: #EFEADF; margin: 9px 0; }
.art-lines span:nth-child(1) { width: 60%; height: 14px; background: #1E1E1E; }
.art-lines span:nth-child(3) { width: 85%; }
.art-lines span:nth-child(5) { width: 70%; }
.art-lines .hl { background: #FFDE7B; width: 92%; }
.art-quiz .o { border: 1px solid #E7E1D6; border-radius: 10px; padding: 8px 10px; margin-top: 8px; font-size: 0.9rem; }
.art-quiz .o.ok { background: #E1F3AB; border-color: #B7D96A; font-weight: 600; }

/* Karty efektów (pastelowe nagłówki) */
.feature-card { position: relative; overflow: hidden; }
.feature-card .ico { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; background: var(--yellow); color: #1E1E1E; }
.feature-card .ico svg { width: 26px; height: 26px; }
.grid > .feature-card:nth-child(6n+2) .ico { background: var(--green-pale); }
.grid > .feature-card:nth-child(6n+3) .ico { background: #CFE5FB; }
.grid > .feature-card:nth-child(6n+4) .ico { background: #FFD3C2; }
.grid > .feature-card:nth-child(6n+5) .ico { background: #FBD0D9; }
.grid > .feature-card:nth-child(6n+6) .ico { background: var(--lime); }
.feature-card h3 { margin: 0 0 8px; }
.feature-card + .feature-card { margin-top: 0; }

.list-check, .list-x { list-style: none; padding: 0; margin: 0; }
.list-check li, .list-x li { padding-left: 36px; position: relative; margin-bottom: 12px; }
.list-check li::before, .list-x li::before {
  position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem;
}
.list-check li::before { content: "✓"; background: var(--green-pale); color: #2F4A04; }
.list-x li::before { content: "✕"; background: #FFD3C2; color: #9A3412; }
.who-card { border-radius: var(--radius); padding: 28px; }
.who-yes { background: var(--green-pale); color: #1E1E1E; }
.who-no { background: #FFE7DC; color: #1E1E1E; }
.who-card h3 { margin-top: 0; }
.who-card .list-check li::before { background: #FFFFFF; }
.who-card .list-x li::before { background: #FFFFFF; }

.forms3 { display: grid; gap: 16px; }
@media (min-width: 700px) { .forms3 { grid-template-columns: repeat(3, 1fr); } }
.icon-badge { width: 48px; height: 48px; border-radius: 14px; background: var(--yellow); color: #1E1E1E; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.icon-badge svg { width: 24px; height: 24px; }

/* Program – rozdziały */
details.chapter { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 16px; margin-bottom: 10px; }
details.chapter summary { cursor: pointer; padding: 16px 20px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; list-style: none; min-height: 56px; }
details.chapter summary::-webkit-details-marker { display: none; }
details.chapter summary::after { content: "+"; margin-left: auto; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-primary); display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
details.chapter[open] summary::after { content: "–"; background: var(--orange); color: #FFFFFF; }
details.chapter summary .ch-title { flex: 1 1 260px; font-weight: 700; font-size: 1.05rem; }
details.chapter ol { margin: 0; padding: 0 20px 18px 44px; }
details.chapter li { margin: 5px 0; }
details.chapter li a { color: var(--text-primary); }

/* Oferta */
.offer { border: 2px solid var(--ink); position: relative; }
:root[data-theme="dark"] .offer { border-color: var(--orange); }
.price { font-family: var(--font-heading); font-weight: 700; font-size: 60px; letter-spacing: -0.15rem; line-height: 1; margin: 10px 0; font-variant-numeric: tabular-nums; }
.offer-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .offer-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.offer-grid .offer { transform: rotate(-1.5deg); box-shadow: var(--shadow-lift); }
.offer-side .card { background: #FFFFFFE6; color: #1E1E1E; border-color: transparent; }
.offer-side .card .small, .offer-side .card p { color: #1E1E1E; }

/* Porównanie */
.compare table { font-size: 1rem; }
.compare th { background: var(--card-bg); color: var(--text-primary); font-size: 1.05rem; padding: 18px 16px; border-bottom: 2px solid var(--text-primary); }
.compare td { padding: 14px 16px; }
.compare tbody tr:nth-child(even) td { background: transparent; }
.compare th:nth-child(2), .compare td:nth-child(2) { background: var(--green-pale) !important; color: #1E1E1E; }
.compare thead th:nth-child(2) { border-radius: 16px 16px 0 0; }
.compare .table-wrap { border: none; background: var(--card-bg); }

/* Zaufanie */
.trust-card { border-radius: var(--radius); padding: 24px; background: var(--card-bg); border: 1px solid var(--border-color); position: relative; }
.trust-card::before { content: "“"; font-family: var(--font-heading); font-weight: 700; font-size: 64px; line-height: 0.6; display: block; color: var(--orange); height: 28px; }
.trust-card p { margin: 0; }

/* FAQ */
.faq-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: 56px; } .faq-grid .section-head { text-align: left; margin: 0; position: sticky; top: 110px; align-self: start; } }
.faq details { background: var(--card-bg); border-radius: 16px; padding: 2px 20px; margin-bottom: 10px; border: 1px solid var(--border-color); }
.faq details[open] { background: var(--green-pale); border-color: transparent; color: #1E1E1E; }
.faq details[open] a { color: #1D4ED8; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 36px 16px 0; min-height: 56px; list-style: none; position: relative; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.4rem; font-weight: 500; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; }

/* Wezwanie końcowe */
.final-cta { text-align: center; }
.final-cta h2 { font-size: 36px; max-width: 820px; margin: 0 auto 14px; }
@media (min-width: 900px) { .final-cta h2 { font-size: 60px; letter-spacing: -0.15rem; } }
.final-cta .hero-ctas { justify-content: center; }

.marker {
  display: inline-block; background: var(--warning-bg); color: var(--text-primary);
  border: 1px dashed var(--warning); border-radius: 6px; padding: 0 6px; font-size: 0.85em;
}

/* Tabele */
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--border-color); border-radius: 16px; background: var(--card-bg); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { padding: 10px 14px; border-bottom: 1px solid var(--border-color); text-align: left; vertical-align: top; }
th { background: #1E1E1E; color: #FFFFFF; font-weight: 600; }
tbody tr:nth-child(even) td { background: var(--bg-primary); }
tbody tr:last-child td { border-bottom: none; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; }
td.c, th.c { text-align: center; }
table.dekret th.wn { background: var(--wn); }
table.dekret th.ma { background: var(--ma); }
:root[data-theme="dark"] table.dekret th.wn, :root[data-theme="dark"] table.dekret th.ma { color: #1E1E1E; }
table.dekret td.wn { background: var(--wn-bg) !important; color: var(--text-primary); }
table.dekret td.ma { background: var(--ma-bg) !important; color: var(--text-primary); }

/* Lekcja */
.lesson-head { padding-top: 28px; padding-bottom: 8px; }   /* boczne marginesy – z .wrap-narrow */
.crumbs { font-size: 0.9rem; color: var(--text-muted); }
.crumbs a { color: var(--text-muted); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; color: var(--text-muted); font-size: 0.9rem; margin: 8px 0 0; }
.goal { font-size: 1.1rem; margin: 12px 0 0; color: var(--text-muted); }
.tabs { display: inline-flex; gap: 4px; margin: 20px 0 16px; flex-wrap: wrap; background: var(--card-bg); padding: 4px; border-radius: var(--radius-btn); border: 1px solid var(--border-color); }
.tabs button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: none; background: transparent; color: var(--text-muted); font: inherit; font-weight: 600; cursor: pointer; }
.tabs svg { width: 18px; height: 18px; flex: none; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #FFFFFF; }
:root[data-theme="dark"] .tabs button[aria-selected="true"] { background: #F8F6F1; color: #1E1E1E; }
.box { border-radius: var(--radius); padding: 20px 24px; margin: 18px 0; border: 1px solid var(--border-color); background: var(--card-bg); }
.box h2 { margin-top: 0; font-size: 22px; }
.box-summary { border-left: 6px solid var(--orange); }
.box-remember { background: var(--success-bg); border-color: transparent; }
.box-mistakes { background: var(--warning-bg); border-color: transparent; border-left: 6px solid var(--warning); }
.box-law { background: var(--wn-bg); border-color: transparent; border-left: 6px solid var(--wn); }
/* szablon v2 */
.box-why { border-left: 6px solid var(--orange); font-size: 17px; }
.box-simple { background: var(--success-bg); border-color: transparent; }
.box-practice { border-left: 6px solid var(--wn); }
.box-practice p > strong:first-child { display: block; margin-top: 8px; }
.box-check { border: 2px dashed var(--orange); }
.box-glossary dl, .box-glossary ul { margin: 0; }
details.answer { margin-top: 12px; }
details.answer > summary, details.box-law > summary { cursor: pointer; font-weight: 700; color: var(--orange-text); }
details.box-law > summary { font-size: 18px; color: inherit; }
details.box-law[open] > summary { margin-bottom: 8px; }
.lesson-body .content-section > h2 { border-bottom: 2px solid var(--text-primary); padding-bottom: 8px; }
.lesson-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 36px 0; }
.lock-box { text-align: center; padding: 36px 24px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius); margin: 24px 0; }
.lock-box svg { width: 44px; height: 44px; color: var(--orange); }

/* Odtwarzacz slajdów (wyglad.md §8) */
.player { background: #1E1E1E; border-radius: var(--radius); overflow: hidden; color: #F1F5F9; box-shadow: var(--shadow-lift); }
.stage { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(ellipse at top, #34302B 0%, #1E1E1E 60%, #141414 100%); overflow: hidden; }
.stage-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: 0.8rem; color: #D6D0C5; z-index: 3; }
.stage-top .mini-brand { display: flex; align-items: center; gap: 6px; font-family: var(--font-heading); font-weight: 700; color: #FFFFFF; }
.stage-top .mini-brand svg { width: 18px; height: 18px; }
.stage-top .mini-brand .txt { display: none; }
@media (min-width: 600px) { .stage-top .mini-brand .txt { display: inline; } }
.scene { position: absolute; inset: 40px 14px 64px; display: flex; align-items: center; justify-content: center; }
.scene-inner { width: 100%; max-width: 860px; animation: fadeUp 0.5s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.screen-card { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px; padding: 14px 18px; font-size: clamp(0.8rem, 2.1vw, 1.15rem); line-height: 1.45; }
.screen-card .label { display: block; font-family: var(--font-hand); font-size: 1.35em; color: var(--orange-light); letter-spacing: 0; margin-bottom: 2px; }
.intro { text-align: center; }
.intro svg { width: clamp(56px, 12vw, 96px); height: auto; animation: pop 0.8s ease; }
.intro .t1 { font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.04em; font-size: clamp(1.2rem, 4vw, 2.2rem); margin-top: 8px; }
.intro .t2 { color: #D6D0C5; font-size: clamp(0.8rem, 2vw, 1.05rem); }
@keyframes pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
.anim { display: grid; gap: 10px; }
.anim.has-dekret { gap: 6px; }
.anim.has-dekret .screen-card { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding: 6px 12px; font-size: clamp(0.7rem, 1.6vw, 0.95rem); }
.anim.has-dekret .screen-card .label { display: none; }
.anim-dekret { width: 100%; border-collapse: collapse; font-size: clamp(0.7rem, 1.9vw, 1rem); background: transparent; }
.anim-dekret th { background: transparent; color: #D6D0C5; font-weight: 500; font-size: 0.8em; padding: 2px 6px; border-bottom: 1px solid rgba(255,255,255,0.2); }
.anim-dekret td { padding: 4px 6px; border: none; background: transparent !important; opacity: 0; animation: fadeUp 0.4s ease forwards; }
.anim-dekret .wn { color: #93C5FD; font-weight: 600; }
.anim-dekret .ma { color: #FDBA74; font-weight: 600; }
.t-accounts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.t-acc { min-width: 150px; flex: 1 1 150px; max-width: 220px; background: rgba(255,255,255,0.05); border-radius: 10px; overflow: hidden; font-size: clamp(0.65rem, 1.7vw, 0.9rem); }
.t-acc .name { text-align: center; padding: 4px; font-weight: 600; border-bottom: 2px solid #D6D0C5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-acc .sides { display: grid; grid-template-columns: 1fr 1fr; min-height: 44px; }
.t-acc .side { padding: 4px 6px; font-variant-numeric: tabular-nums; }
.t-acc .side.wn { border-right: 2px solid #D6D0C5; }
.t-acc .hdr { font-size: 0.75em; font-weight: 700; }
.t-acc .side.wn .hdr { color: #93C5FD; }
.t-acc .side.ma .hdr { color: #FDBA74; text-align: right; }
.t-acc .side.ma .amt { text-align: right; }
.amt { opacity: 0; animation: flyIn 0.6s ease forwards; }
@keyframes flyIn { from { opacity: 0; transform: translateY(-18px) scale(1.2); } to { opacity: 1; transform: none; } }
.balance-ok { justify-self: center; background: #AEFF00; color: #1E1E1E; border-radius: 999px; padding: 4px 14px; font-weight: 700; font-size: clamp(0.7rem, 1.8vw, 0.95rem); opacity: 0; animation: fadeUp 0.4s ease forwards; font-variant-numeric: tabular-nums; }
.caption {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 12px; z-index: 4;
  max-width: 92%; text-align: center; white-space: pre-line;
  font-family: var(--font-sans); font-weight: 600; font-size: 16px; line-height: 1.35; letter-spacing: 0;
  color: #FFFFFF; background: #000000D9; border-radius: 4px; padding: 4px 10px;
}
@media (min-width: 900px) { .caption { font-size: 19px; } }
.caption:empty, .caption.off { display: none; }
.controls { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #141414; flex-wrap: wrap; }
.controls button { min-width: 44px; min-height: 44px; border-radius: 999px; border: 1px solid #3A3732; background: #24221F; color: #F8F6F1; cursor: pointer; font: inherit; font-size: 0.85rem; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 12px; }
.controls button[aria-pressed="true"] { background: var(--orange-cta); border-color: var(--orange-cta); color: #FFFFFF; }
.controls button[data-act="play"] { background: var(--orange-cta); border-color: var(--orange-cta); }
.controls svg { width: 20px; height: 20px; }
.controls input[type=range] { flex: 1 1 140px; accent-color: var(--orange); min-height: 44px; }
.controls .time { font-variant-numeric: tabular-nums; font-size: 0.85rem; color: #D6D0C5; min-width: 92px; text-align: center; }
.speed-group { display: inline-flex; gap: 4px; }
.player-note { font-size: 0.8rem; color: var(--text-muted); margin: 8px 0 0; }

/* Quiz */
.quiz { display: grid; gap: 16px; }
.q { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 22px; }
.q-head { display: flex; justify-content: space-between; gap: 8px; color: var(--text-muted); font-size: 0.85rem; }
.q-text { font-weight: 700; font-size: 1.05rem; margin: 6px 0 14px; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border-color); border-radius: 14px; margin-bottom: 8px; cursor: pointer; min-height: 48px; background: var(--bg-primary); }
.opt input { margin-top: 3px; width: 20px; height: 20px; accent-color: var(--orange-cta); flex: none; }
.opt:hover { border-color: var(--text-primary); }
.opt.correct { border-color: var(--success); background: var(--success-bg); }
.opt.wrong { border-color: var(--error); background: var(--error-bg); }
.q select, .q input[type=text] { font: inherit; min-height: 48px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--border-color); background: var(--card-bg); color: var(--text-primary); width: 100%; }
.q label.field { display: block; margin-bottom: 10px; }
.q label.field span { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 4px; }
.q label.field.wn span { color: var(--wn); }
.q label.field.ma span { color: var(--ma); }
.q .match-row { display: grid; gap: 6px; margin-bottom: 10px; }
@media (min-width: 600px) { .q .match-row { grid-template-columns: 1.3fr 1fr; align-items: center; } }
.q-actions { margin-top: 10px; }
.feedback { margin-top: 12px; border-radius: 14px; padding: 12px 16px; }
.feedback.ok { background: var(--success-bg); }
.feedback.bad { background: var(--error-bg); }
.feedback .verdict { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.feedback.ok .verdict { color: var(--success-text); }
.feedback.bad .verdict { color: var(--error); }
:root[data-theme="dark"] .feedback.bad .verdict { color: #FCA5A5; }
.feedback .verdict svg { width: 20px; height: 20px; }
.feedback .law { font-size: 0.875rem; color: var(--text-muted); margin: 6px 0 0; }
.quiz-summary { text-align: center; font-weight: 700; }

/* Postęp */
.progress { height: 12px; background: var(--lock-bg); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--orange); width: 0; transition: width 0.4s; border-radius: 999px; }
.lesson-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border-color); flex-wrap: wrap; }
.lesson-row:last-child { border-bottom: none; }
.lesson-row a { flex: 1 1 240px; text-decoration: none; color: var(--text-primary); font-weight: 600; }
.lesson-row a:hover { color: var(--orange-text); text-decoration: underline; }
.lesson-row .lid { color: var(--text-muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; min-width: 64px; }
.chapter-card h2 { margin-top: 0; font-size: 22px; }
/* Postęp: film i mini-quiz przy lekcji, wynik testu przy rozdziale (app.js) */
.lesson-status { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.lesson-status:empty { display: none; }
.ls { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  background: var(--lock-bg); color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ls-ok { background: var(--success-bg); color: var(--success-text); }
.ls-bad { background: var(--warning-bg); color: var(--orange-text); }
.ls-todo { background: none; box-shadow: inset 0 0 0 1px var(--border-color); }
.ls-bar { display: inline-block; width: 40px; height: 4px; border-radius: 999px; background: var(--border-color); overflow: hidden; }
.ls-bar > span { display: block; height: 100%; background: var(--orange); }
.btn [data-test-status]:not(:empty) { margin-left: 8px; }
.chapter-progress { display: flex; align-items: center; gap: 10px; max-width: 360px; margin: -6px 0 8px; }
.chapter-progress .progress { flex: 1; height: 8px; }
.chapter-progress strong { font-size: 0.9rem; color: var(--text-muted); min-width: 3.2em; text-align: right; }
.chapter-card.is-complete .chapter-progress .progress > span { background: var(--success-text); }
.chapter-card.is-complete .chapter-progress strong { color: var(--success-text); }
.chapter-stat { margin: 0 0 4px; }
.chapter-stat:empty { display: none; }
.chapter-stat .ok { color: var(--success-text); font-weight: 600; }
.tylko-do-zrobienia .is-complete { display: none; }
.postep-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.postep-top h2 { margin: 0; font-size: 20px; }
.postep-top strong { font-family: var(--font-heading); font-size: 34px; letter-spacing: -0.05em; line-height: 1; }
.postep-dol { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; margin-top: 16px; }
.postep-liczby { display: flex; gap: 8px 22px; flex-wrap: wrap; color: var(--text-muted); font-size: 0.9rem; }
.postep-liczby strong { color: var(--text-primary); font-size: 1.05rem; margin-right: 2px; }
.postep-akcje { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; }
.postep-akcje label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.player-resume { margin: 10px 0 0; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--orange-text); text-decoration: underline; cursor: pointer; }
.quiz-best { margin: 0 0 12px; font-weight: 600; }
.quiz-best.ok { color: var(--success-text); }
.quiz-best.bad { color: var(--orange-text); }

/* Kasa */
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; }
.auth-card { margin-bottom: 16px; }
.form-msg { border-radius: 12px; padding: 10px 14px; margin: 12px 0 0; }
.form-msg.ok { background: var(--success-bg); color: var(--success-text); }
.form-msg.err { background: var(--error-bg); color: var(--text-primary); border-left: 4px solid var(--error); }
.btn[hidden] { display: none; }
.form-row input[type=text], .form-row input[type=email], .form-row input[type=password] { width: 100%; min-height: 52px; font: inherit; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border-color); background: var(--bg-primary); color: var(--text-primary); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--orange-cta); }
.notice { border-radius: 14px; padding: 12px 16px; background: var(--warning-bg); border-left: 4px solid var(--warning); }

/* Stopka – kremowy pas z poszarpaną górną krawędzią */
.site-footer { position: relative; isolation: isolate; color: var(--text-primary); padding: 72px 0 40px; margin-top: 56px; font-size: 0.95rem; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: var(--band-bg); clip-path: var(--torn-top); z-index: -1; }
.site-footer a { color: var(--text-primary); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer a.btn { text-decoration: none; }
.site-footer a.btn-secondary { color: #FFFFFF; }
:root[data-theme="dark"] .site-footer a.btn-secondary { color: #1E1E1E; }
.site-footer .cols { display: grid; gap: 28px; }
@media (min-width: 700px) { .site-footer .cols { grid-template-columns: 2fr 1fr 1fr; } }
@media (min-width: 1000px) { .site-footer .cols { grid-template-columns: 2fr 1fr 1fr 1.2fr; } }
.site-footer .f-app { margin: 0 0 12px; }
.site-footer .f-head { font-weight: 700; margin-bottom: 8px; }
.site-footer .f-links { display: grid; gap: 6px; }
.site-footer .brand { color: var(--text-primary); margin-bottom: 12px; }
.site-footer .f-bottom { border-top: 1px solid var(--border-color); margin-top: 32px; padding-top: 16px; color: var(--text-muted); }

/* Telefon – nagłówek i kadr odtwarzacza */
@media (max-width: 599px) {
  .site-header .wrap { gap: 6px; min-height: 64px; }
  .brand { font-size: 26px; }
  .site-header .auth-link.btn-small { padding: 8px 16px; font-size: 0.95rem; min-height: 40px; }
  .btn { font-size: 1.1rem; padding: 14px 24px 13px; }
  /* stare slajdy tekstowe potrzebują wysokości; sceny (płótno 16:9) zostają w proporcjach 16:9 */
  .player:not(.ma-sceny):not(.pelny) .stage { aspect-ratio: auto; height: 340px; }
  .scene { inset: 36px 8px 70px; }
  .player.ma-sceny .stage-top { display: none; }
  .caption { font-size: 13px; bottom: 6px; padding: 3px 8px; }
  /* sterowanie w dwóch rzędach: suwak z czasem, pod nim przyciski; prędkość jako jeden przełącznik */
  .controls { display: grid; grid-template-columns: auto auto auto 1fr auto auto auto auto; gap: 8px 4px; padding: 8px; }
  .controls input[type=range] { grid-row: 1; grid-column: 1 / 7; min-width: 0; min-height: 32px; }
  .controls .time { grid-row: 1; grid-column: 7 / 9; min-width: 0; font-size: 0.8rem; }
  .controls .speed-group { grid-column: 5; }
  .controls button { min-width: 40px; min-height: 40px; padding: 0 8px; }
  .band { padding: 64px 0; }
}
/* telefon i pełny ekran: widać tylko bieżącą prędkość (app.js przełącza ją po kliknięciu) */
@media (max-width: 599px) { .speed-group button[aria-pressed="false"] { display: none; } }
.player.pelny .speed-group button[aria-pressed="false"] { display: none; }
.player:fullscreen .speed-group button[aria-pressed="false"] { display: none; }
@media (max-width: 380px) { .controls button { min-width: 36px; min-height: 36px; padding: 0 6px; } }
/* wąski telefon: samo „Kuźnia” + kropka – „KSIĘGOWYCH” byłoby za drobne */
@media (max-width: 420px) {
  .site-header .brand { font-size: 24px; }
  .site-header .brand-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ===== Rozwijane menu („Więcej”, konto), przełącznik kursów, karty kursów ===== */
.nav-drop { position: relative; display: flex; }
.nav-drop-list {
  display: none; position: absolute; top: 100%; left: 0; min-width: 240px; z-index: 70; padding: 8px; margin-top: 6px;
  background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-sm); box-shadow: var(--shadow-lift);
}
.nav-drop::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px; } /* nie gubi najechania */
.nav-drop.otwarte .nav-drop-list { display: grid; }
@media (hover: hover) { .nav-drop:hover .nav-drop-list { display: grid; } }
.nav-drop-list a, .nav-drop-list button {
  display: block; padding: 10px 12px; border-radius: 10px; white-space: nowrap; background: none; border: none; color: var(--text-primary);
  text-decoration: none; font: inherit; font-weight: 500; text-align: left; cursor: pointer;
}
.nav-drop-list a:hover, .nav-drop-list button:hover { background: var(--bg-primary); }

/* przełącznik kursu na liście lekcji, w planie kont i w cenniku (jedno kliknięcie) */
.kurs-przelacznik { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.kurs-przelacznik[hidden] { display: none; }
.kurs-przelacznik a, .kurs-przelacznik button {
  padding: 9px 16px; border-radius: var(--radius-btn); background: var(--pill-bg); border: 1px solid var(--border-color);
  color: var(--text-primary); text-decoration: none; font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer;
}
.kurs-przelacznik [aria-current="page"], .kurs-przelacznik [aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
:root[data-theme="dark"] .kurs-przelacznik [aria-current="page"], :root[data-theme="dark"] .kurs-przelacznik [aria-pressed="true"] { background: #F8F6F1; border-color: #F8F6F1; color: #1E1E1E; }
.kurs-glowa { margin: 0 0 4px; font-size: 0.95rem; font-weight: 600; color: var(--text-muted); }
.kurs-przelacznik:not([hidden]) + .kurs-glowa { display: none; }   /* nazwa kursu jest już na przełączniku */
.kurs-glowa a { color: inherit; }

.pill-st { background: var(--lock-bg); color: var(--lock-text); }
.pill-sprzedaz { background: var(--green-pale); color: #2F4A04; }
.pill-przedsprzedaz { background: var(--warning-bg); color: #7A4A00; }
:root[data-theme="dark"] .pill-sprzedaz { background: var(--success-bg); color: var(--success-text); }
.kurs-card { display: flex; flex-direction: column; gap: 8px; }
.kurs-card + .kurs-card { margin-top: 0; }
.kurs-card h3 { margin: 4px 0 0; font-size: 1.25rem; }
.kurs-card p { margin: 0; }
.kc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kc-no { font-size: 1.6rem; font-weight: 700; color: var(--orange-text); line-height: 1; }
.kc-h1 { font-weight: 600; }
.kc-cta { margin-top: auto; padding-top: 10px; }
.kurs-planowany, .kurs-przedsprzedaz { background: var(--card-bg); }
@media (min-width: 700px) { .kursy-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .kursy-grid { grid-template-columns: repeat(3, 1fr); } }
.kurs-card > .btn { align-self: flex-start; margin-top: auto; }
.kurs-card > .progress { margin-top: 4px; }
/* Moje kursy: postęp, dostęp, „Ostatnia lekcja” i skróty; „Inne kursy” z ceną „Od” */
.kc-dostep strong { font-weight: 700; }
/* minmax(0, 1fr): długi tytuł lekcji w „Ostatniej lekcji” (nowrap) nie rozpycha karty poza ekran telefonu */
.moje-kursy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 900px) { .moje-kursy { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.moj-kurs { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card + .moj-kurs { margin-top: 0; }
.moj-kurs h2 { margin: 0; font-size: 1.35rem; }
.moj-kurs > .pill { align-self: flex-start; }
.moj-kurs p { margin: 0; }
.moj-postep { display: flex; align-items: center; gap: 12px; }
.moj-postep .progress { flex: 1; }
.moj-ostatnia { flex-direction: column; align-items: stretch; gap: 4px; text-align: left; padding: 14px 22px; margin-top: 4px; }
.moj-ostatnia small { font-size: 0.85rem; font-weight: 500; opacity: 0.92; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.moj-skroty { display: flex; flex-wrap: wrap; gap: 8px; }
.moj-skroty .btn-small { min-height: 40px; padding: 8px 16px; font-size: 0.95rem; }
.inne-kursy { margin-top: 40px; }
.inne-kursy[hidden] { display: none; }
.inne-kursy h2 { font-size: 1.4rem; margin: 0 0 12px; }
.inne-lista { display: grid; gap: 12px; }
@media (min-width: 700px) { .inne-lista { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .inne-lista { grid-template-columns: repeat(3, 1fr); } }
.inny-kurs { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 20px; color: var(--text-primary); text-decoration: none; }
.card + .inny-kurs { margin-top: 0; }
.inny-kurs:hover { border-color: var(--text-primary); }
.cena-od { font-size: 0.95rem; color: var(--text-primary); }
.cena-od strong { font-size: 1.1rem; }
.cena-od .cena-omnibus { display: block; font-size: 0.78rem; color: var(--text-muted); }
.cena-od[hidden] { display: none; }

/* Plan kont: wyszukiwarka, zespoły, jedno konto w wierszu (szczegóły po stuknięciu) */
.plan-szukaj { position: relative; margin: 8px 0 10px; }
.plan-szukaj svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--text-muted); }
.plan-szukaj input { width: 100%; min-height: 50px; padding: 12px 16px 12px 46px; border: 1px solid var(--border-color); border-radius: var(--radius-btn);
  background: var(--card-bg); color: var(--text-primary); font: inherit; font-size: 1rem; }
.plan-legenda { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 8px; }
.plan-legenda .leg { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.plan-zespol { margin-top: 26px; }
.plan-zespol[hidden] { display: none; }
.plan-zespol h2 { font-size: 1.15rem; margin: 0 0 8px; display: flex; gap: 10px; align-items: baseline; }
.plan-zespol h2 .num { color: var(--orange-text); }
.plan-zespol > p { margin: 0 0 8px; }
.plan-konta { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-sm); overflow: hidden; }
.konto + .konto { border-top: 1px solid var(--border-color); }
.konto[hidden] { display: none; }
.konto summary { display: flex; align-items: center; gap: 12px; padding: 11px 14px; cursor: pointer; list-style: none; min-height: 48px; }
.konto summary::-webkit-details-marker { display: none; }
.konto summary:hover { background: var(--bg-primary); }
.konto[open] summary { background: var(--bg-primary); }
.konto-nr { flex: none; width: 2.6em; font-weight: 700; font-size: 1.05rem; }
.konto-nazwa { flex: 1; min-width: 0; line-height: 1.3; }
.konto-typ { flex: none; display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 6px; border-radius: 6px;
  font-size: 0.78rem; font-weight: 700; background: var(--lock-bg); color: var(--text-primary); }
.typ-A { background: var(--wn-bg); color: var(--wn); }
.typ-P { background: var(--ma-bg); color: var(--ma); }
.typ-W { background: var(--success-bg); color: var(--success-text); }
.konto-kor { flex: none; font-size: 0.72rem; color: var(--text-muted); margin-left: -6px; }
.konto-nowe { margin-left: 8px; font-size: 0.72rem; font-weight: 700; color: var(--orange-text); text-transform: uppercase; letter-spacing: 0.04em; }
.konto-opis { padding: 2px 14px 12px calc(14px + 2.6em + 12px); font-size: 0.92rem; }
.konto-opis p { margin: 6px 0 0; }
.konto-pierwsze { color: var(--text-muted); }
@media (max-width: 520px) { .konto-opis { padding-left: 14px; } }
/* Egzaminy – po jednej karcie na kurs */
.egzaminy { display: grid; gap: 16px; }
.egzamin-karta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.card + .egzamin-karta { margin-top: 0; }
.egzamin-karta .kc-top { width: 100%; align-items: flex-start; }
.egzamin-karta h2 { margin: 0; font-size: 1.25rem; }
.egzamin-karta p { margin: 0; }

/* Ustawienia konta – wygląd (motyw) */
.motyw-wybor { margin: 16px 0 0; display: grid; gap: 4px; }
.motyw-wybor legend { float: left; width: 100%; padding: 0; margin: 0 0 10px; font-family: var(--font-heading); font-weight: 700; font-size: 20px; }
.motyw-opcja { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.motyw-opcja input { width: 20px; height: 20px; accent-color: var(--orange-cta); }
.plan-dodatek { margin-top: 24px; }
.plan-dodatek summary { cursor: pointer; font-weight: 700; }

/* Egzamin końcowy (assets/egzamin.js) */
.egz-h2 { font-size: 1.15rem; margin: 28px 0 10px; }
.egz-zasady { margin: 14px 0; }
.egz-historia { list-style: none; padding: 0; margin: 0; }
.egz-historia li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border-color); }
.egz-historia li > span:first-child { flex: 1 1 200px; color: var(--text-muted); }
.egz-bledy { margin: 6px 0 10px; padding-left: 20px; }
.egz-pasek { position: sticky; top: 84px; z-index: 20; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 10px 16px; margin: 8px 0 16px; box-shadow: var(--shadow); }
.egz-pasek [data-zegar] { font-size: 1.2rem; }
.egz-pasek.egz-malo [data-zegar] { color: var(--error); }
.egz-pytania { display: grid; gap: 14px; }
.egz-koniec { margin-top: 18px; }
.egz-zdany h2 { margin: 10px 0 6px; }
.egz-imie { margin-top: 14px; max-width: 460px; }
.egz-imie .field { display: grid; gap: 6px; }
.egz-imie input { padding: 10px 12px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); font: inherit; }

/* Certyfikat – papier w obu motywach; wydruk A4 w poziomie */
.cert-akcje { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 8px 0 18px; }
.cert { background: #FFFDF8; color: #1E1E1E; border-radius: 6px; box-shadow: var(--shadow-lift); padding: 14px; }
.cert-ramka { border: 2px solid #1E1E1E; outline: 6px solid #FF662A; outline-offset: -12px; padding: 40px 36px; display: grid; gap: 12px; text-align: center; }
.cert-gora { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.85rem; }
.cert-marka { height: 40px; width: auto; }
.cert-nad { font-family: var(--font-hand); font-size: 1.9rem; color: #C2410C; margin: 12px 0 0; }
.cert-imie { font-size: clamp(1.8rem, 5vw, 2.8rem); margin: 0; }
.cert-kurs { font-size: 1.15rem; font-weight: 700; margin: 0; }
.cert-opis, .cert-zawod { margin: 0 auto; max-width: 640px; }
.cert-dol { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 16px; text-align: left; flex-wrap: wrap; }
.cert-dol > div:first-child { display: grid; gap: 2px; }
.cert-wer { word-break: break-all; max-width: 420px; }
.cert-qr { width: 120px; flex: none; }
.cert-qr svg { display: block; width: 100%; height: auto; }
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body { background: #fff !important; }
  .site-header, .site-footer, .bottom-nav, .wiecej-arkusz, .cert-akcje, .wrap-narrow > h1 { display: none !important; }
  .wrap-narrow { max-width: none !important; padding: 0 !important; }
  .cert { box-shadow: none; padding: 0; }
  .cert, .cert * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Weryfikacja certyfikatu */
.wer-form { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 20px; }
.wer-form input { flex: 1 1 260px; padding: 12px 14px; border: 1px solid var(--border-color); border-radius: var(--radius-btn); font: inherit; text-transform: uppercase; }
.wer-ok h2 { margin: 10px 0; }
.wer-dane { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.wer-dane dt { color: var(--text-muted); }
.wer-dane dd { margin: 0; font-weight: 600; }

/* Oceny i opinie (assets/opinie.js) */
.gw { position: relative; display: inline-block; line-height: 1; letter-spacing: 1px; font-size: 1.05em; white-space: nowrap; vertical-align: -0.08em; }
.gw-tlo { color: var(--star-off); }
.gw-pelne { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: var(--orange); }
.op-skrot { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--text-primary); }
.op-skrot[hidden] { display: none; }
.op-skrot:hover strong { text-decoration: underline; }
.hero .op-skrot { margin: 4px 0 18px; font-size: 1.05rem; }
.op-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .op-grid { grid-template-columns: 320px 1fr; gap: 32px; } .op-podsum { position: sticky; top: 96px; } }
.op-srednia { display: flex; align-items: center; gap: 12px; }
.op-srednia strong { font-size: 56px; line-height: 1; letter-spacing: -0.1rem; }
.op-srednia .gw { font-size: 1.5rem; }
.op-podsum > p { margin: 8px 0 14px; }
.op-rozklad { display: grid; gap: 6px; margin-bottom: 18px; }
.op-rozklad[hidden] { display: none; }
.op-pasek { display: grid; grid-template-columns: 34px 1fr 32px; align-items: center; gap: 8px; font-size: 0.9rem; }
.op-pasek .muted { text-align: right; }
.op-tor { height: 8px; border-radius: 99px; background: var(--lock-bg); overflow: hidden; }
.op-tor span { display: block; height: 100%; background: var(--orange); border-radius: 99px; }
.op-zasady { margin: 14px 0 0 !important; }
.op-narzedzia { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-bottom: 12px; }
.op-narzedzia[hidden] { display: none; }
.op-narzedzia select, .op-forma select { font: inherit; min-height: 44px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-color); background: var(--card-bg); color: var(--text-primary); }
.op-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.op-item { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 18px 20px; }
.op-gora { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.op-kurs { margin-top: 4px; }
.op-tresc { margin: 10px 0 0; overflow-wrap: anywhere; }
.op-zwinieta { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.op-wiecej, .op-usun { background: none; border: 0; padding: 4px 0; font: inherit; color: var(--orange-text); text-decoration: underline; cursor: pointer; }
.op-usun { margin-left: auto; }
.op-dol { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 10px; }
.op-lapka { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 14px; border-radius: 999px; border: 1px solid var(--border-color); background: transparent; color: var(--text-primary); font: inherit; font-size: 0.9rem; cursor: pointer; }
.op-lapka svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.op-lapka:hover { border-color: var(--text-primary); }
.op-lapka[aria-pressed="true"] { background: var(--green-pale); border-color: var(--green-pale); color: #2F4A04; }
.op-lapka[aria-pressed="true"] svg { fill: currentColor; }
.op-strony { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 18px; }
.op-str { min-width: 44px; min-height: 44px; border-radius: 999px; border: 1px solid var(--border-color); background: var(--card-bg); color: var(--text-primary); font: inherit; cursor: pointer; }
.op-str.akt { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.op-str[disabled] { opacity: 0.4; cursor: default; }
.op-forma { margin-bottom: 16px; }
.op-forma[hidden] { display: none; }
.op-forma h3 { margin-top: 0; }
.op-forma textarea { width: 100%; font: inherit; padding: 12px 18px; border-radius: var(--radius-sm); border: 1px solid var(--border-color); background: var(--bg-primary); color: var(--text-primary); resize: vertical; }
.op-forma .form-row > .small { display: block; margin-top: 4px; }
.op-licznik { text-align: right; }
.op-wybor { border: 0; padding: 0; margin: 0 0 14px; }
.op-wybor legend { font-weight: 600; margin-bottom: 4px; padding: 0; }
.op-gw-wybor { display: inline-flex; gap: 2px; margin-right: 10px; }
.op-gw-wybor label { font-size: 34px; line-height: 1; color: var(--star-off); cursor: pointer; padding: 2px; }
.op-gw-wybor label.on { color: var(--orange); }
.op-gw-wybor input:focus-visible + label { outline: 2px solid var(--text-primary); outline-offset: 2px; border-radius: 6px; }
.op-akcje { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.op-status { border-radius: 12px; padding: 10px 14px; background: var(--lock-bg); }
.op-st-opublikowana { background: var(--success-bg); }
.op-st-odrzucona { background: var(--error-bg); }
.kurs-card .op-skrot { font-size: 0.95rem; }
/* ---------- Oferta: hero z certyfikatem, porównanie, pakiety, gwarancja, zespół (buduj_strone.py) ---------- */
.h1-akcent { color: var(--orange-text); display: block; }
:root[data-theme="dark"] .h1-akcent { color: var(--orange-light); }
.cert-makieta { position: relative; max-width: 540px; width: 100%; margin: 0 auto; padding: 18px 8px 28px; }
.cert-makieta::before { content: ""; position: absolute; inset: 8% 4% 2% 10%; background: var(--orange-light); clip-path: var(--torn); transform: rotate(4deg); }
.cm-ramka { position: relative; transform: rotate(-2.5deg); border: 14px solid #B8875A; border-radius: 4px;
  box-shadow: inset 0 0 0 2px #9C6E44, 0 26px 50px -20px rgba(30, 30, 30, 0.45); background: #FFFDF8; }
.cm-ramka .cert { box-shadow: none; border-radius: 0; padding: 8px; }
.cm-ramka .cert-ramka { padding: 22px 18px; gap: 6px; outline-width: 4px; outline-offset: -9px; }
.cm-ramka .cert-gora { font-size: 0.68rem; }
.cm-ramka .cert-marka { height: 28px; }
.cm-ramka .cert-nad { font-size: 1.35rem; margin-top: 4px; }
.cm-ramka .cert-imie { font-size: 1.55rem; font-weight: 700; }
.cm-ramka .cert-kurs { font-size: 0.92rem; }
.cm-ramka .cert-zawod { font-size: 0.85rem; }
.cm-ramka .cert-dol { margin-top: 6px; font-size: 0.85rem; }
.cm-ramka .cert-qr { width: 74px; min-height: 74px; }
.cm-chip { position: absolute; background: var(--card-bg); color: var(--text-primary); border: 2px solid var(--ink); border-radius: 99px;
  padding: 6px 14px; font-weight: 700; font-size: 0.95rem; box-shadow: var(--shadow-lift); }
.cm-chip-1 { left: -4px; top: 6px; transform: rotate(-6deg); }
.cm-chip-2 { right: -2px; bottom: 6px; transform: rotate(5deg); background: var(--green-pale); color: #1E1E1E; }
@media (max-width: 600px) { .cm-chip { font-size: 0.82rem; } .cm-ramka { border-width: 10px; } }

.vs { display: grid; gap: 18px; margin-top: 8px; }
@media (min-width: 820px) { .vs { grid-template-columns: 1fr 1fr; } }
.vs + .vs { margin-top: 18px; }
.vs-karta { border-radius: var(--radius); padding: 22px 24px; position: relative; }
.vs-typowy { background: var(--lock-bg); color: var(--lock-text); border: 1px dashed var(--border-color); }
.vs-typowy .vs-tekst { font-family: Georgia, "Times New Roman", serif; font-size: 1.02rem; }
.vs-kuznia { background: var(--green-pale); color: #1E1E1E; border: 2px solid var(--ink); box-shadow: var(--shadow-lift); }
.vs-kuznia .vs-tekst { font-size: 1.2rem; font-weight: 600; }
.vs-tytul { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; margin-bottom: 8px; }
.vs-tekst { margin: 0 0 8px; }
.vs-przypis { margin: 0; font-size: 0.9rem; opacity: 0.85; }
.vs-dzien .vs-tekst strong { font-size: 1.15rem; }

.pakiety { display: grid; gap: 20px; margin-bottom: 24px; }
@media (min-width: 900px) { .pakiety { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.pakiet { display: flex; flex-direction: column; gap: 6px; position: relative; }
.pakiet h3 { margin: 0; font-size: 1.35rem; }
.pakiet .btn { margin-top: auto; align-self: stretch; text-align: center; }
.pakiet-polecany { border: 2px solid var(--ink); box-shadow: var(--shadow-lift); }
:root[data-theme="dark"] .pakiet-polecany { border-color: var(--orange); }
.pakiet-odznaka { position: absolute; top: -13px; right: 20px; background: var(--orange-cta); color: #FFFFFF; font-weight: 700; font-size: 0.85rem; padding: 3px 12px; border-radius: 99px; }
.pakiet-pod { margin: 0; color: var(--text-muted); font-weight: 600; }
.pakiet-cena { margin: 8px 0 2px; display: grid; gap: 2px; }
.cena-kwota { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.04rem; line-height: 1.1; }
.cena-stara { color: var(--text-muted); font-size: 1.05rem; }
.cena-promo-pas { justify-self: start; background: var(--yellow); color: #1E1E1E; border-radius: 99px; padding: 2px 10px; font-weight: 700; font-size: 0.85rem; }
.cena-omnibus { font-size: 0.8rem; color: var(--text-muted); }
.pakiet-dostep { margin: 0; font-weight: 600; }
.pakiety-tabela table { min-width: 520px; }
.pakiety-tabela th:not(:first-child), .pakiety-tabela td:not(:first-child) { text-align: center; width: 15%; }
.pk-tak svg { width: 22px; height: 22px; color: var(--success); vertical-align: middle; }
.pk-nie { color: var(--text-muted); }
.pk-sekcja th { background: var(--band-bg); text-align: left !important; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; }

.gw-box { display: grid; gap: 24px; align-items: center; background: var(--card-bg); border: 2px solid var(--ink); border-radius: var(--radius); padding: 28px; }
@media (min-width: 820px) { .gw-box { grid-template-columns: 180px 1fr; padding: 36px; } }
.gw-box h2 { margin-top: 0; }
.gw-pieczec { width: 160px; height: 160px; border-radius: 50%; border: 4px double var(--orange-cta); color: var(--orange-text); display: grid; place-content: center;
  text-align: center; transform: rotate(-8deg); font-weight: 800; justify-self: center; }
.gw-pieczec span { font-size: 1.8rem; letter-spacing: -0.03em; }
.gw-pieczec small { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; }
.gw-punkty { display: grid; gap: 14px; }
@media (min-width: 820px) { .gw-punkty { grid-template-columns: repeat(3, 1fr); } }
.gw-punkt h3 { margin: 0 0 4px; font-size: 1.05rem; }
.gw-punkt p { margin: 0; color: var(--text-muted); }

.zespol-osoba { display: grid; gap: 14px; }
.zespol-osoba img, .zo-zdjecie-puste { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.zo-zdjecie-puste { display: grid; place-content: center; justify-items: center; background: var(--lock-bg); color: var(--lock-text); border: 2px dashed var(--border-color); font-size: 0.7rem; text-align: center; line-height: 1.2; }
.zo-zdjecie-puste svg { width: 34px; height: 34px; }
.zespol-osoba h3 { margin: 0; }
.zo-rola { margin: 0; color: var(--orange-text); font-weight: 700; }
.zo-zdanie { font-style: italic; }
.list-autora { margin-bottom: 20px; }
.wzor-pas { background: var(--warning-bg); border-bottom: 2px solid var(--warning); text-align: center; font-weight: 700; padding: 10px 16px; }
.wzor-pasek { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.wzor-pasek p { margin: 0; flex: 1; min-width: 220px; }
.wp-twarze { display: flex; }
.wp-twarz { width: 44px; height: 44px; border-radius: 50%; background: var(--lock-bg); border: 2px solid var(--card-bg); display: grid; place-content: center; margin-left: -10px; }
.wp-twarz:first-child { margin-left: 0; }
.wp-twarz svg { width: 22px; height: 22px; }

/* Kasa = koszyk (app.js) */
.koszyk-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.koszyk-lista li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); padding: 12px 8px 12px 14px; }
.koszyk-lista li > div { display: grid; gap: 2px; }
.koszyk-cena { font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
.koszyk-usun { width: 40px; height: 40px; border: none; border-radius: 50%; background: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; }
.koszyk-usun:hover { background: var(--bg-primary); color: var(--text-primary); }
.koszyk-masz { color: var(--success-text); }
.koszyk-suma { margin: 12px 0 0; text-align: right; font-size: 1.1rem; }
.koszyk-dodaj { margin: 10px 0 0; }
.koszyk-blad { color: var(--error); }
:root[data-theme="dark"] .koszyk-blad { color: #FCA5A5; }
/* pasek koszyka pod cennikiem (nad dolnym menu na telefonie) */
.koszyk-pasek { position: sticky; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); z-index: 40; margin-top: 24px; }
@media (min-width: 960px) { .koszyk-pasek { bottom: 12px; } }
.koszyk-pasek[hidden] { display: none; }
.koszyk-pasek .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-top: 12px; padding-bottom: 12px;
  background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius); box-shadow: var(--shadow-lift); }
.koszyk-pasek-tresc { display: grid; gap: 4px; flex: 1 1 260px; }
.koszyk-pasek-tresc svg { width: 20px; height: 20px; vertical-align: -4px; color: var(--orange-text); }
.koszyk-pasek .btn-small[hidden] { display: none; }
.pakiet .btn.w-koszyku { background: var(--success-bg); color: var(--success-text); }
.cennik-przelacznik { margin: 0 0 20px; }
.materialy { margin-top: 16px; }
.material { display: grid; grid-template-columns: auto 1fr; gap: 14px; }
.material .ico svg { width: 28px; height: 28px; color: var(--orange-text); }
.material h3 { margin: 0 0 4px; }

/* zespół: awatary z inicjałami (do czasu zdjęć), pasek pod nagłówkiem, stopka lekcji, podglądy dla kandydatów */
.zespol-osoba .zo-awatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.zo-inicjaly, .pz-twarz.zo-inicjaly { display: grid; place-content: center; background: var(--orange-cta); color: #FFFFFF; font-weight: 800; letter-spacing: 0.02em; }
.zespol-osoba .zo-inicjaly { font-size: 2.4rem; }
.zespol-osoba:nth-child(3n+2) .zo-inicjaly, .pz-twarz:nth-child(3n+2) { background: var(--blue); }
.zespol-osoba:nth-child(3n+3) .zo-inicjaly, .pz-twarz:nth-child(3n+3) { background: #2F4A04; }
.pasek-zespolu { display: flex; gap: 14px; align-items: center; margin: 20px 0 0; padding: 12px 18px; border: 1px solid var(--border-color); border-radius: 99px;
  background: var(--card-bg); color: var(--text-primary); text-decoration: none; font-size: 0.95rem; box-shadow: var(--shadow); }
.pasek-zespolu:hover { border-color: var(--ink); }
.pz-twarze { display: flex; flex: none; }
.pz-twarz { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--card-bg); margin-left: -10px; font-size: 0.85rem; }
.pz-twarz:first-child { margin-left: 0; }
@media (max-width: 600px) { .pasek-zespolu { border-radius: var(--radius-sm); align-items: flex-start; flex-direction: column; } }
.stopka-recenzji { display: flex; gap: 10px; align-items: flex-start; margin: 24px 0; padding: 14px 16px; border-top: 1px solid var(--border-color); font-size: 0.95rem; color: var(--text-muted); }
.stopka-recenzji svg { width: 20px; height: 20px; flex: none; color: var(--success); margin-top: 2px; }
.wzor-pas a { color: inherit; }
.wzor-podglady { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0 8px; }
/* link do fragmentu lekcji (narzedzia/kotwice.py): cel nie chowa się pod nagłówkiem i na chwilę się podświetla */
.lesson-body [id], .lesson-body .player { scroll-margin-top: 88px; }
.kotwica-cel { animation: kotwica-cel 2.4s ease-out; border-radius: var(--radius-sm); }
@keyframes kotwica-cel { 0%, 40% { box-shadow: 0 0 0 4px var(--orange); } 100% { box-shadow: 0 0 0 4px transparent; } }
@media (prefers-reduced-motion: reduce) { .kotwica-cel { animation: none; outline: 3px solid var(--orange); outline-offset: 4px; } }
/* „Warto przypomnieć” pod filmem: linki do fragmentów wcześniejszych lekcji (narzedzia/kotwice.py) */
.przypomnij { margin: 14px 0 4px; padding: 12px 16px; border: 1px solid var(--border-color); border-left: 4px solid var(--orange); border-radius: var(--radius-sm); background: var(--card-bg); font-size: 0.95rem; }
.przypomnij h2 { margin: 0 0 6px; font-size: 1rem; }
.przypomnij ul { margin: 0; padding-left: 1.2em; }
.przypomnij li + li { margin-top: 4px; }
/* „Poćwicz” (app.js, initCwicz): trening pod filmem – przypisz pozycję, od razu wyjaśnienie */
.cwicz-box { margin: 18px 0 6px; padding: 14px 16px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--card-bg); }
.cwicz-box > h2 { margin: 0 0 4px; font-size: 1.15rem; }
.cw-poz { padding: 10px 0; border-top: 1px solid var(--border-color); }
.cw-t { margin: 0 0 8px; }
.cw-opcje { display: flex; flex-wrap: wrap; gap: 8px; }
.cw-opcje .cw-ok { border-color: #047857; background: #E7F6EC; color: #065F46; }
.cw-opcje .cw-zle { border-color: #DC2626; background: #FDECEC; color: #991B1B; }
.cw-poz.gotowe .cw-opcje button:not(.cw-ok) { opacity: .45; }
.cw-fb { margin: 8px 0 0; font-size: 0.95rem; }
.cw-fb.ok strong { color: #047857; }
.cw-fb.zle strong { color: #DC2626; }
.cw-licz { margin: 10px 0 6px; }

/* ---------- Oferta według projektu 2026-11-05 (strona główna i strona kursu) ---------- */
.sekcja-h { font-size: 30px; margin: 0 0 24px; }
@media (min-width: 900px) { .sekcja-h { font-size: 36px; } }
.hero-v3 h1 { font-size: 40px; line-height: 1.12; letter-spacing: -0.05rem; }
@media (min-width: 600px) { .hero-v3 h1 { font-size: 48px; } }
@media (min-width: 1100px) { .hero-v3 h1 { font-size: 54px; } }
.podkreslenie { position: relative; white-space: nowrap; display: inline-block; }
.podkreslenie::after { content: ""; position: absolute; left: -2%; right: -4%; bottom: -0.16em; height: 0.32em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M3 15C70 8 160 6 296 9' fill='none' stroke='%23FF662A' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M20 21C100 15 190 14 280 16' fill='none' stroke='%23FF662A' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; }
.podkreslenie.akcent { color: var(--orange-cta); }
:root[data-theme="dark"] .podkreslenie.akcent { color: var(--orange-light); }
.lead-akcent { color: var(--orange-cta); font-weight: 700; }
:root[data-theme="dark"] .lead-akcent { color: var(--orange-light); }
.hero-v3 .op-skrot { margin: 6px 0 4px; font-size: 1.05rem; }

/* cytat założyciela (strona główna) */
.zl-cytat { margin: 0; max-width: 520px; justify-self: end; }
.zl-cytat-gora { display: grid; grid-template-columns: 1fr 150px; gap: 14px; align-items: start; }
.zl-cytat blockquote { margin: 0; font-style: italic; font-size: 1.35rem; line-height: 1.35; }
.zl-cytat-foto { width: 150px; height: 150px; object-fit: cover; border-radius: 4px; }
.zl-cytat figcaption { margin-top: 12px; color: var(--text-muted); font-size: 0.95rem; text-align: right; }
@media (max-width: 600px) { .zl-cytat-gora { grid-template-columns: 1fr 96px; } .zl-cytat-foto { width: 96px; height: 96px; } .zl-cytat blockquote { font-size: 1.1rem; } }

/* przykładowa lekcja w nagłówku strony kursu */
.hero-film { margin: 0; }
.hero-film-ramka { position: relative; padding-top: calc(56.25% + 64px); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift); background: #1E1E1E; }
.hero-film-ramka iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hero-film figcaption { margin-top: 10px; font-size: 1.05rem; }
body.tylko-film { background: #1E1E1E; margin: 0; padding: 0; }
body.tylko-film .player { border-radius: 0; box-shadow: none; }

/* program kursu */
.program .program-h { text-align: center; font-size: 40px; margin: 0 0 8px; }
@media (min-width: 900px) { .program .program-h { font-size: 56px; } }
.program-opis { text-align: center; color: var(--text-muted); max-width: 720px; margin: 0 auto 32px; }
.program details.chapter summary::after { content: none; }
.ch-znak { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-primary); display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.ch-znak::before { content: "+"; }
.program details.chapter[open] .ch-znak { background: var(--orange); color: #FFFFFF; }
.program details.chapter[open] .ch-znak::before { content: "–"; }
.lekcja-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lekcja-link:hover { color: var(--orange-text); }
.bezplatna { color: var(--success-text); font-weight: 600; margin-left: 4px; }

/* porównanie: typowe kursy vs brzoskwiniowa karta Kuźni */
.pv { max-width: 900px; }
.pv-wiersz { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); column-gap: 24px; }
.pv-inne { padding: 18px 0; color: var(--text-primary); }
.pv-inne p, .pv-kuznia p { margin: 0; }
.pv-kuznia { background: #FFD7C6; color: #1E1E1E; padding: 18px 32px; font-weight: 600; }
.pv-glowa .pv-kuznia { border-radius: 32px 32px 0 0; padding-top: 24px; }
.pv-wiersz:last-child .pv-kuznia { border-radius: 0 0 32px 32px; padding-bottom: 28px; }
.pv-logo { height: 64px; width: auto; background: #F8F6F1; padding: 8px 10px; border-radius: 4px; }
.pv-kuznia .tm-link, .gw-link { color: var(--orange-cta); }
.pv-kuznia .tm-link { text-decoration: none; }
.pv-kuznia .tm-link:hover { text-decoration: underline; }
.pv-kuznia a[href*="ustawy"] { color: #1E1E1E; text-decoration: underline; }
.gw-link { background: none; border: 0; padding: 0; font: inherit; color: #1E1E1E; text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; }
.pv-kuznia .app-przyciski { margin-top: 12px; }
@media (max-width: 640px) {
  .pv-wiersz { grid-template-columns: 1fr; }
  .pv-inne { padding: 14px 4px 6px; color: var(--text-muted); font-size: 0.92rem; }
  .pv-wiersz:not(.pv-glowa) .pv-inne p::before { content: "Inne kursy: "; font-weight: 600; }
  .pv-kuznia { border-radius: 18px !important; padding: 14px 18px; }
}
.gw-pop { max-width: min(520px, calc(100vw - 32px)); border: 2px solid var(--ink); border-radius: var(--radius); padding: 24px 24px 18px; background: var(--card-bg); color: var(--text-primary); box-shadow: var(--shadow-lift); }
.gw-pop::backdrop { background: rgba(30, 30, 30, 0.35); }
.gw-pop h3 { margin: 0 32px 8px 0; }
.gw-zamknij { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: inherit; }

/* certyfikat – sekcja i nowy wygląd (gilosz, rozeta, nazwisko szeryfowe) */
.cs-siatka { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .cs-siatka { grid-template-columns: 0.9fr 1.1fr; } }
.cs-tekst h3 { margin: 0 0 6px; font-size: 1.2rem; }
.cs-tekst h3 a { color: inherit; text-decoration: none; }
.cs-tekst p { margin: 0 0 22px; }
.cs-tekst ul { margin: 0; padding-left: 20px; }
.cs-tekst li { margin-bottom: 6px; }
.cert { background: #F6F4EE; color: #1E1E1E; border-radius: 4px; padding: 18px 22px; box-shadow: var(--shadow-lift); }
.cert-ramka { border: 0; outline: 0; padding: 10px 6px; gap: 8px; }
.cert-gilosz { display: block; width: 100%; height: 26px; }
.cert-gilosz-dol { margin-top: 6px; }
.cert-gora { align-items: center; }
.cert-marka { height: 34px; }
.cert-nr { color: #5B5955; font-size: 0.72rem; letter-spacing: 0.03em; }
.cert-nad { font-family: 'Playfair Display', Georgia, serif; font-size: 1rem; font-weight: 500; color: #3E3A33; margin: 6px 0 0; letter-spacing: 0.02em; }
.cert-imie { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: clamp(1.9rem, 4.6vw, 3rem); letter-spacing: -0.01em; }
.cert-kurs { font-size: 1rem; }
.cert-zawod { font-size: 0.92rem; color: #3E3A33; }
.cert-dol { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; margin-top: 10px; text-align: center; }
.cert-dol > div:first-child { display: block; }
.cert-rozeta { width: 82px; height: 82px; }
.cert-wer-box { display: grid; gap: 2px; justify-items: center; }
.cert-qr { width: 96px; }
.cert-makieta { padding: 14px 18px; max-width: none; margin: 0; }
.cert-makieta::before { content: none; }
.cert-makieta .cert-imie { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.cert-makieta .cert-rozeta { width: 64px; height: 64px; }
.cert-makieta .cert-qr { width: 72px; }
@media print { .cert { padding: 10mm; } }
/* podgląd certyfikatu (certyfikat.html) – układ jak w pliku PDF (narzedzia/certyfikat_pdf.py) */
.cert-pobierz { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 10px; }
.cert-akcje-opis { margin: 0 0 18px; }
.cert-tytul { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 500; margin: 8px 0 0; }
.cert-mala { font-family: 'Playfair Display', Georgia, serif; font-style: italic; color: #5B5955; margin: 0; font-size: 0.92rem; }
.cert-ramka .cert-imie { border-bottom: 1px solid #B8923F; padding-bottom: 6px; margin: 0 auto 4px; max-width: 520px; width: 100%; }
.cert-ramka .cert-kurs { font-family: 'Playfair Display', Georgia, serif; font-size: 1.25rem; font-weight: 700; margin: 0; }
.cert-h1 { font-size: 0.8rem; color: #5B5955; margin: -6px 0 0; }
.cert-ramka .cert-zawod { max-width: 620px; margin: 0 auto; font-size: 0.88rem; color: #1E1E1E; }
.cert-fakty { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 8px auto 0; max-width: 600px; width: 100%; }
.cert-fakty > div { padding: 0 8px; }
.cert-fakty > div + div { border-left: 1px solid #B8923F; }
.cert-fakty dt { font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: #2F4A3A; font-weight: 600; }
.cert-fakty dd { margin: 2px 0 0; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 1rem; }
.cert-ramka .cert-dol { grid-template-columns: 1fr auto 1fr; }
.cert-ramka .cert-qr { justify-self: start; width: 84px; }
.cert-podpis { justify-self: end; display: grid; justify-items: center; gap: 1px; min-width: 170px; }
.cert-podpis-reka { font-family: 'Herr Von Muellerhoff', cursive; font-size: 2.1rem; line-height: 1; color: #1D3461; transform: rotate(-5deg) translateY(10px); }
.cert-podpis-linia { display: block; width: 100%; border-top: 1px solid #1E1E1E; margin-bottom: 3px; }
.cert-podpis strong { font-size: 0.82rem; }
@media (max-width: 600px) {
  .cert-fakty { grid-template-columns: 1fr; gap: 8px; }
  .cert-fakty > div + div { border-left: 0; }
  .cert-ramka .cert-dol { grid-template-columns: 1fr 1fr; }
  .cert-ramka .cert-rozeta { display: none; }
}
/* poprawa wyniku egzaminu (egzamin.js) */
.notice-ok { background: var(--success-bg, #EAF5EC); border-left-color: var(--success, #2E7D4F); margin-bottom: 16px; }
.egz-zdany + .notice, .notice + .egz-zdany { margin-top: 16px; }
.egz-poprawa { margin-top: 16px; }
.egz-poprawa .egz-h2 { margin-top: 0; }
/* weryfikacja: plik PDF */
.wer-plik { margin-top: 28px; }
.wer-plik h2 { margin-top: 0; }
.wer-plik-btn { cursor: pointer; }
.wer-zle { border-left: 4px solid var(--orange); }
.wer-zle p { margin: 10px 0 0; }
.moj-cert { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-color); }
.moj-cert .small { flex: 1 1 100%; margin: 0; }

/* nasi eksperci */
.eks-wstep { max-width: 760px; color: var(--text-muted); margin: -8px 0 20px; }
.eks-tlo { background: var(--band-bg); padding: 16px; border-radius: 6px; }
.zespol-osoba .zo-foto { position: relative; justify-self: start; }
.zespol-osoba .zo-awatar { width: 140px; height: 120px; border-radius: 4px; object-fit: cover; }
.zo-podglad { position: absolute; left: 6px; bottom: 6px; background: rgba(30, 30, 30, 0.82); color: #FFFFFF; font-size: 0.7rem; font-weight: 700; padding: 3px 8px; border-radius: 99px; }
.zo-wzor { border-style: dashed; }
.zalozyciel-karta { display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: start; margin-top: 28px; max-width: 640px; }
.zalozyciel-karta .zl-foto { width: 160px; height: 160px; object-fit: cover; border-radius: 4px; }
.zalozyciel-karta h3 { margin: 0; }
.zalozyciel-karta .zl-rola { margin: 0 0 6px; color: var(--text-muted); }
.zalozyciel-karta p { margin: 0 0 10px; }
.zalozyciel-karta blockquote { margin: 0; font-style: italic; color: var(--text-muted); }
@media (max-width: 600px) { .zalozyciel-karta { grid-template-columns: 96px 1fr; } .zalozyciel-karta .zl-foto { width: 96px; height: 96px; } }

/* cennik */
.pakiety-tlo { background: var(--band-bg); padding: 16px; border-radius: 6px; margin-bottom: 24px; }
.pakiety-tlo .pakiety { margin-bottom: 0; }
.pakiety-tabela table { border: 0; }
.pakiety-tabela td, .pakiety-tabela th { border: 0; }
.pk-lista { margin: 4px 0 0; padding: 0; list-style: none; }
.pk-nie { color: transparent; }

/* pytania i końcowe przyciski */
.faq-v3 .faq-lista { max-width: 560px; margin: 0 auto; }
.koniec-cta .hero-ctas { justify-content: center; margin-top: 0; }

/* stopka: Pomoc pod Informacjami */
.site-footer .f-head-pomoc { margin-top: 18px; }

/* strony metod, gwarancji, ustaw, aplikacji */
.koncept-grid { margin-bottom: 24px; }
.koncept-punkt h3 { margin: 0 0 6px; }
.koncept-punkt p { margin: 0; }
.koncept-gw { margin-bottom: 24px; }
.koncept-gw h2 { margin-top: 0; }
.koncept-inne { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gw-lista { display: grid; gap: 18px; margin: 24px 0; }
.gw-sekcja h2 { margin-top: 0; }
.ustawy-lista li { margin-bottom: 8px; }
.app-krok { margin-top: 18px; }
.app-krok h2 { margin-top: 0; }
body.tylko-film { overflow: hidden; }

/* program kursu zwinięty: „Pokaż cały program – jeszcze N rozdziałów” */
.program-reszta > summary { cursor: pointer; list-style: none; text-align: center; font-weight: 700; color: var(--orange-text); padding: 14px; border: 1px dashed var(--border-color); border-radius: 16px; margin: 6px 0 10px; background: var(--card-bg); }
.program-reszta > summary::-webkit-details-marker { display: none; }
.program-reszta[open] > summary { display: none; }

/* ===== Oferta – formatowanie (body.oferta-v3; nazwy klas zostały z czasów wersji roboczych) ===== */
/* rytm sekcji – mniej pustki między blokami */
.oferta-v3 .section { padding: 48px 0; }
@media (min-width: 900px) { .oferta-v3 .section { padding: 72px 0; } .oferta-v3 .hero-v3 { padding: 56px 0 64px; } }
.oferta-v3 .faq-v3 { padding-top: 0; }
.oferta-v3 .faq-v3 .faq-lista { max-width: 760px; }
.oferta-v3 .koniec-cta { padding-top: 8px; }
.oferta-v3 .sekcja-h { margin-bottom: 28px; }
.oferta-v3 .eks-wstep { margin-top: -12px; margin-bottom: 28px; }

/* nagłówek strony głównej: cytat założyciela jako karta – zdjęcie z lewej, podpis pod spodem */
.oferta-v3 .zl-cytat { max-width: 500px; justify-self: end; background: var(--card-bg); border: 1px solid var(--border-color);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-lift); }
.oferta-v3 .zl-cytat-gora { grid-template-columns: 112px 1fr; gap: 22px; align-items: center; }
.oferta-v3 .zl-cytat-foto { order: -1; width: 112px; height: 112px; border-radius: 50%; }
.oferta-v3 .zl-cytat blockquote { font-size: 1.3rem; }
.oferta-v3 .zl-cytat figcaption { text-align: left; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border-color); font-size: 0.9rem; }
@media (max-width: 959px) { .oferta-v3 .zl-cytat { justify-self: stretch; max-width: none; } }
@media (max-width: 600px) {
  .oferta-v3 .zl-cytat { padding: 20px; }
  .oferta-v3 .zl-cytat-gora { grid-template-columns: 72px 1fr; gap: 16px; }
  .oferta-v3 .zl-cytat-foto { width: 72px; height: 72px; }
}

/* porównanie: cała szerokość, linie wierszy w obu kolumnach */
.oferta-v3 .pv { max-width: none; }
@media (min-width: 641px) {
  .oferta-v3 .pv-wiersz { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); column-gap: 40px; }
  .oferta-v3 .pv-glowa { align-items: center; }
  .oferta-v3 .pv-inne { padding: 16px 0; }
  .oferta-v3 .pv-kuznia { padding: 16px 40px; }
  .oferta-v3 .pv-glowa .pv-kuznia { padding-top: 28px; padding-bottom: 20px; }
  .oferta-v3 .pv-wiersz:not(.pv-glowa) .pv-inne { border-top: 1px solid var(--border-color); color: var(--text-muted); }
  .oferta-v3 .pv-wiersz:not(.pv-glowa) .pv-kuznia { border-top: 1px solid rgba(30, 30, 30, 0.1); }
}

/* eksperci: bez podwójnej ramki, równe karty – okrągłe zdjęcie obok imienia, odznaka „Podgląd” nad nim */
.oferta-v3 .eks-tlo { background: none; padding: 0; }
.oferta-v3 .zespol-grid > .card { margin-top: 0; }   /* w v1 karty 2 i 3 stały 16 px niżej (.card + .card) */
.oferta-v3 .zespol-osoba { grid-template-columns: 88px minmax(0, 1fr); column-gap: 16px; row-gap: 0; align-content: start;
  grid-template-areas: "znak znak" "foto imie" "foto rola" "opis opis" "zdanie zdanie"; }
.oferta-v3 .zespol-osoba .zo-foto, .oferta-v3 .zespol-osoba > div:not(.zo-foto) { display: contents; }
.oferta-v3 .zespol-osoba .zo-awatar { grid-area: foto; width: 88px; height: 88px; border-radius: 50%; align-self: center; }
.oferta-v3 .zespol-osoba .zo-podglad { grid-area: znak; position: static; justify-self: start; margin-bottom: 16px;
  background: var(--band-bg); color: var(--text-muted); border: 1px dashed var(--border-color); font-size: 0.75rem; padding: 3px 10px; }
.oferta-v3 .zespol-osoba h3 { grid-area: imie; align-self: end; margin: 0; }
.oferta-v3 .zespol-osoba .zo-rola { grid-area: rola; align-self: start; margin: 2px 0 0; }
.oferta-v3 .zespol-osoba p.small { grid-area: opis; margin: 16px 0 0; }
.oferta-v3 .zespol-osoba .zo-zdanie { grid-area: zdanie; margin: 12px 0 0; }
.oferta-v3 .zespol-osoba > div > a { grid-column: 1 / -1; margin-top: 10px; }

/* założyciel na stronie kursu: karta na całą szerokość, cytat w prawej kolumnie */
.oferta-v3 .zalozyciel-karta { max-width: none; margin-top: 24px; background: var(--card-bg); border: 1px solid var(--border-color);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; row-gap: 0; align-items: start;
  grid-template-areas: "foto imie cytat" "foto rola cytat" "foto opis cytat"; }
.oferta-v3 .zalozyciel-karta > div { display: contents; }
.oferta-v3 .zalozyciel-karta .zl-foto { grid-area: foto; width: 120px; height: 120px; border-radius: 50%; }
.oferta-v3 .zalozyciel-karta h3 { grid-area: imie; }
.oferta-v3 .zalozyciel-karta .zl-rola { grid-area: rola; }
.oferta-v3 .zalozyciel-karta > div > p:not(.zl-rola) { grid-area: opis; margin: 0; }
.oferta-v3 .zalozyciel-karta blockquote { grid-area: cytat; align-self: center; font-size: 1.25rem; line-height: 1.4; color: var(--text-primary);
  border-left: 3px solid var(--orange); padding-left: 22px; }
@media (max-width: 760px) {
  .oferta-v3 .zalozyciel-karta { padding: 20px; column-gap: 16px; grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas: "foto imie" "foto rola" "opis opis" "cytat cytat"; }
  .oferta-v3 .zalozyciel-karta .zl-foto { width: 72px; height: 72px; }
  .oferta-v3 .zalozyciel-karta > div > p:not(.zl-rola) { margin-top: 14px; }
  .oferta-v3 .zalozyciel-karta blockquote { margin-top: 14px; font-size: 1.1rem; padding-left: 16px; }
}

/* certyfikat: tekst wyśrodkowany w pionie względem makiety */
@media (min-width: 900px) { .oferta-v3 .cs-siatka { align-items: center; gap: 56px; } }

/* ocena „5,0” bez rozstrzelonego przecinka (cyfry tabelaryczne) */
.oferta-v3 .op-skrot .num, .oferta-v3 .op-srednia strong { font-variant-numeric: normal; }
.oferta-v3 .op-srednia strong { letter-spacing: -0.04em; }

/* cennik: tabela na telefonie mieści wszystkie trzy pakiety */
.oferta-v3 .pakiety-tabela table { table-layout: fixed; min-width: 0; width: 100%; }
.oferta-v3 .pakiety-tabela th:first-child, .oferta-v3 .pakiety-tabela td:first-child { width: 52%; }
.oferta-v3 .pakiety-tabela .pk-sekcja th { width: auto; }
@media (max-width: 600px) {
  .oferta-v3 .pakiety-tabela { overflow-x: visible; }
  .oferta-v3 .pakiety-tabela td, .oferta-v3 .pakiety-tabela th { padding: 8px 4px; font-size: 0.85rem; }
  .oferta-v3 .pakiety-tabela .pk-tak svg { width: 18px; height: 18px; }
  .oferta-v3 .pakiety-tlo { padding: 8px; }
}

/* ===== Oferta – porównanie kontra, krótkie FAQ, Cennik, mniejsze odstępy (body.oferta-v4) ===== */
/* porównanie: dwie równe kolumny – „Inne kursy” (✕) kontra Kuźnia (✓) */
.pv4 { display: grid; }
.pv4-glowa, .pv4-wiersz { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; position: relative; }
.pv4-inne, .pv4-kuz { display: flex; gap: 12px; align-items: flex-start; padding: 16px 28px; }
.pv4-inne { background: var(--band-bg); border-left: 1px solid var(--border-color); border-right: 1px solid var(--border-color); color: var(--text-muted); }
.pv4-kuz { background: #FFD7C6; color: #1E1E1E; font-weight: 600; }
.pv4-inne p, .pv4-kuz p { margin: 0; }
.pv4 svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.pv4-inne svg { color: var(--text-muted); opacity: 0.8; }
.pv4-kuz svg { color: var(--orange-cta); }
.pv4-wiersz .pv4-inne { border-top: 1px solid var(--border-color); }
.pv4-wiersz .pv4-kuz { border-top: 1px solid rgba(30, 30, 30, 0.1); }
.pv4-glowa .pv4-inne, .pv4-glowa .pv4-kuz { border-radius: 24px 24px 0 0; padding-top: 24px; padding-bottom: 20px; align-items: center; min-height: 112px; }
.pv4-glowa .pv4-inne { border-top: 1px solid var(--border-color); flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; }
.pv4-tytul { font-size: 1.5rem; color: var(--text-primary); letter-spacing: -0.02em; }
.pv4-pod { font-size: 0.9rem; }
.pv4-wiersz:last-child .pv4-inne, .pv4-wiersz:last-child .pv4-kuz { border-radius: 0 0 24px 24px; padding-bottom: 24px; }
.pv4-wiersz:last-child .pv4-inne { border-bottom: 1px solid var(--border-color); }
.pv4-vs { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--orange-cta); color: #FFFFFF; font-weight: 800; font-size: 1rem; z-index: 1;
  box-shadow: 0 0 0 6px var(--bg-primary); }
.pv4-kuz .tm-link { color: var(--orange-cta); text-decoration: none; }
.pv4-kuz .tm-link:hover { text-decoration: underline; }
.pv4-kuz a[href*="ustawy"] { color: #1E1E1E; text-decoration: underline; }
.pv4-kuz .app-przyciski { margin-top: 12px; }
@media (max-width: 640px) {
  .pv4-glowa { column-gap: 16px; margin-bottom: 12px; }
  .pv4-glowa .pv4-inne, .pv4-glowa .pv4-kuz { border-radius: 18px; padding: 14px 16px; min-height: 84px; border-bottom: 1px solid var(--border-color); }
  .pv4-glowa .pv-logo { height: 44px; }
  .pv4-tytul { font-size: 1.15rem; }
  .pv4-pod { font-size: 0.78rem; }
  .pv4-vs { width: 36px; height: 36px; font-size: 0.85rem; box-shadow: 0 0 0 4px var(--bg-primary); }
  .pv4-wiersz { grid-template-columns: 1fr; margin-bottom: 12px; }
  .pv4-wiersz .pv4-inne { border-radius: 18px 18px 0 0; padding: 12px 16px; font-size: 0.92rem; border-top: 1px solid var(--border-color); }
  .pv4-wiersz .pv4-kuz { border-radius: 0 0 18px 18px; padding: 12px 16px; border-top: 0; }
  .pv4-wiersz:last-child .pv4-inne { border-radius: 18px 18px 0 0; border-bottom: 0; padding-bottom: 12px; }
  .pv4-wiersz:last-child .pv4-kuz { border-radius: 0 0 18px 18px; padding-bottom: 16px; }
}

/* krótkie FAQ: nagłówek, lista i link w jednej linii od lewej */
.oferta-v4 .faq-v3 .faq-lista { margin: 0; max-width: 760px; }
.faq-wiecej-v4 { margin: 16px 0 0; font-weight: 700; }
.faq-wiecej-v4 a { color: var(--orange-text); }

/* strona Cennik */
.strona-cennika .cennik { padding-top: 32px; }

/* mniej pustek – prospekt brał duże przerwy za koniec strony */
.oferta-v4 .section { padding: 32px 0; }
.oferta-v4 .hero-v3 { padding-bottom: 32px; }
.oferta-v4 .band.program { padding: 48px 0; margin: 8px 0; }
.oferta-v4 .site-footer { margin-top: 16px; }
@media (min-width: 900px) {
  .oferta-v4 .section { padding: 40px 0; }
  .oferta-v4 .hero-v3 { padding: 48px 0 40px; }
  .oferta-v4 .band.program { padding: 56px 0; }
}
.oferta-v4 .faq-v3 { padding-top: 8px; }
.oferta-v4 .zalozyciel-karta { margin-top: 20px; }
@media (max-width: 600px) { .oferta-v4 .pakiety-tabela td.pk-tak strong { white-space: nowrap; font-size: 0.8rem; } }
