:root {
  --blue: #0f73b7;
  --dark-blue: #073a62;
  --red: #d91f28;
  --dark: #121212;
  --muted: #606a73;
  --light: #f4f7fb;
  --white: #ffffff;
  --line: #e2e7ed;
  --shadow: 0 20px 55px rgba(5, 35, 55, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--dark);
  background: var(--white);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  background: rgba(255,255,255,.95);
  border-bottom: 4px solid #111;
  backdrop-filter: blur(10px);
}

.brand img { width: 210px; max-height: 60px; object-fit: contain; display: block; }
.nav { display: flex; gap: 38px; align-items: center; }
.nav a {
  color: #111;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  transition: color .2s ease;
}
.nav a:hover { color: var(--blue); }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; min-height: 88px; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 92vw);
  max-height: calc(100vh - 130px);
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 18px;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(15,115,183,.16);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(5,35,55,.22);
  overflow-y: auto;
  backdrop-filter: blur(14px);
}
.dropdown::before {
  content: '';
  position: absolute;
  top: -9px;
  left: 50%;
  width: 18px;
  height: 18px;
  transform: translateX(-50%) rotate(45deg);
  background: #fff;
  border-left: 1px solid rgba(15,115,183,.16);
  border-top: 1px solid rgba(15,115,183,.16);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: grid; }
.dropdown a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 11px 14px 11px 18px;
  text-align: left;
  font-size: 15px;
  font-weight: 800;
  border: 1px solid transparent;
  border-radius: 15px;
  color: var(--dark-blue);
  background: linear-gradient(135deg, #fff, #f7fbff);
}
.dropdown a::before {
  content: '';
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--red);
  flex: 0 0 auto;
}
.dropdown a:hover {
  background: linear-gradient(135deg, var(--blue), var(--dark-blue));
  color: #fff;
  border-color: rgba(255,255,255,.3);
}
.category-hero {
  min-height: 220px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 38px 8vw;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.category-hero .category-hero-sklep .category-hero-stal .category-hero-cnc .section-label { color: rgba(255,255,255,.88); margin-bottom: 10px; }
.category-hero h1, .category-hero-sklep h1, .category-hero-stal h1, .category-hero-cnc h1 { color: #fff; font-size: clamp(38px, 5vw, 68px); letter-spacing: -2px; line-height: .95; text-shadow: 0 6px 28px rgba(0,0,0,.35); }
.category-hero-content { max-width: 1500px; width: 100%; }
.category-content { max-width: 1500px; margin: 0 auto; }
.category-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.menu-btn { display: none; background: none; border: 0; font-size: 32px; }

.hero {
  min-height: calc(100vh - 88px);
  position: relative;
  display: flex;
  align-items: center;
  padding: 80px 8vw;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 50%, rgba(255,255,255,.12) 100%), url('assets/glowne/test.JPEG') center right/ 60% 120% no-repeat;
}
.hero::after {
  content: '';
  position: absolute;
  right: -130px;
  bottom: -130px;
  width: 430px;
  height: 430px;
  background: var(--blue);
  opacity: .18;
  border-radius: 50%;
}
.hero-content { position: relative; max-width: 780px; }
.eyebrow, .section-label {
  margin: 0 0 12px;
  color: var(--red);
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-size: clamp(68px, 11vw, 150px);
  line-height: .85;
  letter-spacing: -5px;
  color: var(--dark-blue);
}
.lead {
  max-width: 670px;
  margin: 28px 0 34px;
  font-size: 24px;
  line-height: 1.45;
  color: #26323c;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  font-weight: 900;
  cursor: pointer;
}
.btn.primary { color: #fff; background: var(--blue); }
.btn.secondary { color: var(--dark-blue); background: #fff; border: 2px solid var(--blue); }
.white-btn { background: #fff !important; color: var(--dark-blue) !important; }

.section { padding: 70px 8vw; }
.split, .two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
h2 { margin: 0 0 20px; font-size: clamp(34px, 5vw, 62px); letter-spacing: -2px; line-height: 1; }
p { font-size: 19px; line-height: 1.7; color: var(--muted); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow);
}
.image-card { padding: 0; overflow: hidden; }
.image-card img { width: 100%; height: 430px; object-fit: cover; display: block; }
.services { background: var(--light); }
.section-head { max-width: 820px; margin-bottom: 38px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.service-card span { display: block; color: var(--red); font-weight: 900; margin-bottom: 18px; }
h3 { margin: 0 0 14px; font-size: 25px; color: var(--dark-blue); }
.cta-box {
  margin: 80px 8vw;
  padding: 70px;
  background: linear-gradient(135deg, var(--dark-blue), var(--blue));
  color: #fff;
  border-radius: 34px;
}
.cta-box p, .cta-box .section-label { color: rgba(255,255,255,.88); }
.mini-section { border-bottom: 1px solid var(--line); }
.alt { background: var(--light); }
.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.checklist li {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  font-size: 20px;
  font-weight: 800;
  color: var(--dark-blue);
}
.checklist li::before { content: '✓'; color: var(--red); margin-right: 12px; }
.steel-box {
  min-height: 300px;
  padding: 32px;
  border-radius: 28px;
  background: #111;
  color: #fff;
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow);
}
.steel-box strong { color: #fff; font-size: 28px; margin-bottom: 8px; }
.steel-box span { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 14px 16px; font-size: 18px; }
.contact {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 40px;
  background: var(--light);
}
.contact-data {
  margin-top: 26px;
  padding: 26px;
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--line);
}
.contact-data p { margin: 6px 0; }
.contact-data a { color: var(--blue); font-weight: 800; text-decoration: none; }
.contact-form { display: grid; gap: 14px; }
input, textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  font: inherit;
}
footer { padding: 30px 8vw; background: #111; }
footer p { margin: 0; color: #fff; }

@media (max-width: 1100px) {
  .nav { gap: 22px; }
  .grid, .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact, .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .topbar { height: 78px; }
  .brand img { width: 160px; }
  .menu-btn { display: block; }
  .nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: white;
    border-bottom: 2px solid #111;
    padding: 16px 5vw;
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 14px 0; }
  .nav-link { min-height: auto; }
  .nav-item { width: 100%; }
  .dropdown {
    position: static;
    transform: none;
    width: 100%;
    max-height: 360px;
    display: grid;
    grid-template-columns: 1fr;
    box-shadow: none;
    border: 0;
    border-radius: 18px;
    padding: 10px;
    background: var(--light);
  }
  .dropdown::before { display: none; }
  .dropdown a { text-align: left; font-size: 15px; padding: 10px 12px; border: 0; }
  .hero { min-height: 720px; padding: 70px 6vw; align-items: flex-end; }
  .hero-bg { background: linear-gradient(0deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.84) 56%, rgba(255,255,255,.18) 100%), url('assets/tartak.webp') center/cover no-repeat; }
  h1 { letter-spacing: -3px; }
  .lead { font-size: 20px; }
  .section { padding: 70px 6vw; }
  .grid, .cards-3 { grid-template-columns: 1fr; }
  .cta-box { margin: 50px 6vw; padding: 44px 28px; }
}


.category-template {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.description-box,
.gallery-box {
  width: 100%;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(26px, 3vw, 44px);
  box-shadow: 0 16px 45px rgba(0,0,0,.08);
}
.description-box {
  min-height: 210px;
}
.description-box h3,
.gallery-box h3 {
  margin: 0 0 18px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -1px;
  text-align: center;
}
.description-box p {
  max-width: 1180px;
  font-size: 18px;
  line-height: 1.75;
}

.description-box ul {
    max-width: 1180px;
  font-size: 18px;
  line-height: 1.75;
  color: #606a73;
}
.description-box p:last-child { margin-bottom: 0; }
.gallery-box {
  min-height: 330px;
}
.photo-gallery {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
}
.photo-gallery figure {
  display: inline-flex;
  flex-direction: column;
  flex: 0 0 auto;
  max-width: 100%;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #f0f3f6;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0,0,0,.07);
}
.photo-gallery img {
  display: block;
  height: 175px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  background: #f0f3f6;
}
.photo-gallery figcaption {
  max-width: 260px;
  padding: 10px 12px;
  background: #fff;
  font-size: 14px;
  color: #333;
}
@media (max-width: 760px) {
  .description-box, .gallery-box { border-radius: 20px; }
  .photo-gallery { display: grid; grid-template-columns: 1fr 1fr; }
  .photo-gallery figure { width: 100%; }
  .photo-gallery img { width: 100%; height: 135px; object-fit: contain; }
  .photo-gallery figcaption { max-width: none; }
}
@media (max-width: 480px) {
  .photo-gallery { grid-template-columns: 1fr; }
  .photo-gallery img { height: auto; max-height: none; }
}


.product-links {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.product-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 132px;
  padding: 20px;
  overflow: hidden;
  text-decoration: none;
  border-radius: 24px;
  background: var(--tile-img, url('assets/tartak.webp') center/cover no-repeat);
  box-shadow: 0 14px 34px rgba(5,35,55,.12);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-tile::after {
  content: '→';
  position: absolute;
  top: 16px;
  right: 18px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  opacity: .82;
}
.product-tile span {
  color: var( --text-color, #fff);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
  text-shadow: 0 2px 14px rgba(0,0,0,.25);
}
.product-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(5,35,55,.20);
}
@media (max-width: 1100px) { .product-links { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .category-hero { min-height: 180px; padding: 32px 6vw; }
  .product-links { grid-template-columns: repeat(2, 1fr); }
  .product-tile { min-height: 112px; border-radius: 20px; }
}
@media (max-width: 480px) { .product-links { grid-template-columns: 1fr; } }


.category-toggle {
  margin: 8px auto 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(5,35,55,.16);
  transition: transform .18s ease, box-shadow .18s ease;
}
.category-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(5,35,55,.24);
}
.category-toggle::after {
  content: '⌄';
  font-size: 18px;
  transition: transform .2s ease;
}
.category-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
.category-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height .45s ease, opacity .25s ease, transform .25s ease;
}
.category-panel.open {
  max-height: 2400px;
  opacity: 1;
  transform: translateY(0);
}
.product-tile {
  isolation: isolate;
}
.product-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.04);
  z-index: -1;
}


.nav-item { padding: 0 4px; }
.has-dropdown { display: flex; align-items: center; min-height: 88px; }
.has-dropdown::after {
  content: '';
  position: absolute;
  left: -20px;
  right: -20px;
  top: 70px;
  height: 28px;
}
.simple-dropdown .dropdown {
  width: min(340px, 90vw);
  grid-template-columns: 1fr;
}
.heading-link { color: inherit; text-decoration: none; }
.heading-link:hover { color: var(--blue); }
.subcategory-box {
  width: 100%;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(26px, 3vw, 44px);
  box-shadow: 0 16px 45px rgba(0,0,0,.08);
}
.compact-head { margin-bottom: 20px; }
.compact-head h2 { font-size: clamp(30px, 4vw, 48px); }
.photo-gallery figure { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.photo-gallery figure:hover {
  transform: scale(1.035);
  box-shadow: 0 18px 42px rgba(5,35,55,.18);
  border-color: rgba(15,115,183,.35);
  z-index: 2;
}
.photo-gallery figure:hover img { filter: saturate(1.06) contrast(1.03); }

@media (max-width: 760px) {
  .has-dropdown { min-height: auto; display: block; }
  .has-dropdown::after { display: none; }
  .simple-dropdown .dropdown { width: 100%; }
}


.realizacje-section {
  padding-top: clamp(56px, 7vw, 96px);
}
.realizacje-carousel {
  position: relative;
  max-width: 1480px;
  margin: 34px auto 0;
  padding: 0 74px;
}
.realizacje-stage {
  position: relative;
  min-height: 335px;
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(7,58,98,.06), rgba(15,115,183,.10));
}
.realizacja-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.72);
  transition: transform .55s ease, opacity .55s ease, filter .55s ease;
  pointer-events: none;
}
.realizacja-slide img {
  display: block;
  height: 255px;
  width: auto;
  max-width: 72vw;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: 0 22px 54px rgba(5,35,55,.22);
  background: #eef2f5;
}
.realizacja-slide.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  z-index: 3;
  pointer-events: auto;
}
.realizacja-slide.prev {
  opacity: .42;
  filter: grayscale(.75);
  transform: translate(calc(-50% - 330px), -50%) scale(.78);
  z-index: 2;
}
.realizacja-slide.next {
  opacity: .42;
  filter: grayscale(.75);
  transform: translate(calc(-50% + 330px), -50%) scale(.78);
  z-index: 2;
}
.realizacje-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--blue-dark);
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(5,35,55,.16);
  transition: transform .18s ease, box-shadow .18s ease, color .18s ease;
}
.realizacje-arrow:hover {
  transform: translateY(-50%) scale(1.06);
  color: var(--blue);
  box-shadow: 0 18px 44px rgba(5,35,55,.24);
}
.realizacje-prev { left: 8px; }
.realizacje-next { right: 8px; }
@media (max-width: 900px) {
  .realizacje-carousel { padding: 0 54px; }
  .realizacje-stage { min-height: 285px; }
  .realizacja-slide img { height: 210px; }
  .realizacja-slide.prev { transform: translate(calc(-50% - 230px), -50%) scale(.72); }
  .realizacja-slide.next { transform: translate(calc(-50% + 230px), -50%) scale(.72); }
}
@media (max-width: 620px) {
  .realizacje-carousel { padding: 0 42px; }
  .realizacje-stage { min-height: 235px; border-radius: 24px; }
  .realizacja-slide img { height: 170px; max-width: 78vw; border-radius: 18px; }
  .realizacja-slide.prev, .realizacja-slide.next { opacity: 0; }
  .realizacje-arrow { width: 42px; height: 42px; font-size: 34px; }
}

.product-carousel {
  position: relative;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto 0;
  padding: 0 74px;
}
.product-carousel-stage {
  position: relative;
  min-height: 315px;
  overflow: hidden;
  background: transparent;
}
.product-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.72);
  transition: transform .55s ease, opacity .55s ease, filter .55s ease;
  pointer-events: none;
}
.product-slide img {
  display: block;
  height: 245px;
  width: auto;
  max-width: 72vw;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: 0 22px 54px rgba(5,35,55,.20);
  background: #eef2f5;
}
.product-slide figcaption { display: none; }
.product-slide.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  z-index: 3;
  pointer-events: auto;
}
.product-slide.prev {
  opacity: .42;
  filter: grayscale(.75);
  transform: translate(calc(-50% - 320px), -50%) scale(.78);
  z-index: 2;
}
.product-slide.next {
  opacity: .42;
  filter: grayscale(.75);
  transform: translate(calc(-50% + 320px), -50%) scale(.78);
  z-index: 2;
}
.product-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--blue-dark);
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(5,35,55,.16);
  transition: transform .18s ease, box-shadow .18s ease, color .18s ease;
}
.product-carousel-arrow:hover {
  transform: translateY(-50%) scale(1.06);
  color: var(--blue);
  box-shadow: 0 18px 44px rgba(5,35,55,.24);
}
.product-carousel-prev { left: 8px; }
.product-carousel-next { right: 8px; }
@media (max-width: 900px) {
  .product-carousel { padding: 0 54px; }
  .product-carousel-stage { min-height: 275px; }
  .product-slide img { height: 205px; }
  .product-slide.prev { transform: translate(calc(-50% - 225px), -50%) scale(.72); }
  .product-slide.next { transform: translate(calc(-50% + 225px), -50%) scale(.72); }
}
@media (max-width: 620px) {
  .product-carousel { padding: 0 42px; }
  .product-carousel-stage { min-height: 225px; }
  .product-slide img { height: 165px; max-width: 78vw; border-radius: 18px; }
  .product-slide.prev, .product-slide.next { opacity: 0; }
  .product-carousel-arrow { width: 42px; height: 42px; font-size: 34px; }
}

.filmik {
  text-align: center;
}


.opis-box h3 {
  margin: 0 0 18px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -1px;
  text-align: center;
}

.partner {
  text-align: center;
}

.stal-punkty-lewe {
  width: 50%;
  float: left;
}

.stal-punkty-prawe {
  width: 50%;
  float: left;
}

.category-hero-sklep {
  min-height: 220px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 38px 8vw;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(119, 1, 16, 0.8), rgba(143, 0, 19, 0.6)), url('assets/sklep/sklep_38.webp') center/cover no-repeat;
}

.category-hero-stal {
  min-height: 220px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 38px 8vw;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(48, 48, 48, 0.92), rgba(75, 75, 75, 0.68)), url('assets/stal/stal_01.webp') center/cover no-repeat;
}

.category-hero-cnc {
  min-height: 220px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 38px 8vw;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(215, 252, 53, 0.5), rgba(224, 255, 84, 0.3)), url('assets/cnc/tlo.webp') center/cover no-repeat;
}

.expandable-tiles {
  overflow: hidden;
  transition: max-height .42s ease;
}
.show-more-tiles {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 24px auto 0;
  min-width: 168px;
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: #073a62;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(5,35,55,.16);
  transition: transform .18s ease, box-shadow .18s ease;
}
.show-more-tiles:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(5,35,55,.24);
}
.show-more-tiles::after {
  content: '⌄';
  margin-left: 10px;
  font-size: 18px;
  transition: transform .2s ease;
}
.show-more-tiles[aria-expanded="true"]::after { transform: rotate(180deg); }

.product-tile {
  background-image: var(--tile-img, url('assets/tartak.webp'));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px auto 0;
  max-width: 92%;
}
.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(7,58,98,.24);
  cursor: pointer;
  transition: width .2s ease, background .2s ease, transform .2s ease;
}
.carousel-dot:hover {
  transform: scale(1.2);
  background: rgba(15,115,183,.55);
}
.carousel-dot.active {
  width: 28px;
  background: linear-gradient(135deg, #073a62, #0f73b7);
}

.product-slide.active img,
.realizacja-slide.active img {
  cursor: zoom-in;
}
body.lightbox-open {
  overflow: hidden;
}
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 34px 96px;
  background: rgba(3, 15, 24, .92);
  backdrop-filter: blur(8px);
}
.image-lightbox.open {
  display: flex;
}
.lightbox-frame {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
}
.lightbox-img {
  display: block;
  max-width: calc(100vw - 210px);
  max-height: calc(100vh - 90px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0,0,0,.48);
  background: #eef2f5;
}
.lightbox-close,
.lightbox-arrow {
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--blue-dark);
  cursor: pointer;
  box-shadow: 0 18px 54px rgba(0,0,0,.30);
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.lightbox-close:hover,
.lightbox-arrow:hover {
  transform: scale(1.06);
  background: #fff;
  color: var(--blue);
}
.lightbox-close {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 3;
  width: 48px;
  height: 48px;
  font-size: 34px;
  line-height: 1;
}
.lightbox-arrow {
  position: fixed;
  top: 50%;
  z-index: 3;
  width: 58px;
  height: 58px;
  font-size: 46px;
  line-height: 1;
}
.lightbox-prev {
  left: 24px;
  transform: translateY(-50%);
}
.lightbox-next {
  right: 24px;
  transform: translateY(-50%);
}
.lightbox-prev:hover,
.lightbox-next:hover {
  transform: translateY(-50%) scale(1.06);
}
@media (max-width: 760px) {
  .carousel-dots { gap: 7px; margin-top: 14px; }
  .carousel-dot { width: 8px; height: 8px; }
  .carousel-dot.active { width: 22px; }
  .image-lightbox { padding: 78px 18px 90px; }
  .lightbox-img {
    max-width: calc(100vw - 36px);
    max-height: calc(100vh - 190px);
    border-radius: 14px;
  }
  .lightbox-close {
    width: 44px;
    height: 44px;
    font-size: 30px;
    top: 18px;
    right: 18px;
  }
  .lightbox-arrow {
    top: auto;
    bottom: 22px;
    width: 48px;
    height: 48px;
    font-size: 38px;
  }
  .lightbox-prev { left: calc(50% - 62px); }
  .lightbox-next { right: calc(50% - 62px); }
}

.product-tile {
 background: var(--tile-gradient, linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45))), var(--tile-img, url('assets/tartak.webp') center/cover no-repeat);
}



.hero-content,
.category-hero-content {
  z-index: 2;
}

.hero::after {
  z-index: 1;
  pointer-events: none;
}

.hero-bg {
  z-index: 0;
}

img,
video,
iframe {
  max-width: 100%;
}

body {
  overflow-x: hidden;
}

@media (max-width: 1180px) {
  .topbar {
    padding: 0 4vw;
  }

  .nav {
    gap: 20px;
  }

  .nav a {
    font-size: 16px;
  }

  .brand img {
    width: 180px;
  }

  .hero {
    min-height: 620px;
  }

  h1 {
    font-size: clamp(54px, 10vw, 120px);
    letter-spacing: -4px;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 90px 6vw 70px;
    align-items: center;
  }

  .hero::after {
    width: 260px;
    height: 260px;
    right: -110px;
    bottom: -95px;
    opacity: .10;
  }

  .hero-content {
    max-width: 620px;
  }

  h1 {
    font-size: clamp(50px, 13vw, 96px);
    line-height: .92;
    letter-spacing: -3px;
    overflow-wrap: anywhere;
  }

  .lead {
    max-width: 560px;
    font-size: 20px;
  }

  .hero-actions {
    gap: 12px;
  }

  .btn {
    min-height: 50px;
    padding: 0 22px;
  }

  .image-card img {
    height: 320px;
  }

  .contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    height: 72px;
    padding: 0 5vw;
    border-bottom-width: 3px;
  }

  .brand img {
    width: 145px;
    max-height: 48px;
  }

  .menu-btn {
    position: relative;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    color: var(--dark-blue);
    background: #f3f7fb;
  }

  .nav {
    top: 72px;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    padding: 10px 5vw 18px;
    box-shadow: 0 22px 50px rgba(5,35,55,.14);
  }

  .nav a,
  .nav-link {
    min-height: auto;
    padding: 13px 0;
    font-size: 17px;
  }

  .has-dropdown {
    width: 100%;
  }

  .has-dropdown > .nav-link::after {
    content: '⌄';
    margin-left: auto;
    transition: transform .2s ease;
  }

  .has-dropdown.open > .nav-link::after {
    transform: rotate(180deg);
  }

  .dropdown {
    display: none;
    max-height: none;
    margin: 0 0 8px;
    padding: 8px;
    overflow: visible;
  }

  .has-dropdown.open > .dropdown {
    display: grid;
  }

  .dropdown a {
    min-height: 42px;
    padding: 10px 12px;
    font-size: 14px;
  }

  .hero {
    min-height: auto;
    padding: 64px 6vw 54px;
  }

  .hero-bg {
    background:
      linear-gradient(0deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.90) 62%, rgba(255,255,255,.38) 100%),
      url('assets/glowne/test.JPEG') center top/cover no-repeat;
  }

  .hero::after {
    display: none;
  }

  .eyebrow,
  .section-label {
    font-size: 12px;
    letter-spacing: 1.5px;
  }

  h1 {
    font-size: clamp(44px, 15vw, 72px);
    letter-spacing: -2px;
  }

  .lead {
    margin: 22px 0 26px;
    font-size: 18px;
    line-height: 1.55;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 360px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section {
    padding: 54px 6vw;
  }

  h2 {
    font-size: clamp(30px, 10vw, 46px);
    letter-spacing: -1.4px;
  }

  p {
    font-size: 17px;
  }

  .card,
  .description-box,
  .gallery-box,
  .subcategory-box {
    padding: 24px;
    border-radius: 22px;
  }

  .category-hero,
  .category-hero-sklep,
  .category-hero-stal,
  .category-hero-cnc {
    min-height: 150px;
    padding: 28px 6vw;
  }

  .category-hero h1,
  .category-hero-sklep h1,
  .category-hero-stal h1,
  .category-hero-cnc h1 {
    font-size: clamp(32px, 11vw, 52px);
    line-height: 1;
    letter-spacing: -1.4px;
  }

  .product-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-tile {
    min-height: 104px;
    padding: 15px;
    border-radius: 18px;
  }

  .product-tile span {
    font-size: 15px;
  }

  .product-tile::after {
    top: 10px;
    right: 13px;
    font-size: 20px;
  }

  .realizacje-carousel,
  .product-carousel {
    padding: 0 38px;
  }

  .realizacje-stage,
  .product-carousel-stage {
    min-height: 220px;
  }

  .realizacja-slide img,
  .product-slide img {
    height: 160px;
    max-width: calc(100vw - 110px);
  }

  .realizacja-slide.prev,
  .realizacja-slide.next,
  .product-slide.prev,
  .product-slide.next {
    opacity: 0;
  }

  .realizacje-arrow,
  .product-carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 32px;
  }

  .realizacje-prev,
  .product-carousel-prev { left: 0; }
  .realizacje-next,
  .product-carousel-next { right: 0; }

  .carousel-dots {
    gap: 6px;
  }

  .carousel-dot {
    width: 7px;
    height: 7px;
  }

  .carousel-dot.active {
    width: 20px;
  }

  .cta-box {
    margin: 42px 6vw;
    padding: 34px 24px;
    border-radius: 24px;
  }

  .stal-punkty-lewe,
  .stal-punkty-prawe {
    width: 100%;
    float: none;
  }

  .filmik iframe,
  iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 480px) {
  .topbar {
    height: 68px;
  }

  .nav {
    top: 68px;
    max-height: calc(100vh - 68px);
  }

  .brand img {
    width: 128px;
  }

  .hero {
    padding: 50px 5vw 46px;
  }

  .hero-content {
    width: 100%;
  }

  h1 {
    font-size: clamp(40px, 16vw, 62px);
    line-height: .96;
  }

  .lead {
    font-size: 16.5px;
  }

  .btn {
    min-height: 48px;
    padding: 0 18px;
    font-size: 15px;
  }

  .section {
    padding: 46px 5vw;
  }

  .product-links {
    grid-template-columns: 1fr;
  }

  .product-tile {
    min-height: 92px;
  }

  .image-card img {
    height: 240px;
  }

  .description-box p,
  .description-box ul {
    font-size: 16px;
    line-height: 1.65;
  }

  .realizacje-carousel,
  .product-carousel {
    padding: 0 30px;
  }

  .realizacje-stage,
  .product-carousel-stage {
    min-height: 195px;
  }

  .realizacja-slide img,
  .product-slide img {
    height: 140px;
    max-width: calc(100vw - 86px);
    border-radius: 16px;
  }

  .realizacje-arrow,
  .product-carousel-arrow {
    width: 34px;
    height: 34px;
    font-size: 28px;
  }
}


footer.site-footer {
  padding: 34px 8vw;
  background: #111;
  color: #fff;
  text-align: center;
  border-top: 4px solid var(--accent);
}
footer.site-footer p {
  margin: 4px 0;
  color: #fff;
  letter-spacing: .02em;
}
footer.site-footer strong {
  font-size: 1.05rem;
}
