
* { box-sizing: border-box; }
body {
  overflow-x: hidden;
  max-width: 100vw;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
:root {
  --bg: #0B0D1A;
  --bg_elevated: #141830;
  --surface: #1B2040;
  --surface_alt: #10142A;
  --border: rgba(229,23,94,0.18);
  --border_soft: rgba(255,255,255,0.09);
  --text: #EEF1F8;
  --text_muted: #A2AAC4;
  --text_inverse: #0B0D1A;
  --accent: #E5175E;
  --accent_hover: #C21050;
  --accent_soft: rgba(229,23,94,0.12);
  --accent_glow: rgba(229,23,94,0.28);
  --cta: #22C55E;
  --cta_hover: #16A34A;
  --warn: #F59E0B;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-xs: 5px;
  --shadow-card: 0 2px 14px rgba(0,0,0,0.45);
  --shadow-card-hover: 0 10px 34px rgba(229,23,94,0.22);
  --gradient-hero: linear-gradient(155deg,#141830 0%,#1B2040 48%,#3A1030 100%);
}
html {
  scroll-behavior: auto;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a,
button {
  min-width: 44px;
  min-height: 44px;
}
a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
p,
ul,
ol,
dl {
  margin: 0 0 14px;
}
h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 14px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(11,13,26,0.94);
  border-bottom: 1px solid var(--border_soft);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled {
  background: rgba(11,13,26,0.98);
  box-shadow: var(--shadow-card);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
}
.brand {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--border_soft);
  border-radius: 999px;
  color: var(--warn);
  font-weight: 700;
  font-size: 0.9rem;
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border_soft);
  border-radius: var(--radius-xs);
}
.nav-toggle-bars {
  display: grid;
  gap: 4px;
}
.nav-toggle-bars span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}
.site-nav {
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  display: none;
  padding: 10px 14px 14px;
  background: var(--bg_elevated);
  border-bottom: 1px solid var(--border_soft);
}
.site-header.menu-open .site-nav {
  display: block;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.site-nav a {
  justify-content: flex-start;
  width: 100%;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: var(--text_muted);
  background: var(--surface_alt);
  border: 1px solid var(--border_soft);
}
.site-nav a:hover {
  color: var(--text);
  border-color: var(--border);
}
.hero {
  background: var(--gradient-hero);
  border-bottom: 1px solid var(--border_soft);
}
.hero-inner {
  padding: 18px 0 20px;
}
.kicker {
  margin-bottom: 8px;
  color: var(--text_muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 900px;
  font-size: 2rem;
}
.hero-lead {
  max-width: 880px;
  margin-top: 10px;
  color: var(--text);
}
.byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  color: var(--text_muted);
  font-size: 0.95rem;
}
.byline-badge,
.author-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--accent_soft);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 800;
  flex: 0 0 36px;
}
.byline a,
.author-box a,
.prose a,
.responsible a,
.footer-note a,
.widget-stack a,
.review-actions a,
.toprow-actions a,
.site-footer a {
  justify-content: flex-start;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.byline a:hover,
.author-box a:hover,
.prose a:hover,
.responsible a:hover,
.footer-note a:hover,
.widget-stack a:hover,
.review-actions a:hover,
.toprow-actions a:hover,
.site-footer a:hover {
  color: var(--accent);
}
.hero-cta {
  margin-top: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary {
  background: var(--cta);
  color: var(--text_inverse);
  box-shadow: 0 0 0 0 var(--accent_glow);
}
.btn-primary:hover {
  background: var(--cta_hover);
}
.btn-accent {
  background: var(--accent);
  color: var(--text);
  box-shadow: 0 0 0 0 var(--accent_glow);
}
.btn-accent:hover {
  background: var(--accent_hover);
  box-shadow: var(--shadow-card-hover);
}
.text-link {
  color: var(--text_muted);
  font-size: 0.95rem;
}
main section {
  padding: 22px 0;
}
.section-head {
  margin-bottom: 8px;
}
.section-head h2 {
  font-size: 1.55rem;
}
.section-lead {
  color: var(--text_muted);
  max-width: 900px;
}
.ranking-list {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}
.toprow {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border_soft);
  box-shadow: var(--shadow-card);
}
.toprow--top {
  background: linear-gradient(180deg, var(--accent_soft), transparent), var(--surface);
  border-color: var(--border);
}
.toprow-ribbon {
  position: absolute;
  top: 12px;
  right: 12px;
}
.toprow-main {
  display: grid;
  grid-template-columns: 52px 96px 1fr;
  gap: 12px;
  align-items: center;
}
.toprow-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--surface_alt);
  border: 1px solid var(--border_soft);
  font-weight: 800;
  font-size: 1.1rem;
}
.toprow-logo {
  width: 100%;
  max-width: 150px;
  aspect-ratio: 15 / 8;
  object-fit: contain;
  background: var(--surface_alt);
  border: 1px solid var(--border_soft);
  border-radius: var(--radius-sm);
  padding: 8px;
}
.toprow-brand h3 {
  font-size: 1.15rem;
}
.toprow-award {
  margin-top: 4px;
  color: var(--text_muted);
  font-size: 0.95rem;
}
.toprow-offer {
  display: grid;
  gap: 4px;
}
.toprow-label,
.review-label {
  color: var(--text_muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.toprow-bonus {
  font-size: 1.05rem;
}
.toprow-fs:empty {
  display: none;
}
.toprow-fs {
  color: var(--text_muted);
  font-size: 0.95rem;
}
.toprow-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.toprow-meta div,
.review-facts div {
  padding: 10px 12px;
  background: var(--surface_alt);
  border: 1px solid var(--border_soft);
  border-radius: var(--radius-sm);
}
.toprow-meta dt,
.review-facts dt {
  margin: 0 0 2px;
  color: var(--text_muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.toprow-meta dd,
.review-facts dd {
  margin: 0;
  font-weight: 700;
}
.toprow-rating {
  display: flex;
  align-items: center;
}
.stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
}
.toprow-actions,
.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.review-list {
  margin-top: 14px;
  display: grid;
  gap: 16px;
}
.review-card {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border_soft);
  box-shadow: var(--shadow-card);
}
.review-head {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}
.review-head-main {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
}
.review-logo {
  width: 92px;
  height: 56px;
  object-fit: contain;
  background: var(--surface_alt);
  border: 1px solid var(--border_soft);
  border-radius: var(--radius-sm);
  padding: 8px;
}
.review-head h3 {
  font-size: 1.3rem;
}
.review-rating-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.review-score {
  font-weight: 800;
}
.review-facts {
  display: grid;
  gap: 10px;
  margin: 0;
}
.review-procon {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}
.review-col h4 {
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.review-col ul {
  margin: 0;
  padding-left: 18px;
}
.review-body {
  color: var(--text);
}
.review-body p + p {
  margin-top: 12px;
}
.proof-table-wrap,
.compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border_soft);
  border-radius: var(--radius-sm);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: var(--surface_alt);
}
th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border_soft);
  text-align: left;
  vertical-align: top;
}
th {
  color: var(--text);
  font-size: 0.9rem;
  background: var(--bg_elevated);
}
td {
  color: var(--text_muted);
}
td strong {
  color: var(--text);
}
.course-note,
.proof-note {
  margin-top: 10px;
  color: var(--text_muted);
}
.prose {
  max-width: 900px;
}
.prose strong {
  color: var(--text);
}
.prose ol,
.prose ul {
  padding-left: 20px;
}
.content-section {
  border-top: 1px solid var(--border_soft);
}
.content-section h2 {
  font-size: 1.45rem;
  margin-bottom: 12px;
}
.faq-list {
  margin-top: 14px;
  border-top: 1px solid var(--border_soft);
}
.faq-item {
  border-bottom: 1px solid var(--border_soft);
}
.faq-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  text-align: left;
  font-weight: 700;
}
.faq-button span:last-child {
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
}
.faq-answer {
  padding: 0 0 14px;
  color: var(--text_muted);
}
.author-box {
  display: grid;
  gap: 12px;
  padding: 16px 0 0;
  border-top: 1px solid var(--border_soft);
  max-width: 900px;
}
.author-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-title {
  color: var(--text_muted);
}
.responsible {
  border-top: 1px solid var(--border_soft);
  padding-top: 16px;
}
.responsible p + p {
  margin-top: 10px;
}
.site-footer {
  margin-top: 10px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--border_soft);
  background: var(--surface_alt);
}
.footer-grid {
  display: grid;
  gap: 18px;
}
.footer-cols {
  display: grid;
  gap: 18px;
}
.footer-col h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.footer-col a {
  justify-content: flex-start;
  color: var(--text_muted);
}
.footer-col a:hover {
  color: var(--text);
}
.widget-stack {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}
.footer-note {
  color: var(--text_muted);
  font-size: 0.95rem;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--text_muted);
}
.footer-meta strong {
  color: var(--warn);
}
@media (min-width: 768px) {
  .container {
    padding: 0 20px;
  }
  .header-inner {
    min-height: 60px;
  }
  .site-nav {
    position: static;
    display: block;
    padding: 0;
    background: transparent;
    border: 0;
  }
  .site-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .site-nav a {
    padding: 0 12px;
    background: transparent;
    border: 0;
  }
  .nav-toggle {
    display: none;
  }
  .hero-inner {
    padding: 24px 0 26px;
  }
  .hero h1 {
    font-size: 2.8rem;
  }
  main section {
    padding: 28px 0;
  }
  .section-head h2,
  .content-section h2 {
    font-size: 1.8rem;
  }
  .toprow {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr) 140px 200px;
    align-items: center;
  }
  .toprow-main {
    grid-column: 1;
  }
  .toprow-offer {
    grid-column: 2;
  }
  .toprow-meta {
    grid-column: 3;
    grid-template-columns: 1fr;
  }
  .toprow-rating {
    grid-column: 3;
    justify-content: flex-start;
  }
  .toprow-actions {
    grid-column: 4;
    justify-content: flex-end;
    align-items: stretch;
    flex-direction: column;
  }
  .toprow-rating {
    align-self: start;
    margin-top: 6px;
  }
  .review-head {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: start;
  }
  .review-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .review-procon {
    grid-template-columns: 1fr 1fr;
  }
  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .header-inner {
    min-height: 64px;
  }
  .brand {
    font-size: 1.2rem;
  }
  .hero h1 {
    font-size: 3.1rem;
  }
  .hero-inner {
    padding: 26px 0 28px;
  }
  .ranking-list,
  .review-list {
    gap: 18px;
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
    align-items: start;
  }
  .footer-cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

main section,.faq-item,[id]{scroll-margin-top:72px}
/* --- ranking row escalation --- */
.toprow--top{background:linear-gradient(180deg,var(--accent_soft),transparent),var(--surface);border-color:var(--border)}
.toprow-ribbon{position:absolute;top:0;right:14px;transform:translateY(-50%);padding:4px 10px;border-radius:999px;
  background:var(--accent);color:#fff;font-size:.72rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.toprow{overflow:visible}
.ranking-list{margin-top:10px}
.stars{letter-spacing:2px;font-size:.95rem}
/* --- prose links keep the 44px target without breaking the line box --- */
.prose a,.responsible a,.byline a{vertical-align:middle}
/* --- mobile compaction: the pixel gate measures the first card at 375px --- */
@media (max-width:767px){
  .header-inner{min-height:52px}
  .site-nav{top:52px}
  .hero-inner{padding:12px 0 14px}
  .kicker{margin-bottom:6px;font-size:.72rem}
  .hero h1{font-size:1.5rem}
  .hero-lead{margin-top:8px;font-size:.92rem;line-height:1.45}
  .byline{margin-top:8px;font-size:.82rem;gap:8px;line-height:1.25}
  .toprow-meta dd{font-size:.92rem}
  .toprow-meta dt{font-size:.72rem}
  /* the wpłata value is the longest of the three stats — give it the room and
     keep the PLN approximation from breaking mid-parenthesis */
  .toprow-meta{grid-template-columns:minmax(0,.8fr) minmax(0,1.5fr) minmax(0,.8fr);gap:8px}
  .toprow-meta div{padding:8px 9px;min-width:0}
  .toprow-meta dd{font-size:.88rem;line-height:1.25;overflow-wrap:break-word}
  .toprow-meta dd .nowrap{white-space:nowrap}
  .byline-badge{width:32px;height:32px;flex:0 0 32px;font-size:.85rem}
  .hero-cta{margin-top:10px}
  .hero-cta .btn{width:100%}
  main section{padding:14px 0}
  #rankings{padding-top:8px}
  .section-head{margin-bottom:6px}
  .section-head h2{font-size:1.12rem}
  /* the toplist must clear the pixel gate: lead moves under the cards on mobile,
     DOM order (and therefore SEO/reading order in source) is untouched */
  #rankings > .container{display:flex;flex-direction:column}
  #rankings .section-head{order:1}
  #rankings .ranking-list{order:2;margin-top:6px}
  #rankings .section-lead{order:3;margin:12px 0 0;font-size:.88rem;line-height:1.45;color:var(--text_muted)}
  .content-section h2{font-size:1.25rem}
  .toprow-main{grid-template-columns:44px 88px 1fr;gap:10px}
  .toprow-rank{width:44px;height:44px}
  .toprow-actions .btn{flex:1 1 100%}
}
@media (min-width:768px){
  .toprow-ribbon{right:auto;left:14px}
  /* compact the desktop row: the offer, the numbers and the CTA on one band */
  .toprow{grid-template-columns:minmax(0,1.15fr) minmax(210px,1fr) 165px 185px;
    align-items:center;padding:12px 14px}
  .toprow-main{grid-column:1;grid-row:1}
  .toprow-offer{grid-column:2;grid-row:1}
  .toprow-meta{grid-column:3;grid-row:1;grid-template-columns:1fr;gap:6px}
  .toprow-meta div{padding:7px 10px}
  .toprow-meta dt{font-size:.72rem}
  .toprow-meta dd{font-size:.95rem}
  .toprow-rating{grid-column:4;grid-row:1;align-self:start;justify-content:center}
  .toprow-actions{grid-column:4;grid-row:1;align-self:end;flex-direction:column;gap:6px}
  .toprow-actions .btn{width:100%}
}

