@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('fonts/schibsted-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('fonts/schibsted-latin-ext.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0c110d;
  --surface: #131b14;
  --surface-2: #1b261c;
  --ink: #eef3ea;
  --muted: #b3bfb0;
  --gold: #f6c945;
  --gold-press: #e2b42c;
  --lime: #8ee02c;
  --brown: #2a1608;
  --radius: 20px;
  --gutter: clamp(16px, 3vw, 32px);
  --section: clamp(80px, 11vw, 168px);
  --font: 'Schibsted Grotesk', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
/* Link otwierany w nowej karcie: kwadracik ze strzałką */
a[target="_blank"]::after {
  content: '';
  display: inline-block;
  flex: none;
  width: 0.8em;
  height: 0.8em;
  margin-left: 0.35em;
  vertical-align: -0.05em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3h7v7'/%3E%3Cpath d='M21 3l-9 9'/%3E%3Cpath d='M19 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3h7v7'/%3E%3Cpath d='M21 3l-9 9'/%3E%3Cpath d='M19 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h5'/%3E%3C/svg%3E") center / contain no-repeat;
}
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 780; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
h2 { font-size: clamp(2.25rem, 5.2vw, 4.5rem); }
h3 { font-size: 1.375rem; letter-spacing: -0.02em; }
code {
  font-family: inherit;
  font-weight: 650;
  color: var(--lime);
  background: rgb(142 224 44 / 0.1);
  padding: 0.05em 0.4em;
  border-radius: 6px;
  white-space: nowrap;
}
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--brown); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.375rem); color: var(--muted); max-width: 46ch; }

/* Przyciski */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-sm { min-height: 42px; padding: 0 1.2rem; }
.btn-gold { background: var(--gold); color: var(--brown); }
.btn-gold:hover { background: var(--gold-press); }
.btn-ghost { background: var(--surface-2); color: var(--ink); }
.btn-ghost:hover { background: #24321f; }
.btn-dark { background: var(--bg); color: var(--lime); }

/* Pasek */
.bar { display: flex; align-items: center; gap: 2rem; padding-block: 18px; }
.bar-over { position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
.bar-over nav a { color: #dfe8db; }
.brand img { width: 150px; height: auto; }
.bar nav { display: flex; gap: 1.75rem; margin-left: auto; }
.bar nav a { text-decoration: none; color: var(--muted); font-weight: 600; transition: color 0.15s; }
.bar nav a:hover { color: var(--ink); }

/* Hero: rozmyty zrzut spawnu jako tło */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  filter: blur(6px) saturate(1.2);
  transform: scale(1.06);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgb(12 17 13 / 0.2), rgb(12 17 13 / 0.45) 50%, var(--bg));
}
.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  align-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: clamp(6rem, 10vw, 8rem) clamp(6rem, 9vw, 7.5rem);
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1.25rem, 4vh, 2.5rem);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-left: -26px;
  border-radius: 50%;
  background: rgb(238 243 234 / 0.1);
  color: var(--ink);
  transition: background-color 0.15s, color 0.15s;
}
.scroll-cue:hover { background: rgb(246 201 69 / 0.2); color: var(--gold); }
.scroll-cue svg { animation: scroll-cue 1.8s ease-in-out infinite; }
@keyframes scroll-cue {
  0%, 100% { transform: translateY(-3px); }
  50% { transform: translateY(5px); }
}
#kalendarz { scroll-margin-top: 1.5rem; }
.hero .lead { color: #dfe8db; }
h1 { font-size: clamp(3rem, 8.4vw, 8.5rem); letter-spacing: -0.05em; line-height: 0.92; margin-bottom: 1.5rem; max-width: 10ch; }
.join { background: rgb(19 27 20 / 0.88); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); }
.join-label { color: var(--muted); font-weight: 600; }
.addr {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--gold);
  user-select: all;
  margin-bottom: 1.25rem;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Kalendarz */
.dates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.dates li { display: grid; gap: 0.25rem; background: var(--surface); border-radius: var(--radius); padding: 1.5rem 1.75rem; color: var(--muted); font-weight: 600; }
.date { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.dates .next { background: var(--surface-2); }
.dates .next .date { color: var(--lime); }

/* Nowości */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(2rem, 5vw, 5rem); }
.split-head { align-self: start; position: sticky; top: 2rem; display: grid; gap: 1.25rem; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 4vw, 3.5rem); }
.features div { display: grid; gap: 0.4rem; align-content: start; }
.features dt { font-size: 1.375rem; font-weight: 750; letter-spacing: -0.02em; }
.features dd { max-width: 40ch; }
.features .cmd { margin-top: 0.2rem; }

/* W skrócie */
.facts-section { display: grid; gap: 1.5rem; padding-bottom: 0; }
.facts-section .lead { max-width: 70ch; color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.facts div { display: grid; gap: 0.35rem; align-content: start; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--surface); }
.facts dt { color: var(--muted); font-weight: 600; font-size: 0.9375rem; }
.facts dd { font-size: 1.25rem; font-weight: 750; letter-spacing: -0.02em; }
@media (max-width: 62em) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 48em) { .facts div { padding: 1rem 1.1rem; } .facts dd { font-size: 1.0625rem; } }

/* FAQ */
.faq { display: grid; gap: 0.5rem; }
.faq details { background: var(--surface); border-radius: 14px; }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-size: 1.1875rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font-size: 1.5rem; line-height: 1; color: var(--lime); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--gold); }
.faq details p { padding: 0 1.4rem 1.25rem; color: #d6e2d2; max-width: 60ch; }
.split-head .lead a { color: var(--gold); }

/* Kroki */
.field-green { background: #16301a; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); margin-top: clamp(2.5rem, 5vw, 4rem); counter-reset: step; }
.steps li { display: grid; gap: 0.75rem; align-content: start; counter-increment: step; }
.steps li::before {
  content: counter(step);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--lime);
}
.steps p { color: #d6e2d2; }

/* Rangi */
.ranks-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.table-scroll { overflow-x: auto; border-radius: var(--radius); background: var(--surface); }
.ranks { width: 100%; min-width: 620px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ranks th, .ranks td { padding: 1rem 1.25rem; text-align: left; }
.ranks thead th { font-size: 1.25rem; font-weight: 750; white-space: nowrap; }
.ranks thead img { display: inline-block; width: auto; height: 16px; image-rendering: pixelated; vertical-align: -1px; margin-right: 0.35rem; }
.ranks tbody tr + tr { border-top: 1px solid rgb(238 243 234 / 0.08); }
.ranks tbody th { font-weight: 500; color: var(--muted); }
.ranks td { font-weight: 700; font-size: 1.125rem; }
.ranks .hl { background: rgb(246 201 69 / 0.1); color: var(--gold); }
.perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-top: 0.75rem; }
.perks > div { background: var(--surface); border-radius: var(--radius); padding: 1.75rem; }
.perks > .hl { background: var(--surface-2); }
.perks h3 { margin-bottom: 1rem; }
.perks .hl h3 { color: var(--gold); }
.perks li { padding-left: 1.1rem; position: relative; margin-top: 0.5rem; }
.perks li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; background: var(--lime); }
.ranks-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; color: var(--muted); }

/* Głosowanie */
.field-surface { background: var(--surface); }
.vote { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.vote .lead { margin-top: 1.25rem; }
.vote-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.vote-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 56px;
  padding: 0 1.25rem;
  background: var(--surface-2);
  border-radius: 14px;
  font-weight: 650;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color 0.15s, color 0.15s;
}
.vote-list a::after { width: 1.05rem; height: 1.05rem; background-color: var(--lime); transition: transform 0.15s; }
.vote-list a:hover { background: #24321f; }
.vote-list a:hover::after { transform: translate(2px, -2px); }

/* Discord */
.field-lime { background: var(--lime); color: #10200a; }
.discord-inner { display: grid; justify-items: start; gap: 1.25rem; padding-block: clamp(64px, 9vw, 128px); }
.discord h2 { max-width: 22ch; }
.discord p { font-size: 1.25rem; font-weight: 500; }

/* Stopka */
.foot-main {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem var(--gutter);
  padding-block: clamp(56px, 7vw, 96px);
}
.foot-brand { display: grid; gap: 1rem; align-content: start; justify-items: start; }
.foot-brand img { width: 168px; height: auto; }
.foot-brand p { color: var(--muted); max-width: 34ch; }
.foot-brand strong { color: var(--ink); }
.foot-col h2 { font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; color: #7f8b7c; margin-bottom: 1rem; }
.foot-col ul { display: grid; gap: 0.65rem; }
.foot-col a { font-weight: 600; text-decoration: none; transition: color 0.15s; }
.foot-col a:hover, .foot-col a[aria-current="page"] { color: var(--gold); }
.foot-base { background: var(--surface); }
.foot-base .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 2rem;
  padding-block: 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.note { font-size: 0.8125rem; color: #7f8b7c; }
.foot-col button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s;
}
.foot-col button:hover { color: var(--gold); }

/* Baner zgody na statystyki (zgoda.js) */
.consent {
  position: fixed;
  left: var(--gutter);
  bottom: var(--gutter);
  z-index: 50;
  display: grid;
  gap: 1rem;
  width: min(560px, calc(100% - 2 * var(--gutter)));
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: 0 16px 48px rgb(0 0 0 / 0.45);
}
.consent[hidden] { display: none; }
.consent a { color: var(--gold); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.consent-actions .btn { flex: 1; }
.btn-consent { background: var(--ink); color: var(--bg); border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.btn-consent:hover { background: #ffffff; }

/* Dokumenty: regulamin, polityka prywatności */
.doc { max-width: calc(72ch + 2 * var(--gutter)); padding-block: clamp(3rem, 7vw, 6rem) 0; }
.doc h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 1rem; max-width: none; }
.doc-meta { color: var(--muted); margin-bottom: 2.5rem; }
.doc-lead { font-size: 1.1875rem; max-width: 60ch; margin: -1rem 0 2rem; }
.doc-lead a { color: var(--gold); }
.doc-card { display: grid; gap: 1rem; background: var(--surface); border-radius: var(--radius); padding: 1.5rem 1.75rem; margin-bottom: 3rem; }
address.doc-card { font-style: normal; gap: 0.25rem; margin: 1rem 0 0; }
address.doc-card strong { font-size: 1.25rem; }
.doc-toc { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.doc-toc a {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.doc-toc a:hover { background: var(--surface-2); color: var(--ink); }
.doc-body section { scroll-margin-top: 1.5rem; }
.doc-body h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 3rem 0 1rem; }
.doc-body h3 { font-size: 1.25rem; margin: 2rem 0 0.25rem; }
.doc-body p, .doc-body li { margin-top: 0.75rem; }
.doc-body ol { list-style: decimal; padding-left: 1.5rem; }
.doc-body ul { list-style: disc; padding-left: 1.5rem; }
.doc-body li li { margin-top: 0.4rem; }
.doc-body ul ul { list-style: circle; }
.doc-body ol > li::marker { font-weight: 700; }
.doc-body li::marker { color: var(--lime); }
.doc-body a { color: var(--gold); }
.todo { color: var(--gold); font-weight: 600; }
.doc-aside { margin-top: 3rem; font-size: 0.9375rem; color: var(--muted); }
.doc-aside a { color: var(--gold); }
.doc-back { margin-top: 2rem; color: var(--muted); }
.bar nav a[aria-current="page"] { color: var(--ink); }
.doc-back a { color: var(--ink); font-weight: 600; }

/* Poradniki */
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; color: var(--muted); font-weight: 600; }
.crumbs a { color: var(--gold); }
.guide { margin-top: 1rem; }
.guide .table-scroll { margin-top: 1rem; }
.guide .ranks { min-width: 0; }
.guide .ranks th, .guide .ranks td { padding: 0.85rem clamp(0.5rem, 2vw, 1.25rem); }
.guide-more { margin-top: 4rem; }
.guide-more h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
.guide-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 0.75rem; }
.guide-list a {
  display: grid;
  gap: 0.5rem;
  height: 100%;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: background-color 0.15s;
}
.guide-list a:hover { background: var(--surface-2); }
.guide-list strong { font-size: 1.25rem; letter-spacing: -0.02em; }
.guide-list a:hover strong { color: var(--gold); }
.guide-list span { color: var(--muted); font-size: 0.9375rem; }
.guide-list-main { margin-top: 1rem; }

/* Kontakt */
.doc h1 + .doc-lead { margin-top: 0; }
.contact { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0.75rem; }
.contact section { display: grid; gap: 0.75rem; align-content: start; background: var(--surface); border-radius: var(--radius); padding: 1.75rem; }
.contact .contact-main { grid-row: span 2; background: var(--surface-2); }
.contact h2 { font-size: 1.5rem; }
.contact-addr { font-size: clamp(1.625rem, 2.6vw, 2.25rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; overflow-wrap: anywhere; }
.contact-addr { color: var(--gold); }
.contact-action { margin-top: 0.5rem; }
.contact ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: 0.35rem; }
.contact li::marker { color: var(--lime); }
.contact p a:not(.btn), .contact li a { color: var(--gold); }

/* Strona 404 */
.e404-body {
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 1rem;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: 7rem 4rem;
}
.e404-code {
  font-size: clamp(6rem, 22vw, 16rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.8;
  color: var(--gold);
}
.e404-body h1 { margin-bottom: 0; }

/* Tablet */
@media (max-width: 62em) {
  .hero-body, .split, .vote { grid-template-columns: 1fr; }
  .split-head { position: static; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; }
  .perks { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .contact .contact-main { grid-row: auto; }
}

@media (max-width: 62em) {
  .foot-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}

/* Telefon */
@media (max-width: 48em) {
  .bar { gap: 1rem; }
  .bar nav { display: none; }
  .brand img { width: 120px; }
  .bar .btn { margin-left: auto; }
  .hero-body { padding-top: 6.5rem; }
  .dates { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
  .dates li { padding: 1rem; font-size: 0.875rem; border-radius: 14px; }
  .date { font-size: 1.625rem; }
  .btn { white-space: nowrap; padding: 0 1.1rem; }
  .features, .vote-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .actions .btn { flex: 1; }
  .foot-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .consent { padding: 1.1rem; gap: 0.75rem; font-size: 0.9375rem; }
  .consent-actions .btn { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue svg { animation: none; }
  .btn, .vote-list a, .vote-list a::after { transition: none; }
  .btn:hover, .vote-list a:hover::after { transform: none; }
}
