html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.osrsz-pasek-logo {
  background: #fff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid #eee;
}
.osrsz-loga { display: flex; align-items: center; gap: 24px; }
.osrsz-loga img.logo-osrsz { height: var(--osrsz-logo-h-osrsz, 145px); width: auto; display: block; }
.osrsz-loga img.logo-ffd { height: var(--osrsz-logo-h-ffd, 145px); width: auto; display: block; }
.osrsz-loga .separator { width: 1px; height: 80px; background: #ccc; }
.osrsz-akcje-prawe { display: flex; align-items: center; gap: 10px; }
.osrsz-naglowek-social { display: flex; align-items: center; gap: 8px; margin-right: 6px; }
.osrsz-naglowek-social a { color: #1a5f3f; font-size: 16px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 6px; border: 1px solid #e2e8f0; text-decoration: none; }
.osrsz-naglowek-social a:hover { background: #1a5f3f; color: #fff; text-decoration: none; }
.osrsz-btn { padding: 8px 16px; border-radius: 6px; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; border: none; font-family: inherit; }
.osrsz-btn.zaloguj { background: #fff; color: #1a5f3f; border: 1px solid #1a5f3f; }
.osrsz-btn.zarejestruj { background: #1a5f3f; color: #fff; }
.osrsz-hamburger { background: none; border: none; font-size: 22px; cursor: pointer; color: #1a5f3f; padding: 4px 8px; }

.osrsz-menu-panel { display: none; position: absolute; top: 100%; right: 24px; background: #fff; border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); padding: 10px 0; min-width: 220px; z-index: 100; }
.osrsz-menu-panel.otwarte { display: block; }
.osrsz-menu-pozycja { position: relative; }
.osrsz-menu-pozycja > a { display: block; padding: 10px 18px; color: #222; text-decoration: none; font-size: 13px; font-weight: 600; }
.osrsz-menu-pozycja > a:hover { background: #f4f6f8; }
.osrsz-menu-dzieci { padding-left: 14px; border-left: 2px solid #eef5f0; margin: 0 18px 6px; }
.osrsz-menu-dzieci a { display: block; padding: 6px 4px; color: #555; text-decoration: none; font-size: 12px; }
.osrsz-menu-dzieci a:hover { color: #1a5f3f; }

/* Pasek menu widoczny na stałe na komputerze (hamburger tylko na telefonie) */
.osrsz-nav-desktop { display: none; background: #fff; border-bottom: 1px solid #eee; padding: 0 24px; align-items: center; justify-content: space-between; }
.osrsz-nav-linki { display: flex; }
.osrsz-nav-desktop .osrsz-naglowek-social { margin-right: 0; }
.osrsz-nav-pozycja { position: relative; }
.osrsz-nav-pozycja > a { display: block; padding: 13px 16px; color: #222; text-decoration: none; font-size: 13px; font-weight: 600; }
.osrsz-nav-pozycja > a:hover { color: #1a5f3f; background: #f4f6f8; }
.osrsz-nav-dzieci { display: none; position: absolute; top: 100%; left: 0; background: #fff; border-radius: 0 0 8px 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.12); min-width: 200px; z-index: 100; padding: 6px 0; }
.osrsz-nav-pozycja:hover .osrsz-nav-dzieci, .osrsz-nav-pozycja:focus-within .osrsz-nav-dzieci { display: block; }
.osrsz-nav-dzieci a { display: block; padding: 8px 16px; color: #555; text-decoration: none; font-size: 12px; }
.osrsz-nav-dzieci a:hover { background: #f4f6f8; color: #1a5f3f; }

@media (min-width: 769px) {
  .osrsz-nav-desktop { display: flex; }
  .osrsz-hamburger { display: none; }
}

.osrsz-stopka { background: #1a5f3f; color: #fff; padding: 36px 32px; }
.osrsz-stopka-wewnetrzna { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.osrsz-stopka-loga { display: flex; align-items: center; gap: 16px; }
.osrsz-stopka-loga img.logo-osrsz { height: var(--osrsz-stopka-logo-h-osrsz, 40px); width: auto; display: block; filter: brightness(0) invert(1); }
.osrsz-stopka-loga img.logo-ffd { height: var(--osrsz-stopka-logo-h-ffd, 40px); width: auto; display: block; filter: brightness(0) invert(1); }
.osrsz-stopka-prawa { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
@media (max-width: 640px) {
  .osrsz-stopka-wewnetrzna { flex-direction: column; align-items: center; text-align: center; }
  .osrsz-stopka-loga { justify-content: center; }
  .osrsz-stopka-prawa { align-items: center; }
}
.osrsz-stopka-linki { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 12px; }
.osrsz-stopka-linki a { color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; }
.osrsz-stopka-linki a:hover { text-decoration: underline; }
.osrsz-stopka-social { display: flex; justify-content: center; gap: 14px; margin-bottom: 12px; }
.osrsz-stopka-social a { color: #fff; opacity: 0.85; }
.osrsz-stopka-social a:hover { opacity: 1; }
.osrsz-stopka-tekst { font-size: 11px; color: #cfe8db; }

/* ===== WCAG: podstawy dostępności ===== */
a:hover, a:focus { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #1a5f3f; outline-offset: 2px;
}
body.pd-links a { text-decoration: underline !important; font-weight: bold !important; }
body.pd-readable-font * { font-family: Arial, Helvetica, sans-serif !important; letter-spacing: 0.03em !important; line-height: 1.6 !important; }
body.pd-contrast { background-color: #000 !important; color: #ff0 !important; }
body.pd-contrast *:not(#pd-access-btn):not(#pd-access-btn *):not(#pd-panel):not(#pd-panel *) {
  background-color: #000 !important; color: #ff0 !important; border-color: #ff0 !important; box-shadow: none !important;
}
body.pd-contrast a { color: #0f0 !important; }
#pd-grayscale-overlay { position: fixed; inset: 0; z-index: 999999; pointer-events: none; display: none; backdrop-filter: grayscale(100%); -webkit-backdrop-filter: grayscale(100%); }
body.pd-grayscale-on #pd-grayscale-overlay { display: block; }

/* ===== Widget dostępności ===== */
#pd-access-btn {
  position: fixed; bottom: 30px; right: 30px; width: 52px; height: 52px;
  background: #fff; border: 1px solid #ddd; border-radius: 50%; font-size: 22px;
  cursor: pointer; z-index: 1000000; box-shadow: 0 5px 20px rgba(0,0,0,.15);
}
#pd-panel {
  position: fixed; bottom: 92px; right: 30px; width: 280px; background: #fff;
  border: 2px solid #1a5f3f; border-radius: 12px; padding: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.25);
  z-index: 1000000; display: none; font-family: 'Poppins', sans-serif;
}
#pd-panel.active { display: block; }
#pd-panel h3 { margin: 0 0 14px; font-size: 16px; text-align: center; border-bottom: 2px solid #eee; padding-bottom: 8px; }
.pd-option {
  display: flex; align-items: center; width: 100%; padding: 10px 12px; margin-bottom: 8px;
  background: #f4f4f4; border: 1px solid #ccc; cursor: pointer; text-align: left; font-size: 13px;
  border-radius: 8px; font-family: inherit;
}
.pd-option:hover { background: #e6efe9; border-color: #1a5f3f; }
.pd-option .emoji { margin-right: 10px; font-size: 16px; width: 20px; text-align: center; }
.pd-option.active-btn { background: #1a5f3f; color: #fff; border-color: #1a5f3f; }

/* ===== Baner cookies ===== */
.osrsz-cookie-banner {
  position: fixed; bottom: 30px; left: 30px; max-width: 360px; background: #fff; padding: 22px;
  z-index: 9999999; box-shadow: 0 10px 40px rgba(0,0,0,.15); border-radius: 12px; display: none;
  border: 1px solid #eee; font-family: 'Poppins', sans-serif;
}
.osrsz-cookie-banner h3 { margin: 0 0 8px; font-size: 16px; }
.osrsz-cookie-banner p { font-size: 12px; line-height: 1.5; color: #666; margin-bottom: 16px; }
.osrsz-cookie-buttons { display: flex; gap: 8px; }
.osrsz-cookie-btn { border: none; padding: 9px 16px; cursor: pointer; border-radius: 6px; font-weight: 600; font-size: 12px; flex: 1; font-family: inherit; }
.osrsz-cookie-accept { background: #1a5f3f; color: #fff; }
.osrsz-cookie-decline { background: #f0f0f0; color: #555; }
.osrsz-cookie-revisit {
  position: fixed; bottom: 30px; left: 30px; width: 48px; height: 48px; background: #fff;
  border-radius: 50%; box-shadow: 0 5px 20px rgba(0,0,0,.15); cursor: pointer; z-index: 999998;
  display: none; align-items: center; justify-content: center; border: 1px solid #eee; font-size: 20px;
}
@media (max-width: 480px) {
  .osrsz-cookie-banner { left: 12px; right: 12px; max-width: none; bottom: 12px; }
  .osrsz-cookie-revisit { left: 12px; bottom: 12px; }
  #pd-access-btn { right: 12px; bottom: 12px; }
  #pd-panel { right: 12px; }
}

@media (max-width: 768px) {
  .osrsz-pasek-logo { justify-content: center; text-align: center; }
  .osrsz-loga { justify-content: center; width: 100%; }
  .osrsz-loga img.logo-osrsz, .osrsz-loga img.logo-ffd { height: min(70px, var(--osrsz-logo-h-osrsz, 70px)); }
  .osrsz-loga .separator { height: 50px; }
  .osrsz-akcje-prawe { justify-content: center; width: 100%; }
}
