main,
footer { position: relative; }

/* ===== Canonical site header (shared/header.html) =====
   Single source of truth for header layout/box-model so every page
   renders it identically instead of drifting per-page copy. */
.site-header {
  display: flex !important;
  align-items: center !important;
  gap: 32px !important;
  height: 96px !important;
  min-height: 0 !important;
  padding: 0 clamp(28px, 5vw, 72px) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  background: #fffffff5 !important;
  border-bottom: 1px solid #dfe6dcaa !important;
  backdrop-filter: blur(14px) !important;
}
.site-header .brand { display: flex !important; align-items: center !important; gap: 8px !important; min-width: 0; flex-shrink: 1; }
.site-header .brand img.shared-logo {
  width: 58px !important;
  height: 58px !important;
  object-fit: contain !important;
  display: block !important;
}
.site-header .brand b {
  font: 800 25px "Plus Jakarta Sans", Inter, sans-serif !important;
}
.site-header .brand-icon { height: 53px; width: auto; display: block; flex-shrink: 0; }
.site-header .brand-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; overflow: hidden; }
.site-header .brand-name {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.025em;
  color: #1a3a28;
}
.site-header .brand-tagline {
  font-size: 8px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-header .main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 21px;
  flex: 1;
}
.site-header .main-nav a {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  color: #17281c !important;
}
.site-header .main-nav a:hover,
.site-header .main-nav a.active { color: #3d7a34 !important; }
.site-header .header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.site-header .header-actions > a:not(.header-cta) { color: #17281c !important; }
.site-header .header-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 12px 19px !important;
  border-radius: 999px !important;
  border: 0 !important;
  font-size: 13px !important;
  font-weight: 700;
  line-height: normal !important;
  color: #fff !important;
  background: linear-gradient(#4c9341, #34722d) !important;
  box-shadow: inset 0 1px #ffffff55, 0 8px 18px #3d7a342e !important;
  transition: transform 0.15s ease;
}
.site-header .header-cta:hover { transform: translateY(-1px); }

.site-header .menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid #dfe6dc;
  background: #fff;
  border-radius: 9px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.contact,
.closing { backdrop-filter: blur(2px); }
footer { z-index: 2; }

/* Obramowane karty pozostają czytelne nad wspólnym tłem z drzewem. */
.faq-item { background-color: #fff !important; }

@media (max-width: 850px) {
  .site-header { height: auto !important; min-height: 76px !important; padding: 12px clamp(20px, 5vw, 72px) !important; }
  .site-header .main-nav { display: none; }
  .site-header .menu-toggle { display: block; }
  .site-header .main-nav.open {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    z-index: 49;
  }
  .site-header .main-nav.open a { padding: 12px clamp(20px, 5vw, 72px); }
  .site-header .brand img.shared-logo {
    width: 46px !important;
    height: 46px !important;
  }
  .site-header .brand b { font-size: 21px !important; }
  .site-header .brand-icon { height: 44px; }
  .site-header .brand-name { font-size: 16px; }
  .site-header .brand-tagline { max-width: 100px; }
}

@media (max-width: 560px) {
  .site-header .header-actions a:not(.header-cta) { display: none; }
  .site-header .header-cta { padding: 8px 14px !important; font-size: 12px !important; }
}
