/* Baza strony KPR (zamiast default.css, style.css i style_rwd.css z ODEE): reset, kolory brand booka, typografia. */
:root {
  --kpr-h1: clamp(32px, 3.4vw, 56px);
  --kpr-h2: clamp(26px, 2.4vw, 40px);
  --kpr-h3: clamp(19px, 1.45vw, 24px);
  --kpr-lead: clamp(17px, 1.25vw, 21px);
  --kpr-body: clamp(16px, 0.45vw + 11px, 18px);
  --kpr-small: clamp(14px, 0.3vw + 10px, 15px);
  --kpr-text: #d4d4d4;
  /* Margines boczny sekcji; karuzele na telefonie wychodzą na całą szerokość ekranu o tyle samo. */
  --kpr-gutter: clamp(16px, 5vw, 96px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; min-height: 100vh; background: var(--kpr-ink); color: #fff; font-family: "Poppins", system-ui, sans-serif; font-weight: 300; font-size: var(--kpr-body); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, svg, iframe { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font-size: var(--kpr-h1); line-height: 1.1; }
h2 { font-size: var(--kpr-h2); line-height: 1.15; }
h3 { font-size: var(--kpr-h3); line-height: 1.3; }
strong, b { font-weight: 600; }
:focus-visible { outline: 2px solid var(--kpr-gold-light); outline-offset: 2px; }
.kprSkip { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; background: var(--kpr-gold); color: var(--kpr-ink); text-decoration: none; font-weight: 500; }
.kprSkip:focus { top: 12px; }
main { display: block; }
main::after { content: ""; display: table; clear: both; }
@media (max-width: 1000px) {
  html { scroll-padding-top: 72px; }
}

/* Lightbox (zamiast Fancybox): public/js/lightbox.js */
.kprLb { position: fixed; inset: 0; z-index: 400; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 5, 5, 0.96); color: #fff; }
.kprLb::backdrop { background: rgba(5, 5, 5, 0.96); }
.kprLb__img { position: absolute; inset: 56px 64px; width: calc(100% - 128px); height: calc(100% - 112px); object-fit: contain; }
.kprLb__btn { position: absolute; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; background: rgba(13, 13, 13, 0.6); color: #fff; cursor: pointer; }
.kprLb__btn:hover { color: var(--kpr-gold-light); }
.kprLb__close { top: 8px; right: 8px; }
.kprLb__prev { left: 8px; top: 50%; margin-top: -24px; }
.kprLb__next { right: 8px; top: 50%; margin-top: -24px; }
.kprLb__count { position: absolute; left: 16px; top: 18px; font-size: 14px; color: #bdbdbd; }
.kprLb--single .kprLb__prev, .kprLb--single .kprLb__next, .kprLb--single .kprLb__count { display: none; }
@media (max-width: 640px) {
  .kprLb__img { inset: 56px 0; width: 100%; }
  .kprLb__prev, .kprLb__next { top: auto; bottom: 8px; margin: 0; }
}

/* Karuzele (kafelki przewijane w bok): pasek postępu pod listą, dodawany przez public/js/swipe.js tylko gdy jest co przewijać. */
.kprSwipeBar { position: relative; height: 2px; margin-top: 16px; background: var(--kpr-line); overflow: hidden; }
.kprSwipeBar span { position: absolute; top: 0; bottom: 0; left: 0; background: var(--kpr-gold); transition: transform 0.1s linear; transform-origin: 0 0; will-change: transform; }
.kprSwipeBar[hidden] { display: none; }
