/* Centrum Alergologii — arkusz stylów szablonu alergologi2
   Zasady wyglądu opisuje docs/design-system.md; wartości wspólne są zmiennymi w :root (sekcja 2).
   Powłoka strony: #ca-page > #ca-bar (przycisk menu na telefonie), #ca-menus > #ca-top (menu górne),
   #box > #top (logo, znak „Uwaga alergia”) + #ca-cols > #left (menu boczne, banery) i #right (treść), .f_oot (stopka).

   Spis:  1. kroje   2. zmienne   3. podstawa   4. menu górne   5. nagłówek strony   6. kolumny i menu boczne
          7. banery   8. treść: typografia   9. treść: podtytuły   10. treść: elementy   11. treść: formatowanie z edytora
          12. „Nasz zespół”   13. klasy treści   14. stronicowanie   15. elementy CMS   16. stopka
          17. szeroki ekran (od 860 px)   18. telefon (do 859 px)
   Reguły podstawowe (1–16) obowiązują na każdej szerokości; sekcje 17–18 dokładają układ zależny od ekranu. */

/* ---------- 1. kroje: pliki lokalne, wersje zmienne; wczesne ładowanie (preload) w <head> ---------- */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/manrope-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/manrope-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 600 800; font-display: swap; src: url(fonts/opensans-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 600 800; font-display: swap; src: url(fonts/opensans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/sourcesans3-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/sourcesans3-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- 2. zmienne ---------- */
:root {
  /* kroje */
  --ca-text: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;   /* treść */
  --ca-head: Manrope, 'Segoe UI', Arial, sans-serif;        /* nagłówki treści */
  --ca-menu: 'Open Sans', 'Segoe UI', Arial, sans-serif;    /* menu, banery, przycisk menu */
  /* skale (1 = 16 px) */
  --ca-text-scale: 1;       /* treść: 16 px */
  --ca-head-scale: 1;       /* nagłówki treści */
  --ca-menu-scale: 1;       /* oba menu */
  /* zieleń menu: odcień logo (#90b920), przyciemniony dla kontrastu białego tekstu (ok. 3,6–4:1) */
  --ca-g1: #7aa814;         /* jasny */
  --ca-g2: #688f0e;         /* podstawowy: menu, znaczniki, logo */
  --ca-g3: #4b7208;         /* ciemny */
  --ca-green: #4a7208;      /* nagłówki treści */
  --ca-link: #3b6006;       /* linki w treści */
  --ca-link-hover: #263f03;
  --ca-accent: #8cc21a;     /* gruba kreska nagłówka sekcji, jasny pasek podtytułu */
  --ca-mark: #b6e34a;       /* podkreślenie aktywnej / wskazanej pozycji menu */
  --ca-line: #b9d98a;       /* cienkie linie: pod nagłówkami, hr, obramowania */
  --ca-ink: #1e2a12;        /* tekst */
  /* komunikat dla pacjentów */
  --ca-note-bg: #fff4d6;
  --ca-note-border: #f0a500;
  --ca-note-edge: #e07b00;
  --ca-note-text: #8a3b00;
  /* panel treści */
  --ca-panel-alpha: 0.88;   /* krycie białego panelu nad tłem */
  --ca-radius: 22px;        /* zaokrąglenie panelu */
  --ca-pod: 30px;           /* wcięcie podtytułu i treści pod nim */
  --ca-menu-gradient: linear-gradient(180deg, var(--ca-g1) 0%, var(--ca-g2) 38%, var(--ca-g3) 100%);
}
@property --ca-in { syntax: '<length>'; inherits: false; initial-value: 0px; }   /* bieżące wcięcie elementu (sekcja 9) */

/* ---------- 3. podstawa ---------- */
html { font-size: 100%; -webkit-text-size-adjust: 100%; overflow-x: clip; }   /* 1rem = 16 px */
body {
  margin: 0;
  padding: 0;
  background: #86b72b url(img/tlo.jpg) no-repeat center top / cover fixed;
  font-family: var(--ca-text);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ca-ink);
  overflow-x: hidden;      /* biała belka i wstęga menu mają szerokość 100vw, która obejmuje pasek przewijania; */
  overflow-x: clip;        /* clip, gdzie przeglądarka go zna (nie tworzy kontenera przewijania) */
}
img { border: 0; }
#ca-page { max-width: 1180px; margin: 0 auto; padding: 0 24px 10px; box-sizing: content-box; }

/* ---------- 4. menu górne ---------- */
#ca-bar { display: none; }
#ca-menus { display: flex; justify-content: flex-end; position: relative; z-index: 3; }
#ca-top, #menu, .ca-menu-btn, #ca-menus.ca-stacked { background: var(--ca-g2); background: var(--ca-menu-gradient); }
#ca-top { box-shadow: 0 4px 10px rgba(20, 50, 0, 0.22), inset 0 -1px 0 rgba(255, 255, 255, 0.18); }
#ca-top ul.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
#ca-top ul.menu li { margin: 0; padding: 0; }
#ca-top a {
  display: block;
  border-radius: 10px;
  border-bottom: 3px solid transparent;
  font-family: var(--ca-menu);
  font-size: calc(0.875rem * var(--ca-menu-scale));
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
#ca-top a:hover, #ca-top a:focus, #ca-top a.selected { text-decoration: underline; text-decoration-color: var(--ca-mark); text-decoration-thickness: 3px; text-underline-offset: 6px; }   /* kreska na szerokość napisu */

/* ---------- 5. nagłówek strony: logo i znak „Uwaga alergia” ---------- */
#top { position: relative; }
#logo { display: inline-block; }
#logo img { display: block; height: auto; max-width: 100%; }
#uwaga { position: absolute; width: 216px; height: auto; z-index: 2; }   /* rozmiar naturalny pliku (216×204) */

/* ---------- 6. kolumny i menu boczne ---------- */
#ca-cols { display: flex; gap: 40px; align-items: flex-start; padding: 28px 64px 44px 0; }
#left { flex: 0 0 300px; }
#right { flex: 1 1 0; min-width: 0; font-size: calc(1rem * var(--ca-text-scale)); }

#menu { background: linear-gradient(180deg, var(--ca-g2) 0%, var(--ca-g3) 100%); border-radius: 0 24px 24px 0; padding: 10px 12px 12px 0; box-shadow: 0 4px 10px rgba(20, 50, 0, 0.20); }   /* wysoki blok: bez jasnego pasa u góry */
#menu ul.menu { list-style: none; margin: 0; padding: 0; }
#menu ul.menu li { margin: 0; padding: 0; }
#menu ul.menu li + li { border-top: 1px solid rgba(255, 255, 255, 0.16); }
#menu a {
  display: block;
  padding: 13px 14px 11px 50px;
  border-radius: 0 12px 12px 0;
  font-family: var(--ca-menu);
  font-size: calc(0.875rem * var(--ca-menu-scale));
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
#menu a:hover, #menu a:focus, #menu a.selected { text-decoration: underline; text-decoration-color: var(--ca-mark); text-decoration-thickness: 3px; text-underline-offset: 7px; }

/* ---------- 7. banery w lewej kolumnie: „Komunikaty pyłkowe” (link) i „Infolinia” (link tel:) ---------- */
#left .custom { padding: 44px 0 36px 4px; display: flex; flex-direction: column; align-items: center; gap: 46px; text-align: center; font-family: var(--ca-menu); }
#left .custom svg { display: block; }
.ca-pylki { display: block; color: var(--ca-g2); font-weight: 800; font-size: 0.94rem; letter-spacing: 0.03em; text-transform: uppercase; text-decoration: none; }
.ca-pylki svg { width: 200px; max-width: 100%; height: auto; margin: 0 auto 8px; }
.ca-pylki:hover, .ca-pylki:focus { color: var(--ca-g3); text-decoration: underline; text-decoration-color: var(--ca-mark); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.ca-infolinia { display: block; color: #6f7a66; text-decoration: none; }   /* na telefonie dotknięcie wybiera numer */
.ca-infolinia svg { width: 64px; height: auto; margin: 0 auto 4px; color: var(--ca-g2); }
.ca-infolinia .l { display: block; font-weight: 800; font-size: 1.375rem; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.1; }
.ca-infolinia .n { display: block; font-weight: 800; font-size: 1.69rem; line-height: 1.15; color: #4a5544; white-space: nowrap; }
.ca-infolinia:hover .n, .ca-infolinia:focus .n { color: var(--ca-g3); }
.ca-infolinia:hover .l, .ca-infolinia:focus .l { color: var(--ca-g2); }

/* ---------- 8. treść: typografia ---------- */
#right { text-align: justify; }                                   /* tekst justowany; wyśrodkowania wpisane w artykułach mają pierwszeństwo */
#right :where(h1, h2, h3, h4, h5, h6) { text-align: left; }
#right h1, #right h2, #right h3, #right h4 { font-family: var(--ca-head); color: var(--ca-green); margin: 0 0 0.6em; }
#right h1 { font-size: calc(1.3125rem * var(--ca-head-scale)); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }   /* 21 px */
#right h2 { font-size: calc(1.2rem * var(--ca-head-scale)); line-height: 1.2; font-weight: 800; letter-spacing: -0.015em; }
#right h3 { font-size: calc(1.1rem * var(--ca-head-scale)); line-height: 1.25 !important; font-weight: 700; letter-spacing: -0.01em; }   /* 17,6 px */
#right h4 { font-size: calc(1.05rem * var(--ca-head-scale)); line-height: 1.3; font-weight: 700; }   /* 16,8 px */
#right h1 a, #right h2 a, #right h3 a { color: var(--ca-green); text-decoration: none; }
#right h1 a:hover, #right h2 a:hover, #right h3 a:hover { text-decoration: underline; }
/* łamanie wierszy (nowsze przeglądarki): równe wiersze nagłówków sekcji, mniej samotnych wyrazów w akapitach.
   Jednoliterowych wyrazów na końcu wiersza CSS nie usuwa — do tego służą twarde spacje (&nbsp;) w treści. */
#right h1, #right h2 { text-wrap: balance; }
#right h3, #right h4, #right p, #right li, #right td { text-wrap: pretty; }

/* nagłówek sekcji: wersaliki, większy odstęp między wyrazami, cienka linia przez całą szerokość i gruba kreska na początku.
   Ten sam akcent dostaje tytuł podstrony, gdy jest nagłówkiem drugiego stopnia (pierwszy h2 w treści). */
#right h1,
#right > div > h2:first-of-type:not(.artykul ~ h2):not(h1 ~ h2),
#right > div > .artykul:not(.artykul ~ .artykul):not(h1 ~ .artykul):not(h2 ~ .artykul) > h2:first-of-type,
#right > div > .artykul:not(.artykul ~ .artykul):not(h1 ~ .artykul):not(h2 ~ .artykul) > div > h2:first-of-type,
#right > div > .row:not(.row ~ .row) > div > h2:first-of-type { position: relative; text-transform: uppercase; word-spacing: 0.14em; padding-bottom: 12px; border-bottom: 1px solid var(--ca-line); margin-bottom: 0.9em; }
#right h1:after,
#right > div > h2:first-of-type:not(.artykul ~ h2):not(h1 ~ h2):after,
#right > div > .artykul:not(.artykul ~ .artykul):not(h1 ~ .artykul):not(h2 ~ .artykul) > h2:first-of-type:after,
#right > div > .artykul:not(.artykul ~ .artykul):not(h1 ~ .artykul):not(h2 ~ .artykul) > div > h2:first-of-type:after,
#right > div > .row:not(.row ~ .row) > div > h2:first-of-type:after { content: ""; position: absolute; left: 0; bottom: -3px; width: 72px; height: 5px; border-radius: 3px; background: var(--ca-accent); }
#right > div > h2:first-of-type:not(.artykul ~ h2):not(h1 ~ h2),
#right > div > .artykul:not(.artykul ~ .artykul):not(h1 ~ .artykul):not(h2 ~ .artykul) > h2:first-of-type,
#right > div > .artykul:not(.artykul ~ .artykul):not(h1 ~ .artykul):not(h2 ~ .artykul) > div > h2:first-of-type,
#right > div > .row:not(.row ~ .row) > div > h2:first-of-type { font-size: calc(1.3125rem * var(--ca-head-scale)); line-height: 1.15; }
/* linia pozioma z treści tuż przed nagłówkiem sekcji jest zbędna — rozdzielenie przejmuje nagłówek */
#right hr:has(+ h1), #right hr:has(+ a + h1) { visibility: hidden; margin: 1em 0 1.4em; }

/* ---------- 9. treść: podtytuły (h3) ----------
   Dwa skośne paski równo z nagłówkiem sekcji; tekst podtytułu i treść pod nim wcięte o --ca-pod aż do granicy
   artykułu (hr, h1, h2). Podtytuły wyśrodkowane w treści zostają bez pasków i bez wcięcia (i kończą wcięcie).
   CSS nie zna „najbliższego poprzednika”, więc każdy cykl „podtytuł → granica” to osobna para reguł; obsługiwane są
   3 cykle w jednym kontenerze (test_przegladarka.test_css_podtytuly pilnuje, żeby żadna strona ich nie przekroczyła). */
#right h3 { position: relative; margin-top: 2em; }
#right h1 + h3, #right h3:first-child { margin-top: 0.6em; }
#right h3:not([style*="center"], [align]) { padding-left: var(--ca-pod); }
#right h3:not([style*="center"], [align]):before { content: ""; position: absolute; left: 3px; top: 0.2em; width: 5px; height: 0.95em; border-radius: 2px; transform: skewX(-16deg); background: var(--ca-g2); box-shadow: 9px 0 0 var(--ca-accent); }
#right h3:not([style*="center"], [align]) ~ :not(h1, h2, h3, hr) { --ca-in: var(--ca-pod); }
#right h3:not([style*="center"], [align]) ~ :is(h1, h2, hr, h3[style*="center"], h3[align]) ~ :not(h1, h2, h3, hr) { --ca-in: 0px; }
#right h3:not([style*="center"], [align]) ~ :is(h1, h2, hr, h3[style*="center"], h3[align]) ~ h3:not([style*="center"], [align]) ~ :not(h1, h2, h3, hr) { --ca-in: var(--ca-pod); }
#right h3:not([style*="center"], [align]) ~ :is(h1, h2, hr, h3[style*="center"], h3[align]) ~ h3:not([style*="center"], [align]) ~ :is(h1, h2, hr, h3[style*="center"], h3[align]) ~ :not(h1, h2, h3, hr) { --ca-in: 0px; }
#right h3:not([style*="center"], [align]) ~ :is(h1, h2, hr, h3[style*="center"], h3[align]) ~ h3:not([style*="center"], [align]) ~ :is(h1, h2, hr, h3[style*="center"], h3[align]) ~ h3:not([style*="center"], [align]) ~ :not(h1, h2, h3, hr) { --ca-in: var(--ca-pod); }
#right h3:not([style*="center"], [align]) ~ :is(h1, h2, hr, h3[style*="center"], h3[align]) ~ h3:not([style*="center"], [align]) ~ :is(h1, h2, hr, h3[style*="center"], h3[align]) ~ h3:not([style*="center"], [align]) ~ :is(h1, h2, hr, h3[style*="center"], h3[align]) ~ :not(h1, h2, h3, hr) { --ca-in: 0px; }
#right h3 ~ :not(h1, h2, h3, hr) { margin-left: var(--ca-in); }
#right h3 ~ table, #right h3 ~ iframe { max-width: calc(100% - var(--ca-in)) !important; }
#right h3 ~ table[style*="width: 100%"], #right h3 ~ table[style*="width:100%"], #right h3 ~ table[width="100%"] { width: calc(100% - var(--ca-in)) !important; }

/* ---------- 10. treść: akapity, listy, linki, linie, media ---------- */
#right p { margin: 0 0 0.9em; }
#right p:empty { display: none; }
#right ul, #right ol { margin: 0 0 1em; padding-left: 1.4em; }
#right li { margin: 0 0 0.3em; }
#right a { color: var(--ca-link); text-decoration: underline; text-underline-offset: 2px; }
#right a:hover { color: var(--ca-link-hover); }
#right hr { border: 0; height: 2px; background: var(--ca-line); margin: 1.8em 0 1.6em; }
#right img { max-width: 100%; height: auto; }
#right iframe, #right object, #right embed, #right video { max-width: 100%; }
#right table { max-width: 100%; border-collapse: collapse; }
#right .ca-scroll { overflow-x: auto; }
/* tabela paneli badań (Testy i badania, artykuł 506): przewijana w poziomie na wąskim ekranie */
#right table.ca-panele { display: block; overflow-x: auto; font-size: 0.875em; margin: 0.6em 0 1.2em; }
#right .ca-panele th, #right .ca-panele td { border: 1px dashed var(--ca-line); padding: 6px 10px; vertical-align: top; text-align: left; line-height: 1.45 !important; }
#right .ca-panele th { color: var(--ca-green); text-align: center; white-space: nowrap; }

/* ---------- 11. treść: ręczne formatowanie z edytora — jeden krój i przewidywalne rozmiary ---------- */
#right, #right p, #right li, #right td, #right th, #right span, #right div, #right font, #right strong, #right em, #right b, #right i { font-family: var(--ca-text) !important; }
#right h1, #right h2, #right h3, #right h4, #right h1 *, #right h2 *, #right h3 *, #right h4 * { font-family: var(--ca-head) !important; }
#right p, #right li, #right td, #right th { line-height: 1.6 !important; }
#right [style*="font-size: 9px"], #right [style*="font-size: 10px"], #right [style*="font-size: 11px"], #right [style*="font-size:10px"], #right [style*="font-size:11px"] { font-size: calc(0.8rem * var(--ca-text-scale)) !important; }
#right [style*="font-size: 12px"], #right [style*="font-size:12px"] { font-size: calc(0.85rem * var(--ca-text-scale)) !important; }
#right [style*="font-size: 13px"], #right [style*="font-size:13px"] { font-size: calc(0.88rem * var(--ca-text-scale)) !important; }
#right [style*="font-size: 14px"], #right [style*="font-size:14px"] { font-size: calc(0.94rem * var(--ca-text-scale)) !important; }
#right [style*="font-size: 15px"], #right [style*="font-size:15px"] { font-size: calc(1rem * var(--ca-text-scale)) !important; }
#right [style*="font-size: 16px"], #right [style*="font-size:16px"] { font-size: calc(1.05rem * var(--ca-text-scale)) !important; }
#right [style*="font-size: 17px"], #right [style*="font-size:17px"] { font-size: calc(1.12rem * var(--ca-text-scale)) !important; }
#right [style*="font-size: 18px"], #right [style*="font-size:18px"] { font-size: calc(1.2rem * var(--ca-text-scale)) !important; }
#right [style*="font-size: 20px"], #right [style*="font-size:20px"] { font-size: calc(1.3rem * var(--ca-text-scale)) !important; }
#right [style*="font-size: 22px"], #right [style*="font-size: 24px"] { font-size: calc(1.5rem * var(--ca-text-scale)) !important; }

/* ---------- 12. „Nasz zespół”: szablony artykułu ze sztywnymi szerokościami 500/200/300 px — podpis i zdjęcie w jednym wierszu ---------- */
#right div[style*="width: 500px"] { width: auto !important; }   /* zdjęcie lekarza dociągnięte do prawej krawędzi kolumny */
#right div[style*="width: 500px"] > div { display: flex; align-items: center; gap: 24px; }
#right div[style*="width: 500px"] > div > div { float: none !important; width: auto !important; }
#right div[style*="width: 500px"] > div > div[style*="width: 200px"] { flex: 1 1 0; min-width: 0; text-align: left !important; }
#right div[style*="width: 500px"] > div > div[style*="width: 300px"] { flex: 0 0 auto; }
#right div[style*="width: 500px"] > div > div:empty { display: none; }
#right div[style*="width: 500px"] table { width: 100% !important; }
#right div[style*="width: 500px"] td { vertical-align: middle; width: auto !important; }
#right div[style*="width: 500px"] td:first-child { width: 100% !important; }
#right div[style*="width: 500px"] p { text-align: left !important; }
#right div[style*="width: 500px"] p:has(> strong) { font-size: calc(1.06rem * var(--ca-text-scale)); }
#right div[style*="width: 500px"] img { float: none !important; display: block; width: 120px; height: 150px; max-width: none; object-fit: cover; object-position: center 25%; border-radius: 14px; box-shadow: 0 6px 16px rgba(30, 42, 18, 0.16); }   /* „Nasz zespół”: portret jak w wariancie C */
#right div[style*="width: 500px"] h3 { margin-top: 0.4em; }
#right div[style*="width: 500px"] h3 u { text-decoration: none; }
#right .artykul > div[style*="margin-top: 15px"]:first-child { margin-top: 0 !important; }   /* szablon 1069 („Nasz zespół”): tytuł na tej samej wysokości co na innych stronach */
/* FAQ (szablon 1076): każde pytanie z odpowiedzią w osobnej karcie */
#right h2 + hr:has(+ .ca-faq) { display: none; }   /* pod tytułem FAQ była druga linia */
/* „Kontakty” (artykuł 570): pionowa oś, przy każdym kanale zielony punkt z ikoną */
#right .ca-kontakt-tyt { font-family: var(--ca-head) !important; font-weight: 800; font-size: calc(1.2rem * var(--ca-head-scale)); color: var(--ca-green); margin: 0 0 1em; }
#right .ca-os { clear: both; position: relative; margin: 0 0 1em; }
#right .ca-os > div:not(:last-child):after { content: ""; position: absolute; left: 21px; top: 44px; bottom: -22px; width: 2px; background: #cfe3ad; }   /* odcinek osi do następnego punktu; za ostatnim punktem linia się kończy */
#right .ca-os > div { position: relative; padding-left: 62px; min-height: 44px; }
#right .ca-os > div + div { margin-top: 22px; }
#right .ca-os > div:before { content: ""; position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--ca-green) center / 20px no-repeat; }
#right .ca-os-tel:before { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/></svg>") !important; }
#right .ca-os-info:before { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 18v-6a9 9 0 0 1 18 0v6'/><path d='M21 19a2 2 0 0 1-2 2h-1v-6h3zM3 19a2 2 0 0 0 2 2h1v-6H3z'/></svg>") !important; }
#right .ca-os-mail:before { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='4' width='20' height='16' rx='2'/><path d='m22 6-10 7L2 6'/></svg>") !important; }
#right .ca-os-godz:before { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M12 6v6l4 2'/></svg>") !important; }
#right .ca-os .ca-os-dni { display: block; font-size: 17px; line-height: 1.5; margin-top: 0.3em; }
#right .ca-os p { margin: 0; text-align: left; display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
#right .ca-os .ca-kontakt-lab { display: block; font-family: var(--ca-head) !important; font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #4b7208; }
#right .ca-os a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--ca-head); font-size: 22px; font-weight: 800; color: #4a5544; white-space: nowrap; text-decoration: none; }
#right .ca-os a.ca-kontakt-mail { font-size: 19px; white-space: normal; overflow-wrap: anywhere; }
#right .ca-os .ca-kontakt-lub, #right .ca-os .ca-kontakt-uw { font-size: 15px; color: #5b6650; }
#right .ca-faq { margin: 1.2em 0 0.6em; }   /* zwykły blok: flex omijałby pływające miejsce na plakietkę „Uwaga alergia” i zwężał karty */
#right .ca-faq-pyt + .ca-faq-pyt { margin-top: 14px; }
#right .ca-faq-pyt { background: #f7faf0; border: 1px solid #dcebc4; border-radius: 16px; padding: 18px 22px 4px; }
#right .ca-faq-pyt h2 { margin: 0 0 0.55em; font-size: calc(1.1rem * var(--ca-head-scale)); color: var(--ca-green); text-wrap: balance; }
#right .ca-faq-odp p { margin: 0 0 0.9em; }

/* ---------- 13. klasy dla posprzątanej treści artykułów ---------- */
#right .ca-komunikat { background: var(--ca-note-bg); border: 2px solid var(--ca-note-border); border-left: 10px solid var(--ca-note-edge); border-radius: 8px; padding: 20px 24px; margin: 0 0 1.6em; }
#right .ca-komunikat p { margin: 0 0 0.7em; }
#right .ca-komunikat p:last-child { margin-bottom: 0; }
#right .ca-komunikat .ca-termin { font-size: calc(1.12rem * var(--ca-text-scale)); color: var(--ca-note-text); }
#right .ca-podpis { font-size: calc(0.88rem * var(--ca-text-scale)); color: #555; }
#right .ca-haslo { text-align: center; font-size: calc(1.15rem * var(--ca-text-scale)); margin: 1.1em 0; }
#right img.ca-pelne { display: block; width: 100%; height: auto; border-radius: 10px; }
#right img.ca-srodek { display: block; margin: 0.9em auto 0.4em; }
#right div[style*="float: left; text-align: center;padding: 10px"] { float: none !important; padding: 0 !important; }   /* szablon 1048 (adres, „Dojazd”): pływający blok z odstępem przesuwał środek względem sąsiednich artykułów */
#right iframe.ca-mapa, #right iframe[src*="google.com/maps"] { display: block; width: 100%; border: 0; border-radius: 10px; }   /* każda mapa Google: edytor CMS (TinyMCE) usuwa class i dopisuje width="320" */

/* ---------- galerie na stronie „Testy i badania”: zdjęcia wstawiają szablony artykułów 500, 501, 504, 506, 509 ---------- */
#right a[name="500"] + h2 + div, #right a[name="501"] + h2 + div, #right a[name="506"] + h2 + div, #right a[name="509"] + h2 + div + div { display: grid; gap: 12px; margin: 8px 0 22px; }   /* px: szablon 501 ma font-size: 0 */
#right a[name="500"] + h2 + div > img, #right a[name="501"] + h2 + div > img, #right a[name="506"] + h2 + div > img, #right a[name="509"] + h2 + div + div > img { display: block; width: 100%; height: auto; margin: 0 !important; object-fit: cover; border-radius: 12px; box-shadow: 0 6px 18px rgba(30, 42, 18, 0.14); }
#right a[name="500"] + h2 + div { grid-template-columns: repeat(4, minmax(0, 1fr)); }   /* A: mozaika, wyróżnione zdjęcie 2 × 2 */
#right a[name="500"] + h2 + div > img { aspect-ratio: 4 / 3; }
#right a[name="500"] + h2 + div > img:nth-child(8) { order: -1; grid-column: span 2; grid-row: span 2; align-self: stretch; }
#right a[name="501"] + h2 + div { grid-template-columns: repeat(3, minmax(0, 1fr)); }   /* B: równa siatka 3 × 2 */
#right a[name="501"] + h2 + div > img { aspect-ratio: 4 / 3; }
#right a[name="506"] + h2 + div { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* D: para zdjęć poziomych */
#right a[name="506"] + h2 + div > img { aspect-ratio: 3 / 2; }
#right a[name="509"] + h2 + div + div { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 520px; margin-inline: auto; gap: 18px; }   /* E: para zdjęć pionowych tej samej wysokości */
#right a[name="509"] + h2 + div + div > img { aspect-ratio: 3 / 4; }
#right a[name="504"] + div > img[align="right"] { margin: 0 0 1em 1.5em; border-radius: 12px; box-shadow: 0 6px 18px rgba(30, 42, 18, 0.14); }   /* EKG */
#right .artykul:has(+ a[name] + h3) { margin-bottom: 0.4em; }   /* wstęp „Testy i badania” i od razu nagłówek h3: bez dużej przerwy */
#right .artykul + a[name] + h3 { margin-top: 0; }
@media (max-width: 720px) {
  #right a[name="500"] + h2 + div, #right a[name="501"] + h2 + div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #right a[name="500"] + h2 + div > img:nth-child(8) { grid-row: span 1; }
  #right a[name="504"] + div > img[align="right"] { width: 120px; margin-left: 1em; }
}

/* ---------- logowanie i konto (operacje CMS Account: logowanie, nowe konto, odzyskanie hasła) ---------- */
#right #account { max-width: 400px; margin: 10px auto 0; padding: 26px 30px 6px; box-sizing: border-box; background: #f7faf0; border: 1px solid #dcebc4; border-radius: 18px; }
#right #account h3, #right .alert-default h3 { margin: 0 0 0.8em; padding-left: 0; text-align: center; }
#right #account h3:before, #right .alert-default h3:before { content: none; }   /* bez skośnych pasków podtytułu */
#right #account *, #right .alert-default * { --ca-in: 0px !important; }   /* bez wcięcia treści pod podtytułem */
#right #account .field-label p { margin: 0 0 6px; font-weight: 600; font-size: 0.94em; text-align: left; }
#right #account .account-input { margin-bottom: 14px; }
#right #account .account-input input[type="text" i], #right #account .account-input input[type="password" i] { display: block; width: 100%; min-height: 44px; box-sizing: border-box; padding: 8px 14px; border: 1px solid #b9d98a; border-radius: 10px; background: #fff; font: inherit; color: var(--ca-ink); }
#right #account .account-input input:focus { outline: 2px solid var(--ca-g2); outline-offset: 1px; border-color: var(--ca-g2); }
#right #account .account-send { padding: 8px 0 22px; text-align: center; }
#right #account .account-send input { width: 100%; min-height: 46px; border: 0; border-radius: 999px; background: var(--ca-green); color: #fff; font-family: var(--ca-head); font-size: 15px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
#right #account .account-send input:hover, #right #account .account-send input:focus { background: var(--ca-g3); color: #fff; }
#right #account .fieldIsRequired { color: #a94442; }
#right #account .verificationHumanity { margin: 6px 0 4px; padding: 14px 16px 4px; background: #fff; border: 1px solid #dcebc4; border-radius: 12px; box-shadow: none; }   /* kod z obrazka: zamiast zielonej ramki CMS */
#right #account .verificationHumanity p { margin: 0 0 8px; color: var(--ca-ink); font-weight: 600; font-size: 0.94em; text-transform: none; text-align: left; }
#right #account .verificationHumanity__img img { display: block; margin: 0 0 10px; max-width: 100%; border-radius: 8px; }
#right #account .verificationHumanity__input input { text-align: center; }
#right #account .account-input select { display: block; width: 100%; max-width: 100%; min-height: 44px; box-sizing: border-box; padding: 8px 12px; border: 1px solid #b9d98a; border-radius: 10px; background-color: #fff; font: inherit; color: var(--ca-ink); }
#right #account .account-input select:focus { outline: 2px solid var(--ca-g2); outline-offset: 1px; border-color: var(--ca-g2); }
#right #account .account-input input[type="radio" i] { accent-color: var(--ca-g2); width: 18px; height: 18px; margin: 0 6px 0 0; vertical-align: -3px; }
#right #account .account-input input[type="button" i] { margin-top: 8px; padding: 6px 16px; border: 1px solid var(--ca-g2); border-radius: 999px; background: #fff; color: var(--ca-link); font: 600 14px/1.4 var(--ca-text) !important; cursor: pointer; }
#right #account .account-input input[type="button" i]:hover { background: #eaf5d6; }
#right #account .account-input textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
#right #account .mceEditor { display: block; max-width: 100%; overflow-x: auto; }   /* edytor TinyMCE pola „Podpis”: pasek narzędzi szerszy niż karta przewija się w niej */
#right #account table.mceLayout { width: 100% !important; }
#right #account h4 { margin: 1.4em 0 0.8em; }
#right .alert-default { max-width: 400px; margin: 16px auto 0; padding: 18px 30px 10px; box-sizing: border-box; background: #fff; border: 1px solid #dcebc4; border-radius: 18px; }
#right .alert-default h3 { font-size: 1rem; }
#right .alert-default ul { margin: 0; padding-left: 1.2em; }
#right .alert-default li { margin: 0 0 0.5em; }
/* ---------- link „Czytaj więcej” pod zajawką (strefa pacjenta, strefa lekarza, porady): stopka zajawki ---------- */
#right .artykul > a[href] { display: block; position: relative; margin-top: 12px; padding: 12px 18px 0 max(0px, 100% - 36em); border-top: 1px solid var(--ca-line); text-align: right; font-weight: 500; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* jeden wiersz do ok. 36em: za długi tytuł kończy się „…” (pełny tytuł jest w nagłówku zajawki i w kodzie linku) */
#right .artykul > a[href]:after { content: "\203A"; position: absolute; right: 2px; bottom: 0; font-size: 1.3em; line-height: 1.15; }
#right .artykul > a[href]:hover, #right .artykul > a[href]:focus-visible { text-decoration: underline; }

/* ---------- 14. stronicowanie list artykułów (wtyczka jPages: #pagescounter + div.holder z linkami) ---------- */
#right .holder { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0.6em 0 1.2em; text-align: center; }
#right .holder a { display: inline-block; min-width: 2.4em; box-sizing: border-box; padding: 0.35em 0.8em; border: 1px solid var(--ca-line); border-radius: 999px; background: rgba(255, 255, 255, 0.7); color: var(--ca-link); font-weight: 700; text-decoration: none; cursor: pointer; }
#right .holder a:hover, #right .holder a:focus { background: #eef6dc; border-color: var(--ca-g1); }
#right .holder a.jp-current { background: var(--ca-g2); border-color: var(--ca-g2); color: #fff; cursor: default; }
#right .holder:not(:has(a:not(.jp-disabled):not(.jp-current))) { display: none; }   /* jedna strona wyników: pasek stronicowania z samymi nieaktywnymi przyciskami jest zbędny */
#right div:has(> .holder a.jp-previous.jp-disabled + a.jp-current ~ a.jp-next.jp-disabled) > #pagescounter { display: none; }   /* jedna strona: bez napisu „Strona 1 z 1” (poprzednia i następna nieaktywne naraz tylko przy jednej stronie) */
#right .holder a.jp-disabled { border-color: #e1e8d4; background: none; color: #9aa58f; cursor: default; }
#right .holder span { align-self: center; padding: 0 0.2em; }
#right #pagescounter { margin: 1.4em 0 0; text-align: center; color: #5b6651; font-size: 0.92em; }

/* ---------- 15. elementy generowane przez szablony CMS ---------- */
#right .artykul { margin: 0 0 1.4em; }
#right .clear, #right .clr { clear: both; }
#right .item-separator { display: none; }
#right a[name] { text-decoration: none; }
#right a[href^="tel:"], #right a[href^="mailto:"] { text-decoration: none; }   /* telefony i e-mail w treści: bez podkreślenia, podkreślenie tylko po najechaniu */
#right a[href^="tel:"]:hover, #right a[href^="mailto:"]:hover { text-decoration: underline; }

/* ---------- 16. stopka (pomocnicza: linki dla webmastera, celowo mało widoczna) ---------- */
.f_oot { margin: 8px 0 0; padding: 0; font-family: var(--ca-head); font-size: 0.72rem; line-height: 1.4; text-align: center; display: flex; flex-wrap: wrap; gap: 2px 18px; justify-content: center; }
.f_oot a { color: var(--ca-g3); text-decoration: none; }
.f_oot a:hover, .f_oot a:focus { text-decoration: underline; }

/* ---------- 17. szeroki ekran (od 860 px): biała belka z logo i menu, panel treści pod nią ---------- */
@media (min-width: 860px) {
  #ca-page { position: relative; }
  #top { --ca-logo: 277px; padding: 14px 40px 14px calc(300px - var(--ca-logo)); z-index: 2; }   /* prawa krawędź logo równo z prawą krawędzią menu bocznego (300 px) */
  #top:before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); width: 100vw; background: #fff; box-shadow: 0 4px 14px rgba(20, 50, 0, 0.18); z-index: -1; }   /* biała belka na całą szerokość okna */
  #logo img { width: var(--ca-logo); }
  #ca-menus { position: absolute; right: 60px; top: 42px; z-index: 4; }
  #uwaga { top: 94px; right: -26px; right: max(-56px, calc((1228px - 100vw) / 2 - 20px)); }   /* zwisa spod belki i zachodzi na panel; nie wychodzi poza okno */
  #ca-cols { position: relative; z-index: 0; margin-top: 60px; padding-top: 36px; border-radius: var(--ca-radius); }   /* 60 px: odstęp panelu treści od belki */
  #ca-cols:before {   /* tło panelu jako osobna warstwa (rozmycie tła pod półprzezroczystą bielą) */
    content: ""; position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; left: 0; border-radius: inherit;
    background: rgba(255, 255, 255, var(--ca-panel-alpha));
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 18px 50px rgba(30, 60, 0, 0.28);
  }
  #right:before { content: ""; float: right; width: 190px; height: 62px; }   /* niewidoczna wstawka: początek treści opływa znak „Uwaga alergia” */
}
/* menu górne jako skośna wstęga: lewy brzeg ścięty skosem z zaokrąglonymi rogami, pasek dochodzi do prawej krawędzi okna */
@media (min-width: 1060px) {
  #ca-menus { right: min(0px, calc((1228px - 100vw) / 2)); filter: drop-shadow(0 4px 6px rgba(20, 50, 0, 0.22)); }
  #ca-top { position: relative; z-index: 0; overflow: hidden; background: none; box-shadow: none; padding: 0 max(30px, calc((100vw - 1228px) / 2 + 44px)) 0 22px; }
  #ca-top:before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 8px; right: -40px; border-radius: 7px 0 0 7px; transform: skewX(-16deg); background: var(--ca-menu-gradient); }   /* prawa strona wychodzi poza okno i jest przycięta */
  #ca-top ul.menu { gap: 0; }
  #ca-top li { position: relative; }
  #ca-top li + li:before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, 0.3); transform: skewX(-16deg); }   /* skośne kreski między pozycjami */
  #ca-top a { border-radius: 0; padding: 12px 17px 9px; }
}
/* węższe okno: mniejsze logo i ciaśniejsze menu, żeby się nie stykały */
@media (min-width: 1060px) and (max-width: 1259px) {   /* od 1060: przy 1030–1059 i pasku przewijania wstęga dotykała logo */
  #top { --ca-logo: 230px; }
  #uwaga { right: -14px; }      /* znak nie może wyjść poza krawędź ekranu */
  #ca-menus { top: 34px; }      /* położenie w poziomie ustala reguła wstęgi */
  #ca-top a { padding: 8px 8px 5px; letter-spacing: 0; }
}
/* jeszcze węższe (do układu telefonu): menu jako belka nad białym nagłówkiem */
@media (min-width: 860px) and (max-width: 1059px) {
  #ca-menus { position: relative; right: auto; top: auto; justify-content: center; }
  #ca-top { border-radius: 0 0 20px 20px; padding: 3px 12px 5px; }
  #ca-top a { padding: 8px 11px 5px; letter-spacing: 0.02em; }
  #top:before { top: -60px; }
  #uwaga { width: 170px; right: -14px; }
  #right:before { width: 150px; }
}

/* ---------- 18. telefon i wąskie okna (do 859 px): menu pod przyciskiem, jeden panel, lewa kolumna pod treścią ---------- */
@media (max-width: 859px) {
  #ca-page { padding: 0 12px 8px; }
  #ca-bar { display: flex; justify-content: flex-end; padding-top: 12px; }
  .ca-menu-btn {
    display: none;                       /* przycisk ma sens tylko, gdy działa skrypt */
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    width: 100%;                         /* pasek na całą szerokość strony, jak panel treści */
    justify-content: center;
    border-radius: 18px;                 /* jak panel treści (#box) na telefonie */
    color: #ffffff;
    font-family: var(--ca-menu);
    font-size: calc(0.89rem * var(--ca-menu-scale));
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    box-shadow: 0 6px 18px rgba(30, 60, 0, 0.25);
    cursor: pointer;
  }
  .ca-js .ca-menu-btn { display: flex; }
  .ca-menu-ico { display: block; width: 20px; height: 2px; background: #fff; box-shadow: 0 -6px 0 #fff, 0 6px 0 #fff; border-radius: 2px; }
  .ca-open .ca-menu-ico { box-shadow: none; transform: rotate(45deg); position: relative; }
  .ca-open .ca-menu-ico:after { content: ""; position: absolute; left: 0; top: 0; width: 20px; height: 2px; background: #fff; border-radius: 2px; transform: rotate(90deg); }

  #ca-menus { display: block; margin: 10px 0 0; }
  .ca-js #ca-menus { display: none; }
  .ca-js.ca-open #ca-menus { display: block; }
  #ca-menus.ca-stacked { border-radius: 18px; padding: 8px 10px 12px; box-shadow: 0 14px 40px rgba(20, 45, 0, 0.4); }
  #ca-top { border-radius: 20px; padding: 8px 10px; box-shadow: 0 10px 26px rgba(20, 50, 0, 0.3); }
  #ca-menus.ca-stacked #ca-top, #ca-menus.ca-stacked #menu { background: none; box-shadow: none; border-radius: 0; padding: 0; }
  #ca-menus.ca-stacked #menu { border-top: 1px solid rgba(255, 255, 255, 0.4); margin-top: 8px; padding-top: 8px; }
  #ca-top ul.menu { display: block; }
  #ca-top a { padding: 13px 12px; border-bottom: 0; font-size: calc(0.94rem * var(--ca-menu-scale)); }
  #ca-top a.selected { text-decoration: underline; text-decoration-color: var(--ca-mark); text-decoration-thickness: 3px; text-underline-offset: 7px; }
  #ca-menus.ca-stacked #menu a { padding: 13px 12px; border-radius: 12px; font-weight: 600; font-size: calc(0.94rem * var(--ca-menu-scale)); }
  #ca-menus.ca-stacked #menu ul.menu li + li { border-top: 0; }

  #box { margin-top: 14px; border-radius: 18px; background: rgba(255, 255, 255, var(--ca-panel-alpha)); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 12px 34px rgba(30, 60, 0, 0.28); }
  #top { padding: 20px 132px 14px 18px; }
  #top:after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px; background: var(--ca-line); }
  #logo img { width: 196px; }
  #uwaga { width: 100px; right: 8px; bottom: -10px; }
  #ca-cols { flex-direction: column; gap: 0; padding: 22px 18px 30px; }
  #right { order: 1; flex: none; width: 100%; }
  #left { order: 2; flex: none; width: 100%; margin-top: 26px; border-top: 2px solid var(--ca-line); padding-top: 22px; }
  #menu { border-radius: 18px; padding: 8px 10px; margin-bottom: 18px; }
  #menu a { padding-left: 14px; border-radius: 12px; }
  #left .custom { padding: 10px 0 6px; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 24px 32px; }
  .ca-pylki svg { width: 150px; }

  #right { text-align: left; }                                      /* wąska kolumna: bez justowania (duże przerwy między wyrazami) */
  #right [style*="text-align: justify"] { text-align: left !important; }   /* także justowanie wpisane w artykułach */
  #right h1 { font-size: calc(1.25rem * var(--ca-head-scale)); }
  #right h2 { font-size: calc(1.15rem * var(--ca-head-scale)); }
  #right h3 { font-size: calc(1.0625rem * var(--ca-head-scale)); }
  #right img[style*="margin-left"] { margin-left: 0 !important; }
  #right ul[style], #right ol[style] { margin-left: var(--ca-in) !important; }
  #right iframe { width: calc(100% - var(--ca-in)) !important; }
  /* treść ze sztywnymi wymiarami (tabele, kolumny z szablonów, formularze): mieści się w ekranie, szerokie tabele przewijają się w poziomie */
  #right table { display: block; width: auto !important; max-width: 100%; overflow-x: auto; }
  #right [style*="width"] { max-width: 100%; box-sizing: border-box; }
  #right div[style*="float"] { float: none !important; width: auto !important; }
  #right div[style*="width: 500px"] > div { gap: 14px; }
  #right div[style*="width: 500px"] img { width: 96px; height: 120px; }
  #right div[style*="width: 500px"] table { display: table; }
  #right fieldset { min-width: 0; max-width: 100%; box-sizing: border-box; }
  #right input, #right select, #right textarea { max-width: 100%; box-sizing: border-box; }
  .f_oot a { padding: 6px 0; }
}
