/* Wspólna stopka / nagłówek podstron lekkich (Etap 4) */
.pp-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: #8a8a8a;
}
.pp-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}
.pp-footer-nav a {
  color: #cfcfcf;
  text-decoration: none;
}
.pp-footer-nav a:hover,
.pp-footer-nav a:focus-visible {
  color: #fd3f00;
  text-decoration: underline;
}
.pp-footer-nav .sep {
  color: #3a3a3a;
  user-select: none;
}

/* --- Menu w nagłówku podstron (27.10.2026) --- */
.pp-header { position: sticky; }
.pp-header-inner { gap: 16px; }
.pp-nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 4px 22px; }
.pp-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 14px; font-weight: 500; color: var(--text, #cfcfcf); text-decoration: none;
}
.pp-nav a:hover, .pp-nav a:focus-visible { color: var(--text-strong, #fff); text-decoration: none; }
.pp-nav a:focus-visible, .pp-nav-toggle:focus-visible { outline: 2px solid #fd3f00; outline-offset: 3px; border-radius: 4px; }
.pp-nav a[aria-current="page"], .pp-nav a.is-section { color: var(--text-strong, #fff); box-shadow: inset 0 -2px 0 #fd3f00; }
.pp-nav a.pp-nav-cta {
  padding: 0 16px; border-radius: 8px; background: #fd3f00; color: #111; font-weight: 600; box-shadow: none;
}
.pp-nav a.pp-nav-cta:hover, .pp-nav a.pp-nav-cta:focus-visible { background: #ff5a22; color: #111; }
.pp-nav-toggle { display: none; }

@media (max-width: 860px) {
  .pp-header.js-subnav .pp-nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
    background: transparent; color: var(--text-strong, #fff); border: 1px solid var(--line, #2a2a2a);
    border-radius: 8px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  }
  .pp-nav-bars, .pp-nav-bars::before, .pp-nav-bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; border-radius: 1px; transition: transform .2s ease, opacity .2s ease;
  }
  .pp-nav-bars { position: relative; }
  .pp-nav-bars::before, .pp-nav-bars::after { content: ""; position: absolute; left: 0; }
  .pp-nav-bars::before { top: -6px; }
  .pp-nav-bars::after { top: 6px; }
  .pp-header.is-open .pp-nav-bars { background: transparent; }
  .pp-header.is-open .pp-nav-bars::before { transform: translateY(6px) rotate(45deg); }
  .pp-header.is-open .pp-nav-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .pp-header.js-subnav .pp-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 20px; background: #0b0b0b; border-bottom: 1px solid var(--line, #2a2a2a);
    box-shadow: 0 16px 32px rgba(0, 0, 0, .5);
  }
  .pp-header.js-subnav.is-open .pp-nav { display: flex; }
  .pp-header.js-subnav .pp-nav a { min-height: 48px; font-size: 16px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .pp-header.js-subnav .pp-nav a[aria-current="page"], .pp-header.js-subnav .pp-nav a.is-section { box-shadow: inset 3px 0 0 #fd3f00; padding-left: 12px; }
  .pp-header.js-subnav .pp-nav a.pp-nav-cta { margin-top: 14px; justify-content: center; border-bottom: 0; padding-left: 16px; }
}
@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
  .pp-nav-bars, .pp-nav-bars::before, .pp-nav-bars::after { transition: none; }
}

/* --- Linki do pozostałych usług na stronach usług (SEO, 27.10.2026) --- */
.pp-related { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line, #2a2a2a); }
.pp-related-title { font-family: "Space Grotesk", sans-serif; font-size: 16px; font-weight: 600; color: var(--text-strong, #fff); margin: 0 0 12px; }
.pp-related-links { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.pp-related-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line, #2a2a2a); border-radius: 999px; color: var(--text, #e4e4e4); text-decoration: none; font-size: 15px;
}
.pp-related-links a:hover, .pp-related-links a:focus-visible { border-color: #fd3f00; color: #fff; text-decoration: none; }

/* Linki w treści podstron: podkreślenie, nie tylko kolor (WCAG 1.4.1) */
.pp-main p a:not(.theme-btn), .pp-main li a:not(.theme-btn) { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
