/* DESTRES — baza strony (zastępuje motyw WordPress) */
:root {
  --red: #E60000;
  --black: #080808;
  --header-h: 72px;
}

.site-header, .site-header *, .cookie-bar, .cookie-bar *, .map-consent { box-sizing: border-box; }
html { font-size: 14px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: #0b0a08;
  color: #a5a5a5;
  font-family: 'Barlow Condensed', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.34;
}
img, video { max-width: 100%; height: auto; }
img { vertical-align: top; }
button { font: inherit; }

/* Typografia bazowa starego motywu — sekcje treści na niej polegają.
   :where() trzyma specyficzność na poziomie samego tagu, więc style sekcji zawsze wygrywają. */
:where(.site-main) :where(p, ul, ol, dl, blockquote, address) { margin-top: 0; margin-bottom: 1.33em; }
:where(.site-main) :where(ul, ol) { padding-left: 1.5em; }
:where(.site-main) :where(b, strong) { font-weight: 700; }
:where(.site-main) :where(h1, h2, h3, h4, h5, h6) { color: #fff; font-weight: 400; text-transform: uppercase; }
:where(.site-main) h1 { font-size: 3.333em; line-height: 1.23; letter-spacing: 2.07px; margin: 2.175em 0 .825em; }
:where(.site-main) h2 { font-size: 2.667em; line-height: 1.21; letter-spacing: 1.656px; margin: 2.6em 0 .875em; }
:where(.site-main) h3 { font-size: 2em; line-height: 1.33; letter-spacing: 1.242px; margin: 3.25em 0 1em; }
:where(.site-main) h4 { font-size: 1.667em; line-height: 1.33; letter-spacing: 1.044px; margin: 3.5em 0 1em; }
:where(.site-main) h5 { font-size: 1.333em; line-height: 1.42; letter-spacing: .828px; margin: 3.9em 0 1em; }
:where(.site-main) h6 { font-size: 1em; line-height: 1.33; text-transform: none; margin: 4.7em 0 1.4em; }
@media (max-width: 1263px) { html, body { font-size: 16px; } }
@media (max-width: 479px) { html, body { font-size: 13px; } }
@media (max-width: 1263px) {
  :where(.site-main) :where(p, ul, ol, dl, blockquote, address) { margin-bottom: 1em; }
  :where(.site-main) h1 { font-size: 36px; line-height: 50px; margin: 36px 0 20px; letter-spacing: 0; }
}
@media (max-width: 479px) {
  :where(.site-main) h1 { font-size: 28px; line-height: 36px; margin: 32px 0 20px; }
}

/* ---------- NAGŁÓWEK ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #000;
  border-bottom: 1px solid #1a1a1a;
}
.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-logo img { display: block; height: 46px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.site-nav li { position: relative; }
.site-nav a {
  display: block;
  padding: 10px 8px;
  color: #fff;
  text-decoration: none;
  font-family: 'Arial Black', 'Arial Bold', sans-serif;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .15s;
}
.site-nav a:hover { color: var(--red); }
.site-nav > ul > li > a.is-active {
  text-decoration: line-through;
  text-decoration-color: var(--red);
  text-decoration-thickness: 3px;
}
.site-nav .sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  display: none;
  flex-direction: column;
  align-items: stretch;
  background: #000;
  border-top: 3px solid var(--red);
  padding: 8px 0;
}
.site-nav .sub a { padding: 10px 18px; font-size: 11px; }
.site-nav .sub a.is-active { color: var(--red); }
.site-nav .has-sub:hover > .sub,
.site-nav .has-sub:focus-within > .sub { display: flex; }

.site-nav__cta {
  background: var(--red);
  padding: 10px 18px !important;
  transform: skew(-10deg);
}
.site-nav__cta:hover { background: #fff; color: #000 !important; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; padding: 10px; cursor: pointer;
}
.nav-toggle span { display: block; height: 3px; background: #fff; margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1024px) {
  :root { --header-h: 64px; }
  .site-logo img { height: 38px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: #000;
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px 40px;
    overflow-y: auto;
    display: none;
  }
  .nav-open .site-nav { display: flex; }
  .nav-open { overflow: hidden; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { font-size: 20px; padding: 14px 0; border-bottom: 1px solid #1a1a1a; }
  .site-nav .sub { position: static; display: flex; border: 0; padding: 0 0 0 16px; min-width: 0; }
  .site-nav .sub a { font-size: 15px; padding: 10px 0; }
  .site-nav__cta { margin-top: 24px; text-align: center; font-size: 18px !important; padding: 16px !important; transform: none; }
}

/* ---------- MAPA W STOPCE (ładowana dopiero po zgodzie) ---------- */
.map-consent {
  height: 120px;
  background: #111 url('/media/2025/12/map-placeholder.jpg') center / cover no-repeat;
  display: flex; align-items: center; justify-content: center;
}
.map-consent iframe { width: 100%; height: 120px; border: 0; display: block; }
.map-consent-btn {
  background: rgba(0,0,0,.75); color: #fff; border: 1px solid #fff;
  padding: 8px 16px; font-weight: 800; letter-spacing: 1px; cursor: pointer;
}
.map-consent-btn:hover { background: var(--red); border-color: var(--red); }

/* ---------- BANER COOKIES ---------- */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 2000;
  max-width: 560px;
  background: #000; color: #fff;
  border: 2px solid var(--red);
  padding: 18px 20px;
  font-size: 15px;
  box-shadow: 0 10px 40px rgba(0,0,0,.6);
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0 0 14px; }
.cookie-bar a { color: var(--red); }
.cookie-bar__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-bar button {
  flex: 1 1 auto;
  padding: 10px 16px; cursor: pointer;
  background: transparent; color: #fff; border: 1px solid #555;
  font-weight: 800; letter-spacing: 1px;
}
.cookie-bar button.is-primary { background: var(--red); border-color: var(--red); }
.cookie-bar button:hover { border-color: #fff; }

/* ---------- POPRAWKI ---------- */
/* Sekcja "Powiązane": 100vw + padding wystawało poza ekran na telefonie */
.dst-powiazane, .dst-powiazane__karta { box-sizing: border-box; }
