/* =========================================================
   FABUD – nowoczesna strona tartaku
   ========================================================= */

:root {
  --green-900: #16241a;
  --green-800: #1d2b1e;
  --green-700: #2a3f2c;
  --green-600: #37543a;
  --green-500: #4a6b4d;
  --wood-700:  #7a4e2b;
  --wood-600:  #9c6a3c;
  --wood-500:  #b57e4a;
  --gold:      #c8a15a;
  --cream:     #f6f1e7;
  --cream-2:   #efe7d7;
  --paper:     #fbf8f2;
  --ink:       #232a22;
  --muted:     #5d6a58;
  --line:      #e0d7c5;
  --shadow:    0 18px 40px -18px rgba(24, 32, 20, 0.45);
  --radius:    16px;
  --maxw:      1180px;
  --header-h:  74px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1, h2, h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: 0.4px;
}

h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.25s ease;
  border: 2px solid transparent;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--gold);
  color: var(--green-900);
}
.btn-primary:hover {
  background: #d8b46e;
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--green-700);
  color: var(--green-800);
}
.btn-outline:hover {
  background: var(--green-700);
  color: #fff;
  transform: translateY(-2px);
}

.btn-shop {
  background: var(--wood-500);
  border-color: var(--wood-500);
  color: #fff;
}
.btn-shop:hover {
  background: var(--wood-600);
  border-color: var(--wood-600);
  transform: translateY(-2px);
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 60;
  display: flex;
  align-items: center;
  transition: 0.3s ease;
  background: transparent;
}

.site-header.scrolled,
.site-header.header-solid {
  background: rgba(23, 32, 25, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px -14px rgba(0,0,0,0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 46px;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.brand-text {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  line-height: 1;
  display: flex;
  flex-direction: column;
  letter-spacing: 1px;
}

.brand-text small {
  font-family: 'Source Sans 3';
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  color: #f2ede3;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  white-space: nowrap;
  transition: 0.2s;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

/* „Wycena online” — wyróżniona: złota ramka, przy telefonie (wypełnionym złotem). */
.nav .nav-quote {
  color: var(--gold);
  font-weight: 700;
  border: 1.5px solid var(--gold);
  margin-left: 8px;
}
.nav .nav-quote:hover,
.nav .nav-quote[aria-current="page"] {
  color: var(--green-900);
  background: var(--gold);
}

.nav .nav-cta {
  background: var(--gold);
  color: var(--green-900);
  margin-left: 8px;
}
.nav .nav-cta:hover {
  background: #d8b46e;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    rgba(16, 24, 18, 0.92) 0%,
    rgba(16, 24, 18, 0.70) 45%,
    rgba(16, 24, 18, 0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: var(--header-h);
}

.hero-kicker {
  font-family: 'Oswald';
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 700;
  margin-bottom: 1.2rem;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.hero-lead {
  font-size: 1.2rem;
  max-width: 560px;
  color: #e9e4d8;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-badges {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.hero-badges li {
  display: flex;
  flex-direction: column;
}

.hero-badges strong {
  font-family: 'Oswald';
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 1;
}

.hero-badges span {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #cfc9bb;
}

/* Sections */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--cream);
}

.eyebrow {
  font-family: 'Oswald';
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--wood-600);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.section-title {
  color: var(--green-800);
}

.section-head {
  max-width: 720px;
  margin-bottom: 3rem;
}

.section-sub {
  color: var(--muted);
  font-size: 1.1rem;
}

.lead-quote {
  font-family: 'Oswald';
  font-size: 1.3rem;
  color: var(--green-700);
  border-left: 4px solid var(--gold);
  padding-left: 1rem;
  margin-top: 1.5rem;
}

/* Grid 2 (o firmie) */
.grid-2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.about-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-media img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
}

/* Offer cards */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px -22px rgba(0,0,0,0.5);
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card-media {
  height: 200px;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease;
}

#kat-dab .card-media img {
  transform: rotate(90deg) scale(1.8);
}

#kat-dab:hover .card-media img {
  transform: rotate(90deg) scale(1.2);
}

.card:hover .card-media img {
  transform: scale(1.06);
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
}

.card-body h3 {
  color: var(--green-800);
  margin-bottom: 0.2rem;
}

.card-tag {
  font-family: 'Oswald';
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--wood-600);
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}

.card-body p {
  font-size: 0.98rem;
  color: var(--muted);
}

.spec {
  width: 100%;
  border-collapse: collapse;
  margin-top: auto;
  font-size: 0.9rem;
}

.spec th {
  background: var(--green-700);
  color: #fff;
  text-align: left;
  padding: 0.55rem 0.7rem;
  font-family: 'Oswald';
  font-weight: 500;
  letter-spacing: 0.5px;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.spec td {
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--line);
}

.spec tbody tr:nth-child(even) {
  background: var(--cream-2);
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.ticks li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.6rem;
  color: var(--ink);
}

.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 800;
  background: var(--green-700);
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
}

/* Extra offer */
.extra {
  margin-top: 48px;
  background: var(--green-800);
  color: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: stretch;
}

.extra-media {
  min-height: 100%;
}

.extra-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.extra-body {
  padding: 40px;
}

.extra h3 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.extra-lead {
  color: #dcd6c9;
  margin-bottom: 1.2rem;
}

/* Anchor offset */
[id] {
  scroll-margin-top: 92px;
}

/* =========================================================
   Wyróżniona sekcja Dlaczego my (#dlaczego)
   ========================================================= */
.benefits {
  padding: 72px 0 80px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream-2) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.benefit {
  background: #ffffff;
  border: 1px solid rgba(224, 215, 197, 0.9);
  border-radius: var(--radius);
  padding: 34px 26px 30px;
  text-align: center;
  box-shadow: 0 12px 32px -16px rgba(24, 32, 20, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.benefit::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--wood-500));
  opacity: 0.85;
  transition: opacity 0.3s ease, height 0.3s ease;
}

.benefit:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 18px 40px -18px rgba(24, 32, 20, 0.28);
}

.benefit:hover::after {
  height: 6px;
  opacity: 1;
}

.benefit h3 {
  color: var(--green-800);
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  letter-spacing: 0.3px;
}

.benefit p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

/* Category quick nav */
.cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.cat-nav a {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--green-800);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.2s;
}

.cat-nav a:hover {
  background: var(--green-700);
  color: #fff;
  border-color: var(--green-700);
  transform: translateY(-2px);
}

/* Card badge */
.card-badge {
  position: absolute;
  top: -14px;
  right: 20px;
  background: var(--gold);
  color: var(--green-900);
  font-family: 'Oswald';
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  font-size: 0.8rem;
  box-shadow: 0 6px 14px -6px rgba(0,0,0,0.5);
}

.card-badge.alt {
  background: var(--wood-600);
  color: #fff;
}

/* KVH length highlight */
.len-highlight {
  margin-top: auto;
  background: var(--cream-2);
  border-radius: 12px;
  padding: 16px 18px;
}

.len-highlight span {
  display: block;
  font-family: 'Oswald';
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.lens {
  display: flex;
  gap: 10px;
}

.lens b {
  flex: 1;
  text-align: center;
  background: var(--green-700);
  color: #fff;
  font-family: 'Oswald';
  font-size: 1.35rem;
  padding: 0.5rem 0;
  border-radius: 8px;
  letter-spacing: 1px;
}

/* CTA banner */
.cta-banner {
  margin-top: 40px;
  background: linear-gradient(120deg, var(--green-800), var(--green-600));
  color: #fff;
  border-radius: var(--radius);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}

.cta-banner h3 {
  color: #fff;
  margin-bottom: 0.4rem;
}

.cta-banner p {
  color: #dcd6c9;
  margin: 0;
  max-width: 560px;
}

.cta-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Service quick cards */
.svc-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.svc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  transition: 0.25s;
  box-shadow: 0 10px 30px -24px rgba(0,0,0,0.5);
}

.svc:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
}

.svc-ico {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 0.6rem;
}

.svc h3 {
  color: var(--green-800);
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.svc p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* Floating call button */
.fab-call {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--green-900);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 12px 26px -8px rgba(0,0,0,0.55);
  transition: 0.2s;
}

.fab-call:hover {
  transform: scale(1.08);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(200, 161, 90, 0.4);
  color: #f2ede3;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}

.opal-photos {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.opal-photos figure {
  margin: 0;
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.opal-photos img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
  background: #fff;
}

.opal-photos figcaption {
  padding: 0.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #dcd6c9;
}

.extra .note {
  margin: 1.5rem 0 0;
  color: #cfc9bb;
  font-size: 0.95rem;
}

/* Services */
.services {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.service-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-height: 440px;
}

.service-media img {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
}

.service-body h3 {
  color: var(--green-800);
  font-size: 1.6rem;
}

.service-reverse .service-media {
  order: 2;
}

.link-arrow {
  font-family: 'Oswald';
  letter-spacing: 1px;
  color: var(--wood-600);
  font-weight: 600;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
  transition: 0.2s;
}

.link-arrow:hover {
  color: var(--green-700);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: 0 10px 24px -18px rgba(0,0,0,0.6);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: 0.25s ease;
  box-shadow: 0 10px 30px -24px rgba(0,0,0,0.5);
}

.contact-card:first-child {
  grid-column: 1 / -1;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.contact-card .ci {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 0.5rem;
}

.contact-card h3 {
  color: var(--green-800);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
}

.contact-card .contact-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0.4rem 0;
}

.contact-card .clabel {
  flex: none;
  min-width: 88px;
  text-align: right;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8a9384;
  font-weight: 600;
}

.contact-card .contact-line a {
  color: var(--green-800);
  font-weight: 700;
  font-size: 1.05rem;
}

.contact-card .contact-line a:hover {
  color: var(--gold);
}

.contact-note {
  background: var(--green-800);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow);
}

.contact-note h3 {
  color: var(--gold);
}

.contact-note p {
  color: #dcd6c9;
}

.contact-note .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* Reviews */
.reviews-grid {
  columns: 3;
  column-gap: 24px;
}

.review-card {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin-bottom: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  box-shadow: 0 12px 30px -24px rgba(0,0,0,0.5);
}

.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.review-avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-700);
  color: #fff;
  font-family: 'Oswald';
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-who {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.review-who strong {
  color: var(--green-900);
  font-size: 1.02rem;
}

.review-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.reviews-grid .stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 0.6rem;
}

.review-text {
  margin: 0;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.6;
}

/* Image protection */
img {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  user-drag: none;
}

/* Footer */
.site-footer {
  background: var(--green-900);
  color: #d7d2c6;
  padding-top: 56px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-brand {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.footer-brand .brand-logo {
  height: 56px;
}

.footer-brand p {
  font-size: 0.95rem;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #d7d2c6;
  transition: 0.2s;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-contact a {
  color: var(--gold);
}

.footer-contact p {
  word-break: break-word;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  font-size: 0.88rem;
  color: #9d998f;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(12, 16, 12, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 30px;
  font-size: 2.6rem;
  color: #fff;
  background: none;
  border: 0;
  cursor: pointer;
  line-height: 1;
}

/* =========================================================
   Under Construction (Kup online w budowie)
   ========================================================= */
.under-construction {
  min-height: calc(100vh - var(--header-h) - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px 24px 80px;
}

.uc-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 36px;
  max-width: 640px;
  box-shadow: var(--shadow);
}

.uc-badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.uc-title {
  font-family: 'Oswald', sans-serif;
  font-size: 2.2rem;
  text-transform: uppercase;
  color: var(--green-800);
  margin-bottom: 16px;
}

.uc-desc {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.uc-contact {
  background: var(--cream-2);
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 28px;
}

.uc-contact p {
  margin: 6px 0;
  font-size: 0.98rem;
}

.uc-contact a {
  color: var(--green-800);
  font-weight: 700;
}

.uc-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================================
   Wycena online (formularz)
   ========================================================= */
/* Podstrona (wycena.html): treść pod stałym nagłówkiem. */
.page-main { padding-top: var(--header-h); }
.page-main > .section:first-child { padding-top: 56px; }
.quote-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 12px 30px -24px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.qf-block { border: 0; padding: 0; margin: 0; min-width: 0; }
.qf-block legend {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--green-800);
  font-size: 1rem;
  margin-bottom: 10px;
}
.qf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.qf-wide { grid-column: 1 / -1; }
.qf-field { display: flex; flex-direction: column; gap: 5px; font-size: 0.92rem; color: var(--muted); }
.quote-form input,
.quote-form select,
.quote-form textarea {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  width: 100%;
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.quote-form input[type=checkbox], .quote-form input[type=radio] { width: auto; padding: 0; accent-color: var(--green-600); }

/* Bez przewijania w poziomie: lista rozwijana wykonania nie może być przycinana. */
.qf-table { width: 100%; border-collapse: collapse; }
.qf-table th { font-size: 0.8rem; text-align: left; color: var(--muted); font-weight: 600; padding: 0 6px 6px; }
.qf-table td { padding: 4px 6px; vertical-align: middle; }
.qf-table input { padding: 0.5rem 0.55rem; }
.qf-table td.qf-name { width: 24%; }
.qf-table input[type=number] { text-align: right; }

/* Wykonanie: lista rozwijana — jeden rodzaj (tarcica jodłowa / strugane / KVH) + impregnacja */
.qf-pick { position: relative; display: inline-block; }
.qf-pick-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 210px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.qf-pick-btn:hover { border-color: var(--wood-500); }
.qf-pick-btn:focus-visible { outline: 2px solid var(--gold); border-color: var(--gold); }
.qf-pick.is-set .qf-pick-btn { background: var(--cream-2); border-color: var(--wood-600); color: var(--wood-700); font-weight: 600; }
.qf-pick-caret { color: var(--muted); font-size: 0.8rem; }
.qf-pick-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 30;
  min-width: 250px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
}
.qf-pick-menu[hidden] { display: none; }
.qf-pick-head { margin: 0 0 2px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.qf-pick-opt { display: flex; align-items: center; gap: 8px; padding: 0.35rem 0.3rem; border-radius: 8px; font-size: 0.92rem; cursor: pointer; }
.qf-pick-opt:hover { background: var(--cream); }
.qf-pick-opt small { color: var(--muted); font-size: 0.78rem; }
.qf-opts-all { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 12px; }
.qf-opts-label { font-size: 0.88rem; color: var(--muted); }
.qf-legend { list-style: none; margin: 0 6px 16px; padding: 0; font-size: 0.85rem; color: var(--muted); display: grid; gap: 4px; }
.qf-legend strong { color: var(--green-800); }

.qf-remove { background: none; border: 0; font-size: 1.4rem; color: var(--muted); cursor: pointer; line-height: 1; }
.qf-remove:hover { color: var(--wood-700); }
.qf-add {
  margin: 8px 6px 14px;
  background: none;
  border: 1px dashed var(--wood-500);
  color: var(--wood-700);
  border-radius: 10px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}
.qf-add:hover { background: var(--cream-2); }
.qf-hint { margin: 0; font-size: 0.85rem; color: var(--muted); }
.qf-units { margin: -6px 6px 12px; position: relative; }
/* ⓘ przy wymiarach: dymek pod podpowiedzią (hover / focus / dotknięcie). */
.qf-info { display: inline-block; vertical-align: middle; }
.qf-info-btn {
  width: 20px;
  height: 20px;
  margin-left: 4px;
  padding: 0;
  border: 1px solid var(--wood-500);
  border-radius: 50%;
  background: #fff;
  color: var(--wood-700);
  font: 700 0.75rem/1 Georgia, serif;
  font-style: italic;
  cursor: pointer;
}
.qf-info-btn:hover, .qf-info.open .qf-info-btn { background: var(--cream-2); }
.qf-info-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.qf-info-pop {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 25;
  max-width: 340px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  color: var(--ink);
}
.qf-info.open .qf-info-pop { display: block; }
/* Najechanie myszką tylko tam, gdzie jest mysz (na telefonie „hover” zostaje po dotknięciu i nie dałoby się zamknąć). */
@media (hover: hover) { .qf-info:hover .qf-info-pop { display: block; } }
.qf-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.qf-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; }
.qf-consent input { margin-top: 0.25rem; }
.qf-unusual { padding: 10px 12px; border: 1px dashed var(--wood-500); border-radius: 10px; background: #fff; }
.qf-unusual:has(input:checked) { background: var(--cream-2); border-style: solid; border-color: var(--wood-600); }
.qf-rodo { font-size: 0.82rem; color: var(--muted); }
.qf-rodo summary { cursor: pointer; color: var(--green-700); }
.qf-rodo p { margin: 0.5rem 0 0; }
.qf-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.qf-status { margin: 0; font-weight: 600; }

/* Potwierdzenie wysłania formularza wyceny */
.qf-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(12, 16, 12, 0.6);
}
.qf-modal[hidden] { display: none; }
.qf-modal-box {
  width: 100%;
  max-width: 440px;
  padding: 32px 28px 26px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  text-align: center;
}
.qf-modal-ico {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-600);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
}
.qf-modal-box h3 { color: var(--green-800); }
.qf-modal-box p { color: var(--muted); }
.qf-modal-small { font-size: 0.92rem; }
.qf-modal-small a { color: var(--wood-600); font-weight: 700; }
.qf-modal-box .btn { min-width: 140px; margin-top: 4px; }
.qf-status.ok { color: var(--green-600); }
.qf-status.err { color: #a3392b; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: 1fr; gap: 36px; }
  .service, .contact { grid-template-columns: 1fr; gap: 28px; }
  .service-reverse .service-media { order: 0; }
  .contact-cards { grid-template-columns: 1fr 1fr; }
  .extra { grid-template-columns: 1fr; }
  .extra-media img { min-height: 220px; max-height: 280px; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-cards { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { flex-direction: column; align-items: flex-start; }
  .reviews-grid { columns: 2; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Menu: między 1081 a 1200 px ciaśniej, od 1080 px w dół — przycisk ☰ (inaczej pozycje łamały się na dwie linie). */
@media (max-width: 1200px) {
  .nav { gap: 2px; }
  .nav a { padding: 0.5rem 0.55rem; font-size: 0.93rem; }
  .nav .nav-cta { margin-left: 4px; }
  .nav .nav-quote { margin-left: 4px; }
}

@media (max-width: 1080px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(23, 32, 25, 0.98);
    padding: 16px 24px 28px;
    gap: 4px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-120%);
    /* Zamknięte menu niewidoczne też dla klawiatury (Tab) i czytników ekranu. */
    visibility: hidden;
    transition: transform 0.35s ease, visibility 0s linear 0.35s;
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.7);
  }
  .nav.open { transform: translateY(0); visibility: visible; transition: transform 0.35s ease; }
  .nav a {
    padding: 0.9rem 0.6rem;
    font-size: 0.98rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav .nav-cta {
    margin: 8px 0 0;
    text-align: center;
  }
  .nav .nav-quote {
    margin: 8px 0 0;
    text-align: center;
  }
  .nav-toggle {
    display: flex;
  }
  .site-header {
    background: rgba(23, 32, 25, 0.96);
  }
  .nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 760px) {
  .fab-call {
    display: flex;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  .footer-brand {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .footer-links {
    align-items: center;
  }
}

/* Wycena: od tabletu w dół każdy wiersz jako karta — nazwa + ×, wymiary w jednym rzędzie, wykonanie pod spodem. */
@media (max-width: 900px) {
  .qf-table, .qf-table tbody { display: block; }
  .qf-table thead { display: none; }
  .qf-table tr {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 8px;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
  }
  .qf-table td { padding: 0; }
  .qf-table input { padding: 0.5rem 0.45rem; }
  .qf-table td.qf-name { width: auto; grid-column: 1 / 5; }
  .qf-table td.qf-rm { grid-column: 5; grid-row: 1; align-self: center; }
  .qf-table td.qf-opts { grid-column: 1 / -1; }
  .qf-table .qf-pick, .qf-table .qf-pick-btn { width: 100%; }
}

/* Wąskie telefony: wymiary 2 × 2, żeby zmieściła się np. długość 12000. */
@media (max-width: 420px) {
  .qf-table tr {
    position: relative;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "name name" "t w" "l q" "opts opts";
  }
  .qf-table td.qf-name, .qf-table td.qf-opts { grid-column: auto; grid-row: auto; }
  .qf-table td:nth-child(1) { grid-area: name; padding-right: 34px; }
  .qf-table td:nth-child(2) { grid-area: t; }
  .qf-table td:nth-child(3) { grid-area: w; }
  .qf-table td:nth-child(4) { grid-area: l; }
  .qf-table td:nth-child(5) { grid-area: q; }
  .qf-table td:nth-child(6) { grid-area: opts; }
  .qf-table td.qf-rm { position: absolute; top: 18px; right: 10px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .offer-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: 1fr; }
  .hero-badges { gap: 1.6rem; }
  .extra-body, .contact-note { padding: 28px; }
  .brand-text { font-size: 1.25rem; }
  .benefits-grid { grid-template-columns: 1fr; }
  .svc-cards { grid-template-columns: 1fr; }
  .cta-banner { padding: 26px; }
  .lens b { font-size: 1.1rem; }
  .reviews-grid { columns: 1; }
  .qf-grid { grid-template-columns: 1fr; }
  .quote-form { padding: 22px 16px; }
  /* Tabele wymiarów w kartach oferty: na wąskich telefonach ostatnia kolumna była ucinana. */
  .card-body { padding: 20px 16px; }
  .spec { font-size: 0.84rem; }
  .spec th, .spec td { padding: 0.45rem 0.4rem; }
  .spec th { letter-spacing: 0; }
}

@media (max-width: 360px) {
  .spec { font-size: 0.76rem; }
  .spec th { font-size: 0.7rem; }
  .spec th, .spec td { padding: 0.4rem 0.3rem; }
}
