/* Font hostowany lokalnie (bez Google Fonts — nie przekazujemy IP odwiedzających do Google) */
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(/fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(/fonts/archivo-latin-wdth-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

@font-face { font-family: "JB Mono"; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url(/fonts/jetbrains-mono-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "JB Mono"; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url(/fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* Zwężone wersje Archivo dla canvasa (canvas nie obsługuje font-stretch) */
@font-face { font-family: "ArchivoXC"; font-weight: 100 900; font-stretch: 62%; font-display: swap; src: url(/fonts/archivo-latin-wdth-normal.woff2) format("woff2"); }
@font-face { font-family: "ArchivoC"; font-weight: 100 900; font-stretch: 75%; font-display: swap; src: url(/fonts/archivo-latin-wdth-normal.woff2) format("woff2"); }

:root {
  --bg: #0a0a0a;      /* noir */
  --fg: #ece8df;      /* bone */
  --muted: #8d8a83;
  --soft: #cfcbc3;
  --line: #2a2927;
  --card: #151514;
  --accent: #d4ff3a;     /* kolor marki — zmień tutaj */
  --on-accent: #0b0b0b;
  --danger: #ff3b30;
  --alarm: #ff3b30;   /* ostatnie miejsca / sold out */
  --mono: "JB Mono", ui-monospace, Menlo, monospace;
  --radius: 6px;
  --font: "Archivo", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-family: var(--font); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hidden { display: none !important; }

/* Header */
.header { position: sticky; top: 0; z-index: 20; background: rgba(11,11,11,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 900; font-stretch: 115%; font-size: 19px; text-decoration: none; letter-spacing: .01em; }
.header nav { display: flex; gap: 20px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.header nav a { text-decoration: none; }
.header nav a:hover { color: var(--accent); }

/* Hero */
.hero { padding: 40px 0 28px; }
.hero h1 { font-weight: 900; font-stretch: 70%; font-size: clamp(56px, 12vw, 150px); line-height: .86; text-transform: uppercase; margin: 12px 0 18px; overflow-wrap: anywhere; }
.hero h1 .ed { color: var(--accent); }
.facts { display: flex; flex-wrap: wrap; gap: 10px; }
.fact { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.fact b { color: var(--accent); font-weight: 700; margin-right: 6px; }
.drop-pill { display: inline-flex; align-items: center; gap: 8px; }
.drop-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .2; } }

/* Layout główny */
.grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; padding-bottom: 72px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; gap: 32px; } .grid > .side { order: -1; } }
.cover { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: var(--card); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.desc { color: var(--soft); margin-top: 24px; white-space: pre-line; }

.steps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 32px; }
.steps div { background: var(--bg); padding: 16px 18px; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: baseline; }
.steps b { color: var(--accent); font-weight: 900; font-size: 20px; font-stretch: 75%; }

/* Panel zakupu */
.panel { position: sticky; top: 80px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.tiers { display: grid; gap: 8px; border: 0; }
.tier { position: relative; display: grid; grid-template-columns: 20px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; background: var(--bg); }
.tier input { position: absolute; opacity: 0; }
.tier .radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--muted); display: grid; place-items: center; }
.tier input:checked ~ .radio { border-color: var(--accent); }
.tier input:checked ~ .radio::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.tier:has(input:checked) { border-color: var(--fg); }
.tier:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.tier .name { font-weight: 800; text-transform: uppercase; font-stretch: 85%; font-size: 17px; }
.tier .note { display: block; font-size: 13px; color: var(--muted); }
.tier .price { font-weight: 800; font-size: 18px; text-align: right; white-space: nowrap; }
.tier .st { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.tier.off { opacity: .45; cursor: not-allowed; }
.tier.soldout .amt { text-decoration: line-through; }

.row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.stepper button { width: 40px; height: 40px; font-size: 20px; }
.stepper button:disabled { color: var(--line); cursor: not-allowed; }
.stepper output { min-width: 26px; text-align: center; font-weight: 700; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: grid; gap: 6px; margin-top: 14px; }
.field label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg);
  color: var(--fg); font: inherit; font-size: 16px;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--fg); }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 14px; color: var(--soft); cursor: pointer; line-height: 1.4; }
.check input { margin-top: 2px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.check a { text-decoration: underline; }
.check small { color: var(--muted); }
.total { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 0 16px; }
.total strong { font-size: 34px; font-weight: 900; font-stretch: 75%; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 24px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; transition: transform .1s, filter .2s; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn[disabled] { background: var(--line); color: var(--muted); cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--fg); }
.btn.small { padding: 10px 16px; font-size: 12px; }
.panel .btn, .block-btn { width: 100%; }
.error { color: var(--danger); font-size: 14px; margin-top: 10px; min-height: 1em; }
.ok { color: var(--accent); font-size: 14px; margin-top: 10px; }
.fine { margin-top: 12px; font-size: 12px; color: var(--muted); text-align: center; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.notice { border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: 12px 16px; border-radius: var(--radius); margin: 16px 0 0; font-size: 14px; color: var(--soft); }

/* Newsletter */
.newsletter { border-top: 1px solid var(--line); padding: 56px 0; }
.newsletter h2 { font-weight: 900; font-stretch: 70%; font-size: clamp(38px, 6vw, 64px); text-transform: uppercase; line-height: .95; margin-bottom: 10px; }
.newsletter p { color: var(--soft); max-width: 520px; }
.nl-form { display: flex; gap: 10px; margin-top: 20px; max-width: 520px; }
.nl-form input[type=email] { flex: 1; padding: 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font: inherit; font-size: 16px; }
@media (max-width: 520px) { .nl-form { flex-direction: column; } }

/* Status / dziękujemy */
.status { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.status h1 { font-weight: 900; font-stretch: 70%; font-size: clamp(54px, 11vw, 120px); text-transform: uppercase; line-height: .88; margin: 12px 0 16px; }
.status p { color: var(--soft); max-width: 520px; margin: 0 auto 24px; }
.qrs { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin: 8px 0 28px; }
.qr { background: #fff; color: #000; border-radius: var(--radius); padding: 14px; width: 220px; }
.qr img { width: 100%; }
.qr div { font-family: ui-monospace, monospace; letter-spacing: .18em; font-size: 14px; margin-top: 6px; }

/* Bilet /t/CODE */
.ticket-page { background: #fff; color: #000; }
.ticket { max-width: 380px; margin: 0 auto; padding: 32px 20px; text-align: center; }
.ticket h1 { font-size: 34px; font-weight: 900; text-transform: uppercase; line-height: 1; margin: 6px 0 8px; }
.ticket img { margin: 20px auto 10px; width: 280px; height: 280px; }
.ticket .holder { font-size: 22px; font-weight: 800; }
.ticket .code { font-family: ui-monospace, monospace; letter-spacing: .2em; margin: 6px 0 14px; }
.ticket .used { color: #c00; font-weight: 700; }

/* Dokumenty prawne */
.legal { max-width: 760px; padding: 40px 0 80px; color: var(--soft); }
.legal h1 { color: var(--fg); font-size: 36px; font-weight: 900; margin-bottom: 6px; }
.legal h2 { color: var(--fg); font-size: 18px; margin: 32px 0 10px; }
.legal p, .legal li { margin: 8px 0; }
.legal ol, .legal ul { padding-left: 22px; }
.legal .meta { color: var(--muted); font-size: 14px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13px; color: var(--muted); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--fg); }
