/* ====== USTAWIENIA ====== */
:root{
  --bg: #0a0a0a;
  --text: #cde6ff;
  --muted: #8db8d6;
  --brand: #1a6bff;
  --shadow: 0 10px 30px rgba(0,0,0,.4);
  --radius: 16px;
  --panel: rgba(10,15,20,.78);
  --panel-soft: rgba(20,30,40,.6);
  --border: rgba(26,107,255,.4);
}

/* ====== TŁO ====== */
body{
  margin:0; padding:0;
  font-family: 'Segoe UI', sans-serif;
  background: url('../raporty.jpg') no-repeat center center fixed; /* użyj tego samego tła co Raporty */
  background-size: cover;
  color: var(--text);
  line-height: 1.6;
}
body::before{
  content:""; position:fixed; inset:0;
  background: rgba(0,0,0,.55);
  pointer-events:none; z-index:-1;
}

/* ====== KONTENER ====== */
.wrap{ max-width:1200px; margin:0 auto; padding:24px; }
.lead{ color:var(--muted); max-width:900px; }

/* ====== NAGŁÓWEK ====== */
h1{
  font-size: clamp(28px, 4vw, 48px);
  text-shadow: 0 0 10px rgba(26,107,255,0.5);
  letter-spacing: 1px;
  margin: 8px 0 12px;
}
.badge{
  display:inline-block;
  background: rgba(20,30,40,0.8);
  border:1px solid var(--brand);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

/* ====== KARTA / BLOK ====== */
.card{
  background: var(--panel);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px 14px;
  margin: 18px 0;
}
.card h2{ margin: 0 0 8px 0; font-size: clamp(20px, 2.6vw, 24px); }
.card p{ color: var(--muted); }

/* Notatki */
.notes{
  margin: 8px 0 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.notes li{ margin: 8px 0; }

/* Logi */
.log{
  font-family: "Courier New", monospace;
  font-size: .92rem;
  background: var(--panel-soft);
  border:1px solid var(--border);
  border-radius: 10px;
  color: #9fb0c3;
  padding: 12px 14px;
  white-space: pre-wrap;
}

/* ====== MINI GALERIA DOKUMENTÓW ====== */
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:16px;
}
@media (max-width: 1000px){
  .gallery-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px){
  .gallery-grid{ grid-template-columns: 1fr; }
}

.gcard{
  background: rgba(10,15,20,0.75);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.gcard:hover{
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(26,107,255,.35);
  border-color: var(--brand);
}
.gcard img{ display:block; width:100%; height:220px; object-fit:cover; }
.gcard figcaption{
  padding:10px 12px; font-size:14px; color: var(--muted);
}

/* ====== NAWIGACJA POWIĄZANA ====== */
.related{
  display:flex; gap:12px; margin-top:20px; flex-wrap:wrap;
}
.related a{
  text-decoration:none; color:var(--text);
  background: rgba(20,30,40,.8);
  border:1px solid var(--brand);
  border-radius:12px; padding:8px 14px;
  transition:.2s;
}
.related a:hover{ background: rgba(30,45,60,.9) }

/* ====== STOPKA ====== */
.footer{ margin-top:28px; color:var(--muted); font-size:14px }
