/* ============================================================================
   PMRP | POLISH MILITARY ROLEPLAY — DESIGN SYSTEM
   Military / Premium / Technology — interface centrum dowodzenia
   ============================================================================ */

/* ================= RESET ================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body); background: var(--bg); color: var(--white);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
section[id], header[id] { scroll-margin-top: 84px; }

/* ================= WOJSKOWA PALETA ================= */
:root {
  --bg-deep: #070a06;
  --bg: #0e130b;
  --graphite: #141a10;
  --surface: #182015;
  --surface-2: #1f2a1b;
  --olive-deep: #25311f;
  --olive: #303e24;
  --olive-lite: #41522f;
  --khaki: #6f7455;
  --moss: #7e9268;
  --sage: #a3b18a;
  --army-gray: #98a08c;
  --light-gray: #c6cbb8;
  --white: #eef0e2;

  --signal: #9cc27a;
  --sand: #c9b26e;
  --red: #a65a4a;
  --red-deep: #7c3f34;

  --line: rgba(158, 176, 128, 0.14);
  --line-strong: rgba(163, 177, 138, 0.32);
  --muted: var(--army-gray);

  --font-head: "Rajdhani", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ================= WIELOWARSTWOWE TŁO ================= */
body {
  background:
    radial-gradient(110% 55% at 50% 0%, rgba(62, 82, 46, 0.16), transparent 55%),
    linear-gradient(180deg, #0e130b 0%, #0b0f08 45%, #0e130b 100%);
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(163, 177, 138, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(163, 177, 138, 0.028) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 75%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 75%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(62, 82, 46, 0.14), transparent 60%),
    radial-gradient(70% 50% at 100% 100%, rgba(30, 40, 24, 0.22), transparent 55%);
}
main, .hero, section, footer, .panel, .modal, .lightbox, .nav { position: relative; z-index: 1; }

/* ================= PROGRESS ================= */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 100;
  background: rgba(163, 177, 138, 0.1);
}
.progress::after {
  content: ""; display: block; height: 100%;
  background: linear-gradient(90deg, var(--olive-lite), var(--sage));
  transform: scaleX(var(--p, 0)); transform-origin: 0 50%;
  transition: transform 0.12s linear;
}

/* ================= TYPOGRAFIA / UTILITY ================= */
.wrap { max-width: 1220px; margin: 0 auto; padding: 0 22px; }
section { padding: 110px 0; }
.sp { position: relative;
  background: linear-gradient(180deg, rgba(20, 27, 17, 0.22), transparent 55%),
    linear-gradient(0deg, rgba(25, 33, 21, 0.16), transparent 40%);
}
.sp.dark {
  background: linear-gradient(180deg, var(--bg-deep), var(--bg) 30%, var(--graphite) 100%);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.sp.shade {
  background:
    repeating-linear-gradient(-45deg, rgba(163, 177, 138, 0.025) 0 2px, transparent 2px 14px),
    linear-gradient(180deg, #151d11, #0d130b 45%, #11170e);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; }

.sec-code {
  display: inline-flex; align-items: center; font-family: var(--font-head); font-size: 12px;
  font-weight: 700; letter-spacing: 3.5px; text-transform: uppercase;
  color: var(--sage); margin-bottom: 18px; gap: 10px;
}
.sec-code::before { content: ""; width: 34px; height: 1px; background: var(--olive-lite); }
.sec-code::after { content: ""; width: 34px; height: 1px; background: var(--olive-lite); }
.sec-code.center { justify-content: center; }

.title { font-size: clamp(30px, 4.6vw, 54px); letter-spacing: 2.5px; text-transform: uppercase; line-height: 1.05; }
.title .thin { font-weight: 500; color: var(--sage); }
.lead { color: var(--light-gray); font-size: 17px; line-height: 1.75; max-width: 640px; }
.lead b { color: var(--white); font-weight: 600; }
.note {
  margin-top: 26px; color: var(--muted); font-size: 13.5px; line-height: 1.7;
  border-left: 2px solid var(--olive-lite); padding-left: 14px;
}
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-size: 12px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; color: var(--sage);
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--sage); opacity: 0.6; }
.sec-head { margin-bottom: 52px; }
.sec-head .lead { margin-top: 16px; }
.big-num {
  font-family: var(--font-head); font-size: clamp(110px, 18vw, 240px);
  font-weight: 800; line-height: 0.8; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(163, 177, 138, 0.14);
  user-select: none; margin-bottom: 10px;
}

/* ================= PRZYCISKI ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: 2.5px; font-size: 13.5px; line-height: 1;
  padding: 16px 26px; border-radius: 4px; border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s, border-color 0.3s, color 0.3s;
}
.btn::after { content: "\2192"; margin-left: 2px; transition: transform 0.3s var(--ease); }
.btn-primary {
  background: linear-gradient(180deg, var(--olive-lite), #28331d);
  border-color: rgba(163, 177, 138, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 24px -18px rgba(0,0,0,0.85);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #46593a, #32402a);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 18px 32px -18px rgba(62, 82, 46, 0.6);
}
.btn-primary:hover::after { transform: translateX(4px); }
.btn-ghost { border-color: var(--line-strong); color: var(--light-gray); background: rgba(21, 26, 18, 0.4); }
.btn-ghost:hover { border-color: var(--sage); color: var(--white); background: var(--olive-deep); transform: translateY(-2px); }
.btn-ghost:hover::after { transform: translateX(4px); }
.btn-tech {
  border-color: rgba(163, 177, 138, 0.4); color: var(--sage); background: transparent;
  box-shadow: inset 0 0 0 1px rgba(163, 177, 138, 0.12);
}
.btn-tech::before {
  content: "// "; color: var(--sand); opacity: 0.9;
}
.btn-tech:hover {
  transform: translateY(-2px); color: var(--white);
  background: rgba(37, 49, 31, 0.35); border-color: var(--sage);
  box-shadow: inset 0 0 0 1px rgba(163, 177, 138, 0.3);
}
.btn-tech:hover::before { color: var(--white); }
.btn-tech:hover::after { transform: translateX(4px); }
.btn-cta {
  background: linear-gradient(180deg, #43563a, #2c3a24);
  border-color: rgba(163, 177, 138, 0.55); font-size: 15px; padding: 18px 34px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 0 0 6px rgba(62, 82, 46, 0.16);
}
.btn-cta:hover {
  transform: translateY(-3px);
  background: linear-gradient(180deg, #50694a, #33422a);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 0 0 10px rgba(83, 108, 62, 0.2);
}
.btn-cta:hover::after { transform: translateX(5px); }

/* ================= NAV ================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: rgba(9, 12, 8, 0.5);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s;
}
.nav.scrolled { background: rgba(6, 9, 6, 0.88); border-bottom-color: var(--line); }
.nav-inner {
  max-width: 1220px; margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 70px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  position: relative; width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 5px;
  background: linear-gradient(145deg, var(--surface-2), var(--olive-deep));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
}
.brand-mark span { font-family: var(--font-head); font-weight: 800; font-size: 17px; color: var(--white); }
.brand-mark i { position: absolute; right: 4px; bottom: 4px; width: 5px; height: 5px; background: var(--sage); border-radius: 1px; }
.brand-mark.sm { width: 30px; height: 30px; } .brand-mark.sm span { font-size: 14px; }
.brand-name { font-family: var(--font-head); font-weight: 700; letter-spacing: 3px; font-size: 17px; line-height: 1.1; color: var(--white); display: flex; flex-direction: column; }
.brand-name small { font-family: var(--font-body); font-size: 9.5px; font-weight: 500; letter-spacing: 1.6px; color: var(--muted); text-transform: uppercase; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative; display: block; padding: 9px 12px;
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--light-gray);
  transition: color 0.25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 1px;
  background: var(--sage); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-sep { width: 1px; height: 26px; background: var(--line-strong); margin: 0 10px; }
.nav-discord {
  border: 1px solid var(--line-strong); border-radius: 4px; padding: 11px 18px !important;
  background: linear-gradient(180deg, var(--olive-lite), #2b3820); color: var(--white) !important;
}
.nav-discord::after { display: none; }
.nav-discord:hover { border-color: var(--sage); background: linear-gradient(180deg, #46593a, #32402a); }
.burger {
  display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
.burger span { display: block; width: 22px; height: 2px; background: var(--light-gray); transition: transform 0.3s var(--ease), opacity 0.3s; }
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================= HERO ================= */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 70% 110%, rgba(45, 58, 34, 0.5), transparent 55%),
    radial-gradient(80% 60% at 15% 0%, rgba(34, 43, 28, 0.55), transparent 60%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 45%, var(--graphite) 100%);
}
.hero-art { position: absolute; inset: 0; isolation: isolate; }
.art-base {
  position: absolute; inset: -10%;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 420 420'%3E%3Cg fill='none' stroke='%237e9268' stroke-opacity='0.08'%3E%3Cpath d='M60 340C120 300 140 260 200 260s90 34 130 20c40-14 30-60 80-70'/%3E%3Cpath d='M40 380c60-40 120-40 180-30s100 10 160-10'/%3E%3Cpath d='M80 320c60-30 120-10 170 0s90-20 130-40'/%3E%3Ccircle cx='300' cy='230' r='90'/%3E%3Ccircle cx='300' cy='230' r='150'/%3E%3Ccircle cx='300' cy='230' r='210'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(11, 14, 10, 0.35), rgba(11, 14, 10, 0.8));
  background-size: 560px 560px, auto;
  will-change: transform;
}
.sweep {
  position: absolute; right: -160px; top: 50%; width: 420px; height: 420px;
  border-radius: 50%; opacity: 0.5; pointer-events: none;
  background:
    repeating-conic-gradient(from 0deg, rgba(126, 146, 104, 0.07) 0 8deg, transparent 8deg 24deg);
  animation: sweep 22s linear infinite;
  -webkit-mask-image: radial-gradient(circle, transparent 30%, #000 65%);
  mask-image: radial-gradient(circle, transparent 30%, #000 65%);
}
@keyframes sweep { to { transform: rotate(360deg); } }
.art-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(163, 177, 138, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(163, 177, 138, 0.05) 1px, transparent 1px);
  background-size: 90px 90px;
  -webkit-mask-image: linear-gradient(180deg, transparent 20%, #000 65%, transparent 92%);
  mask-image: linear-gradient(180deg, transparent 20%, #000 65%, transparent 92%);
}
.art-tics {
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: repeating-linear-gradient(90deg, rgba(163,177,138,0.14) 0 40px, transparent 40px 140px);
}
.art-scan {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(126, 146, 104, 0.28), transparent);
  animation: scan 9s linear infinite; opacity: 0.55;
}
@keyframes scan { 0% { top: -2%; } 60% { top: 102%; } 100% { top: 102%; } }
.art-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(4, 6, 4, 0.75) 100%);
}
.hud {
  position: absolute; width: 26px; height: 26px; z-index: 2;
  border: 1px solid rgba(163, 177, 138, 0.4); opacity: 0.7;
}
.hud.tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; }
.hud.tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; }
.hud.bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; }
.hud.br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; }
.hero-art .hud { top: 100px; }
.hero-art .hud.tr { right: 22px; }

.hero-inner { width: 100%; position: relative; z-index: 3; padding: 130px 22px 90px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase; color: var(--sage);
}
.pul { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(158, 194, 122, 0.7); animation: pul 2.4s infinite; }
@keyframes pul { 70% { box-shadow: 0 0 0 8px rgba(158, 194, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(158, 194, 122, 0); } }
.hero h1 {
  margin-top: 22px; font-size: clamp(54px, 11vw, 156px); line-height: 0.92;
  font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--white);
}
.hero h1 .two {
  color: transparent; -webkit-text-stroke: 1.5px rgba(163, 177, 138, 0.55);
}
.hero-sub {
  margin-top: 30px; display: flex; align-items: center; gap: 14px;
  font-family: var(--font-head); font-size: clamp(15px, 2.2vw, 21px);
  font-weight: 600; letter-spacing: 5px; text-transform: uppercase; color: var(--light-gray);
}
.hero-sub .bar { width: 56px; height: 2px; background: var(--olive-lite); flex: none; }
.hero-about { margin-top: 20px; max-width: 460px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.hero-btns { margin-top: 42px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-corner {
  position: absolute; left: 22px; bottom: 26px; z-index: 3;
  display: flex; flex-direction: column; gap: 7px;
  font-family: var(--font-head); font-size: 11px; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--muted); opacity: 0.9;
}
.hero-corner .hc { display: flex; align-items: center; gap: 8px; }
.hero-corner b { color: var(--sage); font-weight: 700; }
.d { width: 7px; height: 7px; border-radius: 50%; }
.d.on { background: var(--signal); }
.hero-down {
  position: absolute; right: 26px; bottom: 26px; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; color: var(--light-gray);
  transition: color 0.25s;
}
.hero-down:hover { color: var(--white); }
.hero-down span { animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* wejście hero */
.anim { opacity: 0; transform: translateY(26px); animation: enter 0.9s var(--ease) forwards; }
.d-1 { animation-delay: 0.1s; } .d-2 { animation-delay: 0.22s; } .d-3 { animation-delay: 0.34s; }
.d-4 { animation-delay: 0.44s; } .d-5 { animation-delay: 0.56s; } .d-6 { animation-delay: 0.72s; }
@keyframes enter { to { opacity: 1; transform: none; } }

/* ================= 4 MODUŁY ================= */
.mods { background: linear-gradient(180deg, var(--graphite), var(--bg)); border-top: 1px solid var(--line); }
.m4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mtile {
  position: relative; overflow: hidden; min-height: 330px;
  display: flex; flex-direction: column; justify-content: space-between; padding: 26px 24px;
  border: 1px solid var(--line); border-radius: 12px;
  cursor: pointer; text-align: left;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s, background 0.4s;
}
.mtile::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--sage), transparent);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.45s var(--ease);
}
.mtile::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s;
  background:
    linear-gradient(160deg, rgba(126, 146, 104, 0.1), transparent 45%),
    repeating-linear-gradient(-45deg, rgba(163, 177, 138, 0.04) 0 2px, transparent 2px 7px);
}
.mtile:hover::after { opacity: 1; }
.mtile:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 26px 50px -30px rgba(0,0,0,0.9); }
.mtile:hover::before { transform: scaleX(1); }
.mtile.t1 { background: linear-gradient(180deg, #1b2415, var(--surface)); }
.mtile.t2 { background: linear-gradient(180deg, #202a18, var(--surface)); }
.mtile.t3 { background: linear-gradient(180deg, #182013, var(--surface)); }
.mtile.t4 { background: linear-gradient(180deg, #1a2116, var(--surface)); }
.mtop { display: flex; align-items: flex-start; justify-content: space-between; position: relative; z-index: 2; }
.mnum { font-family: var(--font-head); font-weight: 800; font-size: clamp(46px, 6vw, 74px); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(163, 177, 138, 0.35); }
.mcode { font-family: var(--font-head); font-size: 10.5px; font-weight: 700; letter-spacing: 2.5px; color: var(--muted); }
.mlabel { font-family: var(--font-head); font-weight: 800; font-size: clamp(30px, 3.2vw, 42px); letter-spacing: 2px; text-transform: uppercase; line-height: 1; position: relative; z-index: 2; margin-top: 26px; }
.mlabel small { display: block; font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: 2px; color: var(--muted); margin-top: 10px; text-transform: uppercase; }
.mdesc { position: relative; z-index: 2; color: var(--muted); font-size: 13.5px; line-height: 1.6; margin-top: 14px; opacity: 0; transform: translateY(8px); transition: opacity 0.4s, transform 0.4s var(--ease); }
.mtile:hover .mdesc { opacity: 1; transform: translateY(0); }
.mopen {
  position: relative; z-index: 2; margin-top: 18px;
  font-family: var(--font-head); font-size: 11.5px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--sage);
  display: inline-flex; align-items: center; gap: 8px;
}
.mopen::after { content: "\2192"; transition: transform 0.3s var(--ease); }
.mtile:hover .mopen::after { transform: translateX(5px); }

/* ================= PANEL MODUŁU ================= */
.panel { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; visibility: hidden; }
.panel.open { visibility: visible; }
.panel-backdrop { position: absolute; inset: 0; background: rgba(5, 8, 5, 0.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.35s; }
.panel.open .panel-backdrop { opacity: 1; }
.panel-card {
  position: relative; width: min(560px, calc(100vw - 40px)); max-height: 82vh; overflow: auto;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background:
    linear-gradient(160deg, rgba(43, 56, 34, 0.5), rgba(11, 14, 10, 0.97) 50%),
    linear-gradient(180deg, var(--surface), var(--bg));
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.9);
  padding: 42px 34px 28px;
  transform: translateY(26px) scale(0.97); opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.35s;
}
.panel.open .panel-card { transform: none; opacity: 1; }
.panel-card::before, .panel-card::after {
  content: ""; position: absolute; width: 22px; height: 22px; border: 1px solid rgba(163,177,138,0.5);
}
.panel-card::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.panel-card::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.panel-close {
  position: absolute; top: 14px; right: 16px; font-size: 24px; line-height: 1;
  color: var(--muted); transition: color 0.25s, transform 0.3s var(--ease);
}
.panel-close:hover { color: var(--white); transform: rotate(90deg); }
.pcode { font-family: var(--font-head); font-size: 11.5px; font-weight: 700; letter-spacing: 3px; color: var(--sage); }
.panel-head h3 { font-size: 38px; letter-spacing: 2.5px; text-transform: uppercase; margin-top: 8px; }
.panel-head p { color: var(--muted); font-size: 14px; margin-top: 8px; line-height: 1.6; }
.prow { margin-top: 26px; border-top: 1px solid var(--line); }
.pitem {
  width: 100%; display: flex; align-items: center; gap: 16px; padding: 17px 8px;
  border-bottom: 1px solid var(--line); text-align: left;
  transition: background 0.25s, padding-left 0.3s var(--ease);
}
.pitem:hover { background: rgba(45, 58, 34, 0.55); padding-left: 18px; }
.pnum { font-family: var(--font-head); font-weight: 800; font-size: 18px; color: rgba(163, 177, 138, 0.4); width: 30px; flex: none; }
.pitem b { font-family: var(--font-head); font-size: 17px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--white); display: block; }
.pitem b small { font-family: var(--font-body); font-size: 11.5px; font-weight: 500; letter-spacing: 0.6px; color: var(--muted); text-transform: none; margin-left: 8px; }
.pitem .par { margin-left: auto; color: var(--sage); font-size: 18px; }
.pfoot { display: block; margin-top: 22px; font-family: var(--font-head); font-size: 10.5px; letter-spacing: 3px; color: var(--muted); text-transform: uppercase; }
.panel .wrap-discord { margin-left: auto; }

/* ================= LAYOUT „SPLIT” ================= */
.split { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 60px; align-items: start; }
.split .side { position: sticky; top: 120px; }
.split.rev { grid-template-columns: 1.4fr 0.9fr; }
.main-col > * + * { margin-top: 20px; }

/* ================= CHIPS / RULE BOX ================= */
.about-p { color: var(--muted); font-size: 16px; line-height: 1.75; max-width: 640px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chip {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 2px;
  font-size: 12px; font-weight: 700; color: var(--army-gray);
  border: 1px solid var(--line); border-radius: 100px; padding: 10px 18px;
  background: var(--surface);
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}
.chip:hover { color: var(--white); border-color: var(--line-strong); background: var(--olive-deep); transform: translateY(-2px); }
.rule-box {
  margin-top: 38px; max-width: 640px;
  border: 1px solid var(--line); border-left: 3px solid var(--sage); border-radius: 8px;
  background: linear-gradient(90deg, rgba(126, 146, 104, 0.1), var(--surface));
  padding: 26px 28px;
}
.rule-box h3 { font-size: 22px; letter-spacing: 1.5px; text-transform: uppercase; margin-top: 10px; }
.rule-box p { color: var(--muted); font-size: 14.5px; line-height: 1.7; margin-top: 10px; }

/* ================= FILOZOFIA RANG ================= */
.band {
  position: relative; text-align: center; overflow: hidden;
  background:
    repeating-linear-gradient(-45deg, rgba(163, 177, 138, 0.03) 0 2px, transparent 2px 12px),
    linear-gradient(180deg, #161d12, #10160d);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.band::before {
  content: ""; position: absolute; left: 50%; top: -60%; width: 700px; height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(62, 82, 46, 0.35), transparent 60%);
  pointer-events: none;
}
.band .wrap { position: relative; }
.rangi {
  margin-top: 26px; display: flex; align-items: center; justify-content: center; gap: 34px;
  font-family: var(--font-head); font-size: clamp(38px, 8vw, 92px); font-weight: 800;
  text-transform: uppercase; letter-spacing: 3px;
}
.rangi .arrow {
  width: clamp(54px, 7vw, 84px); height: clamp(54px, 7vw, 84px); flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%;
  font-size: clamp(26px, 4vw, 40px); color: var(--sage);
  animation: bob 2.4s ease-in-out infinite;
}
.rangi .out { color: transparent; -webkit-text-stroke: 1.5px rgba(163, 177, 138, 0.6); }
.rangi-sub { margin-top: 26px; color: var(--light-gray); font-size: clamp(14px, 2vw, 17px); letter-spacing: 1.5px; }

/* ================= JEDNOSTKI ================= */
.units { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.unit {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  cursor: pointer;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.unit:hover { transform: translateY(-7px); border-color: var(--line-strong); box-shadow: 0 30px 55px -32px rgba(0,0,0,0.95); }
.unit-art {
  position: relative; aspect-ratio: 4 / 2.6; overflow: hidden;
  display: grid; place-items: center; border-bottom: 1px solid var(--line);
}
.unit-art::before {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(-45deg, rgba(163, 177, 138, 0.05) 0 3px, transparent 3px 12px),
    radial-gradient(120% 120% at 30% 20%, rgba(126, 146, 104, 0.16), transparent 55%),
    linear-gradient(160deg, #1d2617, #10140d);
  transition: transform 0.5s var(--ease);
}
.unit:hover .unit-art::before { transform: scale(1.06); }
.emblem {
  position: relative; z-index: 2; font-size: clamp(64px, 8vw, 96px);
  color: rgba(238, 240, 226, 0.22); line-height: 1;
  transition: transform 0.5s var(--ease), color 0.4s;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.5));
}
.unit:hover .emblem { transform: scale(1.12); color: rgba(238, 240, 226, 0.38); }
.art-tag {
  position: absolute; z-index: 3; right: 12px; bottom: 10px;
  font-family: var(--font-head); font-size: 10px; font-weight: 700;
  letter-spacing: 2px; color: rgba(163, 177, 138, 0.6); text-transform: uppercase;
}
.statusbar {
  position: absolute; z-index: 3; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px;
  border-radius: 3px; background: rgba(8, 11, 7, 0.72);
  font-family: var(--font-head); font-size: 10.5px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border: 1px solid transparent;
}
.stdot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.stdot.green { background: var(--signal); box-shadow: 0 0 8px rgba(158, 194, 122, 0.8); }
.stdot.yellow { background: var(--sand); }
.unit-art .statusbar.green { border-color: rgba(158, 194, 122, 0.4); color: #d6e6c4; }
.unit-art .statusbar.yellow { border-color: rgba(201, 178, 110, 0.45); color: #ecdcb0; }
.unit-art .statusbar.gray { border-color: rgba(153, 160, 138, 0.4); color: var(--light-gray); }
.unit-body { padding: 22px 22px 18px; display: flex; flex-direction: column; flex: 1; }
.unit-body h3 { font-size: 21px; letter-spacing: 2px; text-transform: uppercase; }
.unit-body p { color: var(--muted); font-size: 13.5px; line-height: 1.65; margin-top: 9px; }
.unit-foot {
  margin-top: auto; padding-top: 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.btn-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 11.5px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--sage);
  transition: color 0.25s;
}
.btn-more::after { content: "\2192"; transition: transform 0.3s var(--ease); }
.btn-more:hover { color: var(--white); }
.btn-more:hover::after { transform: translateX(5px); }
.unum {
  font-family: var(--font-head); font-weight: 800; font-size: 15px;
  color: rgba(163, 177, 138, 0.35); letter-spacing: 1px;
}

/* ================= DISTINCT (ŻW) ================= */
.distinct {
  margin-top: 26px; display: flex; gap: 18px; align-items: flex-start;
  border: 1px dashed var(--line-strong); border-radius: 10px; padding: 20px 24px;
  background: rgba(21, 26, 18, 0.7);
}
.distinct .dk {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 2px;
  font-size: 12.5px; font-weight: 700; color: var(--sage); white-space: nowrap; padding-top: 2px;
}
.distinct p { color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ================= FLOW (SYSTEM SŁUŻBY) ================= */
.flow { position: relative; margin-top: 70px; }
.flow::before {
  content: ""; position: absolute; top: 8px; bottom: 8px; left: 50%; width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-strong) 10%, var(--line-strong) 90%, transparent);
}
.tstep { position: relative; width: 50%; padding: 0 44px 40px; }
.tstep:nth-child(odd) { text-align: right; }
.tstep:nth-child(even) { margin-left: 50%; text-align: left; }
.tstep::before {
  content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--sage);
  box-shadow: 0 0 0 5px rgba(163, 177, 138, 0.08);
  transition: background 0.3s, box-shadow 0.3s;
}
.tstep.open::before { background: var(--sage); box-shadow: 0 0 0 6px rgba(163, 177, 138, 0.18); }
.tstep-btn {
  width: 100%; text-align: inherit; display: block; position: relative;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  padding: 20px 22px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.tstep-btn:hover { border-color: var(--line-strong); background: var(--surface-2); transform: translateY(-2px); }
.tstep.open .tstep-btn { border-color: rgba(163, 177, 138, 0.45); }
.tstep-btn .tk {
  font-family: var(--font-head); font-size: 10.5px; font-weight: 700;
  letter-spacing: 2.5px; color: var(--sage); text-transform: uppercase;
}
.tstep-btn h3 { font-size: 21px; letter-spacing: 2px; text-transform: uppercase; margin-top: 6px; }
.tstep-btn h3 small {
  display: block; font-family: var(--font-body); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.4px; color: var(--muted); text-transform: none; margin-top: 4px;
}
.tstep-btn .chev {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 14px; transition: transform 0.3s var(--ease), color 0.3s;
}
.tstep.open .tstep-btn .chev { transform: translateY(-50%) rotate(180deg); color: var(--sage); }
.tstep-body { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.4s var(--ease), opacity 0.35s, margin 0.4s var(--ease); }
.tstep.open .tstep-body { max-height: 300px; opacity: 1; margin-top: 12px; }
.tstep-body p {
  color: var(--muted); font-size: 14px; line-height: 1.7;
  border-left: 2px solid rgba(126, 146, 104, 0.4); padding-left: 14px;
}

/* ================= REKRUTACJA ================= */
.reg { background: linear-gradient(180deg, var(--bg), var(--graphite)); }
.recruit {
  text-align: center; position: relative;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(62, 82, 46, 0.28), transparent 55%),
    repeating-linear-gradient(90deg, rgba(163, 177, 138, 0.03) 0 1px, transparent 1px 120px),
    linear-gradient(180deg, var(--surface), var(--bg));
  padding: 76px 30px;
}
.recruit::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--sage), transparent);
}
.recruit p { color: var(--muted); font-size: 16px; margin-top: 18px; }
.recruit .btn { margin-top: 34px; }

/* ================= SŁUŻBA MON ================= */
.mon-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 34px; }
.mon-card {
  border: 1px solid var(--line); border-radius: 10px; padding: 20px;
  background: linear-gradient(160deg, var(--surface), rgba(16, 20, 15, 0.6));
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.mon-card:hover { border-color: var(--line-strong); background: var(--surface-2); transform: translateY(-3px); }
.mon-card .ic {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid var(--line-strong); border-radius: 5px;
  font-size: 13px; color: var(--sage); background: var(--bg);
}
.mon-card h3 {
  font-size: 16.5px; letter-spacing: 1.8px; text-transform: uppercase;
  margin-top: 14px; display: flex; align-items: center; gap: 10px;
}
.mon-card h3 small { font-family: var(--font-head); font-size: 10.5px; color: var(--muted); letter-spacing: 2px; font-weight: 600; }
.mon-card p { color: var(--muted); font-size: 13px; line-height: 1.6; margin-top: 8px; }

/* ================= MAPA ================= */
.map { margin-top: 40px; }
.map-frame {
  position: relative; min-height: 480px; overflow: hidden;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 14px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='500' viewBox='0 0 500 500'%3E%3Cg fill='none' stroke='%237e9268' stroke-opacity='0.07'%3E%3Ccircle cx='250' cy='250' r='70'/%3E%3Ccircle cx='250' cy='250' r='130'/%3E%3Ccircle cx='250' cy='250' r='200'/%3E%3Ccircle cx='250' cy='250' r='270'/%3E%3Cpath d='M80 410c60-70 120-40 180-90s80-90 160-110'/%3E%3Cpath d='M40 330c70-30 120-90 190-100s110-20 160-60'/%3E%3Cpath d='M120 460c60-50 130-30 200-70'/%3E%3Cpath d='M380 40c-40 50-20 120-60 180'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(165deg, #1d2617, #0e130c 70%);
  box-shadow: inset 0 0 90px rgba(0,0,0,0.6), 0 40px 80px -50px rgba(0,0,0,0.9);
}
.map-frame::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(163, 177, 138, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(163, 177, 138, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
  mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
}
.map-glyph { font-size: 88px; color: rgba(163, 177, 138, 0.18); position: relative; z-index: 2; }
.map-label {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 3;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 2.5px;
  font-size: 11.5px; color: rgba(163, 177, 138, 0.55); text-align: center; white-space: nowrap;
}
.map-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px; }
.minfo {
  border: 1px solid var(--line); border-radius: 10px; padding: 22px;
  background: linear-gradient(160deg, var(--surface), rgba(16, 20, 15, 0.5));
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.minfo:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.minfo .tag {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 2.5px;
  font-size: 12px; color: var(--sage); font-weight: 700;
}
.minfo p { color: var(--muted); font-size: 14px; margin-top: 8px; line-height: 1.6; }

/* ================= ROADMAPA ================= */
.road {
  position: relative; display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0; margin-top: 80px; padding-top: 34px;
}
.road::before {
  content: ""; position: absolute; top: 18px; left: 8%; right: 8%; height: 1px;
  background: var(--line-strong);
}
.road::after {
  content: ""; position: absolute; top: 17px; left: 8%; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--signal), var(--sage));
  transition: width 1.3s var(--ease) 0.3s;
}
.road.in::after { width: 84%; }
.rcol { padding: 0 34px; position: relative; }
.rcol::before {
  content: ""; position: absolute; top: -34px; left: 50%; transform: translateX(-50%);
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-strong);
}
.rcol.live::before { border-color: var(--signal); background: var(--signal); box-shadow: 0 0 0 5px rgba(158, 194, 122, 0.14); }
.rcol.future::before { border-color: var(--sage); }
.rcol .phase {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 2.5px;
  font-size: 12px; font-weight: 700;
}
.rcol .phase.live { color: var(--signal); }
.rcol .phase.future { color: var(--sage); }
.rcol h3 { font-size: 24px; letter-spacing: 2px; text-transform: uppercase; margin: 8px 0 18px; }
.rcol ul { display: grid; gap: 9px; }
.rcol li {
  color: var(--muted); font-size: 14px; padding-left: 18px; position: relative; line-height: 1.5;
}
.rcol li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px;
  border-radius: 50%; border: 1px solid var(--sage);
}
.rcol.live li::before { background: rgba(158, 194, 122, 0.6); border-color: transparent; }
.rcol.future li::before { background: rgba(163, 177, 138, 0.35); border-color: transparent; }

/* ================= AKTUALNOŚCI ================= */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.fbtn {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 2px;
  font-size: 12px; font-weight: 700; color: var(--army-gray);
  padding: 10px 18px; border: 1px solid var(--line); border-radius: 100px;
  background: var(--surface); transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.fbtn:hover { color: var(--white); border-color: var(--line-strong); }
.fbtn.active { color: var(--bg); background: var(--sage); border-color: var(--sage); }
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-list.has > .ncard:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; }
.ncard {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--surface); cursor: pointer; display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.ncard:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 28px 50px -32px rgba(0,0,0,0.95); }
.ncard.hidden { display: none; }
.ncard-art {
  position: relative; aspect-ratio: 16 / 7; display: grid; place-items: center; overflow: hidden;
  background:
    repeating-linear-gradient(-45deg, rgba(163, 177, 138, 0.05) 0 3px, transparent 3px 12px),
    linear-gradient(160deg, #1d2617, #10140d);
  border-bottom: 1px solid var(--line);
}
.ncard .big { font-size: 46px; color: rgba(163, 177, 138, 0.2); }
.ncard .cat {
  position: absolute; bottom: 10px; left: 12px;
  font-family: var(--font-head); font-size: 10px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--sage);
  background: rgba(8, 11, 7, 0.7); padding: 5px 10px; border-radius: 3px;
}
.ncard-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.ncard-date { color: var(--muted); font-family: var(--font-head); font-size: 12px; letter-spacing: 2px; }
.ncard-date b { color: var(--sage); font-size: 15px; margin-right: 6px; }
.ncard h3 { font-size: 19px; letter-spacing: 1.5px; text-transform: uppercase; margin-top: 10px; line-height: 1.3; }
.ncard p { color: var(--muted); font-size: 13.5px; line-height: 1.65; margin-top: 10px; }
.read {
  margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 11.5px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--sage);
}
.read::after { content: "\2192"; transition: transform 0.3s var(--ease); }
.ncard:hover .read::after { transform: translateX(5px); }
.news-empty {
  grid-column: 1 / -1; text-align: center;
  border: 1px dashed var(--line-strong); border-radius: 12px; padding: 64px 24px;
  background: rgba(21, 26, 18, 0.6); color: var(--muted);
  font-family: var(--font-head); font-size: 18px; letter-spacing: 1.5px; line-height: 1.7;
}

/* ================= GALERIA ================= */
.gallery { columns: 4; column-gap: 18px; margin-top: 30px; }
.gitem {
  position: relative; margin-bottom: 18px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); cursor: zoom-in; break-inside: avoid;
  aspect-ratio: 4 / 3; display: grid; place-items: center;
  background:
    radial-gradient(120% 120% at 25% 20%, rgba(90, 116, 72, 0.22), transparent 55%),
    linear-gradient(165deg, #1d2617, #0e130c);
}
.gitem::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(12deg, transparent 0 14px, rgba(163, 177, 138, 0.03) 14px 15px);
}
.gitem .glyph { font-size: 40px; color: rgba(163, 177, 138, 0.3); z-index: 1; transition: transform 0.4s var(--ease); }
.gitem:hover .glyph { transform: scale(1.2); }
.gitem .cap {
  position: absolute; inset: auto 0 0 0; z-index: 2; padding: 30px 14px 12px;
  font-size: 11.5px; letter-spacing: 0.4px; color: rgba(238, 240, 226, 0.7); text-align: center;
  background: linear-gradient(transparent, rgba(8, 11, 7, 0.9));
  opacity: 0; transition: opacity 0.3s;
}
.gitem:hover .cap { opacity: 1; }

/* ================= YOUTUBE ================= */
.yt { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.yt-frame {
  position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(80% 80% at 50% 40%, rgba(62, 82, 46, 0.35), transparent 60%),
    repeating-linear-gradient(-45deg, rgba(163, 177, 138, 0.04) 0 3px, transparent 3px 12px),
    linear-gradient(160deg, #1d2617, #0d120b);
  box-shadow: 0 40px 80px -50px rgba(0,0,0,0.9);
}
.yt-tag {
  position: absolute; top: 14px; left: 14px; font-family: var(--font-head);
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--sage); background: rgba(8, 11, 7, 0.7); padding: 6px 12px; border-radius: 3px;
}
.yt-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(13, 17, 12, 0.8); border: 1px solid var(--line-strong);
  transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s;
}
.yt-play span {
  width: 0; height: 0; margin-left: 5px;
  border-top: 12px solid transparent; border-bottom: 12px solid transparent;
  border-left: 20px solid var(--sage);
}
.yt-frame:hover .yt-play { transform: translate(-50%, -50%) scale(1.08); border-color: var(--sage); }
.yt-info .kicker { margin-bottom: 16px; }
.yt-info h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: 2px; text-transform: uppercase; line-height: 1.05; }
.yt-info .desc { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 18px 0 30px; max-width: 460px; }

/* ================= CTA DISCORD ================= */
.cta-big {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 100% at 50% 120%, rgba(62, 82, 46, 0.4), transparent 55%),
    repeating-linear-gradient(-45deg, rgba(163, 177, 138, 0.03) 0 2px, transparent 2px 10px),
    linear-gradient(180deg, var(--graphite), var(--bg-deep));
  border-top: 1px solid var(--line);
}
.cta-big::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 80% at 50% 0%, rgba(126, 146, 104, 0.12), transparent 60%);
}
.cta { text-align: center; position: relative; z-index: 2; padding: 30px 0 0; }
.cta h2 { font-size: clamp(34px, 6vw, 68px); letter-spacing: 3px; text-transform: uppercase; margin-top: 6px; }
.cta p { color: var(--light-gray); font-size: 16px; margin-top: 18px; }
.cta .btn { margin-top: 36px; }

/* ================= FOOTER ================= */
.footer { border-top: 1px solid var(--line); background: var(--bg-deep); }
.footer-inner {
  max-width: 1220px; margin: 0 auto; padding: 56px 22px 36px;
  display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: start;
}
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand b { font-family: var(--font-head); display: block; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; font-size: 15px; }
.footer-brand small { color: var(--muted); font-size: 12px; margin-top: 4px; display: block; }
.footer-cols { display: flex; gap: 60px; }
.fcol b {
  font-family: var(--font-head); font-size: 12px; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--sage); display: block; margin-bottom: 16px;
}
.fcol a {
  display: block; color: var(--muted); font-size: 14px; padding: 6px 0;
  transition: color 0.25s, transform 0.25s var(--ease);
}
.fcol a:hover { color: var(--white); transform: translateX(3px); }
.footer-line {
  max-width: 1220px; margin: 0 auto; padding: 18px 22px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-family: var(--font-head); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted);
}
.footer-line span:last-child { color: var(--sage); }

/* ================= MODAL ================= */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; visibility: hidden; }
.modal.open { visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 8, 5, 0.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.35s; }
.modal.open .modal-backdrop { opacity: 1; }
.modal-box {
  position: relative; width: min(680px, calc(100vw - 40px)); max-height: 84vh; overflow: auto;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: linear-gradient(180deg, var(--surface), var(--bg));
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.9);
  padding: 40px 38px 36px;
  transform: translateY(26px) scale(0.97); opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.35s;
}
.modal.open .modal-box { transform: none; opacity: 1; }
.modal-close {
  position: absolute; top: 14px; right: 18px; font-size: 26px; line-height: 1;
  color: var(--muted); transition: color 0.25s, transform 0.3s var(--ease);
}
.modal-close:hover { color: var(--white); transform: rotate(90deg); }
.modal-art {
  position: relative; height: 160px; border-radius: 8px; overflow: hidden;
  display: grid; place-items: center; margin-bottom: 22px;
  background:
    repeating-linear-gradient(-45deg, rgba(163, 177, 138, 0.06) 0 3px, transparent 3px 12px),
    linear-gradient(160deg, #1d2617, #10140d);
}
.modal-art .em { font-size: 70px; color: rgba(238, 240, 226, 0.28); }
.modal-k {
  font-family: var(--font-head); font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; color: var(--sage);
}
.modal-box h3 { font-size: 28px; letter-spacing: 2px; text-transform: uppercase; margin: 10px 0 14px; }
.modal-box p { color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.modal-box h4 { font-family: var(--font-head); font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--light-gray); margin: 26px 0 8px; }
.big-date { font-family: var(--font-head); font-size: 12px; letter-spacing: 2px; color: var(--sage); text-transform: uppercase; }

/* ================= LIGHTBOX ================= */
.lightbox { position: fixed; inset: 0; z-index: 92; display: grid; place-items: center; visibility: hidden; }
.lightbox.open { visibility: visible; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(5, 8, 5, 0.92); opacity: 0; transition: opacity 0.35s; }
.lightbox.open .lightbox-backdrop { opacity: 1; }
.lightbox-box { position: relative; text-align: center; opacity: 0; transform: scale(0.97); transition: transform 0.35s var(--ease), opacity 0.3s; }
.lightbox.open .lightbox-box { opacity: 1; transform: none; }
.lightbox-stage { width: min(78vw, 900px); min-height: 480px; border-radius: 12px; border: 1px solid var(--line-strong); display: grid; place-items: center; overflow: hidden; background: linear-gradient(160deg, #1d2617, #0e130c); }
.lightbox-stage .big { font-size: 140px; color: rgba(163, 177, 138, 0.18); }
.lightbox-cap { margin-top: 16px; color: var(--light-gray); font-size: 14px; letter-spacing: 0.5px; }

/* ================= REVEAL ================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-main { opacity: 0; }

/* ================= IDENTYFIKACJA /// (PREMIUM) ================= */
.brand-slash {
  font-family: var(--font-head); font-weight: 800; font-size: 15px;
  color: var(--sand); letter-spacing: 1px; opacity: 0.9; flex: none;
}
.sl { color: var(--sand); font-weight: 800; letter-spacing: 2px; }

.stripe-band {
  position: relative; z-index: 8; height: 16px; overflow: hidden;
  border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line);
  background:
    repeating-linear-gradient(135deg, rgba(163, 177, 138, 0.14) 0 10px, transparent 10px 20px),
    linear-gradient(135deg, var(--olive-deep) 0%, #1b2315 50%, var(--olive-deep) 100%);
}
.stripe-band span { position: absolute; inset: 0; pointer-events: none; }
.stripe-band span:nth-child(1) {
  background: repeating-linear-gradient(90deg, rgba(201, 178, 110, 0.09) 0 1px, transparent 1px 26px);
}
.stripe-band span:nth-child(2) {
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.045) 0 2px, transparent 2px 9px);
  mix-blend-mode: screen;
}
.stripe-band span:nth-child(3) {
  background: linear-gradient(90deg, transparent, rgba(158, 194, 122, 0.28), transparent);
  background-size: 60% 100%; background-repeat: no-repeat;
  animation: bandmove 8s linear infinite;
}
.stripe-band.slim { height: 9px; }
@keyframes bandmove { from { transform: translateX(-70%); } to { transform: translateX(70%); } }

.hero-tags {
  display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 18px 0 24px;
}
.hero-tags span {
  font-family: var(--font-head); font-size: 11px; font-weight: 700;
  letter-spacing: 2.5px; color: var(--sage); text-transform: uppercase;
  padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 3px;
  background: rgba(24, 32, 21, 0.35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero-tags span:first-child { color: var(--sand); border-color: rgba(201, 178, 110, 0.4); }

.hread {
  position: absolute; top: 168px; right: 22px; z-index: 5;
  display: flex; flex-direction: column; gap: 7px;
  min-width: 170px; padding: 16px 18px 16px 20px;
  border: 1px solid var(--line); border-left: 2px solid var(--olive-lite);
  background: linear-gradient(160deg, rgba(20, 27, 17, 0.66), rgba(10, 14, 9, 0.55));
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hread::before {
  content: ""; position: absolute; top: 8px; left: -7px; width: 12px; height: 12px;
  background: var(--bg); border: 1px solid var(--olive-lite); transform: rotate(45deg);
}
.hread span {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 10.5px; font-weight: 700;
  letter-spacing: 2px; color: var(--muted); text-transform: uppercase;
}
.hread b { color: var(--sage); width: 44px; flex: none; }
.hread i.d { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); display: inline-block; }
.hread i.d.on { background: var(--signal); box-shadow: 0 0 8px rgba(158, 194, 122, 0.8); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

#moduly { background: linear-gradient(180deg, var(--graphite), var(--bg) 55%, var(--graphite)); }
.m4 { grid-template-columns: repeat(4, 1fr); grid-auto-rows: auto; }
.mtile:nth-child(3) {
  grid-row: span 2; min-height: 672px;
  background: linear-gradient(180deg, #222c1a, var(--surface) 70%);
  border-color: rgba(201, 178, 110, 0.28);
}
.mtile:nth-child(3) .mcode { color: var(--sand); border-color: rgba(201, 178, 110, 0.5); }
.mtile:nth-child(3) .mopen { color: var(--sand); }
@media (max-width: 900px) {
  .mtile:nth-child(3) { grid-row: auto; min-height: 320px; }
}
.mpre {
  position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px 8px;
  margin-top: 14px; max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.45s var(--ease), opacity 0.4s, margin-top 0.4s var(--ease);
}
.mtile:hover .mpre { max-height: 90px; opacity: 1; margin-top: 14px; }
.mpre i {
  font-style: normal; font-family: var(--font-head); font-size: 9.5px; font-weight: 700;
  letter-spacing: 1.5px; color: rgba(201, 178, 110, 0.7); text-transform: uppercase;
  align-self: center;
}
.mpre b {
  font-family: var(--font-body); font-size: 11.5px; font-weight: 600; color: var(--light-gray);
}

.unit { background: linear-gradient(160deg, #1c2516, var(--surface)); }
.unit:hover { border-color: rgba(163, 177, 138, 0.42); }
.unit-art::before {
  background:
    repeating-linear-gradient(-45deg, rgba(163, 177, 138, 0.05) 0 3px, transparent 3px 12px),
    repeating-linear-gradient(45deg, rgba(238, 240, 226, 0.02) 0 1px, transparent 1px 16px),
    radial-gradient(120% 120% at 30% 20%, rgba(126, 146, 104, 0.18), transparent 55%),
    linear-gradient(160deg, #202a18, #11160f);
}
.minfo { background: linear-gradient(160deg, #1a2314, var(--surface)); }
.mon-card { background: linear-gradient(160deg, #1b2416, var(--surface)); }
.news-empty { background: repeating-linear-gradient(-45deg, rgba(163, 177, 138, 0.03) 0 2px, transparent 2px 14px), linear-gradient(160deg, #192115, rgba(24, 32, 21, 0.35)); }
.ncard { background: linear-gradient(160deg, var(--surface-2), var(--surface)); }

.tstep-btn { background: linear-gradient(160deg, rgba(31, 42, 27, 0.7), rgba(24, 32, 21, 0.45)); }

@media (max-width: 900px) {
  .hread { display: none; }
  .hero-tags { margin: 12px 0 20px; }
}
@media (max-width: 640px) {
  .stripe-band { height: 12px; }
  .hero-tags span { font-size: 10px; padding: 6px 10px; letter-spacing: 2px; }
  .btn { padding: 14px 20px; font-size: 12.5px; }
}

/* ================= ROZBUDOWA TREŚCI (PREMIUM) ================= */
[id] { scroll-margin-top: 96px; }

.btn.is-soon {
  opacity: 0.82; cursor: not-allowed; position: relative;
  background: linear-gradient(180deg, #2c3622, #212a1a);
  border-style: dashed; box-shadow: none; filter: saturate(0.85);
}
.btn.is-soon::after { content: none; }
.btn.is-soon .soon-tag {
  font-family: var(--font-body); font-size: 10px; font-weight: 600;
  letter-spacing: 2px; color: var(--sand); margin-left: 4px;
  padding: 4px 8px; border: 1px dashed rgba(201, 178, 110, 0.5); border-radius: 3px;
  text-transform: uppercase; white-space: nowrap;
}

/* Na czym polega PMRP */
.polega { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 28px; }
.polega-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.hk {
  font-family: var(--font-head); font-size: 10.5px; font-weight: 700;
  letter-spacing: 3px; color: var(--army-gray); text-transform: uppercase;
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface);
}
.plg-intro { color: var(--light-gray); font-size: 15.5px; line-height: 1.75; max-width: 640px; }
.plg-high {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 20px; padding: 16px 18px;
  border-left: 3px solid var(--sand);
  background: linear-gradient(160deg, rgba(37, 49, 31, 0.7), rgba(30, 39, 26, 0.4));
  color: var(--white); font-weight: 600; font-size: 15.5px; letter-spacing: 0.4px;
}
.plg-high b { color: var(--sand); font-weight: 800; font-size: 18px; line-height: 1; }
.plg-list, .xlist { list-style: none; margin-top: 20px; display: grid; gap: 10px; max-width: 640px; }
.plg-list li, .xlist li {
  position: relative; color: var(--muted); font-size: 14.5px; line-height: 1.6; padding-left: 26px;
}
.plg-list li i, .xlist li i {
  position: absolute; left: 0; top: 2px; font-style: normal; color: var(--sage); font-size: 12px;
}

/* Szkolenia */
.modlist { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.mchip {
  font-family: var(--font-head); font-size: 12.5px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--light-gray);
  padding: 11px 18px; border: 1px solid var(--line-strong); border-radius: 4px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  transition: border-color 0.3s, transform 0.3s var(--ease), color 0.3s;
}
.mchip:hover { border-color: var(--sage); color: var(--white); transform: translateY(-2px); }

/* Rozwój */
.hbox {
  margin-top: 24px; padding: 20px 22px;
  border: 1px solid rgba(201, 178, 110, 0.35); border-left: 3px solid var(--sand);
  background:
    repeating-linear-gradient(-45deg, rgba(163, 177, 138, 0.03) 0 2px, transparent 2px 12px),
    linear-gradient(160deg, rgba(37, 49, 31, 0.75), rgba(24, 32, 21, 0.5));
}
.hbox .hk { margin-bottom: 10px; display: inline-block; color: var(--sand); border-color: rgba(201, 178, 110, 0.35); }
.hbox p { color: var(--white); font-size: 15.5px; font-weight: 600; line-height: 1.6; }
.hbox p b { color: var(--sand); margin-right: 8px; }

/* ELITA — podwyższone wymagania */
.unit--elite { border-color: rgba(201, 178, 110, 0.34); }
.unit--elite:hover { border-color: rgba(201, 178, 110, 0.6); }
.unit--elite .unit-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(-45deg, rgba(201, 178, 110, 0.09) 0 4px, transparent 4px 14px);
}
.elite-tag {
  position: absolute; z-index: 3; top: 12px; right: 12px;
  font-family: var(--font-head); font-size: 10px; font-weight: 800; letter-spacing: 2.5px;
  color: #10150c; background: linear-gradient(180deg, var(--sand), #b09a5c);
  padding: 6px 10px; border-radius: 3px; text-transform: uppercase;
}
.kchip {
  display: inline-block; margin-left: 8px; padding: 3px 8px; border-radius: 3px;
  font-size: 10px; font-weight: 800; letter-spacing: 2px; color: #10150c;
  background: var(--sand); text-transform: uppercase; vertical-align: 1px;
}

/* MAPA W PRZYGOTOWANIU */
.map-frame.wip {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background:
    repeating-linear-gradient(-45deg, rgba(163, 177, 138, 0.05) 0 3px, transparent 3px 16px),
    repeating-linear-gradient(45deg, rgba(163, 177, 138, 0.04) 0 3px, transparent 3px 16px),
    linear-gradient(165deg, #1b2316, #0e130c 75%);
}
.map-status {
  position: relative; z-index: 2; text-align: center;
  font-family: var(--font-head); font-size: clamp(30px, 6vw, 60px); font-weight: 800;
  letter-spacing: 8px; text-transform: uppercase; color: transparent;
  -webkit-text-stroke: 1px rgba(201, 178, 110, 0.65);
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.5));
}

/* Puste stany */
.filters.empty { display: none; }
.news-empty {
  grid-column: 1 / -1; padding: 44px 30px; text-align: center;
  border: 1px dashed var(--line-strong); border-radius: 12px;
  font-size: 14.5px; color: var(--muted); line-height: 1.7;
}
.news-empty .ne-big {
  display: block; font-family: var(--font-head); font-size: 14px; font-weight: 800;
  letter-spacing: 6px; text-transform: uppercase; color: var(--sage); margin-bottom: 12px;
}
.news-empty .ne-sub { display: block; margin-top: 8px; font-size: 12.5px; color: var(--army-gray); letter-spacing: 0.5px; }

/* ================= RESPONSYWNIE ================= */
@media (max-width: 1120px) {
  .m4 { grid-template-columns: repeat(2, 1fr); }
  .mon-grid { grid-template-columns: repeat(2, 1fr); }
  .news-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .burger { display: flex; }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(7, 10, 6, 0.97); border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 12px; font-size: 14px; }
  .nav-links a::after { display: none; }
  .nav-links a.active { color: #fff; }
  .nav-sep { width: auto; height: 1px; margin: 8px 12px; background: var(--line); }
  .split, .split.rev { grid-template-columns: 1fr; gap: 20px; }
  .split .side { position: static; }
  .split.rev .side { order: 0; }
  .big-num { font-size: clamp(90px, 26vw, 150px); }
  .flow::before { left: 16px; }
  .tstep, .tstep:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 40px 54px; text-align: left; }
  .tstep::before { left: 16px; transform: translateX(-50%); }
  .tstep:nth-child(odd) .tstep-body, .tstep:nth-child(even) .tstep-body { padding: 0; }
  .units { grid-template-columns: repeat(2, 1fr); }
  .map-info { grid-template-columns: 1fr; }
  .gallery { columns: 2; }
  .news-list.has > .ncard:first-child { grid-template-columns: 1fr; }
  .news-list.has > .ncard:first-child .ncard-art { aspect-ratio: 16 / 8; }
  .yt { grid-template-columns: 1fr; gap: 34px; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-cols { gap: 40px; flex-wrap: wrap; }
  .road { grid-template-columns: 1fr; gap: 52px; }
  .road::before, .road::after { display: none; }
  .rcol::before { top: -30px; }
}
@media (max-width: 640px) {
  section { padding: 80px 0; }
  .m4 { grid-template-columns: 1fr; }
  .units, .mon-grid, .news-list { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  .hero-inner { padding-top: 110px; padding-bottom: 130px; }
  .hero h1 { font-size: clamp(44px, 14vw, 74px); }
  .hero-corner { left: 20px; bottom: 20px; }
  .hero-down { display: none; }
  .hero-btns { width: 100%; flex-direction: column; }
  .btn { width: 100%; }
  .rangi { gap: 18px; font-size: clamp(32px, 12vw, 52px); }
  .rangi .arrow { width: 46px; height: 46px; font-size: 20px; }
  .statusbar { font-size: 9.5px; letter-spacing: 1.8px; }
  .recruit { padding: 60px 22px; }
  .footer-line { justify-content: center; text-align: center; }
  .map-frame { min-height: 340px; }
}

/* ================= REDUCED MOTION ================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal, .anim { opacity: 1; transform: none; }
  .art-scan, .sweep { animation: none; }
}