/* ============================================================
   SIWICKI Bauunternehmung — styl strony
   PAKIET POPRAWEK 1 (2026-07-23): pełny ciemny motyw — czerń/grafit/
   ciemne szarości + firmowy pomarańczowy jako akcent (zastępuje niebieski).
   Uwaga: logo źródłowe nie zawiera pomarańczu (czerń/biel/szarość/niebieski
   okno) — pomarańczowy to nowy akcent UI wprowadzony na wyraźne życzenie
   właściciela w tym pakiecie, nie wyodrębniony z logo. Patrz raport.
   ============================================================ */
:root {
  --ink: #0b0d10;
  --ink-92: rgba(7, 8, 10, 0.94);
  --graphite: #14171b;
  --surface-1: #0e1114;
  --surface-2: #15191e;
  --card-dark: #1c2127;
  --card-line: rgba(255, 255, 255, 0.09);
  --steel: #2a313a;
  --text: #eef1f4;
  --muted: #b6bfc8;
  --muted-light: #8b94a1;
  --chip-bg: rgba(255, 255, 255, 0.06);
  --chip-border: rgba(255, 255, 255, 0.14);
  --white: #ffffff;
  --accent: #ee7d26;
  --accent-dark: #c7631a;
  --accent-light: #ffc08a;
  --accent-ink: var(--ink);
  --wa: #22c15e;
  --wa-dark: #1ba152;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 55px rgba(0, 0, 0, 0.55);
  --radius: 14px;
  --header-h: 68px;
  --hero-edge: clamp(20px, 8vw, 112px);   /* PAKIET 2: ~3 cm od lewej krawędzi na desktopie; responsywnie mniej na mobile */
  --hero-max: 1040px;                       /* szerokość lewej kolumny hero — mieści 3 przyciski w jednym rzędzie */
  --call-blue: #3b8fd4;                     /* niebieski przycisku „Zadzwoń" — 1. wersja strony, pasuje do okna w logo */
  --call-blue-dark: #2f74ac;
  /* aliasy wsteczne — na wypadek nieuwzględnionego gdzieś odwołania */
  --line: var(--card-line);
  --bg: var(--card-dark);
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .brand img {
    transition-duration: 0.01ms;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ---------- HEADER ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: var(--ink-92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner {
  max-width: none; margin: 0; padding: 0 var(--hero-edge);
  height: 100%; display: flex; align-items: center; gap: 18px;
}
.brand {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  align-self: flex-start; /* logo zakotwiczony u góry, może "zwisać" poniżej paska headera na hero */
  position: relative; z-index: 2;
  width: calc(92px * 845 / 323);
  height: 92px;
  transition: height 0.22s ease;
}
.brand img {
  position: absolute; inset: 0 auto auto 0;
  width: 100%; height: auto;
  pointer-events: none;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
  transition: opacity 0.18s ease, transform 0.22s ease, visibility 0s linear 0s;
}
.brand-logo-compact {
  opacity: 0;
  transform: translateY(-3px);
  visibility: hidden;
}
.site-header.is-scrolled .brand {
  height: calc(92px * 230 / 323);
}
.site-header.is-scrolled .brand-logo-full {
  opacity: 0;
  transform: translateY(-3px);
  visibility: hidden;
  transition-delay: 0s, 0s, 0.18s;
}
.site-header.is-scrolled .brand-logo-compact {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: rgba(255, 255, 255, 0.72); font-size: 0.95rem; font-weight: 600;
  padding: 8px 12px; border-radius: 8px; position: relative; white-space: nowrap;
  transition: color 0.2s;
}
.main-nav a:hover { color: #fff; }
.main-nav a.active { color: #fff; }
.main-nav a.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.lang-switch {
  display: flex; gap: 2px; margin-left: 10px; flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08); border-radius: 999px; padding: 3px;
}
.lang-switch button {
  color: rgba(255, 255, 255, 0.65); font-size: 0.8rem; font-weight: 700;
  padding: 5px 12px; border-radius: 999px; letter-spacing: 0.04em;
}
.lang-switch button.active { background: var(--accent); color: var(--accent-ink); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.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); }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: flex; align-items: center;
  color: #fff; overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 90px;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, rgba(5, 6, 8, 0.94) 0%, rgba(8, 10, 13, 0.82) 42%, rgba(10, 14, 18, 0.45) 100%);
}
.hero-content { max-width: 780px; }
/* PAKIET 2 (T3): lewa kolumna hero — logo, ramka lokalizacji, tytuł i przyciski
   wyrównane do ~3 cm od lewej krawędzi (var(--hero-edge)), spójnie z logo w headerze */
.hero .hero-content {
  width: min(var(--hero-max), calc(100% - var(--hero-edge)));
  max-width: none;
  margin-left: var(--hero-edge);
  margin-right: auto;
  padding-left: 0;
  padding-right: 22px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
  cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s;
}
/* PAKIET 3 (zad. 6/7): brak dekoracyjnej kropki. Jedna kolorowa pinezka Google Maps przed tekstem. */
.hero-badge .maps-pin { width: 17px; height: 17px; flex-shrink: 0; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)); }
.hero-badge .hero-badge-text { display: inline-block; }
.hero-badge:hover, .hero-badge:focus-visible {
  background: rgba(255, 255, 255, 0.17); border-color: rgba(255, 255, 255, 0.32); color: #fff;
}
.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  line-height: 1.12; font-weight: 800; letter-spacing: -0.015em;
  margin-bottom: 16px;
}
.hero-title-line { display: block; }   /* PAKIET 2 (T4): desktop = dokładnie 2 wiersze */
.hero-subtitle {
  font-size: clamp(1.02rem, 1.7vw, 1.25rem); font-weight: 600;
  color: var(--accent-light); max-width: 620px; margin-bottom: 22px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.65), 0 1px 18px rgba(0, 0, 0, 0.55);
}
.hero-feature {
  height: 34px; display: flex; align-items: center; gap: 10px;
  font-size: clamp(0.98rem, 1.5vw, 1.15rem); font-weight: 700; color: #fff;
  margin-bottom: 30px;
}
.hero-feature .tick {
  width: 22px; height: 22px; flex-shrink: 0; border-radius: 6px;
  background: var(--accent); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
}
.hero-feature .feature-text { opacity: 1; transition: opacity 0.45s; }
.hero-feature .feature-text.fading { opacity: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 800; font-size: 1.02rem; border-radius: 12px;
  padding: 15px 26px; transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}
.btn svg { flex-shrink: 0; }
/* PAKIET 2 (T1): przycisk „Zadzwoń" przywrócony do niebieskiego z 1. wersji (pasuje do logo). WhatsApp bez zmian. */
.btn-call { background: var(--call-blue); color: #fff; box-shadow: 0 10px 26px rgba(59, 143, 212, 0.4); }
.btn-call:hover { background: var(--call-blue-dark); color: #fff; transform: translateY(-2px); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 10px 26px rgba(34, 193, 94, 0.32); }
.btn-wa:hover { background: var(--wa-dark); transform: translateY(-2px); }
.btn-ghost { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); }
/* PAKIET 3 (zad. 7): numer telefonu na przycisku „Zadzwoń" oddzielony układem, bez „·" */
.btn-call .btn-sub { font-weight: 700; opacity: 0.92; margin-left: 2px; }
.btn-call .btn-sub::before { content: ""; display: inline-block; width: 1px; height: 0.95em; background: rgba(255, 255, 255, 0.45); margin: 0 9px -1px 5px; vertical-align: middle; }
/* PAKIET 2 (T7): prestiżowy element „25+ lat doświadczenia" — ciemny, srebrno-niebieska
   metaliczna ramka + subtelna głębia; bez pomarańczu, złota i neonu */
.hero-exp {
  display: inline-flex; align-items: center; gap: 15px;
  padding: 13px 24px 13px 20px; border-radius: 14px;
  background:
    linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
    linear-gradient(135deg, #dbe1e8 0%, #8b97a5 42%, #3b8fd4 100%) border-box;
  border: 1.6px solid transparent;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.hero-exp-num {
  font-size: clamp(2rem, 3vw, 2.7rem); font-weight: 800; line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5df 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #fff;
}
.hero-exp-label {
  font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.13em;
  color: var(--muted); line-height: 1.25; max-width: 9em;
}
.hero-scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.65); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.hero-scroll .arrow { width: 22px; height: 22px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); animation: bob 1.6s infinite; }
@keyframes bob { 0%, 100% { transform: rotate(45deg) translate(0, 0); } 50% { transform: rotate(45deg) translate(5px, 5px); } }

/* ---------- SEKCJE ---------- */
.section { padding: clamp(66px, 9vw, 108px) 0; }
.section-light { background: var(--surface-1); color: var(--text); }
.section-gray { background: var(--surface-2); color: var(--text); }
.section-dark { background: var(--graphite); color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(34px, 5vw, 54px); }
.kicker {
  display: block; color: var(--accent); font-size: 0.84rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.55rem); line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 12px; }
.section-dark .section-head h2 { color: #fff; }
.section-lead { color: var(--muted); font-size: 1.05rem; }
.section-dark .section-lead { color: var(--muted-light); }

/* ---------- LEISTUNGEN ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.service-card {
  background: var(--card-dark); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--card-line);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(238, 125, 38, 0.4); }
/* PAKIET 3 (zad. 4): kafel = przycisk otwierający galerię usługi */
.service-card[role="button"] { cursor: pointer; }
.service-card[role="button"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.service-card .thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.service-card:hover .thumb img, .service-card:focus-visible .thumb img { transform: scale(1.06); }
.svc-photo-badge {
  position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 5px;
  background: rgba(11, 13, 16, 0.82); color: #fff; font-size: 0.82rem; font-weight: 800;
  padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.svc-photo-badge svg { width: 15px; height: 15px; }
.service-card .body { padding: 18px 20px 22px; }
.service-card h3 { font-size: 1.06rem; line-height: 1.3; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 0.93rem; }
.partners-box {
  margin-top: 40px; background: var(--card-dark); border: 1px solid var(--card-line);
  border-left: 4px solid var(--accent); border-radius: var(--radius);
  padding: 24px 26px; box-shadow: var(--shadow);
}
.partners-box h3 { font-size: 1.05rem; margin-bottom: 14px; color: var(--text); }
.partner-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.partner-chips span {
  background: var(--chip-bg); border: 1px solid var(--chip-border); color: var(--text);
  font-size: 0.9rem; font-weight: 600; padding: 8px 16px; border-radius: 999px;
}

/* ---------- MASCHINEN ---------- */
.machines-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.machine-card {
  background: var(--card-dark); border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.machine-card:hover { transform: translateY(-5px); border-color: rgba(238, 125, 38, 0.5); }
.machine-card .thumb { aspect-ratio: 4 / 3; overflow: hidden; }
.machine-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.machine-card .body { padding: 18px 20px 22px; }
.machine-card h3 { color: #fff; font-size: 1.05rem; margin-bottom: 8px; }
.machine-card p { color: var(--muted-light); font-size: 0.92rem; }

/* ---------- PROJEKTE ---------- */
.case-list { display: flex; flex-direction: column; gap: clamp(44px, 6vw, 70px); }
.case-row { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(24px, 4vw, 50px); align-items: center; }
.case-row:nth-child(even) .case-media { order: 2; }
.case-media { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; }
.case-media .m0 { grid-row: 1 / 3; }
.case-media a { display: block; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.case-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; transition: transform 0.35s; }
.case-media .m0 img { aspect-ratio: auto; height: 100%; }
.case-media a:hover img { transform: scale(1.05); }
.case-tag {
  display: inline-block; background: rgba(238, 125, 38, 0.15); color: var(--accent-light);
  font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.case-body h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin-bottom: 12px; }
.case-body p { color: var(--muted); }

/* ---------- GALERIE ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.gallery-filters button {
  background: var(--chip-bg); border: 1px solid var(--chip-border); color: var(--muted);
  font-size: 0.9rem; font-weight: 700; padding: 9px 18px; border-radius: 999px;
  transition: all 0.2s;
}
.gallery-filters button:hover { border-color: var(--accent); color: var(--accent-light); }
.gallery-filters button.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); gap: 10px; }
.gallery-grid a {
  display: block; border-radius: 10px; overflow: hidden; position: relative;
  aspect-ratio: 3 / 4; background: var(--card-dark);
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-grid a:hover img { transform: scale(1.07); }
.gallery-count { margin-top: 18px; color: var(--muted); font-size: 0.9rem; }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4, 5, 7, 0.95);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 82vh; border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.22); }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-close { position: absolute; top: 18px; right: 18px; transform: none; font-size: 1.3rem; }
.lb-caption {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85); font-size: 0.92rem; font-weight: 600;
  background: rgba(255, 255, 255, 0.08); padding: 8px 18px; border-radius: 999px;
  white-space: nowrap;
}

/* ---------- ÜBER UNS ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
.about-text p { color: var(--muted); margin-bottom: 16px; }
.about-stars { list-style: none; margin: 22px 0 26px; display: grid; gap: 10px; }
.about-stars li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; font-size: 0.98rem; }
.about-stars .tick {
  width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; border-radius: 6px;
  background: var(--accent); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.78rem;
}
.about-media { position: relative; }
.about-media img { border-radius: 16px; box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.about-media figcaption {
  position: absolute; left: 14px; bottom: 14px;
  background: var(--ink-92); color: #fff; font-size: 0.84rem; font-weight: 600;
  padding: 8px 16px; border-radius: 999px;
}
.about-exp {
  position: absolute; top: -18px; right: -12px;
  background: var(--accent); color: var(--accent-ink); text-align: center;
  border-radius: 14px; padding: 14px 20px; box-shadow: var(--shadow-lg);
}
.about-exp strong { display: block; font-size: 1.7rem; line-height: 1.1; }
.about-exp span { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }

/* ---------- KONTAKT ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 34px; }
.contact-card {
  background: var(--card-dark); border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius); padding: 24px;
}
.contact-card .ic {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 14px;
  background: rgba(238, 125, 38, 0.16); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.contact-card h3 { color: #fff; font-size: 1rem; margin-bottom: 6px; }
.contact-card p, .contact-card a { color: var(--muted-light); font-size: 0.98rem; }
.contact-card a { font-weight: 700; color: #fff; }
.contact-card a:hover { color: var(--accent); }
.contact-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.contact-note { color: var(--muted-light); margin-top: -24px; margin-bottom: 36px; font-size: 0.95rem; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); }
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- IMPRESSUM / DATENSCHUTZ ---------- */
.legal-wrap { max-width: 820px; }
.legal-wrap h3 { font-size: 1.02rem; margin: 22px 0 8px; }
.legal-wrap p { color: var(--muted); font-size: 0.95rem; margin-bottom: 6px; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.7); padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; margin-bottom: 40px; }
.footer-brand img { height: 58px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.92rem; max-width: 300px; }
.site-footer h4 { color: #fff; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer li a { color: rgba(255, 255, 255, 0.65); font-size: 0.94rem; }
.site-footer li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  font-size: 0.88rem;
}
.footer-credit a { color: var(--accent); font-weight: 700; }
.footer-credit a:hover { text-decoration: underline; }

/* ---------- MOBILE CALL BAR + WA FLOAT ---------- */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  display: none; grid-template-columns: 1fr 1fr;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.22);
}
.call-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 10px; color: #fff; font-weight: 800; font-size: 0.98rem;
}
.call-bar .cb-call { background: var(--call-blue); }
.call-bar .cb-wa { background: var(--wa); }
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(34, 193, 94, 0.45);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ============================================================
   PAKIET 3 — osobne widoki + modal galerii usług
   ============================================================ */
/* Osobne widoki (Realizacje/Galeria/O nas/prawne) zaczynają się od góry —
   pierwszy blok musi ominąć stały nagłówek. */
#viewRoot > .view-section {
  padding-top: calc(var(--header-h) + clamp(28px, 5vw, 56px));
  min-height: 60vh;
}

/* ---------- MODAL GALERII USŁUG ---------- */
.svc-modal {
  position: fixed; inset: 0; z-index: 300; display: none;
  align-items: center; justify-content: center;
  background: rgba(5, 6, 8, 0.82); backdrop-filter: blur(3px);
  padding: clamp(10px, 3vw, 34px);
}
.svc-modal.open { display: flex; }
.svc-modal-box {
  background: var(--surface-1); border: 1px solid var(--card-line);
  border-radius: 16px; box-shadow: var(--shadow-lg);
  width: min(1000px, 100%); max-height: 92vh; display: flex; flex-direction: column;
  overflow: hidden;
}
.svc-modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 18px 20px 14px; border-bottom: 1px solid var(--card-line);
}
.svc-modal-head h3 { font-size: clamp(1.1rem, 2.2vw, 1.4rem); color: var(--text); margin-bottom: 4px; }
.svc-modal-head p { color: var(--muted); font-size: 0.92rem; max-width: 60ch; }
.svc-close {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px;
  background: var(--chip-bg); color: var(--text); font-size: 1.1rem;
  border: 1px solid var(--chip-border); transition: background 0.2s;
}
.svc-close:hover, .svc-close:focus-visible { background: rgba(255, 255, 255, 0.16); }
.svc-stage {
  position: relative; display: flex; align-items: center; justify-content: center;
  background: #0a0c0f; flex: 1 1 auto; min-height: 0;
}
.svc-img-wrap {
  width: 100%; height: min(62vh, 620px); display: flex; align-items: center; justify-content: center;
}
.svc-img-wrap img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }

/* ===== PAKIET 4: swipe zdjęć (Pointer Events) — lightbox + modal usług ===== */
.svc-stage, #lbImg { touch-action: pan-y; }
#svcImg, #lbImg {
  -webkit-user-select: none; user-select: none;
  -webkit-user-drag: none; -webkit-touch-callout: none;
}
.swipe-img { will-change: transform; }
.swipe-img.is-dragging { transition: none; cursor: grabbing; }
.swipe-img.is-settling { transition: transform 0.26s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.26s ease; }
@media (prefers-reduced-motion: reduce) {
  .swipe-img.is-settling { transition: none; }
}
/* ===== PAKIET 4.2: subtelny stan ładowania (gdy sąsiad nie był jeszcze preloadowany) ===== */
#svcImg.is-loading, #lbImg.is-loading { animation: siwicki-img-pulse 0.9s ease-in-out infinite alternate; }
@keyframes siwicki-img-pulse { from { opacity: 0.42; } to { opacity: 0.72; } }
@media (prefers-reduced-motion: reduce) {
  #svcImg.is-loading, #lbImg.is-loading { animation: none; opacity: 0.6; }
}
.svc-stage.is-empty .svc-img-wrap { display: none; }
.svc-empty {
  padding: 60px 30px; text-align: center; color: var(--muted); font-size: 1.05rem; font-weight: 600;
}
.svc-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(11, 13, 16, 0.72); color: #fff; font-size: 1.6rem; line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.2); transition: background 0.2s;
}
.svc-nav:hover, .svc-nav:focus-visible { background: rgba(59, 143, 212, 0.9); }
.svc-prev { left: 12px; }
.svc-next { right: 12px; }
.svc-stage.is-empty .svc-nav { display: none; }
.svc-foot {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 18px 16px; border-top: 1px solid var(--card-line);
}
.svc-counter { font-weight: 800; color: var(--text); font-size: 0.95rem; min-width: 54px; }
.svc-thumbs {
  display: flex; gap: 8px; overflow-x: auto; flex: 1 1 auto; padding: 2px; scrollbar-width: thin;
}
.svc-thumbs button {
  flex: 0 0 auto; width: 60px; height: 46px; border-radius: 7px; overflow: hidden;
  border: 2px solid transparent; opacity: 0.6; transition: opacity 0.2s, border-color 0.2s;
}
.svc-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.svc-thumbs button:hover { opacity: 0.9; }
.svc-thumbs button.active { opacity: 1; border-color: var(--call-blue); }
.svc-contact { flex: 0 0 auto; padding: 11px 20px; font-size: 0.95rem; }
.svc-stage.is-empty ~ .svc-foot .svc-thumbs, .svc-stage.is-empty ~ .svc-foot .svc-counter { display: none; }

/* ---------- RESPONSYWNOŚĆ ---------- */
@media (max-width: 1020px) {
  .main-nav a { padding: 8px 8px; font-size: 0.88rem; }
  .brand { width: calc(60px * 845 / 323); height: 60px; }
  .site-header.is-scrolled .brand { height: calc(60px * 230 / 323); }
}
@media (max-width: 900px) {
  .brand { width: calc(76px * 845 / 323); height: 76px; }
  .site-header.is-scrolled .brand { height: calc(76px * 230 / 323); }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: rgba(6, 7, 9, 0.97); backdrop-filter: blur(12px);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 0 16px; margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-130%); transition: transform 0.28s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 13px 26px; font-size: 1.02rem; }
  .main-nav a.active::after { display: none; }
  .main-nav a.active { color: var(--accent); }
  .nav-toggle { display: flex; }
  .lang-switch { margin-left: auto; }
  .nav-toggle { margin-left: 0; }
  .case-row { grid-template-columns: 1fr; }
  .case-row:nth-child(even) .case-media { order: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about-exp { top: auto; bottom: -16px; right: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .call-bar { display: grid; }
  .wa-float { display: none; }
  body { padding-bottom: 54px; }
  .hero { padding-bottom: 110px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-title-line { display: inline; }   /* PAKIET 2 (T4): telefon = naturalne łamanie tytułu */
  /* PAKIET 4.1: przycisk telefonu w jednym wierszu (ikona | napis | numer) — oba języki */
  .hero-cta .btn { padding: 14px 16px; gap: 8px; }
  .btn-call > span { white-space: nowrap; }
  .btn-call .btn-sub { margin-left: 0; }
  .btn-call .btn-sub::before { margin: 0 7px 0 6px; }
  /* PAKIET 4.1: PL — wyśrodkowany ekran główny (kontrolowane atrybutem języka; DE bez zmian) */
  html[lang="pl"] .hero .hero-content {
    margin-left: auto; margin-right: auto;
    padding-right: 0;
    text-align: center;
  }
  html[lang="pl"] .hero-subtitle { margin-left: auto; margin-right: auto; }
  html[lang="pl"] .hero-feature { justify-content: center; }
  .hero-scroll { bottom: 74px; }
  .services-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .service-card .body { padding: 12px 14px 16px; }
  .service-card h3 { font-size: 0.92rem; }
  .service-card p { font-size: 0.82rem; }
  .machines-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .machine-card .body { padding: 12px 14px 16px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 7px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .map-wrap iframe { height: 300px; }
  /* PAKIET 3 — modal na telefonie */
  .svc-modal { padding: 0; }
  .svc-modal-box { width: 100%; max-height: 100vh; height: 100vh; border-radius: 0; border: 0; }
  .svc-img-wrap { height: 46vh; }
  .svc-nav { width: 40px; height: 40px; font-size: 1.4rem; }
  .svc-foot { gap: 10px; }
  .svc-contact { flex: 1 1 100%; order: 3; justify-content: center; }
  .svc-thumbs { order: 2; }
  .svc-counter { order: 1; }
}
@media (max-width: 420px) {
  .services-grid { grid-template-columns: 1fr; }
  .machines-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
