:root {
  --green: #2D6A4F;
  --green-light: #52B788;
  --green-pale: #D8F3DC;
  --green-dark: #1B4332;
  --black: #0D0D0D;
  --off-white: #F8F7F3;
  --white: #FFFFFF;
  --gray: #6B6B6B;
  --gray-light: #E8E6DF;
  --wood-1: #8B5E3C;
  --wood-2: #A0714F;
  --wood-3: #C49A6C;
  --wood-4: #D4AC82;
  --wood-5: #E8C99B;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--off-white);
  color: var(--black);
  overflow-x: hidden;
}

/* WOOD TEXTURE BACKGROUND - SVG pattern */
.wood-bg {
  position: relative;
  background-color: var(--black);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='8'%3E%3Crect width='100' height='8' fill='%230D0D0D'/%3E%3Cline x1='0' y1='4' x2='100' y2='4' stroke='%231a1a1a' stroke-width='0.5'/%3E%3Cline x1='0' y1='1' x2='100' y2='1' stroke='%23161616' stroke-width='0.3'/%3E%3Cline x1='0' y1='7' x2='100' y2='7' stroke='%23131313' stroke-width='0.3'/%3E%3C/svg%3E");
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  height: 70px;
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s;
}
/* NOWE STYLE DLA LOGO GRAFICZNEGO */
.nav-logo-img-wrapper {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 5px 0;
  text-decoration: none;
}

.nav-logo-img {
  /* Pilnujemy wysokości, żeby pasowało do nav (który ma height: 70px) */
  height: 55px; 
  width: auto;
  object-fit: contain;
  
  /* Poniższy filtr dodaje delikatny, jasny blask wokół przezroczystego logo. 
     Dzięki temu złote i brązowe elementy idealnie odetną się od czarnego tła menu,
     a samo logo i jego kolory pozostają w 100% oryginalne i nienaruszone. */
  filter: drop-shadow(0px 0px 8px rgba(232, 201, 155, 0.25));
  
  transition: transform 0.2s ease;
}

/* Subtelny efekt po najechaniu myszką */
.nav-logo-img-wrapper:hover .nav-logo-img {
  transform: scale(1.03);
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--green-light); }
.nav-cta {
  background: var(--green);
  color: white !important;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--green-dark) !important; color: white !important; }

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: 0.3s;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: rgba(13,13,13,0.98);
  padding: 1.5rem 5vw 2rem;
  z-index: 99;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  letter-spacing: 0.04em;
}
.mobile-menu a:last-child { border: none; }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 5vw 8vh;
  position: relative;
  overflow: hidden;
  background: var(--black);
}
.hero-boards {
  position: absolute;
  inset: 0;
  display: flex;
  opacity: 0.35;
}
.hero-board {
  flex: 1;
  background: linear-gradient(180deg, #3D2008 0%, #5C3210 30%, #7A4520 60%, #8B5E3C 100%);
  border-right: 2px solid rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
}
.hero-board::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 12px,
    rgba(255,255,255,0.015) 12px,
    rgba(255,255,255,0.015) 13px
  );
}
.hero-board:nth-child(odd) { background: linear-gradient(180deg, #2E1A07 0%, #4A2810 40%, #6B3C1A 70%, #7A5230 100%); }
.hero-board:nth-child(3) { background: linear-gradient(180deg, #3A2209 0%, #583015 45%, #744020 75%, #8A5535 100%); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(13,13,13,0.3) 50%, rgba(13,13,13,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.hero-tag {
  display: inline-block;
  background: var(--green);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 3px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  color: white;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: italic;
  color: var(--green-light);
}
.hero-sub {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--green);
  color: white;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.4);
  color: white;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: border-color 0.2s, background 0.2s;
  display: inline-block;
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.06); }
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  right: 5vw;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%,100% { opacity: 0.4; } 50% { opacity: 1; }
}

/* LOGOS BAR */
.logos-bar {
  background: white;
  padding: 1.5rem 5vw;
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--gray-light);
}
.logos-bar-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  white-space: nowrap;
}
.logos-list {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.brand-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

/* KLASA DLA GRAFICZNEGO LOGO PARTNERA */
.brand-logo-img {
  height: 36px; /* Dokładnie tyle samo, ile wynosiła wysokość zastępczego kontenera .brand-logo-icon */
  width: auto;
  object-fit: contain;
  border-radius: 4px; /* Jeśli tło ikony wymaga lekkiego zaokrąglenia, idealnie zgra się z resztą */
  display: block;
}

/* Usunięcie domyślnego stylowania linków w pasku marek */
.brand-logo-link {
  text-decoration: none;
  color: inherit; /* Sprawia, że kolory tekstów wewnątrz zostają takie, jakie były */
  display: block;
}

.brand-logo-icon.stolpram { background: var(--green-dark); color: white; }
.brand-logo-icon.finish { background: #1A3A6B; color: white; font-size: 0.65rem; }
.brand-logo-icon.hartz { background: #B8860B; color: white; font-size: 0.65rem; }
.brand-logo-name { font-size: 0.9rem; font-weight: 600; color: var(--black); }
.brand-logo-name small { display: block; font-size: 0.65rem; font-weight: 400; color: var(--gray); letter-spacing: 0.04em; }

/* SECTION STRUCTURE */
section { padding: 6rem 5vw; }
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--green);
}
h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.section-intro {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 3rem;
}

/* SERVICES */
.services { background: var(--off-white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5px;
  background: var(--gray-light);
  border: 1.5px solid var(--gray-light);
  overflow: hidden;
  border-radius: 8px;
}
.service-card {
  background: white;
  padding: 2.5rem 2rem;
  transition: background 0.2s;
  cursor: default;
}
.service-card:hover { background: var(--green-pale); }
.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  position: relative;
}
.service-icon-bg {
  position: absolute;
  inset: 0;
  background: var(--green-pale);
  border-radius: 10px;
}
.service-icon svg {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  padding: 10px;
}
.service-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--black);
}
.service-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.65;
}

/* WOOD DIVIDER */
.wood-divider {
  height: 120px;
  display: flex;
  overflow: hidden;
  gap: 3px;
  opacity: 0.85;
}
.wd-plank {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.wd-plank:nth-child(1) { background: #5C3210; }
.wd-plank:nth-child(2) { background: #7A4520; }
.wd-plank:nth-child(3) { background: #6B3C1A; }
.wd-plank:nth-child(4) { background: #8B5535; }
.wd-plank:nth-child(5) { background: #74401F; }
.wd-plank:nth-child(6) { background: #5A2E0F; }
.wd-plank:nth-child(7) { background: #7D4B28; }
.wd-plank:nth-child(8) { background: #6A3A18; }
.wd-plank::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 40px,
    rgba(0,0,0,0.08) 40px,
    rgba(0,0,0,0.08) 41px
  );
}
.wd-plank::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0,0,0,0.15);
}

/* OFFER / SKLEP */
.offer-section { background: white; }
.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}
.offer-card {
  background: var(--off-white);
  border-radius: 8px;
  padding: 2rem;
  border: 1px solid var(--gray-light);
}
.offer-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.offer-card p { color: var(--gray); font-size: 0.9rem; line-height: 1.6; }
.shop-info-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 5vw;
}
.shop-section {
  background: var(--green-dark);
  border-radius: 12px;
  padding: 3rem;
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.shop-text { flex: 1; min-width: 260px; }
.shop-text h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  color: white;
  margin-bottom: 1rem;
}
.shop-text p { color: rgba(255,255,255,0.7); font-size: 0.95rem; line-height: 1.7; margin-bottom: 1.5rem; }
.shop-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}
.chemia-section { margin-top: 4rem; }
.chemia-section h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.chemia-section > p { color: var(--gray); font-size: 0.9rem; margin-bottom: 1.5rem; }
.chemia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.chemia-item {
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.chemia-item-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--green);
  margin-bottom: 0.25rem;
}
.chemia-item strong { font-size: 0.9rem; font-weight: 600; color: var(--black); }
.chemia-item p { font-size: 0.8rem; color: var(--gray); }

/* NOWOCZESNY MIKROKATALOG PRODUKTÓW */
.catalog-section {
  margin-top: 120px !important; /* Zwiększono z 4rem (ok. 64px) na 120px, aby odepchnąć filtry od czarnego nagłówka */
  margin-bottom: 50px; /* Dodatkowy margines od dołu dla lepszego balansu i oddechu sekcji */
}

.catalog-section h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--black);
}

.catalog-intro {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 10px;
  padding: 1.75rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.01);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  
  /* NOWE: Wyrównanie kafelków do równej wysokości */
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 10px;
  padding: 1.75rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.01);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  
  /* NOWE: Wyrównanie kafelków do równej wysokości */
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* NOWE: Sprawi, że przy dłuższym opisie przyciski lub spód kafelka będą w jednej linii */
.product-card p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.6;
  flex-grow: 1; /* Rozpycha tekst tak, by dół karty zawsze był równy */
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.04);
  border-color: var(--green-light);
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.product-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Rozróżnienie kolorystyczne ikon dla desek i chemii */
.product-icon-wrapper.podlogi {
  background: var(--green-pale);
  color: var(--green-dark);
}

.product-icon-wrapper.chemia {
  background: #FFEAD2; /* Lekki pomarańcz/złoto pasujący do HartzLack */
  color: #B8860B;
}

.product-icon-wrapper svg {
  width: 22px;
  height: 22px;
}

.product-badge-type {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray);
  background: var(--off-white);
  padding: 4px 10px;
  border-radius: 4px;
}

.product-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.75rem;
}

.product-card p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }
}

/* GALLERY */
/* GALLERY GRAPHICS */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px; /* Sztywna wysokość rzędu, żeby kafelki ładnie trzymały strukturę */
  gap: 8px;
}

.gallery-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: #111;
  border: none;
  padding: 0;
  font: inherit;
  text-align: left;
  display: block;
  width: 100%;
}

.gallery-img-src {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Zdjęcie wypełnia cały kafel bez zniekształceń */
  display: block;
  transition: transform 0.4s ease;
}

/* Nowoczesna nakładka z informacją, pojawiająca się płynnie po najechaniu */
.gallery-hover-info {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.gallery-hover-text {
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

/* Efekty Hover */
.gallery-item:hover .gallery-img-src {
  transform: scale(1.05); /* Delikatne powiększenie zdjęcia wewnątrz kafelka */
}

.gallery-item:hover .gallery-hover-info {
  opacity: 1;
}

.gallery-item:hover .gallery-hover-text {
  transform: translateY(0);
}

.gallery-note {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
  font-style: italic;
}

.gallery-more-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  z-index: 3;
  transition: background 0.3s;
}

.gallery-item:hover .gallery-more-overlay {
  background: rgba(45, 106, 79, 0.82);
}

.gallery-more-count {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: white;
  line-height: 1;
}

.gallery-more-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gallery-action {
  text-align: center;
  margin-top: 2rem;
}

.btn-gallery-all {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.35);
  color: white;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-gallery-all:hover {
  background: var(--green);
  border-color: var(--green);
}

/* Lightbox galerii */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.gallery-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.94);
  backdrop-filter: blur(8px);
}

.gallery-lightbox-inner {
  position: relative;
  z-index: 1;
  width: min(1100px, 94vw);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gallery-lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s;
}

.gallery-lightbox-close:hover {
  color: white;
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}

.gallery-lightbox-nav:hover {
  background: var(--green);
  border-color: var(--green);
}

.gallery-lightbox-prev { left: -1.5rem; }
.gallery-lightbox-next { right: -1.5rem; }

.gallery-lightbox-stage {
  position: relative;
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

.gallery-lightbox-img {
  display: block;
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  background: #0a0a0a;
}

.gallery-lightbox-caption {
  padding: 1rem 1.25rem;
  color: white;
  font-size: 0.95rem;
  font-weight: 500;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.5));
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.gallery-lightbox-counter {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

.gallery-lightbox-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem 0 0.5rem;
  scrollbar-width: thin;
}

.gallery-lightbox-thumb {
  flex: 0 0 72px;
  height: 54px;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s, border-color 0.2s;
  background: none;
}

.gallery-lightbox-thumb.active,
.gallery-lightbox-thumb:hover {
  opacity: 1;
  border-color: var(--green-light);
}

.gallery-lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .gallery-lightbox-prev { left: 0.5rem; top: auto; bottom: -3.5rem; transform: none; }
  .gallery-lightbox-next { right: 0.5rem; top: auto; bottom: -3.5rem; transform: none; }
  .gallery-lightbox-close { top: 0.5rem; right: 0.5rem; background: rgba(0,0,0,0.5); border-radius: 50%; width: 40px; height: 40px; }
  .gallery-lightbox-inner { padding-bottom: 3rem; }
}

@media (max-width: 900px) {
  .gallery-grid { 
    grid-template-columns: repeat(2, 1fr); 
    grid-auto-rows: 200px;
  }
}
@media (max-width: 600px) {
  .gallery-grid { 
    grid-template-columns: 1fr; 
    grid-auto-rows: 220px;
  }
  .gallery-item.wide, .gallery-item.tall {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
}
.gallery-placeholder svg { opacity: 0.15; }
.gallery-placeholder-text { font-size: 0.75rem; color: rgba(255,255,255,0.2); letter-spacing: 0.08em; text-transform: uppercase; }
.gallery-item:nth-child(1) .gallery-placeholder { background: linear-gradient(135deg, #3D2008, #6B3C1A); }
.gallery-item:nth-child(2) .gallery-placeholder { background: linear-gradient(135deg, #2E1A07, #5C3215); }
.gallery-item:nth-child(3) .gallery-placeholder { background: linear-gradient(135deg, #1B4332, #2D6A4F); }
.gallery-item:nth-child(4) .gallery-placeholder { background: linear-gradient(135deg, #4A2810, #7A4520); }
.gallery-item:nth-child(5) .gallery-placeholder { background: linear-gradient(135deg, #0D3320, #1B5E3B); }
.gallery-note {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
  font-style: italic;
}

/* OPINIONS */
/* NOWOCZESNA SEKCJA OPINII GOOGLE */
.opinions-section {
  background: var(--off-white);
  padding: 6rem 5vw;
}

.google-badge-modern {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid var(--gray-light);
  border-radius: 50px;
  padding: 8px 20px;
  text-decoration: none;
  color: var(--black);
  margin-bottom: 2.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.google-badge-modern:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.google-badge-modern .google-g {
  width: 24px;
  height: 24px;
  background: #4285F4;
  border-radius: 50%;
  color: white;
  font-size: 0.85rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.badge-text strong {
  font-size: 0.9rem;
  font-weight: 600;
}

.badge-text span {
  font-size: 0.75rem;
  color: var(--gray);
}

.opinions-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.opinion-card-modern {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(0,0,0,0.03);
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.opinion-card-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.opinion-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem;
  position: relative;
}

.opinion-avatar-modern {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-dark);
}

.opinion-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.opinion-meta strong {
  font-size: 0.95rem;
  color: var(--black);
}

.verified-buyer {
  font-size: 0.75rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 4px;
}

.google-icon-corner {
  position: absolute;
  top: 0;
  right: 0;
  color: #4285F4;
  font-weight: 900;
  font-size: 1.1rem;
  opacity: 0.15;
}

.opinion-stars-modern {
  color: #F59E0B;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  letter-spacing: 2px;
}

.opinion-text-modern {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #333;
  font-style: italic;
}

.opinions-action {
  text-align: center;
}

@media (max-width: 600px) {
  .opinions-grid-modern {
    grid-template-columns: 1fr;
  }
}

/* CONTACT */
.contact-section {
  background: var(--black);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  align-items: stretch;
}
.contact-left {
  background: var(--green-dark);
  padding: 5rem 4vw;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.contact-left::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.02) 0px,
    rgba(255,255,255,0.02) 1px,
    transparent 1px,
    transparent 40px
  );
}
.contact-left .section-label { color: var(--green-light); }
.contact-left .section-label::before { background: var(--green-light); }
.contact-left h2 { color: white; margin-bottom: 2rem; }
.contact-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}
.contact-detail-icon {
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail-icon svg { width: 20px; height: 20px; stroke: var(--green-light); }
.contact-detail-label { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 0.25rem; }
.contact-detail-value { font-size: 1rem; color: white; font-weight: 500; }
.contact-detail-value a { color: white; text-decoration: none; }
.contact-detail-value a:hover { color: var(--green-light); }
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.contact-form-block {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  position: relative;
  z-index: 1;
}

.contact-form-block h3,
.contact-right h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1.25rem;
}

.contact-right {
  background: var(--black);
  padding: 5rem 4vw;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.contact-right .map-container {
  flex: 1;
  min-height: 420px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #2a2a2a;
}

.contact-right .map-container iframe {
  min-height: 420px;
  height: 100%;
}

.social-link {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s;
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
}

.social-link:hover { background: var(--green); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form label {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
}

.contact-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  transition: border-color 0.2s, background 0.2s;
}

.contact-input::placeholder {
  color: rgba(255,255,255,0.25);
}

.contact-input:focus {
  outline: none;
  border-color: var(--green-light);
  background: rgba(255,255,255,0.08);
}

.contact-textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

.btn-contact-submit {
  width: 100%;
  background: white;
  color: var(--green-dark);
  border: none;
  padding: 0.95rem;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 0.25rem;
}

.btn-contact-submit:hover {
  background: var(--green-light);
  transform: translateY(-1px);
}

.contact-alert {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.contact-alert-success {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #D8F3DC;
}

.contact-alert-error {
  background: rgba(192, 57, 43, 0.2);
  border: 1px solid rgba(231, 76, 60, 0.35);
  color: #F5B7B1;
}

@media (max-width: 600px) {
  .contact-form-row {
    grid-template-columns: 1fr;
  }
}

/* CONTAINER DLA LIVE MAPY GOOGLE */
.map-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
}
.map-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 20px,
    rgba(255,255,255,0.015) 20px,
    rgba(255,255,255,0.015) 21px
  ),
  repeating-linear-gradient(
    90deg,
    transparent,
    transparent 20px,
    rgba(255,255,255,0.015) 20px,
    rgba(255,255,255,0.015) 21px
  );
}
.map-pin { color: var(--green-light); font-size: 2rem; position: relative; z-index: 1; }
.map-text { color: rgba(255,255,255,0.4); font-size: 0.8rem; position: relative; z-index: 1; text-align: center; }

/* FOOTER */
footer {
  background: #080808;
  padding: 2rem 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}
.footer-logo span { color: var(--green-light); }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.25); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.75rem; color: rgba(255,255,255,0.3); text-decoration: none; }
.footer-links a:hover { color: rgba(255,255,255,0.6); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-item.wide { grid-column: span 2; }
  .gallery-item.tall { grid-row: span 1; }
  .contact-section { grid-template-columns: 1fr; }
  .offer-grid { grid-template-columns: 1fr; }
  .contact-left, .contact-right { padding: 3.5rem 5vw; }
}
@media (max-width: 600px) {
  section { padding: 4rem 5vw; }
  .hero { padding-bottom: 6vh; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.wide { grid-column: span 1; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-outline { text-align: center; }
  .shop-section { padding: 2rem; gap: 1.5rem; }
  .logos-bar { gap: 1.5rem; }
  footer { flex-direction: column; align-items: flex-start; }
}

/* ANIMATIONS */
@media (prefers-reduced-motion: no-preference) {
  .fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .fade-in.visible { opacity: 1; transform: none; }
}

/* WIDEO W TLE HERO */
.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Sprawia, że wideo zachowuje proporcje i pokrywa całe tło jak background-size: cover */
  z-index: 1;
  pointer-events: none; /* Zapobiega jakiejkolwiek interakcji myszki z wideo */
}

/* Aktualizacja nakładki, żeby wideo było eleganckim tłem i nie biło po oczach */
.hero-overlay {
  position: absolute;
  inset: 0;
  /* Zmieniamy lekko gradient, dodając ciemniejsze podbicie (0.65 i 0.9), by biały tekst idealnie kontrastował */
  background: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(13,13,13,0.5) 50%, rgba(13,13,13,0.9) 100%);
  z-index: 2;
}

/* Pilnujemy, żeby kontent był nad wideo i nakładką */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
}

/* STYLIZACJA PANELU ADMINISTRATORA (DASHBOARD) */
.dash-nav {
  background: var(--black);
  color: white;
  padding: 1rem 5vw;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.dash-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.dash-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dash-site-link {
  color: var(--green-light);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}

.dash-site-link:hover {
  color: white;
}

.dash-body {
  background: var(--off-white);
  padding-top: 0;
  min-height: 100vh;
}

.dash-user {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
}

.btn-logout-link {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-logout-link:hover {
  color: white;
  border-color: white;
  background: rgba(255,255,255,0.05);
}

.dash-main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 5vw;
}

.dash-alert {
  background: #DEF7EC;
  color: #03543F;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 2rem;
}

.dash-card {
  background: white;
  border-radius: 12px;
  padding: 2.5rem;
  border: 1px solid var(--gray-light);
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.dash-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--off-white);
  padding-bottom: 0.5rem;
}

.dash-card-head h3 {
  margin-bottom: 0.35rem;
  border-bottom: none;
  padding-bottom: 0;
}

.dash-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dash-form-row {
  display: flex;
  gap: 1rem;
}

.flex-1 { flex: 1; }

.dash-subheading {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem 0;
}

/* Tabele w panelu */
.dash-table-wrapper {
  overflow-x: auto;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.dash-table th {
  background: var(--off-white);
  text-align: left;
  padding: 10px;
  font-weight: 600;
  color: var(--black);
  border-bottom: 2px solid var(--gray-light);
}

.dash-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--off-white);
  vertical-align: middle;
}

.badge-cat {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.badge-cat.podlogi { background: var(--green-pale); color: var(--green-dark); }
.badge-cat.chemia { background: #FFEAD2; color: #B8860B; }

.btn-delete-action {
  color: #E02424;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 4px;
  transition: background 0.2s;
}
.btn-delete-action:hover { background: #FDE8E8; }

/* Lista graficzna w panelu */
.dash-gallery-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.dash-gallery-item {
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  overflow: hidden;
}

.dash-gallery-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.dash-gallery-info {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-gallery-info span {
  font-size: 0.78rem;
  color: var(--black);
  font-weight: 500;
  line-height: 1.3;
  min-height: 34px;
}

@media (max-width: 600px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-form-row { flex-direction: column; gap: 0; }
  .dash-panel-grid { grid-template-columns: 1fr; }
  .dash-nav-actions { flex-wrap: wrap; justify-content: flex-end; }
}

/* Dashboard v2 – zakładki i sortowanie */
.dash-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.dash-tab-btn {
  background: white;
  border: 1px solid var(--gray-light);
  color: var(--gray);
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.dash-tab-btn:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.dash-tab-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.dash-tab-panel {
  display: none;
}

.dash-tab-panel.active {
  display: block;
}

.dash-panel-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.2fr);
  gap: 1.5rem;
  align-items: start;
}

.dash-card-head h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.dash-card-head p {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.dash-card-head a {
  color: var(--green);
  text-decoration: none;
}

.dash-card-head a:hover {
  text-decoration: underline;
}

.btn-dash-primary {
  width: 100%;
  background: var(--green);
  color: white;
  border: none;
  padding: 0.85rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-dash-primary:hover {
  background: var(--green-dark);
}

.dash-file-input {
  padding: 0.5rem !important;
}

.dash-empty {
  text-align: center;
  color: var(--gray);
  font-size: 0.9rem;
  padding: 2.5rem 1rem;
  background: var(--off-white);
  border-radius: 8px;
  border: 1px dashed var(--gray-light);
}

.dash-sortable-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dash-sortable-item {
  display: grid;
  grid-template-columns: auto auto 56px 1fr auto;
  align-items: center;
  gap: 0.75rem;
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  border-radius: 10px;
  padding: 0.75rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.dash-sortable-item:hover {
  border-color: var(--green-light);
}

.sortable-chosen {
  box-shadow: 0 8px 24px rgba(45, 106, 79, 0.15);
  border-color: var(--green) !important;
}

.sortable-ghost {
  opacity: 0.45;
}

.drag-handle {
  background: none;
  border: none;
  color: var(--gray);
  cursor: grab;
  font-size: 1rem;
  padding: 0.25rem 0.35rem;
  line-height: 1;
  letter-spacing: -2px;
  border-radius: 4px;
}

.drag-handle:active {
  cursor: grabbing;
}

.drag-handle:hover {
  background: rgba(45, 106, 79, 0.08);
  color: var(--green-dark);
}

.order-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sortable-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  border: 1px solid var(--gray-light);
  flex-shrink: 0;
}

.sortable-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sortable-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.65rem;
  color: var(--gray);
}

.sortable-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.sortable-info strong {
  font-size: 0.92rem;
  color: var(--black);
}

.sortable-info > span:not(.badge-cat) {
  font-size: 0.82rem;
  color: var(--gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-sortable-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.85rem;
}

.dash-sortable-gallery-item {
  position: relative;
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.dash-sortable-gallery-item:hover {
  border-color: var(--green-light);
}

.dash-sortable-gallery-item .drag-handle {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.dash-sortable-gallery-item .order-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.dash-sortable-gallery-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.sortable-gallery-caption {
  padding: 0.65rem 0.75rem 0.25rem;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
  min-height: 48px;
}

.dash-sortable-gallery-item .btn-delete-action {
  display: block;
  text-align: center;
  padding: 0.5rem;
  margin: 0 0.75rem 0.75rem;
  border-radius: 6px;
}

.dash-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--green-dark);
  color: white;
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 9999;
}

.dash-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.dash-toast.error {
  background: #C81E1E;
}


/* STYLIZACJA OKNA MODALNEGO DLA OFERTY */
.custom-modal {
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 13, 0.85); /* Ciemne, eleganckie rozmyte tło */
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.custom-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--white);
  width: 100%;
  max-width: 900px;
  max-height: 85vh;
  border-radius: 12px;
  overflow-y: auto; /* Przewijanie wewnątrz okna, jeśli jest dużo produktów */
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.custom-modal.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--gray-light);
  position: sticky;
  top: 0;
  background: white;
  z-index: 3;
}

.modal-header h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  color: var(--black);
}

.close-modal-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--gray);
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.close-modal-btn:hover {
  color: var(--black);
}

.modal-body {
  padding: 2rem;
}

/* Siatka produktów w modalu */
.modal-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1.5rem;
}

.modal-product-card {
  display: flex;
  background: var(--off-white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gray-light);
  transition: border-color 0.2s;
}

.modal-product-card:hover {
  border-color: var(--green-light);
}

.modal-product-img-wrapper {
  width: 120px;
  min-width: 120px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  border-right: 1px solid var(--gray-light);
}

.modal-product-img-wrapper img {
  max-width: 100%;
  max-height: 90px;
  object-fit: contain;
}

.modal-product-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.modal-product-tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.modal-product-info h4 {
  font-size: 1.05rem;
  color: var(--black);
  margin-bottom: 0.15rem;
}

.modal-product-info h5 {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.modal-product-info p {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #444;
}

.modal-loading, .no-products {
  text-align: center;
  color: var(--gray);
  grid-column: span 2;
  padding: 3rem 0;
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .modal-products-grid { grid-template-columns: 1fr; }
  .modal-product-card { flex-direction: column; }
  .modal-product-img-wrapper { width: 100%; height: 140px; border-right: none; border-bottom: 1px solid var(--gray-light); }
}

/* OFERTA – podstrona i karty produktów ze zdjęciami */
.service-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

.service-card-link:hover {
  background: var(--green-pale);
  transform: translateY(-2px);
}

.service-card-arrow {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
}

.offer-cta-wrap {
  text-align: center;
  margin-top: 2.5rem;
}

.offer-hero {
  padding: 8rem 5vw 5rem;
  text-align: center;
  color: white;
}

.offer-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.offer-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
  font-weight: 400;
}

.offer-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  line-height: 1.6;
}

.offer-filters {
  max-width: 1200px;
  margin: -1.5rem auto 0;
  padding: 0 5vw;
  position: relative;
  z-index: 3;
}

.offer-filters-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: var(--white);
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  border: 1px solid var(--gray-light);
}

.offer-filter-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray);
  text-decoration: none;
  background: var(--off-white);
  transition: all 0.2s ease;
}

.offer-filter-btn:hover,
.offer-filter-btn.active {
  background: var(--green);
  color: white;
}

.offer-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 5vw 2rem;
}

.offer-section + .offer-section {
  padding-top: 1rem;
}

.offer-section-header {
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--gray-light);
  padding-bottom: 1rem;
}

.offer-section-header h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--black);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.offer-section-header p {
  color: var(--gray);
  font-size: 0.95rem;
}

.offer-see-all {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}

.offer-see-all:hover {
  text-decoration: underline;
}

.offer-empty {
  color: var(--gray);
  font-style: italic;
  grid-column: 1 / -1;
}

.offer-shop-banner {
  max-width: 1200px;
  margin: 0 auto 6rem;
  padding: 0 5vw;
}

.offer-bottom-cta {
  padding: 0 5vw 5rem;
  margin-top: 1rem;
}

.offer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.offer-shop-panel {
  margin: 0;
}

.offer-contact-box {
  flex: 0 0 280px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
}

.offer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.offer-contact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
}

.offer-contact-item a,
.offer-contact-item span {
  color: white;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.offer-contact-item a:hover {
  color: var(--green-light);
}

.btn-offer-contact {
  display: inline-block;
  text-align: center;
  margin-top: 0.5rem;
  padding: 0.85rem 1.25rem;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 6px;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-offer-contact:hover {
  background: white;
  color: var(--green-dark);
  border-color: white;
}

.offer-footer {
  margin-top: 0;
}

.offer-page-body {
  background: var(--off-white);
}

@media (max-width: 768px) {
  .offer-shop-panel {
    flex-direction: column;
  }
  .offer-contact-box {
    flex: 1;
    width: 100%;
  }
}

.product-card-with-img {
  padding: 0;
  overflow: hidden;
}

.product-img-wrapper {
  width: 100%;
  height: 200px;
  background: var(--off-white);
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.product-card-with-img:hover .product-img {
  transform: scale(1.05);
}

.product-body {
  padding: 1.5rem;
}

.product-model {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.dash-product-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dash-product-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--gray-light);
}

.nav-links a.active {
  color: var(--green);
  font-weight: 600;
}

@media (max-width: 600px) {
  .offer-filters-inner {
    flex-direction: column;
  }
  .offer-filter-btn {
    text-align: center;
  }
}

/* STRONY PRAWNE */
.legal-page-body {
  background: var(--off-white);
}

.legal-hero {
  background: var(--green-dark);
  padding: 6.5rem 5vw 3rem;
  margin-top: 0;
}

.legal-hero-inner {
  max-width: 780px;
  margin: 0 auto;
}

.legal-back-link {
  display: inline-block;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  transition: color 0.2s;
}

.legal-back-link:hover {
  color: var(--green-light);
}

.legal-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: white;
  font-weight: 400;
  margin-bottom: 0.5rem;
  line-height: 1.15;
}

.legal-hero-meta {
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
}

.legal-page-wrap {
  max-width: 780px;
  margin: -2rem auto 0;
  padding: 0 5vw 4rem;
  position: relative;
  z-index: 2;
}

.legal-card {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--gray-light);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
  padding: 2.5rem 2.75rem;
}

.legal-section {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--off-white);
}

.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-section h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: var(--black);
  margin-bottom: 1rem;
  font-weight: 400;
}

.legal-section p {
  color: #444;
  font-size: 0.93rem;
  line-height: 1.75;
  margin-bottom: 0.85rem;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul,
.legal-section ol {
  padding-left: 1.25rem;
  margin: 0.5rem 0 0.85rem;
  color: #444;
  font-size: 0.93rem;
  line-height: 1.75;
}

.legal-section li {
  margin-bottom: 0.45rem;
}

.legal-section li:last-child {
  margin-bottom: 0;
}

.legal-section a {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-section a:hover {
  color: var(--green);
}

.legal-box {
  background: var(--off-white);
  border-left: 3px solid var(--green);
  border-radius: 0 8px 8px 0;
  padding: 1.1rem 1.25rem;
  line-height: 1.7;
  font-size: 0.92rem;
  color: #333;
  margin: 1rem 0;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
  border-radius: 8px;
  border: 1px solid var(--gray-light);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 420px;
}

.legal-table th,
.legal-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--gray-light);
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-table th {
  background: var(--green-pale);
  font-weight: 600;
  color: var(--green-dark);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 600px) {
  .legal-card {
    padding: 1.75rem 1.25rem;
  }
  .legal-hero {
    padding-top: 5.5rem;
  }
}

/* COOKIES */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: rgba(13, 13, 13, 0.97);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 5vw;
  transform: translateY(110%);
  transition: transform 0.35s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner-text h3 {
  color: white;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.cookie-banner-text p {
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  line-height: 1.55;
  max-width: 640px;
}

.cookie-banner-text a {
  color: var(--green-light);
}

.cookie-banner-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.65rem 1.1rem;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.cookie-btn-primary {
  background: var(--green);
  color: white;
}

.cookie-btn-primary:hover {
  background: var(--green-light);
  color: var(--green-dark);
}

.cookie-btn-outline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.35);
}

.cookie-btn-outline:hover {
  border-color: white;
}

.cookie-btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.55);
}

.cookie-btn-ghost:hover {
  color: white;
}

.cookie-settings {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cookie-settings.visible {
  opacity: 1;
  pointer-events: auto;
}

.cookie-settings-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.cookie-settings-panel {
  position: relative;
  background: white;
  border-radius: 12px;
  padding: 2rem;
  width: min(520px, 92vw);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.cookie-settings-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray);
}

.cookie-settings-panel h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.cookie-settings-intro {
  font-size: 0.88rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

.cookie-category {
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.cookie-category-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.cookie-category p {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.5;
}

.cookie-always {
  font-size: 0.72rem;
  color: var(--green-dark);
  font-weight: 600;
  text-transform: uppercase;
}

.cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 24px;
  cursor: pointer;
  transition: 0.2s;
}

.cookie-slider:before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.2s;
}

.cookie-switch input:checked + .cookie-slider {
  background: var(--green);
}

.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(20px);
}

.cookie-settings-actions {
  margin-top: 1.25rem;
}

.contact-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  cursor: pointer;
}

.contact-consent input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--green-light);
}

.contact-consent a {
  color: var(--green-light);
}

.map-consent-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  min-height: 420px;
  padding: 2rem;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: 8px;
}

.map-consent-placeholder p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  max-width: 280px;
}

.btn-map-load {
  background: var(--green);
  color: white;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}

.btn-map-load:hover {
  background: var(--green-light);
  color: var(--green-dark);
}

.map-open-link {
  color: rgba(255,255,255,0.45);
  font-size: 0.82rem;
}

.map-open-link:hover {
  color: var(--green-light);
}

@media (max-width: 768px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner-actions {
    flex-direction: column;
  }
}

/* Poprawka odstępu dla stron regulaminu i polityki prywatności */
body.legal-page-body main {
  margin-top: 80px; /* Dostosuj tę wartość (np. między 100px a 140px), aby idealnie pasowało pod Twoje menu */
  padding-top: 2rem;
}

