*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
@page { size: A4; margin: 0; }
:root {
  --red: #D40000; --red-light: #FF2222; --black: #080808; --dark: #111111;
  --card: #1a1a1a; --card2: #222222; --white: #ffffff; --gray: #888888;
  --lgray: #cccccc; --border: #2a2a2a;
  --font-head: 'Oswald', sans-serif; --font-body: 'Roboto', sans-serif;
}
html, body {
  background: #050505; color: var(--white);
  font-family: var(--font-body); font-size: 10pt; line-height: 1.5;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
  display: flex; flex-direction: column; align-items: center;
}
a { color: var(--red); text-decoration: none; font-weight: bold; }
a:hover { text-decoration: underline; color: var(--red-light); }

.page {
  width: 210mm; height: 297mm; overflow: hidden; position: relative;
  background: var(--black); page-break-after: always; break-after: page;
  display: flex; flex-direction: column;
  margin: 10px 0; box-shadow: 0 0 30px rgba(0,0,0,0.8); flex-shrink: 0;
}
@media print {
  body { display: block; background: var(--black); }
  .page { margin: 0; box-shadow: none; }
}
.page:last-child { page-break-after: avoid; break-after: avoid; }

/* Watermark at z-index: 3 so it's always above content if it overlaps */
.wm-logo { position: absolute; bottom: 7mm; left: 10mm; height: 12mm; opacity: 0.25; z-index: 3; pointer-events: none; }
.pg-num { position: absolute; bottom: 7mm; right: 10mm; font-family: var(--font-body); font-size: 7pt; color: rgba(255,255,255,0.25); letter-spacing: 1.5px; z-index: 3; text-transform: uppercase; pointer-events: none; }

.section-label { font-family: var(--font-head); font-size: 8pt; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: var(--red); margin-bottom: 2mm; }
.section-title { font-family: var(--font-head); font-weight: 700; font-size: 20pt; letter-spacing: 1px; color: var(--white); text-transform: uppercase; line-height: 1.1; margin-bottom: 3mm; }
.header-decor { border-bottom: 2px solid var(--red); margin-bottom: 4mm; padding-bottom: 2mm; display: flex; justify-content: space-between; align-items: flex-end; }
.content-wrap { padding: 10mm 12mm 12mm 12mm; flex: 1; display: flex; flex-direction: column; z-index: 2; position: relative; }

.top-logo { height: 25mm; object-fit: contain; }

/* Page 1 - Cover */
.cover-hero { flex: 1; position: relative; overflow: hidden; background: var(--black); }
.cover-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.cover-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,8,8,0) 20%, rgba(8,8,8,0.7) 50%, rgba(8,8,8,1) 85%); }
.cover-overlay-bottom { position: absolute; bottom: 0; left: 0; right: 0; height: 50%; background: linear-gradient(to top, rgba(8,8,8,1) 0%, transparent 100%); }
.cover-content { position: absolute; top: 50%; right: 0; transform: translateY(-50%); width: 70%; padding: 0 12mm 0 5mm; text-align: right; }
.cover-tag { display: inline-block; background: var(--red); font-family: var(--font-head); font-size: 10pt; font-weight: 600; letter-spacing: 3px; padding: 4px 12px; margin-bottom: 5mm; text-transform: uppercase; }
.cover-headline { font-family: var(--font-head); font-weight: 700; font-size: 38pt; line-height: 1.05; color: var(--white); text-transform: uppercase; margin-bottom: 5mm; text-shadow: 2px 2px 10px black; }
.cover-event-name { font-family: var(--font-head); font-size: 16pt; color: var(--red); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 3mm; }
.cover-pltraw-logo { height: 25mm; margin-top: 5mm; object-fit: contain; }

/* Text Blocks */
.text-box { background: var(--card); border-left: 3px solid var(--red); padding: 4mm 5mm; margin-bottom: 4mm; }
.text-box p { font-size: 8pt; color: var(--lgray); line-height: 1.5; margin-bottom: 2mm; text-align: justify; }
.text-box p:last-child { margin-bottom: 0; }
.text-box strong { color: var(--white); }
.text-box em { color: var(--red-light); font-style: normal; font-weight: 500; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; margin-bottom: 4mm; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4mm; margin-bottom: 4mm; }
.card { background: var(--card); border: 1px solid var(--border); padding: 4mm; }
.card-title { font-family: var(--font-head); font-size: 11pt; color: var(--white); text-transform: uppercase; margin-bottom: 2mm; }
.list-item { display: flex; gap: 2mm; align-items: flex-start; margin-bottom: 1.5mm; font-size: 8pt; color: var(--lgray); line-height: 1.4; }
.list-item::before { content: '▸'; color: var(--red); font-size: 10pt; line-height: 1.2; }
.list-item strong { color: var(--white); }

/* Buttons */
.btn-red { display: inline-block; background: var(--red); color: white !important; font-family: var(--font-head); font-size: 11pt; font-weight: 700; letter-spacing: 1px; padding: 3mm 8mm; text-transform: uppercase; border-radius: 2px; text-decoration: none !important; border: 1px solid var(--red-light); box-shadow: 0 4px 10px rgba(212,0,0,0.3); }

/* Hero Infographic Boxes */
.hero-box { background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%); border: 1px solid var(--border); padding: 4mm 5mm; position: relative; overflow: hidden; border-left: 4px solid var(--red); display: flex; flex-direction: column; justify-content: center; }
.hero-box-title { font-family: var(--font-head); font-size: 9pt; color: var(--red); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1mm; }
.hero-box-value { font-family: var(--font-head); font-size: 14pt; color: var(--white); line-height: 1.1; margin-bottom: 1mm; }
.hero-box-sub { font-size: 7.5pt; color: var(--lgray); line-height: 1.3; }
.hero-box::after { content: ''; position: absolute; top: -10mm; right: -10mm; width: 30mm; height: 30mm; background: rgba(212,0,0,0.05); border-radius: 50%; pointer-events: none; }

/* Sprzęt Widget (Kompaktowy Grid - Odrzucony na rzecz siatki 2x3 w stylu premium) */
.gear-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5mm; margin-bottom: 5mm; }
.gear-item { 
  background: linear-gradient(135deg, rgba(30,30,30,0.95) 0%, rgba(15,15,15,0.95) 100%); 
  border: 1px solid rgba(255,255,255,0.05); 
  border-left: 3px solid var(--red); 
  padding: 3mm 4mm; 
  display: flex; flex-direction: column; 
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}
.gear-type { font-family: var(--font-head); font-size: 7.5pt; color: var(--red); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5mm; }
.gear-name { font-size: 8.5pt; color: var(--white); font-weight: 500; }

/* Kategorie Widget (Zwykły tekst z kropkami) */
.cat-widget { background: rgba(20,20,20,0.7); backdrop-filter: blur(4px); border-left: 3px solid var(--red); padding: 3mm 4mm; margin-bottom: 5mm; display: flex; flex-direction: column; gap: 1.5mm; border-right: 1px solid rgba(255,255,255,0.05); border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); }
.cat-row { display: flex; align-items: baseline; gap: 2mm; }
.cat-label { font-family: var(--font-head); font-size: 8.5pt; color: var(--red); text-transform: uppercase; letter-spacing: 1px; width: 22mm; flex-shrink: 0; }
.cat-text { font-family: var(--font-body); font-size: 8pt; color: var(--white); font-weight: 400; line-height: 1.2; word-spacing: 1px; }
.cat-text span { color: var(--red); margin: 0 1.5mm; font-weight: bold; }

/* Spis treści */
.toc-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr; gap: 1.5mm; }
.toc-list li { display: flex; align-items: center; border-bottom: 1px dashed var(--border); padding-bottom: 1mm; }
.toc-list a { color: var(--lgray); font-size: 9pt; flex: 1; font-weight: 400; }
.toc-list a:hover { color: var(--red-light); }

/* Poznaj PLTRAW videos - VERTICAL (SCALED DOWN FOR WATERMARK) */
.video-grid { display: flex; gap: 8mm; justify-content: center; margin-top: auto; padding-bottom: 5mm; }
.video-thumb { 
  width: 42mm; /* STAŁA SZEROKOŚĆ = SKALOWANIE W DÓŁ */
  position: relative; display: block; text-decoration: none; 
  border: 1px solid rgba(255,255,255,0.1); 
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}
.video-thumb img { width: 100%; aspect-ratio: 9/16; object-fit: cover; display: block; }
.video-play-overlay { position: absolute; inset: 0; background: rgba(212,0,0,0.25); display: flex; align-items: center; justify-content: center; }
.video-play-btn { width: 10mm; height: 10mm; background: var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.play-triangle { width: 0; height: 0; border-top: 3mm solid transparent; border-bottom: 3mm solid transparent; border-left: 5mm solid white; margin-left: 1mm; }
.video-caption { background: var(--card); padding: 1.5mm; font-size: 6pt; color: var(--lgray); letter-spacing: 0.5px; font-family: var(--font-head); text-transform: uppercase; border-top: 1px solid var(--red); text-align: center; }

/* Table */
table { width: 100%; border-collapse: collapse; font-size: 8pt; margin-bottom: 4mm; }
th { background: var(--red); padding: 2.5mm; font-family: var(--font-head); text-transform: uppercase; text-align: left; letter-spacing: 1px; color: var(--white); }
td { background: var(--card); padding: 2.5mm; border-bottom: 1px solid var(--border); color: var(--lgray); line-height: 1.4; }
tr:nth-child(even) td { background: #161616; }
td strong { color: var(--white); }

/* Harmonogram - 1 Column */
.harmonogram-list { display: flex; flex-direction: column; gap: 3mm; }
.day-block-full { display: flex; background: rgba(26,26,26,0.15); border: 1px solid var(--red); backdrop-filter: blur(8px); }
.day-title-full { background: rgba(212,0,0,0.85); padding: 3mm 4mm; width: 35mm; display: flex; align-items: center; justify-content: center; text-align: center; font-family: var(--font-head); font-size: 9pt; color: var(--white); text-transform: uppercase; letter-spacing: 1px; }
.day-content-full { padding: 3mm 4mm; flex: 1; font-size: 8.5pt; color: var(--white); line-height: 1.4; text-shadow: 1px 1px 4px rgba(0,0,0,0.9); }

/* Backgrounds */
.bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.15; z-index: 0; }
.bg-gradient { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(8,8,8,0.7) 0%, rgba(8,8,8,0.95) 100%); z-index: 0; }
.bg-darken { position: absolute; inset: 0; background: rgba(8,8,8,0.85); z-index: 0; }
.bg-gradient-top { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(8,8,8,0.3) 0%, rgba(8,8,8,1) 75%); z-index: 0; }

.bg-img-harmonogram { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; z-index: 0; }
.bg-gradient-harmonogram { position: absolute; inset: 0; background: radial-gradient(circle at top left, rgba(8,8,8,0.1) 0%, rgba(8,8,8,0.95) 100%); z-index: 0; }
.bg-darken { position: absolute; inset: 0; background: rgba(8,8,8,0.85); z-index: 0; }
.bg-gradient-top { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(8,8,8,0.3) 0%, rgba(8,8,8,1) 75%); z-index: 0; }

.section-h { font-family: var(--font-head); font-size: 14pt; color: var(--red); text-transform: uppercase; margin-bottom: 2mm; margin-top: 4mm; border-bottom: 1px solid var(--border); padding-bottom: 1mm; }
.logos-footer { display: flex; justify-content: center; align-items: center; gap: 10mm; margin-top: 8mm; }
.logos-footer img { max-height: 25mm; max-width: 50mm; object-fit: contain; }

/* Debiutanci Custom Blocks */
.glass-box { background: rgba(18,18,18,0.7); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.05); padding: 5mm; margin-bottom: 4mm; position: relative; overflow: hidden; }
.glass-box.red { border-left: 4px solid var(--red-light); }
.glass-box.green { border-left: 4px solid #27ae60; }
.glass-box-title { font-family: var(--font-head); font-size: 10pt; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2mm; }
.glass-box.red .glass-box-title { color: var(--red-light); }
.glass-box.green .glass-box-title { color: #27ae60; }
.glass-box .list-item::before { font-size: 12pt; margin-top: -1px; }
.glass-box.red .list-item::before { color: var(--red-light); content: '✕'; margin-right: 1mm; font-size: 8pt; margin-top: 1px;}
.glass-box.green .list-item::before { color: #27ae60; content: '✓'; margin-right: 1mm; font-size: 8pt; margin-top: 1px;}


.highlight-box {
  background: linear-gradient(90deg, rgba(212,0,0,0.1) 0%, rgba(26,26,26,0.85) 100%);
  border-left: 3px solid var(--red);
  border-top: 1px solid rgba(212,0,0,0.15);
  border-bottom: 1px solid rgba(212,0,0,0.15);
  padding: 2.5mm 4mm;
  margin-top: 2mm;
  margin-bottom: 4mm;
  font-family: var(--font-head);
  font-size: 9pt;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.3;
  box-shadow: 0 2px 10px rgba(212,0,0,0.1);
}
.highlight-box span { color: var(--red-light); font-weight: 700; }