/* Czcionki ładowane przez <link> w <head> każdej strony (preconnect +
   stylesheet), nie przez @import tutaj — @import w CSS ładuje się w
   pełni sekwencyjnie (HTML → ten plik → @import → arkusz Google Fonts →
   pliki czcionek), podczas gdy linki w HTML browser odkrywa i pobiera
   równolegle z tym plikiem od razu przy parsowaniu dokumentu. */

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* Brand colors — derived from the Urbud logo (navy + gold) */
  --color-navy-900: #0a1830;
  --color-navy-800: #0f2041;
  --color-navy-700: #152a52;
  --color-navy-600: #1e3a66;
  --color-navy-500: #2d4d82;

  --color-gold-700: #8f6713; /* przyciemnione dla kontrastu WCAG AA na jasnym tle (.eyebrow) */
  --color-gold-600: #c6941f;
  --color-gold-500: #d6a233;
  --color-gold-400: #e3b94f;
  --color-gold-300: #eccd7c;

  --color-bg: #f7f8fa;
  --color-surface: #ffffff;
  --color-surface-alt: #eef1f5;
  --color-border: #e1e5eb;

  --color-text: #1c2430;
  --color-text-muted: #525b6b;
  --color-text-on-navy: #f3f6fb;
  --color-text-on-navy-muted: #aab7cc;

  --color-success: #2f8a52;
  --color-danger: #c0392b;

  /* Semantic */
  --color-primary: var(--color-navy-700);
  --color-primary-dark: var(--color-navy-900);
  --color-accent: var(--color-gold-500);
  --color-accent-dark: var(--color-gold-600);

  /* Typography */
  --font-heading: 'Lexend', 'Source Sans 3', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: 3rem;
  --fs-4xl: 3.75rem;

  /* Spacing scale (8px rhythm) */
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 6rem;
  --space-9: 8rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(10, 24, 48, 0.06), 0 1px 3px rgba(10, 24, 48, 0.08);
  --shadow-md: 0 4px 10px rgba(10, 24, 48, 0.08), 0 2px 4px rgba(10, 24, 48, 0.06);
  --shadow-lg: 0 20px 40px -12px rgba(10, 24, 48, 0.25);

  --container-max: 1200px;
  --transition-fast: 160ms ease;
  --transition-base: 240ms ease;
}

/* Wariant kolorystyczny dla stron „Dla firm" — ten sam system kolorów,
   ale ciemniejszy, grafitowy odcień zamiast granatu. Nadpisanie tokenów
   --color-navy-* sprawia, że zmienia się automatycznie cała strona
   (hero, stopka, menu mobilne, przyciski), bez dotykania reguł CSS. */
html.theme-business {
  --color-navy-900: #1b1d22;
  --color-navy-800: #25282f;
  --color-navy-700: #31353e;
  --color-navy-600: #40454f;
  --color-navy-500: #525864;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy-900);
  line-height: 1.2;
  margin: 0 0 var(--space-3);
  font-weight: 700;
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }

p { margin: 0 0 var(--space-3); color: var(--color-text-muted); }

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

ul { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

/* Pasek menu nie jest ograniczony szerokością treści — sięga bliżej
   krawędzi przeglądarki, tak jak np. na stronie Wiśniowski. */
.nav-container {
  width: 100%;
  max-width: 1800px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

@media (max-width: 600px) {
  .nav-container { padding-inline: var(--space-4); }
}

section { padding-block: var(--space-8); }

@media (max-width: 768px) {
  h1 { font-size: var(--fs-3xl); }
  h2 { font-size: var(--fs-xl); }
  section { padding-block: var(--space-6); }
}

/* Visible focus ring everywhere — never remove */
:focus-visible {
  outline: 3px solid var(--color-gold-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-navy-900);
  color: #fff;
  padding: var(--space-2) var(--space-3);
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold-700);
  margin-bottom: var(--space-2);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--color-gold-500);
  display: inline-block;
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-6);
}
.section-head.center { margin-inline: auto; text-align: center; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
  min-height: 48px;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-accent {
  background: var(--color-accent);
  color: var(--color-navy-900);
  box-shadow: var(--shadow-sm);
}
.btn-accent:hover { background: var(--color-gold-400); box-shadow: var(--shadow-md); }

.btn-outline-light {
  background: transparent;
  color: var(--color-text-on-navy);
  border-color: rgba(243, 246, 251, 0.35);
}
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-outline {
  background: transparent;
  color: var(--color-navy-700);
  border-color: var(--color-border);
}
.btn-outline:hover { border-color: var(--color-navy-700); background: var(--color-surface-alt); }

.btn-primary {
  background: var(--color-navy-700);
  color: #fff;
}
.btn-primary:hover { background: var(--color-navy-800); box-shadow: var(--shadow-md); }

.btn-block { width: 100%; }

.icon { width: 1em; height: 1em; display: inline-block; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: var(--space-4);
}

.nav-logo img { height: 42px; width: auto; }
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }

/* Przełącznik odbiorcy: Dla domu / Dla firm — od razu obok logo */
.audience-switch {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
/* Suwak pod aktywną opcją — JS (main.js) ustawia left/width/top/height
   tak, by dokładnie pokryć aktywny link, i animuje przesunięcie przy kliknięciu. */
.audience-thumb {
  position: absolute;
  border-radius: 999px;
  background: var(--color-navy-900);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}
.audience-switch a {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: color var(--transition-fast);
}
.audience-switch a:hover { color: var(--color-navy-800); }
.audience-switch a.is-active { color: #fff; }
@media (max-width: 1100px) {
  .audience-switch a { padding: 0.4rem 0.7rem; }
}

.audience-switch--mobile { display: none; }

@media (max-width: 1200px) {
  .nav-container > .audience-switch:not(.audience-switch--mobile) { display: none; }

  .audience-switch--mobile {
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    margin-bottom: var(--space-2);
  }
  .audience-switch--mobile .audience-thumb { background: var(--color-gold-500); }
  /* Specificity needs to beat the later `.nav-links a` mobile-menu rules. */
  .nav-links .audience-switch--mobile a {
    width: auto;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    white-space: nowrap;
  }
  .nav-links .audience-switch--mobile a:hover { color: #fff; }
  .nav-links .audience-switch--mobile a.is-active { color: var(--color-navy-900); }
}

.nav-links {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: var(--space-5);
  flex-wrap: nowrap;
}
.nav-links a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--color-text);
  padding: var(--space-1) 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-navy-700);
  border-color: var(--color-gold-500);
}

.nav-actions { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
.nav-phone {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--color-navy-800);
  white-space: nowrap;
}
.nav-phone .icon { color: var(--color-gold-600); font-size: 1.2rem; }

/* Na desktopie pasek menu rozciąga się na całą szerokość: logo, każdy link,
   telefon i przycisk CTA są równo rozstawione od lewej do prawej krawędzi
   (zamiast dwóch ciasnych grup z dużą przerwą pośrodku). Musi być umieszczone
   PO regułach .nav-links/.nav-actions { display:flex }, bo przy tej samej
   specyficzności wygrywa reguła występująca później w pliku. */
@media (min-width: 1201px) {
  .nav-links, .nav-actions { display: contents; }
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 310;
  background: none;
  border: none;
  padding: var(--space-1);
  color: var(--color-navy-900);
}
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] { color: var(--color-gold-400); }

@media (max-width: 1200px) {
  .nav-phone span.phone-text { display: none; }
}

@media (max-width: 960px) {
  .nav-links { gap: var(--space-4); }
}

@media (max-width: 520px) {
  .nav-actions .btn-accent { display: none; }
  .nav { min-height: 72px; }
  .nav-logo img { height: 30px; }
}

@media (max-width: 1200px) {
  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    z-index: 300;
    background: linear-gradient(160deg, var(--color-navy-900) 0%, var(--color-navy-700) 100%);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: calc(var(--space-7) + env(safe-area-inset-top, 0px)) var(--space-5) calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
    gap: var(--space-4);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
    overflow-y: auto;
  }
  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0s;
  }
  .nav-links a {
    font-size: var(--fs-xl);
    font-weight: 700;
    width: 100%;
    color: #fff;
    border-bottom-color: transparent;
  }
  .nav-links a:hover,
  .nav-links a[aria-current="page"] { color: var(--color-gold-400); }
  .nav-mobile-cta { display: inline-flex; width: 100%; margin-top: var(--space-3); }
}

@media (max-width: 420px) {
  .nav-links a { font-size: var(--fs-lg); }
}

.nav-mobile-cta { display: none; }

/* ============================================
   NAV DROPDOWN (Oferta)
   ============================================ */
.nav-item {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 2px;
}
.nav-item-link { white-space: nowrap; }

.nav-item-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.nav-item-toggle .icon {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-base);
}
.nav-item-toggle:hover { color: var(--color-navy-700); background: var(--color-surface-alt); }
.nav-item:hover .nav-item-toggle .icon,
.nav-item:focus-within .nav-item-toggle .icon,
.nav-item.is-open .nav-item-toggle .icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 6px);
  margin-top: -1px;
  width: 1040px;
  max-width: calc(100vw - 32px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  z-index: 200;
}
.dropdown-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 200px;
}
/* Realizacje ma mniej, krótszych pozycji niż Oferta — każda pozycja to
   osobna "grupa" bez etykiety. Grupy mają szerokość dopasowaną do treści
   (nie równą), a justify-content: space-between na .dropdown-menu daje
   im równe odstępy — przy wymuszonych równych kolumnach krótkie słowa
   (np. "Inne") pływały w pustej przestrzeni i odstępy między tekstami
   wyglądały nierówno, mimo że same kolumny miały tę samą szerokość. */
.dropdown-menu--realizacje .dropdown-group {
  min-width: 0;
  flex: 0 0 auto;
}
.dropdown-menu--realizacje .dropdown-group a {
  white-space: nowrap;
}
.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu,
.nav-item.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
}


.dropdown-menu a {
  display: block;
  padding: 0.65rem 0.8rem !important;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm) !important;
  font-weight: 500 !important;
  color: var(--color-text) !important;
  border-bottom: none !important;
  white-space: normal;
}
.dropdown-menu a:hover {
  background: var(--color-surface-alt);
  color: var(--color-navy-700) !important;
}

.dropdown-group-label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  padding: 0.2rem 0.8rem 0.5rem;
}

@media (max-width: 1200px) {
  .nav-item {
    flex-wrap: wrap;
    width: 100%;
  }
  .nav-item-link { flex: 1; }
  .nav-item-toggle { width: 44px; height: 44px; color: #fff; }
  .nav-item-toggle:hover { color: var(--color-gold-400); background: rgba(255, 255, 255, 0.08); }
  .nav-item-toggle .icon { width: 18px; height: 18px; }

  .dropdown-menu {
    position: static;
    width: 100%;
    max-width: none;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: var(--space-3);
    margin-top: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .dropdown-group-label { color: var(--color-gold-300); }
  .dropdown-menu a {
    color: var(--color-text-on-navy-muted) !important;
  }
  .dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
  }
  .dropdown-group { min-width: 0; }
  .nav-item.is-open .dropdown-menu,
  .nav-item:hover .dropdown-menu,
  .nav-item:focus-within .dropdown-menu {
    transform: none;
  }
  .nav-item.is-open .dropdown-menu {
    max-height: 600px;
    padding: var(--space-2);
    margin-top: 4px;
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-navy-900) 0%, var(--color-navy-700) 55%, var(--color-navy-600) 100%);
  color: var(--color-text-on-navy);
  overflow: hidden;
  padding-block: var(--space-9) var(--space-8);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(214,162,51,0.55) 2px, transparent 2.5px);
  background-size: 26px 26px;
  mask-image: linear-gradient(120deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.25) 38%, transparent 60%);
  -webkit-mask-image: linear-gradient(120deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.25) 38%, transparent 60%);
  opacity: 0.55;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-7);
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(214, 162, 51, 0.14);
  border: 1px solid rgba(214, 162, 51, 0.4);
  color: var(--color-gold-300);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: var(--space-4);
}

.hero h1 {
  color: #fff;
  font-size: var(--fs-4xl);
  margin-bottom: var(--space-4);
  overflow-wrap: break-word;
}
.hero h1 em {
  font-style: normal;
  color: var(--color-gold-400);
}

.hero-lead {
  color: var(--color-text-on-navy-muted);
  font-size: var(--fs-md);
  max-width: 50ch;
  margin-bottom: var(--space-5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
/* W hero--photo odstęp do statystyk już daje gap na .hero-copy —
   ten margines tylko go dublował i robił zbyt duży odstęp do rzędu
   "12+ lat doświadczenia" itd. */
.hero-copy-main .hero-actions {
  margin-bottom: 0;
}

.hero-stats {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.hero-stats .stat-value {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: #fff;
  display: block;
}
.hero-stats .stat-label {
  font-size: var(--fs-xs);
  color: var(--color-text-on-navy-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.12);
}

/* PODGLĄD: pełnoekranowe zdjęcie w tle hero zamiast granatowego gradientu */
.hero--photo {
  background-image:
    linear-gradient(90deg, rgba(8,16,32,0.96) 0%, rgba(8,16,32,0.86) 30%, rgba(8,16,32,0.45) 58%, rgba(8,16,32,0.08) 85%),
    url("../assets/img/realizacje/brama-przesuwna-hero.webp");
  background-size: cover;
  background-position: center 65%;
  height: calc(100vh - var(--header-h, 85px));
  height: calc(100dvh - var(--header-h, 85px));
  min-height: 480px;
  padding-block: var(--space-7) 0;
  display: flex;
  align-items: stretch;
}
.hero--photo::before { opacity: 0.25; }
.hero--photo .hero-grid { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.hero--photo .hero-visual { display: none; }

/* Treść heroa dosunięta do tej samej krawędzi co logo w pasku menu —
   nie jest ograniczona wąskim, wyśrodkowanym kontenerem treści. */
.hero--photo .container {
  max-width: 1800px;
  padding-inline: var(--space-6);
}
@media (max-width: 600px) {
  .hero--photo .container { padding-inline: var(--space-4); }
}

/* Cała treść (nagłówek, opis, przyciski, statystyki) dosunięta do dołu
   zdjęcia, wyrównana do lewej. */
.hero--photo .hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: var(--space-4);
  height: 100%;
  padding-block: 0 var(--space-5);
  /* Bez tego siatka CSS Grid nie pozwala się skurczyć poniżej szerokości
     najdłuższego, niełamliwego słowa w nagłówku — tekst rozpychał kontener. */
  min-width: 0;
}

/* Wariant lustrzany (strona „Dla firm") — inne zdjęcie, gradient i treść
   po przeciwnej, prawej stronie, jako odbicie wersji „Dla domu". */
.hero--photo.hero--mirror {
  background-image:
    linear-gradient(to left, rgba(8,16,32,0.96) 0%, rgba(8,16,32,0.86) 30%, rgba(8,16,32,0.45) 58%, rgba(8,16,32,0.08) 85%),
    url("../assets/img/realizacje/ogrodzenie-przemyslowe-hero.webp");
  background-position: center 55%;
}
/* Gradient nad zdjęciem był na sztywno granatowy — na stronach „Dla firm"
   (motyw grafitowy) zastępujemy go odcieniem grafitu, żeby pasował. */
html.theme-business .hero--photo.hero--mirror {
  background-image:
    linear-gradient(to left, rgba(27,29,34,0.96) 0%, rgba(27,29,34,0.86) 30%, rgba(27,29,34,0.45) 58%, rgba(27,29,34,0.08) 85%),
    url("../assets/img/realizacje/ogrodzenie-przemyslowe-hero.webp");
}
/* Kropki z ::before są też odbite lustrzanie, żeby pokrywały ciemną
   (prawą) stronę zdjęcia zamiast lewej. */
.hero--mirror::before {
  mask-image: linear-gradient(240deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.25) 38%, transparent 60%);
  -webkit-mask-image: linear-gradient(240deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.25) 38%, transparent 60%);
}
.hero--mirror .hero-copy { align-items: flex-end; text-align: right; }
.hero--mirror .hero-actions { justify-content: flex-end; }
.hero--mirror .hero-stats { justify-content: flex-end; }
/* .hero-lead ma ograniczoną szerokość (max-width: 50ch), więc bez tego
   jego węższy blok zostawał przyklejony do lewej krawędzi zamiast
   wyrównać się do prawej razem z nagłówkiem i przyciskami. */
.hero--mirror .hero-lead { margin-left: auto; }

/* Na telefonie cały blok (nagłówek, opis, przyciski, statystyki) ma się
   mieścić w jednym ekranie bez przewijania — tekst jest więc wyraźnie
   mniejszy niż na desktopie, a zdjęcie w tle zostaje w pełnej wysokości
   ekranu zamiast rozciągać się w nieskończoność (co obcinało je do
   wąskiego, mocno przybliżonego paska). */
@media (max-width: 640px) {
  .hero--photo {
    min-height: 560px;
    overflow: hidden;
    padding-block: var(--space-5) var(--space-4);
  }
  .hero--photo .hero-copy {
    gap: var(--space-3);
    padding-block: 0 var(--space-3);
  }
  .hero--photo h1 {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-2);
  }
  .hero--photo .hero-lead {
    font-size: var(--fs-xs);
    margin-bottom: var(--space-3);
  }
  .hero--photo .hero-actions {
    gap: var(--space-2);
    margin-bottom: 0;
  }
  .hero--photo .hero-actions .btn {
    font-size: var(--fs-xs);
    padding: 0.7rem 1.2rem;
    min-height: 40px;
  }
  .hero--photo .hero-stats {
    flex-wrap: nowrap;
    gap: var(--space-3);
  }
  .hero--photo .hero-stats > * {
    flex: 1 1 0;
    min-width: 0;
  }
  .hero--photo .hero-stats .stat-value { font-size: var(--fs-lg); }
  .hero--photo .hero-stats .stat-label { font-size: 0.65rem; }
  /* Dolna krawędź zdjęcia bywa jasna (kostka brukowa) i statystyki tracą
     tam kontrast — doświetlacz od dołu, niezależny od motywu i kierunku
     zdjęcia. */
  .hero--photo::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 55%;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
    pointer-events: none;
  }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}

/* Tablet: hero ze zdjęciem zmieścił się w jednym ekranie, ale przy
   pełnej, desktopowej czcionce blok tekstu i tak zajmował niemal cały
   pierwszy widok (zwłaszcza w poziomie, np. iPad 1180×820). Trochę
   mniejszy tekst niż na desktopie, ale większy niż na telefonie. */
@media (max-width: 1200px) and (min-width: 641px) {
  .hero--photo h1 { font-size: var(--fs-2xl); }
  .hero--photo .hero-lead { font-size: var(--fs-sm); margin-bottom: var(--space-4); }
  .hero--photo .hero-actions .btn { font-size: var(--fs-xs); padding: 0.75rem 1.4rem; min-height: 44px; }
  .hero--photo .hero-stats .stat-value { font-size: var(--fs-lg); }
}

/* ============================================
   PAGE HERO (subpages)
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--color-navy-900), var(--color-navy-700));
  color: var(--text-on-navy);
  padding-block: var(--space-7) var(--space-6);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(214,162,51,0.5) 2px, transparent 2.5px);
  background-size: 24px 24px;
  mask-image: linear-gradient(100deg, rgba(0,0,0,0.8), transparent 55%);
  -webkit-mask-image: linear-gradient(100deg, rgba(0,0,0,0.8), transparent 55%);
  opacity: 0.5;
}
.page-hero .container { position: relative; z-index: 1; }
.breadcrumbs {
  display: flex;
  gap: var(--space-1);
  font-size: var(--fs-xs);
  color: var(--color-text-on-navy-muted);
  margin-bottom: var(--space-3);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.breadcrumbs a:hover { color: #fff; }
.page-hero h1 { color: #fff; margin-bottom: var(--space-2); }
.page-hero p { color: var(--color-text-on-navy-muted); max-width: 60ch; }

/* ============================================
   VALUE STRIP
   ============================================ */
.value-strip {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-5);
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.value-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}
.value-item .icon-badge {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-alt);
  color: var(--color-navy-700);
  display: flex;
  align-items: center;
  justify-content: center;
}
.value-item .icon-badge .icon { width: 22px; height: 22px; }
.value-item h2 { font-size: var(--fs-sm); margin-bottom: 2px; }
.value-item p { font-size: var(--fs-xs); margin: 0; }

@media (max-width: 960px) {
  .value-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .value-grid { grid-template-columns: 1fr; }
}

/* ============================================
   CARDS — SERVICES
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
@media (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold-400);
}
.service-card .icon-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--color-navy-700);
  color: var(--color-gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}
.service-card .icon-badge .icon { width: 26px; height: 26px; }
.service-card h3 { margin-bottom: var(--space-2); }
.service-card p { font-size: var(--fs-sm); flex-grow: 1; }
.service-card .card-link {
  margin-top: var(--space-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--color-navy-700);
}
.service-card .card-link .icon { width: 16px; height: 16px; transition: transform var(--transition-fast); }
.service-card:hover .card-link .icon { transform: translateX(4px); }

/* ============================================
   PROCESS STEPS
   ============================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  counter-reset: step;
}
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

.process-step {
  position: relative;
  padding-top: var(--space-5);
}
.process-step .step-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--fs-xl);
  /* gold-500 na białym tle ma kontrast tylko 2.3:1 (poniżej WCAG AA) —
     gold-700 to ten sam, przyciemniony odcień użyty już gdzie indziej
     (.eyebrow) z tego samego powodu. */
  color: var(--color-gold-700);
  display: block;
  margin-bottom: var(--space-2);
}
.process-step h3 { font-size: var(--fs-md); }
.process-step p { font-size: var(--fs-sm); }

/* ============================================
   SECTION VARIANTS
   ============================================ */
.section-alt { background: var(--color-surface); border-block: 1px solid var(--color-border); }
.section-navy {
  background: var(--color-navy-900);
  color: var(--color-text-on-navy);
}
.section-navy h2 { color: #fff; }
.section-navy p { color: var(--color-text-on-navy-muted); }
.section-navy .eyebrow { color: var(--color-gold-400); }

/* Nagłówek grupy kategorii na stronie Oferty — dzieli ofertę na te same
   sekcje co rozwijane menu (Systemy ogrodzeniowe, Elementy uzupełniające
   i akcesoria, Pozostałe konstrukcje, Usługi). */
.category-divider { padding-block: var(--space-5); }
.category-divider .container {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.category-divider .category-index {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--color-gold-400);
  flex-shrink: 0;
}
.category-divider h2 { margin: 0; font-size: var(--fs-xl); }
.category-divider p { margin: 0; color: var(--color-text-on-navy-muted); font-size: var(--fs-sm); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: var(--space-5); } }

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.checklist .icon {
  color: var(--color-gold-500);
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

/* Placeholder visual blocks (stand in for real photography) */
.placeholder-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--color-navy-700), var(--color-navy-900));
  color: rgba(255,255,255,0.5);
  min-height: 220px;
  width: 100%;
}
.placeholder-visual .icon { width: 20%; height: 20%; max-width: 72px; max-height: 72px; color: rgba(214,162,51,0.6); }
.placeholder-visual::after {
  content: attr(data-label);
  position: absolute;
  bottom: var(--space-2);
  left: var(--space-2);
  right: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.7);
  background: rgba(10,24,48,0.55);
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
@media (max-width: 960px) { .testimonial-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .testimonial-grid { grid-template-columns: 1fr; } }

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}
.testimonial-card .stars { color: var(--color-gold-500); display: flex; gap: 2px; margin-bottom: var(--space-2); }
.testimonial-card .stars .icon { width: 16px; height: 16px; }
.testimonial-card blockquote { margin: 0 0 var(--space-3); font-size: var(--fs-sm); color: var(--color-text); font-style: italic; }
.testimonial-card .author { display: flex; align-items: center; gap: var(--space-2); }
.testimonial-card .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-navy-700); color: var(--color-gold-400);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-sm);
}
.testimonial-card .author-name { font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-sm); color: var(--color-text); }
.testimonial-card .author-loc { font-size: var(--fs-xs); color: var(--color-text-muted); }

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: linear-gradient(120deg, var(--color-navy-800), var(--color-navy-600));
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
  color: #fff;
}
.cta-banner h2 { color: #fff; margin-bottom: var(--space-1); }
.cta-banner p { color: var(--color-text-on-navy-muted); margin: 0; }
.cta-banner-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* ============================================
   GALLERY (Realizacje)
   ============================================ */
.filter-bar {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}
.filter-btn {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}
.filter-btn:hover { border-color: var(--color-navy-600); color: var(--color-navy-700); }
.filter-btn[aria-pressed="true"] {
  background: var(--color-navy-700);
  border-color: var(--color-navy-700);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-item { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); background: var(--color-surface); }
.gallery-item .placeholder-visual { aspect-ratio: 4 / 3; min-height: 0; }
.gallery-item .gallery-caption { padding: var(--space-3); }
.gallery-item .gallery-caption h3 { font-size: var(--fs-sm); margin-bottom: 2px; }
.gallery-item .gallery-caption p { font-size: var(--fs-xs); margin: 0; }
.gallery-item[hidden] { display: none; }

.gallery-note {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  background: var(--color-surface-alt);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-top: var(--space-6);
}
.gallery-note .icon { width: 24px; height: 24px; color: var(--color-gold-600); flex-shrink: 0; }
.gallery-note p { margin: 0; font-size: var(--fs-sm); }

/* ============================================
   STATS BAND (O nas)
   ============================================ */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  text-align: center;
}
@media (max-width: 760px) { .stats-band { grid-template-columns: repeat(2, 1fr); } }
.stats-band .stat-value {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--color-navy-800);
  display: block;
}
.stats-band .stat-label { font-size: var(--fs-xs); color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.04em; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
@media (max-width: 760px) { .values-grid { grid-template-columns: 1fr; } }
.value-card {
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.value-card .icon-badge {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--color-surface-alt); color: var(--color-navy-700);
  display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-3);
}
.value-card .icon-badge .icon { width: 24px; height: 24px; }

.coverage-map {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  min-height: 320px;
}
.coverage-map .icon { width: 50%; max-width: 260px; height: auto; color: var(--color-navy-600); }
.coverage-map .icon .dot { fill: var(--color-gold-500); stroke: none; }

/* ============================================
   FORMS (Kontakt)
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-7);
  align-items: start;
}
@media (max-width: 960px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-info-list { margin-top: var(--space-5); }
.contact-info-list--standalone { margin-top: 0; padding-left: var(--space-6); }
@media (max-width: 560px) { .contact-info-list--standalone { padding-left: 0; } }

.company-contact-grid {
  gap: var(--space-9);
  grid-template-columns: 1.1fr 0.9fr;
}
@media (max-width: 900px) {
  .company-contact-grid { grid-template-columns: 1fr; gap: var(--space-6); }
}

/* Company legal info card (Kontakt) */
.company-card p { font-weight: 600; color: var(--color-text); }
.legal-list { margin-top: var(--space-4); }
.legal-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--fs-sm);
}
.legal-list li:first-child { padding-top: 0; }
.legal-list li span { color: var(--color-text-muted); }
.legal-list li strong { color: var(--color-text); font-family: var(--font-heading); }

/* Department cards (Kontakt) */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
@media (max-width: 860px) { .dept-grid { grid-template-columns: 1fr; } }
.dept-card {
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.dept-card .icon-badge {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--color-navy-700); color: var(--color-gold-400);
  display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-3);
}
.dept-card h3 { font-size: var(--fs-md); margin-bottom: var(--space-2); }
.dept-person { font-weight: 600; color: var(--color-text); margin-bottom: var(--space-1); font-size: var(--fs-sm); }
.dept-contacts { margin-bottom: 0; }
.dept-contacts li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  margin-bottom: 4px;
}
.dept-contacts .icon { width: 16px; height: 16px; color: var(--color-gold-600); flex-shrink: 0; }
.dept-contacts a:hover { color: var(--color-navy-700); text-decoration: underline; }
.contact-info-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}
.contact-info-item:first-child { padding-top: 0; }
.contact-info-item .icon-badge {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--color-navy-700); color: var(--color-gold-400);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-item .icon-badge .icon { width: 22px; height: 22px; }
.contact-info-item h3 { font-size: var(--fs-sm); margin-bottom: 2px; }
.contact-info-item p { font-size: var(--fs-sm); margin: 0; }
.contact-info-item a:hover { color: var(--color-navy-700); text-decoration: underline; }

.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.form-row { margin-bottom: var(--space-4); }
.form-row-group { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
@media (max-width: 560px) { .form-row-group { grid-template-columns: 1fr; } }

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-sm);
  margin-bottom: var(--space-1);
  color: var(--color-text);
}
.form-label .required { color: var(--color-danger); margin-left: 2px; }

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  padding: 0.8rem 0.9rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  min-height: 48px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-textarea { min-height: 140px; resize: vertical; }
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-navy-600);
  box-shadow: 0 0 0 3px rgba(30, 58, 102, 0.14);
}
.form-input[aria-invalid="true"],
.form-textarea[aria-invalid="true"] {
  border-color: var(--color-danger);
}
.form-help { font-size: var(--fs-xs); color: var(--color-text-muted); margin-top: 4px; }
.form-error {
  font-size: var(--fs-xs);
  color: var(--color-danger);
  margin-top: 4px;
  display: none;
}
.form-input[aria-invalid="true"] + .form-error,
.form-textarea[aria-invalid="true"] + .form-error { display: block; }

.form-consent { display: flex; align-items: flex-start; gap: var(--space-2); }
.form-consent input { margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; }
.form-consent label { font-size: var(--fs-xs); color: var(--color-text-muted); }

.form-status {
  margin-top: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: #e8f4ec; color: var(--color-success); border: 1px solid #bfe3c9; }
.form-status.is-error { background: #fbeceb; color: var(--color-danger); border: 1px solid #f2c6c2; }

.form-success {
  text-align: center;
  padding: var(--space-6) var(--space-4);
}
.form-success .icon-badge {
  margin-inline: auto;
  background: #e8f4ec;
  color: var(--color-success);
}
.form-success h2 { margin-bottom: var(--space-2); }
.form-success p { max-width: 440px; margin-inline: auto; margin-bottom: var(--space-2); }
.form-success .form-help { font-size: var(--fs-xs); }

.map-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-top: var(--space-5);
  min-height: 260px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 260px; border: 0; display: block; }

/* Stylized map placeholder graphic (Kontakt) — a brand-colored illustration
   standing in for a real interactive map until the Maps API is configured. */
.map-illustration { width: 100%; height: 100%; display: block; }
.map-illustration-caption {
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-3);
  background: rgba(10, 24, 48, 0.72);
  color: #fff;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  max-width: calc(100% - 2 * var(--space-3));
}

/* ============================================
   FAQ accordion (used on oferta + kontakt)
   ============================================ */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  background: none;
  border: none;
  text-align: left;
  padding: var(--space-4) 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-md);
  color: var(--color-text);
}
.faq-question .icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--color-gold-600); transition: transform var(--transition-base); }
.faq-question[aria-expanded="true"] .icon { transform: rotate(180deg); }
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--transition-base);
}
.faq-answer p { padding-bottom: var(--space-4); margin: 0; }
.faq-item.is-open .faq-answer { max-height: 400px; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-navy-900);
  color: var(--color-text-on-navy-muted);
  padding-block: var(--space-7) var(--space-5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-6);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-logo img { height: 38px; margin-bottom: var(--space-3); filter: brightness(0) invert(1); }
/* Globalna reguła `p { color: var(--color-text-muted) }` (ciemny szary,
   myślany pod jasne tło) nadpisywała jaśniejszy kolor odziedziczony po
   .site-footer, przez co tekst na granatowym tle miał kontrast ~2.6:1
   zamiast docelowych ~8.7:1. */
.footer-brand p { font-size: var(--fs-sm); max-width: 32ch; color: var(--color-text-on-navy-muted); }
.footer-col h3 {
  color: #fff;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}
.footer-col li { margin-bottom: var(--space-2); }
.footer-col a { font-size: var(--fs-sm); transition: color var(--transition-fast); }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: var(--space-2); align-items: flex-start; font-size: var(--fs-sm); }
.footer-contact .icon { width: 18px; height: 18px; color: var(--color-gold-400); flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--fs-xs);
}
.footer-bottom a:hover { color: #fff; }

/* ============================================
   PAGE TRANSITION OVERLAY (logo dot pattern)
   ============================================ */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-navy-900);
  opacity: 1;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.page-transition.pt-hidden {
  opacity: 0;
  pointer-events: none;
}
/* Przy przełączaniu Dla domu / Dla firm overlay ma kolor strony docelowej,
   niezależnie od motywu strony, z której aktualnie się wychodzi. */
.page-transition.page-transition--force-navy { background: #0a1830; }
.page-transition.page-transition--force-graphite { background: #1b1d22; }

.pt-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.pt-row {
  display: flex;
  gap: 8px;
}
.pt-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--color-gold-500);
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.45s cubic-bezier(0.34, 1.2, 0.4, 1), transform 0.45s cubic-bezier(0.34, 1.2, 0.4, 1);
}
.pt-dot.is-visible {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 480px) {
  .pt-grid { gap: 6px; }
  .pt-row { gap: 6px; }
  .pt-dot { width: 10px; height: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .page-transition,
  .pt-dot {
    transition: none !important;
  }
}

/* Utility */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 500;
  background: var(--color-navy-900);
  color: var(--color-text-on-navy);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.2);
  /* Zmiana samej opacity (bez transform: translateY) nie przesuwa
     renderowanego prostokąta elementu, więc nie liczy się do CLS —
     wcześniejsza animacja wjazdu była jedynym źródłem Cumulative Layout
     Shift na całej stronie (zmierzone przez Lighthouse). */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.cookie-banner.is-visible { opacity: 1; pointer-events: auto; }
.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-block: var(--space-4);
}
.cookie-banner-inner p {
  margin: 0;
  color: var(--color-text-on-navy-muted);
  font-size: var(--fs-sm);
  max-width: 640px;
}
.cookie-banner-inner a { color: var(--color-gold-400); text-decoration: underline; }
.cookie-banner-actions {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
}
.btn-sm { padding: 0.6rem 1.1rem; font-size: var(--fs-sm); }
@media (max-width: 640px) {
  .cookie-banner-inner { flex-direction: column; align-items: flex-start; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1; }
}
