/* Komponenty i układ strony */

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: relative; z-index: 20; }
.site-header__in { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: var(--sp-2); text-decoration: none; color: var(--navy-900); font-weight: 800; font-size: 1.125rem; letter-spacing: -0.02em; }
.logo__mark { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.logo small { display: block; font-weight: 600; color: var(--muted); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1; margin-top: 2px; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: var(--sp-1); list-style: none; padding: 0; margin: 0; }
.nav a { display: block; padding: var(--sp-2) var(--sp-3); border-radius: var(--r-md); text-decoration: none; color: var(--text); font-weight: 700; font-size: var(--fs-sm); }
.nav a:hover { background: var(--surface); color: var(--primary); }
.age-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 32px; padding: 0 var(--sp-2); border: 2px solid var(--navy-900); border-radius: var(--r-pill); font-weight: 800; font-size: .8125rem; color: var(--navy-900); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--border); background: #fff; border-radius: var(--r-md); align-items: center; justify-content: center; }
@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .age-badge { order: 3; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); margin: 0; display: none; padding: var(--sp-2) var(--gutter) var(--sp-4); }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { padding: var(--sp-3); }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy-900); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(900px 400px at 85% -10%, rgba(76, 111, 255, .35), transparent 60%),
  linear-gradient(160deg, var(--navy-900) 40%, var(--navy-800)); }
.hero::after { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; right: 0; width: 42%; background: rgba(255, 255, 255, .035); clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); padding-block: var(--sp-6) var(--sp-6); }
.hero__main { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.hero h1 { color: #fff; margin-bottom: var(--sp-4); max-width: 22ch; }
.hero .lead { font-size: var(--fs-lg); color: var(--on-dark-muted); margin-bottom: var(--sp-3); max-width: 62ch; line-height: 1.55; }
.hero .lead strong { color: #fff; }
.trust { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); align-items: center; font-size: var(--fs-sm); color: #fff; font-weight: 700; margin: var(--sp-2) 0 var(--sp-4); }
.trust a { color: #fff; text-decoration-color: rgba(255, 255, 255, .5); }
.trust a:hover { color: var(--gold); }
.trust .sep { color: var(--on-dark-muted); }
.chips { list-style: none; display: flex; gap: var(--sp-2); padding: 0 0 var(--sp-1); margin: 0 0 var(--sp-4); overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips li { flex: none; display: inline-flex; align-items: center; gap: var(--sp-2); padding: 6px 14px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); font-weight: 700; font-size: var(--fs-sm); color: #fff; white-space: nowrap; }
.chips .i { color: var(--gold); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; margin-bottom: var(--sp-4); }
.hero__actions .link-light { color: #fff; font-weight: 700; }
.disclosure { font-size: var(--fs-xs); color: var(--on-dark-muted); margin: 0; max-width: 62ch; line-height: 1.5; }
.disclosure small { color: inherit; }
.disclosure a { color: #fff; }

@media (max-width: 767px) {
  .hero__main .lead--2 { order: 6; }
  .hero__main .disclosure { order: 7; }
  .hero__actions .btn { width: 100%; }
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--sp-7); align-items: center; padding-block: var(--sp-7); }
}

/* ---------- Callout „W skrócie” ---------- */
.callout { background: #fff; color: var(--text); border-radius: var(--r-lg); padding: var(--sp-5); box-shadow: var(--shadow-lg); border-top: 4px solid var(--gold); }
.callout h2 { font-size: var(--fs-h3); display: flex; gap: var(--sp-2); align-items: flex-start; margin-bottom: var(--sp-3); }
.callout h2 .i { color: var(--primary); margin-top: 3px; width: 1.3em; height: 1.3em; }
.callout p { margin: 0; font-size: var(--fs-base); }
.callout a { font-weight: 800; }

/* ---------- Układ główny + TOC ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--sp-7); padding-block: var(--sp-5) var(--sp-7); }
.layout > * { grid-column: 1; min-width: 0; }
.sec { padding-block: var(--sp-6); scroll-margin-top: 12px; }
.sec > h2 { margin-bottom: var(--sp-4); }
.sec > h3, .sec > .h3 { margin: var(--sp-6) 0 var(--sp-3); }
.sec > p, .sec > ul, .sec > ol, .sec > blockquote { max-width: var(--w-text); }
.sec + .sec { border-top: 1px solid var(--border); }

.toc { margin-bottom: var(--sp-4); }
.toc details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.toc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 52px; padding: var(--sp-3) var(--sp-4); font-weight: 800; color: var(--navy-900); cursor: pointer; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; margin-right: 4px; }
.toc details[open] summary::after { transform: rotate(-135deg); }
.toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0 var(--sp-4) var(--sp-4); display: grid; gap: 2px; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: var(--sp-2); padding: 7px 10px; border-radius: var(--r-md); text-decoration: none; color: var(--text); font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; }
.toc a::before { content: counter(toc) "."; color: var(--muted); min-width: 1.6em; font-weight: 700; }
.toc a:hover { background: var(--surface-2); }
.toc a.is-active { background: var(--primary); color: #fff; }
.toc a.is-active::before { color: #dbe3ff; }
@media (min-width: 1024px) {
  .layout { grid-template-columns: minmax(0, 1fr) var(--w-aside); }
  .toc { grid-column: 2; grid-row: 1 / span 60; align-self: start; position: sticky; top: 16px; margin: var(--sp-6) 0 0; max-height: calc(100vh - 32px); overflow: auto; }
  .toc summary { pointer-events: none; cursor: default; }
  .toc summary::after { display: none; }
}

/* ---------- Przyciski i odznaki ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: 48px; padding: 0 var(--sp-5); border-radius: var(--r-md); border: 2px solid transparent; font-weight: 800; font-size: var(--fs-base); text-decoration: none; text-align: center; line-height: 1.2; transition: background-color .15s, transform .15s, box-shadow .15s; }
.btn--cta { background: var(--accent); color: #fff; box-shadow: 0 3px 0 var(--accent-600), var(--shadow-sm); }
.btn--cta:hover { background: var(--accent-600); color: #fff; }
.btn--cta:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--accent-600); }
.btn--light { background: #fff; color: var(--navy-900); }
.btn--light:hover { background: var(--surface-2); color: var(--navy-900); }
.btn--outline { background: #fff; border-color: var(--navy-900); color: var(--navy-900); }
.btn--outline:hover { background: var(--navy-900); color: #fff; }
.btn--sm { min-height: 44px; padding: 0 var(--sp-4); font-size: var(--fs-sm); }
.btn--block { width: 100%; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 800; background: var(--surface-2); color: var(--navy-700); letter-spacing: .01em; }
.badge--pick { background: var(--gold); color: var(--navy-900); }

/* ---------- Filtry ---------- */
.filters { display: flex; gap: var(--sp-2); margin: var(--sp-4) calc(-1 * var(--gutter)) var(--sp-4); padding: var(--sp-1) var(--gutter); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.filters::-webkit-scrollbar { display: none; }
.filter { flex: none; min-height: 44px; padding: 0 var(--sp-4); border-radius: var(--r-pill); border: 1.5px solid var(--border-strong); background: #fff; font-weight: 700; font-size: var(--fs-sm); color: var(--text); }
.filter:hover { border-color: var(--primary); color: var(--primary); }
.filter[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
@media (min-width: 768px) { .filters { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; } }
.empty { padding: var(--sp-5); background: var(--surface); border-radius: var(--r-lg); text-align: center; font-weight: 700; }
.empty button { background: none; border: 0; color: var(--primary); text-decoration: underline; font-weight: 800; padding: 0; }

/* ---------- Karta marki ---------- */
.cards { display: grid; gap: var(--sp-4); list-style: none; padding: 0; margin: 0 0 var(--sp-4); max-width: none !important; }
.card { position: relative; background: #fff; border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-5) var(--sp-4) var(--sp-4); box-shadow: var(--shadow-sm); display: grid; gap: var(--sp-4); scroll-margin-top: 16px; }
.card[hidden] { display: none; }
.card--top { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30, 58, 159, .12), var(--shadow-md); }
.card__rank { position: absolute; left: -1.5px; top: -1.5px; width: 38px; height: 38px; display: grid; place-items: center; background: var(--navy-900); color: #fff; font-weight: 800; border-radius: var(--r-lg) 0 var(--r-md) 0; font-size: 1.0625rem; }
.card--top .card__rank { background: var(--primary); }
.card__brand { display: flex; align-items: center; gap: var(--sp-4); padding-left: 28px; }
.card__logo { width: 136px; height: 56px; object-fit: contain; flex: none; background: var(--navy-900); border-radius: var(--r-md); padding: 6px 10px; }
.rating { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-xs); color: var(--muted); line-height: 1.25; }
.rating a { color: var(--muted); }
.rating__score { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 1.25rem; color: var(--navy-900); }
.rating__score .i { color: var(--gold); width: 1em; height: 1em; }
.rating__score small { font-size: .8125rem; color: var(--muted); font-weight: 700; }
.card__offer { font-size: var(--fs-lg); font-weight: 800; color: var(--navy-900); line-height: 1.25; margin: 0 0 var(--sp-3); display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); margin: 0 0 var(--sp-3); }
.stat { background: var(--surface); border-radius: var(--r-md); padding: 8px 12px; min-width: 0; }
.stat dt { display: flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; color: var(--muted); line-height: 1.2; }
.stat dt .i { width: 1em; height: 1em; color: var(--primary); }
.stat dd { margin: 2px 0 0; font-weight: 800; color: var(--navy-900); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.stat dd .na { color: var(--muted); font-weight: 700; }
.tip { cursor: help; border-bottom: 1px dotted var(--muted); }
.proscons { display: grid; gap: var(--sp-3); margin: 0; }
.proscons ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: var(--fs-sm); line-height: 1.4; }
.proscons li { display: flex; gap: var(--sp-2); }
.proscons .i { margin-top: 2px; }
.pros .i { color: var(--success); }
.cons .i { color: var(--danger); }
.card__cta { display: grid; gap: var(--sp-2); align-content: start; }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); border: 2px dashed var(--primary); border-radius: var(--r-md); padding: 4px 4px 4px 12px; background: var(--surface-2); font-weight: 800; color: var(--navy-900); }
.code-box button { min-height: 40px; border: 0; border-radius: var(--r-sm); background: var(--primary); color: #fff; padding: 0 12px; font-weight: 800; font-size: var(--fs-sm); }
.code-box button:hover { background: var(--primary-600); }
.card__more { text-align: center; font-weight: 800; font-size: var(--fs-sm); padding: 8px 0; }
.card__checked { text-align: center; font-size: var(--fs-xs); color: var(--muted); margin: 0; display: flex; gap: 6px; align-items: center; justify-content: center; }
.card__checked .i { color: var(--success); width: 1em; height: 1em; }
.card__legal { grid-column: 1 / -1; margin: 0; padding-top: var(--sp-3); border-top: 1px solid var(--border); font-size: var(--fs-xs); color: var(--muted); }
.note { font-size: var(--fs-sm); color: var(--muted); max-width: var(--w-text); }

@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
  .proscons { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .card { grid-template-columns: 160px minmax(0, 1fr) 224px; gap: var(--sp-5); padding: var(--sp-5); align-items: start; }
  .card__brand { flex-direction: column; align-items: flex-start; gap: var(--sp-3); padding: var(--sp-5) 0 0 0; }
  .card__logo { width: 152px; height: 64px; }
  .card__cta { align-self: center; }
  .card__cta .btn { padding: 0 var(--sp-3); white-space: nowrap; }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .card { grid-template-columns: 150px minmax(0, 1fr); }
  .card__cta { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; align-items: center; }
  .card__cta .card__more, .card__cta .card__checked { grid-column: auto; }
}

/* ---------- Tabele ---------- */
.table-wrap { position: relative; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) var(--sp-3); border-block: 1px solid var(--border); -webkit-overflow-scrolling: touch;
  background:
    linear-gradient(to right, #fff 30%, rgba(255,255,255,0)) 0 0 / 40px 100% no-repeat local,
    linear-gradient(to left, #fff 30%, rgba(255,255,255,0)) 100% 0 / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(11,20,55,.22), transparent) 0 0 / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(11,20,55,.22), transparent) 100% 0 / 14px 100% no-repeat scroll; }
@media (min-width: 768px) { .table-wrap { margin-inline: 0; border: 1px solid var(--border); border-radius: var(--r-lg); } }
table { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); }
th, td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
thead th { background: var(--navy-900); color: #fff; font-weight: 800; white-space: nowrap; font-size: .8125rem; position: sticky; top: 0; }
tbody tr:nth-child(even) td, tbody tr:nth-child(even) th { background: rgba(243, 245, 250, .96); }
tbody tr:nth-child(odd) td, tbody tr:nth-child(odd) th { background: rgba(255, 255, 255, .96); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 800; color: var(--navy-900); }
.table--cmp { min-width: 560px; }
.table--cmp th:first-child, .table--cmp td:first-child { position: sticky; left: 0; z-index: 2; box-shadow: 1px 0 0 var(--border); white-space: nowrap; }
.table--cmp thead th:first-child { z-index: 3; }
.table--cmp .na, .na { color: var(--muted); }
.sort-btn { background: none; border: 0; color: inherit; font: inherit; font-weight: 800; display: inline-flex; gap: 6px; align-items: center; padding: 0; white-space: nowrap; }
.sort-btn::after { content: "↕"; opacity: .6; font-size: .8em; }
th[aria-sort="ascending"] .sort-btn::after { content: "↑"; opacity: 1; }
th[aria-sort="descending"] .sort-btn::after { content: "↓"; opacity: 1; }
.table--plain { min-width: 0; }
.table-wrap--plain { margin-inline: 0; border: 1px solid var(--border); border-radius: var(--r-lg); }
.slot-cell { display: flex; align-items: center; gap: var(--sp-3); font-weight: 800; color: var(--navy-900); }
.slot-cell img { border-radius: var(--r-md); flex: none; }
.table--slots { min-width: 720px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Akordeony ---------- */
.acc { border: 1.5px solid var(--border); border-radius: var(--r-lg); background: #fff; margin: 0 0 var(--sp-3); }
.acc > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 56px; padding: var(--sp-3) var(--sp-4); cursor: pointer; font-weight: 800; color: var(--navy-900); }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2.5px solid var(--primary); border-bottom: 2.5px solid var(--primary); transform: rotate(45deg); transition: transform .2s; margin-right: 4px; }
.acc[open] > summary::after { transform: rotate(-135deg); }
.acc > summary:hover { background: var(--surface); border-radius: var(--r-lg); }
.acc__body { padding: 0 var(--sp-4) var(--sp-4); }
.acc[open] > summary { border-bottom: 1px solid var(--border); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.acc__body > :last-child { margin-bottom: 0; }
.acc__body { padding-top: var(--sp-4); }

/* ---------- Metodologia ---------- */
.criteria { counter-reset: crit; }
.reject { list-style: none; padding: 0; display: grid; gap: var(--sp-2); }
.reject li { display: flex; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); background: var(--danger-bg); border-radius: var(--r-md); font-size: var(--fs-sm); font-weight: 600; max-width: var(--w-text); }
.reject .i { color: var(--danger); margin-top: 2px; }
.h-label { font-weight: 800; color: var(--navy-900); margin: var(--sp-5) 0 var(--sp-2); }

/* ---------- Recenzje ---------- */
.review { border: 1.5px solid var(--border); border-radius: var(--r-lg); background: #fff; margin: 0 0 var(--sp-4); scroll-margin-top: 16px; }
.review > .review__head, .review > summary { padding: var(--sp-4); }
.review > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); cursor: pointer; min-height: 60px; }
.review > summary::-webkit-details-marker { display: none; }
.review > summary h3 { margin: 0; }
.review__toggle { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 800; color: var(--primary); }
.review__toggle::after { content: ""; width: 9px; height: 9px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); transition: transform .2s; margin-left: 4px; }
.review[open] .review__toggle::after { transform: rotate(-135deg); }
.review[open] > summary { border-bottom: 1px solid var(--border); }
.review__body { padding: var(--sp-4); max-width: calc(var(--w-text) + 2 * var(--sp-4)); }
.review__head h3 { margin: 0; }
.review__head + .review__body { padding-top: 0; }
.facts { width: 100%; margin-bottom: var(--sp-4); }
.facts th { background: var(--surface); color: var(--muted); font-size: .75rem; text-transform: none; position: static; white-space: normal; }
.facts td { font-weight: 800; color: var(--navy-900); }
.facts .na { font-weight: 700; }
.facts-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-md); margin-bottom: var(--sp-4); }
.facts-wrap table { margin: 0; min-width: 520px; }
.facts-wrap tr > * { border-bottom: 0; }
.review__pc { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.review__pc ul { list-style: none; padding: 0; margin: 0; font-size: var(--fs-sm); display: grid; gap: 4px; }
.review__pc li { display: flex; gap: var(--sp-2); }
.review__pc .pros .i { color: var(--success); margin-top: 2px; }
.review__pc .cons .i { color: var(--danger); margin-top: 2px; }
.review__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-4); align-items: center; }
@media (min-width: 640px) { .review__pc { grid-template-columns: 1fr 1fr; } }

/* ---------- Rodzaje bonusu, błędy ---------- */
.kinds { list-style: none; padding: 0; display: grid; gap: var(--sp-3); margin: var(--sp-4) 0; max-width: none !important; }
.kinds li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--sp-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-4); font-size: var(--fs-sm); line-height: 1.5; }
.kinds .ico { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--primary); color: #fff; display: grid; place-items: center; }
.kinds .ico .i { width: 22px; height: 22px; }
.kinds li.is-warn .ico { background: var(--warning); }
@media (min-width: 640px) { .kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.mistakes { list-style: none; padding: 0; display: grid; gap: var(--sp-3); margin: var(--sp-4) 0; max-width: none !important; }
.mistakes li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--sp-3); padding: var(--sp-4); border: 1px solid var(--border); border-left: 4px solid var(--danger); border-radius: var(--r-md); font-size: var(--fs-sm); background: #fff; line-height: 1.5; }
.mistakes .i { color: var(--danger); width: 1.4em; height: 1.4em; }
.mistakes em { display: block; margin-top: 4px; color: var(--muted); font-style: normal; }
.mistakes em::before { content: "→ "; color: var(--success); font-weight: 800; }
@media (min-width: 768px) { .mistakes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Stepper ---------- */
.stepper { list-style: none; counter-reset: step; padding: 0; margin: var(--sp-4) 0; display: grid; gap: 0; max-width: var(--w-text); }
.stepper > li { counter-increment: step; position: relative; padding: 0 0 var(--sp-5) 56px; }
.stepper > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; z-index: 1; }
.stepper > li::after { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--border-strong); }
.stepper > li:last-child { padding-bottom: 0; }
.stepper > li:last-child::after { display: none; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); margin: var(--sp-5) 0; list-style: none; padding: 0; }
.shot { margin: 0; aspect-ratio: 3 / 2; border: 2px dashed var(--border-strong); border-radius: var(--r-md); background: var(--surface); display: grid; place-items: center; text-align: center; padding: var(--sp-3); font-size: var(--fs-xs); color: var(--muted); font-weight: 700; }
.shot .i { display: block; margin: 0 auto 6px; width: 1.8em; height: 1.8em; }
@media (min-width: 768px) { .shots { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Przykład obliczeniowy ---------- */
.example { max-width: 560px; background: var(--navy-900); color: #fff; border-radius: var(--r-lg); padding: var(--sp-4) var(--sp-5); margin: var(--sp-4) 0; }
.example p { margin: 0 0 var(--sp-2); font-weight: 800; color: var(--gold); font-size: var(--fs-sm); letter-spacing: .04em; text-transform: uppercase; }
.example pre { margin: 0; overflow-x: auto; font: 600 .875rem/1.9 ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; color: #e5ebff; }
.infographic { max-width: 720px; margin: var(--sp-5) 0; }
.infographic img { width: 100%; height: auto; border-radius: var(--r-lg); }

/* ---------- Płatności / odpowiedzialna gra ---------- */
.pay-list { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); padding: 0; margin: var(--sp-3) 0 var(--sp-4); }
.pay-list img { height: 32px; width: auto; }
.help-list { list-style: none; padding: 0; display: grid; gap: var(--sp-3); margin: var(--sp-4) 0; max-width: none !important; }
.help-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--sp-3); align-items: start; padding: var(--sp-3) var(--sp-4); background: var(--surface); border-radius: var(--r-md); }
.help-list .ico { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--border); display: grid; place-items: center; color: var(--primary); }
.responsible { background: var(--surface); border-radius: var(--r-lg); padding: var(--sp-5); border: 0 !important; }
.sec.responsible { padding: var(--sp-5) var(--sp-4); margin-block: var(--sp-5); }
.age-big { display: inline-flex; width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--navy-900); align-items: center; justify-content: center; font-weight: 800; margin-bottom: var(--sp-3); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--sp-3); }
.faq details { border: 1.5px solid var(--border); border-radius: var(--r-lg); background: #fff; }
.faq details[open] { background: var(--surface); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); min-height: 60px; padding: var(--sp-3) var(--sp-4); cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 1.0625rem; margin: 0; letter-spacing: -0.01em; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2.5px solid var(--primary); border-bottom: 2.5px solid var(--primary); transform: rotate(45deg); transition: transform .2s; margin-right: 4px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .faq__a { padding: 0 var(--sp-4) var(--sp-4); max-width: var(--w-text); }
.faq .faq__a p { margin: 0; }

/* ---------- Podsumowanie: „Najlepsze dla…” ---------- */
.best { list-style: none; display: grid; gap: var(--sp-3); padding: 0; margin: var(--sp-5) 0; }
.best li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); }
.best .best__tag { font-size: var(--fs-xs); font-weight: 800; color: var(--primary); letter-spacing: .05em; text-transform: uppercase; }
.best strong { color: var(--navy-900); }
.best a.btn { margin-top: auto; }
@media (min-width: 640px) { .best { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .best { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.signature { font-style: italic; color: var(--muted); }

/* ---------- Autor ---------- */
.author { display: grid; gap: var(--sp-4); padding: var(--sp-5); border: 1.5px solid var(--border); border-radius: var(--r-lg); background: #fff; margin: var(--sp-6) 0; }
.author h2 { font-size: var(--fs-h3); margin-bottom: var(--sp-3); }
.author__person { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--sp-4); align-items: start; }
.author__photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.author__photo--sm { width: 64px; height: 64px; }
.author__name { font-weight: 800; color: var(--navy-900); font-size: var(--fs-lg); margin: 0; }
.author__role { color: var(--muted); font-size: var(--fs-sm); margin: 0 0 var(--sp-2); font-weight: 600; }
.author p { font-size: var(--fs-sm); }
.author__reviewer { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--sp-4); align-items: center; padding-top: var(--sp-4); border-top: 1px solid var(--border); }
.author__reviewer p { margin: 0; }

/* ---------- Źródła ---------- */
.sources { font-size: var(--fs-sm); }
.sources ul { padding-left: 1.2rem; }
.sources li { margin-bottom: var(--sp-2); }

/* ---------- Stopka ---------- */
.site-footer { background: var(--navy-900); color: var(--on-dark-muted); padding-block: var(--sp-7) calc(var(--sp-6) + 72px); font-size: var(--fs-sm); }
.site-footer a { color: #fff; }
.site-footer .logo { color: #fff; }
.site-footer .logo small { color: var(--on-dark-muted); }
.footer__grid { display: grid; gap: var(--sp-5); margin-bottom: var(--sp-5); }
.footer__nav { list-style: none; padding: 0; display: grid; gap: var(--sp-2); }
.footer__nav a { text-decoration: none; font-weight: 700; display: inline-block; padding: 4px 0; }
.footer__nav a:hover { text-decoration: underline; }
.footer__legal { border-top: 1px solid rgba(255, 255, 255, .16); padding-top: var(--sp-4); display: grid; gap: var(--sp-3); }
.footer__legal p { margin: 0; line-height: 1.55; }
.footer__rg { color: #fff; font-weight: 800; display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; }
.site-footer .age-badge { border-color: #fff; color: #fff; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.3fr 1fr; } .footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer { padding-bottom: var(--sp-6); } }

/* ---------- Sticky CTA (mobile) ---------- */
.sticky-cta { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(11, 20, 55, .14); padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: var(--sp-3); transform: translateY(110%); transition: transform .25s; visibility: hidden; }
.sticky-cta.is-visible { transform: none; visibility: visible; }
.sticky-cta__text { flex: 1; min-width: 0; font-size: .8125rem; font-weight: 800; color: var(--navy-900); line-height: 1.25; }
.sticky-cta__text span { display: block; color: var(--muted); font-weight: 600; font-size: .75rem; }
.sticky-cta .btn { min-height: 44px; padding: 0 var(--sp-4); font-size: var(--fs-sm); white-space: nowrap; }
.sticky-cta__close { flex: none; width: 44px; height: 44px; border: 0; background: var(--surface); border-radius: 50%; display: grid; place-items: center; }
@media (min-width: 768px) { .sticky-cta { display: none; } }
.table--slots td { vertical-align: middle; }

@media (max-width: 639px) {
  .facts-wrap table { min-width: 0; }
  .facts thead { display: none; }
  .facts tbody, .facts tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts td { display: block; border-bottom: 1px solid var(--border); }
  .facts td::before { content: attr(data-label); display: block; font-size: .75rem; color: var(--muted); font-weight: 700; }
}

@media (min-width: 1024px) { .toc { grid-row: 2 / span 60 !important; margin-top: var(--sp-5) !important; } }

/* ---------- Podstrony ---------- */
.page-hero { padding-block: var(--sp-6) var(--sp-6); }
.page-hero h1 { max-width: 24ch; margin-bottom: var(--sp-4); }
.page-hero .lead a, .page-hero .lead strong { color: #fff; }
.page-hero .lead .i { color: var(--gold); }
.crumbs { font-size: var(--fs-sm); color: var(--on-dark-muted); margin: 0 0 var(--sp-3); }
.crumbs a { color: #fff; }
.help-bar { background: var(--warning-bg); color: var(--navy-900); font-weight: 700; font-size: var(--fs-sm); text-align: center; padding: 8px var(--gutter); }
.help-bar a { color: inherit; }
.layout--single > .sec { max-width: var(--w-text); }
.sec > .table-wrap { max-width: none; }
@media (min-width: 1024px) { .toc--top { grid-row: 1 / span 60 !important; margin-top: var(--sp-5) !important; } }

/* ---------- Baner cookies ---------- */
.cc[hidden] { display: none; }
.cc { position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; padding: var(--sp-3); pointer-events: none; }
.cc__box { pointer-events: auto; max-width: 760px; margin-inline: auto; background: #fff; border: 1px solid var(--border-strong); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: var(--sp-4); font-size: var(--fs-sm); }
.cc__box p { margin: 0 0 var(--sp-3); }
.cc__title { font-weight: 800; color: var(--navy-900); font-size: var(--fs-base); }
.cc__settings { display: grid; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.cc__opt { display: flex; gap: var(--sp-2); align-items: center; min-height: 44px; }
.cc__opt input { width: 20px; height: 20px; accent-color: var(--primary); }
.cc__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.cc__actions .btn { flex: 1 1 140px; }
.cc__actions [hidden] { display: none; }
.has-cc .sticky-cta { display: none; }
.linklike { background: none; border: 0; padding: 4px 0; color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.linklike:hover { text-decoration: underline; }
.cc__settings[hidden] { display: none; }
