: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);
  --r2:24px;
  --accent:#b6ff00;
  --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%), var(--bg);
  min-height:100svh;
  overflow-x:hidden;
}

a{ color: rgba(255,255,255,.92); text-decoration: underline; text-underline-offset: 3px; }
a:hover{ opacity:.9; }

.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/o-projekcie-bg.avif") center / cover no-repeat; /* PODMIENISZ */
  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,.78));
}

.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;
  background: var(--accent);
  color:#000;
}

.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; }
.chipLink{ text-decoration:none; 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: 0 12px 40px rgba(0,0,0,.22);
  padding:16px;
}
@media (max-width: 700px){
  .card{
    border-radius:0;
    border-left:0;
    border-right:0;
    margin-top:0;
  }
}

.lead p{
  font-size:13px;
  color:rgba(154,163,178,.96);
  line-height:1.55;
  margin-top:10px;
}
.lead p:first-child{ margin-top:0; }

.quickLinks{
  margin-top:12px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.qBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
  text-decoration:none;
  font-weight:900;
  font-size:12px;
  color: rgba(255,255,255,.90);
}
.qBtn:hover{ border-color: var(--line2); }

/* TOC */
.toc{
  margin-top:14px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  border-radius: 18px;
  padding:12px;
}
.tocTitle{
  font-weight:900;
  font-size:13px;
  color: rgba(255,255,255,.92);
}
.tocGrid{
  margin-top:10px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
}
@media (max-width: 860px){
  .tocGrid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px){
  .tocGrid{ grid-template-columns: 1fr; }
}
.tocItem{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px 10px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
  text-decoration:none;
  font-weight:900;
  font-size:12px;
  color: rgba(255,255,255,.90);
}
.tocItem:hover{ border-color: var(--line2); }

.hr{
  height:1px;
  background: rgba(255,255,255,.10);
  margin:14px 0;
}

/* DOC */
.doc{ padding:2px 2px 0; }

.block{
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  border-radius: 18px;
  padding:14px 14px;
  margin-bottom:12px;
}
.block h2{
  font-size:15px;
  font-weight:900;
  letter-spacing:-0.01em;
  margin-bottom:8px;
}
.block p{
  font-size:14px;
  line-height:1.55;
  color: rgba(154,163,178,.96);
  margin-top:10px;
}
.block p:first-of-type{ margin-top:0; }

.block ul{
  margin-top:10px;
  padding-left:18px;
  color: rgba(154,163,178,.96);
  font-size:14px;
  line-height:1.55;
}
.block li{ margin:6px 0; }

.block.warn{
  border-color: var(--warnBorder);
}
.callout{
  margin-top:12px;
  padding:12px 12px;
  border-radius: 16px;
  border:1px solid var(--warnBorder);
  background: var(--warnBg);
  color: var(--warnText);
  font-size:12px;
  line-height:1.35;
}

/* FAQ */
.faq{ margin-top:8px; }
.faqQ{
  font-weight:900;
  margin-top:10px;
  color: rgba(255,255,255,.92);
}
.faqA{
  margin-top:6px;
  color: rgba(154,163,178,.96);
  line-height:1.55;
  font-size:14px;
}

/* Ad box */
.adBox{
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  border-radius: 18px;
  padding:12px;
  margin-top:14px;
}

.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);
}
