/* =============================================
   BRUK-AGA-TRANS – Stylesheet
   Breakpoints: 360 / 768 / 1366 / 1920px
   ============================================= */

:root {
  --blue:       #1d6fa4;
  --blue-dark:  #13537c;
  --blue-light: #e8f4fd;
  --gray-900:   #111827;
  --gray-800:   #1f2937;
  --gray-700:   #374151;
  --gray-500:   #6b7280;
  --gray-300:   #d1d5db;
  --gray-100:   #f3f4f6;
  --white:      #ffffff;
  --font:       'Inter', system-ui, sans-serif;
  --radius:     0.75rem;
  --shadow:     0 4px 24px rgba(0,0,0,0.08);
  --shadow-md:  0 8px 40px rgba(0,0,0,0.14);
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--gray-800); background: var(--white); line-height: 1.65; overflow-x: hidden; }
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

.container  { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.section    { padding: 4.5rem 0; }
.bg-light   { background: var(--gray-100); }
.bg-dark    { background: var(--gray-900); color: var(--white); }

/* ---- DOSTĘPNOŚĆ ---- */
.skip-to-main {
  position: absolute; top: -48px; left: 0; z-index: 9999;
  background: var(--blue); color: var(--white);
  padding: 0.6rem 1.2rem; border-radius: 0 0 var(--radius) 0;
  font-weight: 700; font-size: 0.9rem;
  transition: top 0.2s;
}
.skip-to-main:focus { top: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- TYPOGRAPHY ---- */
h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); font-weight: 700; line-height: 1.2; margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 700; margin-bottom: 0.6rem; }
h4 { font-size: 1rem; font-weight: 700; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 700; font-size: 0.95rem;
  cursor: pointer; transition: all var(--transition);
  border: 2px solid transparent; white-space: nowrap;
  text-align: center;
}
.btn--primary     { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn--primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(29,111,164,.35); }
.btn--facebook    { background: #1877F2; color: var(--white); border-color: #1877F2; }
.btn--facebook:hover { background: #0d5fd4; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(24,119,242,.4); }
.btn--outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn--outline-white:hover { background: rgba(255,255,255,.15); border-color: var(--white); }
.btn--full        { width: 100%; }
.btn--cta-phone   { background: var(--blue); color: var(--white); border: 1.5px solid rgba(212,168,75,.8); font-size: 1.05rem; padding: 0.9rem 2rem; box-shadow: 0 0 16px rgba(212,168,75,.15); }
.btn--cta-phone:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(29,111,164,.45), 0 0 18px rgba(212,168,75,.25); }

/* =============================================
   NAWIGACJA
   ============================================= */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 0.7rem 0;
}
#header.scrolled {
  background: rgba(10,20,40,.97);
  /* backdrop-filter usunięty – na iOS Safari tworzy containing block dla position:fixed
     dzieci (nav__links), przez co menu po przewinięciu zamykało się wewnątrz headera */
  box-shadow: 0 2px 16px rgba(0,0,0,.35);
}
#header.scrolled .nav__logo-text  { color: var(--white); }
#header.scrolled .nav__toggle span { background: var(--white); }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: relative; }
.nav__logo { display: flex; align-items: center; gap: 0.5rem; }
.nav__logo-img { height: 46px; width: auto; object-fit: contain; }
.nav__logo-text { font-size: 1rem; font-weight: 900; color: var(--white); letter-spacing: 0.02em; }

/* nav__links – bezpośrednie dziecko headera
   Desktop: absolute po prawej stronie headera (zawsze widoczne, brak z-index konfliktów)
   Mobile:  ukryte; gdy .open – absolute inset:0 w fullscreen headerze */
.nav__links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  position: absolute;
  top: 0;
  right: max(1.25rem, calc((100vw - 1200px) / 2 + 1.25rem));
  height: 68px;
}

/* Przycisk zamknięcia menu – ukryty na desktopie, widoczny na mobile */
.nav__close-item { display: none; }
.nav__close {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.22);
  color: var(--white);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), transform var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.nav__close:hover  { background: rgba(255,255,255,.2); }
.nav__close:active { transform: scale(0.9); }
.nav__links a { color: var(--white); padding: 0.4rem 0.85rem; border-radius: 0.5rem; font-weight: 600; font-size: 0.9rem; transition: all var(--transition); }
.nav__links a:hover { color: var(--white); background: rgba(255,255,255,.12); }
.nav__cta { background: var(--blue); border: 1px solid rgba(255,255,255,.3) !important; border-radius: 0.5rem; }
.nav__cta--phone {
  background: #16a34a !important;
  border-color: #16a34a !important;
  position: relative;
  animation: navPhonePulse 2.4s ease-in-out infinite;
}
.nav__cta--phone:hover { background: #15803d !important; animation: none; transform: translateY(-1px); }

@keyframes navPhonePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,.55); }
  50%       { box-shadow: 0 0 0 7px rgba(22,163,74,0); }
}

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: rgba(10,20,40,.55); border: 1.5px solid rgba(255,255,255,.35); border-radius: 8px; cursor: pointer; padding: 0.45rem 0.55rem; position: relative; z-index: 110; }
.nav__toggle span { display: block; width: 24px; height: 2.5px; background: #ffffff; border-radius: 2px; transition: all var(--transition); }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   NAV SCENE – animacja koparki i wywrotki
   ============================================= */
.nav__scene {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
  height: 46px;
}
.nav__anim {
  width: 100%;
  max-width: 200px;
  height: 44px;
  overflow: visible;
}

/* Ramię obraca się wokół punktu (22, 17) w układzie SVG */
@keyframes navArm {
  0%, 18%   { transform: rotate(0deg); }
  33%, 50%  { transform: rotate(30deg); }
  65%       { transform: rotate(0deg); }
  100%      { transform: rotate(0deg); }
}
/* Wywrotka odjeżdża w prawo, wraca z lewej */
@keyframes navTruck {
  0%, 60%  { transform: translateX(0); }
  77%      { transform: translateX(210px); }
  78%      { transform: translateX(-235px); }
  94%      { transform: translateX(0); }
  100%     { transform: translateX(0); }
}
/* Piach rośnie w skrzyni, resetuje się poza ekranem */
@keyframes navLoad {
  0%, 46%   { transform: scaleY(0.04); }
  61%, 76%  { transform: scaleY(1); }
  87%       { transform: scaleY(0.04); }
  100%      { transform: scaleY(0.04); }
}
/* Pryzmka piachu zanika po załadunku */
@keyframes navSand {
  0%, 30%  { opacity: 0.75; }
  54%      { opacity: 0; }
  100%     { opacity: 0; }
}
/* Menu mobilne – płynne pojawianie */
@keyframes navMenuOpen {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav__arm {
  transform-box: view-box;
  transform-origin: 22px 17px;
  animation: navArm 6s ease-in-out infinite;
}
.nav__truck-group {
  animation: navTruck 6s linear infinite;
}
.nav__load {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: navLoad 6s ease-in-out infinite;
}
.nav__sand-pile {
  animation: navSand 6s ease-in-out infinite;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: var(--gray-900);
}
.hero__slideshow { position: absolute; inset: 0; z-index: 0; }
.hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease; }
.hero__slide.active { opacity: 1; }
/* Overlay – przyciemnia tylko lewą stronę (gdzie jest tekst), prawa strona pozostaje przezroczysta */
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: transparent;
}

/* ---- Statyczne tło hero z hero.png (desktop i mobile) ---- */
.hero__mobile-bg {
  display: block;
  position: absolute; inset: 0; z-index: 0;
  background: url('zdjecia/hero.png') center / cover no-repeat;
  animation: heroBgZoom 18s ease-in-out infinite alternate;
}
@keyframes heroBgZoom {
  from { transform: scale(1);    background-position: 52% center; }
  to   { transform: scale(1.07); background-position: 48% center; }
}

/* Slideshow i kontrolki – nieużywane przy statycznym tle */
.hero__slideshow          { display: none; }
.hero__arrow, .hero__dots { display: none; }

.hero__content {
  position: relative; z-index: 2;
  display: block;
  padding: 6rem 1.25rem 3.5rem;
  width: 100%;
  max-width: 900px;
}

/* Brand */
.hero__brand { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
.hero__logo-img { height: 64px; width: auto; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); }
.hero__brand-text {}

/* Nazwa firmy – wizualny label (element <p>) */
.hero__brand-label {
  color: var(--white);
  font-size: clamp(1.6rem, 4.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.04em;
  margin: 0;
  display: inline-block;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid rgba(212,168,75,.75);
  text-shadow: 0 2px 12px rgba(0,0,0,.85), 1px 1px 4px rgba(0,0,0,.95);
}

/* H1 – jedyny nagłówek H1, zawiera usługę + lokalizację (SEO) */
.hero__title {
  color: rgba(255,255,255,.92);
  font-size: clamp(0.95rem, 1.8vw, 1.35rem);
  font-weight: 600;
  line-height: 1.35;
  margin-top: 0.3rem;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 8px rgba(0,0,0,.9), 1px 1px 3px rgba(0,0,0,.8);
}
.hero__title-loc {
  display: block;
  font-size: 0.88em;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  margin-top: 0.1rem;
  letter-spacing: 0.02em;
}

.hero__location { color: #d4a84b; font-size: 1.05rem; font-weight: 600; margin-bottom: 1.2rem; letter-spacing: 0.04em; display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(0,0,0,.38); backdrop-filter: blur(6px); border: 1.5px solid rgba(212,168,75,.8); box-shadow: 0 0 10px rgba(212,168,75,.22); border-radius: 8px; padding: 0.35rem 0.9rem; }

/* Karty usług */
.hero__service-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.hero__service-card {
  background: rgba(0,0,0,.48);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(212,168,75,.8);
  box-shadow: 0 0 10px rgba(212,168,75,.22);
  border-radius: 10px;
  padding: 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: background 0.2s;
}
.hero__service-card:hover { background: rgba(0,0,0,.52); }
.hero__svc-icon { width: 30px; height: 30px; flex-shrink: 0; margin-bottom: 0.2rem; }
.hero__service-card strong { color: var(--white); font-size: 0.97rem; font-weight: 700; line-height: 1.25; }
.hero__service-card span  { color: rgba(255,255,255,.62); font-size: 0.8rem; line-height: 1.45; }

/* CTA */
.hero__cta { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.5rem; }

/* Statystyki */
.hero__stats { display: flex; gap: 1.5rem; flex-wrap: wrap; padding: 0.75rem 1.2rem; background: rgba(0,0,0,.48); backdrop-filter: blur(6px); border: 1.5px solid rgba(212,168,75,.8); box-shadow: 0 0 10px rgba(212,168,75,.22); border-radius: 10px; }
.hero__stat strong { display: block; font-size: 1.5rem; font-weight: 900; color: var(--white); line-height: 1; }
.hero__stat span   { font-size: 0.72rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: 0.05em; }

/* =============================================
   HERO STATYSTYKI – desktop: osobna ramka, 4 kolumny, złote piony
   ============================================= */
@media (min-width: 769px) {
  .hero__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 0;
    flex-wrap: initial;
    align-items: stretch;
  }
  .hero__stat {
    padding: 0.8rem 1.25rem;
    border-right: 1.5px solid rgba(212,168,75,.8); /* identyczna grubość i kolor co ramka */
    text-align: center;
  }
  .hero__stat:last-child {
    border-right: none;
  }
  .hero__stat strong {
    display: block;
    font-size: 1.55rem;
    line-height: 1.1;
  }
  .hero__stat span {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
  }
}

/* Hero prawy panel – mozaika zdjęć */
.hero__right { display: flex; align-items: center; }

/* =============================================
   HERO CTA ROW – przyciski pod statystykami (desktop)
   ============================================= */
.hero__cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
  align-items: center;
}

/* Zielony przycisk telefon z pulsującą animacją */
.hero__btn-phone {
  position: relative;
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 0.6rem;
  padding: 0.72rem 1.4rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  overflow: visible;
  animation: heroBtnPulse 2.2s ease-in-out infinite;
  transition: background 0.2s, transform 0.2s;
}
.hero__btn-phone:hover { background: #15803d; animation: none; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(22,163,74,.45); }

/* Pierścień pulsujący */
.hero__btn-phone-ring {
  position: absolute;
  inset: -4px;
  border-radius: 0.85rem;
  border: 2.5px solid rgba(22,163,74,.7);
  animation: heroBtnRing 2.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroBtnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,.6), 0 4px 14px rgba(22,163,74,.35); }
  50%       { box-shadow: 0 0 0 10px rgba(22,163,74,0), 0 4px 14px rgba(22,163,74,.35); }
}
@keyframes heroBtnRing {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0; transform: scale(1.18); }
}

/* Niebieski Facebook */
.hero__btn-fb {
  background: #1877F2;
  color: #fff;
  border: none;
  border-radius: 0.6rem;
  padding: 0.72rem 1.3rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.hero__btn-fb:hover { background: #0d5fd4; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(24,119,242,.45); }

/* Wycena – złoty kontur */
.hero__btn-wycena {
  background: rgba(0,0,0,.45);
  color: #fff;
  border: 1.5px solid rgba(212,168,75,.85);
  border-radius: 0.6rem;
  padding: 0.72rem 1.3rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  backdrop-filter: blur(6px);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.hero__btn-wycena:hover { background: rgba(212,168,75,.18); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,168,75,.3); }

/* Ukryj na mobile – tam jest sticky CTA bar */
@media (max-width: 768px) { .hero__cta-row { display: none; } }

/* =============================================
   HERO MOSAIC
   ============================================= */
.hero__mosaic {
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: 215px 215px;
  gap: 6px;
  width: 100%;
  border-radius: calc(var(--radius)*1.5);
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.12);
}

/* Duże zdjęcie – zajmuje obie wiersze lewej kolumny */
.hero__mosaic-main {
  grid-column: 1;
  grid-row: 1 / 3;
  position: relative;
  overflow: hidden;
}

/* Małe zdjęcia – prawa kolumna, po jednym wierszu */
.hero__mosaic-sm {
  grid-column: 2;
  position: relative;
  overflow: hidden;
}

/* Pojedyncze zdjęcie w slocie */
.mosaic-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.3s ease;
}

.mosaic-img.active {
  opacity: 1;
  animation: mosaicZoom 9s ease-in-out infinite alternate;
}

@keyframes mosaicZoom {
  from { transform: scale(1);    }
  to   { transform: scale(1.07); }
}

/* Strzałki */
.hero__arrow {
  position: absolute; z-index: 5;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: var(--white); width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.6rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition); backdrop-filter: blur(4px);
  top: 50%; transform: translateY(-50%);
}
.hero__arrow:hover { background: rgba(255,255,255,.25); }
.hero__arrow--prev { left: 1.25rem; }
.hero__arrow--next { right: 1.25rem; }

/* Kropki */
.hero__dots { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 0.5rem; }
.hero__dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); cursor: pointer; transition: all var(--transition); border: none; }
.hero__dot.active { background: var(--white); width: 24px; border-radius: 4px; }

/* =============================================
   DLACZEGO MY
   ============================================= */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.why-item { text-align: center; padding: 2rem 1.5rem; border-right: 1px solid rgba(255,255,255,.08); }
.why-item:last-child { border-right: none; }
.why-icon { font-size: 2rem; display: block; margin-bottom: 0.75rem; }
.why-item strong { display: block; font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 0.4rem; }
.why-item p { font-size: 0.85rem; color: rgba(255,255,255,.55); }

/* =============================================
   SECTION HEADER
   ============================================= */
.section__header { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section__tag { display: inline-block; color: var(--blue); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.6rem; background: var(--blue-light); padding: 0.28rem 0.85rem; border-radius: 2rem; }
.section__header p { color: var(--gray-500); font-size: 1rem; margin-top: 0.5rem; }

/* =============================================
   USŁUGI – dwa bloki
   ============================================= */
.services-split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.service-block { border-radius: calc(var(--radius)*1.5); overflow: hidden; box-shadow: var(--shadow-md); background: var(--white); display: flex; flex-direction: column; }
.service-block__img { position: relative; height: 240px; flex-shrink: 0; }
.service-block__img img { width: 100%; height: 100%; object-fit: cover; }
.service-block__badge { position: absolute; bottom: 1rem; left: 1rem; background: var(--blue); color: var(--white); padding: 0.35rem 0.85rem; border-radius: 0.5rem; font-size: 0.82rem; font-weight: 700; }
.service-block__body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; gap: 0.75rem; }
.service-block__body h3 { font-size: 1.25rem; color: var(--gray-900); }
.service-block__body p  { color: var(--gray-500); font-size: 0.92rem; }

/* Checklist */
.check-list { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.5rem; }
.check-list li { font-size: 0.88rem; color: var(--gray-700); padding-left: 1.4rem; position: relative; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

/* Maszyny */
.machines-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.machine-card { background: var(--gray-100); border-radius: var(--radius); padding: 1.5rem; text-align: center; border: 1px solid var(--gray-300); }
.machine-card:hover { box-shadow: none; }
.machine-card__icon { font-size: 2.2rem; margin-bottom: 0.6rem; }
.machine-card h4 { color: var(--gray-900); margin-bottom: 0.35rem; }
.machine-card p { font-size: 0.85rem; color: var(--gray-500); }

/* =============================================
   GALERIA
   ============================================= */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.gallery__item {
  border-radius: calc(var(--radius) + 7px);
  overflow: hidden;          /* przycina skalowanie zdjęcia */
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  padding: 7px;              /* tu maluje się kostka brukowa */
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.13);
}
.gallery__item:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.22);
}
/*
  Nakładka ramki brukowej – position:absolute; inset:0 wypełnia cały
  padding-box rodzica (content + 7px dookoła). Maska CSS wycina środek
  (content-box nakładki) i pokazuje kostkę TYLKO w 7px pasie ramki.
  z-index:10 gwarantuje że kostka jest ZAWSZE nad zdjęciem.
*/
.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  padding: 7px;              /* content-box ::after = content-box rodzica */
  border-radius: inherit;
  background-image: var(--brick-url);
  background-size: 32px 20px;
  /* Maska: pokaż TYLKO obszar padding (= ramkę 7px) */
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: destination-out;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  z-index: 10;
  pointer-events: none;
}
.gallery__item img { width: 100%; height: 210px; object-fit: cover; border-radius: calc(var(--radius) - 2px); transition: transform 0.4s ease; display: block; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__caption { padding: 0.65rem 0.9rem; font-size: 0.83rem; font-weight: 600; color: var(--gray-700); background: var(--white); border-radius: 0 0 calc(var(--radius) - 2px) calc(var(--radius) - 2px); }

/* =============================================
   DEWELOPERZY
   ============================================= */
.section--deweloperzy {
  padding: 2rem 0;
}
.deweloperzy__label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}
.deweloperzy__grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.deweloperzy__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0.82;
  transition: opacity 0.2s;
}
.deweloperzy__item:hover { opacity: 1; }
.deweloperzy__item img {
  height: 52px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter 0.2s;
}
.deweloperzy__item:hover img { filter: grayscale(0%); }
.deweloperzy__item span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  max-width: 180px;
  line-height: 1.35;
}

@media (max-width: 768px) {
  .deweloperzy__grid { gap: 2rem; }
  .deweloperzy__item img { height: 40px; max-width: 140px; }
}

/* =============================================
   MATERIAŁY – skąd bierzemy materiały
   ============================================= */
.section--materialy {
  padding: 2rem 0 2.5rem;
  background: #fff;
}
.materialy__label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  margin-bottom: 0.6rem;
}
.materialy__desc {
  text-align: center;
  font-size: 0.88rem;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto 1.6rem;
  line-height: 1.6;
}
.materialy__grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.materialy__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  opacity: 0.82;
  transition: opacity 0.2s, transform 0.2s;
}
.materialy__item:hover { opacity: 1; transform: translateY(-2px); }
.materialy__item img {
  height: 52px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter 0.2s;
}
.materialy__item:hover img { filter: grayscale(0%); }
.materialy__item span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  max-width: 180px;
  line-height: 1.35;
}

@media (max-width: 768px) {
  .materialy__grid { gap: 2rem; }
  .materialy__item img { height: 40px; max-width: 140px; }
  .materialy__desc { font-size: 0.83rem; padding: 0 0.5rem; }
}

/* =============================================
   KOSTKA BRUKOWA – ramka
   ============================================= */

/* SVG tile: running-bond paving stones 32×20px */
:root {
  --brick-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='20'%3E%3Crect width='32' height='20' fill='%23424242'/%3E%3Crect x='1' y='1' width='30' height='8' rx='1.2' fill='%23888'/%3E%3Crect x='1' y='11' width='13' height='8' rx='1.2' fill='%237a7a7a'/%3E%3Crect x='17' y='11' width='14' height='8' rx='1.2' fill='%23969696'/%3E%3C/svg%3E");
}

/* Wrapper div używany dla service-block i machine-card */
.brick-frame {
  display: flex;
  padding: 8px;
  border-radius: calc(var(--radius)*1.5 + 8px);
  background-image: var(--brick-url);
  background-size: 32px 20px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.35), 0 4px 18px rgba(0,0,0,.12);
}
.brick-frame .service-block {
  flex: 1;
  min-width: 0;
}
.brick-frame--sm {
  display: flex;
  padding: 7px;
  border-radius: calc(var(--radius) + 7px);
  background-image: var(--brick-url);
  background-size: 32px 20px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.35), 0 4px 18px rgba(0,0,0,.12);
  transition: transform var(--transition), box-shadow var(--transition);
}
.brick-frame--sm:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.35), 0 8px 28px rgba(0,0,0,.2);
}
.brick-frame--sm .machine-card {
  flex: 1;
}


/* =============================================
   ZŁOTA LINIA PODZIAŁU – shimmer
   ============================================= */
.gold-divider {
  position: relative;
  display: block;
  width: 100%;
  height: 3px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212,168,75,.2) 10%,
    rgba(212,168,75,.8) 35%,
    #f0c84a 50%,
    rgba(212,168,75,.8) 65%,
    rgba(212,168,75,.2) 90%,
    transparent 100%
  );
  /* Poświata – widoczna ponad overflow:hidden bo box-shadow nie jest clipowana */
  filter: drop-shadow(0 0 5px rgba(212,168,75,.6)) drop-shadow(0 0 12px rgba(212,168,75,.3));
}
/* Ruchomy blask przesuwający się po linii */
.gold-divider::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,245,180,.0) 20%,
    rgba(255,245,180,.9) 50%,
    rgba(255,245,180,.0) 80%,
    transparent 100%
  );
  animation: goldShimmer 3s ease-in-out infinite;
}
@keyframes goldShimmer {
  0%   { left: -60%; }
  100% { left: 110%; }
}

/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.93); z-index: 200; align-items: center; justify-content: center; padding: 1.5rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: var(--radius); }
.lightbox__close { position: absolute; top: 1.25rem; right: 1.25rem; color: var(--white); font-size: 2rem; background: none; border: none; cursor: pointer; opacity: .8; }
.lightbox__close:hover { opacity: 1; }

/* =============================================
   OBSZAR
   ============================================= */
.obszar__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.obszar__text .section__tag { display: inline-block; margin-bottom: 0.6rem; }
.obszar__text > p { color: var(--gray-500); margin: 0.75rem 0 1.25rem; }
.miejscowosci { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.miejscowosci span { background: var(--blue-light); color: var(--blue-dark); padding: 0.3rem 0.8rem; border-radius: 2rem; font-size: 0.83rem; font-weight: 600; }
.obszar__btns { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.25rem; align-items: center; }
.google-map { width: 100%; height: 360px; border-radius: calc(var(--radius)*1.5); border: 0; box-shadow: var(--shadow-md); }

/* =============================================
   KONTAKT
   ============================================= */
.kontakt__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.kontakt__info { display: flex; flex-direction: column; gap: 1.5rem; }
.kontakt__item { display: flex; gap: 0.9rem; align-items: flex-start; }
.kontakt__item-icon { font-size: 1.4rem; flex-shrink: 0; width: 1.75rem; display: flex; align-items: flex-start; justify-content: center; margin-top: 0.1rem; }
.kontakt__item strong { display: block; font-weight: 700; margin-bottom: 0.15rem; }
.kontakt__item p  { color: var(--blue); font-weight: 600; font-size: 1rem; }
.kontakt__item a  { color: var(--blue); }
.kontakt__item a:hover { text-decoration: underline; }
.kontakt__item small { color: var(--gray-500); font-size: 0.8rem; }
.kontakt__cta-btns { display: flex; flex-direction: column; gap: 0.65rem; }
.kontakt__note { background: var(--blue-light); border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.1rem 1.25rem; font-size: 0.88rem; color: var(--gray-700); }
.kontakt__note strong { display: block; margin-bottom: 0.4rem; }

/* Formularz */
.kontakt__form { background: var(--white); border-radius: calc(var(--radius)*1.5); padding: 2.25rem; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.9rem; }
.form-group label { font-size: 0.83rem; font-weight: 600; color: var(--gray-700); }
.form-group input, .form-group select, .form-group textarea { padding: 0.62rem 0.88rem; border: 1.5px solid var(--gray-300); border-radius: 0.5rem; font-family: var(--font); font-size: 0.93rem; color: var(--gray-800); background: var(--white); transition: border-color var(--transition), box-shadow var(--transition); outline: none; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,111,164,.12); }
.form__note    { font-size: 0.76rem; color: var(--gray-500); margin-top: 0.65rem; text-align: center; }
.form__success { background: #d1fae5; color: #065f46; padding: 0.9rem; border-radius: 0.5rem; text-align: center; font-weight: 600; margin-top: 0.75rem; }

/* =============================================
   STOPKA
   ============================================= */
.footer { background: var(--gray-900); color: rgba(255,255,255,.65); padding: 2.25rem 0; font-size: 0.88rem; }
.footer__inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: flex-start; gap: 0.85rem; }
.footer__logo-img { height: 48px; width: auto; object-fit: contain; flex-shrink: 0; }
.footer__brand strong { display: block; color: var(--white); font-size: 0.95rem; margin-bottom: 0.2rem; }
.footer__brand p { font-size: 0.8rem; line-height: 1.6; }
.footer__links { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; }
.footer__links a { color: rgba(255,255,255,.55); transition: color var(--transition); font-size: 0.85rem; }
.footer__links a:hover { color: var(--white); }
.footer__copy { text-align: right; }
.footer__copy p { font-size: 0.8rem; line-height: 1.7; }

/* =============================================
   STICKY MOBILE CTA BAR
   ============================================= */
/* ── ANIMACJE PRZYCISKÓW ─────────────────────────────── */
@keyframes phoneShake {
  0%, 30%, 100% { transform: rotate(0deg); }
  5%  { transform: rotate(-16deg); }
  10% { transform: rotate(16deg); }
  15% { transform: rotate(-10deg); }
  20% { transform: rotate(10deg); }
  25% { transform: rotate(-4deg); }
}
@keyframes phoneGlow {
  0%, 100% { box-shadow: 0 4px 18px rgba(22,163,74,.45); }
  50%       { box-shadow: 0 4px 30px rgba(22,163,74,.75), 0 0 0 5px rgba(22,163,74,.18); }
}
@keyframes fbPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.14); }
}

/* ── PASEK KONTAKTOWY – 2 pływające przyciski ────────── */
.mobile-cta {
  display: none;
  position: fixed;
  /* unosi się NAD krawędzią – safe-area + margines; zero rozlewającego się koloru */
  bottom: calc(env(safe-area-inset-bottom, 0px) + 0.55rem);
  left: 0.6rem;
  right: 0.6rem;
  z-index: 90;
  flex-direction: row;
  gap: 0.5rem;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
.mobile-cta__phone {
  flex: 3;
  background: #16a34a;
  color: var(--white);
  border-radius: 50px;
  padding: 0.85rem 1rem;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  animation: phoneGlow 2.5s ease-in-out infinite;
  transition: transform 0.12s ease, filter 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.mobile-cta__phone svg {
  flex-shrink: 0;
  animation: phoneShake 3.5s ease-in-out infinite;
}
.mobile-cta__phone:active { transform: scale(0.95); filter: brightness(.88); }

.mobile-cta__fb {
  flex: 1;
  background: #1877F2;
  color: var(--white);
  border-radius: 50px;
  padding: 0.85rem 0.6rem;
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(24,119,242,.4);
  transition: transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.mobile-cta__fb svg {
  flex-shrink: 0;
  animation: fbPulse 2.8s ease-in-out infinite;
  animation-delay: 0.7s;
}
.mobile-cta__fb:active { transform: scale(0.95); }

/* Back to top */
.back-to-top { position: fixed; bottom: 1.75rem; right: 1.75rem; width: 42px; height: 42px; background: var(--blue); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; box-shadow: 0 4px 16px rgba(29,111,164,.4); opacity: 0; pointer-events: none; transition: all var(--transition); z-index: 50; }
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--blue-dark); transform: translateY(-2px); }

/* Animacje */
.animate-prepare { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; }
.animate-in { opacity: 1 !important; transform: translateY(0) !important; }

/* =============================================
   RESPONSIVE – desktop (>768px) – nav poza headerem
   ============================================= */
/* Desktop: nav__links to zwykły flex child wewnątrz fixed headera – brak potrzeby własnego position:fixed */

/* =============================================
   RESPONSIVE – 1366px (laptop)
   ============================================= */
@media (max-width: 1366px) {
  .container { max-width: 1100px; }
  .why-grid  { grid-template-columns: repeat(4, 1fr); }
}

/* =============================================
   RESPONSIVE – 1024px
   ============================================= */
@media (max-width: 1024px) {

  .services-split { grid-template-columns: 1fr; }
  .service-block { flex-direction: row; }
  .service-block__img { width: 260px; height: auto; flex-shrink: 0; }
  .service-block__img img { height: 100%; }
  .machines-row  { grid-template-columns: repeat(3, 1fr); }
  .gallery       { grid-template-columns: repeat(3, 1fr); }
  .obszar__inner { grid-template-columns: 1fr; gap: 2rem; }
  .kontakt__grid { grid-template-columns: 1fr; }
  .why-grid      { grid-template-columns: repeat(2, 1fr); }
  .why-item      { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .why-item:nth-child(3), .why-item:last-child { border-bottom: none; }
}

/* =============================================
   RESPONSIVE – 768px (tablet)
   ============================================= */
@media (max-width: 768px) {
  .section { padding: 3rem 0; }

  /* Sticky mobile CTA – padding uwzględnia safe-area (notch, home indicator) */
  /* Pływające przyciski mają ~54px + 0.55rem + safe-area od dołu */
  body { padding-bottom: calc(4.2rem + env(safe-area-inset-bottom, 0px)); }
  .mobile-cta { display: flex; }
  .back-to-top { bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)); }

  /* Nav scene – ukryj na mobile */
  .nav__scene { display: none; }

  /* Przycisk X – widoczny w otwartym menu mobilnym */
  .nav__close-item {
    display: block;
    position: absolute;
    top: 1rem; right: 1rem;
    width: auto !important; max-width: none !important;
    background: none; border: none; padding: 0;
  }

  /* Nav mobile – nav__links ukryte; header fullscreen gdy menu otwarte */
  .nav__links {
    display: none;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    height: auto; /* nadpisuje desktop height:68px */
    background: var(--gray-900);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 0.5rem;
    overflow-y: auto;
    z-index: 1;
  }
  .nav__links.open {
    display: flex;
    animation: navMenuOpen 0.25s ease forwards;
  }
  /* Header rozciąga się do pełnego ekranu gdy menu otwarte */
  #header.menu-open {
    bottom: 0;
    background: var(--gray-900);
  }
  .nav__links li { width: 100%; max-width: 340px; }
  .nav__links a {
    font-size: 1.3rem;
    padding: 0.95rem 1.5rem;
    display: block;
    text-align: center;
    border-radius: 0.75rem;
    color: var(--white);
    border: 1px solid rgba(255,255,255,.06);
  }
  .nav__links a:hover,
  .nav__links a:focus { background: rgba(255,255,255,.08); }
  .nav__links .nav__cta {
    background: var(--blue) !important;
    border-color: var(--blue) !important;
    margin-top: 0.75rem;
    font-size: 1.15rem;
  }
  .nav__toggle     { display: flex; }
  /* Ukryj duplikat nazwy firmy w nav – widnieje już w hero __brand-label */
  .nav__logo-text  { display: none; }

  /* ── HERO MOBILE ────────────────────────────────────── */

  /* Tło przeniesione BEZPOŚREDNIO na .hero – własne tło elementu nie może wyjść poza jego granice.
     .hero__mobile-bg (position:absolute) ukrywamy – był źródłem osobnej warstwy GPU na iOS
     która przy scrollowaniu "wyskakiwała" spod sekcji poniżej.                               */
  .hero__mobile-bg {
    display: none !important;
  }

  .hero {
    height: calc(100dvh - 62px - env(safe-area-inset-bottom, 0px));
    min-height: unset;
    align-items: flex-start;
    overflow: hidden;
    /* Tło bezpośrednio na elemencie – 100% niezawodne, iOS nie może go "wypchnąć" */
    background-image: url('zdjecia/hero-mobile.png') !important;
    background-attachment: scroll !important;
    background-size: cover !important;
    background-position: top center !important;
    /* Brak transform/will-change – brak osobnych warstw GPU */
    transform: none;
    will-change: auto;
  }

  /* ZERO overlay */
  .hero__overlay { background: transparent; }

  /* Content wypełnia całą wysokość hero flexem – statystyki przyklejone do dołu */
  .hero__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    min-height: unset;
    padding: 4.2rem 1.1rem 0.75rem;
    box-sizing: border-box;
    grid-template-columns: unset;
  }
  .hero__right { display: none; }

  /* Nagłówki – cień dla czytelności na jasnym tle */
  .hero__brand-label {
    font-size: clamp(1.55rem, 7vw, 2rem);
    text-shadow: 1px 1px 3px rgba(0,0,0,.9), 0 2px 10px rgba(0,0,0,.8);
    margin-bottom: 0;
    padding-bottom: 0.2rem;
  }
  .hero__title {
    font-size: 0.9rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,.9);
    margin-top: 0.1rem;
    margin-bottom: 0;
  }

  /* Lokalizacja – pill z ciemnym tłem */
  .hero__location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: rgba(0,0,0,.48);
    border-radius: 6px;
    border: 1.5px solid rgba(212,168,75,.8);
    box-shadow: 0 0 10px rgba(212,168,75,.22);
    padding: 0.38rem 0.75rem;
    font-size: 0.88rem;
    white-space: nowrap;
    text-shadow: 1px 1px 3px rgba(0,0,0,.9);
    margin-bottom: 0.6rem;
    margin-top: 4rem;
    align-self: stretch;
  }
  .hero__title-loc { display: none; }
  .hero__logo-img  { height: 42px; }

  /* Kompaktowe karty usług – grid dla idealnego wyrównania ikon/tytułów/opisów */
  .hero__service-cards {
    grid-template-columns: 1fr;
    gap: 0.28rem;
    margin-bottom: 0.5rem;
  }
  .hero__service-card {
    /* CSS Grid: kolumna ikony (22px) + kolumna tekstu (reszta) */
    display: grid;
    grid-template-columns: 22px 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.62rem;
    row-gap: 0.06rem;
    align-items: center;
    padding: 0.48rem 0.85rem;
    background: rgba(0,0,0,.48);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 7px;
    border: 1.5px solid rgba(212,168,75,.8);
    box-shadow: 0 0 10px rgba(212,168,75,.22);
    flex-direction: unset; /* reset base flex */
  }
  /* Ikona: rozciąga się na oba wiersze, wyśrodkowana */
  .hero__svc-icon {
    grid-column: 1; grid-row: 1 / 3;
    width: 20px; height: 20px;
    align-self: center; flex-shrink: 0; margin: 0;
  }
  /* Tytuł: wiersz 1, kolumna 2 */
  .hero__service-card strong {
    grid-column: 2; grid-row: 1;
    font-size: 0.82rem; font-weight: 700; line-height: 1.2;
  }
  /* Opis: wiersz 2, kolumna 2 */
  .hero__service-card > span {
    grid-column: 2; grid-row: 2;
    font-size: 0.71rem; line-height: 1.3;
  }

  /* Statystyki – jedna linia, widoczny kolor opisu */
  .hero__stats {
    display: flex;
    flex-wrap: nowrap;           /* JEDEN RZĄD – żaden stat nie spada na dół */
    justify-content: space-between;
    align-items: flex-start;
    gap: 0;
    padding: 0.38rem 0.7rem;
    margin-top: auto;
    background: rgba(0,0,0,.48);
    border-radius: 7px;
    border: 1.5px solid rgba(212,168,75,.8);
    box-shadow: 0 0 10px rgba(212,168,75,.22);
    align-self: stretch;         /* rozciągnij na pełną szerokość content */
  }
  .hero__stat {
    flex: 1;
    min-width: 0;
    text-align: center;
  }
  .hero__stat strong {
    font-size: 0.88rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,.9);
    white-space: nowrap;
    display: block;
  }
  .hero__stat span {
    font-size: 0.52rem;
    color: rgba(255,255,255,.88);  /* wyraźnie widoczny – był .5 */
    text-shadow: 1px 1px 3px rgba(0,0,0,.9);
    white-space: nowrap;
    letter-spacing: 0.02em;
  }

  /* Why – bardziej ubita sekcja na mobile */
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-item { padding: 1.1rem 0.9rem; }
  .why-icon { font-size: 1.5rem; margin-bottom: 0.4rem; }
  .why-item strong { font-size: 0.88rem; margin-bottom: 0.2rem; }
  .why-item p { font-size: 0.75rem; }

  /* Usługi */
  .service-block { flex-direction: column; }
  .service-block__img { width: 100%; height: 200px; }
  .machines-row { grid-template-columns: 1fr; }

  /* Karty maszyn – poziomo na telefonie */
  .machine-card {
    display: flex; align-items: center;
    gap: 1rem; text-align: left; padding: 1.1rem 1.4rem;
  }
  .machine-card__icon { font-size: 2.2rem; margin-bottom: 0; flex-shrink: 0; }

  /* Galeria */
  .gallery { grid-template-columns: repeat(2, 1fr); }

  /* Kontakt */
  .form-row { grid-template-columns: 1fr; }
  .kontakt__form { padding: 1.5rem; }

  /* Stopka */
  .footer__inner { flex-direction: column; gap: 1.5rem; }
  .footer__copy  { text-align: left; }
}

/* =============================================
   RESPONSIVE – 390px (iPhone standard)
   ============================================= */
@media (max-width: 390px) {
  .hero__logo-img  { height: 42px; }
  .hero__title     { font-size: 0.95rem; }
  /* karty pozostają 1-kolumnowe i kompaktowe */
  .hero__service-cards { grid-template-columns: 1fr; }
  .hero__stats     { gap: 0.5rem 0.8rem; }
  .hero__stat strong { font-size: 1rem; }
  .machines-row    { grid-template-columns: 1fr; gap: 0.75rem; }
  .machine-card    { padding: 1rem 1.2rem; }
  .gallery         { grid-template-columns: 1fr 1fr; }
  .why-grid        { grid-template-columns: 1fr 1fr; }
  .mobile-cta__phone { font-size: 0.92rem; }
}

/* =============================================
   RESPONSIVE – 360px (małe telefony)
   ============================================= */
@media (max-width: 360px) {
  .container { padding: 0 0.9rem; }
  .hero__brand { gap: 0.5rem; }
  .hero__logo-img { height: 36px; }
  .hero__title { font-size: 0.9rem; }
  /* 1 kolumna, jeszcze ciaśniej */
  .hero__service-cards { grid-template-columns: 1fr; gap: 0.22rem; }
  .hero__service-card  { padding: 0.32rem 0.65rem; }
  .machines-row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .btn--cta-phone { font-size: 0.92rem; padding: 0.8rem 1.2rem; }
}

/* =============================================
   RESPONSIVE – 1920px (Full HD desktop)
   ============================================= */
@media (min-width: 1920px) {
  .container { max-width: 1400px; }
  .hero__content { max-width: 960px; }
  .hero__service-cards { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .gallery__item img { height: 240px; }
  h1 { font-size: 3.4rem; }
  h2 { font-size: 2.6rem; }
  .section { padding: 5.5rem 0; }
}
