/* Galeria STREFA 89 — style izolowane od reszty strony */
.s89-gallery { --s89-green:#0b342d; --s89-copper:#b87333; --s89-cream:#fbfaf5; width:100%; max-width:660px; font:inherit; }
.s89-gallery *, .s89-gallery *::before, .s89-gallery *::after { box-sizing:border-box; }
.s89-gallery__main { position:relative; display:block; width:100%; padding:0; overflow:hidden; aspect-ratio:1.12/1; border:1px solid #e8e8df; border-radius:16px; background:#fff; cursor:zoom-in; }
.s89-gallery__hero { display:block; width:100%; height:100%; object-fit:contain; transition:transform .22s ease; }
.s89-gallery__main:hover .s89-gallery__hero { transform:scale(1.035); }
.s89-gallery__counter { position:absolute; left:17px; top:16px; z-index:2; padding:8px 12px; border-radius:9px; background:var(--s89-green); color:#fff; font-size:12px; letter-spacing:.08em; font-weight:700; }
.s89-gallery__hint { position:absolute; right:16px; bottom:16px; padding:9px 12px; border-radius:8px; background:#fffc; color:var(--s89-green); font-size:12px; font-weight:650; }
.s89-gallery__thumbnails { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:13px; }
.s89-gallery__thumb { width:100%; aspect-ratio:1.6/1; overflow:hidden; padding:4px; border:2px solid transparent; border-radius:11px; background:#fff; box-shadow:0 0 0 1px #e6e6dd inset; cursor:pointer; transition:border-color .15s ease,transform .15s ease; }
.s89-gallery__thumb:hover { transform:translateY(-2px); }
.s89-gallery__thumb.is-active { border-color:var(--s89-copper); }
.s89-gallery__thumb img { width:100%; height:100%; object-fit:contain; display:block; }
.s89-gallery__dialog { position:fixed; inset:0; max-width:min(1000px,95vw); max-height:95vh; width:fit-content; margin:auto; padding:42px 62px 52px; border:0; border-radius:20px; background:#fff; box-shadow:0 20px 80px #0006; overflow:visible; }
.s89-gallery__dialog::backdrop { background:#041a16dc; }
.s89-gallery__enlarged { display:block; max-width:min(75vw,820px); max-height:75vh; width:auto; height:auto; object-fit:contain; }
.s89-gallery__close,.s89-gallery__prev,.s89-gallery__next { position:absolute; display:grid; place-items:center; border:0; border-radius:50%; background:var(--s89-green); color:#fff; cursor:pointer; font-family:Arial,sans-serif; }
.s89-gallery__close { top:-15px; right:-15px; width:42px; height:42px; font-size:28px; }
.s89-gallery__prev,.s89-gallery__next { top:50%; transform:translateY(-50%); width:42px; height:42px; font-size:34px; }
.s89-gallery__prev {left:12px}.s89-gallery__next {right:12px}
.s89-gallery__dialog-counter { position:absolute; left:0; right:0; bottom:15px; text-align:center; font-size:13px; font-weight:600; color:var(--s89-green); }
.s89-gallery__main:focus-visible,.s89-gallery__thumb:focus-visible,.s89-gallery__dialog button:focus-visible { outline:3px solid var(--s89-copper); outline-offset:3px; }
@media(max-width:640px){.s89-gallery__main{aspect-ratio:1/1;border-radius:12px}.s89-gallery__thumbnails{gap:8px}.s89-gallery__thumb{aspect-ratio:1.25/1}.s89-gallery__hint{font-size:11px;right:10px;bottom:10px}.s89-gallery__dialog{padding:28px 34px 42px}.s89-gallery__prev,.s89-gallery__next{width:31px;height:31px;font-size:24px}.s89-gallery__prev{left:2px}.s89-gallery__next{right:2px}.s89-gallery__enlarged{max-width:79vw}}
@media(prefers-reduced-motion:reduce){.s89-gallery__hero,.s89-gallery__thumb{transition:none}}

.product-hero-grid.has-gallery { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(24px,5vw,68px); align-items:start; margin-top:40px; }
.has-gallery .product-summary { min-width:0; }
.has-gallery h1 { font-size:clamp(48px,5vw,76px); margin-top:12px; }
.has-gallery .product-model { font-size:clamp(24px,3vw,34px); margin-bottom:20px; }
.has-gallery .product-price-card { margin-top:28px; padding:24px; }
.has-gallery .product-price-card strong { font-size:56px; }
.has-gallery .s89-gallery { color:#0b342d; }
@media(max-width:800px) { .product-hero-grid.has-gallery { grid-template-columns:1fr; } .has-gallery .s89-gallery { max-width:none; } .has-gallery h1 { font-size:52px; } }
