:root{
  --bg:#0b0d10;
  --text:#ffffff;
  --muted:#9aa3b2;

  --line:rgba(255,255,255,.10);
  --line2:rgba(255,255,255,.14);

  --shadow: 0 18px 70px rgba(0,0,0,.55);
  --shadow2: 0 12px 40px rgba(0,0,0,.22);

  --r2:24px;

  /* akcent jak w panelu */
  --accent:#06b6d4;
  --accent2:#7c3aed;

  --warnBorder: rgba(251,191,36,.45);
  --warnBg: rgba(251,191,36,.10);
  --warnText: #fde68a;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(1100px 700px at 20% 10%, rgba(255,255,255,.06), transparent 60%),
    radial-gradient(1100px 700px at 120% 20%, rgba(6,182,212,.10), transparent 60%),
    var(--bg);
  min-height:100svh;
  overflow-x:hidden;
}

.page{ padding:18px; }
@media (max-width: 700px){
  .page{ padding:0; }
}

.wrap{
  width:100%;
  max-width: 1120px;
  margin:0 auto;
}

/* HERO */
.hero{
  position:relative;
  border-radius: var(--r2);
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.02);
  min-height: 260px;
}
@media (max-width: 700px){
  .hero{
    border-radius:0;
    border-left:0;
    border-right:0;
  }
}

.heroImg{
  position:absolute;
  inset:0;
  background: url("/img/zasady-bg.jpg") center / cover no-repeat;
  filter: saturate(1.05);
}
.heroImg::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(900px 600px at 30% 20%, rgba(0,0,0,.25), rgba(0,0,0,.82));
}

.backLink{
  position:absolute;
  right:14px;
  top:14px;
  z-index:3;
  font-size:12px;
  color:rgba(255,255,255,.86);
  text-decoration:none;
  padding:8px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background: rgba(255,255,255,.04);
}
.backLink:hover{ border-color: var(--line2); }

.heroInner{
  position:relative;
  z-index:2;
  padding:18px 18px 16px;
  text-align:center;
}

.mark{
  display:flex;
  justify-content:center;
  margin-top: 4px;
  margin-bottom: 12px;
}
.markDot{
  width:56px;height:56px;
  border-radius:999px;
  display:grid;
  place-items:center;
  font-weight:1000;
  color:#0b0d10;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.title{
  font-size:26px;
  font-weight:900;
  letter-spacing:-0.02em;
}
.sub{
  margin-top:8px;
  color:rgba(154,163,178,.95);
  font-size:13px;
}

.metaRow{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
  margin-top: 12px;
}

.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: rgba(154,163,178,.95);
  font-size:12px;
  font-weight:800;
}
.chip strong{ color: rgba(255,255,255,.92); font-weight:900; }

/* CARD */
.card{
  margin-top:16px;
  border-radius: var(--r2);
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
  box-shadow: var(--shadow2);
  padding:16px;
}
@media (max-width: 700px){
  .card{
    border-radius:0;
    border-left:0;
    border-right:0;
    margin-top:0;
  }
}

/* LEGAL STACK (z index) */
.legalStack{ margin-top:12px; display:flex; flex-direction:column; gap:10px; }

.legalCard{
  border-radius:22px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  padding:12px;
}
.legalCard.warn{
  border-color:rgba(251,191,36,.22);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(251,191,36,.12), transparent 55%),
    rgba(255,255,255,.02);
}

.legalHead{ font-weight:1000; }
.legalText{
  margin-top:6px;
  color:rgba(154,163,178,.96);
  font-size:13px;
  line-height:1.38;
}

.legalGrid{
  margin-top:10px;
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
@media (min-width:900px){
  .legalGrid{ grid-template-columns:1fr 1fr; }
}

.legalCtas{
  margin-top:10px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.legalCta{
  text-decoration:none;
  color:rgba(255,255,255,.95);
  font-weight:1000;
  font-size:13px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.14);
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.legalCta:hover{
  border-color:rgba(255,255,255,.18);
  filter:brightness(1.03);
}

.legalLinks{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.legalLinks a{
  text-decoration:none;
  color:rgba(255,255,255,.92);
  font-weight:900;
  font-size:13px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.14);
}
.legalLinks a:hover{ border-color:rgba(255,255,255,.18); }

/* footer meta */
.footerMeta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top: 12px;
}
/* =========================================================
   UNIVERSAL: czytelność tekstów na zdjęciu HERO
   (nie zmienia rozmiaru hero ani kadru)
========================================================= */

/* kapsuła pod całym rzędem elementów */
.metaRow{
  display:inline-flex !important;
  width:fit-content !important;
  max-width:calc(100% - 16px) !important;
  padding:10px 12px !important;
  border-radius:18px !important;

  background:rgba(0,0,0,.55) !important;
  border:1px solid rgba(255,255,255,.15) !important;
  box-shadow:0 14px 50px rgba(0,0,0,.45) !important;

  backdrop-filter:blur(12px) !important;
  -webkit-backdrop-filter:blur(12px) !important;
}

/* wyłącz stare pseudo tła jeśli gdzieś istnieją */
.metaRow::before{ content:none !important; }

/* chipy (daty, czas czytania itd.) */
.chip{
  background:rgba(0,0,0,.70) !important;
  border-color:rgba(255,255,255,.22) !important;
  color:#fff !important;
  font-weight:900 !important;
  text-shadow:0 2px 12px rgba(0,0,0,.75) !important;
}
.chip strong{ color:#fff !important; }

/* pasek youtube / info */
.ytPromo{
  background:rgba(0,0,0,.55) !important;
  border:1px solid rgba(255,255,255,.16) !important;
  box-shadow:0 14px 50px rgba(0,0,0,.40) !important;

  backdrop-filter:blur(12px) !important;
  -webkit-backdrop-filter:blur(12px) !important;
}

.ytPromo::before{ content:none !important; }
.ytTxt{ text-shadow:0 2px 12px rgba(0,0,0,.75) !important; }

/* tytuł i podtytuł – delikatny kontrast */
.title,
.sub{
  text-shadow:0 3px 22px rgba(0,0,0,.65);
}
