/* =====================================================================
   Dema 3D: osiedle domów (.bn-os) i wnętrze z wyborem wykończenia (.bn-wn)
   Wspólne: szklane panele na scenie, przyciski 44 px, ruch tylko transform/opacity dekoracji,
   wszystko wyłączane przy prefers-reduced-motion.
   ===================================================================== */
.bn-os, .bn-wn { --bn-rubin: #a0204a; --bn-atrament: #0e1118; --bn-szampan: #d9bc8c; --bn-szklo: rgba(255, 255, 255, .78); font-size: 15px; color: var(--bn-grafit, #2e3036); }
.bn-os button, .bn-wn button { font: inherit; }
.bn-os__ladowanie { position: absolute; inset: 0; display: grid; place-content: center; gap: 12px; justify-items: center; color: #5e5b57; font-size: 14px; }
.bn-os.is-bez3d .bn-os__scena, .bn-wn.is-bez3d .bn-wn__scena { display: none; }

/* ---------- osiedle ---------- */
.bn-os { display: grid; gap: 16px; }
.bn-os__pasek { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.bn-os__tryby { display: inline-flex; padding: 5px; gap: 4px; border-radius: 999px; background: #fff; border: 1px solid var(--bn-linia, #e6dfd3); box-shadow: 0 10px 30px -18px rgba(14, 17, 24, .35); }
.bn-os__tryby button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--bn-grafit, #2e3036); font-weight: 650; cursor: pointer; transition: background-color .3s ease, color .3s ease; }
.bn-os__tryby button[aria-pressed="true"] { background: var(--bn-atrament); color: #fff; }
.bn-os__tryby button:hover:not([aria-pressed="true"]) { background: #f4efe7; }
.bn-os__legenda { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; }
.bn-os__scena { position: relative; height: min(78vh, 780px); min-height: 540px; border-radius: 26px; overflow: hidden; background: linear-gradient(180deg, #dfe7ef 0%, #f1ece4 66%); border: 1px solid rgba(14, 17, 24, .08); box-shadow: 0 50px 90px -60px rgba(14, 17, 24, .55); isolation: isolate; }
.bn-os__3d, .bn-wn__3d { position: absolute; inset: 0; }
.bn-os__plotno, .bn-wn__plotno { display: block; width: 100% !important; height: 100% !important; touch-action: none; }
.bn-os__piny { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.bn-os__pin { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 0; padding: 4px; border-radius: 999px; background: rgba(14, 17, 24, .78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; pointer-events: auto; cursor: pointer; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .5); transition: opacity .3s ease, background-color .3s ease; will-change: transform; }
.bn-os__pin b { display: grid; place-items: center; min-width: 22px; height: 22px; border-radius: 50%; background: #5fae78; color: #0e1118; font-size: 11.5px; }
.bn-os__pin[data-st="rezerwacja"] b { background: #dcae58; }
.bn-os__pin[data-st="sprzedane"] b { background: #c9c3bb; }
.bn-os__pin em { font-style: normal; max-width: 0; overflow: hidden; opacity: 0; transition: max-width .35s ease, opacity .3s ease, padding .35s ease; }
.bn-os__pin:hover em, .bn-os__pin.is-wybrany em { max-width: 140px; opacity: 1; padding: 0 8px 0 7px; }
.bn-os__pin.is-wybrany { background: var(--bn-rubin); }
.bn-os__pin.is-wygaszony { opacity: .35; }
.bn-os[data-tryb="slonce"] .bn-os__pin:not(.is-wybrany) { opacity: .55; }
.bn-os__ulica { position: absolute; left: 0; top: 0; padding: 3px 10px; border-radius: 999px; background: rgba(14, 17, 24, .66); color: #fff; font-size: 11.5px; font-weight: 600; letter-spacing: .03em; }
.bn-os__podpowiedz, .bn-wn__podpowiedz { position: absolute; z-index: 3; left: 50%; top: 16px; transform: translateX(-50%); margin: 0; padding: 8px 16px; border-radius: 999px; background: rgba(14, 17, 24, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font-size: 13px; white-space: nowrap; transition: opacity .5s ease; pointer-events: none; }
.bn-os.is-uzywany .bn-os__podpowiedz, .bn-wn.is-uzywany .bn-wn__podpowiedz { opacity: 0; }
.bn-os__narzedzia { position: absolute; z-index: 3; left: 16px; bottom: 16px; display: flex; gap: 4px; padding: 6px; border-radius: 999px; background: var(--bn-szklo); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border: 1px solid rgba(255, 255, 255, .85); box-shadow: 0 14px 34px -16px rgba(14, 17, 24, .45); }
.bn-os__narzedzia button { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #2e3036; cursor: pointer; transition: background-color .25s ease, color .25s ease; }
.bn-os__narzedzia button:hover { background: #fff; color: var(--bn-rubin); }
.bn-os__narzedzia button[aria-pressed="true"] { background: var(--bn-atrament); color: #fff; }
.bn-os__narzedzia svg, .bn-os__graj svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bn-os.is-noc .bn-os__ulica { background: rgba(255, 255, 255, .2); }
/* karta domu */
.bn-os__karta { position: absolute; z-index: 4; top: 16px; right: 16px; bottom: 16px; width: min(380px, calc(100% - 32px)); overflow: auto; padding: 22px 22px 20px; border-radius: 22px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 30px 60px -30px rgba(14, 17, 24, .5); animation: bn-wjazd .5s cubic-bezier(.2, .8, .2, 1); }
.bn-os__karta[hidden] { display: none; }
@keyframes bn-wjazd { from { transform: translateX(24px); } to { transform: none; } }
.bn-os__zamknij { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #f4efe7; display: grid; place-items: center; cursor: pointer; }
.bn-os__zamknij svg { width: 18px; height: 18px; stroke: #2e3036; stroke-width: 1.8; fill: none; stroke-linecap: round; }
.bn-os__k-nad { margin: 0 52px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7a5c35; }
.bn-os__k-tytul { margin: 6px 0 8px; font-family: var(--bn-display, inherit); font-stretch: 112%; font-weight: 600; font-size: 34px; line-height: 1; letter-spacing: -.03em; color: #0e1118; }
.bn-os__k-status { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 5px 12px; border-radius: 999px; background: rgba(95, 174, 120, .14); font-size: 12.5px; font-weight: 700; color: #2c6b40; }
.bn-os__k-status span { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.bn-os__k-status[data-st="rezerwacja"] { background: rgba(220, 174, 88, .18); color: #7a5418; }
.bn-os__k-status[data-st="sprzedane"] { background: #efebe5; color: #5e5b57; }
.bn-os__k-cena { margin: 14px 0 0; font-family: var(--bn-display, inherit); font-stretch: 112%; font-weight: 600; font-size: 26px; letter-spacing: -.02em; color: #0e1118; }
.bn-os__k-cena small { display: block; margin-top: 2px; font-family: var(--bn-tekst, inherit); font-stretch: normal; font-size: 13px; font-weight: 500; color: #5e5b57; letter-spacing: 0; }
.bn-os__k-fakty { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid #ece6dc; }
.bn-os__k-fakty div { margin: 0; }
.bn-os__k-fakty dt { font-size: 12px; color: #5e5b57; }
.bn-os__k-fakty dd { margin: 2px 0 0; font-weight: 700; color: #0e1118; }
.bn-os__k-slonce { margin-top: 16px; padding: 14px; border-radius: 16px; background: linear-gradient(160deg, #fff7ea, #f6efe4); border: 1px solid #f0e3cc; }
.bn-os__k-sekcja { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7a5c35; }
.bn-os__k-dzis { margin: 6px 0 8px; font-size: 14px; }
.bn-os__k-dzis strong { font-family: var(--bn-display, inherit); font-stretch: 112%; font-size: 18px; color: #0e1118; }
.bn-os__wykres { display: block; width: 100%; height: 74px; }
.bn-os__wykres .bn-os__pole { fill: rgba(217, 168, 78, .3); }
.bn-os__wykres .bn-os__linia { fill: none; stroke: #c48a2c; stroke-width: 2; vector-effect: non-scaling-stroke; }
.bn-os__wykres .bn-os__siatka { stroke: rgba(14, 17, 24, .12); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bn-os__wykres .bn-os__teraz { stroke: var(--bn-rubin); stroke-width: 2; vector-effect: non-scaling-stroke; }
.bn-os__wykres text { font-size: 10px; fill: #5e5b57; }
.bn-os__k-dni { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bn-os__k-dni li { padding: 8px; border-radius: 12px; background: #fff; text-align: center; font-size: 12px; color: #5e5b57; }
.bn-os__k-dni strong { display: block; margin-top: 2px; font-size: 14px; color: #0e1118; }
.bn-os__k-uwaga { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: #5e5b57; }
.bn-os__k-akcje { display: grid; gap: 8px; margin-top: 16px; }
.bn-os__k-btn, .bn-wn__btn { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 12px 22px; border-radius: 999px; background: linear-gradient(135deg, #b4295a 0%, #a0204a 48%, #7a1636 100%); color: #fff !important; font-weight: 700; text-decoration: none; box-shadow: 0 14px 30px -16px rgba(160, 32, 74, .9); transition: transform .3s ease, box-shadow .3s ease; }
.bn-os__k-btn:hover, .bn-wn__btn:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -16px rgba(160, 32, 74, .95); }
.bn-os__k-link, .bn-wn__link { min-height: 44px; padding: 8px 12px; border: 0; background: none; color: #7a1636; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
/* sterowanie pod sceną */
.bn-os__sterowanie { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 14px 16px; border-radius: 20px; background: #fff; border: 1px solid var(--bn-linia, #e6dfd3); }
.bn-os__sterowanie[hidden] { display: none; }
.bn-os__grupa { display: flex; flex-wrap: wrap; gap: 6px; }
.bn-os__chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--bn-linia, #e6dfd3); background: #faf8f4; color: #2e3036; font-weight: 600; cursor: pointer; transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.bn-os__chip[aria-pressed="true"], .bn-os__chip[aria-checked="true"] { background: var(--bn-atrament); border-color: var(--bn-atrament); color: #fff; }
.bn-os__przelacznik { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 600; }
.bn-os__przelacznik input { width: 20px; height: 20px; accent-color: var(--bn-rubin); }
.bn-os__wynik { margin: 0 0 0 auto; font-size: 14px; }
.bn-os__graj { width: 48px; height: 48px; padding: 0; flex: none; border: 0; border-radius: 50%; background: var(--bn-rubin); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -12px rgba(160, 32, 74, .9); }
.bn-os__graj svg { fill: currentColor; stroke: none; }
.bn-os__graj[aria-pressed="true"] svg { clip-path: polygon(0 0, 35% 0, 35% 100%, 0 100%, 0 0, 65% 0, 100% 0, 100% 100%, 65% 100%, 65% 0); }
.bn-os__kw { display: grid; grid-template-columns: auto minmax(160px, 1fr) auto; align-items: center; gap: 12px; flex: 1 1 380px; font-weight: 600; }
.bn-os__kw output, .bn-os__czas output { font-family: var(--bn-display, inherit); font-stretch: 112%; font-weight: 600; font-size: 17px; color: #0e1118; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bn-os__czas { display: grid; grid-template-columns: 48px minmax(160px, 1fr) 54px; align-items: center; gap: 12px; flex: 1 1 360px; }
.bn-os__sterowanie input[type="range"], .bn-wn input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin: 14px 0; padding: 0; border: 0; border-radius: 999px; background: #e9e3d9; }
.bn-os__sterowanie input[type="range"]::-webkit-slider-thumb, .bn-wn input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--bn-rubin); box-shadow: 0 4px 12px rgba(14, 17, 24, .2); cursor: pointer; }
.bn-os__sterowanie input[type="range"]::-moz-range-thumb, .bn-wn input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--bn-rubin); }
.bn-os__sterowanie input[type="range"]:focus-visible, .bn-wn input[type="range"]:focus-visible { outline: 3px solid var(--bn-rubin); outline-offset: 4px; }
.bn-os__kw-stan, .bn-os__sl-opis { margin: 0; flex: 1 1 260px; font-size: 14px; color: #5e5b57; }
.bn-os__etapy { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: #5e5b57; }
.bn-os__etapy li::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; background: #8b7257; }
.bn-os__etapy li[data-etap="1"]::before { background: #a9a59e; }
.bn-os__etapy li[data-etap="2"]::before, .bn-os__etapy li[data-etap="3"]::before { background: #bdb6aa; }
.bn-os__etapy li[data-etap="3"]::before { box-shadow: inset 0 4px 0 #34373c; }
.bn-os__etapy li[data-etap="4"]::before { background: #8fae6b; }
/* tabela domów */
.bn-os__lista { overflow-x: auto; border-radius: 20px; background: #fff; border: 1px solid var(--bn-linia, #e6dfd3); }
.bn-os__tabela { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.bn-os__tabela caption { text-align: left; padding: 18px 18px 8px; font-weight: 700; color: #0e1118; }
.bn-os__tabela th, .bn-os__tabela td { padding: 10px 14px; border-top: 1px solid #f0ebe3; text-align: left; white-space: nowrap; }
.bn-os__tabela thead th { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5e5b57; border-top: 0; }
.bn-os__tabela tr.is-wybrany { background: #fbf3f6; }
.bn-os__pokaz { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--bn-linia, #e6dfd3); background: #fff; color: #7a1636; font-weight: 700; cursor: pointer; }
.bn-os__pokaz:hover { background: #7a1636; color: #fff; border-color: #7a1636; }

/* ---------- wnętrze ---------- */
.bn-wn { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 18px; align-items: start; }
.bn-wn__scena { position: sticky; top: 110px; height: min(78vh, 760px); min-height: 540px; border-radius: 26px; overflow: hidden; background: #e9e4dc; border: 1px solid rgba(14, 17, 24, .08); box-shadow: 0 50px 90px -60px rgba(14, 17, 24, .55); isolation: isolate; }
.bn-wn__3d::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: calc(var(--bn-bladz, 0) * .16); pointer-events: none; }
.bn-wn__widoki, .bn-wn__pora { position: absolute; z-index: 3; display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--bn-szklo); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border: 1px solid rgba(255, 255, 255, .85); box-shadow: 0 14px 34px -16px rgba(14, 17, 24, .45); }
.bn-wn__widoki { left: 16px; bottom: 16px; }
.bn-wn__pora { right: 16px; bottom: 16px; }
.bn-wn__widoki button, .bn-wn__pora button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: #2e3036; font-weight: 650; font-size: 14px; cursor: pointer; transition: background-color .25s ease, color .25s ease; }
.bn-wn__widoki button[aria-pressed="true"], .bn-wn__pora button[aria-checked="true"] { background: var(--bn-atrament); color: #fff; }
.bn-wn__widoki button:hover:not([aria-pressed="true"]), .bn-wn__pora button:hover:not([aria-checked="true"]) { background: #fff; }
.bn-wn__panel { margin: 0; padding: 24px; border-radius: 26px; background: #fff; border: 1px solid var(--bn-linia, #e6dfd3); box-shadow: 0 30px 70px -50px rgba(14, 17, 24, .45); }
.bn-wn__nad { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7a5c35; }
.bn-wn__tytul { margin: 6px 0 16px; font-family: var(--bn-display, inherit); font-stretch: 112%; font-weight: 600; font-size: 26px; letter-spacing: -.025em; color: #0e1118; }
.bn-wn fieldset { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.bn-wn legend { display: flex; justify-content: space-between; gap: 10px; width: 100%; margin: 0 0 8px; padding: 0; font-size: 13px; font-weight: 700; color: #0e1118; }
.bn-wn__wybrane { font-weight: 500; color: #5e5b57; }
.bn-wn__pakiety { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bn-wn__pakiety legend { grid-column: 1 / -1; }
.bn-wn__pakiet { position: relative; cursor: pointer; }
.bn-wn__pakiet input, .bn-wn__probka input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bn-wn__pakiet span { display: grid; gap: 2px; min-height: 64px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--bn-linia, #e6dfd3); background: #faf8f4; transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease; }
.bn-wn__pakiet strong { font-size: 14px; color: #0e1118; }
.bn-wn__pakiet small { font-size: 11.5px; line-height: 1.3; color: #5e5b57; }
.bn-wn__pakiet input:checked + span { border-color: var(--bn-rubin); background: #fbf3f6; box-shadow: inset 0 0 0 1px var(--bn-rubin); }
.bn-wn__pakiet input:focus-visible + span, .bn-wn__probka input:focus-visible + .bn-wn__kolor { outline: 3px solid var(--bn-rubin); outline-offset: 3px; }
.bn-wn__probki { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bn-wn__probka { display: grid; justify-items: center; gap: 6px; cursor: pointer; text-align: center; }
.bn-wn__kolor { width: 46px; height: 46px; border-radius: 50%; background: var(--k); border: 1px solid rgba(14, 17, 24, .12); box-shadow: inset 0 -6px 12px rgba(0, 0, 0, .12), 0 6px 14px -8px rgba(14, 17, 24, .5); transition: transform .25s ease, box-shadow .25s ease; }
.bn-wn__probka input:checked + .bn-wn__kolor { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--bn-rubin), inset 0 -6px 12px rgba(0, 0, 0, .12); transform: scale(1.04); }
.bn-wn__nazwa { font-size: 11.5px; line-height: 1.25; color: #2e3036; }
.bn-wn__nazwa small { display: block; color: #5e5b57; }
.bn-wn__suma { margin-top: 6px; padding: 16px; border-radius: 18px; background: var(--bn-atrament); color: rgba(255, 255, 255, .82); }
.bn-wn__suma dl { margin: 0; display: grid; gap: 8px; }
.bn-wn__suma dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0; }
.bn-wn__suma dt { font-size: 13.5px; }
.bn-wn__suma dt small { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .7); }
.bn-wn__suma dd { margin: 0; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bn-wn__razem { padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .14); }
.bn-wn__razem dd { font-family: var(--bn-display, inherit); font-stretch: 112%; font-weight: 600; font-size: 24px; letter-spacing: -.02em; color: #f4e4c4; }
.bn-wn__rata { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .14); }
.bn-wn__rata label { display: block; font-size: 13px; }
.bn-wn__rata label span { display: flex; justify-content: space-between; }
.bn-wn__rata output { color: #fff; font-weight: 700; }
.bn-wn__rata input[type="range"] { background: rgba(255, 255, 255, .2); margin: 10px 0; }
.bn-wn__rata-wynik { margin: 6px 0 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 10px; font-size: 13.5px; }
.bn-wn__rata-wynik strong { font-family: var(--bn-display, inherit); font-stretch: 112%; font-weight: 600; font-size: 22px; color: #fff; font-variant-numeric: tabular-nums; }
.bn-wn__rata-wynik small { flex-basis: 100%; font-size: 11.5px; color: rgba(255, 255, 255, .7); }
.bn-wn__akcje { display: grid; gap: 6px; margin-top: 14px; }
.bn-wn__info { margin: 0; font-size: 13px; color: #2c6b40; min-height: 1em; }

@media (max-width: 1100px) {
	.bn-wn { grid-template-columns: minmax(0, 1fr); }
	.bn-wn__scena { position: relative; top: auto; height: 66vh; min-height: 460px; }
}
@media (max-width: 720px) {
	.bn-os__tryby { width: 100%; }
	.bn-os__tryby button { font-size: 14px; }
	.bn-os__scena { height: 64vh; min-height: 440px; border-radius: 20px; }
	.bn-os__podpowiedz, .bn-wn__podpowiedz { top: auto; bottom: 74px; left: 12px; transform: none; white-space: normal; max-width: calc(100% - 24px); font-size: 12px; }
	.bn-os__narzedzia { left: 10px; bottom: 10px; padding: 4px; gap: 2px; }
	.bn-os__narzedzia button { width: 40px; height: 40px; }
	.bn-os__karta { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 60%; padding: 18px; border-radius: 20px; animation-name: bn-wjazd-dol; }
	@keyframes bn-wjazd-dol { from { transform: translateY(30px); } to { transform: none; } }
	.bn-os__k-tytul { font-size: 28px; }
	.bn-os__wynik { margin-left: 0; }
	.bn-os__kw { grid-template-columns: 1fr auto; }
	.bn-os__kw > span { grid-column: 1 / -1; }
	.bn-os__kw input { grid-column: 1 / 2; }
	.bn-wn__scena { height: 58vh; min-height: 420px; border-radius: 20px; }
	.bn-os__dl { display: none; }
	.bn-os__tryby { overflow: visible; }
	.bn-os__tryby button { flex: 1 1 0; padding: 0 8px; }
	.bn-wn__widoki { left: 8px; right: 8px; bottom: 62px; }
	.bn-wn__widoki button { flex: 1 1 auto; }
	.bn-wn__widoki button, .bn-wn__pora button { padding: 0 9px; font-size: 12.5px; white-space: nowrap; }
	.bn-wn__pora { left: 8px; right: auto; bottom: 8px; }
	.bn-wn__panel { padding: 18px; border-radius: 20px; }
	.bn-wn__probki { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
	.bn-os__karta { animation: none; }
	.bn-os__k-btn:hover, .bn-wn__btn:hover { transform: none; }
	.bn-wn__probka input:checked + .bn-wn__kolor { transform: none; }
}

/* ---------- poprawki po przeglądzie (telefon): przyciski trybów, pakiety, tabela domów ---------- */
.bn-wn__pakiet small { overflow-wrap: normal; word-break: normal; hyphens: none; }
.bn-os__tryby button, .bn-wn__pakiet strong { white-space: nowrap; overflow-wrap: normal; word-break: normal; hyphens: none; }
@media (max-width: 720px) {
	.bn-os__tryby { gap: 2px; padding: 4px; }
	.bn-os__tryby button { flex: 1 1 auto; padding: 0 10px; font-size: 13.5px; }
	.bn-wn__pakiety { gap: 5px; }
	.bn-wn__pakiet span { padding: 10px 8px; min-height: 60px; }
	.bn-wn__pakiet strong { font-size: 13px; }
	.bn-wn__pakiet small { font-size: 11px; }
	/* tabela domów jako lista wierszy: dom i status, parametry, cena i przycisk */
	.bn-os__tabela { min-width: 0; font-size: 13.5px; }
	.bn-os__tabela caption { padding: 16px 16px 10px; line-height: 1.35; }
	.bn-os__tabela thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.bn-os__tabela tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 12px 16px; border-top: 1px solid #f0ebe3; }
	.bn-os__tabela tbody th, .bn-os__tabela tbody td { padding: 0; border: 0; white-space: nowrap; }
	.bn-os__tabela tbody th { order: 1; flex: 1 0 calc(100% - 140px); font-size: 15px; }
	.bn-os__tabela tbody td:nth-child(7) { order: 2; margin-left: auto; }
	.bn-os__tabela tbody td:nth-child(2) { order: 3; color: #5e5b57; }
	.bn-os__tabela tbody td:nth-child(3) { order: 4; color: #5e5b57; }
	.bn-os__tabela tbody td:nth-child(4) { order: 5; color: #5e5b57; }
	.bn-os__tabela tbody td:nth-child(4)::before { content: "działka "; color: #8a847c; }
	.bn-os__tabela tbody td:nth-child(5) { display: none; }
	.bn-os__tabela tbody tr::after { content: ""; order: 6; flex: 0 0 100%; height: 0; }
	.bn-os__tabela tbody td:nth-child(6) { order: 7; font-weight: 700; color: #0e1118; }
	.bn-os__tabela tbody td:nth-child(8) { order: 8; margin-left: auto; }
	.bn-os__pokaz { min-height: 38px; padding: 0 16px; }
}

/* ---------- poprawka po audycie: ukryty nagłówek tabeli domów na telefonie nie wystaje poza ekran ---------- */
@media (max-width: 720px) {
	.bn-os__tabela thead th { font-size: 1px; line-height: 1px; padding: 0; border: 0; letter-spacing: 0; }
}

/* ---------- telefon: makieta osiedla i wnętrze od krawędzi do krawędzi (15.11.2026) ---------- */
@media (max-width: 720px) {
	.bn-os, .bn-wn { gap: 12px; }
	.bn-os__pasek, .bn-os__legenda { padding: 0 12px; }
	.bn-os__scena, .bn-wn__scena { border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; height: 70vh; min-height: 460px; max-height: 680px; }
	.bn-os__sterowanie, .bn-os__lista, .bn-wn__panel { margin-left: 12px; margin-right: 12px; }
	.bn-wn__panel { padding: 20px 16px; border-radius: 18px; }
	/* na telefonie przy domu tylko numer (cena jest w karcie domu), mniej nachodzących na siebie znaczników */
	.bn-os__pin { padding: 1px; z-index: 2; }
	.bn-os__pin em { display: none; }
	.bn-os__pin b { min-width: 18px; height: 18px; font-size: 10.5px; }
	/* nazwy ulic pod znacznikami domów, żeby nie zasłaniały numerów */
	.bn-os__ulica { font-size: 10.5px; padding: 2px 8px; z-index: 1; }
	.bn-os__narzedzia { left: 50%; transform: translateX(-50%); }
}
