/* Dokument oferty: ten sam wygląd w edytorze CMS i na stronie dla klienta */
.doc { counter-reset: num; font-size: 16px; line-height: 1.6; color: var(--foreground); }
.doc .b { margin: 2px 0; padding: 3px 2px; border-radius: 4px; min-height: 1.6em; overflow-wrap: anywhere; }
.doc > .b:not(.b-number) { counter-reset: num; }
.doc .b-h1 { font-size: 30px; line-height: 1.25; font-weight: 700; letter-spacing: -0.5px; margin-top: 28px; }
.doc .b-h2 { font-size: 24px; line-height: 1.3; font-weight: 650; letter-spacing: -0.3px; margin-top: 22px; }
.doc .b-h3 { font-size: 20px; line-height: 1.35; font-weight: 600; margin-top: 18px; }
.doc .b-bullet, .doc .b-number { position: relative; padding-left: 26px; }
.doc .b-bullet::before { content: "•"; position: absolute; left: 8px; top: 3px; font-weight: 700; }
.doc .b-number { counter-increment: num; }
.doc .b-number::before { content: counter(num) "."; position: absolute; left: 2px; top: 3px; min-width: 20px; text-align: right; font-variant-numeric: tabular-nums; }
.doc [data-wciecie="1"] { margin-left: 26px; } .doc [data-wciecie="2"] { margin-left: 52px; } .doc [data-wciecie="3"] { margin-left: 78px; }
.doc [data-wciecie="1"].b-bullet::before { content: "◦"; } .doc [data-wciecie="2"].b-bullet::before { content: "▪"; }
.doc .b-todo { display: flex; gap: 8px; align-items: flex-start; }
.doc .b-todo .chk-box { width: 16px; height: 16px; margin-top: 5px; flex: none; accent-color: var(--primary); }
.doc .b-todo.zrobione .tx { color: var(--muted-foreground); text-decoration: line-through; }
.doc .b-quote { border-left: 3px solid var(--foreground); padding-left: 14px; margin: 8px 0; }
.doc .b-callout, .doc .b-price { display: flex; gap: 12px; padding: 16px 18px; border-radius: 8px; margin: 10px 0; background: var(--muted); }
.doc .b-callout .ik, .doc .b-price .ik { font-size: 20px; line-height: 1.4; flex: none; }
.doc .b-callout .tx, .doc .b-price .tx { flex: 1; min-width: 0; }
.doc .b-divider { min-height: 0; padding: 10px 0; }
.doc .b-divider hr { border: 0; border-top: 1px solid var(--border); margin: 0; }
.doc .b-image { margin: 14px 0; }
.doc .b-image img { display: block; max-width: 100%; height: auto; border-radius: 8px; margin: 0 auto; }
.doc .b-image[data-szerokosc="srednia"] img { max-width: 66%; } .doc .b-image[data-szerokosc="mala"] img { max-width: 40%; }
.doc .b-image figcaption, .doc .b-image .podpis { font-size: 13px; color: var(--muted-foreground); text-align: center; margin-top: 6px; }
.doc .b-gallery { display: grid; gap: 12px; margin: 14px 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.doc .b-gallery[data-kol="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); } .doc .b-gallery[data-kol="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); } .doc .b-gallery[data-kol="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.doc .b-gallery img { width: 100%; height: auto; border-radius: 8px; display: block; }
.doc .b-table { margin: 12px 0; overflow-x: auto; }
.doc .b-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc .b-table td { border: 1px solid var(--border); padding: 8px 10px; vertical-align: top; }
.doc .b-table tr.nag td { background: var(--tlo-niebieskie); color: var(--txt-niebieski); font-weight: 600; }
.doc .b-table tr.suma td { color: var(--txt-niebieski); font-weight: 600; }
.doc .b-steps { margin: 10px 0; display: flex; flex-direction: column; gap: 8px; }
.doc .b-steps .krok { display: flex; gap: 12px; padding: 12px 16px; border-radius: 8px; background: var(--muted); align-items: flex-start; }
.doc .b-steps .nr { width: 24px; height: 24px; border-radius: 6px; background: var(--primary); color: var(--primary-foreground); font-size: 13px; font-weight: 600; display: grid; place-items: center; flex: none; margin-top: 1px; }
.doc .b-steps .tx { flex: 1; min-width: 0; }
.doc a { color: inherit; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--ring); }
.doc code { font-family: var(--mono); font-size: .88em; background: var(--muted); padding: 1px 5px; border-radius: 4px; color: var(--txt-czerwony); }

/* kolory tekstu i tła bloków (jak w Notion) */
:root { --txt-szary: #787774; --txt-czerwony: #c4332b; --txt-pomaranczowy: #c76a1a; --txt-zielony: #3f7d4f; --txt-niebieski: #2e6fb5; --txt-fioletowy: #8045b0;
  --tlo-szare: #f8f8f6; --tlo-czerwone: #fbe9e7; --tlo-zolte: #fbf3db; --tlo-zielone: #e8f3ec; --tlo-niebieskie: #e7f0fa; --tlo-fioletowe: #f2eaf8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --txt-szary: #9b9b9b; --txt-czerwony: #ff7369; --txt-pomaranczowy: #ffa344; --txt-zielony: #6fcf97; --txt-niebieski: #6aa9f0; --txt-fioletowy: #c18cf0;
  --tlo-szare: #2a2a2a; --tlo-czerwone: #3d2321; --tlo-zolte: #3b3420; --tlo-zielone: #1f3328; --tlo-niebieskie: #1d2c3e; --tlo-fioletowe: #2f2338; } }
:root[data-theme="dark"] { --txt-szary: #9b9b9b; --txt-czerwony: #ff7369; --txt-pomaranczowy: #ffa344; --txt-zielony: #6fcf97; --txt-niebieski: #6aa9f0; --txt-fioletowy: #c18cf0;
  --tlo-szare: #2a2a2a; --tlo-czerwone: #3d2321; --tlo-zolte: #3b3420; --tlo-zielone: #1f3328; --tlo-niebieskie: #1d2c3e; --tlo-fioletowe: #2f2338; }
.doc [data-kolor="szary"] { color: var(--txt-szary); } .doc [data-kolor="czerwony"] { color: var(--txt-czerwony); }
.doc [data-kolor="pomaranczowy"] { color: var(--txt-pomaranczowy); } .doc [data-kolor="zielony"] { color: var(--txt-zielony); }
.doc [data-kolor="niebieski"] { color: var(--txt-niebieski); } .doc [data-kolor="fioletowy"] { color: var(--txt-fioletowy); }
.doc [data-tlo="szare"], .doc .b-callout[data-bg="szare"], .doc .b-price[data-bg="szare"] { background: var(--tlo-szare); }
.doc [data-tlo="czerwone"], .doc [data-bg="czerwone"] { background: var(--tlo-czerwone); }
.doc [data-tlo="zolte"], .doc [data-bg="zolte"] { background: var(--tlo-zolte); }
.doc [data-tlo="zielone"], .doc [data-bg="zielone"] { background: var(--tlo-zielone); }
.doc [data-tlo="niebieskie"], .doc [data-bg="niebieskie"] { background: var(--tlo-niebieskie); }
.doc [data-tlo="fioletowe"], .doc [data-bg="fioletowe"] { background: var(--tlo-fioletowe); }
.doc .b[data-tlo] { padding-left: 8px; padding-right: 8px; }

@media (max-width: 560px) {
  .doc { font-size: 15px; }
  .doc .b-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc .b-h1 { font-size: 26px; } .doc .b-h2 { font-size: 21px; } .doc .b-h3 { font-size: 18px; }
  .doc .b-image[data-szerokosc] img { max-width: 100%; }
}

/* opinie klientów: karty jak w galerii Notion */
.doc .b-reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.doc .opinia { position: relative; background: var(--muted); border-radius: 10px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.55; }
.doc .opinia .gw { color: #e8a317; letter-spacing: 2px; font-size: 13px; }
.doc .opinia .tx { flex: 1; font-style: italic; }
.doc .opinia .kto b { display: block; font-weight: 600; font-style: normal; }
.doc .opinia .kto small { display: block; font-size: 12px; color: var(--muted-foreground); }
.doc .b-divider { padding: 20px 0; }
@media (max-width: 700px) { .doc .b-reviews { grid-template-columns: minmax(0, 1fr); } }

/* bloki jak w Notion: nagłówek 4, listy rozwijane, kolumny, kod, zakładka, wideo, spis treści, przycisk; zawartość wewnątrz wyróżnień i list */
.doc .b-h4 { font-size: 17px; line-height: 1.4; font-weight: 600; margin-top: 14px; }
.doc .dz { counter-reset: num; }
.doc .b-callout .tx > .tt + .dz, .doc .b-price .tx > .tt + .dz { margin-top: 6px; }
.doc .b-callout .dz .b, .doc .b-price .dz .b { margin: 1px 0; }
.doc .b-toggle { padding: 2px; }
.doc .b-toggle > summary { cursor: pointer; list-style: none; display: flex; gap: 6px; align-items: flex-start; padding: 3px 2px; border-radius: 4px; }
.doc .b-toggle > summary::-webkit-details-marker { display: none; }
.doc .b-toggle > summary::before { content: "▸"; flex: none; width: 20px; text-align: center; color: var(--foreground); opacity: .55; transition: transform .12s; transform-origin: 45% 55%; font-size: 15px; line-height: 1.6; }
.doc .b-toggle[open] > summary::before { transform: rotate(90deg); }
.doc .b-toggle > summary:hover { background: var(--muted); }
.doc .b-toggle[data-n="1"] > summary .tg-t { font-size: 30px; line-height: 1.25; font-weight: 700; letter-spacing: -.5px; }
.doc .b-toggle[data-n="2"] > summary .tg-t { font-size: 24px; line-height: 1.3; font-weight: 650; letter-spacing: -.3px; }
.doc .b-toggle[data-n="3"] > summary .tg-t { font-size: 20px; line-height: 1.35; font-weight: 600; }
.doc .b-toggle > .dz { margin-left: 26px; }
.doc .b-columns { display: grid; gap: 28px; margin: 8px 0; padding: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.doc .b-columns[data-n="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); } .doc .b-columns[data-n="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); } .doc .b-columns[data-n="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.doc .b-columns .kol { min-width: 0; counter-reset: num; }
.doc .b-code { position: relative; background: var(--muted); border-radius: 8px; padding: 14px 16px; margin: 8px 0; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.6; white-space: pre; }
.doc .b-code code { background: none; padding: 0; color: inherit; font-size: inherit; white-space: inherit; }
.doc .b-code .jez { position: absolute; top: 6px; right: 10px; font-size: 11px; color: var(--muted-foreground); font-family: inherit; }
.doc .b-bookmark { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; margin: 8px 0; text-decoration: none; color: inherit; }
.doc .b-bookmark:hover { background: var(--muted); }
.doc .b-bookmark .bt { font-weight: 600; }
.doc .b-bookmark .bo { font-size: 13px; color: var(--muted-foreground); }
.doc .b-bookmark .bu { font-size: 12px; color: var(--muted-foreground); }
.doc .b-video { position: relative; margin: 12px 0; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--muted); padding: 0; }
.doc .b-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.doc .b-toc { display: flex; flex-direction: column; gap: 2px; margin: 8px 0; padding: 6px 2px; }
.doc .b-toc a { text-decoration: none; color: var(--muted-foreground); padding: 2px 0; font-size: 14px; }
.doc .b-toc a:hover { color: var(--foreground); text-decoration: underline; }
.doc .b-toc .toc-p2 { padding-left: 16px; } .doc .b-toc .toc-p3 { padding-left: 32px; } .doc .b-toc .toc-p4 { padding-left: 48px; }
.doc .b-button { margin: 10px 0; }
.doc .b-button .przycisk { display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border-radius: 8px; background: var(--primary); color: var(--primary-foreground); font-weight: 600; text-decoration: none; }
.doc .b-button .przycisk:hover { opacity: .9; }
@media (max-width: 700px) { .doc .b-columns, .doc .b-columns[data-n] { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

.doc .b-file { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; margin: 8px 0; text-decoration: none; color: inherit; }
a.b-file:hover { background: var(--muted); }
.doc .b-file .fi { flex: none; min-width: 42px; height: 34px; padding: 0 8px; border-radius: 6px; background: var(--muted); display: grid; place-items: center; font-size: 11px; font-weight: 700; letter-spacing: .03em; color: var(--muted-foreground); }
.doc .b-file .ft { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.doc .b-file .ft b { font-weight: 600; overflow-wrap: anywhere; }
.doc .b-file .ft small { font-size: 12px; color: var(--muted-foreground); }
.doc .b-file .fd { flex: none; font-size: 13px; color: var(--muted-foreground); }

/* ramka z numerem zamiast ikony: czarna plakietka jak w krokach */
.doc .b-callout .ik.num { width: 26px; height: 26px; border-radius: 7px; background: var(--primary); color: var(--primary-foreground); font-size: 13px; font-weight: 600; line-height: 1; display: grid; place-items: center; margin-top: 1px; padding: 0; }
.doc code code { font-size: 1em; background: none; padding: 0; border-radius: 0; }

/* kolory wierszy i kolumn tabeli */
.doc .b-table tr[data-tlo="szare"] td, .doc .b-table td[data-tk="szare"] { background: var(--tlo-szare); }
.doc .b-table tr[data-tlo="czerwone"] td, .doc .b-table td[data-tk="czerwone"] { background: var(--tlo-czerwone); }
.doc .b-table tr[data-tlo="zolte"] td, .doc .b-table td[data-tk="zolte"] { background: var(--tlo-zolte); }
.doc .b-table tr[data-tlo="zielone"] td, .doc .b-table td[data-tk="zielone"] { background: var(--tlo-zielone); }
.doc .b-table tr[data-tlo="niebieskie"] td, .doc .b-table td[data-tk="niebieskie"] { background: var(--tlo-niebieskie); }
.doc .b-table tr[data-tlo="fioletowe"] td, .doc .b-table td[data-tk="fioletowe"] { background: var(--tlo-fioletowe); }
.doc .b-table tr[data-tlo] td { color: inherit; }

/* ciemny motyw: loga (przezroczyste PNG z ciemnym tekstem) w galeriach 3+ kolumn leżą na białych kafelkach */
:root[data-theme="dark"] .doc .b-gallery[data-kol="3"] img, :root[data-theme="dark"] .doc .b-gallery[data-kol="4"] img, :root[data-theme="dark"] .doc .b-gallery[data-kol="5"] img { background: #fff; padding: 10px; box-sizing: border-box; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .doc .b-gallery[data-kol="3"] img, :root:not([data-theme="light"]) .doc .b-gallery[data-kol="4"] img, :root:not([data-theme="light"]) .doc .b-gallery[data-kol="5"] img { background: #fff; padding: 10px; box-sizing: border-box; }
}
/* ciemny motyw: tabela z widoczną siatką i wyraźnym nagłówkiem */
:root[data-theme="dark"] .doc .b-table td { border-color: #3d3d3d; }
:root[data-theme="dark"] .doc .b-table tr.nag td { background: #25394f; color: #9cc6f7; }
:root[data-theme="dark"] .doc .b-table tr.suma td { background: #1d2c3e; color: #9cc6f7; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .doc .b-table td { border-color: #3d3d3d; }
  :root:not([data-theme="light"]) .doc .b-table tr.nag td { background: #25394f; color: #9cc6f7; }
  :root:not([data-theme="light"]) .doc .b-table tr.suma td { background: #1d2c3e; color: #9cc6f7; }
}
/* Rozdzielacz w ramce (callout, cena): kolor z tekstu, żeby linia była widoczna na każdym tle ramki, także w ciemnym motywie */
.doc .b-callout .b-divider hr, .doc .b-price .b-divider hr { border-top-color: color-mix(in oklab, var(--foreground) 22%, transparent); }
