/**
 * ═══════════════════════════════════════════════════════════════════
 *  BAZA WIEDZY /baza-wiedzy/ — lista, kategoria, wpis, autor, newsletter
 *
 *  Ładowany po glowna-sprzedazowa.css (tokeny --sg-*, menu, stopka,
 *  przyciski, pola formularzy). Klasy „bw-”. Korzeń: .sg.bw.
 *
 *  JĘZYK WIZUALNY
 *  Rysunek techniczny: siatka planu, linie wymiarowe, opisy w kroju mono
 *  („RYS. 01”, numery rozdziałów 01, 02…), dźwig jako pasek postępu czytania.
 *  Hero i nagłówki wpisów ciemne, treść jasna (długie czytanie), jeden akcent
 *  (teal). Bursztyn tylko dla etykiety „Problem” i ostrzeżeń w treści.
 *
 *  RUCH
 *  Wejścia sekcji z glowna-sprzedazowa.js ([data-reveal]). Pętle tylko
 *  w scenie budowy (SVG / three.js). Każda animacja ma wariant dla
 *  prefers-reduced-motion (koniec pliku).
 * ═══════════════════════════════════════════════════════════════════ */

body.dcp-blog { margin: 0; background: #070b14; color: #e9eef6; }

.bw {
    --bw-plan: rgba(0, 212, 170, .075);
    --bw-plan-2: rgba(148, 163, 184, .06);
    --bw-prose: 1.0625rem;
    --bw-measure: 70ch;
}
@media (min-width: 1024px) { .bw { --bw-prose: 1.125rem; } }

/* ═══════════════ WSPÓLNE ═══════════════ */
.bw-link { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--sg-accent-text); text-decoration: underline; text-decoration-color: var(--sg-accent-line); text-underline-offset: 3px; cursor: pointer; }
.bw-hl {
    background: linear-gradient(100deg, #8ff0d9 0%, #00d4aa 45%, #5fd0ff 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sg-light .bw-hl { background: linear-gradient(100deg, #00a283, #007f99); -webkit-background-clip: text; background-clip: text; }

/* Linia wymiarowa: ├──┤ przed opisem sekcji */
.bw-dim { position: relative; display: inline-block; width: 28px; height: 9px; margin-right: 10px; vertical-align: 1px; }
.bw-dim::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: currentColor; }
.bw-dim::after { content: ""; position: absolute; inset: 0; border-inline: 1px solid currentColor; }

/* Nagłówek sekcji */
.bw-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.bw-head__eyebrow { margin: 0 0 14px; font-family: var(--sg-mono); font-size: .8125rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--sg-accent-text); }
.bw-head .sg-lead { margin-top: 14px; }

/* Okruszki */
.bw-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0 0 22px; padding: 0; list-style: none; font-family: var(--sg-mono); font-size: .8125rem; color: var(--sg-text-3); }
.bw-crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.bw-crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--sg-line-2); }
.bw-crumbs a { color: var(--sg-text-2); text-decoration: none; transition: color 200ms ease; }
.bw-crumbs [aria-current] { color: var(--sg-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
@media (hover: hover) and (pointer: fine) { .bw-crumbs a:hover { color: var(--sg-accent-text); } }

/* Etykiety: kategoria i etap */
.bw-chip, .bw-tag {
    display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 12px;
    border: 1px solid var(--sg-line-2); border-radius: 999px;
    font-size: .8125rem; font-weight: 600; line-height: 1; color: var(--sg-text); text-decoration: none; white-space: nowrap;
}
.bw-chip .sg-ico { color: var(--sg-accent); font-size: 15px; }
a.bw-chip { transition: border-color 200ms ease, background-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { a.bw-chip:hover { border-color: var(--sg-accent-line); background: var(--sg-accent-soft); } }
.bw-tag { border-color: transparent; background: var(--sg-fill-2); color: var(--sg-text-2); font-family: var(--sg-mono); font-weight: 500; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; }
.bw-tag--problem { background: rgba(240, 180, 88, .12); color: #f5c77e; }
.bw-tag--przewodnik, .bw-tag--hub { background: var(--sg-accent-soft); color: var(--sg-accent-text); }
.bw-tag--rozwiazanie { background: var(--sg-accent); color: var(--sg-cta-ink); }

/* Awatar: zaokrąglony kwadrat, bez zdjęcia inicjały */
.bw-avatar { flex: none; width: 44px; height: 44px; border-radius: 30%; object-fit: cover; }
.bw-avatar--ini {
    display: inline-grid; place-items: center;
    background: linear-gradient(145deg, #00d4aa 0%, #0a6b58 55%, #0e1524 100%);
    color: #fff; font-family: var(--sg-display); font-weight: 700; font-size: .95rem; letter-spacing: .02em;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}

/* ═══════════════ PASEK-DŹWIG: postęp czytania ═══════════════
   Wysięgnik pod menu, wózek z hakiem jedzie w prawo razem z czytaniem. */
.bw-crane {
    position: fixed; left: 0; right: 0; top: var(--sg-top-h, 68px); z-index: 899; height: 26px;
    pointer-events: none; opacity: 0; transition: opacity 250ms ease;
    --p: 0;
}
.admin-bar .bw-crane { top: calc(var(--sg-top-h, 68px) + 32px); }
.bw-crane.is-on { opacity: 1; }
.bw-crane__jib {
    position: absolute; left: 0; right: 0; top: 0; height: 5px;
    background:
        linear-gradient(rgba(148, 163, 184, .35), rgba(148, 163, 184, .35)) top / 100% 1px no-repeat,
        linear-gradient(rgba(148, 163, 184, .35), rgba(148, 163, 184, .35)) bottom / 100% 1px no-repeat,
        repeating-linear-gradient(60deg, transparent 0 5px, rgba(148, 163, 184, .28) 5px 6px, transparent 6px 10px);
    background-color: rgba(7, 11, 20, .55);
}
.bw-crane__done {
    position: absolute; left: 0; top: 0; width: 100%; height: 5px;
    background: linear-gradient(90deg, #00a283, #00d4aa);
    transform-origin: left center; transform: scaleX(var(--p));
    box-shadow: 0 0 12px rgba(0, 212, 170, .5);
}
.bw-crane__trolley {
    position: absolute; left: 0; top: 0; width: 16px;
    transform: translateX(calc(var(--p) * (100vw - 16px)));
}
.bw-crane__trolley::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 7px; border-radius: 2px; background: #f0b458; box-shadow: 0 1px 0 rgba(0, 0, 0, .4); }
.bw-crane__trolley i { position: absolute; left: 7.5px; top: 7px; width: 1px; height: 11px; background: rgba(233, 238, 246, .7); }
.bw-crane__trolley b { position: absolute; left: 4px; top: 17px; width: 8px; height: 6px; border: 2px solid #f0b458; border-top: 0; border-radius: 0 0 6px 6px; }

/* ═══════════════ HERO (lista, kategoria, autor) ═══════════════ */
.bw-hero {
    position: relative; isolation: isolate; overflow: hidden;
    padding-top: calc(var(--sg-top-h) + clamp(36px, 5vh, 64px));
    padding-bottom: clamp(56px, 7vw, 96px);
}
.bw-hero--krotkie { padding-bottom: clamp(44px, 5vw, 72px); }
.bw-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, #080d18 0%, #070b14 100%); }
.bw-hero__bg::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--bw-plan) 1px, transparent 1px),
        linear-gradient(90deg, var(--bw-plan) 1px, transparent 1px),
        linear-gradient(var(--bw-plan-2) 1px, transparent 1px),
        linear-gradient(90deg, var(--bw-plan-2) 1px, transparent 1px);
    background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse 80% 75% at 70% 35%, #000 20%, transparent 78%);
    mask-image: radial-gradient(ellipse 80% 75% at 70% 35%, #000 20%, transparent 78%);
}
.bw-hero__bg span { position: absolute; display: block; border-radius: 50%; }
.bw-hero__bg span:nth-child(1) { width: min(60vw, 820px); aspect-ratio: 1; right: -12vw; top: -24vw; background: radial-gradient(closest-side, rgba(0, 212, 170, .2), rgba(0, 212, 170, 0)); }
.bw-hero__bg span:nth-child(2) { width: min(46vw, 640px); aspect-ratio: 1; left: -16vw; bottom: -20vw; background: radial-gradient(closest-side, rgba(0, 150, 200, .12), rgba(0, 150, 200, 0)); }

.bw-hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(32px, 4.5vw, 72px); align-items: center; }
.bw--lista-krotka .bw-hero__grid, .bw-hero--krotkie .bw-hero__grid { grid-template-columns: minmax(0, 1fr); }
.bw-hero__copy { max-width: 720px; }
.bw-hero__eyebrow { display: flex; align-items: center; gap: 10px; }
.bw-hero__ico { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--sg-accent-soft); color: var(--sg-accent); font-size: 17px; }
.bw-hero__title {
    font-size: clamp(2.35rem, 1.45rem + 3.4vw, 4.15rem); line-height: 1.02; letter-spacing: -0.038em;
    font-weight: 600; text-wrap: balance;
}
.bw-hero--krotkie .bw-hero__title { font-size: clamp(2rem, 1.35rem + 2.4vw, 3.25rem); }
.bw-hero__lead { margin-top: 22px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.6; color: var(--sg-text-2); max-width: 60ch; }
.bw-hero__lead--html p { margin: 0; }
.bw-hero__lead--html p + p { margin-top: 12px; }

/* Wyszukiwarka */
.bw-search {
    position: relative; display: flex; align-items: center; gap: 8px; max-width: 580px; margin-top: 30px;
    padding: 6px 6px 6px 46px; border: 1px solid var(--sg-line-2); border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}
.bw-search:focus-within { border-color: var(--sg-accent-line); background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 4px var(--sg-accent-soft); }
.bw-search__ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: 19px; color: var(--sg-text-3); display: flex; }
.bw-search__input { flex: 1; min-width: 0; height: 42px; padding: 0; border: 0; background: transparent; font-size: 1rem; color: var(--sg-text); outline: none; }
.bw-search__input::placeholder { color: var(--sg-placeholder); }
.bw-search__input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.bw-search .sg-btn { flex: none; }

.bw-hero__popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: .875rem; color: var(--sg-text-3); }
.bw-hero__popular a {
    padding: 6px 12px; border-radius: 999px; background: var(--sg-fill); border: 1px solid var(--sg-line);
    color: var(--sg-text-2); text-decoration: none; transition: color 200ms ease, border-color 200ms ease;
}
@media (hover: hover) and (pointer: fine) { .bw-hero__popular a:hover { color: var(--sg-text); border-color: var(--sg-accent-line); } }

.bw-hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 38px 0 0; padding: 0; list-style: none; max-width: 640px; }
.bw-hero__stats li { position: relative; padding-top: 14px; border-top: 1px solid var(--sg-line-2); }
.bw-hero__stats li::before, .bw-hero__stats li::after { content: ""; position: absolute; top: -5px; width: 1px; height: 9px; background: var(--sg-line-2); }
.bw-hero__stats li::before { left: 0; }
.bw-hero__stats li::after { right: 0; }
.bw-hero__stats b { display: block; font-family: var(--sg-mono); font-size: 1.25rem; font-weight: 500; color: var(--sg-text); font-variant-numeric: tabular-nums; }
.bw-hero__stats span { display: block; margin-top: 4px; font-size: .8125rem; line-height: 1.45; color: var(--sg-text-3); }

/* ═══════════════ SCENA BUDOWY (SVG + three.js) ═══════════════ */
.bw-hero__visual { position: relative; }
.bw-scene { position: relative; aspect-ratio: 560 / 480; width: 100%; max-width: 620px; margin-left: auto; color: #e9eef6; }
.bw-scene__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transition: opacity 700ms ease; }
.bw-scene__gl { position: absolute; inset: -4% -6% 0; width: 112%; height: 104%; opacity: 0; transition: opacity 900ms ease; pointer-events: none; }
.bw-scene.is-gl .bw-scene__gl { opacity: 1; }
.bw-scene.is-gl .bw-scene__svg { opacity: 0; }
/* Etykiety nad sceną three.js (pozycje liczy blog-budowa.js) */
.bw-scene__labels { position: absolute; inset: 0; pointer-events: none; }
.bw-scene__label {
    position: absolute; left: 0; top: 0; padding: 6px 12px; border-radius: 999px; white-space: nowrap;
    border: 1px solid rgba(0, 212, 170, .5); background: rgba(7, 11, 20, .88);
    font-family: var(--sg-mono); font-size: .75rem; color: #e9eef6;
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .8);
    opacity: 0; transition: opacity 300ms ease;
}
.bw-scene__label.is-on { opacity: 1; }
.bw-scene__label--hist { border-color: rgba(148, 163, 184, .4); color: #a8b3c6; }
.bw-scene__label--ok { border-color: #00d4aa; color: #8ff0d9; }
.bw-scene__caption { position: absolute; left: 0; bottom: -30px; margin: 0; font-family: var(--sg-mono); font-size: .75rem; color: var(--sg-text-3); }
.bw-scene__caption span { margin-right: 10px; padding: 2px 7px; border: 1px solid var(--sg-line-2); border-radius: 6px; color: var(--sg-accent-text); }

.bw-scene__ground { stroke: rgba(148, 163, 184, .45); stroke-width: 1.5; }
.bw-scene__dim { stroke: rgba(148, 163, 184, .5); stroke-width: 1; fill: none; }
.bw-scene__dim text { fill: #8591a6; stroke: none; font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; }
.bw-scene__front { fill: rgba(14, 21, 36, .92); stroke: rgba(148, 163, 184, .55); stroke-width: 1.2; }
.bw-scene__side { fill: rgba(10, 16, 28, .95); stroke: rgba(148, 163, 184, .4); stroke-width: 1.2; }
.bw-scene__slab { stroke: rgba(148, 163, 184, .5); stroke-width: 2; }
.bw-scene__win { fill: rgba(148, 163, 184, .08); stroke: rgba(148, 163, 184, .3); stroke-width: 1; }
.bw-scene__win.is-lit { fill: url(#bwOkno); stroke: rgba(0, 212, 170, .7); }
.bw-scene__todo { fill: none; stroke: rgba(0, 212, 170, .55); stroke-width: 1.2; stroke-dasharray: 5 5; }
.bw-scene__mast, .bw-scene__jib { fill: none; stroke: #e0a84a; stroke-width: 1.6; stroke-linejoin: round; }
.bw-scene__weight { fill: rgba(224, 168, 74, .35); stroke: #e0a84a; }
.bw-scene__cab { fill: #e0a84a; }
.bw-scene__trolley rect:first-child { fill: #e0a84a; }
.bw-scene__cable { stroke: rgba(233, 238, 246, .7); stroke-width: 1; }
.bw-scene__hook { fill: none; stroke: #e0a84a; stroke-width: 2; }
.bw-scene__load { fill: rgba(0, 212, 170, .16); stroke: #00d4aa; stroke-width: 1.2; }
.bw-scene__tag path { stroke: rgba(0, 212, 170, .6); stroke-width: 1; stroke-dasharray: 3 3; fill: none; }
.bw-scene__tag rect { fill: rgba(7, 11, 20, .92); stroke: rgba(0, 212, 170, .55); }
.bw-scene__tag text { fill: #e9eef6; font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; }
.bw-scene__tag--ok text { fill: #8ff0d9; }

@media (prefers-reduced-motion: no-preference) {
    .bw-scene__trolley { animation: bw-trolley 9s cubic-bezier(0.77, 0, 0.175, 1) infinite; }
    .bw-scene__cable { transform-origin: 247px 64px; animation: bw-cable 9s cubic-bezier(0.77, 0, 0.175, 1) infinite; }
    .bw-scene__hook, .bw-scene__load { animation: bw-load 9s cubic-bezier(0.77, 0, 0.175, 1) infinite; }
    .bw-scene__win.is-lit { animation: bw-win 6s ease-in-out infinite; animation-delay: calc(var(--i) * -0.37s); }
    .bw-scene__tag { opacity: 0; animation: bw-tag 9s ease infinite; animation-delay: calc(var(--t) * 3s); }
}
@keyframes bw-trolley { 0%, 8% { transform: translateX(0); } 42%, 58% { transform: translateX(-70px); } 92%, 100% { transform: translateX(0); } }
@keyframes bw-cable { 0%, 12% { transform: scaleY(1); } 30%, 40% { transform: scaleY(1.9); } 52%, 100% { transform: scaleY(1); } }
@keyframes bw-load { 0%, 12% { transform: translateY(0); } 30%, 40% { transform: translateY(50px); } 52%, 100% { transform: translateY(0); } }
@keyframes bw-win { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes bw-tag { 0% { opacity: 0; transform: translateY(6px); } 8%, 30% { opacity: 1; transform: none; } 38%, 100% { opacity: 0; transform: translateY(-4px); } }

/* ═══════════════ KARTY WPISÓW ═══════════════ */
.bw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.bw-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1023.98px) { .bw-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); } }

.bw-card {
    position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 100%;
    padding: 22px 22px 20px; border: 1px solid var(--sg-line-2); border-radius: var(--sg-radius);
    background: var(--sg-surface);
    transition: border-color 220ms ease, transform 220ms var(--sg-ease-out), box-shadow 220ms ease;
}
.bw-card__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.bw-card__kat { display: inline-flex; align-items: center; gap: 7px; font-family: var(--sg-mono); font-size: .75rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--sg-accent-text); }
.bw-card__kat .sg-ico { font-size: 15px; }
.bw-card__etap { padding: 3px 8px; border-radius: 6px; font-family: var(--sg-mono); font-size: .6875rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; background: var(--sg-fill-2); color: var(--sg-text-2); }
.bw-card__etap--problem { background: rgba(183, 121, 31, .12); color: #8a5a12; }
.bw-card__etap--przewodnik, .bw-card__etap--hub { background: var(--sg-accent-soft); color: var(--sg-accent-text); }
.bw-card__etap--rozwiazanie { background: var(--sg-accent); color: #032a22; }
.bw-card__title { margin: 0; font-family: var(--sg-display); font-size: 1.1875rem; font-weight: 600; line-height: 1.28; letter-spacing: -0.012em; text-wrap: balance; }
.bw-card__title a { color: var(--sg-text); text-decoration: none; }
.bw-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.bw-card__txt { margin: 0; font-size: .9375rem; line-height: 1.6; color: var(--sg-text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bw-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding-top: 12px; border-top: 1px dashed var(--sg-line-2); font-family: var(--sg-mono); font-size: .75rem; color: var(--sg-text-3); padding-right: 40px; }
.bw-card__go { position: absolute; right: 18px; bottom: 16px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--sg-fill); color: var(--sg-text-2); font-size: 16px; transition: background-color 220ms ease, color 220ms ease, transform 220ms var(--sg-ease-out); }
.bw-card:focus-within { border-color: var(--sg-accent-line); }
@media (hover: hover) and (pointer: fine) {
    .bw-card:hover { border-color: var(--sg-accent-line); transform: translateY(-3px); box-shadow: 0 22px 44px -30px rgba(0, 110, 90, .45); }
    .bw-card:hover .bw-card__go { background: var(--sg-accent); color: #032a22; transform: translateX(2px); }
}

/* Karta duża (przewodnik z pytaniami): ciemna, z planem budynku w tle */
.bw-card--duza {
    justify-content: flex-end; min-height: 380px; padding: clamp(24px, 3vw, 36px);
    border-color: rgba(0, 212, 170, .3);
    background:
        radial-gradient(ellipse 70% 60% at 85% 10%, rgba(0, 212, 170, .22), transparent 70%),
        linear-gradient(var(--bw-plan) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(90deg, var(--bw-plan) 1px, transparent 1px) 0 0 / 28px 28px,
        #0a101c;
    color: #e9eef6;
}
/* Etykiety u góry, reszta u dołu karty (w przepływie — długi tytuł nie wjeżdża na etykiety) */
.bw-card--duza { justify-content: flex-start; }
.bw-card--duza .bw-card__top { margin-bottom: auto; padding-bottom: 28px; }
.bw-card--duza .bw-card__kat { color: #8ff0d9; }
.bw-card--duza .bw-card__etap { background: rgba(0, 212, 170, .16); color: #8ff0d9; }
.bw-card--duza .bw-card__title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.12; letter-spacing: -0.025em; }
.bw-card--duza .bw-card__title a { color: #fff; }
.bw-card--duza .bw-card__txt { color: #a8b3c6; -webkit-line-clamp: 4; font-size: 1rem; max-width: 56ch; }
.bw-card--duza .bw-card__meta { color: #8591a6; border-top-color: rgba(148, 163, 184, .24); }
.bw-card--duza .bw-card__go { background: #00d4aa; color: #032a22; width: 40px; height: 40px; }

.bw-card--mini { gap: 8px; padding: 18px 20px 16px; }
.bw-card--mini .bw-card__title { font-size: 1.0625rem; }
.bw-card--mini .bw-card__meta { padding-top: 8px; }

/* ═══════════════ ZACZNIJ TUTAJ ═══════════════ */
.bw-start__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 20px; align-items: stretch; }
.bw-start__list { display: grid; gap: 14px; align-content: start; }
@media (max-width: 1023.98px) { .bw-start__grid { grid-template-columns: minmax(0, 1fr); } }

/* ═══════════════ PROBLEM → ROZWIĄZANIE ═══════════════ */
.bw-problems__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--sg-line-2); counter-reset: none; }
.bw-problem {
    position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.15fr) 44px; gap: 24px; align-items: start;
    padding: 26px 0; border-bottom: 1px solid var(--sg-line-2);
    transition: background-color 220ms ease;
}
.bw-problem__nr { font-family: var(--sg-mono); font-size: .875rem; color: var(--sg-text-3); padding-top: 22px; }
.bw-problem__label { margin: 0 0 6px; font-family: var(--sg-mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sg-text-3); }
.bw-problem__q .bw-problem__label { color: #8a5a12; }
.bw-problem__a .bw-problem__label { color: var(--sg-accent-text); }
.bw-problem h3 { margin: 0; font-family: var(--sg-display); font-size: 1.1875rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.bw-problem h3 a { color: var(--sg-text); text-decoration: none; }
.bw-problem h3 a::after { content: ""; position: absolute; inset: 0; }
.bw-problem__a p:last-child { margin: 0; font-size: .9688rem; line-height: 1.6; color: var(--sg-text-2); }
.bw-problem__go { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; margin-top: 16px; border-radius: 12px; border: 1px solid var(--sg-line-2); color: var(--sg-text-2); font-size: 18px; transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease; }
@media (hover: hover) and (pointer: fine) {
    .bw-problem:hover { background: linear-gradient(90deg, transparent, var(--sg-accent-soft) 30%, transparent); }
    .bw-problem:hover .bw-problem__go { background: var(--sg-accent); border-color: var(--sg-accent); color: #fff; }
}
@media (max-width: 860px) {
    .bw-problem { grid-template-columns: 40px minmax(0, 1fr); gap: 10px 14px; }
    .bw-problem__nr { padding-top: 20px; }
    .bw-problem__a { grid-column: 2; }
    .bw-problem__go { display: none; }
}

/* ═══════════════ KATEGORIE, STRONICOWANIE, PUSTO ═══════════════ */
.bw-cats { display: flex; gap: 8px; margin: 0 0 26px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.bw-cats__item {
    flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
    border: 1px solid var(--sg-line-2); border-radius: 999px; background: var(--sg-surface);
    font-size: .9063rem; font-weight: 600; color: var(--sg-text-2); text-decoration: none; white-space: nowrap;
    transition: border-color 200ms ease, color 200ms ease, background-color 200ms ease;
}
.bw-cats__item .sg-ico { font-size: 16px; color: var(--sg-accent); }
.bw-cats__item span { font-family: var(--sg-mono); font-size: .75rem; font-weight: 500; color: var(--sg-text-3); }
.bw-cats__item.is-active { border-color: var(--sg-accent); background: var(--sg-accent); color: #fff; }
.bw-cats__item.is-active .sg-ico, .bw-cats__item.is-active span { color: rgba(255, 255, 255, .85); }
@media (hover: hover) and (pointer: fine) { .bw-cats__item:not(.is-active):hover { border-color: var(--sg-accent-line); color: var(--sg-text); } }

.bw-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 36px; }
.bw-pages .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--sg-line-2); border-radius: 999px; font-family: var(--sg-mono); font-size: .9375rem; color: var(--sg-text-2); text-decoration: none; }
.bw-pages .page-numbers.current { background: var(--sg-text); border-color: var(--sg-text); color: var(--sg-bg); }
.bw-pages .page-numbers.dots { border-color: transparent; }
.bw-pages .sg-ico { font-size: 18px; }

.bw-empty { padding: 28px; border: 1px dashed var(--sg-line-2); border-radius: var(--sg-radius); text-align: center; color: var(--sg-text-2); }
.bw-grid .bw-card[hidden] { display: none; }

/* ═══════════════ WPIS: NAGŁÓWEK ═══════════════ */
.bw-art__head { position: relative; isolation: isolate; overflow: hidden; padding-top: calc(var(--sg-top-h) + clamp(28px, 4vh, 52px)); padding-bottom: clamp(40px, 5vw, 64px); background: #070b14; }
.bw-art__plan { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bw-art__plan::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--bw-plan) 1px, transparent 1px),
        linear-gradient(90deg, var(--bw-plan) 1px, transparent 1px),
        linear-gradient(var(--bw-plan-2) 1px, transparent 1px),
        linear-gradient(90deg, var(--bw-plan-2) 1px, transparent 1px);
    background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
}
.bw-art__plan::after {
    /* Kontur budynku z żurawiem — rysunek techniczny po prawej */
    content: ""; position: absolute; right: max(2vw, calc((100vw - 1240px) / 2 - 40px)); bottom: -2px; width: min(38vw, 460px); aspect-ratio: 460 / 300; opacity: .5;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 460 300' fill='none' stroke='%2300d4aa' stroke-opacity='.45' stroke-width='1.2'%3E%3Cpath d='M40 300V120h220v180M260 120l60-34v214M40 120l60-34h220M100 300V140M160 300V140M220 300V140M40 180h220M40 240h220'/%3E%3Cpath d='M380 300V20M396 300V20M380 280l16-16-16-16 16-16-16-16 16-16-16-16 16-16-16-16 16-16-16-16 16-16-16-16 16-16-16-16 16-16M150 20h300M380 6h16M150 20l230-14M396 6l54 14' stroke='%23f0b458' stroke-opacity='.6'/%3E%3Cpath d='M210 20v70M196 90h28v10h-28z' stroke='%23f0b458' stroke-opacity='.5'/%3E%3C/svg%3E") right bottom / contain no-repeat;
    -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 45%);
    mask-image: linear-gradient(0deg, transparent 0%, #000 45%);
}
.bw-art__head-in { position: relative; }
.bw-art__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.bw-art__title { max-width: 24ch; font-size: clamp(2rem, 1.25rem + 2.8vw, 3.5rem); line-height: 1.06; letter-spacing: -0.034em; font-weight: 600; text-wrap: balance; }
.bw-art__lead { margin-top: 20px; max-width: 62ch; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.6; color: var(--sg-text-2); }
.bw-art__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--sg-line); }
.bw-art__author { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--sg-text); }
.bw-art__author b { display: block; font-weight: 600; font-size: .9688rem; }
.bw-art__author small { display: block; margin-top: 2px; font-size: .8125rem; color: var(--sg-text-3); }
@media (hover: hover) and (pointer: fine) { .bw-art__author:hover b { color: var(--sg-accent-text); } }
.bw-art__facts { display: flex; flex-wrap: wrap; gap: 14px 30px; margin: 0; }
.bw-art__facts div { display: grid; gap: 3px; }
.bw-art__facts dt { font-family: var(--sg-mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sg-text-3); }
.bw-art__facts dd { margin: 0; font-size: .9375rem; font-weight: 600; color: var(--sg-text); }

/* ═══════════════ WPIS: UKŁAD TREŚCI ═══════════════ */
.bw-art__body { padding-block: clamp(40px, 5vw, 72px) clamp(56px, 7vw, 96px); }
.bw-art__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(40px, 5vw, 72px); align-items: start; }
/* width: 100% zamiast auto — inaczej element siatki z marginesem auto przyjmuje szerokość
   najdłuższego wiersza kodu i wychodzi poza ekran telefonu */
.bw-art__main { width: 100%; min-width: 0; max-width: 780px; counter-reset: bw-h2; }
.bw-art__main pre, .bw-art__main .bw-tabela { max-width: 100%; }
.bw-art__side { position: relative; height: 100%; }
.bw-art__sticky { position: sticky; top: calc(var(--sg-top-h) + 44px); display: grid; gap: 18px; max-height: calc(100vh - var(--sg-top-h) - 64px); overflow: auto; scrollbar-width: none; }
.bw-art__sticky::-webkit-scrollbar { display: none; }
@media (max-width: 1099.98px) {
    .bw-art__grid { grid-template-columns: minmax(0, 1fr); }
    .bw-art__side { display: none; }
    .bw-art__main { margin-inline: auto; }
}

/* Spis treści (kolumna boczna) */
.bw-toc { padding: 18px 0 4px; border-top: 2px solid var(--sg-text); }
.bw-toc__title { display: flex; justify-content: space-between; margin: 0 0 12px; font-family: var(--sg-mono); font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--sg-text); }
.bw-toc__title span { color: var(--sg-text-3); font-variant-numeric: tabular-nums; }
.bw-toc ol { margin: 0; padding: 0; list-style: none; }
.bw-toc a {
    position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 6px; padding: 7px 0 7px 12px;
    border-left: 2px solid var(--sg-line); font-size: .875rem; line-height: 1.45; color: var(--sg-text-2); text-decoration: none;
    transition: color 200ms ease, border-color 200ms ease;
}
.bw-toc__nr { font-family: var(--sg-mono); font-size: .75rem; color: var(--sg-text-3); padding-top: 2px; }
.bw-toc a.is-active { border-left-color: var(--sg-accent); color: var(--sg-text); font-weight: 600; }
.bw-toc a.is-active .bw-toc__nr { color: var(--sg-accent-text); }
.bw-toc a.is-done { color: var(--sg-text-3); }
@media (hover: hover) and (pointer: fine) { .bw-toc a:hover { color: var(--sg-text); } }

/* Spis treści rozwijany (telefon, tablet) */
.bw-toc-m { display: none; margin: 0 0 32px; border: 1px solid var(--sg-line-2); border-radius: 14px; background: var(--sg-surface-2); }
@media (max-width: 1099.98px) { .bw-toc-m { display: block; } }
.bw-toc-m summary { display: flex; align-items: center; gap: 10px; padding: 14px 18px; list-style: none; cursor: pointer; font-weight: 600; font-size: .9688rem; }
.bw-toc-m summary::-webkit-details-marker { display: none; }
.bw-toc-m summary > span { margin-left: auto; font-family: var(--sg-mono); font-size: .75rem; font-weight: 500; color: var(--sg-text-3); }
.bw-toc-m__caret { transition: transform 200ms var(--sg-ease-out); }
.bw-toc-m[open] .bw-toc-m__caret { transform: rotate(180deg); }
.bw-toc-m ol { margin: 0; padding: 4px 18px 16px; list-style: none; border-top: 1px solid var(--sg-line); }
.bw-toc-m a { display: grid; grid-template-columns: 30px minmax(0, 1fr); padding: 9px 0; border-bottom: 1px dashed var(--sg-line); font-size: .9375rem; color: var(--sg-text-2); text-decoration: none; }
.bw-toc-m li:last-child a { border-bottom: 0; }

/* W skrócie */
.bw-tldr { position: relative; margin: 0 0 36px; padding: 22px 24px 20px 26px; border-radius: 16px; background: linear-gradient(180deg, rgba(0, 162, 131, .08), rgba(0, 162, 131, .03)); border: 1px solid var(--sg-accent-line); }
.bw-tldr::before { content: ""; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--sg-accent); }
.bw .bw-tldr__title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-family: var(--sg-mono); font-size: .8125rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--sg-accent-text); }
.bw-tldr ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bw-tldr li { position: relative; padding-left: 24px; font-size: 1.0313rem; line-height: 1.6; color: var(--sg-text); }
.bw-tldr li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; border: 2px solid var(--sg-accent); border-radius: 2px; transform: rotate(45deg); }
.bw-tldr li:first-child { font-weight: 600; }
.bw-tldr a { color: var(--sg-accent-text); }

/* ═══════════════ TREŚĆ ARTYKUŁU ═══════════════ */
.bw-prose { font-size: var(--bw-prose); line-height: 1.75; color: #1f2a3c; }
.bw-prose > * + * { margin-top: 1.15em; }
.bw-prose p { margin: 0; }
.bw-prose * + p { margin-top: 1.15em; }
.bw-prose h2, .bw-faq > h2, .bw-sources > h2 {
    position: relative; margin: 2.2em 0 .7em; padding-top: 1.1em;
    font-family: var(--sg-display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2.05rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.025em;
    color: var(--sg-text); scroll-margin-top: calc(var(--sg-top-h) + 40px);
}
.bw-prose h2::before, .bw-faq > h2::before, .bw-sources > h2::before {
    counter-increment: bw-h2; content: counter(bw-h2, decimal-leading-zero);
    position: absolute; left: 0; top: -2px; font-family: var(--sg-mono); font-size: .8125rem; font-weight: 500; letter-spacing: .06em; color: var(--sg-accent-text);
}
.bw-prose h2::after, .bw-faq > h2::after, .bw-sources > h2::after { content: ""; position: absolute; left: 34px; right: 0; top: 7px; height: 1px; background: linear-gradient(90deg, var(--sg-line-2), transparent 70%); }
.bw-prose > h2:first-child { margin-top: .4em; }
.bw-prose h3 { margin: 1.8em 0 .5em; font-family: var(--sg-display); font-size: clamp(1.2rem, 1.1rem + .4vw, 1.4rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; color: var(--sg-text); scroll-margin-top: calc(var(--sg-top-h) + 40px); }
.bw-prose h4 { margin: 1.5em 0 .4em; font-size: 1.0625rem; font-weight: 700; color: var(--sg-text); }
.bw-prose h2 + *, .bw-prose h3 + *, .bw-prose h4 + * { margin-top: 0; }
.bw-prose a { color: var(--sg-accent-text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--sg-accent-line); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .bw-prose a:hover { text-decoration-color: currentColor; } }
.bw-prose strong, .bw-prose b { font-weight: 700; color: var(--sg-text); }
.bw-prose em { font-style: italic; }
.bw-prose ul, .bw-prose ol { padding-left: 1.5em; }
.bw-prose ul { list-style: none; padding-left: 1.4em; }
.bw-prose ul > li { position: relative; }
.bw-prose ul > li::before { content: ""; position: absolute; left: -1.05em; top: .72em; width: 6px; height: 6px; border-radius: 1px; background: var(--sg-accent); transform: rotate(45deg); }
.bw-prose ol { list-style: decimal; }
.bw-prose ol > li::marker { font-family: var(--sg-mono); font-size: .9em; color: var(--sg-accent-text); }
.bw-prose li + li { margin-top: .45em; }
.bw-prose li > ul, .bw-prose li > ol { margin-top: .45em; }
.bw-prose code { padding: .12em .4em; border-radius: 6px; background: var(--sg-fill-2); font-family: var(--sg-mono); font-size: .86em; color: #0b3b33; overflow-wrap: anywhere; }
.bw-prose hr { height: 1px; margin: 2.4em 0; border: 0; background: var(--sg-line-2); }
.bw-prose img { max-width: 100%; height: auto; border-radius: 14px; }
.bw-prose figure { margin-inline: 0; }
.bw-prose figure img { border: 1px solid var(--sg-line-2); box-shadow: 0 24px 48px -36px rgba(15, 23, 42, .5); }
.bw-prose figcaption { margin-top: 10px; font-family: var(--sg-mono); font-size: .75rem; line-height: 1.5; color: var(--sg-text-3); }
.bw-prose figcaption::before { content: "RYS. "; color: var(--sg-accent-text); }

/* Kod i komunikaty błędów */
.bw-prose pre, .bw-kod {
    position: relative; margin-top: 1.4em; padding: 44px 20px 18px; border-radius: 14px; overflow-x: auto;
    background: #0b1220; color: #d8e2f0; font-family: var(--sg-mono); font-size: .8438rem; line-height: 1.65;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .16);
}
.bw-prose pre::before, .bw-kod::before { content: attr(data-etykieta); position: absolute; left: 16px; top: 12px; font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: #8591a6; }
.bw-prose pre:not([data-etykieta])::before { content: "terminal"; }
.bw-prose pre::after { content: ""; position: absolute; right: 16px; top: 15px; width: 40px; height: 8px; background: radial-gradient(circle, #ff8f8f 3px, transparent 3.5px) 0 0 / 14px 8px repeat-x; opacity: .55; }
.bw-prose pre code { padding: 0; background: none; color: inherit; font-size: inherit; overflow-wrap: normal; white-space: pre; }
.bw-prose pre .bw-err { color: #ff8f8f; }
.bw-prose pre .bw-ok { color: #8ff0d9; }
.bw-prose pre .bw-kom { color: #8591a6; }

/* Tabele */
.bw-tabela { margin-top: 1.5em; overflow-x: auto; border: 1px solid var(--sg-line-2); border-radius: 14px; -webkit-overflow-scrolling: touch; }
.bw-tabela table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; }
/* Najwyżej dwie kolumny (np. przykład ceny przy lokalu): mieści się na telefonie bez przewijania */
.bw-tabela table:not(:has(tr > :nth-child(3))) { min-width: 0; }
.bw-tabela th, .bw-tabela td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--sg-line); }
.bw-tabela thead th { background: var(--sg-fill); font-family: var(--sg-mono); font-size: .75rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--sg-text-2); white-space: nowrap; }
.bw-tabela tbody tr:last-child td { border-bottom: 0; }
.bw-tabela tbody tr:nth-child(even) td { background: rgba(15, 23, 42, .015); }
.bw-tabela td:first-child { font-weight: 600; color: var(--sg-text); }
.bw-tabela .bw-tak { color: var(--sg-accent-text); font-weight: 700; }
.bw-tabela .bw-nie { color: var(--sg-err); font-weight: 700; }
.bw-tabela caption { caption-side: bottom; padding: 10px 16px; text-align: left; font-family: var(--sg-mono); font-size: .75rem; color: var(--sg-text-3); border-top: 1px solid var(--sg-line); }

/* Ramki w treści */
.bw-uwaga { position: relative; margin-top: 1.6em; padding: 18px 20px 18px 56px; border-radius: 14px; border: 1px solid var(--sg-line-2); background: var(--sg-surface-2); font-size: .9688rem; line-height: 1.65; }
.bw-uwaga::before { content: ""; position: absolute; left: 18px; top: 20px; width: 22px; height: 22px; background: currentColor; color: var(--sg-accent); -webkit-mask: var(--ikona) center / contain no-repeat; mask: var(--ikona) center / contain no-repeat; }
.bw-uwaga > p + p { margin-top: .6em; }
.bw-uwaga__tytul { font-weight: 700; color: var(--sg-text); }
.bw-uwaga--info { --ikona: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z'/%3E%3C/svg%3E"); }
.bw-uwaga--ostrzezenie { --ikona: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z'/%3E%3C/svg%3E"); border-color: rgba(183, 121, 31, .3); background: rgba(240, 180, 88, .07); }
.bw-uwaga--ostrzezenie::before { color: #b7791f; }
.bw-uwaga--blad { --ikona: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z'/%3E%3C/svg%3E"); border-color: rgba(192, 57, 43, .25); background: var(--sg-err-soft); }
.bw-uwaga--blad::before { color: var(--sg-err); }
.bw-uwaga--praktyka { --ikona: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z'/%3E%3C/svg%3E"); border-color: var(--sg-accent-line); background: var(--sg-accent-soft); }
.bw-uwaga--praktyka .bw-uwaga__tytul::before { content: "Z naszych wdrożeń · "; font-family: var(--sg-mono); font-size: .75rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--sg-accent-text); }

/* Cytat z przepisu */
.bw-cytat, .bw-prose blockquote {
    position: relative; margin: 1.6em 0 0; padding: 20px 22px 18px 24px; border-radius: 0 14px 14px 0;
    border-left: 3px solid var(--sg-text); background: var(--sg-fill);
    font-size: 1rem; line-height: 1.7; color: var(--sg-text);
}
.bw-cytat p, .bw-prose blockquote p { margin: 0; }
.bw-cytat p + p, .bw-prose blockquote p + p { margin-top: .6em; }
.bw-cytat cite, .bw-prose blockquote cite { display: block; margin-top: 12px; font-family: var(--sg-mono); font-size: .75rem; font-style: normal; letter-spacing: .04em; color: var(--sg-text-3); }
.bw-cytat cite::before, .bw-prose blockquote cite::before { content: "— "; }

/* Kroki (HowTo) */
.bw-prose ol.bw-kroki { list-style: none; padding: 0; counter-reset: bw-krok; }
.bw-kroki > li { position: relative; padding: 0 0 22px 64px; counter-increment: bw-krok; }
.bw-kroki > li + li { margin-top: 0; }
.bw-kroki > li::before { content: counter(bw-krok, decimal-leading-zero); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--sg-text); color: #fff; font-family: var(--sg-mono); font-size: .9375rem; font-weight: 500; }
.bw-kroki > li::after { content: ""; position: absolute; left: 21px; top: 50px; bottom: 6px; width: 2px; background: repeating-linear-gradient(var(--sg-line-2) 0 6px, transparent 6px 10px); }
.bw-kroki > li:last-child::after { display: none; }
.bw-prose .bw-kroki h3 { margin: 8px 0 6px; font-size: 1.1875rem; }
.bw-kroki > li > p { margin-top: .4em; }

/* Liczby (kafelki z danymi) */
.bw-liczby { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 1.6em; }
.bw-liczby > div { padding: 16px 18px; border: 1px solid var(--sg-line-2); border-radius: 14px; background: var(--sg-surface); }
.bw-liczby b { display: block; font-family: var(--sg-display); font-size: 1.75rem; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; color: var(--sg-text); font-variant-numeric: tabular-nums; }
.bw-liczby span { display: block; margin-top: 6px; font-size: .8438rem; line-height: 1.45; color: var(--sg-text-2); }

/* Nawigacja po grupach pytań (wpis-przewodnik) */
.bw-chipy { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.4em; }
.bw-chipy a { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border: 1px solid var(--sg-line-2); border-radius: 999px; background: var(--sg-surface); font-size: .875rem; font-weight: 600; color: var(--sg-text); text-decoration: none; }
.bw-chipy a span { font-family: var(--sg-mono); font-weight: 500; font-size: .75rem; color: var(--sg-text-3); }
@media (hover: hover) and (pointer: fine) { .bw-chipy a:hover { border-color: var(--sg-accent-line); background: var(--sg-accent-soft); } }

/* Pytanie z odpowiedzią (wpis-przewodnik) */
.bw-qa { margin-top: 1.4em; padding: 20px 22px; border: 1px solid var(--sg-line-2); border-radius: 14px; background: var(--sg-surface); }
.bw-prose .bw-qa h3 { margin: 0 0 8px; font-size: 1.125rem; }
.bw-qa p { margin: 0; font-size: 1rem; }
.bw-qa p + p { margin-top: .6em; }
.bw-qa__wiecej { display: inline-flex; margin-top: 10px; font-size: .9375rem; }

/* ═══════════════ NAJCZĘSTSZE PYTANIA I ŹRÓDŁA ═══════════════ */
.bw-faq { margin-top: 12px; }
.bw-faq__item { border-bottom: 1px solid var(--sg-line-2); }
.bw-faq__item:first-of-type { border-top: 1px solid var(--sg-line-2); }
.bw-faq__item summary { display: flex; align-items: center; gap: 16px; padding: 18px 2px; list-style: none; cursor: pointer; }
.bw-faq__item summary::-webkit-details-marker { display: none; }
.bw-faq__item summary h3 { flex: 1; margin: 0; font-family: var(--sg-display); font-size: 1.125rem; font-weight: 600; line-height: 1.35; color: var(--sg-text); }
.bw-faq__ico { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--sg-fill); color: var(--sg-text-2); transition: background-color 200ms ease, color 200ms ease; }
.bw-faq__ico .sg-ico { transition: transform 220ms var(--sg-ease-out); }
.bw-faq__item[open] .bw-faq__ico { background: var(--sg-accent); color: #fff; }
.bw-faq__item[open] .bw-faq__ico .sg-ico { transform: rotate(45deg); }
.bw-faq__a { padding: 0 48px 20px 2px; font-size: 1rem; line-height: 1.7; color: #1f2a3c; }
.bw-faq__a p { margin: 0; }
.bw-faq__a a { color: var(--sg-accent-text); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .bw-faq__item summary:hover h3 { color: var(--sg-accent-text); } }

.bw-sources { margin-top: 12px; }
.bw-sources__stan { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--sg-fill); font-size: .9063rem; line-height: 1.55; color: var(--sg-text-2); }
.bw-sources__stan .sg-ico { flex: none; margin-top: 2px; font-size: 18px; color: var(--sg-accent); }
.bw-sources ol { margin: 0; padding-left: 1.6em; list-style: decimal; font-size: .9375rem; line-height: 1.6; color: var(--sg-text-2); }
.bw-sources li + li { margin-top: 8px; }
.bw-sources li::marker { font-family: var(--sg-mono); font-size: .8em; color: var(--sg-text-3); }
.bw-sources a { color: var(--sg-text); text-decoration: underline; text-decoration-color: var(--sg-line-2); text-underline-offset: 3px; overflow-wrap: anywhere; }
.bw-sources__id { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; background: var(--sg-fill-2); font-family: var(--sg-mono); font-size: .75rem; color: var(--sg-text-2); white-space: nowrap; }

/* ═══════════════ RAMKI Z ROZWIĄZANIEM ═══════════════ */
.bw-cta { position: relative; display: grid; gap: 22px; margin-top: 2.2em; padding: clamp(22px, 3vw, 32px); border-radius: 20px; overflow: hidden; }
.bw-cta__eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-family: var(--sg-mono); font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.bw-cta__title { margin: 0; font-family: var(--sg-display); font-size: clamp(1.35rem, 1.1rem + .9vw, 1.75rem); font-weight: 600; line-height: 1.18; letter-spacing: -0.02em; }
.bw-cta__txt { margin: 10px 0 0; font-size: 1rem; line-height: 1.65; }
.bw-cta__list { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.bw-cta__list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; font-size: .9688rem; line-height: 1.5; }
.bw-cta__list .sg-ico { margin-top: 3px; }
.bw-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Pełna (koniec wpisu): ciemna karta z poświatą */
.bw-cta--pelny {
    grid-template-columns: minmax(0, 1fr) auto; align-items: end;
    background:
        radial-gradient(ellipse 60% 80% at 100% 0%, rgba(0, 212, 170, .2), transparent 70%),
        linear-gradient(var(--bw-plan) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(90deg, var(--bw-plan) 1px, transparent 1px) 0 0 / 28px 28px,
        #0a101c;
    border: 1px solid rgba(0, 212, 170, .32);
    color: #e9eef6;
    box-shadow: 0 40px 80px -52px rgba(0, 160, 130, .7);
}
.bw-cta--pelny .bw-cta__eyebrow { color: #8ff0d9; }
.bw-cta--pelny .bw-cta__title { color: #fff; }
.bw-cta--pelny .bw-cta__txt { color: #a8b3c6; max-width: 56ch; }
.bw-cta--pelny .bw-cta__list .sg-ico { color: #00d4aa; }
.bw-cta--pelny .bw-cta__actions { flex-direction: column; align-items: stretch; min-width: 240px; }
.bw-cta--pelny .sg-btn--ghost { background: rgba(255, 255, 255, .05); color: #e9eef6; border-color: rgba(148, 163, 184, .3); }
.bw-art__main > .bw-cta--pelny { margin-top: 48px; }
@media (max-width: 760px) {
    .bw-cta--pelny { grid-template-columns: minmax(0, 1fr); }
    .bw-cta--pelny .bw-cta__actions { min-width: 0; }
}

/* Wstawka (w treści): jasna, pozioma */
.bw-cta--wstawka {
    grid-template-columns: minmax(0, 1fr) auto; align-items: center; margin: 2em 0;
    border: 1px solid var(--sg-accent-line); background: linear-gradient(135deg, rgba(0, 162, 131, .09), rgba(0, 162, 131, .02) 60%), var(--sg-surface);
    font-size: 1rem;
}
.bw-cta--wstawka .bw-cta__eyebrow { color: var(--sg-accent-text); }
.bw-cta--wstawka .bw-cta__title { font-size: 1.3125rem; color: var(--sg-text); }
.bw-cta--wstawka .bw-cta__txt { font-size: .9688rem; color: var(--sg-text-2); }
.bw-cta--wstawka .bw-cta__actions { flex-direction: column; }
.bw-prose .bw-cta a.sg-btn { color: inherit; text-decoration: none; font-weight: 600; }
.bw-prose .bw-cta a.sg-btn--primary { color: var(--sg-cta-ink); }
.bw-prose .bw-cta p { margin: 0; }
.bw-prose .bw-cta .bw-cta__txt { margin-top: 8px; }
@media (max-width: 760px) {
    .bw-cta--wstawka { grid-template-columns: minmax(0, 1fr); }
    .bw-cta--wstawka .bw-cta__actions { flex-direction: row; }
}

/* Kolumna boczna */
.bw-side-cta { padding: 20px; border-radius: 16px; background: #0a101c; color: #e9eef6; border: 1px solid rgba(0, 212, 170, .28); background-image: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(0, 212, 170, .18), transparent 70%); }
.bw-side-cta__eyebrow { margin: 0 0 6px; font-family: var(--sg-mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: #8ff0d9; }
.bw-side-cta__title { margin: 0 0 16px; font-family: var(--sg-display); font-size: 1.1875rem; font-weight: 600; line-height: 1.25; color: #fff; }
.bw-side-cta__link { display: block; margin-top: 12px; text-align: center; font-size: .875rem; font-weight: 600; color: #a8b3c6; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(148, 163, 184, .4); }

/* ═══════════════ NASTĘPNY KROK, UDOSTĘPNIANIE, AUTOR ═══════════════ */
.bw-next { margin-top: 24px; }
.bw-next__eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-family: var(--sg-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sg-text-3); }
.bw-next__eyebrow .sg-ico { color: var(--sg-accent); }
.bw-next__link {
    position: relative; display: grid; gap: 6px; padding: 20px 64px 20px 22px; border: 1px solid var(--sg-line-2); border-radius: 16px; text-decoration: none;
    background: var(--sg-surface); transition: border-color 220ms ease, transform 220ms var(--sg-ease-out);
}
.bw-next__link::after { content: ""; position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); background: var(--sg-accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform 220ms var(--sg-ease-out); }
.bw-next__title { font-family: var(--sg-display); font-size: 1.1875rem; font-weight: 600; line-height: 1.3; color: var(--sg-text); }
.bw-next__txt { font-size: .9375rem; line-height: 1.55; color: var(--sg-text-2); }
@media (hover: hover) and (pointer: fine) {
    .bw-next__link:hover { border-color: var(--sg-accent-line); transform: translateY(-2px); }
    .bw-next__link:hover::after { transform: translate(3px, -50%); }
}

.bw-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.bw-share__label { margin-right: 4px; font-family: var(--sg-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sg-text-3); }
.bw-share a, .bw-share button { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--sg-line-2); border-radius: 999px; background: var(--sg-surface); font: inherit; font-size: .875rem; font-weight: 600; color: var(--sg-text-2); text-decoration: none; cursor: pointer; transition: border-color 200ms ease, color 200ms ease; }
.bw-share button.is-ok { border-color: var(--sg-accent); color: var(--sg-accent-text); }
@media (hover: hover) and (pointer: fine) { .bw-share a:hover, .bw-share button:hover { border-color: var(--sg-accent-line); color: var(--sg-text); } }

.bw-author { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; margin-top: 28px; padding: 24px; border-radius: 18px; background: var(--sg-fill); border: 1px solid var(--sg-line); }
.bw-author__img { width: 72px; height: 72px; font-size: 1.35rem; }
.bw-author__eyebrow { margin: 0; font-family: var(--sg-mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sg-text-3); }
.bw-author__name { margin: 2px 0 0; font-family: var(--sg-display); font-size: 1.25rem; font-weight: 600; }
.bw-author__name a { color: var(--sg-text); text-decoration: none; }
.bw-author__role { margin: 2px 0 0; font-size: .875rem; color: var(--sg-accent-text); font-weight: 600; }
.bw-author__bio { margin: 10px 0 0; font-size: .9375rem; line-height: 1.6; color: var(--sg-text-2); }
.bw-author__links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; font-size: .875rem; }
.bw-author__links a { color: var(--sg-text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--sg-line-2); text-underline-offset: 3px; }
@media (max-width: 520px) { .bw-author { grid-template-columns: minmax(0, 1fr); } }

/* ═══════════════ NEWSLETTER ═══════════════ */
.bw-nl__form { display: grid; gap: 10px; }
.bw-nl__row { display: flex; gap: 8px; }
.bw-nl__row .sg-input { flex: 1; min-width: 0; }
.bw-nl__row .sg-btn { flex: none; }
.bw-nl__zgoda { font-size: .7813rem; }
.bw-nl__msg { margin: 0; min-height: 0; font-size: .9063rem; line-height: 1.5; }
.bw-nl__msg:empty { display: none; }
.bw-nl__msg.is-ok { padding: 10px 14px; border-radius: 12px; background: var(--sg-accent-soft); color: var(--sg-accent-text); font-weight: 600; }
.bw-nl__msg.is-err { color: var(--sg-err); font-weight: 600; }
.bw-nl__form.is-busy button { opacity: .6; pointer-events: none; }
@media (max-width: 520px) { .bw-nl__row { flex-direction: column; } }

/* Sekcja (koniec stron) */
.bw-nl--sekcja { position: relative; overflow: hidden; padding-block: clamp(72px, 8vw, 112px); isolation: isolate; }
.bw-nl--sekcja::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 50% 70% at 85% 30%, rgba(0, 212, 170, .14), transparent 70%); }
.bw-nl__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.bw-nl__copy .sg-lead { margin-top: 16px; }
.bw-nl__list { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.bw-nl__list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: .9688rem; line-height: 1.5; color: var(--sg-text-2); }
.bw-nl__list .sg-ico { margin-top: 3px; color: var(--sg-accent); }
.bw-nl__card { padding: clamp(22px, 3vw, 32px); border-radius: 22px; border: 1px solid var(--sg-line-2); background: var(--sg-surface-2); box-shadow: 0 40px 90px -60px rgba(0, 0, 0, .9); }
.bw-nl__gift { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: center; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px dashed var(--sg-line-2); }
.bw-nl__gift img { width: 72px; height: auto; border-radius: 6px; transform: rotate(-4deg); box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .8); }
.bw-nl__gift p { margin: 0; font-size: .9375rem; line-height: 1.5; color: var(--sg-text-2); }
.bw-nl__gift b { display: block; font-family: var(--sg-mono); font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--sg-accent-text); margin-bottom: 4px; }
@media (max-width: 900px) { .bw-nl__grid { grid-template-columns: minmax(0, 1fr); } }

/* Wstawka (w treści wpisu) */
.bw-nl--wstawka { margin: 2em 0; padding: 22px 24px; border-radius: 18px; border: 1px solid var(--sg-line-2); background: var(--sg-surface-2); font-size: 1rem; line-height: 1.6; }
.bw-nl__head { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.bw-nl__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--sg-text); color: #fff; font-size: 22px; }
.bw .bw-nl--wstawka .bw-nl__title { margin: 0; font-family: var(--sg-display); font-size: 1.1875rem; font-weight: 600; line-height: 1.3; color: var(--sg-text); }
.bw .bw-nl--wstawka .bw-nl__txt { margin: 4px 0 0; font-size: .9375rem; color: var(--sg-text-2); }
.bw-prose .bw-nl--wstawka a { font-weight: 600; }

/* Kolumna boczna */
.bw-nl--boczny { padding: 18px; border-radius: 16px; border: 1px solid var(--sg-line-2); background: var(--sg-surface-2); }
.bw-nl--boczny .bw-nl__title { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-weight: 700; }
.bw-nl--boczny .bw-nl__txt { margin: 0 0 12px; font-size: .875rem; color: var(--sg-text-2); }
.bw-nl--boczny .bw-nl__row { flex-direction: column; }

/* ═══════════════ STRONA AUTORA ═══════════════ */
.bw-profile { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.bw-profile__img { width: 160px; height: 160px; font-size: 3rem; border-radius: 28%; }
.bw-profile__role { margin: 12px 0 0; font-weight: 600; color: var(--sg-accent-text); }
.bw-profile__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
@media (max-width: 640px) { .bw-profile { grid-template-columns: minmax(0, 1fr); } .bw-profile__img { width: 112px; height: 112px; font-size: 2.2rem; } }
.bw-about__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.bw-about__label { margin: 28px 0 10px; font-family: var(--sg-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sg-text-3); }
.bw-about__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bw-about__chips li { padding: 7px 12px; border-radius: 10px; border: 1px solid var(--sg-line-2); background: var(--sg-surface); font-size: .875rem; font-weight: 600; color: var(--sg-text); }
.bw-about__method { padding: clamp(22px, 3vw, 30px); border-radius: 20px; background: #0a101c; color: #e9eef6; }
.bw-about__method h2 { margin: 0 0 16px; font-family: var(--sg-display); font-size: 1.375rem; font-weight: 600; color: #fff; }
.bw-about__method ol { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: bw-m; }
.bw-about__method li { position: relative; padding-left: 40px; font-size: .9375rem; line-height: 1.6; color: #a8b3c6; counter-increment: bw-m; }
.bw-about__method li::before { content: counter(bw-m, decimal-leading-zero); position: absolute; left: 0; top: 0; font-family: var(--sg-mono); font-size: .8125rem; color: #8ff0d9; }
.bw-about__method b { color: #fff; }
@media (max-width: 900px) { .bw-about__grid { grid-template-columns: minmax(0, 1fr); } }

/* ═══════════════ STRONA NEWSLETTERA (stany) ═══════════════ */
.bw-nlstate { max-width: 720px; margin-inline: auto; text-align: center; }
.bw-nlstate__ico { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 22px; border-radius: 20px; background: var(--sg-accent-soft); color: var(--sg-accent); font-size: 32px; box-shadow: inset 0 0 0 1px var(--sg-accent-line); }
.bw-nlstate .bw-hero__lead { margin-inline: auto; }
.bw-nlstate__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.bw-nlstate__actions form { margin: 0; }

/* ═══════════════ SEKCJE LISTY — odstępy ═══════════════ */
.bw-start, .bw-related { padding-bottom: clamp(56px, 7vw, 96px); }
.bw-problems { background-color: var(--sg-bg-2); }
.bw-kat-cta { padding-top: 0; }
.bw-kat-cta .bw-cta { margin-top: 0; }

/* ═══════════════ TELEFON ═══════════════ */
@media (max-width: 1023.98px) {
    .bw-hero__grid { grid-template-columns: minmax(0, 1fr); }
    .bw-hero__visual { max-width: 560px; width: 100%; margin: 12px auto 26px; }
    .bw-scene { margin-inline: auto; }
}
@media (max-width: 640px) {
    .bw-hero__stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .bw-hero__stats li:last-child { grid-column: 1 / -1; }
    .bw-search { padding-left: 42px; }
    .bw-search .sg-btn { padding: 0 .9em; }
    .bw-art__meta { gap: 16px; }
    .bw-art__facts { gap: 12px 22px; }
    .bw-art__plan::after { width: 70vw; opacity: .28; }
    .bw-tldr { padding: 18px 18px 16px 20px; }
    .bw-uwaga { padding: 16px 16px 16px 50px; }
    .bw-uwaga::before { left: 16px; top: 18px; width: 20px; height: 20px; }
    .bw-kroki > li { padding-left: 54px; }
    .bw-kroki > li::before { width: 38px; height: 38px; border-radius: 10px; }
    .bw-kroki > li::after { left: 18px; top: 44px; }
    .bw-faq__a { padding-right: 4px; }
    .bw-card--duza { min-height: 320px; }
}

/* ═══════════════ OGRANICZ RUCH ═══════════════ */
@media (prefers-reduced-motion: reduce) {
    .bw-crane, .bw-crane__done, .bw-crane__trolley { transition: none; }
    .bw-card, .bw-next__link, .bw-card__go { transition: none; }
    .bw-card:hover, .bw-next__link:hover { transform: none; }
    .bw-scene__gl { display: none; }
}

/* ═══════════════ WYDRUK ═══════════════ */
@media print {
    body.dcp-blog { background: #fff; color: #000; }
    .bw .sg-top, .bw-crane, .bw-art__side, .bw-toc-m, .bw-cta, .bw-nl, .bw-share, .bw-related, .sg-footer, .sg-float, .sg-qm, #kontakt, .bw-art__plan { display: none !important; }
    .bw-art__head { padding: 0 0 16px; background: #fff; }
    .bw-art__head *, .bw-art__title { color: #000 !important; }
    .bw-art__body { padding: 16px 0; }
    .bw-prose a::after { content: " (" attr(href) ")"; font-weight: 400; font-size: .8em; color: #555; overflow-wrap: anywhere; }
}
