:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --card: #161619;
  --card-2: #1d1d21;
  --line: #26262b;
  --line-2: #34343b;
  --text: #f4f1ea;
  --muted: #8d8a83;
  --accent: #ff5b1f;
  --gold: #e9b44c;
  --red: #e0362c;
  --top5: #e9b44c;
  --epicki: #a77bff;
  --ladny: #33c48d;
  --zwykly: #5b8def;
  --brzydki: #ef5a6f;
  --shadow: 0 30px 60px -20px rgba(0,0,0,.7);
  --radius: 14px;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter Tight", Inter, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f5f2eb;
  --bg-2: #ede9df;
  --card: #fffdf8;
  --card-2: #f4f0e6;
  --line: #e0dacb;
  --line-2: #cfc7b4;
  --text: #141414;
  --muted: #6f6a60;
  --shadow: 0 24px 50px -24px rgba(60,40,10,.35);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font: 15px/1.55 var(--sans); min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #000; }
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); font-weight: 400; }

/* ---------- wyszukiwarka ---------- */
.search-btn { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px 8px 12px; cursor: pointer; color: var(--muted); min-width: 220px; transition: border-color .2s; }
.search-btn:hover { border-color: var(--accent); color: var(--text); }
.search-btn em { font-style: normal; font-size: 14px; flex: 1; text-align: left; }
.search-btn kbd, .finder kbd { font-family: var(--mono); font-size: 11px; border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; color: var(--muted); background: var(--bg-2); }
.finder { position: fixed; inset: 0; z-index: 70; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.finder[hidden] { display: none; }
.finder-bg { position: absolute; inset: 0; background: rgba(4,4,5,.75); backdrop-filter: blur(6px); }
.finder-box { position: relative; width: min(680px, 100%); max-height: 75vh; display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; animation: zoom .2s ease; }
.finder-input { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 20px; color: var(--muted); }
.finder-input input { flex: 1; background: none; border: 0; outline: 0; font-size: 18px; color: var(--text); min-width: 0; }
.finder-input kbd { cursor: pointer; }
.finder-list { overflow-y: auto; padding: 8px; }
.finder-hint { color: var(--muted); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; padding: 10px 10px 6px; }
.finder-item { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; padding: 8px 10px; border-radius: 10px; }
.finder-item img, .finder-item .noimg { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; background: var(--card); padding: 0; }
.finder-item b { display: block; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.finder-item small { color: var(--muted); font-size: 12.5px; }
.finder-item.on, .finder-item:hover { background: var(--card-2); }
.finder-item.on b { color: var(--accent); }
.finder-foot { display: flex; justify-content: space-between; gap: 10px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.finder-foot a { color: var(--accent); font-weight: 600; }
@media (max-width: 560px) { .finder { padding-top: 12px; } .finder-foot span { display: none; } }

/* ---------- hamburger ---------- */
.menu-btn { display: none; font-size: 18px; }


/* ---------- sekcje specjalne (karty na stronie głównej) ---------- */
.sections { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sec-card { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); isolation: isolate; }
.sec-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.sec-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--sec) 35%, #000) 100%); }
.sec-card:hover img { transform: scale(1.06); }
.sec-card:hover { border-color: var(--sec); }
.sec-card-in { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; color: #fff; }
.sec-card-in b { display: block; font-family: var(--sans); font-weight: 800; text-transform: uppercase; font-size: 22px; line-height: 1; letter-spacing: -.02em; }
.sec-card-in small { display: inline-block; margin-top: 8px; font-family: var(--mono); font-size: 11px; background: var(--sec); color: #000; padding: 3px 8px; border-radius: 4px; }
@media (max-width: 900px) { .sections { grid-template-columns: 1fr 1fr; } }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 18px; padding: 12px var(--pad); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.logo small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.logo-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--accent); color: #000; font-family: var(--mono); font-weight: 500; font-size: 13px; }
.topbar nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.topbar nav a { padding: 8px 13px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: 14px; white-space: nowrap; transition: .2s; }
.topbar nav a:hover { color: var(--text); }
.topbar nav a.active { color: var(--text); background: var(--card-2); }
.btn-ghost { border: 1px solid var(--line-2); padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; transition: .2s; }
.btn-ghost:hover, .btn-ghost.active { border-color: var(--accent); color: var(--accent); }
.icon-btn { background: var(--card); border: 1px solid var(--line); width: 38px; height: 38px; border-radius: 8px; cursor: pointer; flex: none; }

main { min-height: 70vh; }
.wrap { padding: 0 var(--pad); max-width: 1560px; margin: 0 auto; }
.view { animation: fade .45s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- section headers ---------- */
.sec { padding-top: clamp(60px, 9vw, 120px); }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: 36px; }
.sec-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 84px); line-height: .95; letter-spacing: -.02em; margin: 14px 0 0; }
.sec-head h2 em { color: var(--accent); }
.sec-head p { max-width: 460px; color: var(--muted); margin: 0; }
.link-arrow { font-weight: 600; border-bottom: 1px solid var(--line-2); padding-bottom: 3px; white-space: nowrap; }
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; min-height: calc(100vh - 63px); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-l { padding: clamp(40px, 7vw, 90px) var(--pad) 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; position: relative; z-index: 2; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 6.6vw, 112px); line-height: .9; letter-spacing: -.035em; margin: 22px 0 26px; }
.hero h1 em { color: var(--accent); }
.hero-lead { font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); max-width: 560px; margin: 0; }
.hero-lead b { color: var(--text); font-weight: 500; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 10px; padding: 14px 22px; font-weight: 600; cursor: pointer; background: var(--accent); color: #000; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px var(--accent); }
.btn.dark { background: var(--card-2); color: var(--text); border: 1px solid var(--line-2); }
.btn.dark:hover { box-shadow: none; border-color: var(--text); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 20px 18px 4px 0; }
.stat + .stat { padding-left: 18px; border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 4.4vw, 66px); line-height: 1; letter-spacing: -.02em; }
.stat span { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.hero-wall { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0 12px; height: calc(100vh - 63px); min-height: 600px; mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); transform: rotate(-4deg) scale(1.12); }
.wall-col { display: flex; flex-direction: column; gap: 12px; }
.wall-col img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 10px; background: var(--card); filter: saturate(.9); transition: filter .3s, transform .3s; }
.wall-col a:hover img { filter: saturate(1.2); transform: scale(1.03); }
.hero-badge { position: absolute; right: var(--pad); bottom: 30px; z-index: 3; background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 16px; font-family: var(--mono); font-size: 12px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow); }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--ladny); }


/* ---------- top 5 ---------- */
.top5 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.t5 { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); cursor: pointer; isolation: isolate; min-height: 280px; }
.t5:first-child { grid-row: span 2; min-height: 600px; }
.t5 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.t5:hover img { transform: scale(1.07); }
.t5::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.88)); }
.t5-in { position: absolute; inset: auto 0 0 0; padding: 22px; color: #fff; }
.t5-rank { position: absolute; top: 16px; left: 18px; font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--gold); text-shadow: 0 4px 20px rgba(0,0,0,.6); }
.t5:first-child .t5-rank { font-size: 120px; }
.t5 h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.05; margin: 0 0 6px; }
.t5:first-child h3 { font-size: clamp(34px, 3.4vw, 50px); }
.t5 .where { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; opacity: .75; }
.t5 { border-color: color-mix(in srgb, var(--gold) 35%, var(--line)); }
.t5:hover { border-color: var(--gold); }
.crown { display: inline-flex; gap: 8px; align-items: center; font-family: var(--mono); font-size: 11px; color: #000; background: var(--gold); padding: 4px 10px; border-radius: 999px; position: absolute; top: 18px; right: 18px; }

/* ---------- przywódcy ---------- */
.leaders { position: relative; margin-top: clamp(60px, 9vw, 120px); background: var(--sec-bg, #120706); color: #f6eee6; overflow: hidden; border-block: 1px solid var(--sec-line, #3a1612); }
.leaders::before { content: ""; position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 85% 30%, color-mix(in srgb, var(--sec, var(--red)) 16%, transparent) 0 6deg, transparent 6deg 12deg); mask-image: radial-gradient(circle at 85% 30%, #000, transparent 65%); -webkit-mask-image: radial-gradient(circle at 85% 30%, #000, transparent 65%); }
.leaders .wrap { position: relative; padding-block: clamp(60px, 8vw, 110px); }
.leaders .eyebrow { color: var(--sec, var(--red)); }
.leaders h2 { font-family: var(--sans); font-weight: 800; text-transform: uppercase; font-size: clamp(46px, 8vw, 130px); line-height: .86; letter-spacing: -.04em; margin: 18px 0 24px; }
.leaders h2 span { display: block; color: var(--sec, var(--red)); }
.leaders-intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: end; margin-bottom: 44px; }
.leaders-intro p { color: #cdbfb3; margin: 0; font-size: 16px; }
.leaders-count { text-align: right; }
.leaders-count b { font-family: var(--sans); font-weight: 800; font-size: clamp(90px, 13vw, 200px); line-height: .8; color: var(--sec, var(--red)); letter-spacing: -.05em; display: block; }
.leaders-count span { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: #cdbfb3; }
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.lcard { position: relative; aspect-ratio: 3/4; border-radius: 8px; overflow: hidden; background: color-mix(in srgb, var(--sec, var(--red)) 12%, #000); cursor: pointer; }
.lcard img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15); transition: filter .4s, transform .6s; }
.lcard:hover img { filter: none; transform: scale(1.06); }
.lcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, color-mix(in srgb, var(--sec-bg, #120706) 95%, transparent)); }
.lcard span { position: absolute; left: 10px; right: 10px; bottom: 9px; z-index: 1; font-size: 12px; font-weight: 600; line-height: 1.2; }
.lcard .mono { position: absolute; top: 8px; left: 8px; right: auto; bottom: auto; z-index: 1; font-size: 10px; background: var(--sec, var(--red)); color: #fff; padding: 2px 6px; border-radius: 3px; }
.wanted { margin-top: 46px; padding-top: 34px; border-top: 1px dashed var(--sec-line, #4a1d18); display: grid; grid-template-columns: 1fr 2fr; gap: 30px; align-items: start; }
.wanted h3 { font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; color: var(--sec, var(--red)); margin: 0 0 8px; }
.wanted p { color: #cdbfb3; margin: 0; font-size: 14px; }
.wanted a { color: #fff; border-bottom: 1px solid var(--sec, var(--red)); }
.wanted-list { display: flex; flex-wrap: wrap; gap: 8px; }
.wanted-list span { border: 1px solid #5a231d; padding: 8px 14px; border-radius: 4px; font-weight: 600; font-size: 14px; background: rgba(224,54,44,.06); position: relative; }
.wanted-list span::before { content: "POSZUKIWANY · "; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--sec, var(--red)); font-weight: 400; }

/* ---------- klasyfikacja ---------- */
.classes { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cls { padding: 26px 22px 22px; border-right: 1px solid var(--line); cursor: pointer; position: relative; transition: background .3s; display: flex; flex-direction: column; gap: 12px; }
.cls:last-child { border-right: 0; }
.cls:hover { background: var(--card); }
.cls::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.cls:hover::before { transform: none; }
.cls .lvl { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .1em; }
.cls h3 { font-family: var(--serif); font-weight: 400; font-size: 34px; margin: 0; line-height: 1; }
.cls h3 i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-right: 10px; vertical-align: middle; }
.cls p { color: var(--muted); font-size: 13.5px; margin: 0; flex: 1; }
.cls .n { font-family: var(--serif); font-size: 48px; line-height: 1; }
.cls .bar { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.cls .bar i { display: block; height: 100%; background: var(--c); }

/* ---------- mapa ---------- */
.map-box { display: grid; grid-template-columns: 1fr 320px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
#homeMap { height: 520px; }
.map-side { border-left: 1px solid var(--line); padding: 22px; overflow: auto; max-height: 520px; }
.rank { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; cursor: pointer; }
.rank:hover { color: var(--accent); }
.rank .mono { color: var(--muted); font-size: 11px; }
.rank b { font-family: var(--mono); font-weight: 500; }

/* ---------- typy ---------- */
.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.type { background: var(--bg); padding: 22px; cursor: pointer; transition: background .25s; }
.type:hover { background: var(--card); }
.type header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.type h3 { margin: 0; font-size: 18px; }
.type b { font-family: var(--mono); font-weight: 500; color: var(--accent); }
.type p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* ---------- opinie ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--card); }
.quote p { font-family: var(--serif); font-size: 26px; line-height: 1.15; margin: 0 0 22px; }
.quote p::before { content: "„"; color: var(--accent); }
.quote span { font-family: var(--mono); font-size: 12px; color: var(--muted); }

.footer { margin-top: clamp(60px, 9vw, 120px); border-top: 1px solid var(--line); padding: 40px var(--pad); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.footer b { font-family: var(--serif); font-weight: 400; font-size: 28px; color: var(--text); display: block; }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card { position: relative; display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .25s, box-shadow .35s; animation: pop .5s ease both; }
@keyframes pop { from { opacity: 0; transform: translateY(16px); } }
.card:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: var(--shadow); }
.card .ph { aspect-ratio: 4/5; background: var(--bg-2); display: grid; place-items: center; overflow: hidden; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.card:hover img { transform: scale(1.06); }
.noimg { color: var(--muted); font-size: 12px; text-align: center; padding: 10px; font-family: var(--mono); }
.noimg b { display: block; font-family: var(--serif); font-weight: 400; font-size: 44px; color: var(--line-2); }
.card .meta { padding: 14px 16px 16px; }
.card .cat { font-family: var(--mono); font-size: 10.5px; color: var(--muted); display: flex; justify-content: space-between; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.card .cat i { font-style: normal; display: inline-flex; align-items: center; gap: 6px; color: var(--c); }
.card .cat i::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.card h3 { font-size: 15px; font-weight: 600; margin: 0 0 3px; line-height: 1.3; }
.card .where { color: var(--muted); font-size: 13px; }
.card .flag-l { position: absolute; top: 10px; left: 10px; font-family: var(--mono); font-size: 10px; background: var(--red); color: #fff; padding: 3px 7px; border-radius: 4px; letter-spacing: .05em; }
.card .flag-t { position: absolute; top: 10px; left: 10px; font-family: var(--mono); font-size: 10px; background: var(--gold); color: #000; padding: 3px 7px; border-radius: 4px; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.strip .card { scroll-snap-align: start; }

/* ---------- kolekcja page ---------- */
.page-head { padding: 54px 0 26px; display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.page-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6vw, 88px); margin: 12px 0 0; line-height: .95; letter-spacing: -.02em; }
.page-head h1 em { color: var(--accent); }
.page-head p { color: var(--muted); margin: 10px 0 0; max-width: 560px; }
.filters { position: sticky; top: 63px; z-index: 10; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 0; background: var(--bg); border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; }
.search:focus-within { border-color: var(--accent); }
.search input { flex: 1; background: none; border: 0; outline: 0; padding: 11px 0; }
.filters select { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; outline: 0; max-width: 210px; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: .15s; font-size: 13.5px; white-space: nowrap; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--muted)); }
.chip:hover { border-color: var(--line-2); }
.chip.on { background: var(--c, var(--accent)); color: #000; border-color: transparent; }
.chip.on i { background: #000; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.result-info { color: var(--muted); font-size: 13px; margin: 0 0 16px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-family: var(--mono); }
.tag-active { background: var(--accent); color: #000; border-radius: 999px; padding: 2px 10px; cursor: pointer; }
.more { display: block; margin: 30px auto 0; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-bg { position: absolute; inset: 0; background: rgba(4,4,5,.82); backdrop-filter: blur(8px); animation: fade .2s; }
.modal-card { position: relative; width: min(1120px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 18px; animation: zoom .35s cubic-bezier(.2,.8,.2,1); }
@keyframes zoom { from { opacity: 0; transform: scale(.95) translateY(10px); } }
.modal-x { position: absolute; top: 14px; right: 14px; z-index: 2; }
.modal-body { display: grid; grid-template-columns: 1.15fr 1fr; }
.modal-img { background: #050505; min-height: 420px; display: grid; place-items: center; }
.modal-img img { width: 100%; height: 100%; max-height: 82vh; object-fit: contain; }
.modal-info { padding: 40px 36px; display: flex; flex-direction: column; }
.modal-info .crumb { font-family: var(--mono); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.modal-info h2 { font-family: var(--serif); font-weight: 400; font-size: 46px; margin: 10px 0 16px; line-height: 1; letter-spacing: -.01em; }
.modal-info .desc { margin: 0 0 24px; color: color-mix(in srgb, var(--text) 85%, transparent); font-size: 16px; }
.props { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 18px; }
.prop { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prop:nth-child(odd) { border-right: 1px solid var(--line); }
.prop:nth-last-child(-n+2) { border-bottom: 0; }
.prop span { display: block; font-family: var(--mono); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 2px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 11px; font-size: 13px; cursor: pointer; }
.tag:hover { border-color: var(--accent); color: var(--accent); }
.url { margin-top: auto; padding-top: 22px; font-size: 12px; color: var(--muted); font-family: var(--mono); }
.nav-arrow { position: absolute; top: 50%; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg-2); font-size: 18px; cursor: pointer; transform: translateY(-50%); }
.nav-arrow.prev { left: 12px; } .nav-arrow.next { right: 12px; }
.nav-arrow:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- dashboard ---------- */
.dash-bar { position: sticky; top: 63px; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; min-height: 60px; }
.dash-bar .lbl { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.fchip { display: inline-flex; gap: 8px; align-items: center; background: var(--card-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 10px; font-size: 13px; cursor: pointer; }
.fchip small { font-family: var(--mono); color: var(--muted); font-size: 10px; text-transform: uppercase; }
.fchip:hover { border-color: var(--red); }
.fchip::after { content: "✕"; font-size: 10px; color: var(--muted); }
.dash-bar .spacer { flex: 1; }
.dash-bar .hint { color: var(--muted); font-size: 13px; }
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.kpi { padding: 18px 18px 16px; border-right: 1px solid var(--line); background: var(--card); }
.kpi:last-child { border-right: 0; }
.kpi span { font-family: var(--mono); font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.kpi b { display: block; font-family: var(--serif); font-weight: 400; font-size: 46px; line-height: 1.05; margin-top: 4px; }
.kpi small { color: var(--muted); font-size: 12px; }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 8px; min-width: 0; }
.panel h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.panel h3 small { font-family: var(--mono); color: var(--muted); font-weight: 400; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; }
.chart { width: 100%; height: 320px; }
.chart.tall { height: 460px; }
.chart.short { height: 260px; }
.s3 { grid-column: span 3; } .s4 { grid-column: span 4; } .s5 { grid-column: span 5; } .s6 { grid-column: span 6; } .s7 { grid-column: span 7; } .s8 { grid-column: span 8; } .s12 { grid-column: span 12; }
.dash-results { margin-top: 16px; }

/* ---------- o kolekcji ---------- */
.prose { max-width: 820px; font-size: 18px; }
.prose p { color: color-mix(in srgb, var(--text) 85%, transparent); }
.criteria { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 30px 0; }
.criteria div { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--card); }
.criteria h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 0 0 8px; }
.criteria .mono { color: var(--accent); font-size: 12px; }
.criteria p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- raporty ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-family: var(--mono); }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--card-2); }
.miss { color: var(--brzydki); }
.table-wrap { overflow-x: auto; }
.gaps { display: flex; flex-wrap: wrap; gap: 6px; }
.gaps span { background: var(--bg-2); border: 1px dashed var(--line-2); border-radius: 6px; padding: 4px 9px; font-family: var(--mono); font-size: 13px; }

/* ---------- admin ---------- */
.auth { max-width: 440px; margin: 70px auto; }
.auth .panel { padding: 34px; }
.auth h1 { margin: 0 0 6px; font-family: var(--serif); font-weight: 400; font-size: 40px; }
.auth p { color: var(--muted); margin: 0 0 22px; font-size: 14px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; font-size: 12px; color: var(--muted); font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.field input { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; outline: 0; color: var(--text); font: 15px var(--sans); text-transform: none; letter-spacing: 0; }
.field input:focus { border-color: var(--accent); }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp input { text-align: center; font-family: var(--mono); font-size: 22px; padding: 12px 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; outline: 0; }
.otp input:focus { border-color: var(--accent); }
.auth .btn { width: 100%; justify-content: center; }
.steps { display: flex; gap: 6px; margin-bottom: 24px; }
.steps i { flex: 1; height: 3px; border-radius: 2px; background: var(--line); }
.steps i.on { background: var(--accent); }
.note { font-size: 12px; color: var(--muted); margin-top: 16px; display: flex; gap: 8px; }
.drop { display: block; border: 1.5px dashed var(--line-2); border-radius: 18px; padding: 60px 20px; text-align: center; cursor: pointer; transition: .2s; background: var(--card); }
.drop.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--card)); }
.drop b { font-family: var(--serif); font-weight: 400; font-size: 34px; display: block; margin-bottom: 6px; }
.drop span { color: var(--muted); }
.queue { display: grid; gap: 10px; margin-top: 18px; }
.qitem { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.qitem img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.qitem .st { font-size: 12px; padding: 4px 10px; border-radius: 999px; white-space: nowrap; font-family: var(--mono); }
.st.ok { background: color-mix(in srgb, var(--ladny) 18%, transparent); color: var(--ladny); }
.st.warn { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }
.st.err { background: color-mix(in srgb, var(--brzydki) 18%, transparent); color: var(--brzydki); }
.qitem small { color: var(--muted); display: block; }
.pill { font-family: var(--mono); font-size: 12px; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--ladny) 16%, transparent); color: var(--ladny); }
.proto { position: fixed; bottom: 14px; left: 14px; z-index: 30; font-family: var(--mono); font-size: 10.5px; background: var(--gold); color: #000; padding: 5px 10px; border-radius: 6px; }

@media (max-width: 1100px) {
  .classes { grid-template-columns: repeat(3, 1fr); }
  .cls:nth-child(3) { border-right: 0; }
  .cls:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .kpi:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .kpi:nth-child(3) { border-right: 0; }
  .bento > * { grid-column: span 6; }
  .bento > .s12, .bento > .s8, .bento > .s7 { grid-column: span 12; }
}
@media (max-width: 900px) {
  .topbar .logo > span:last-child { display: none; }
  .topbar { gap: 10px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-wall { height: 420px; min-height: 0; transform: none; grid-template-columns: repeat(3, 1fr); order: -1; }
  .hero-badge { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .top5 { grid-template-columns: 1fr 1fr; }
  .t5:first-child { grid-column: span 2; grid-row: auto; min-height: 420px; }
  .leaders-intro, .wanted { grid-template-columns: 1fr; gap: 24px; }
  .leaders-count { text-align: left; }
  .map-box { grid-template-columns: 1fr; }
  #homeMap { height: 340px; }
  .map-side { border-left: 0; border-top: 1px solid var(--line); max-height: 300px; }
  .quotes, .criteria { grid-template-columns: 1fr; }
  .bento > * { grid-column: span 12 !important; }
  .modal-body { grid-template-columns: 1fr; }
  .modal-img { min-height: 280px; }
  .modal-info { padding: 26px 22px; }
  .modal-info h2 { font-size: 36px; }
  .filters, .dash-bar { position: static; }
  .filters select { flex: 1 1 140px; max-width: none; }
}
@media (max-width: 560px) {
  .classes { grid-template-columns: 1fr 1fr; }
  .cls { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line); }
  .cls:nth-child(even) { border-right: 0 !important; }
  .top5 { grid-template-columns: 1fr; }
  .t5:first-child { grid-column: auto; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card .meta { padding: 10px 11px 12px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .kpi:nth-child(odd) { border-right: 1px solid var(--line) !important; }
  .kpi b { font-size: 36px; }
  .nav-arrow { display: none; }
  .btn-ghost { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, .reveal { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; } }

/* ---------- nawigacja: .tight (zwinięte wyszukiwanie i podpis logo), .compact (hamburger) — klasy ustawia JS po pomiarze ---------- */
.topbar.tight .logo small, .topbar.compact .logo small { display: none; }
.topbar.tight .search-btn, .topbar.compact .search-btn { min-width: 0; }
.topbar.tight .search-btn em, .topbar.tight .search-btn kbd, .topbar.compact .search-btn em, .topbar.compact .search-btn kbd { display: none; }
.topbar.compact .menu-btn { display: grid; place-items: center; }
.topbar.compact nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 10px var(--pad) 16px;
  background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 63px); overflow-y: auto; }
.topbar.compact.open nav { display: flex; }
.topbar.compact nav a { padding: 12px 10px; font-size: 16px; }
.topbar.compact .search-btn { margin-left: auto; }