/* ==========================================================================
   SzkłoBDG.pl — jeden wspólny arkusz stylów dla całej strony
   ========================================================================== */

:root {
  --accent: #FF9900;
  --accent-dark: #e08600;
  --navy: #030F27;
  --navy-soft: #0a1c3d;
  --heading: #222222;
  --text: #666666;
  --bg: #FFFFFF;
  --bg-alt: #f7f8fa;
  --border: #e6e8ec;

  --font-main: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-alt: "Barlow", var(--font-main);

  --container: 1160px;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(3, 15, 39, 0.08);
}

/* ---- Reset ---- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  color: var(--heading);
  font-family: var(--font-main);
  line-height: 1.25;
  margin: 0 0 16px;
  font-weight: 700;
}
p { margin: 0 0 16px; }
section { padding: 80px 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p { font-size: 1.05rem; }

.bg-alt { background: var(--bg-alt); }
.bg-navy { background: var(--navy); color: rgba(255,255,255,0.75); }
.bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}
.btn-outline:hover { border-color: #fff; }
.btn-dark {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-dark:hover { background: var(--navy); color: #fff; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  transition: height 0.3s ease;
}
/* Szklany header po scrollu (mleczna szyba) */
.site-header.scrolled {
  background: rgba(3, 15, 39, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 10px 30px rgba(3, 15, 39, 0.35);
}
.site-header.scrolled .container { height: 64px; }
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-icon { display: block; flex: 0 0 auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-name {
  font-family: var(--font-alt);
  font-weight: 800;
  font-size: 1.45rem;
  color: #fff;
  letter-spacing: -0.01em;
}
.logo-name .accent { color: var(--accent); }
.logo-tag {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 3px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: #fff;
  display: block;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--accent); }

.main-nav .has-dropdown { position: relative; }
.main-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy-soft);
  min-width: 240px;
  border-radius: 6px;
  padding: 10px 0;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.08);
}
.main-nav .has-dropdown:hover .dropdown { display: block; }
.main-nav .dropdown li a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-phone {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-phone .ico { color: var(--accent); }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 60%, #10254f 100%);
  color: rgba(255,255,255,0.8);
  position: relative;
  overflow: hidden;
  padding: 110px 0 100px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.035) 0px, rgba(255,255,255,0.035) 1px, transparent 1px, transparent 90px),
    repeating-linear-gradient(25deg, rgba(255,153,0,0.05) 0px, rgba(255,153,0,0.05) 1px, transparent 1px, transparent 140px);
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-inner { max-width: 640px; }
.hero-visual { position: relative; }
.hero-visual .glass-visual {
  aspect-ratio: 4 / 5;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.hero-slider { overflow: hidden; touch-action: pan-y; }
.hero-slider .slides img {
  user-select: none;
  -webkit-user-drag: none;
}
.hero-slider .slides {
  position: absolute;
  inset: 0;
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}
.hero-slider .slides img {
  position: static;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.85);
  color: var(--heading);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}
.slider-arrow:hover { background: var(--accent); color: #fff; }
.slider-arrow.prev { left: 14px; }
.slider-arrow.next { right: 14px; }
.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}
.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.55);
  transition: background 0.2s;
}
.slider-dots button.active { background: var(--accent); }

.glass-chip {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.glass-chip .dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,153,0,0.15);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.glass-chip strong {
  display: block;
  color: var(--heading);
  font-size: 0.9rem;
  line-height: 1.3;
}
.glass-chip span { font-size: 0.78rem; color: var(--text); }
.hero h1 {
  color: #fff;
  font-family: var(--font-alt);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 20px;
}
.hero p { font-size: 1.15rem; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---- Hero full-bleed (zdjęcie na całą szerokość + blik) ---- */
.hero-full {
  padding: 0;
  min-height: min(88vh, 860px);
  display: flex;
  align-items: center;
}
.hero-full .hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-full .hero-bg .slides {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
}
.hero-full .hero-bg .slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-full .hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(3, 15, 39, 0.94) 0%,
    rgba(3, 15, 39, 0.82) 34%,
    rgba(3, 15, 39, 0.38) 68%,
    rgba(3, 15, 39, 0.55) 100%);
  pointer-events: none;
}
.hero-full .hero-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg,
    transparent 42%,
    rgba(255, 255, 255, 0.14) 50%,
    transparent 58%);
  background-size: 320% 100%;
  background-position: 160% 0;
  animation: heroGlare 8s ease-in-out infinite;
}
@keyframes heroGlare {
  0%, 55% { background-position: 160% 0; }
  85%, 100% { background-position: -160% 0; }
}
.hero-full .container {
  position: relative;
  display: block;
  padding-top: 140px;
  padding-bottom: 120px;
}
.hero-full .hero-inner { max-width: 680px; }
.hero-full h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 52px;
  position: relative;
}
.hero-full .glass-chip {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
}
.hero-full .glass-chip strong { color: #fff; }
.hero-full .glass-chip span { color: rgba(255, 255, 255, 0.75); }
.hero-full .glass-chip.stat strong {
  color: var(--accent);
  font-family: var(--font-alt);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.15;
}
.hero-full .slider-arrow { background: rgba(255, 255, 255, 0.14); color: #fff; }
.hero-full .slider-arrow:hover { background: var(--accent); }

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-full .hero-glare { animation: none; }
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  flex-wrap: wrap;
}
.hero-stats div strong {
  display: block;
  color: var(--accent);
  font-size: 1.8rem;
  font-family: var(--font-alt);
  font-weight: 800;
}
.hero-stats div span { font-size: 0.9rem; }

/* Small page hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  padding: 64px 0;
  color: rgba(255,255,255,0.75);
}
.page-hero h1 {
  color: #fff;
  font-family: var(--font-alt);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 10px;
}
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.breadcrumb a:hover { color: var(--accent); }

/* ---- Glass placeholder visual (used instead of real photos) ---- */
.glass-visual {
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, #dfe7f5 0%, #c9d6ea 45%, #eef2f9 100%);
  box-shadow: var(--shadow);
}
.glass-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.55) 45%, transparent 60%),
    repeating-linear-gradient(90deg, rgba(3,15,39,0.04) 0, rgba(3,15,39,0.04) 1px, transparent 1px, transparent 40px);
}
.glass-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* wariant pionowy — dla zdjęć, gdzie cały obiekt (np. wysokie lustro) ma być widoczny */
.split-visual .glass-visual.tall { aspect-ratio: 3 / 4; }
/* galeria z pionowymi kaflami (drzwi, zabudowy — całe drzwi/ścianki widoczne) */
.gallery-grid.portrait .glass-visual { aspect-ratio: 3 / 4; }
.glass-visual.photo::before {
  background: linear-gradient(120deg, transparent 55%, rgba(255,255,255,0.14) 70%, transparent 85%);
  z-index: 1;
}
.glass-visual.photo::after { z-index: 2; }
.glass-visual:not([data-label])::after { display: none; }
.glass-visual::after {
  content: attr(data-label);
  position: absolute;
  bottom: 16px;
  left: 16px;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 6px 12px;
  border-radius: 4px;
}
.glass-visual.dark {
  background: linear-gradient(150deg, #1b2a4a 0%, #0e1c38 50%, #223460 100%);
}
.glass-visual.dark::after { background: rgba(255,255,255,0.12); color: #fff; }
.glass-visual.amber { background: linear-gradient(150deg, #ffe4b3 0%, #ffcf7a 50%, #fff3e0 100%); }
.glass-visual.amber::after { background: rgba(3,15,39,0.75); color: #fff; }

/* ---- Card grid (oferta) ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(3, 15, 39, 0.82);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.service-card > * { position: relative; z-index: 1; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before,
.service-card:hover::after { opacity: 1; }
.service-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(255,153,0,0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
  font-weight: 800;
  transition: background 0.35s ease, color 0.35s ease;
}
.service-card h3 { font-size: 1.1rem; margin-bottom: 8px; transition: color 0.35s ease; }
.service-card p { font-size: 0.92rem; margin-bottom: 14px; transition: color 0.35s ease; }
.service-card .more { color: var(--accent); font-weight: 700; font-size: 0.88rem; }
.service-card:hover .icon { background: rgba(255, 255, 255, 0.14); color: #fff; }
.service-card:hover h3 { color: #fff; }
.service-card:hover p { color: rgba(255, 255, 255, 0.85); }
/* Wariant odwrócony (strona główna): zdjęcie widoczne od razu, hover odsłania białą kartę */
.card-grid.inverted .service-card { border-color: transparent; }
.card-grid.inverted .service-card::before,
.card-grid.inverted .service-card::after { opacity: 1; }
.card-grid.inverted .service-card:hover { border-color: var(--border); }
.card-grid.inverted .service-card:hover::before,
.card-grid.inverted .service-card:hover::after { opacity: 0; }
.card-grid.inverted .service-card .icon { background: rgba(255, 255, 255, 0.14); color: #fff; }
.card-grid.inverted .service-card:hover .icon { background: rgba(255, 153, 0, 0.12); color: var(--accent); }
.card-grid.inverted .service-card h3 { color: #fff; }
.card-grid.inverted .service-card:hover h3 { color: var(--heading); }
.card-grid.inverted .service-card p { color: rgba(255, 255, 255, 0.85); }
.card-grid.inverted .service-card:hover p { color: var(--text); }

.sc-lustra::before { background-image: url("../img/card-lustra.webp"); }
.sc-lustra-led::before { background-image: url("../img/realizacja-lustro-led.webp"); }
.sc-kabiny::before { background-image: url("../img/realizacja-kabina-prysznicowa.webp"); }
.sc-balustrady::before { background-image: url("../img/realizacja-balustrada-schody.webp"); }
.sc-lakierowane::before { background-image: url("../img/card-szklo-lakierowane.webp"); }
.sc-grafika::before { background-image: url("../img/realizacja-panel-kuchenny.webp"); }
.sc-zabudowy::before { background-image: url("../img/card-zabudowy.webp"); }
.sc-daszki::before { background-image: url("../img/realizacja-daszek-szklany.webp"); }

/* ---- Two column feature ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split.reverse .split-visual { order: 2; }
.check-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.98rem;
}
.check-list .mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ---- Process steps (jak działamy) ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px 26px;
}
.step-card .num {
  font-family: var(--font-alt);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  color: rgba(255,153,0,0.35);
  margin-bottom: 14px;
}
.step-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step-card p { font-size: 0.9rem; margin: 0; }

/* ---- Trust / why us ---- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.trust-grid .icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(255,153,0,0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
}
.trust-grid h3 { font-size: 1.05rem; }
.trust-grid p { font-size: 0.9rem; }

/* ---- Gallery grid ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-grid .glass-visual { aspect-ratio: 1 / 1; }

/* Mozaika (galeria z dużym kaflem-bohaterem) */
.gallery-grid.mosaic {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 250px;
}
.gallery-grid.mosaic .glass-visual {
  aspect-ratio: auto;
  height: 100%;
}
.gallery-grid.mosaic .glass-visual:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, #0c2049 100%);
  color: #fff;
  text-align: center;
  padding: 70px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto 30px; }
.cta-band .hero-actions { justify-content: center; }

/* ---- FAQ ---- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.faq-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.faq-item p { font-size: 0.95rem; margin: 0; }

/* ---- Forms ---- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--heading);
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}
textarea { resize: vertical; min-height: 120px; }

.contact-info-list li {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  align-items: flex-start;
}
.contact-info-list .icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255,153,0,0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
}
.contact-info-list strong { display: block; color: var(--heading); font-size: 0.95rem; }
.contact-info-list span, .contact-info-list a { font-size: 0.92rem; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.map-embed img {
  width: 100%;
  display: block;
}

/* ---- Pricing table ---- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.price-table th, .price-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.price-table th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}
.price-table tr:last-child td { border-bottom: none; }
.price-table td.price { color: var(--accent); font-weight: 700; white-space: nowrap; }
.price-note {
  font-size: 0.85rem;
  margin-top: 16px;
  color: var(--text);
}

/* ---- Reviews ---- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.review-card .stars { color: var(--accent); font-size: 0.95rem; margin-bottom: 12px; letter-spacing: 2px; }
.review-card p { font-size: 0.93rem; }
.review-card .author { font-weight: 700; color: var(--heading); font-size: 0.9rem; }

.review-slider { position: relative; }
.review-viewport { overflow: hidden; }
.review-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s ease;
}
.review-track .review-card {
  flex: 0 0 calc((100% - 48px) / 3);
  display: flex;
  flex-direction: column;
}
.review-track .review-card p { flex: 1; }
.review-slider .slider-arrow {
  background: #fff;
  border: 1px solid var(--border);
}
.review-slider .slider-arrow:hover { background: var(--accent); border-color: var(--accent); }
.review-slider .slider-arrow.prev { left: -21px; }
.review-slider .slider-arrow.next { right: -21px; }
.review-slider .slider-dots {
  position: static;
  transform: none;
  justify-content: center;
  margin-top: 28px;
}
.review-slider .slider-dots button { background: #cdd5e1; }
.review-slider .slider-dots button.active { background: var(--accent); }

/* ---- Lightbox galerii ---- */
.gallery-grid .glass-visual.photo { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(3, 15, 39, 0.93);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
body.lb-open { overflow: hidden; }
.lightbox figure {
  margin: 0;
  max-width: min(90vw, 1100px);
  text-align: center;
}
.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  display: block;
  margin: 0 auto;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox .lb-caption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin-top: 16px;
}
.lightbox .lb-counter {
  position: absolute;
  top: 22px;
  left: 26px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}
.lightbox .lb-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox .lb-close:hover { background: var(--accent); }
.lightbox .lb-prev,
.lightbox .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox .lb-prev:hover,
.lightbox .lb-next:hover { background: var(--accent); }
.lightbox .lb-prev { left: 22px; }
.lightbox .lb-next { right: 22px; }
@media (max-width: 720px) {
  .lightbox .lb-prev { left: 10px; }
  .lightbox .lb-next { right: 10px; }
  .lightbox img { max-height: 70vh; }
}

/* ---- Formularz: status wysyłki + honeypot ---- */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status { margin: 14px 0 0; font-size: 0.92rem; min-height: 1.4em; }
.form-status.ok { color: #1a7f37; font-weight: 600; }
.form-status.err { color: #c0392b; font-weight: 600; }

/* ---- FAQ ---- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-list details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 24px;
  margin-bottom: 14px;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-weight: 700;
  color: var(--heading);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "\2b";
  color: var(--accent);
  font-weight: 800;
  font-size: 1.2rem;
  flex: 0 0 auto;
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { padding-bottom: 20px; margin: 0; }

/* ---- Tabela cennika ---- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.price-table th, .price-table td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.94rem;
}
.price-table th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}
.price-table tr:last-child td { border-bottom: 0; }
.price-table td strong { color: var(--heading); }
.price-table .price { white-space: nowrap; font-weight: 700; color: var(--accent-dark, #d98200); }
.price-note { font-size: 0.85rem; color: var(--text); margin-top: 14px; }

/* Warianty szerokości gridów (zamiast stylów inline) */
.steps-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.swatch-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.swatch-narrow { max-width: 760px; margin: 0 auto; }

/* ---- Próbniki (kolory szkła / lacobel) ---- */
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.swatch-grid figure { margin: 0; }
.swatch-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
}
.swatch-grid figcaption {
  font-size: 0.85rem;
  text-align: center;
  margin-top: 8px;
  color: var(--text);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.55);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-grid h4 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}
.footer-grid ul li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-grid ul li a:hover { color: var(--accent); }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-logo .logo-name { font-size: 1.3rem; }
.footer-social { display: flex; gap: 14px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  color: #fff;
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
}

/* ---- Utility page content blocks (service pages) ---- */
.content-block { max-width: 800px; }
.content-block h2 { font-size: 1.6rem; }
.variant-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 30px;
}
.variant-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--bg-alt);
}
.variant-card h3 { font-size: 1.05rem; }
.variant-card p { font-size: 0.92rem; margin: 0; }

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tag-list span {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  color: var(--heading);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; gap: 48px; }
  .hero-full .container { padding-top: 110px; padding-bottom: 90px; }
  /* na węższych ekranach strzałki zabierają miejsce — zostaje swipe + kropki */
  .hero-full .slider-arrow { display: none; }
  .hero-chips { margin-top: 40px; gap: 10px; }
  .hero-full .glass-chip { padding: 12px 16px; }
  /* mocniejsze przyciemnienie zdjęcia — tekst zawsze czytelny */
  .hero-full .hero-shade {
    background: linear-gradient(180deg,
      rgba(3, 15, 39, 0.88) 0%,
      rgba(3, 15, 39, 0.78) 55%,
      rgba(3, 15, 39, 0.62) 100%);
  }
  .gallery-grid.mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .hero-visual { max-width: 440px; }
  .glass-chip { left: 16px; bottom: -20px; }
  .steps-grid, .steps-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .review-track .review-card { flex-basis: calc((100% - 24px) / 2); }
  .swatch-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .review-slider .slider-arrow.prev { left: -8px; }
  .review-slider .slider-arrow.next { right: -8px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-visual { order: 0; }
  .variant-list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  section { padding: 56px 0; }
  .main-nav {
    /* fixed względem okna — NIE absolute względem sticky headera
       (overflow:hidden na body łamał sticky i menu uciekało poza ekran) */
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--navy-soft);
    display: none;
    flex-direction: column;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 99; /* pod headerem (100), nad treścią */
    /* długie menu (16 pozycji oferty) przewija się w obrębie ekranu */
    max-height: calc(100vh - 84px);
    max-height: calc(100dvh - 84px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  /* po skurczeniu headera (scroll) menu zaczyna się niżej — bez luki */
  .site-header.scrolled .main-nav {
    top: 64px;
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .main-nav ul > li { width: 100%; }
  .main-nav a { display: block; padding: 13px 24px; }
  .main-nav .dropdown li a { padding: 11px 24px 11px 36px; }
  .main-nav .has-dropdown .dropdown {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    background: rgba(0,0,0,0.15);
    padding-left: 0;
    min-width: 0;
  }
  .nav-toggle { display: flex; }
  .header-phone span.text { display: none; }
  .hero-stats { gap: 26px; }
  .hero { padding: 70px 0 80px; }
  .hero-full { padding: 0; min-height: 78vh; }
  .hero-full .container { padding-top: 80px; padding-bottom: 80px; }
  .gallery-grid.mosaic { grid-auto-rows: 150px; }
  .logo-tag { display: none; }
  .hero-visual .glass-visual { aspect-ratio: 4 / 3; }
  .slider-dots { left: auto; right: 14px; transform: none; }
  .steps-grid, .steps-grid.cols-3 { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .review-track .review-card { flex-basis: 100%; }
  .price-table { display: block; overflow-x: auto; }
  .trust-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
}
