/* Strona informacyjna SectorFront — styl wg design/brandkit (SECTORFRONT_BRANDBOOK.md, design-tokens.json).
   Tokeny poniżej są jedynym źródłem kolorów i typografii. Tylko czcionki systemowe / już zainstalowane, zero zasobów zewnętrznych. */
:root {
  /* kolory marki */
  --canvas: #0F1720;        /* tło główne */
  --steel: #25333D;         /* panele, karty */
  --surface-base: #17242E;  /* sekcje naprzemienne, wnętrza kart */
  --surface-elev: #1D2B35;  /* elementy zagnieżdżone w kartach */
  --orange: #F15D22;        /* główna akcja, aktywny stan */
  --orange-hover: #FF763D;
  --orange-pressed: #C44717;
  --gold: #D8B36A;          /* wyróżnienia, oszczędnie */
  --light: #E6EBEF;         /* nagłówki, kluczowy tekst */
  --muted: #B6C3CD;         /* tekst drugorzędny (token text.secondary) */
  --muted-2: #A9B6C1;       /* etykiety (Muted Text z brandbooka) */
  --on-accent: #0F1720;     /* tekst na pomarańczu */
  --line: #3B4C58;          /* obrys 1 px o niskim kontraście */
  --focus: #82C9FA;
  /* stany (tokeny state.*) */
  --ok: #6BD8A9; --warn: #F5C963; --danger: #FF7276; --info: #82C9FA;
  /* klasy żołnierzy (tokeny class.*) */
  --c-assault: #F15D22; --c-sniper: #8FBBE0; --c-engineer: #E0B860; --c-support: #78C9A0;
  /* typografia */
  --f-display: "Montserrat", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* kształt i ruch */
  --r-card: 12px; --r-ctl: 10px; --r-sm: 6px;
  --t-fast: 140ms; --t-norm: 220ms;
  --head-h: 64px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
body { margin: 0; background: var(--canvas); color: var(--light); font: 400 16px/1.55 var(--f-body); overflow-x: hidden; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
svg { fill: none; }
h1, h2, h3 { font-family: var(--f-display); letter-spacing: -.02em; line-height: 1.15; margin: 0; font-weight: 700; color: var(--light); }
h1 { font-size: clamp(30px, 6.5vw, 48px); font-weight: 800; }
h2 { font-size: clamp(24px, 4.5vw, 32px); }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0; }
a { color: var(--light); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--r-sm); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.mala { font-size: 14px; color: var(--muted); margin-top: 24px; }
.lead { font-size: 17px; color: var(--muted); max-width: 62ch; margin-top: 12px; }
.etykieta { font: 600 12px/1.4 var(--f-body); text-transform: uppercase; letter-spacing: .16em; color: var(--muted-2); margin-bottom: 8px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--orange); color: var(--on-accent); padding: 12px 16px; border-radius: var(--r-ctl); font-weight: 700; text-decoration: none; }
.skip:focus { top: 8px; }

/* Nagłówek */
.top { position: sticky; top: 0; z-index: 50; background: var(--canvas); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1120px; margin: 0 auto; padding: 0 16px; min-height: var(--head-h); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; }
.marka { display: inline-flex; align-items: center; min-height: 48px; padding: 6px 0; text-decoration: none; }
.marka img { height: 34px; width: auto; }
.menu-btn { display: none; min-width: 48px; min-height: 48px; background: var(--steel); border: 1px solid var(--line); border-radius: var(--r-ctl); color: var(--light); cursor: pointer; align-items: center; justify-content: center; transition: background-color var(--t-fast) ease; }
.menu-btn:hover { background: var(--surface-elev); }
.menu-lin, .menu-lin::before, .menu-lin::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--t-norm) ease; }
.menu-lin { position: relative; }
.menu-lin::before, .menu-lin::after { content: ""; position: absolute; left: 0; }
.menu-lin::before { top: -6px; } .menu-lin::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-lin { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-lin::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lin::after { transform: translateY(-6px) rotate(-45deg); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 2px; }
.nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; border-radius: var(--r-ctl); transition: color var(--t-fast) ease, background-color var(--t-fast) ease; }
.nav a:hover { color: var(--light); background: var(--steel); }
.nav a:active { color: var(--orange); }
/* bez JS menu jest zawsze rozwinięte (zawija się w wiersze); z JS na wąskich ekranach chowa się pod przycisk */
@media (max-width: 880px) {
  .top-in { padding-top: 4px; padding-bottom: 4px; }
  .nav { width: 100%; }
  .js .menu-btn { display: inline-flex; }
  .js .nav { display: none; padding-bottom: 8px; }
  .js .nav.open { display: block; }
  .nav ul { gap: 0; flex-direction: column; }
  .nav a { border-top: 1px solid var(--line); border-radius: 0; font-size: 16px; min-height: 48px; }
}

/* Przyciski: jedna główna akcja (pomarańcz, ciemny napis), drugorzędne to ciemny panel z ramką */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--steel); color: var(--light); font: 700 15px/1.2 var(--f-body); text-decoration: none; text-align: center; transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease; }
a.btn:hover { background: var(--surface-elev); border-color: var(--muted-2); }
.btn-main { background: var(--orange); border-color: transparent; color: var(--on-accent); }
a.btn-main:hover { background: var(--orange-hover); border-color: transparent; }
a.btn-main:active { background: var(--orange-pressed); }
.btn-ghost { background: transparent; }

/* Hero */
.hero { padding: 32px 0 0; border-bottom: 1px solid var(--line); }
.hero-in { display: grid; gap: 24px; align-items: end; }
.hero-tekst { padding-bottom: 8px; align-self: center; }
.status { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 12px 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--light); background: var(--surface-base); font: 600 13px/1.2 var(--f-body); text-transform: none; letter-spacing: 0; margin-bottom: 0; }
.status svg { width: 16px; height: 16px; color: var(--gold); }
.hero .etykieta { margin-bottom: 14px; }
.hero h1 { margin-top: 4px; }
.hero .lead { margin-bottom: 24px; }
.hero-akcje { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 4px; }
.hero-uwaga { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; border: 1px dashed var(--line); border-radius: var(--r-ctl); color: var(--muted); font-size: 14px; font-weight: 500; }
.hero-sc { position: relative; overflow: hidden; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r-card) var(--r-card) 0 0; background: var(--surface-base); min-height: 240px; }
.hero-tlo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; opacity: .28; filter: saturate(.5); }
.druzyna { position: relative; list-style: none; margin: 0; padding: 24px 8px 0; display: flex; justify-content: center; align-items: flex-end; }
.druzyna li { flex: 0 1 26%; max-width: 210px; margin: 0 -2%; }
.druzyna li:nth-child(2), .druzyna li:nth-child(3) { z-index: 1; }
.druzyna img { filter: saturate(.8); }
@media (min-width: 900px) {
  .hero { padding-top: 48px; }
  .hero-in { grid-template-columns: 1.1fr 1fr; gap: 40px; }
  .hero-sc { min-height: 400px; }
  .druzyna { padding-top: 40px; }
}

/* Sekcje */
.sek { padding: 56px 0; }
.sek-alt { background: var(--surface-base); border-block: 1px solid var(--line); }
.sek h2 + .lead { margin-top: 12px; }
.karta { background: var(--steel); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px; }
.ikona { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; background: var(--surface-elev); color: var(--light); border: 1px solid var(--line); border-radius: var(--r-ctl); margin-bottom: 12px; }
.ikona svg { width: 26px; height: 26px; }

/* Kroki */
.kroki { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.kroki h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.nr { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-elev); border: 1px solid var(--muted-2); color: var(--light); font: 600 14px var(--f-display); }
.kroki p { color: var(--muted); }

/* Klasy */
.przel { display: inline-flex; margin-top: 20px; padding: 4px; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--r-card); gap: 4px; }
.przel-b { min-height: 44px; min-width: 120px; padding: 0 18px; border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--muted); font: 600 15px var(--f-body); cursor: pointer; transition: background-color var(--t-fast) ease, color var(--t-fast) ease; }
.przel-b:hover { color: var(--light); }
.przel-b[aria-pressed="true"] { background: var(--orange); color: var(--on-accent); }
.klasy { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.klasa { display: flex; flex-direction: column; }
.k-assault { --kolor: var(--c-assault); } .k-sniper { --kolor: var(--c-sniper); } .k-engineer { --kolor: var(--c-engineer); } .k-support { --kolor: var(--c-support); }
.klasa h3 { display: flex; align-items: center; gap: 8px; margin: 12px 0 6px; }
.klasa h3 svg { width: 24px; height: 24px; color: var(--kolor); flex: none; }
.postac { background: var(--surface-base); border-radius: var(--r-ctl); border: 1px solid var(--line); padding: 10px 0 0; overflow: hidden; }
.postac img { width: 56%; max-width: 170px; margin: 0 auto; filter: saturate(.8); }
.w-f { display: none; }
[data-wyglad="f"] .w-f { display: block; } [data-wyglad="f"] .w-m { display: none; }
.rola { color: var(--muted); margin-bottom: 8px; }
.zdol { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); color: var(--light); }
.zdol strong { font-weight: 700; }

/* Terminal */
.wyniki { list-style: none; margin: 28px 0 0; padding: 12px; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); background: var(--surface-base); border: 1px solid var(--line); border-radius: var(--r-card); }
.wynik { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--steel); }
.wynik > svg { flex: none; width: 48px; height: 48px; padding: 10px; color: var(--c); background: var(--surface-elev); border: 1px solid var(--c); border-radius: var(--r-ctl); }
.wynik h3 { margin-bottom: 4px; font-size: 17px; }
.wynik p { color: var(--muted); font-size: 15px; }
.w-attack { --c: var(--light); } .w-crit { --c: var(--danger); } .w-big { --c: var(--gold); } .w-small { --c: var(--ok); } .w-ammo { --c: var(--warn); } .w-armor { --c: var(--info); } .w-empty { --c: var(--muted-2); }
.w-empty > svg { border-style: dashed; }

/* Sektory */
.sek-uklad { display: grid; gap: 24px; margin-top: 28px; }
.mapa { margin: 0; }
.mapa-ram { position: relative; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; max-width: 420px; margin: 0 auto; background: var(--surface-base); }
.mapa-ram img { width: 100%; filter: saturate(.7) brightness(.9); }
.znaczniki { list-style: none; margin: 0; padding: 0; }
.znaczniki li { position: absolute; transform: translate(-50%, -50%); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: var(--on-accent); border: 2px solid var(--canvas); font: 700 16px var(--f-display); }
.mapa figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 8px; }
.punkty { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.punkty li { display: flex; align-items: center; gap: 12px; background: var(--steel); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 6px 12px 6px 6px; }
.punkty img { width: 96px; flex: none; border-radius: var(--r-sm); filter: saturate(.6) brightness(.85); }
.punkty span { display: flex; flex: 1; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.punkty strong { font: 600 16px var(--f-display); }
.punkty em { font-style: normal; display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 600; }
.punkty em svg { width: 20px; height: 20px; }
.fakty { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fakty li { display: flex; gap: 12px; align-items: flex-start; }
.fakty svg { flex: none; width: 36px; height: 36px; padding: 7px; color: var(--light); background: var(--steel); border-radius: var(--r-ctl); border: 1px solid var(--line); }
.fakty p { color: var(--muted); }
.fakty strong { color: var(--light); }
@media (min-width: 900px) { .sek-uklad { grid-template-columns: minmax(300px, 400px) 1fr; align-items: start; } }

/* Stan prac */
.stan { display: grid; gap: 16px; margin-top: 28px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.stan h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.stan h3 svg { width: 24px; height: 24px; }
.stan .karta:first-child h3 svg { color: var(--ok); }
.stan .karta:last-child h3 svg { color: var(--warn); }
.lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lista.lista-ok li, .lista.lista-plan li { padding-left: 40px; }
.lista li { padding: 10px 12px; position: relative; background: var(--surface-elev); border-radius: var(--r-ctl); border: 1px solid var(--line); color: var(--light); }
.lista li::before { content: ""; position: absolute; left: 14px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; }
.lista-ok li::before { background: var(--ok); }
.lista-plan li::before { border: 2px dashed var(--warn); }

/* Testerzy */
.linki { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.link-off, .link-on { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; border-radius: var(--r-ctl); text-decoration: none; }
.link-off { border: 1px dashed var(--line); background: var(--steel); color: var(--muted); }
.link-on { border: 1px solid transparent; background: var(--orange); color: var(--on-accent); font-weight: 700; }
.link-off svg, .link-on svg { width: 24px; height: 24px; flex: none; }
.link-off span { flex: 1; font-weight: 600; color: var(--light); }
.link-off em { font-style: normal; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--gold); border: 1px solid var(--gold); border-radius: 999px; padding: 2px 10px; }

/* Tryby */
.tryby { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tryby { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .tryby { grid-template-columns: repeat(12, 1fr); } .tryby > li { grid-column: span 4; } .tryby > .tryb-boss { grid-column: span 8; } }
.tryb { position: relative; display: flex; flex-direction: column; gap: 6px; padding-right: 84px; min-height: 120px; }
.tryb h3 { font-size: 19px; }
.tryb p { color: var(--muted); font-size: 15px; }
.tryb .znacz { color: var(--gold); font: 600 12px/1.4 var(--f-body); text-transform: uppercase; letter-spacing: .1em; }
.tryb-g, .tryb-i { position: absolute; top: 12px; right: 12px; width: 64px; height: 64px; opacity: .95; }
.tryb-i { padding: 14px; color: var(--c-assault); background: var(--surface-elev); border: 1px solid var(--line); border-radius: var(--r-ctl); }
.tryb-boss { flex-direction: row; align-items: center; gap: 20px; padding-right: 16px; }
.tryb-boss .tryb-gb { position: static; width: 150px; height: auto; flex: none; }
.tryb-boss > div { display: grid; gap: 6px; }
.tryb-boss p:last-child { max-width: 70ch; }
@media (min-width: 640px) and (max-width: 959px) { .tryb-boss { grid-column: 1 / -1; } }
@media (max-width: 560px) { .tryb-boss { flex-direction: column; align-items: flex-start; } .tryb-boss .tryb-gb { width: 120px; } }
.fakty-2 { margin-top: 28px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px 24px; }
.nagrody { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.nagrody li { width: 72px; height: 72px; padding: 6px; background: var(--steel); border: 1px solid var(--line); border-radius: var(--r-ctl); }
.nagrody img { width: 100%; height: 100%; object-fit: contain; }
.w-gift { --c: var(--c-support); }

/* Stopka */
.stopka { padding: 32px 0 40px; border-top: 1px solid var(--line); background: var(--canvas); color: var(--muted); }
.stopka-in { display: grid; gap: 16px; }
.stopka-logo img { height: 28px; width: auto; }
.stopka ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.stopka li a { display: inline-flex; align-items: center; min-height: 44px; color: var(--light); }
.stopka strong { color: var(--light); }
.stopka .mala { margin: 0; color: var(--muted); }

/* Podstrony */
.dok { padding: 48px 0 64px; min-height: 55vh; }
.dok h1 { margin-bottom: 16px; }
.dok h2 { margin: 28px 0 12px; }
.dok p { color: var(--muted); max-width: 62ch; margin-bottom: 12px; }
.dok .lista { margin-bottom: 16px; max-width: 70ch; }
.dok .btn { margin-top: 12px; }

/* Wejście sekcji (tylko z JS) i ruch */
.js .rv { opacity: 0; transform: translateY(12px); transition: opacity var(--t-norm) ease, transform var(--t-norm) ease; }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
}
@media (max-width: 420px) {
  .btn { width: 100%; }
  .hero-uwaga { width: 100%; }
  .marka img { height: 30px; }
}
