/* Platforma PZ — „towarzysz książki". Redesign 2026-07-12.
   Brand PZ: granat atramentowy + złoto + krem. Poppins (self-host) dla nagłówków.
   Wnętrza kalkulatorów mają własne style inline (zweryfikowane bloki) — nie ruszać. */

:root {
  --ink: #1c2742;          /* granat atramentowy — header, hero, stopka */
  --ink-soft: #273356;     /* granat jaśniejszy — gradienty, hovery */
  --gold: #c5a44e;         /* złoto PZ — akcenty, CTA */
  --gold-dark: #af8f3e;    /* złoto hover */
  --gold-deep: #8a6d2a;    /* złoto na jasnym tle (kontrast dla małego tekstu) */
  --cream: #f7f4ee;        /* tło strony */
  --paper: #fffdf9;        /* karty/treść */
  --text: #3d4454;
  --heading: #232c44;
  --muted: #7b8294;
  --line: #e7e1d4;
  --shadow: 0 2px 14px rgba(28, 39, 66, .07);
  --shadow-lift: 0 10px 26px rgba(28, 39, 66, .13);
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
}

h1, h2, h3, h4, .btn, .card-title, .site-nav, .hero-kicker {
  font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
}

h1, h2, h3, h4 { color: var(--heading); line-height: 1.25; }
h1 { font-size: 2.1rem; font-weight: 700; }
h2 { font-size: 1.5rem; font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }

a { color: var(--gold-deep); }
img { max-width: 100%; height: auto; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ─── Header ─────────────────────────────────────────────── */

.site-header {
  background: var(--ink);
  color: #fff;
  padding: 0 24px;
  border-bottom: 3px solid var(--gold);
}
.site-header-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  flex-wrap: wrap;
  padding: 8px 0;
}
@media (max-width: 560px) {
  .site-header-inner { justify-content: center; row-gap: 4px; }
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.site-brand img { height: 36px; display: block; }
.site-brand .brand-sub {
  color: #cfd4e2;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-left: 1px solid rgba(255, 255, 255, .25);
  padding-left: 14px;
  line-height: 1.3;
}
.site-nav { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.site-nav a {
  color: #e8eaf1;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--gold); }
.site-nav a.active { border-bottom-color: var(--gold); color: #fff; }
.site-nav .nav-logout {
  background: none;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: .8rem;
  color: #b9bfd0;
  padding: 6px 12px;
  transition: border-color .15s ease, color .15s ease;
}
.site-nav .nav-logout:hover { border-color: var(--gold); color: #fff; }

/* ─── Hero (strona główna biblioteki) ────────────────────── */

.hero {
  background: linear-gradient(140deg, var(--ink) 0%, var(--ink-soft) 62%, #33406a 100%);
  color: #fff;
}
.hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 64px 24px 58px;
}
.hero-kicker {
  color: var(--gold);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.hero h1 {
  color: #fff;
  margin: 0 0 14px;
  font-size: 2.7rem;
  line-height: 1.15;
}
.hero-lead {
  color: #ccd3e4;
  font-size: 1.06rem;
  max-width: 640px;
  margin: 0;
}
.hero-rule {
  width: 64px;
  height: 3px;
  background: var(--gold);
  border: none;
  margin: 22px 0 0;
}

/* ─── Layout / breadcrumb ────────────────────────────────── */

.container { max-width: 1140px; margin: 0 auto; padding: 30px 24px 72px; }

.breadcrumb { font-size: .85rem; margin: 4px 0 22px; color: var(--muted); }
.breadcrumb a { color: var(--gold-deep); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 7px; color: #c9c3b4; }

/* ─── Sekcje biblioteki ──────────────────────────────────── */

.library-section { margin-top: 34px; }
.library-section:first-child { margin-top: 6px; }
.library-head { max-width: 720px; }
.library-head h2 {
  margin: 0 0 6px;
  font-size: 1.45rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.library-head h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.library-desc { margin: 0 0 18px; color: var(--muted); font-size: .95rem; }

/* ─── Karty biblioteki ───────────────────────────────────── */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 14px;
}
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform .16s ease, box-shadow .16s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  opacity: 0;
  transition: opacity .16s ease;
  z-index: 1;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card:hover::before { opacity: 1; }
.card-img { width: 100%; aspect-ratio: 16 / 8.9; object-fit: cover; display: block; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.card-title {
  color: var(--heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
}
.card-desc {
  margin: 0;
  font-size: .88rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Karta narzędzia (kalkulator) — typograficzna, bez zdjęcia */
.card-tool .card-glyph {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 0;
}
.card-tool .card-glyph svg { color: var(--gold); }
.card-tool .card-glyph .glyph-tag {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 3px 10px;
}

/* ─── Lekcja ─────────────────────────────────────────────── */

.lesson-head h1 { margin: 0 0 4px; }

.lesson-layout {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 32px;
  margin-top: 16px;
}
@media (max-width: 900px) {
  .lesson-layout { grid-template-columns: 1fr; }
  .hero-inner { padding: 46px 24px 42px; }
  .hero h1 { font-size: 2rem; }
}

/* Sidebar nawigacji (desktop) */
.lesson-sidebar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 6px 0 10px;
  align-self: start;
  font-size: .92rem;
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
}
.lesson-sidebar .group-label {
  display: block;
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding: 14px 18px 6px;
  border-top: 1px solid var(--line);
  margin-top: 6px;
}
.lesson-sidebar .group-label:first-child { border-top: none; margin-top: 0; }
.lesson-sidebar a {
  display: block;
  padding: 8px 18px 8px 26px;
  color: var(--text);
  text-decoration: none;
  border-left: 3px solid transparent;
  line-height: 1.45;
}
.lesson-sidebar a:hover { background: #f4efe4; }
.lesson-sidebar a.active {
  color: var(--gold-deep);
  font-weight: 600;
  border-left-color: var(--gold);
  background: #f7f1e2;
}
.lesson-sidebar a.indent { padding-left: 40px; }

/* Sidebar mobile: zwijany spis pod nagłówkiem */
.sidebar-toggle { display: none; }
@media (max-width: 900px) {
  .lesson-sidebar { display: none; }
  .sidebar-toggle {
    display: block;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 4px;
  }
  .sidebar-toggle summary {
    cursor: pointer;
    padding: 13px 18px;
    font-weight: 600;
    color: var(--heading);
    font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
    font-size: .95rem;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .sidebar-toggle summary::-webkit-details-marker { display: none; }
  .sidebar-toggle summary::after {
    content: "▾";
    color: var(--gold);
    transition: transform .15s ease;
  }
  .sidebar-toggle[open] summary::after { transform: rotate(180deg); }
  .sidebar-toggle .group-label {
    display: block;
    font-weight: 600;
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold-deep);
    padding: 10px 18px 4px;
  }
  .sidebar-toggle a {
    display: block;
    padding: 8px 18px 8px 26px;
    color: var(--text);
    text-decoration: none;
  }
  .sidebar-toggle a.active { color: var(--gold-deep); font-weight: 600; }
  .sidebar-toggle a.indent { padding-left: 40px; }
  .sidebar-toggle nav { padding-bottom: 10px; }
}

/* Treść */
.lesson-content {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 40px;
  overflow-wrap: break-word;
}
@media (max-width: 640px) { .lesson-content { padding: 24px 20px; } }
.lesson-content figure { margin: 26px auto; text-align: center; }
.lesson-content figure.aligncenter img { margin: 0 auto; }
.lesson-content figcaption { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.lesson-content hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 30px 0;
}
.lesson-video-wrap { margin: 24px 0; }
.lesson-video {
  width: 100%;
  border-radius: var(--radius);
  background: #000;
  display: block;
}

/* Prev/next — karty-strzałki na dole lekcji */
.lesson-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 26px;
}
@media (max-width: 640px) { .lesson-pager { grid-template-columns: 1fr; } }
.pager-link {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 18px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.pager-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.pager-link.next { text-align: right; grid-column: 2; }
.pager-link.prev { grid-column: 1; }
@media (max-width: 640px) { .pager-link.next, .pager-link.prev { grid-column: 1; } }
.pager-link .pager-dir {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.pager-link .pager-title {
  font-weight: 600;
  color: var(--gold-deep);
  font-size: .96rem;
}

/* ─── Pliki do pobrania ──────────────────────────────────── */

.files-section { margin-top: 30px; }
.files-section h2 { font-size: 1.25rem; }
.files-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px 26px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0 40px;
}
.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 2px;
  border-bottom: 1px solid #efe9db;
  text-decoration: none;
  color: var(--heading);
  font-size: .95rem;
}
.file-row:hover { color: var(--gold-deep); }
.file-row .file-ico { color: var(--gold); flex-shrink: 0; }

/* ─── Przyciski ──────────────────────────────────────────── */

.btn {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 28px;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease;
}
.btn:hover { background: var(--gold-dark); }

/* ─── Login ──────────────────────────────────────────────── */

.login-page {
  min-height: 100vh;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(197, 164, 78, .16), transparent 60%),
    linear-gradient(155deg, var(--ink) 0%, #222e52 70%, #2a3760 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-logo { margin-bottom: 36px; text-align: center; }
.login-logo img { height: 92px; }
.login-tagline {
  color: #b7bed2;
  font-size: .82rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-top: 16px;
}
.login-card {
  background: var(--paper);
  border-radius: 12px;
  border-top: 4px solid var(--gold);
  box-shadow: 0 14px 50px rgba(10, 16, 34, .45);
  padding: 38px 34px;
  width: 100%;
  max-width: 410px;
  text-align: center;
}
.login-card h1 { font-size: 1.3rem; margin: 0 0 8px; }
.login-card .login-sub { font-size: .89rem; color: var(--muted); margin: 0 0 24px; }
.login-input {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #d9d2c0;
  border-radius: 6px;
  font-size: .95rem;
  margin-bottom: 16px;
  background: #fff;
}
.login-input:focus { outline: none; border-color: var(--gold); }
.login-btn { width: 100%; padding: 13px; font-size: .86rem; }
.login-note { font-size: .8rem; color: var(--muted); margin-top: 22px; }
.login-note a { color: var(--gold-deep); }
.login-msg {
  border-radius: 6px;
  padding: 12px 15px;
  font-size: .9rem;
  margin-bottom: 18px;
  text-align: left;
}
.login-msg.ok { background: #eef7ee; color: #2f6b39; border: 1px solid #cfe7d2; }
.login-msg.err { background: #fdf0ef; color: #a03a32; border: 1px solid #f2d5d2; }

/* Rozwijane wyjaśnienie magic-linka (2026-07-17) — natywny <details>, zero JS */
.login-why {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.login-why summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 2px 0;
  font-size: .82rem;
  color: var(--muted);
  text-align: center;
  transition: color .15s ease;
}
.login-why summary::-webkit-details-marker { display: none; }
.login-why summary::after { content: " ▾"; color: var(--gold); }
.login-why[open] summary::after { content: " ▴"; }
.login-why summary:hover { color: var(--gold-deep); }
.login-why-body { padding: 12px 2px 2px; }
.login-why-body p {
  margin: 0 0 12px;
  font-size: .8rem;
  line-height: 1.6;
  color: var(--muted);
}
.login-why-body p:last-child { margin-bottom: 0; }
.login-why-body strong { color: var(--heading); font-weight: 600; }

/* ─── Pakiet Prawny ──────────────────────────────────────── */

.legal-group { margin-top: 30px; }
.legal-group h2 { margin-bottom: 6px; }
.legal-group .group-desc { font-size: .9rem; color: var(--muted); margin: 0 0 14px; }

.notice-box {
  background: #fdf9ee;
  border: 1px solid #ecdcae;
  border-radius: var(--radius);
  color: #7c6a33;
  padding: 16px 20px;
  font-size: .93rem;
  margin: 22px 0;
}

/* ─── Stopka ─────────────────────────────────────────────── */

.site-footer {
  background: var(--ink);
  color: #aab1c4;
  font-size: .84rem;
  margin-top: 48px;
}
.site-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.site-footer a { color: #d4c69a; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ─── Społeczność ────────────────────────────────────────── */

.sc-narrow { max-width: 780px; }
.sc-hero-em { font-style: normal; color: var(--gold); }
.sc-hero-note { color: #ccd3e4; font-size: .9rem; margin-top: 14px; }
.sc-btn-ghost {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, .55);
  margin-left: 10px;
}
.sc-btn-ghost:hover { background: rgba(255, 255, 255, .12); }
@media (max-width: 560px) { .sc-btn-ghost { margin-left: 0; margin-top: 10px; } }

.sc-banner {
  background: #eef7ee;
  border: 1px solid #cfe7d2;
  color: #2f6b39;
  border-radius: var(--radius);
  padding: 13px 18px;
  margin: 14px 0 20px;
  font-size: .95rem;
}
.sc-banner-warn { background: #fdf6ec; border-color: #ecdcae; color: #7c6a33; }
.sc-banner a { color: inherit; font-weight: 600; }

.sc-fakt {
  background: var(--paper);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
  padding: 18px 22px;
  margin: 26px 0;
  max-width: 680px;
}
.sc-fakt small { display: block; color: var(--muted); margin-top: 8px; font-size: .8rem; }

.sc-section { padding: 34px 0 6px; border-bottom: 1px solid var(--line); }
.sc-section:last-of-type { border-bottom: none; }
.sc-section h2 { margin-bottom: 6px; }
.sc-intro { color: var(--muted); max-width: 680px; }
.sc-section p, .sc-section ul, .sc-section ol { max-width: 680px; }

.sc-cytat {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.06rem;
  color: var(--muted);
  border-left: 3px solid var(--gold);
  padding: 6px 0 6px 18px;
  margin: 22px 0;
  max-width: 640px;
}

.sc-karta {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  margin: 16px 0;
  max-width: 760px;
}
.sc-karta h3 { margin: 4px 0 8px; }
.sc-karta-meta {
  font-size: .72rem;
  color: var(--gold-deep);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.sc-liczby {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 24px 0;
  max-width: 760px;
}
.sc-liczba {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.sc-liczba b { display: block; font-size: 1.7rem; color: var(--heading); }
.sc-liczba span { font-size: .82rem; color: var(--muted); }

.sc-table-wrap { overflow-x: auto; }
.sc-table { border-collapse: collapse; width: 100%; margin: 20px 0; font-size: .92rem; }
.sc-table th {
  background: var(--ink);
  color: #fff;
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
}
.sc-table td {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 10px 12px;
  vertical-align: top;
}
.sc-ok { color: #2f6b39; font-weight: 600; }
.sc-zle { color: #a03a32; }
.sc-footnote { font-size: .84rem; color: var(--muted); }

.sc-dla-kogo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin: 20px 0;
}
.sc-kol {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid #2f6b39;
  border-radius: var(--radius);
  padding: 18px 22px;
}
.sc-kol-nie { border-top-color: #a03a32; }
.sc-kol h3 { margin-top: 0; }

.sc-cennik {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin: 24px 0;
}
.sc-plan {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.sc-plan-wyrozniony { border-color: var(--gold); box-shadow: var(--shadow-lift); }
.sc-plan-badge {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--gold);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  padding: 4px 12px;
  border-radius: 3px;
  text-transform: uppercase;
}
.sc-plan h3 { margin: 6px 0 2px; }
.sc-cena { font-size: 2rem; font-weight: 700; color: var(--heading); margin: 8px 0 2px; }
.sc-cena small { font-size: .95rem; color: var(--muted); font-weight: 400; }
.sc-plan-note { font-size: .84rem; color: var(--muted); margin: 0 0 10px; }
.sc-plan ul { margin: 0 0 16px 18px; font-size: .9rem; padding: 0; flex: 1; }
.sc-plan li { margin: 6px 0; }
.sc-plan-btn { text-align: center; }

.sc-gwarancja {
  background: var(--paper);
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
  max-width: 760px;
}
.sc-gwarancja h3 { margin-top: 0; }
.sc-znacznik { color: var(--gold-deep); font-weight: 700; }

details.sc-faq {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 10px 0;
  max-width: 720px;
}
details.sc-faq summary {
  padding: 14px 18px;
  font-weight: 600;
  cursor: pointer;
  color: var(--heading);
}
details.sc-faq p { padding: 0 18px 14px; color: var(--text); margin: 0; }

.sc-start-list li { margin: 8px 0; }
.sc-disclaimer {
  font-size: .8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 30px;
}

/* Formularze */
.sc-form { max-width: 640px; }
.sc-form label { display: block; margin: 14px 0; font-weight: 600; color: var(--heading); }
.sc-form input[type="text"], .sc-form input[type="email"], .sc-form input[type="search"],
.sc-form input[type="file"], .sc-form select, .sc-form textarea,
.sc-filters input[type="search"], .sc-filters select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 13px;
  border: 1px solid #d9d2c0;
  border-radius: 6px;
  font: inherit;
  font-weight: 400;
  background: #fff;
  color: var(--text);
}
.sc-form input:focus, .sc-form select:focus, .sc-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.sc-form .btn { margin-top: 14px; }
.sc-form-compact label { margin: 8px 0; }
.sc-form-compact input, .sc-form-compact select, .sc-form-compact textarea { margin: 6px 0; }
.sc-form-compact .btn { margin-top: 8px; width: 100%; }
.sc-form-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.sc-form-row label { flex: 1; min-width: 200px; }
.sc-cancel-link { margin-left: 14px; color: var(--gold-deep); font-size: .9rem; }

.sc-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
  align-items: center;
}
.sc-filters input[type="search"] { flex: 2; min-width: 220px; width: auto; margin: 0; }
.sc-filters select { flex: 1; min-width: 150px; width: auto; margin: 0; }

/* Wątki */
.sc-box-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.sc-thread-list { margin-top: 12px; }
.sc-thread-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 18px;
  margin: 8px 0;
  text-decoration: none;
  transition: transform .13s ease, box-shadow .13s ease;
}
.sc-thread-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.sc-thread-title { display: block; font-weight: 600; color: var(--heading); }
.sc-thread-meta { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.sc-snippet mark { background: #f4e8c8; padding: 0 2px; }

.sc-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 20px;
  padding: 3px 10px;
  white-space: nowrap;
}
.sc-badge-open { background: #eef3fb; color: #33518c; border: 1px solid #ccd9f0; }
.sc-badge-talk { background: #fdf6ec; color: #8a6d2a; border: 1px solid #ecdcae; }
.sc-badge-done { background: #eef7ee; color: #2f6b39; border: 1px solid #cfe7d2; }
.sc-badge-late { background: #fdf0ef; color: #a03a32; border: 1px solid #f2d5d2; }

.sc-thread-head h1 { margin-bottom: 4px; }
.sc-context { font-size: .86rem; color: var(--muted); }
.sc-due { font-size: .92rem; color: var(--heading); }
.sc-due-late { color: #a03a32; }

.sc-post {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 12px 0;
}
.sc-post-question { border-left: 4px solid var(--ink); }
.sc-post-hidden { opacity: .65; border-style: dashed; }
.sc-post-head { font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.sc-post-body { color: var(--text); }

.sc-final {
  background: #fbf7ec;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 20px 24px;
  margin: 18px 0;
}
.sc-final-head {
  font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 10px;
}
.sc-final-sign { margin-top: 12px; font-weight: 600; color: var(--heading); }

.sc-inline-form { display: inline; }
.sc-link-btn {
  background: none;
  border: none;
  color: var(--gold-deep);
  cursor: pointer;
  font: inherit;
  font-size: .84rem;
  text-decoration: underline;
  padding: 0 4px;
}
.sc-report-form details { max-width: 640px; }
.sc-report-form summary { cursor: pointer; color: var(--muted); font-size: .88rem; }
.sc-kodeks-hint {
  background: #fdf9ee;
  border: 1px solid #ecdcae;
  border-radius: 6px;
  font-size: .84rem;
  color: #7c6a33;
  padding: 10px 14px;
  margin: 14px 0;
}

.sc-owner-box {
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 26px 0;
}
.sc-owner-box h3 { margin-top: 0; }
.sc-owner-actions { display: flex; gap: 16px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.sc-mod-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sc-mod-form input[type="text"] {
  padding: 7px 10px;
  border: 1px solid #d9d2c0;
  border-radius: 6px;
  font: inherit;
  font-size: .84rem;
  min-width: 240px;
}

/* Dashboard / panel */
.sc-dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  margin-top: 18px;
}
@media (max-width: 900px) { .sc-dash-grid { grid-template-columns: 1fr; } }
.sc-panel-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  margin: 0 0 20px;
}
.sc-panel-box h2 { margin-top: 0; font-size: 1.25rem; }
.sc-panel-box h3 { margin-top: 0; }
.sc-links { list-style: none; margin: 0; padding: 0; }
.sc-links li { padding: 7px 0; border-bottom: 1px solid #efe9db; }
.sc-links li:last-child { border-bottom: none; }
.sc-links a { text-decoration: none; color: var(--heading); font-weight: 500; }
.sc-links a:hover { color: var(--gold-deep); }
.sc-count { display: inline-block; font-size: .76rem; color: var(--muted); font-weight: 400; margin-left: 6px; }
.sc-duty-date { font-size: 1.9rem; font-weight: 700; color: var(--heading); margin: 4px 0; }
.sc-map-list li { margin: 8px 0; }

.sc-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.sc-metric {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.sc-metric b { display: block; font-size: 1.5rem; color: var(--heading); }
.sc-metric span { font-size: .8rem; color: var(--muted); }
.sc-metric-alert { border-color: #f2d5d2; background: #fdf6f5; }
.sc-metric-alert b { color: #a03a32; }

.sc-table-panel { font-size: .88rem; }
.sc-table-panel td { vertical-align: middle; }
.sc-row-late td { background: #fdf6f5; }

.sc-review { border-top: 1px solid #efe9db; padding: 12px 0; }
.sc-review:first-of-type { border-top: none; }
.sc-review-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sc-annotation {
  background: #fbf7ec;
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
  padding: 10px 14px;
  margin-top: 8px;
  font-size: .92rem;
}
.sc-members-list { max-height: 320px; overflow-y: auto; font-size: .84rem; }
.sc-code {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 1.05rem;
  letter-spacing: .06em;
  margin-left: 8px;
}

/* Ścieżka */
.sc-stages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.sc-stage-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  text-decoration: none;
  transition: transform .14s ease, box-shadow .14s ease;
}
.sc-stage-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.sc-stage-current { border-color: var(--gold); border-width: 2px; }
.sc-stage-num {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  font-size: .9rem;
  margin-bottom: 8px;
}
.sc-stage-title { display: block; font-weight: 600; color: var(--heading); }
.sc-stage-soon { display: block; font-size: .74rem; color: var(--muted); margin-top: 6px; }

.sc-checklist { margin-top: 10px; }
.sc-check-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 4px;
  border-bottom: 1px solid #efe9db;
  cursor: pointer;
}
.sc-check-item:last-child { border-bottom: none; }
.sc-check-item input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  flex-shrink: 0;
}
.sc-check-item input:checked + span { color: var(--muted); }
.sc-check-progress { font-size: .88rem; color: var(--gold-deep); font-weight: 600; margin-top: 12px; }

.sc-kodeks { max-width: 720px; }
.sc-kodeks li { margin: 14px 0; }

/* Checkout */
.sc-order-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  margin: 18px 0;
}
.sc-order-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 1.05rem;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.sc-order-badge { color: var(--gold-deep); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin: 10px 0 0; }
.sc-order-list { margin: 14px 0 0 18px; font-size: .92rem; }

/* ═══ Forum (pivot 2026-07-13, wzorzec KFN) ═══════════════════════════ */

.sc-forum-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
@media (max-width: 900px) { .sc-forum-layout { grid-template-columns: 1fr; } }
.sc-head-actions { display: flex; gap: 10px; align-items: center; }

.sc-group { margin: 0 0 26px; }
.sc-group-name {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); margin: 0 0 10px; padding-bottom: 6px;
  border-bottom: 2px solid var(--gold);
}
.sc-cat-row {
  display: grid; grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 1fr);
  gap: 16px; align-items: center;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 18px; margin: 0 0 10px;
}
@media (max-width: 900px) { .sc-cat-row { grid-template-columns: 1fr; gap: 6px; } }
.sc-cat-name { font-weight: 700; color: var(--heading); font-size: 1.02rem; text-decoration: none; }
.sc-cat-name:hover { color: var(--gold-deep); }
.sc-cat-desc { margin: 4px 0 0; font-size: .85rem; color: var(--muted); }
.sc-cat-desc-page { max-width: 720px; color: var(--muted); margin-top: -6px; }
.sc-cat-stats { display: flex; flex-direction: column; gap: 2px; font-size: .82rem; color: var(--muted); white-space: nowrap; }
.sc-cat-stats b { color: var(--heading); }
.sc-cat-latest { font-size: .85rem; min-width: 0; }
.sc-cat-latest a {
  display: block; color: var(--heading); text-decoration: none; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sc-cat-latest a:hover { color: var(--gold-deep); }
.sc-muted { color: var(--muted); font-size: .82rem; }

.sc-forum-side { display: flex; flex-direction: column; gap: 18px; }
.sc-side-box {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px;
}
.sc-side-box h3 { margin: 0 0 10px; font-size: .95rem; }
.sc-side-thread { display: block; padding: 7px 0; border-top: 1px solid var(--line); text-decoration: none; }
.sc-side-thread:first-of-type { border-top: 0; }
.sc-side-title { display: block; color: var(--heading); font-weight: 600; font-size: .88rem; }
.sc-side-thread:hover .sc-side-title { color: var(--gold-deep); }
.sc-side-links { list-style: none; margin: 0; padding: 0; }
.sc-side-links li { padding: 5px 0; }

.sc-thread-nums { display: flex; flex-direction: column; gap: 2px; text-align: right; white-space: nowrap; }
.sc-num { font-size: .82rem; color: var(--muted); }
.sc-num b { color: var(--heading); }
.sc-snippet { display: block; font-size: .85rem; color: var(--muted); margin: 4px 0; }
.sc-snippet mark { background: #f5e9c8; color: inherit; padding: 0 2px; }

/* Widok wątku: post z sylwetką autora (dwie kolumny — wzorzec KFN) */
.sc-thread-head-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.sc-follow-btn {
  border: 1px solid var(--line); background: var(--paper); color: var(--heading);
  border-radius: 999px; padding: 7px 16px; font: inherit; font-size: .88rem;
  font-weight: 600; cursor: pointer; display: inline-flex; gap: 8px; align-items: center;
}
.sc-follow-btn:hover { border-color: var(--gold); }
.sc-follow-on { background: #f7f1df; border-color: var(--gold); }
.sc-follow-count {
  background: var(--gold); color: #fff; border-radius: 999px;
  padding: 1px 8px; font-size: .78rem;
}
.sc-post { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 0; margin: 0 0 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
@media (max-width: 760px) { .sc-post { grid-template-columns: 1fr; } }
.sc-post-first { border-left: 3px solid var(--gold); }
.sc-post-hidden { opacity: .65; }
.sc-author {
  background: #faf7ef; border-right: 1px solid var(--line);
  padding: 14px; font-size: .82rem;
}
@media (max-width: 760px) { .sc-author { border-right: 0; border-bottom: 1px solid var(--line); } }
.sc-author-name { font-weight: 700; color: var(--heading); font-size: .95rem; }
.sc-author-badge {
  display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; border-radius: 4px; padding: 2px 7px; margin: 5px 0;
}
.sc-author-host { background: var(--gold); color: #fff; }
.sc-author-op { background: #eef3fb; color: #33518c; border: 1px solid #ccd9f0; }
.sc-author-facts { margin: 8px 0 0; }
.sc-author-facts div { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.sc-author-facts dt { color: var(--muted); font-weight: 400; }
.sc-author-facts dd { margin: 0; font-weight: 600; color: var(--heading); text-align: right; }
.sc-post-content { padding: 14px 18px; min-width: 0; }
.sc-post-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }

/* Paginacja */
.sc-pages { display: flex; gap: 8px; align-items: center; margin: 16px 0; flex-wrap: wrap; }
.sc-pages a, .sc-page-cur {
  border: 1px solid var(--line); border-radius: 6px; padding: 4px 11px;
  font-size: .85rem; text-decoration: none; color: var(--heading);
}
.sc-page-cur { background: var(--gold); border-color: var(--gold); color: #fff; font-weight: 700; }
.sc-pages a:hover { border-color: var(--gold); }

/* Panel gospodarza */
.sc-panel-sec { margin: 26px 0; }
.sc-metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.sc-metric {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 12px 14px;
}
.sc-metric b { display: block; font-size: 1.3rem; color: var(--heading); }
.sc-metric span { font-size: .8rem; color: var(--muted); }
.sc-queue-row {
  display: flex; justify-content: space-between; gap: 14px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 14px; margin: 0 0 8px; text-decoration: none; color: var(--heading);
}
a.sc-queue-row:hover { border-color: var(--gold); }
.sc-queue-static { flex-wrap: wrap; }
.sc-ok-note { color: #2f6b39; font-size: .9rem; }
.sc-panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.sc-form-inline-grid { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; max-width: none; }
.sc-form-inline-grid input, .sc-form-inline-grid select { margin: 0; }
.sc-members-table { margin-top: 16px; }
.sc-generated-code { background: #f7f1df; border: 1px dashed var(--gold); padding: 8px 12px; border-radius: 6px; }
.sc-review-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; margin: 0 0 10px;
}
@media (max-width: 760px) { .sc-review-row { grid-template-columns: 1fr; } }
.sc-check-inline { display: inline-flex; gap: 6px; align-items: center; font-size: .88rem; color: var(--heading); }

/* ── Społeczność: zdjęcia w wątkach (2026-07-13) ─────────────────────── */
.sc-foto-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px; margin-top: 12px; max-width: 560px;
}
.sc-foto-item { position: relative; margin: 0; }
.sc-foto-item a { display: block; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--line); background: #f4f2ee; }
.sc-foto-item img { display: block; width: 100%; height: 110px; object-fit: cover; }
.sc-foto-item a:hover { border-color: var(--gold); }
.sc-foto-del { margin-top: 2px; display: flex; gap: 6px; align-items: center; }
.sc-foto-del input { font-size: .78rem; padding: 3px 6px; flex: 1; min-width: 0; }
.sc-foto-del .sc-link-btn { font-size: .78rem; }

.sc-foto-upload { margin: 14px 0; }
.sc-foto-label { display: block; font-weight: 600; color: var(--heading); }
.sc-foto-input { display: block; margin-top: 6px; font-size: .9rem; }
.sc-foto-camera { margin-top: 8px; }
.sc-foto-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: flex-start; }
.sc-foto-thumb { position: relative; width: 92px; height: 92px; border-radius: 6px;
  overflow: hidden; border: 1px solid var(--line); }
.sc-foto-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-foto-thumb-del { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px;
  border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff;
  font-size: 14px; line-height: 1; cursor: pointer; }
.sc-foto-counter { width: 100%; font-size: .82rem; color: var(--muted); margin: 2px 0 0; }

.sc-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20,18,14,.92);
  display: flex; align-items: center; justify-content: center; }
.sc-lightbox[hidden] { display: none; }
.sc-lightbox img { max-width: min(92vw, 1400px); max-height: 90vh; border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,.5); }
.sc-lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.12);
  color: #fff; cursor: pointer; border-radius: 8px; padding: 8px 16px; font-size: 26px;
  line-height: 1; }
.sc-lightbox button:hover { background: rgba(255,255,255,.25); }
.sc-lightbox-close { top: 18px; right: 18px; }
.sc-lightbox-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.sc-lightbox-next { right: 14px; top: 50%; transform: translateY(-50%); }
body.sc-lightbox-open { overflow: hidden; }

/* ── Społeczność: lista oczekujących (pre-launch) ────────────────────── */
.sc-waitlist-hero { max-width: 640px; margin: 0 auto; }
.sc-waitlist-form .sc-hp { position: absolute; left: -9999px; top: -9999px; }
.sc-waitlist-ok { background: #eef7ee; border: 1px solid #bfe0bf; border-radius: var(--radius);
  padding: 18px 20px; }
.sc-waitlist-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px; margin: 12px 0; }
.sc-waitlist-stat { background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 14px; }
.sc-waitlist-stat b { font-size: 1.4rem; display: block; color: var(--heading); }

/* ─── Newsletter: zaproszenie dla klientów książki (2026-07-14) ────────
   Zgoda zbierana świadomie — klientów NIE importujemy na listę mailingową
   (zakup produktu to nie zgoda marketingowa). Blok znika po zapisie. */
.nl-invite {
  margin-top: 34px;
  padding: 22px 24px;
  background: #fffdf7;
  border: 1px solid #e8e5de;
  border-left: 3px solid #c5a44e;
  border-radius: 10px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.nl-invite__text { flex: 1 1 340px; }
.nl-invite h2 { margin: 0 0 6px; font-size: 19px; }
.nl-invite p { margin: 0 0 10px; color: #5a656b; line-height: 1.6; }
.nl-invite__consent {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: #8a9196;
}
.nl-invite__btn {
  background: #c5a44e;
  color: #fff;
  border: 0;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
}
.nl-invite__btn:disabled { opacity: 0.6; cursor: not-allowed; }
.nl-invite__msg { color: #b3261e; font-size: 14px; margin-top: 8px; }
.nl-invite__ok { margin: 0; color: #2c2c2c; font-weight: 600; }

/* ─── Kafel modułu „Budowa bez niespodzianek" (M2, 2026-07-18) ─────────
   Pełnej szerokości karta modułu nad biblioteką — moduł prowadzi budowę,
   materiały ją tłumaczą. Widoczna wyłącznie przy user.bbn_access. */
.bbn-module-card {
  margin-top: 34px;
  padding: 26px 28px;
  background: linear-gradient(135deg, #2c2c2c 0%, #3a3a35 100%);
  border: 1px solid #e8e5de;
  border-radius: 10px;
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.bbn-module-card__text { flex: 1 1 380px; }
.bbn-module-card__kicker {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 1.4px;
  font-weight: 700;
  text-transform: uppercase;
  color: #c5a44e;
}
.bbn-module-card h2 { margin: 0 0 8px; font-size: 24px; color: #fff; }
.bbn-module-card p { margin: 0; color: #d9d5cc; line-height: 1.65; }
.bbn-module-card__btn {
  background: #c5a44e;
  color: #fff;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}
.bbn-module-card__btn:hover { background: #b3933f; }

/* ─── Pulpit Start (M3, 2026-07-18) ───────────────────────────
   Kafle wszystkich modułów — widoczne ZAWSZE, stan dostępu uczciwy. */

.start-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 22px;
  margin: 36px 0 44px;
}
.start-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 3px solid var(--gold);
}
.start-card.locked {
  border-top-color: var(--line);
  background: #fbf9f4;
}
.start-card__kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 1.3px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.start-card.locked .start-card__kicker { color: var(--muted); }
.start-card h2 {
  margin: 0;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.start-card__badge {
  font-size: 11px;
  letter-spacing: .8px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 3px 10px;
  white-space: nowrap;
}
.start-card__desc { margin: 0; flex: 1; }
.start-card.locked .start-card__desc { color: var(--muted); }
.start-card__btn {
  align-self: flex-start;
  background: var(--gold);
  color: #fff;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
}
.start-card__btn:hover { background: var(--gold-dark); }
.start-card__btn.ghost {
  background: transparent;
  color: var(--gold-deep);
  border: 1.5px solid var(--gold);
}
.start-card__btn.ghost:hover { background: rgba(197, 164, 78, .08); }

/* Tier 2 (M6): najbliższe przypomnienie budowy na kaflu Start */
.start-card__reminder {
  font-size: .86rem; color: #6b5d33; background: #faf6ea;
  border: 1px solid #eadfc0; border-radius: 8px; padding: 7px 10px;
  margin: 0 0 12px;
}
