/* ============================================================
   RESET & ROOT
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Blokada zaznaczania i kopiowania */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }

:root {
  --blue:        #2563eb;
  --blue-light:  #3b82f6;
  --blue-dim:    #1e3a5f;
  --blue-glow:   rgba(37,99,235,.25);
  --gold:        #d4a843;
  --gold-dim:    rgba(212,168,67,.15);
  --gold-glow:   rgba(212,168,67,.3);

  --bg:          #080b12;
  --bg2:         #0c1018;
  --surface:     #111827;
  --surface2:    #162032;
  --surface3:    #1a2540;
  --border:      rgba(255,255,255,.07);
  --border2:     rgba(255,255,255,.12);

  --text:        #c8d3e8;
  --text-muted:  #64748b;
  --white:       #f0f4ff;

  --green:       #22c55e;
  --orange:      #f97316;
  --red:         #ef4444;
  --yellow:      #eab308;
  --gray-c:      #94a3b8;
  --purple:      #a855f7;

  --radius:      12px;
  --radius-lg:   18px;
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --mono:        'JetBrains Mono', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--blue-dim); border-radius: 3px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.warn-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  background: linear-gradient(90deg, #7c1d1d 0%, #991b1b 50%, #7c1d1d 100%);
  border-top: 1px solid rgba(239,68,68,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #fecaca;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.2px;
  box-shadow: 0 -4px 20px rgba(239,68,68,.2);
}
.warn-banner svg { color: #f87171; flex-shrink: 0; }
.warn-banner strong { color: #fff; font-weight: 800; }

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(8,11,18,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-star {
  font-size: 24px;
  color: var(--gold);
  line-height: 1;
  filter: drop-shadow(0 0 8px var(--gold-glow));
}

.nav-lspd {
  display: block;
  font-size: 15px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 4px;
  line-height: 1.1;
}

.nav-fto {
  display: block;
  font-size: 10px;
  color: var(--blue-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 2px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 13px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: color .2s, background .2s;
}

.nav-links a:hover, .nav-links a.active-link {
  color: var(--white);
  background: var(--surface2);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 80px 28px 60px;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37,99,235,.2) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 90%, rgba(212,168,67,.06) 0%, transparent 60%),
    linear-gradient(180deg, #050810 0%, #080b12 100%);
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  width: 100%;
}

.hero-banner {
  width: 100%;
  max-width: 780px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border2);
  box-shadow: 0 0 60px rgba(37,99,235,.15), 0 24px 60px rgba(0,0,0,.6);
  display: block;
  margin: 0 auto 40px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37,99,235,.15);
  border: 1px solid rgba(37,99,235,.4);
  color: var(--blue-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 18px;
}

.hero-accent {
  background: linear-gradient(135deg, var(--blue-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-main {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  padding: 13px 32px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .3px;
  transition: all .2s;
  box-shadow: 0 4px 20px var(--blue-glow);
}

.cta-main:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59,130,246,.4);
}

.cta-ghost {
  display: inline-block;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  padding: 13px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--border2);
  transition: all .2s;
}

.cta-ghost:hover {
  background: var(--surface);
  color: var(--white);
  border-color: var(--border2);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--blue-light));
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: .2; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 100px 28px; }
.section-alt { background: var(--bg2); }

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.sec-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 14px;
}

.sec-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1px;
  margin-bottom: 10px;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sec-fto-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  opacity: .85;
  box-shadow: 0 0 10px rgba(99,102,241,.3);
}

.sec-sub {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 52px;
}

.pts-pill {
  display: inline-block;
  background: var(--gold-dim);
  border: 1px solid rgba(212,168,67,.35);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  letter-spacing: .5px;
}

/* ============================================================
   WYMAGANIA
   ============================================================ */
.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.req-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}

.req-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent);
  opacity: 0;
  transition: opacity .25s;
}

.req-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37,99,235,.4);
  box-shadow: 0 20px 40px rgba(0,0,0,.3), 0 0 0 1px rgba(37,99,235,.1);
}

.req-card:hover::before { opacity: 1; }

.req-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.req-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.req-icon-wrap svg { width: 22px; height: 22px; }

.req-blue { background: rgba(37,99,235,.15); color: var(--blue-light); }
.req-gold { border-color: rgba(212,168,67,.3); }
.req-gold::before { background: linear-gradient(90deg, var(--gold), transparent); }
.req-gold:hover { border-color: rgba(212,168,67,.5); box-shadow: 0 20px 40px rgba(0,0,0,.3), 0 0 0 1px rgba(212,168,67,.1); }
.req-gold-icon { background: var(--gold-dim); color: var(--gold); }

.req-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.req-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.req-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(37,99,235,.15);
  color: var(--blue-light);
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid rgba(37,99,235,.3);
}

.req-tag-gold {
  background: var(--gold-dim);
  color: var(--gold);
  border-color: rgba(212,168,67,.3);
}

.alert-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(239,68,68,.07);
  border: 1px solid rgba(239,68,68,.25);
  border-radius: var(--radius);
  padding: 18px 24px;
  color: #fca5a5;
  font-size: 14px;
}

.alert-icon {
  flex-shrink: 0;
  color: var(--red);
}

.alert-icon svg { width: 22px; height: 22px; display: block; }

/* ============================================================
   KATEGORIE
   ============================================================ */
.cat-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  overflow: hidden;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  padding-bottom: 4px;
}

.cat-bar {
  width: 100%;
  height: 4px;
  background: var(--surface3);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.cat-bar::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--h, 0%);
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(.25,.46,.45,.94);
}

.cat-bar.animated::after { width: var(--h, 0%); }

.cat-num {
  font-size: 44px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.cat-pts {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.cat-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.cat-fto-logo {
  width: 16px; height: 16px; border-radius: 50%; object-fit: cover;
  opacity: .75; flex-shrink: 0; pointer-events: none;
}

.cat-total {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.cat-total-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.cat-total-num {
  font-size: 36px;
  font-weight: 900;
  color: var(--gold);
}

.cat-total-num span {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ============================================================
   KODY RADIOWE
   ============================================================ */
.codes-section { }

.codes-title-row { margin-bottom: 18px; }

.codes-title-badge {
  display: inline-block;
  background: rgba(37,99,235,.15);
  border: 1px solid rgba(37,99,235,.3);
  color: var(--blue-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 8px;
}

.codes-badge-red {
  background: rgba(239,68,68,.1);
  border-color: rgba(239,68,68,.3);
  color: #fca5a5;
}

.codes-table {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 6px;
}

.ct-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 16px;
  transition: border-color .15s, background .15s;
}

.ct-item:hover {
  border-color: var(--border2);
  background: var(--surface2);
}

.ct-item.ct-danger {
  background: rgba(239,68,68,.06);
  border-color: rgba(239,68,68,.2);
}

.ct-code {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  color: var(--gold);
  flex-shrink: 0;
  min-width: 68px;
}

.ct-desc {
  font-size: 13px;
  color: var(--text);
}

/* ============================================================
   STATUSY
   ============================================================ */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  position: relative;
  transition: transform .2s, border-color .2s;
}

.stat-card:hover {
  transform: translateX(4px);
  border-color: var(--border2);
}

.stat-card.stat-highlight {
  border-color: rgba(37,99,235,.35);
  background: rgba(37,99,235,.06);
}

.stat-card.stat-highlight:hover {
  border-color: rgba(37,99,235,.55);
}

.stat-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--surface3);
  line-height: 1;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.stat-card.stat-highlight .stat-num {
  color: rgba(59,130,246,.3);
}

.stat-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.stat-desc {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.stat-badge {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(37,99,235,.2);
  color: var(--blue-light);
  padding: 3px 9px;
  border-radius: 100px;
  border: 1px solid rgba(37,99,235,.35);
}

/* ============================================================
   KOMPENDIUM — TABY
   ============================================================ */
.komp-tabs-nav {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 36px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 10px;
}
.ktab {
  padding: 11px 22px; border-radius: 10px; border: 1px solid transparent;
  background: transparent; color: var(--text-muted);
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: 'Inter', sans-serif; transition: all .2s; white-space: nowrap;
}
.ktab:hover { background: rgba(255,255,255,.05); color: var(--text); }
.ktab.active {
  background: rgba(37,99,235,.2); border-color: rgba(59,130,246,.45);
  color: #93c5fd; box-shadow: 0 2px 12px rgba(37,99,235,.2);
}
.komp-panel { display: none; }
.komp-panel.active { display: block; }

/* ============================================================
   KOMPENDIUM — OGÓLNE
   ============================================================ */
.komp-block {
  margin-bottom: 64px;
}

.komp-block-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.komp-block-icon {
  width: 36px;
  height: 36px;
  background: rgba(37,99,235,.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
  flex-shrink: 0;
}

.komp-block-icon svg { width: 18px; height: 18px; }

/* Podjednostki */
.units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.unit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 22px;
  transition: border-color .2s, transform .2s;
}

.unit-card:hover {
  border-color: rgba(37,99,235,.3);
  transform: translateY(-3px);
}

.unit-card.unit-fto {
  border-color: rgba(212,168,67,.25);
  background: rgba(212,168,67,.03);
}

.unit-card.unit-fto:hover {
  border-color: rgba(212,168,67,.45);
}

.unit-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.unit-abbr {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}

.unit-card.unit-fto .unit-abbr { color: var(--gold); }

.unit-full {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.unit-desc {
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
}

/* Poziomy zagrożenia */
.threat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 36px;
}

.thr-card {
  border-radius: var(--radius);
  padding: 20px 20px;
  border: 1px solid;
}

.thr-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.thr-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}

.thr-name {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.thr-rows { display: flex; flex-direction: column; gap: 8px; }

.thr-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.thr-key {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: .6;
}

.thr-val {
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}

.thr-card.thr-green  { background: rgba(34,197,94,.06); border-color: rgba(34,197,94,.25); }
.thr-card.thr-green  .thr-dot  { background: var(--green); color: var(--green); }
.thr-card.thr-green  .thr-name { color: var(--green); }

.thr-card.thr-orange { background: rgba(249,115,22,.06); border-color: rgba(249,115,22,.25); }
.thr-card.thr-orange .thr-dot  { background: var(--orange); color: var(--orange); }
.thr-card.thr-orange .thr-name { color: var(--orange); }

.thr-card.thr-red    { background: rgba(239,68,68,.06); border-color: rgba(239,68,68,.25); }
.thr-card.thr-red    .thr-dot  { background: var(--red); color: var(--red); }
.thr-card.thr-red    .thr-name { color: var(--red); }

.thr-card.thr-black  { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.1); }
.thr-card.thr-black  .thr-dot  { background: var(--gray-c); color: var(--gray-c); }
.thr-card.thr-black  .thr-name { color: var(--gray-c); }

/* Pursuit table */
.pursuit-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}

.pursuit-table {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.pt-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface3);
  padding: 12px 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pt-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: background .15s;
}

.pt-row:nth-child(even) { background: var(--surface); }
.pt-row:nth-child(odd) { background: rgba(0,0,0,.2); }
.pt-row:hover { background: var(--surface2); }

.c-green  { color: var(--green); }
.c-orange { color: var(--orange); }
.c-red    { color: var(--red); }
.c-yellow { color: var(--yellow); }
.c-gray   { color: var(--gray-c); }
.c-purple { color: var(--purple); }

/* Manewry */
.manewr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.manewr-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: default;
  transition: border-color .2s, transform .2s, background .2s;
}

.manewr-card:hover {
  border-color: rgba(37,99,235,.35);
  background: var(--surface2);
  transform: translateY(-4px);
}

.manewr-ico {
  font-size: 30px;
  margin-bottom: 12px;
  display: block;
  color: var(--blue-light);
}
.manewr-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0;
  display: block;
  border: 1px solid rgba(255,255,255,.07);
  transition: transform .2s;
}
.manewr-img-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
  cursor: pointer;
}
.manewr-img-wrap:hover .manewr-img { transform: scale(1.03); }
.manewr-zoom-hint {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  color: #fff; font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 14px 8px 8px;
  opacity: 0; transition: opacity .2s;
  font-family: 'Inter', sans-serif;
}
.manewr-img-wrap:hover .manewr-zoom-hint { opacity: 1; }
.manewr-card { cursor: pointer; }

/* Lightbox */
#lightbox {
  display: none; position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.88); align-items: center; justify-content: center;
  padding: 20px; animation: aoFade .2s ease;
}
#lightbox.open { display: flex; }
.lb-inner {
  position: relative; max-width: 90vw; max-height: 90vh;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
#lb-img {
  max-width: 100%; max-height: 80vh;
  border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.8);
  object-fit: contain;
}
#lb-title {
  color: #f0f4ff; font-size: 15px; font-weight: 700;
  font-family: 'Inter', sans-serif; letter-spacing: 1px;
}
.lb-close {
  position: absolute; top: -40px; right: 0;
  background: rgba(255,255,255,.1); border: none; color: #fff;
  width: 32px; height: 32px; border-radius: 50%; font-size: 14px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lb-close:hover { background: rgba(239,68,68,.5); }

/* Pościg pieszo */
.force-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  padding: 8px;
}

.force-step {
  display: flex;
  gap: 20px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 8px;
  transition: background .2s;
}
.force-step:hover {
  background: rgba(255,255,255,.055);
}

.fs-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 44px;
  flex-shrink: 0;
}

.fs-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface2);
  border: 2px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--blue-light);
  flex-shrink: 0;
  font-family: var(--mono);
}

.fs-line {
  width: 2px;
  flex: 1;
  background: var(--border);
  margin: 4px 0;
  min-height: 24px;
}

.force-step-danger {
  background: rgba(239,68,68,.06) !important;
  border-color: rgba(239,68,68,.18) !important;
}
.force-step-danger:hover {
  background: rgba(239,68,68,.1) !important;
}
.force-step-danger .fs-num {
  background: rgba(239,68,68,.15);
  border-color: rgba(239,68,68,.5);
  color: var(--red);
}

.fs-content {
  padding-bottom: 4px;
}

.force-step:last-child .fs-content { padding-bottom: 0; }

.fs-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  padding-top: 10px;
}

.force-step-danger .fs-title { color: #fca5a5; }

.fs-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Terminy */
.terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

.term-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: border-color .2s;
}

.term-card:hover { border-color: var(--border2); }

.term-abbr {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

.term-full {
  font-size: 11px;
  color: var(--blue-light);
  margin-bottom: 6px;
  font-weight: 500;
}

.term-pl {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

/* ============================================================
   LIMITY
   ============================================================ */
.limity-notice {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(59,130,246,.08); border: 1px solid rgba(59,130,246,.2);
  border-radius: 12px; padding: 14px 18px; margin-bottom: 24px;
  font-size: 13px; color: var(--text-muted); line-height: 1.6;
}
.limity-notice svg { flex-shrink: 0; color: #3b82f6; margin-top: 2px; }
.limity-notice strong { color: var(--text); }

.limity-table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--border); margin-bottom: 24px; }

.limity-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.limity-table thead tr {
  background: rgba(37,99,235,.15);
}
.limity-table th {
  padding: 11px 16px; text-align: left;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: #60a5fa; white-space: nowrap;
}
.limity-table th { text-align: center; }
.limity-table th:nth-child(1) { width: 28%; text-align: left; }
.limity-table th:nth-child(2) { width: 12%; }
.limity-table th:nth-child(3) { width: 34%; }
.limity-table th:nth-child(4) { width: 26%; }
.limity-table td:nth-child(1) { text-align: left; }
.limity-table td {
  padding: 10px 16px; color: var(--text);
  border-top: 1px solid var(--border); vertical-align: middle;
}
.limity-table tbody tr { background: rgba(255,255,255,.02); }
.limity-table tbody tr:nth-child(even) { background: rgba(59,130,246,.04); }
.limity-table tbody tr:hover { background: rgba(59,130,246,.08); }
.limity-table .lc { text-align: center; font-weight: 700; color: #f0f4ff; }
.limity-table .lnote-wrap {
  display: inline-flex; flex-direction: column; align-items: center; gap: 3px;
}
.limity-table .lval {
  font-weight: 700; color: #f0f4ff;
}
.limity-table .lnote {
  display: block; font-size: 11px; color: var(--text-muted);
  font-weight: 400; line-height: 1.4; white-space: nowrap;
}
.lrow-special td { color: #fbbf24 !important; }
.lrow-special .lc { color: #fbbf24 !important; }

.limity-sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .limity-sub-grid { grid-template-columns: 1fr; } }

.limity-sub-title {
  font-size: 13px; font-weight: 700; color: var(--text-muted);
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px;
}
.limity-small { font-size: 13px; }
.limity-small th { padding: 8px 14px; }
.limity-small td { padding: 8px 14px; }
.limity-footnote {
  font-size: 12px; color: var(--text-muted); margin-top: 10px; line-height: 1.5;
}
.limity-footnote strong { color: #f0f4ff; }
.limity-info-box {
  margin-top: 12px; border-radius: 10px; padding: 11px 14px;
  background: rgba(59,130,246,.08); border: 1px solid rgba(59,130,246,.2);
}
.limity-info-warn {
  background: rgba(234,179,8,.08); border-color: rgba(234,179,8,.25);
}
.lib-row {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: var(--text-muted); line-height: 1.5;
}
.lib-row strong { color: #f0f4ff; }
.limity-info-warn .lib-row { color: #fde68a; }
.limity-info-warn .lib-row strong { color: #fef3c7; }

.limity-paragraph {
  margin-top: 32px; border-radius: 14px;
  background: rgba(255,255,255,.02); border: 1px solid var(--border);
  padding: 24px 28px;
}
.lpar-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.lpar-badge {
  background: rgba(139,92,246,.2); border: 1px solid rgba(139,92,246,.4);
  color: #a78bfa; font-size: 11px; font-weight: 800;
  padding: 4px 10px; border-radius: 6px; font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}
.lpar-title {
  font-size: 15px; font-weight: 700; color: #f0f4ff;
}
.lpar-text {
  font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px;
}
.lpar-text strong { color: #f0f4ff; }
.lpar-def {
  font-size: 12px; color: var(--text-muted); line-height: 1.6;
  background: rgba(255,255,255,.03); border-left: 3px solid rgba(139,92,246,.4);
  padding: 10px 14px; border-radius: 0 8px 8px 0; margin-bottom: 16px;
}
.lpar-def-label {
  display: block; font-weight: 700; color: #a78bfa; margin-bottom: 4px; font-size: 11px; letter-spacing: .5px;
}
.lpar-examples { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .lpar-examples { grid-template-columns: 1fr; } }
.lpar-ex {
  border-radius: 10px; padding: 14px 16px; font-size: 12px;
  color: var(--text-muted); line-height: 1.6;
}
.lpar-ex-red  { background: rgba(239,68,68,.07);  border: 1px solid rgba(239,68,68,.2);  }
.lpar-ex-green{ background: rgba(34,197,94,.07);  border: 1px solid rgba(34,197,94,.2);  }
.lpar-ex-tag {
  display: block; font-size: 10px; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px;
}
.lpar-ex-red  .lpar-ex-tag { color: #f87171; }
.lpar-ex-green .lpar-ex-tag { color: #4ade80; }

.narko-note {
  display: flex; align-items: flex-start; gap: 7px;
  background: rgba(234,179,8,.08); border: 1px solid rgba(234,179,8,.2);
  border-radius: 8px; padding: 10px 12px; margin-top: 12px;
  color: #fde68a !important;
}
.narko-note svg { flex-shrink: 0; color: #fbbf24; margin-top: 1px; }
.narko-note strong { color: #fef3c7; }

/* ============================================================
   PROCEDURY
   ============================================================ */
.proc-tabs { }

.proc-tab-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 36px;
}

.ptab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  cursor: pointer;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}

.ptab::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,.08), transparent);
  opacity: 0;
  transition: opacity .25s;
}

.ptab:hover {
  border-color: rgba(37,99,235,.35);
  background: var(--surface2);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,.3);
}

.ptab:hover::before { opacity: 1; }

.ptab.active {
  background: var(--surface2);
  border-color: rgba(37,99,235,.55);
  box-shadow: 0 0 0 1px rgba(37,99,235,.2), 0 12px 30px rgba(37,99,235,.12);
  transform: translateY(-3px);
}

.ptab.active::before { opacity: 1; }

.ptab-code {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: -0.5px;
  transition: color .25s;
}

.ptab:hover .ptab-code { color: var(--white); }
.ptab.active .ptab-code {
  color: var(--white);
  text-shadow: 0 0 20px rgba(59,130,246,.4);
}

.ptab-pts {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--surface3);
  padding: 4px 12px;
  border-radius: 100px;
  transition: all .25s;
}

.ptab:hover .ptab-pts {
  color: var(--text);
  background: rgba(37,99,235,.15);
}

.ptab.active .ptab-pts {
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid rgba(212,168,67,.25);
}

.proc-panel { display: none; }
.proc-panel.active { display: block; animation: fadeIn .3s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.radio-box {
  background: rgba(37,99,235,.08);
  border: 1px solid rgba(37,99,235,.25);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 28px;
}

.radio-box-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 10px;
}

.radio-box-text {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  transition: border-color .15s;
}

.step:hover { border-color: var(--border2); }

.step.step-final {
  border-color: rgba(37,99,235,.3);
  background: rgba(37,99,235,.06);
}

.step-n {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface3);
  color: var(--blue-light);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--mono);
}

.step-final .step-n {
  background: rgba(37,99,235,.2);
  color: var(--blue-light);
}

.step-txt {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  padding-top: 2px;
}

.proc-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.proc-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: border-color .2s, transform .2s;
}

.proc-info-card:hover {
  border-color: rgba(37,99,235,.3);
  transform: translateY(-4px);
}

.pic-icon { font-size: 36px; margin-bottom: 12px; }

.pic-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.pic-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.proc-subtitle {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 22px;
}

.miranda-grid { margin-bottom: 28px; }

.miranda-q {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-bottom: 14px;
  text-align: center;
}

.miranda-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mir-ans {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
}

.mir-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 10px;
}

.mir-yes { border-color: rgba(34,197,94,.25); background: rgba(34,197,94,.04); }
.mir-yes .mir-label { background: rgba(34,197,94,.15); color: var(--green); border: 1px solid rgba(34,197,94,.3); }

.mir-no { border-color: rgba(239,68,68,.25); background: rgba(239,68,68,.04); }
.mir-no .mir-label { background: rgba(239,68,68,.15); color: var(--red); border: 1px solid rgba(239,68,68,.3); }

.miranda-text-block {
  background: rgba(37,99,235,.06);
  border: 1px solid rgba(37,99,235,.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.mtb-label {
  background: rgba(37,99,235,.1);
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-light);
  letter-spacing: .5px;
  border-bottom: 1px solid rgba(37,99,235,.15);
}

.mtb-content {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mtb-content p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  padding-left: 14px;
  border-left: 2px solid rgba(37,99,235,.3);
}

.proc-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(37,99,235,.08);
  border: 1px solid rgba(37,99,235,.2);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--blue-light);
  margin-bottom: 24px;
  font-weight: 500;
}

.proc-note svg { flex-shrink: 0; color: var(--blue-light); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 32px 28px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  color: var(--gold);
}

.footer-lspd {
  font-size: 14px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 4px;
  line-height: 1.2;
}

.footer-sub {
  font-size: 10px;
  color: var(--blue-light);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-note {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; }
  .nav-inner { flex-wrap: wrap; height: auto; padding: 12px 16px; }
  .nav-hamburger { display: flex; }
  .nav-links {
    width: 100%;
    flex-direction: column;
    padding-bottom: 10px;
  }
  .nav-links a { padding: 8px 10px; }

  .hero { padding: 80px 16px 50px; }
  .section { padding: 64px 16px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-wrap { padding: 24px; }
  .miranda-answers { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-logo { justify-content: center; }
  .proc-tab-nav { grid-template-columns: repeat(2, 1fr); }
  .ptab { padding: 18px 12px; }
  .ptab-code { font-size: 16px; }
}
