/* Dostępność i motyw ciemny (Radar - strony badań) */
:root[data-theme=dark]{color-scheme:dark}
html:root[data-theme=dark] body{background-color:#0a1822;color:#e7f1f5}
html:root[data-theme=dark] img:not([src$=".svg"]){filter:brightness(.92)}

/* zmienne stylów wtyczki w trybie ciemnym */
html:root[data-theme=dark] .rsb{--rsb-accent:#5CC6D6;--rsb-accent-2:#7FD3DE;--rsb-navy:#E7F1F5;--rsb-ink:#D6E4EA;--rsb-ink2:#A9C0CC;--rsb-line:#23404F;
  --rsb-soft:#0D1F2A;--rsb-mint:#143744;--rsb-ok:#7FD6A6;--rsb-ok-soft:#123C28;--rsb-soon:#F2C879;--rsb-soon-soft:#3A2C12;--rsb-mute:#A9B6C2;--rsb-mute-soft:#1A2A35}
html:root[data-theme=dark] .rsbs{--rsbs-bg:#0A1822;--rsbs-line:#23404F;background:#0A1822!important}
html:root[data-theme=dark] .rsb .rb-btn:not(.rb-btn--ghost),html:root[data-theme=dark] .rsbs .rb-btn:not(.rb-btn--ghost){background:#0E5E78;border-color:#0E5E78;color:#fff!important}
html:root[data-theme=dark] .rsb .rb-btn--ghost{color:#7FD3DE!important;border-color:#5CC6D6}
/* tła w kolorach marki z białym tekstem zostają ciemne */
html:root[data-theme=dark] .rb-ask{background:linear-gradient(135deg,#0D2236,#123C5E)}
html:root[data-theme=dark] .rsb-hot,html:root[data-theme=dark] .rsbs-call{background:#0D2236}
html:root[data-theme=dark] .rsb .rb-call,html:root[data-theme=dark] .rsb.rsb-hot .rb-call__ico,html:root[data-theme=dark] .rb-pager a[aria-current],html:root[data-theme=dark] .rsb .rsb-az__nav a:hover,html:root[data-theme=dark] .rsb .rsb-dx__nav a:hover,html:root[data-theme=dark] .rsb .rb-ask__more .rsb-form .rb-btn,html:root[data-theme=dark] .rsb .rb-dlg .rsb-form .rb-btn{background:#0E5E78;border-color:#0E5E78;color:#fff}
html:root[data-theme=dark] .rsb .rb-call:hover{background:#127592}
html:root[data-theme=dark] .rsb .rsb-form .rb-btn{background:#3FB1C2;border-color:#3FB1C2;color:#06202A!important}
html:root[data-theme=dark] .rb-bar:hover .rb-bar__fill{background:#E7F1F5}

/* przełącznik motywu (krótki kod [radar_motyw]) */
button.rsb-theme-btn{appearance:none;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:999px;border:1.5px solid currentColor;background:transparent;color:inherit;cursor:pointer;padding:0;line-height:1}
button.rsb-theme-btn:hover,button.rsb-theme-btn:focus{background:rgba(127,211,222,.18);color:inherit}
.rsb-theme-btn .rsb-ico-sun{display:none}
html:root[data-theme=dark] .rsb-theme-btn .rsb-ico-sun{display:block}
html:root[data-theme=dark] .rsb-theme-btn .rsb-ico-moon{display:none}

/* link „Przejdź do treści” */
.rsb-skip{position:absolute;left:12px;top:-200px;z-index:100000;background:#0B2540;color:#fff!important;padding:12px 18px;border-radius:10px;font-weight:700;text-decoration:none;font-size:16px}
.rsb-skip:focus{top:12px;outline:3px solid #7FD3DE;outline-offset:2px}

/* widoczny fokus dla klawiatury (WCAG 2.4.7) */
:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid #3FB1C2!important;outline-offset:2px!important;border-radius:4px}
html:root[data-theme=dark] :where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline-color:#7FD3DE!important}

/* ograniczenie ruchu: ustawienie systemu albo przełącznik w panelu */
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
:root[data-rsb-nm] *,:root[data-rsb-nm] *::before,:root[data-rsb-nm] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}

/* wielkość tekstu */
:root[data-rsb-fs="1"] body{zoom:1.12}
:root[data-rsb-fs="2"] body{zoom:1.25}
:root[data-rsb-fs="1"] .rsb-a11y,:root[data-rsb-fs="2"] .rsb-a11y{zoom:1}

/* odstępy w tekście (WCAG 1.4.12) */
:root[data-rsb-sp] body p,:root[data-rsb-sp] body li,:root[data-rsb-sp] body dd,:root[data-rsb-sp] body td{line-height:1.8!important;letter-spacing:.03em!important;word-spacing:.12em!important}
:root[data-rsb-sp] body p{margin-bottom:1.2em!important}

/* podkreślenie linków */
:root[data-rsb-ul] body a:not(.rsb-a11y *):not([class*="btn"]):not([class*="button"]){text-decoration:underline!important;text-underline-offset:3px}

/* wysoki kontrast */
:root[data-rsb-hc] body *:not(img):not(svg):not(svg *):not(video):not(iframe):not(.rsb-a11y):not(.rsb-a11y *):not(.rsbs-cell):not(.rsbs-lines){background-color:#fff!important;background-image:none!important;color:#000!important;border-color:#000!important;box-shadow:none!important;text-shadow:none!important}
:root[data-rsb-hc] body{background:#fff!important}
:root[data-rsb-hc] body a:not(.rsb-a11y *):not(#rsb-x1):not(#rsb-x2){color:#0000c8!important;text-decoration:underline!important}
:root[data-rsb-hc] body button:not(.rsb-a11y *),:root[data-rsb-hc] body .rb-btn{border:2px solid #000!important}
:root[data-rsb-hc][data-theme=dark] body *:not(img):not(svg):not(svg *):not(video):not(iframe):not(.rsb-a11y):not(.rsb-a11y *):not(.rsbs-cell):not(.rsbs-lines){background-color:#000!important;color:#fff!important;border-color:#fff!important}
:root[data-rsb-hc][data-theme=dark] body{background:#000!important}
:root[data-rsb-hc][data-theme=dark] body a:not(.rsb-a11y *):not(#rsb-x1):not(#rsb-x2):not(#rsb-x3){color:#ffe14d!important}
:root[data-rsb-hc][data-theme=dark] body button:not(.rsb-a11y *),:root[data-rsb-hc][data-theme=dark] body .rb-btn{border-color:#fff!important}

/* panel dostępności */
.rsb-a11y{position:fixed;left:16px;bottom:16px;z-index:99990;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;font-size:15px;line-height:1.4}
.rsb-a11y *,.rsb-a11y *::before,.rsb-a11y *::after{box-sizing:border-box}
.rsb-a11y .rsb-a11y__fab{appearance:none;width:52px;height:52px;border-radius:999px;border:2px solid #fff;background:#0B2540;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 10px 26px -8px rgba(11,37,64,.6);padding:0;margin:0}
.rsb-a11y .rsb-a11y__fab:hover,.rsb-a11y .rsb-a11y__fab:focus{background:#0E5E78;color:#fff;border-color:#fff}
.rsb-a11y__panel{position:absolute;left:0;bottom:64px;width:min(340px,calc(100vw - 32px));max-height:calc(100vh - 100px);overflow:auto;background:#fff;color:#0B2540;border:1px solid #D7EAED;border-radius:18px;box-shadow:0 24px 60px -18px rgba(11,37,64,.55);padding:16px 16px 14px}
.rsb-a11y__panel[hidden]{display:none}
.rsb-a11y__h{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 0 10px}
.rsb-a11y__h h2{font-size:17px;font-weight:800;margin:0;color:inherit;font-family:inherit;line-height:1.3}
.rsb-a11y .rsb-a11y__x{appearance:none;width:40px;height:40px;border-radius:999px;border:0;background:#EEF4F6;color:#0B2540;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
.rsb-a11y .rsb-a11y__x:hover,.rsb-a11y .rsb-a11y__x:focus{background:#DCEBF0;color:#0B2540}
.rsb-a11y__g{margin:0 0 12px;border:0;padding:0;min-width:0}
.rsb-a11y__g legend,.rsb-a11y__l{font-size:12.5px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#3E5468;margin:0 0 6px;padding:0}
.rsb-a11y__seg{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.rsb-a11y .rsb-a11y__seg button,.rsb-a11y .rsb-a11y__t{appearance:none;font:inherit;font-size:14px;font-weight:600;min-height:44px;border:1.5px solid #D3E1E7;background:#fff;color:#0B2540;border-radius:12px;cursor:pointer;padding:6px 8px;line-height:1.2;white-space:normal;text-transform:none;letter-spacing:normal}
.rsb-a11y .rsb-a11y__seg button:hover,.rsb-a11y .rsb-a11y__t:hover,.rsb-a11y .rsb-a11y__seg button:focus,.rsb-a11y .rsb-a11y__t:focus{background:#F3F8FA;color:#0B2540;border-color:#3FB1C2}
.rsb-a11y .rsb-a11y__seg button[aria-pressed="true"],.rsb-a11y .rsb-a11y__t[aria-pressed="true"]{background:#0E5E78;border-color:#0E5E78;color:#fff}
.rsb-a11y__list{display:grid;gap:6px}
.rsb-a11y .rsb-a11y__t{display:flex;justify-content:space-between;align-items:center;text-align:left;width:100%}
.rsb-a11y__t span:last-child{font-size:12px;font-weight:700;opacity:.85}
.rsb-a11y .rsb-a11y__reset{appearance:none;font:inherit;font-size:13.5px;background:none;border:0;color:#0E5E78;text-decoration:underline;cursor:pointer;padding:6px 0;margin-top:2px}
.rsb-a11y .rsb-a11y__reset:hover,.rsb-a11y .rsb-a11y__reset:focus{background:none;color:#0B2540}
.rsb-a11y__info{font-size:12.5px;color:#3E5468;margin:8px 0 0}
.rsb-a11y__info a{color:#0E5E78}
html:root[data-theme=dark] .rsb-a11y .rsb-a11y__fab{background:#0E5E78;border-color:#7FD3DE}
html:root[data-theme=dark] .rsb-a11y__panel{background:#10222E;color:#E7F1F5;border-color:#23404F}
html:root[data-theme=dark] .rsb-a11y .rsb-a11y__x{background:#16303F;color:#E7F1F5}
html:root[data-theme=dark] .rsb-a11y__g legend,html:root[data-theme=dark] .rsb-a11y__l,html:root[data-theme=dark] .rsb-a11y__info{color:#A9C0CC}
html:root[data-theme=dark] .rsb-a11y__seg button,html:root[data-theme=dark] .rsb-a11y__t{background:#0A1822;color:#E7F1F5;border-color:#2C4A5A}
html:root[data-theme=dark] .rsb-a11y__seg button[aria-pressed="true"],html:root[data-theme=dark] .rsb-a11y__t[aria-pressed="true"]{background:#5CC6D6;border-color:#5CC6D6;color:#06202A}
html:root[data-theme=dark] .rsb-a11y__reset,html:root[data-theme=dark] .rsb-a11y__info a{color:#7FD3DE}
@media print{.rsb-a11y,.rsb-skip{display:none!important}}
@media (max-width:600px){.rsb-a11y{left:10px;bottom:10px}.rsb-a11y .rsb-a11y__fab{width:44px;height:44px}.rsb-a11y__fab svg{width:24px;height:24px}.rsb-a11y__panel{bottom:54px}}
.rsb-theme-slot{display:flex;align-items:center;flex:0 0 auto}
.rsb-theme-slot .rsb-theme-btn{width:42px;height:42px;color:#0B2540;border-color:#C6D6E2;background:#fff}
html:root[data-theme=dark] .rsb-theme-slot .rsb-theme-btn{color:#E7F1F5;border-color:#2C4A5A;background:#10222E}
/* okno kontaktu i mapa ośrodków w trybie ciemnym (przyciski motywu nadpisują kolory) */
html:root[data-theme=dark] .rsb .rb-dlg__x,html:root[data-theme=dark] .rsb .rb-map__x{border-color:#23404F;color:#E7F1F5;background:#0D1F2A}
html:root[data-theme=dark] .rsb .rb-map__ask{border-color:#5CC6D6;color:#5CC6D6;background:transparent}
html:root[data-theme=dark] .rsb .rb-map__ask:hover,html:root[data-theme=dark] .rsb .rb-map__ask:focus{background:#5CC6D6;color:#0A1822}
html:root[data-theme=dark] .rb-map__pt circle{stroke:#0A1822}
html:root[data-theme=dark] .rb-map__pt text{fill:#0A1822}
