/* Parimatch Gratyfikacja — design system (see docs/DESIGN_SYSTEM.md) */

:root {
  --bg-base:    #0a1310;
  --bg-surface: #101a16;
  --bg-raised:  #17241e;

  --border:        #22332a;
  --border-subtle: rgba(34,51,42,0.5);

  --brand:       #e8ff00;
  --brand-dim:   rgba(232,255,0,0.08);
  --brand-hover: #d4ea00;

  --emerald:      #2dd9a3;
  --emerald-dim:  rgba(45,217,163,0.12);
  --emerald-glow: rgba(45,217,163,0.25);

  --text-primary:   #eaf5f0;
  --text-secondary: #8ba39a;
  --text-inverse:   #0a1310;

  --font-headline: 'Sora', sans-serif;
  --font-body:     'Inter', sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;

  --sp1:  0.25rem;
  --sp2:  0.5rem;
  --sp3:  0.75rem;
  --sp4:  1rem;
  --sp5:  1.25rem;
  --sp6:  1.5rem;
  --sp8:  2rem;
  --sp10: 2.5rem;
  --sp12: 3rem;
  --sp16: 4rem;
  --sp20: 5rem;

  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  12px;
  --r-xl:  16px;
  --r-full: 9999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-headline);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.375rem, 3vw, 2rem); margin-bottom: var(--sp5); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: var(--sp3); }

p { margin-bottom: var(--sp4); color: var(--text-primary); }
p.lead { font-size: var(--text-lg); color: var(--text-secondary); }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--sp4);
}
@media (min-width: 768px) {
  .container { padding: 0 var(--sp8); }
}

/* ---------- 18+ bar ---------- */
.age-bar {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: var(--sp2) var(--sp4);
}
.age-bar span {
  color: var(--text-secondary);
  font-size: var(--text-xs);
}
.age-bar .ok { color: var(--emerald); margin-right: var(--sp1); }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp4);
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--sp2);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--text-primary);
}
.logo img { width: 32px; height: 32px; }
.logo span { color: var(--brand); }

.site-nav {
  display: none;
  gap: var(--sp6);
  font-size: var(--text-sm);
  font-weight: 500;
}
.site-nav a { color: var(--text-secondary); transition: color .2s; }
.site-nav a:hover { color: var(--text-primary); }
@media (min-width: 900px) {
  .site-nav { display: flex; }
}

.header-actions { display: flex; align-items: center; gap: var(--sp4); }
.header-actions .btn-sm { display: none; }
@media (min-width: 640px) {
  .header-actions .btn-sm { display: inline-block; }
}

.nav-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
}

.mobile-drawer {
  display: none;
  flex-direction: column;
  gap: var(--sp1);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: var(--sp4);
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a {
  padding: var(--sp3) var(--sp2);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  border-radius: var(--r-sm);
}
.mobile-drawer a:hover { background: var(--bg-raised); color: var(--text-primary); }
@media (min-width: 900px) {
  .mobile-drawer { display: none !important; }
}

/* ---------- CTA button ---------- */
.btn {
  display: inline-block;
  background: var(--brand);
  color: var(--text-inverse);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: var(--sp3) var(--sp8);
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  transition: background .2s;
  text-align: center;
}
.btn:hover { background: var(--brand-hover); }
.btn-sm { padding: var(--sp2) var(--sp5); font-size: var(--text-sm); }
@media (max-width: 640px) {
  .btn-block-mobile { display: block; width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--bg-base);
  padding: var(--sp16) 0 var(--sp20);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp10);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; }
}
.hero-content .eyebrow {
  font-family: var(--font-headline);
  color: var(--emerald);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp4);
  display: inline-block;
}
.hero-content h1 { color: var(--text-primary); margin-bottom: var(--sp5); }
.hero-content p.lead { margin-bottom: var(--sp6); }
.hero-ctas { display: flex; gap: var(--sp4); flex-wrap: wrap; }

/* Ranked bar-chart / leaderboard visual */
.leaderboard {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: var(--sp5);
  height: 320px;
  max-width: 380px;
  margin: 0 auto;
}
.lb-item { display: flex; flex-direction: column; align-items: center; gap: var(--sp3); }
.lb-badge {
  width: 32px; height: 32px;
  border-radius: var(--r-full);
  background: var(--emerald-dim);
  border: 1px solid var(--emerald);
  color: var(--emerald);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lb-bar {
  width: 64px;
  border-radius: var(--r-md) var(--r-md) 0 0;
  background: var(--bg-raised);
  border: 1px solid var(--border);
}
.lb-item.rank-1 .lb-bar {
  background: var(--emerald-dim);
  border-color: var(--emerald);
}
.lb-label {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  text-align: center;
  max-width: 84px;
}

/* ---------- Section container ---------- */
.section {
  padding: var(--sp16) 0;
  border-top: 1px solid var(--border);
}
.section.alt { background: var(--bg-surface); }
.section-head { max-width: 720px; margin-bottom: var(--sp8); }
.section-head p.lead { margin-bottom: 0; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp6);
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp6); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
.card h3 { display: flex; align-items: center; gap: var(--sp3); }
.card .icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: var(--emerald-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald);
  flex-shrink: 0;
}
.card p:last-child { margin-bottom: 0; color: var(--text-secondary); font-size: var(--text-sm); }
.card a.card-link { color: var(--emerald); font-size: var(--text-sm); font-weight: 600; }

/* ---------- Score bar ---------- */
.score-row { display: flex; align-items: center; gap: var(--sp4); margin-bottom: var(--sp3); }
.score-label { flex: 0 0 160px; font-size: var(--text-sm); color: var(--text-secondary); }
.score-track { flex: 1; height: 8px; border-radius: var(--r-full); background: var(--border); overflow: hidden; }
.score-fill { height: 100%; background: var(--emerald); border-radius: var(--r-full); }

/* ---------- Callouts ---------- */
.callout {
  background: var(--brand-dim);
  border-left: 3px solid var(--brand);
  border-radius: var(--r-md);
  padding: var(--sp4) var(--sp5);
  font-weight: 500;
  margin: var(--sp6) 0;
}
.callout.emerald {
  background: var(--emerald-dim);
  border-left-color: var(--emerald);
}
.callout.neutral {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-left: 3px solid var(--text-secondary);
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--emerald); }
.callout.neutral strong { color: var(--text-primary); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: var(--sp6) 0; }
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}
thead { background: var(--bg-raised); }
th, td {
  padding: var(--sp3) var(--sp4);
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: var(--text-sm);
}
th {
  font-family: var(--font-headline);
  font-weight: 600;
  color: var(--text-primary);
}
tbody tr:nth-child(even) { background: var(--bg-surface); }
td { color: var(--text-secondary); }
td.winner, th.winner {
  border-left: 3px solid var(--emerald);
  background: var(--emerald-dim);
  color: var(--text-primary);
  font-weight: 600;
}

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--sp2);
  border-radius: var(--r-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
}
.badge.brand { background: var(--brand-dim); color: var(--brand); }
.badge.emerald { background: var(--emerald-dim); color: var(--emerald); }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.faq-item + .faq-item { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: var(--text-base);
  padding: var(--sp4) var(--sp5);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp4);
}
.faq-q:hover { background: var(--bg-raised); }
.faq-q .ind { color: var(--brand); font-family: var(--font-headline); flex-shrink: 0; }
.faq-a {
  display: none;
  padding: var(--sp4) var(--sp5);
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
}
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q .ind::before { content: "−"; }
.faq-q .ind::before { content: "+"; }

/* ---------- Figure ---------- */
figure { margin: var(--sp8) 0 0; text-align: center; }
figure svg, figure img { border-radius: var(--r-md); margin: 0 auto; }
figcaption {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--sp3);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: var(--sp5) 0 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--emerald); }
.breadcrumb span.sep { margin: 0 var(--sp2); color: var(--border); }

/* ---------- CTA block ---------- */
.cta-block {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp8);
  text-align: center;
  margin-top: var(--sp8);
}
.cta-block h3 { margin-bottom: var(--sp3); }
.cta-block p { color: var(--text-secondary); margin-bottom: var(--sp5); }

/* ---------- Responsible gaming ---------- */
.rg-section { background: var(--bg-surface); }
.rg-links { display: flex; gap: var(--sp4); margin-top: var(--sp5); flex-wrap: wrap; }
.rg-links a {
  color: var(--emerald);
  font-weight: 600;
  font-size: var(--text-sm);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp2) var(--sp4);
}
.rg-links a:hover { border-color: var(--emerald); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: var(--sp10) 0 var(--sp6);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp8);
  font-size: var(--text-sm);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  font-family: var(--font-headline);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: var(--sp4);
}
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: var(--sp2); }
.footer-grid a { color: var(--text-secondary); }
.footer-grid a:hover { color: var(--text-primary); }

.fp-heading {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.footer-payments {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--border);
  margin-top: var(--sp8);
  padding-top: var(--sp6);
  opacity: .55;
}
.footer-payments img { height: 28px; width: auto; }

.footer-bottom {
  margin-top: var(--sp8);
  padding-top: var(--sp6);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp3);
  font-size: var(--text-xs);
  color: var(--text-secondary);
}
.footer-legal-note {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  max-width: 900px;
  margin-top: var(--sp4);
}

/* ---------- Legal pages ---------- */
.legal-body { max-width: 760px; padding: var(--sp16) 0; }
.legal-body h2 { margin-top: var(--sp10); }
.legal-body p, .legal-body li { color: var(--text-secondary); }
.legal-body ul { padding-left: var(--sp6); margin-bottom: var(--sp4); }
