/* ==========================================================================
   Kardiotel — układ 1:1 z szablonu „kardio-layout”, nowoczesny wygląd.
   Geometria bez zmian: nagłówek z blokiem infolinii, pionowe menu po lewej
   (zachodzi na białe pole), białe pole treści, loga UE i stopka pod treścią.
   Rozmiar tekstu: --fs.  Kolory marki: --blue, --navy, --red.
   ========================================================================== */
:root {
  --navy-900: #06264a;
  --navy: #02376b;
  --blue: #004a8f;
  --blue-500: #0b63b8;
  --red: #ee1d25;
  --red-dark: #c4141b;
  --ink: #0a2f5c;          /* nagłówki */
  --text: #475467;         /* tekst */
  --muted: #667085;
  --bg: #eef3f9;
  --tint: #e6f0fa;        /* paski tytułów, tła kart */
  --tint-2: #f4f8fc;
  --line: #dbe6f2;
  --white: #fff;
  --fs: 17px;
  --r: 14px;               /* promień kart */
  --r-s: 8px;
  --shadow-s: 0 1px 2px rgba(6, 38, 74, .06), 0 4px 14px rgba(6, 38, 74, .05);
  --shadow-l: 0 24px 60px -20px rgba(6, 38, 74, .35);
  --font: 'Rubik', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; border: 0; }
a { text-decoration: none; }
strong { font-weight: 500; color: #2b3a4d; }
sub, sup { font-size: 70%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -.5em; } sub { bottom: -.25em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.clear { clear: both; }

body {
  font-family: var(--font); font-size: var(--fs); font-weight: 400; color: var(--text); line-height: 1.6;
  background: var(--bg) linear-gradient(180deg, #dfeaf6 0, var(--bg) 520px, #f4f7fb 100%) no-repeat;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body::before { content: ""; display: block; height: 5px; background: linear-gradient(90deg, var(--navy) 0, var(--blue-500) 55%, var(--red) 100%); }
@media (min-width: 1280px) {
  body { background: linear-gradient(180deg, rgba(238, 243, 249, .78) 0, rgba(238, 243, 249, .95) 320px, #f4f7fb 100%) no-repeat, url(../img/bg.jpg) 50% 5px no-repeat, var(--bg); }
}
.skip-link { position: absolute; left: -999px; top: 0; z-index: 400; background: var(--red); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--r-s) 0; }
.skip-link:focus { left: 0; }

h1, h2, h3, h4 { font-weight: 500; color: var(--ink); line-height: 1.25; letter-spacing: -.005em; }
p, h1, h2, h3, h4 { padding-bottom: 15px; }
h1, h1 a { font-size: 200%; } h2, h2 a { font-size: 170%; } h3, h3 a { font-size: 140%; } h4, h4 a { font-size: 100%; }

/* ---------- szerokość strony ---------- */
#header, .contentareaWrap { width: 92%; max-width: 1200px; margin: 0 auto; }
@media (min-width: 1920px) { #header, .contentareaWrap { width: 63%; } }

/* ==================== NAGŁÓWEK ==================== */
#header { min-height: 126px; }
#headerLeft, #headerRight { display: block; }
a#logo { background: url(../img/logo.png) no-repeat; width: 272px; height: 53px; display: block; margin-top: 35px; margin-left: 10px; transition: opacity .2s; }
a#logo:hover { opacity: .85; }
#detale { display: flex; line-height: 125%; font-size: calc(var(--fs) + 1px); font-weight: 500; align-items: stretch; }
#detale p { padding-bottom: 8px; }
#detale span { font-weight: 400; }
.detaleLeft { height: 126px; text-align: right; padding: 22px 34px 0 0; color: var(--blue); }
.detaleLeft p:first-child { color: var(--ink); font-weight: 500; }
.detaleRight {
  position: relative; width: 330px; height: 126px; padding: 20px 87px 0 30px; text-align: right; color: #fff;
  background: url(../img/infolinia.png) 85% 43% no-repeat, linear-gradient(135deg, #f5333a 0, #d9131b 100%);
  border-radius: 0; box-shadow: -14px 10px 28px -18px rgba(238, 29, 37, .5);
}
.detaleRight p:first-child { font-size: .8em; letter-spacing: .16em; text-transform: uppercase; opacity: .85; padding-bottom: 4px; }
.detaleRight p { font-weight: 500; } .detaleRight span { font-size: .82em; opacity: .9; }
.detaleRight a { color: #fff; }
#detaleM { display: none; }
@media (max-width: 1024px) {
  #headerLeft, #headerRight { text-align: center; }
  a#logo { margin: 35px auto 45px auto; }
}
@media (min-width: 1025px) { #headerLeft { float: left; } #headerRight { float: right; } }
@media (max-width: 799px) {
  #detale { display: none; }
  #detaleM { display: block; background: linear-gradient(135deg, #f5333a, #d9131b); color: #fff; padding: 12px 4% 7px 116px; font-size: var(--fs); text-align: left; }
  #detaleM p { padding-bottom: 6px; line-height: 1.3; }
  #detaleM span { font-weight: 700; white-space: nowrap; } #detaleM p:not(:first-child) span { display: block; }
  #detaleM a { color: #fff; }
}

/* ==================== OBSZAR TREŚCI ==================== */
.contentareaWrap { position: relative; }
.contentareaWrap::after { content: ""; display: block; clear: both; }
#leftCol { width: 285px; position: absolute; left: 0; z-index: 10; }
#mainCol { background: var(--white); min-height: 1450px; border-radius: var(--r) var(--r) 0 0; box-shadow: var(--shadow-l); }
@media (min-width: 1025px) { #mainCol { width: 79%; float: right; } }
@media (max-width: 1024px) { #leftCol { display: none; } #mainCol { min-height: 0; } }
#mainColIn { padding: 50px 50px 50px 90px; }
@media (min-width: 1025px) and (max-width: 1199px) { #mainColIn { padding: 50px 50px 50px 110px; } }
@media (max-width: 1024px) { #mainColIn { padding: 44px 6%; } }

/* ==================== MENU GŁÓWNE (pionowe) ==================== */
.moduletable.menu > ul {
  list-style: none; padding: 44px 0 48px; border-radius: var(--r) 0 0 var(--r);
  background: linear-gradient(180deg, #0b63b8 0, var(--blue) 30%, var(--navy) 62%, var(--navy-900) 100%);
  box-shadow: 0 30px 60px -24px rgba(2, 55, 107, .6);
}
.moduletable.menu li { list-style: none; position: relative; z-index: 50; padding: 0 22px; }
.moduletable.menu li > a {
  display: block; padding: 12px 52px 12px 16px; margin: 2px 0; color: rgba(255, 255, 255, .94);
  font-size: calc(var(--fs) + 1px); line-height: 1.25; border-radius: var(--r-s);
  background: url(../img/nfz-15.png) 97% 50% no-repeat; transition: background-color .18s, color .18s, transform .18s;
}
.moduletable.menu li > a.no-image { background-image: none; padding-right: 16px; }
.moduletable.menu li.divider .separator {
  display: block; margin: 44px 16px 10px; padding: 0 0 10px; color: #fff; font-size: calc(var(--fs) - 2px); font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; border-bottom: 2px solid var(--red); width: fit-content; min-width: 70px;
}
.moduletable.menu li.active > a, .moduletable.menu li > a:hover, .moduletable.menu li:focus-within > a,
ul.nav-child li a:hover { background-color: var(--red) !important; color: #fff !important; }
.moduletable.menu li.active > a { box-shadow: 0 8px 18px -8px rgba(238, 29, 37, .8); }
.moduletable.menu li > a:hover { transform: translateX(3px); }
/* podmenu wysuwane w prawo */
.moduletable.menu ul.nav-child {
  display: none; list-style: none; position: absolute; left: 100%; top: -14px; min-width: 300px; padding: 14px 12px;
  background: linear-gradient(180deg, rgba(0, 74, 143, .88), rgba(2, 55, 107, .90));
  -webkit-backdrop-filter: blur(10px) saturate(1.25); backdrop-filter: blur(10px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, .16); border-left: 0; border-radius: 0 var(--r) var(--r) 0;
  box-shadow: 14px 14px 40px rgba(2, 30, 60, .38);
}
@media (prefers-reduced-transparency: reduce) {
  .moduletable.menu ul.nav-child { background: linear-gradient(180deg, var(--blue), var(--navy)); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.moduletable.menu li.parent:hover > ul.nav-child, .moduletable.menu li.parent:focus-within > ul.nav-child { display: block; }
.moduletable.menu ul.nav-child li { padding: 0; }
.moduletable.menu ul.nav-child li > a { background-image: none; padding: 10px 18px; margin: 1px 0; line-height: 115%; transform: none; }
.moduletable.menu ul.nav-child ul { list-style: none; }
.moduletable.menu ul.nav-child ul a { padding-left: 38px; font-size: var(--fs); opacity: .9; }

/* ---------- menu mobilne ---------- */
.jf_mm_trigger {
  display: none; position: fixed; left: 0; top: 0; z-index: 300; width: 100px; padding: 10px 5px; text-align: center;
  background: var(--navy); color: #fff; font: 500 calc(var(--fs) - 1px)/1.4 var(--font); text-transform: uppercase; letter-spacing: .08em;
  border: 0; cursor: pointer; border-radius: 0 0 var(--r-s) 0; transition: background .3s; box-shadow: 0 6px 18px rgba(2, 30, 60, .35);
}
.jf_mm_trigger:hover, .jf_mm_trigger:focus-visible { background: var(--red); }
#mobileMenu { position: fixed; inset: 0 auto 0 0; width: min(330px, 88vw); z-index: 310; background: linear-gradient(180deg, var(--blue), var(--navy-900)); color: #fff; overflow-y: auto; transform: translateX(-105%); transition: transform .3s ease; padding: 60px 0 40px; }
#mobileMenu.open { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, .5); }
#mobileBackdrop { position: fixed; inset: 0; z-index: 305; background: rgba(0, 20, 45, .6); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .3s; }
#mobileBackdrop.open { opacity: 1; visibility: visible; }
#mobileMenu .close { position: absolute; top: 8px; right: 12px; background: none; border: 0; color: #fff; font-size: 34px; cursor: pointer; line-height: 1; padding: 6px 10px; box-shadow: none; }
#mobileMenu a, #mobileMenu summary { display: block; padding: 13px 24px; color: #fff; border-top: 1px solid rgba(255, 255, 255, .1); font-size: calc(var(--fs) + 1px); cursor: pointer; }
#mobileMenu a:hover, #mobileMenu summary:hover, #mobileMenu a.active { background: var(--red); }
#mobileMenu h4 { padding: 26px 24px 8px; font-size: calc(var(--fs) - 2px); font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: #fff; }
#mobileMenu details a { padding-left: 42px; font-size: var(--fs); background: rgba(0, 0, 0, .12); }
#mobileMenu details details a { padding-left: 60px; }
@media (max-width: 1024px) { .jf_mm_trigger { display: block; } }

/* ==================== OKRUSZKI ==================== */
#breadcrumbs ul { text-align: left; padding: 0 0 22px; font-size: 88%; list-style: none; color: var(--muted); }
#breadcrumbs li { display: inline; color: var(--muted); }
#breadcrumbs li + li::before { content: "/"; padding: 0 9px; color: #b7c4d4; }
#breadcrumbs a { color: var(--red) !important; font-weight: 500; }
#breadcrumbs a:hover { text-decoration: underline; }

/* ==================== SLIDER ==================== */
#banner { position: relative; overflow: hidden; border-radius: var(--r) var(--r) 0 0; aspect-ratio: 915 / 520; max-height: 560px; background: #eaf2f9; }
#banner .slides, #banner .slide { position: absolute; inset: 0; }
#banner .slide { opacity: 0; transition: opacity 1s ease-in-out; background-size: cover; background-position: center; }
#banner .slide.active { opacity: 1; }
#banner .slide-cap {
  position: absolute; left: 0; bottom: 9%; max-width: 74%; padding: 20px 38px 20px 92px; color: #fff;
  background: rgba(2, 55, 107, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 0 var(--r) var(--r) 0; box-shadow: 0 18px 40px -14px rgba(2, 30, 60, .5);
}
#banner .slide-cap::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--red); }
#banner span.span-js-title { display: block; font-size: clamp(22px, 3.4vw, 40px); font-weight: 400; line-height: 105%; color: #fff; }
#banner span.span-js-title span { display: block; font-weight: 500; font-size: .5em; margin-top: 10px; letter-spacing: .22em; text-transform: uppercase; opacity: .92; }
#banner .ctl { position: absolute; z-index: 3; right: 18px; bottom: 16px; display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 40px; background: rgba(255, 255, 255, .72); backdrop-filter: blur(8px); }
#banner .arrow { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; font-size: 22px; line-height: 1; padding: 0; text-transform: none; cursor: pointer; transition: background .15s, box-shadow .15s, transform .15s; box-shadow: none; }
#banner .arrow:hover, #banner .arrow:focus-visible { background: var(--red); box-shadow: 0 0 0 4px rgba(238, 29, 37, .28); transform: scale(1.06); }
#banner .dots { display: flex; gap: 7px; }
#banner .dot { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(0, 74, 143, .3); cursor: pointer; transition: background .2s, transform .2s; box-shadow: none; }
#banner .dot.active { background: var(--red); transform: scale(1.3); }
@media (max-width: 640px) { #banner .slide-cap { padding: 10px 14px 10px 26px; max-width: 90%; bottom: 62px; } #banner span.span-js-title { font-size: 21px; } #banner .ctl { right: 8px; bottom: 8px; } }
@media (prefers-reduced-motion: reduce) { #banner .slide { transition: none; } }

/* ==================== TREŚĆ ARTYKUŁÓW ==================== */
.item-page, .items-leading, .item { line-height: 1.7; }
#mainCol a { color: var(--blue-500); text-underline-offset: 3px; transition: color .15s; } #mainCol a:hover { color: var(--red); }
.item-page .page-header h1, .contact h1 {
  position: relative; background: linear-gradient(90deg, var(--tint), var(--tint-2)); padding: 30px 34px 24px 38px; margin: 0 0 38px;
  color: var(--ink); font-size: calc(var(--fs) + 9px); font-weight: 500; line-height: 1.2; text-align: left; border-radius: var(--r); overflow: hidden;
}
.item-page .page-header h1::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--red); }
.item-page h2 { color: var(--ink); font-size: calc(var(--fs) + 5px); margin-top: 10px; }
.item-page h3 { color: var(--ink); font-size: calc(var(--fs) + 3px); }
.item-page h4, .newsbox h4, #onas h4 { color: var(--ink); font-weight: 500; font-size: calc(var(--fs) + 3px); padding-top: 10px; }
.item-page > h4, .item-page > .link-row + h4 { position: relative; padding-left: 16px; }
.item-page > h4::before { content: ""; position: absolute; left: 0; top: .5em; width: 5px; height: 1em; border-radius: 3px; background: var(--red); }
.newsbox, #onas, #ulotka, #banner1 { line-height: 1.7; }
.item-page ul, .item-page ol, .item ul, .newsbox ul, #onas ul, #ulotka ul, #banner1 ul:not(.banner1_menu) { padding: 0 0 15px 4px; }
.item-page ul li, .item ul li, .item-page ol li, .newsbox ul li, #onas ul li, #ulotka ul li, #banner1 ul:not(.banner1_menu) li {
  list-style: none; position: relative; padding-left: 26px; margin-bottom: 7px; background: none;
}
.item-page ul li::before, .item ul li::before, .newsbox ul li::before, #onas ul li::before, #ulotka ul li::before, #banner1 ul:not(.banner1_menu) li::before {
  content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--red); transform: rotate(45deg);
}
div.boks { border: 1px solid var(--line); border-left: 5px solid var(--red); background: var(--tint-2); padding: 20px 24px; margin: 24px 0; border-radius: var(--r-s) var(--r) var(--r) var(--r-s); box-shadow: var(--shadow-s); }
div.boks h4 { color: var(--ink); padding-bottom: 8px; letter-spacing: .02em; }
div.boks p:last-child { padding-bottom: 0; }
.tel, .phone { display: block; font-size: calc(var(--fs) + 9px); font-weight: 500; color: var(--red); padding-bottom: 6px; letter-spacing: -.01em; }
.czerwony { color: var(--red); } .niebieski { color: var(--blue); }
.blog .item { border: 1px solid var(--line); padding: 0 30px 12px; margin-bottom: 26px; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-s); transition: box-shadow .2s, transform .2s; }
.blog .item:hover { box-shadow: 0 16px 40px -18px rgba(6, 38, 74, .4); transform: translateY(-2px); }
.blog .item .page-header h2 { background: linear-gradient(90deg, var(--tint), var(--tint-2)); padding: 26px 30px 20px; margin: 0 -30px 24px; color: var(--ink); font-size: calc(var(--fs) + 2px); text-align: left; }
.blog .item .page-header h2 a { color: var(--ink) !important; font-size: calc(var(--fs) + 2px); }
.blog .item .page-header h2 a:hover { color: var(--red) !important; }
.readmore, .readmore a { font-size: var(--fs); color: var(--red) !important; font-weight: 500; text-decoration: none !important; }
.readmore a::after { content: " →"; transition: margin .15s; } .readmore a:hover::after { margin-left: 4px; }
.tableBig, .tableSmall, .Cennik { width: 100%; margin-bottom: 30px; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; }
.tableBig th, .tableBig td, .Cennik td, .Cennik th { border-bottom: 1px solid var(--line); padding: 12px 18px; text-align: left; }
.Cennik tr:last-child td { border-bottom: 0; }
.Cennik tr:nth-child(even) { background: var(--tint-2); }
.Cennik td.cennikCena { font-weight: 500; color: var(--ink); text-align: right; vertical-align: top; }
.Cennik td.cennikCena.short { white-space: nowrap; width: 1%; }
.Cennik td.cennikCena.mid { white-space: normal; }
.Cennik td.cennikCena.long { text-align: left; font-weight: 400; color: var(--text); white-space: normal; }
.Cennik td.cennikOpis { width: auto; }
.doc { padding: 14px 0; border-bottom: 1px solid var(--line); } .doc strong { color: var(--ink); } .doc small { display: block; color: var(--muted); font-size: 92%; }

/* boksy strony głównej */
#onas, #ulotka, #banner1, .newsbox { border: 1px solid var(--line); padding: 0 30px 15px; margin-bottom: 28px; text-align: left; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-s); background: #fff; }
#onas h2, #ulotka h3, #banner1 h4, .newsbox h3 {
  position: relative; background: linear-gradient(90deg, var(--tint), var(--tint-2)); padding: 28px 30px 20px 36px; margin: 0 -30px 24px; color: var(--ink);
  font-size: calc(var(--fs) + 3px); font-weight: 500; line-height: 1.3;
}
#onas h2::before, #ulotka h3::before, #banner1 h4::before, .newsbox h3::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--red); }
#ulotka .un { color: var(--blue); font-weight: 500; font-size: calc(var(--fs) + 1px); padding-bottom: 8px; }
#ulotka h5 { color: var(--blue); font-size: var(--fs); font-weight: 500; padding: 8px 0 6px; }
#ulotkaBottom { line-height: 1.6; margin-top: 18px; padding: 16px 20px; text-align: center; background: var(--tint-2); border-radius: var(--r-s); border: 1px solid var(--line); }
#ulotkaBottom span { font-weight: 500; font-size: 130%; color: var(--red); }
#banner1 .s1 { color: var(--red); font-size: calc(var(--fs) - 1px); letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
#banner1 .s2 { color: var(--ink); font-size: calc(var(--fs) + 11px); }
ul.banner1_menu { margin: 0 0 20px; padding: 0; }
ul.banner1_menu li { list-style: none; background: none !important; margin: 0; padding: 0 !important; }
ul.banner1_menu li::before { display: none !important; }
ul.banner1_menu li a { font-weight: 500; font-size: 92%; }
@media (min-width: 980px) {
  #ulotka #table, #banner1 #table { display: table; width: 100%; margin-bottom: 20px; }
  #ulotka #td-1, #ulotka #td-2, #banner1 #td-1, #banner1 #td-2 { display: table-cell; vertical-align: top; padding-top: 10px; }
  #ulotka #td-2, #banner1 #td-2 { width: 34%; } #ulotka #table img, #banner1 #table img { margin-left: 30px; border-radius: var(--r); }
}
@media (max-width: 979px) { #ulotka #td-2, #banner1 #td-2 { text-align: center; } #ulotka #table img, #banner1 #table img { margin: 10px 0 20px; } }
@media (min-width: 1300px) { ul.banner1_menu li { display: inline-block; } }
ul.banner1_menu li a { margin-right: 14px; }
.blisko { margin: 14px 0 4px; display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 0 28px; }
.blisko img { width: 100%; height: 210px; object-fit: cover; border-radius: var(--r-s); transition: transform .3s; box-shadow: var(--shadow-s); }
.blisko img:hover { transform: scale(1.02); }

.banner2 { width: 100%; margin: 15px 0 28px; display: block; }
.banner2 img { width: 100%; height: auto; border-radius: var(--r); transition: .4s; box-shadow: var(--shadow-s); } .banner2 img:hover { opacity: .75; transform: translateY(-2px); }

/* ==================== PRZYCISKI (czerwone, podświetlane) ==================== */
button, input.button, input[type="submit"], .btn {
  background: linear-gradient(180deg, #f5333a, var(--red)); border: 0; display: inline-block; padding: 11px 28px; font: 500 var(--fs)/1.3 var(--font);
  text-align: center; text-transform: lowercase; letter-spacing: .01em; color: #fff !important; cursor: pointer; border-radius: 999px;
  box-shadow: 0 8px 18px -8px rgba(238, 29, 37, .7); transition: background .2s, box-shadow .2s, transform .12s;
}
button:hover, .btn:hover, input[type="submit"]:hover, .btn:focus-visible { background: var(--red-dark); color: #fff !important; transform: translateY(-1px); box-shadow: 0 0 0 4px rgba(238, 29, 37, .25), 0 12px 24px -8px rgba(238, 29, 37, .75); }
.btn-outline { background: #fff; border: 2px solid var(--red); color: var(--red) !important; box-shadow: none; }
.btn-outline:hover { background: var(--red); color: #fff !important; }
.link-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 22px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }

/* ==================== DÓŁ: loga UE i stopka ==================== */
#bottom { overflow: hidden; padding-top: 40px; text-align: center; }
@media (min-width: 1025px) { #bottom, #footer { width: 79%; float: right; } }
#bottom a { display: inline-block; padding: 18px 16px; }
#bottom a img { transition: .4s; height: 71px; width: auto; filter: grayscale(.15); }
#bottom a img:hover { filter: none; transform: translateY(-2px); }
#footer { clear: both; overflow: hidden; text-align: center; padding: 8px 0 44px; color: var(--muted); font-size: calc(var(--fs) - 2px); line-height: 1.9; border-top: 1px solid var(--line); margin-top: 8px; }
#footer a { color: var(--blue); font-weight: 500; } #footer a:hover { color: var(--red); }
#footer p { padding-bottom: 0; } #footer .p1 { margin-bottom: 6px; padding-top: 22px; color: var(--ink); }

/* ==================== KLASY Z TREŚCI ORYGINALNYCH STRON (z szablonu kardio-layout) ==================== */
ul.blue { margin: 0 0 0 25px; } .rwd { width: 80%; height: auto; }

.imglef, .imgrig { border-radius: var(--r-s); }
@media screen and (max-width: 1023px) { .imglef, .imgrig { width: 50%; height: auto; margin: 0 auto 30px; display: block; } }
@media screen and (min-width: 1024px) { .imglef { float: left; margin: 0; padding: 5px 24px 8px 0; } .imgrig { float: right; margin: 0; padding: 5px 0 8px 24px; } }
.program { text-align: center; }
.item-page img { max-width: 100%; height: auto; }
.item-page table { max-width: 100%; }
.cennikOpis { width: 60%; } .cennikCena { text-align: right; white-space: nowrap; font-weight: 500; color: var(--ink); }
.Cennik td { vertical-align: top; }
.tableSmall { display: none; } @media (max-width: 799px) { .tableBig { display: none; } .tableSmall { display: table; } }
.item-page h2, .item-page h3 { margin-top: 18px; }
/* O firmie */
table#firm1, table#firm2 { width: 100%; font-size: var(--fs); border: 0; }
#firmDIV { margin-bottom: 40px; } #firmDIV h3 { color: var(--red); text-align: left; }
#firm2 th { padding: 10px 0; color: var(--red); font-weight: 500; text-align: left; } #firm2 td, #firm1 td { padding-bottom: 12px; border: 0; }
@media (min-width: 980px) {
  #firm1 p, #firm2 p { display: table; width: 100%; padding-bottom: 0; } #firm1 p span, #firm2 p span { display: table-cell; }
  #firm1 .s1 { width: 47%; font-weight: 500; text-align: right; padding-right: 20px; } #firm1 .s2 { width: 53%; padding-left: 20px; text-align: left; }
  #firm2 .s1 { width: 58%; text-align: left; padding-right: 2%; } #firm2 .s2 { width: 38%; text-align: left; padding-left: 2%; }
  #firm1 .nasrodku { text-align: center; } #firm1 .nasrodku2 { padding: 15px 10% 40px; }
}
@media (max-width: 979px) { #firm1 p span, #firm2 p span { display: block; } }
.map td { padding: 10px; } .map .td1 { text-align: center; }
/* Kontakt */
#kontaktWrap { overflow: hidden; text-align: left; } #kontaktR { padding-bottom: 25px; } #kontaktR img { width: 100%; max-width: 340px; height: auto; }
#kontaktWrap p .s1 { font-weight: 500; color: var(--ink); } #kontaktL p .s2 { padding-bottom: 12px; }
@media (min-width: 800px) {
  #kontaktL { float: left; width: 59%; padding-right: 1%; padding-bottom: 30px; } #kontaktR { float: right; width: 40%; }
  #kontaktL p { display: table; width: 100%; padding-bottom: 0; } #kontaktL p .s1, #kontaktL p .s2 { display: table-cell; } #kontaktL p .s1 { width: 20%; } #kontaktL p .s2 { width: 80%; }
}
/* stopka: menu pomocnicze */
#footer .aux { padding: 4px 0 6px; } #footer .aux a { margin: 0 10px; }

/* ==================== Placówki: opisy dojazdu i mapy Google ==================== */
.placowki { display: grid; grid-template-columns: 1fr; gap: 26px; margin: 12px 0 24px; }

.placowka { border: 1px solid var(--line); border-radius: var(--r); padding: 0 26px 26px; background: #fff; box-shadow: var(--shadow-s); overflow: hidden; min-width: 0; }
.item-page .placowka h3 { position: relative; background: linear-gradient(90deg, var(--tint), var(--tint-2)); margin: 0 -26px 18px; padding: 22px 26px 16px 32px; font-size: calc(var(--fs) + 3px); color: var(--ink); }
.item-page .placowka h3::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--red); }
.placowka .adr { line-height: 1.5; } .placowka .tele { line-height: 1.7; padding-bottom: 8px; }
.item-page .placowka h4 { color: var(--blue); padding: 10px 0 4px; }
.placowka ul { padding-bottom: 6px; }
.mapbtns { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 16px; }
.mapframe iframe { width: 100%; height: 320px; border: 0; border-radius: var(--r-s); background: var(--tint-2); }
#kontaktWrap + h2 { margin-top: 26px; }
.mapbtns .btn { text-transform: none; padding: 10px 22px; }

/* listy numerowane zachowują numery (jak na oryginale) */
.item-page ol { list-style: decimal; padding: 0 0 15px 28px; }
.item-page ol li { list-style: decimal; padding-left: 6px; background: none; }
.item-page ol li::before { display: none; }
.item-page ol li::marker { color: var(--red); font-weight: 500; }

.nfz-badge { height: 22px; width: auto; vertical-align: middle; margin-left: 12px; border-radius: 3px; }

/* ==================== Zakładka „Artykuły”: lista tytułów z filtrem ==================== */
.artcount { color: var(--muted); }
.artfilter { width: 100%; max-width: 520px; padding: 11px 16px; margin: 4px 0 18px; font: inherit; border: 1px solid #b9c9dc; border-radius: 999px; background: #fff; }
.artfilter:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.item-page ul.artlist { padding-left: 4px; }
.artlist li { display: flex; gap: 14px; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-top: 8px; padding-bottom: 8px; margin-bottom: 0; }
.artlist li::before { top: 1.05em; }
.artlist .d { color: var(--muted); font-size: 82%; white-space: nowrap; }

.item-page h5 { color: var(--blue); font-size: calc(var(--fs) + 1px); font-weight: 500; padding: 12px 0 8px; }
.cennik-note { color: #c4141b; font-weight: 500; }
.item-page table.Cennik { width: 100% !important; height: auto !important; }
@media (max-width: 600px) { .Cennik td { padding: 10px 12px; overflow-wrap: anywhere; } .Cennik td.cennikCena.short { width: auto; } .Cennik td.cennikCena.mid { min-width: 7.5em; } }

.item-page a { overflow-wrap: anywhere; }
.item-page p, .item-page li, .item-page td { overflow-wrap: break-word; }

@media (max-width: 600px) {
  .item-page table.Cennik { table-layout: fixed; }
  .Cennik td.cennikCena { width: 42%; }
  .Cennik td.cennikCena.short, .Cennik td.cennikCena.mid { white-space: normal; min-width: 0; }
  #breadcrumbs li { overflow-wrap: anywhere; }
}

.cennik-note strong { color: inherit; }


/* ==========================================================================
   WARSTWA „NOWOCZESNA” — układ i treść bez zmian, zmienia się wygląd i zachowanie
   ========================================================================== */
@view-transition { navigation: auto; }                         /* płynne przejścia między stronami (Chrome/Edge) */
#header { view-transition-name: topbar; } #leftCol { view-transition-name: sidebar; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .26s; }
html { scroll-padding-top: 24px; }
h1, h2, h3, h4 { text-wrap: balance; }
.item-page p, .item-page li { text-wrap: pretty; }
body { background-attachment: fixed; }
::selection { background: rgba(238, 29, 37, .18); }

/* delikatna kreska marki na górze białego pola */
#mainCol::before { content: ""; display: block; height: 4px; border-radius: var(--r) var(--r) 0 0; background: linear-gradient(90deg, var(--blue-500), var(--blue) 55%, var(--red)); }

/* tytuł strony: znak EKG w tle */
.item-page .page-header h1, .contact h1 {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 40'%3E%3Cpath d='M0 22h38l8-16 10 32 9-24 6 8h20l8-8 6 8h17' fill='none' stroke='%230b63b8' stroke-opacity='.17' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 24px center / 150px auto no-repeat,
              linear-gradient(90deg, var(--tint), var(--tint-2));
}
@media (max-width: 700px) { .item-page .page-header h1, .contact h1 { background-size: 90px auto; background-position: right 12px center; } }

/* menu: płynne wysuwanie podmenu (z zapasem czasu na przesunięcie myszy) */
.moduletable.menu ul.nav-child {
  display: block !important; opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(-12px);
  transition: opacity .2s ease, transform .22s cubic-bezier(.2,.7,.2,1), visibility 0s linear .3s;
}
.moduletable.menu li.parent:hover > ul.nav-child, .moduletable.menu li.parent:focus-within > ul.nav-child {
  opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s;
}
.moduletable.menu li > a { position: relative; }
.moduletable.menu li.parent > a::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -4px; border-top: 2px solid rgba(255,255,255,.55); border-right: 2px solid rgba(255,255,255,.55); transform: rotate(45deg); opacity: 0; transition: .2s; }
.moduletable.menu li.parent > a:not(.no-image)::after { right: 62px; }
.moduletable.menu li.parent:hover > a::after { opacity: 1; right: 10px; }
.moduletable.menu li.parent:hover > a:not(.no-image)::after { right: 58px; }

/* linki w treści: subtelne podkreślenie, które „nabiera” koloru po najechaniu */
.item-page p a:not(.btn), .item-page li a:not(.btn), .item-page td a:not(.btn), .item-page h4 a {
  background: linear-gradient(rgba(11, 99, 184, .35), rgba(11, 99, 184, .35)) 0 100% / 100% 1px no-repeat; transition: background .2s, color .15s;
}
.item-page p a:not(.btn):hover, .item-page li a:not(.btn):hover, .item-page td a:not(.btn):hover { background-image: linear-gradient(var(--red), var(--red)); background-size: 100% 2px; }
.item-page .readmore a, .artlist a { background: none !important; }

/* obrazy, tabele, przyciski */
.item-page img { border-radius: var(--r-s); }
.item-page figure, .item-page .imglef, .item-page .imgrig { box-shadow: 0 6px 22px -12px rgba(6, 38, 74, .45); }
.Cennik tr { transition: background-color .15s; } .Cennik tr:hover td { background: #eaf2fb; }
button:active, .btn:active { transform: translateY(1px) scale(.985); }
.blog .item .page-header h2 a { transition: color .15s; }

/* slider: powolne „oddychanie” zdjęcia i wjazd napisu */
#banner .slide.active { animation: kenburns 11s ease-out both; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }
#banner .slide-cap { opacity: 0; transform: translateX(-26px); transition: opacity .7s .3s ease, transform .7s .3s cubic-bezier(.2,.7,.2,1); }
#banner .slide.active .slide-cap { opacity: 1; transform: none; }

/* pojawianie się elementów przy przewijaniu (klasy dodaje skrypt) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* pasek postępu czytania i przycisk „na górę” */
#readbar { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 250; background: linear-gradient(90deg, var(--blue-500), var(--red)); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
#toTop { position: fixed; right: 20px; bottom: 20px; z-index: 240; width: 46px; height: 46px; padding: 0; border-radius: 50%; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s, visibility .25s, background .2s; box-shadow: 0 10px 24px -8px rgba(6, 38, 74, .55); }
#toTop.show { opacity: 1; visibility: visible; transform: none; }
#toTop svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* preferencje użytkownika: mniej ruchu */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; } @view-transition { navigation: none; }
}

/* druk: sama treść */
@media print {
  body { background: #fff !important; font-size: 12pt; color: #000; } body::before, #readbar, #toTop, #leftCol, #banner, #bottom, #footer .aux, .jf_mm_trigger, #mobileMenu, #mobileBackdrop,
  .skip-link, .mapbtns, .mapframe, .artfilter, .detaleRight, #detale, #detaleM, .btn, button { display: none !important; }
  #header { min-height: 0; } a#logo { margin: 0; } #mainCol { width: 100% !important; float: none !important; box-shadow: none !important; min-height: 0 !important; border-radius: 0; }
  #mainCol::before { display: none; } #mainColIn { padding: 0 !important; } .reveal { opacity: 1 !important; transform: none !important; }
  .item-page a { color: #000 !important; background: none !important; } .item-page a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 85%; }
  table, .boks, .placowka, .item { break-inside: avoid; } h1, h2, h3, h4 { break-after: avoid; } .item-page .page-header h1 { background: none !important; border: 0; padding: 0 0 8px; }
}

/* lista miast i odległości („Sprawdź jak blisko masz do nas”): kolumny wypełniają dostępną szerokość, a tekst nie łamie się litera po literze */
.blisko > div { width: auto !important; float: none !important; margin: 0 !important; min-width: 0; }
.blisko ul.blue { margin: 0; padding: 0 0 4px; } .blisko ul.blue li { margin-bottom: 8px; white-space: nowrap; }
.blisko:has(img) { gap: 12px; }
@media (max-width: 480px) { .blisko ul.blue { padding-bottom: 0; } .blisko ul.blue li { margin-bottom: 6px; } }

/* Kontakt / Jak do nas trafić: placówki jedna pod drugą (najpierw Kardiotel, potem Przychodnia Rodzinna), jak w oryginale */
.placowki { grid-template-columns: 1fr; gap: 30px; }
.placowka .ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0 32px; }
.placowka .way { min-width: 0; }
.mapframe iframe { height: 380px; }
@media (max-width: 600px) { .mapframe iframe { height: 300px; } }

/* mapy Google ładowane po kliknięciu (prywatność) */
.mapgate { min-height: 380px; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 24px; border-radius: var(--r-s); background: var(--tint-2); border: 1px dashed #b9c9dc; }
.mapgate p { margin: 0; padding: 0; color: var(--muted); max-width: 38ch; }
@media (max-width: 600px) { .mapgate { min-height: 300px; } }

/* galeria zdjęć (zamiast znacznika {gallery}) */
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 18px 0 26px; }
.galeria a { display: block; border-radius: var(--r-s); overflow: hidden; background: var(--tint-2); box-shadow: var(--shadow-s); aspect-ratio: 3 / 2; background-image: none !important; }
.galeria img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; border-radius: 0; }
.galeria a:hover img { transform: scale(1.04); }

/* jedna czcionka i jeden rozmiar w treści — także dla treści wklejonej później z Worda lub innych programów */
.item-page :where(p, li, td, th, div, span, a, strong, b, em, i, u, blockquote, ul, ol, dd, dt)[style*="font-size"] { font-size: inherit !important; }
.item-page :where(p, li, td, th, div, span, a, strong, b, em, i, u, blockquote, ul, ol, dd, dt, h1, h2, h3, h4, h5, h6)[style*="font-family"] { font-family: inherit !important; }
.item-page :where(p, li, td, th, div, span, a, strong, b, em, i, u, blockquote)[style*="line-height"] { line-height: inherit !important; }
.item-page font, .item-page big { font-size: inherit !important; font-family: inherit !important; }

/* ==================== Przycisk „Umów wizytę” w nagłówku (między logo a godzinami i infolinią) ==================== */
#headerCta { text-align: center; }
.cta-visit {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 26px 13px 22px; border-radius: 999px; white-space: nowrap;
  background: linear-gradient(180deg, #f5333a, var(--red)); color: #fff !important; font-weight: 500; font-size: calc(var(--fs) + 1px); line-height: 1;
  box-shadow: 0 10px 22px -10px rgba(238, 29, 37, .85); transition: transform .15s, box-shadow .2s, background .2s;
}
.cta-visit svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cta-visit:hover, .cta-visit:focus-visible { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 0 0 4px rgba(238, 29, 37, .22), 0 14px 28px -10px rgba(238, 29, 37, .9); }
.cta-visit:active { transform: translateY(0) scale(.98); }
/* tablet i telefon: pod logo, nad godzinami */
@media (max-width: 1024px) { a#logo { margin-bottom: 20px; } #headerCta { margin: 0; padding-bottom: 28px; } }
/* komputer: logo i godziny w jednym rzędzie, przycisk pod logo */
@media (min-width: 1025px) {
  #header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }
  #headerLeft, #headerRight { float: none; }
  #header > div[style*="clear"] { display: none; }
  #headerCta { order: 3; flex: 0 0 100%; text-align: left; margin: -26px 0 16px 10px; }
}
/* szeroki ekran: przycisk dokładnie pośrodku między logo a godzinami */
@media (min-width: 1200px) { #headerCta { order: 0; flex: 1 1 auto; align-self: center; text-align: center; margin: 0; padding: 0 12px; } }
@media print { #headerCta { display: none !important; } }

/* ==================== Standardy Ochrony Małoletnich: metryka dokumentu i plakat ==================== */
.zalacznik { text-align: right; color: var(--muted); font-size: .9em; line-height: 1.55; margin: 0 0 8px; }
.plakat { float: right; width: 320px; margin: 8px 0 18px 28px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); text-align: center; }
.plakat .plakat-img { display: block; overflow: hidden; border-radius: 12px; background: none !important; line-height: 0; }
.plakat img { display: block; width: 100%; height: auto; border-radius: 12px; transition: transform .35s ease; }
.plakat .plakat-img:hover img, .plakat .plakat-img:focus-visible img { transform: scale(1.04); }
.plakat figcaption { display: grid; gap: 6px; justify-items: center; padding: 14px 6px 6px; }
.plakat figcaption strong { color: var(--ink); font-size: 1.05em; font-weight: 500; }
.plakat figcaption span { color: var(--muted); font-size: .88em; line-height: 1.35; }
.plakat figcaption .btn { margin-top: 6px; white-space: normal; text-align: center; font-size: .92em; padding: 11px 18px; text-transform: none; }
@media (max-width: 760px) { .plakat { float: none; width: min(100%, 340px); margin: 20px auto 26px; } }
@media print { .plakat { float: none; box-shadow: none; width: 55%; margin: 10px auto; break-inside: avoid; } .plakat figcaption .btn { display: none; } }

/* czerwony blok z infolinią łączy się z kolorową kreską nad białym polem: proste dolne rogi bloku i prosty prawy górny róg pola pod nim */
@media (min-width: 1025px) {
  #mainCol, #mainCol::before, #banner { border-top-right-radius: 0; }       /* także zdjęcia slidera: prawy górny róg 90° pod czerwonym blokiem */
}
/* w układzie 1025–1199 px pod logo jest przycisk „Umów wizytę” (nagłówek jest wyższy) — blok sięga do kreski */
@media (min-width: 1025px) and (max-width: 1199px) { .detaleRight { height: 164px; margin-bottom: -38px; } }

/* ==================== Informacja o plikach cookies ==================== */
/* warstwa 295: nad treścią i przyciskiem „na górę”, ale pod przyciskiem MENU (300), nakładką (305) i otwartym menu mobilnym (310) */
.ck-bar { position: fixed; left: 20px; bottom: 20px; z-index: 295; width: min(580px, calc(100vw - 40px)); display: grid; gap: 12px; padding: 16px 18px 16px 20px; background: #fff; color: var(--text); border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: 14px; box-shadow: 0 18px 50px rgba(6, 38, 74, .28); font-size: calc(var(--fs, 17px) - 2px); line-height: 1.45; }
.ck-bar[hidden] { display: none; }
.ck-bar strong { color: var(--ink); font-size: 1.08em; font-weight: 500; }
.ck-bar p { margin: 4px 0 0; }
.ck-bar a { color: var(--blue-500); text-decoration: underline; text-underline-offset: 3px; }
.ck-bar a:hover { color: var(--red); }
.ck-btns { display: flex; justify-content: flex-end; }
.ck-ok { padding: 10px 26px; text-transform: none !important; letter-spacing: 0; font-size: calc(var(--fs, 17px) - 1px); }
@media (max-width: 640px) {
  .ck-bar { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 14px; font-size: calc(var(--fs, 17px) - 3px); }
  html.ck-open #toTop { bottom: calc(var(--ck-h, 160px) + 24px); }
}
@media print { .ck-bar { display: none !important; } }
html[class*="a11y-c-"] .ck-bar:not(#a11y-x):not(#a11y-y) { border: 3px solid var(--a-fg) !important; }
.foot-ck { cursor: pointer; }

/* ==================== Menu dostępności (karta po prawej stronie; układ wzorowany na menu ze strony blikpol.pl) ==================== */
.a11y-btn { position: fixed; right: 0; top: calc(50% - 30px); z-index: 2147483000; width: 52px; height: 60px; padding: 0; border: 0; border-radius: 14px 0 0 14px; background: var(--navy); color: #fff !important; display: grid; place-items: center; cursor: pointer; box-shadow: -4px 6px 22px rgba(6, 38, 74, .35) !important; transition: width .18s, background .18s; }
.a11y-btn svg { width: 30px; height: 30px; }
.a11y-btn:hover, .a11y-btn:focus-visible { width: 60px; background: var(--red); }
.a11y-btn:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.a11y-panel { position: fixed; top: 12px; right: 12px; bottom: 12px; z-index: 2147483001; width: min(440px, calc(100vw - 24px)); display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: #eef1f6; color: var(--text); box-shadow: 0 24px 80px rgba(6, 38, 74, .45); font-size: min(calc(var(--fs, 17px) - 1px), 19px); line-height: 1.35; transform: translateX(112%); visibility: hidden; transition: transform .26s ease, visibility 0s .26s; }
.a11y-panel.open { transform: none; visibility: visible; transition: transform .26s ease; }
.a11y-panel header { display: flex; align-items: center; gap: 10px; padding: 14px 16px 14px 20px; background: var(--navy); color: #fff; }
.a11y-hico svg { width: 30px; height: 30px; display: block; }
.a11y-panel h2 { flex: 1; margin: 0; padding: 0; border: 0; background: none; color: #fff; font-size: 1.28em; font-weight: 500; letter-spacing: 0; text-transform: none; }
.a11y-hbtn { width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff !important; display: grid; place-items: center; cursor: pointer; }
.a11y-hbtn svg { width: 21px; height: 21px; }
.a11y-hbtn:hover, .a11y-hbtn:focus-visible { background: var(--red); }
.a11y-body { flex: 1; overflow: auto; padding: 14px 16px 18px; }
.a11y-panel h3.a11y-sec { margin: 20px 2px 10px; padding: 0; border: 0; background: none; color: var(--ink); font-size: 1.05em; font-weight: 500; letter-spacing: 0; text-transform: none; }
.a11y-ico svg { width: 30px; height: 30px; display: block; }
.a11y-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; margin: 0 0 10px; padding: 12px 16px; border: 1px solid #dfe5ee; border-radius: 12px; background: #fff; color: var(--text) !important; font: inherit; text-align: left; cursor: pointer; }
.a11y-row .a11y-ico svg { width: 26px; height: 26px; }
.a11y-row .a11y-lbl { flex: 1; font-weight: 500; }
.a11y-row .a11y-lbl small { display: block; margin-top: 2px; font-weight: 400; color: var(--muted); font-size: .88em; }
.a11y-chev svg { width: 20px; height: 20px; display: block; }
.a11y-row:hover { border-color: var(--blue); background: var(--tint); }
.a11y-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.a11y-opt { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 104px; padding: 12px 8px; border: 2px solid #dfe5ee; border-radius: 12px; background: #fff; color: var(--text) !important; font: inherit; font-size: .9em; line-height: 1.25; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.a11y-opt:hover { border-color: var(--blue); background: var(--tint); }
.a11y-opt[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #fff !important; }
.a11y-dots { display: flex; gap: 5px; height: 8px; }
.a11y-dots i { width: 8px; height: 8px; border-radius: 50%; background: #c9d3e1; }
.a11y-dots i.on { background: var(--red); }
.a11y-opt[aria-pressed="true"] .a11y-dots i { background: rgba(255, 255, 255, .4); } .a11y-opt[aria-pressed="true"] .a11y-dots i.on { background: #fff; }
.a11y-fscard { grid-column: span 2; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border: 2px solid #dfe5ee; border-radius: 12px; background: #fff; font-size: .9em; }
.a11y-fshead { display: flex; align-items: center; gap: 10px; }
.a11y-fshead .a11y-ico svg { width: 28px; height: 28px; }
.a11y-size { display: flex; align-items: center; gap: 10px; }
.a11y-sz { flex: none; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: var(--navy); color: #fff !important; font-size: 26px; line-height: 1; cursor: pointer; }
.a11y-sz:hover:not(:disabled), .a11y-sz:focus-visible { background: var(--red); }
.a11y-sz:disabled { opacity: .35; cursor: not-allowed; }
.a11y-fsv { flex: 1; padding: 10px; border-radius: 999px; background: #eef1f6; text-align: center; font-weight: 600; color: var(--ink); }
.a11y-hint { margin: 0 2px 12px; color: var(--muted); font-size: .92em; }
.a11y-status { min-height: 1.4em; margin: 14px 2px 0; color: var(--muted); font-size: .92em; }
.a11y-note { margin: 4px 2px 0; font-size: .86em; color: var(--muted); }
.a11y-panel button { text-transform: none !important; letter-spacing: 0 !important; transform: none !important; box-shadow: none !important; }
/* ogólna reguła „button:hover { color: #fff !important }” nie może bielić napisów na jasnych kafelkach */
.a11y-panel .a11y-opt:hover, .a11y-panel .a11y-opt:focus-visible, .a11y-panel .a11y-row:hover, .a11y-panel .a11y-row:focus-visible { color: var(--text) !important; }
.a11y-panel .a11y-opt[aria-pressed="true"], .a11y-panel .a11y-opt[aria-pressed="true"]:hover, .a11y-panel .a11y-opt[aria-pressed="true"]:focus-visible { color: #fff !important; background: var(--navy); border-color: var(--navy); }
.a11y-panel .a11y-opt:focus-visible, .a11y-panel .a11y-row:focus-visible, .a11y-panel .a11y-sz:focus-visible, .a11y-panel .a11y-hbtn:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
#a11yGuide { position: fixed; left: 0; right: 0; top: 40%; height: 48px; z-index: 2147482000; pointer-events: none; background: rgba(255, 214, 0, .22); border-top: 3px solid #e59a00; border-bottom: 3px solid #e59a00; }
@media (max-width: 520px) { .a11y-btn { width: 46px; height: 54px; top: 38%; } .a11y-panel { inset: 0; width: 100%; border-radius: 0; } .a11y-grid { grid-template-columns: repeat(2, 1fr); } }
@media print { #a11y, #a11yGuide { display: none !important; } }

/* --- rozmiar tekstu: wszystkie rozmiary na stronie wynikają ze zmiennej --fs --- */
html.a11y-fs-1 { --fs: 20px; } html.a11y-fs-2 { --fs: 23px; } html.a11y-fs-3 { --fs: 26px; } html.a11y-fs-4 { --fs: 30px; }
/* przy powiększonym tekście i odstępach elementy z zablokowanym zawijaniem muszą móc się łamać */
html:is([class*="a11y-fs-"], [class*="a11y-letter-"], .a11y-font) :is(#detaleM span, .cennikCena, .Cennik td.cennikCena.short, .cta-visit, .blisko ul.blue li, .artlist .d) { white-space: normal !important; }
html:is([class*="a11y-fs-"], [class*="a11y-letter-"], .a11y-font) #detaleM :is(a, span) { overflow-wrap: anywhere; }
html[class*="a11y-fs-"] #detaleM { font-size: min(var(--fs), 21px); }
html[class*="a11y-fs-"] .cta-visit { text-align: center; padding: 12px 18px; }
html:is(.a11y-font, [class*="a11y-fs-"], [class*="a11y-letter-"]) #mainCol * { overflow-wrap: anywhere; }

/* --- tekst i czytanie --- */
html.a11y-links a:not(.btn):not(.cta-visit):not(#logo):not(.a11y-btn) { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: .18em; background-color: #fff3a8 !important; color: #0a2f5c !important; font-weight: 600; border-radius: 3px; }
html.a11y-links #a11y a { background-color: transparent !important; color: var(--blue) !important; text-decoration: underline !important; font-weight: 500; }
html.a11y-heads :is(h1, h2, h3, h4, h5, h6):not(.a11y-sec):not(#a11yTitle) { background: #fff3a8 !important; color: #000 !important; outline: 3px solid #0a2f5c; outline-offset: 2px; padding: .15em .45em !important; border-radius: 4px; }
html.a11y-font, html.a11y-font * { font-family: "OpenDyslexic", "Lexend", "Atkinson Hyperlegible", "Comic Sans MS", "Comic Neue", "Trebuchet MS", Verdana, sans-serif !important; }
html.a11y-letter-1 :is(#mainCol, #leftCol, #footer, #detale, #detaleM) * { letter-spacing: .04em !important; }
html.a11y-letter-2 :is(#mainCol, #leftCol, #footer, #detale, #detaleM) * { letter-spacing: .09em !important; }
html.a11y-letter-3 :is(#mainCol, #leftCol, #footer, #detale, #detaleM) * { letter-spacing: .15em !important; }
html.a11y-lh-1 :is(#mainCol, #leftCol) * { line-height: 1.85 !important; } html.a11y-lh-2 :is(#mainCol, #leftCol) * { line-height: 2.15 !important; } html.a11y-lh-3 :is(#mainCol, #leftCol) * { line-height: 2.5 !important; }
html.a11y-weight-1 :is(#mainCol, #leftCol, #footer) * { font-weight: 500 !important; } html.a11y-weight-2 :is(#mainCol, #leftCol, #footer) * { font-weight: 700 !important; }
html.a11y-align-left #mainCol :is(p, li, h1, h2, h3, h4, h5, h6, td, th, blockquote, dd, dt) { text-align: left !important; }
html.a11y-align-center #mainCol :is(p, li, h1, h2, h3, h4, h5, h6, td, th, blockquote, dd, dt) { text-align: center !important; }
html.a11y-align-right #mainCol :is(p, li, h1, h2, h3, h4, h5, h6, td, th, blockquote, dd, dt) { text-align: right !important; }
html.a11y-align-justify #mainCol :is(p, li, blockquote, dd, dt) { text-align: justify !important; }

/* --- obrazy, ruch, nawigacja --- */
html.a11y-noimg :is(#banner, #mainCol img, #mainCol figure, .galeria, .plakat) { display: none !important; }
html.a11y-focus :focus { outline: 4px solid #ee1d25 !important; outline-offset: 3px !important; box-shadow: 0 0 0 7px #fff !important; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-still .reveal { opacity: 1 !important; transform: none !important; }
html.a11y-still::view-transition-group(*), html.a11y-still::view-transition-old(*), html.a11y-still::view-transition-new(*) { animation: none !important; }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 9-6.5 1.8L16 20l-3 1.4-3.6-7.2L4 18z' fill='%23000' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, auto !important; }
html.a11y-cursor :is(a, button, [role="button"], select, summary, label, input[type="submit"]) { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 9-6.5 1.8L16 20l-3 1.4-3.6-7.2L4 18z' fill='%23ee1d25' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, pointer !important; }

/* --- filtry: skala szarości i odwrócenie kolorów (nakładane na bloki strony, żeby elementy „fixed” nie traciły położenia) --- */
html.a11y-gray :is(#detaleM, #header, #contentareaWrap_middleL > :not(#mmTrigger, #mobileBackdrop, #mobileMenu), #mmTrigger, #mobileMenu, #mobileBackdrop, #toTop, .skip-link) { filter: grayscale(1); }
html.a11y-invert :is(#detaleM, #header, #contentareaWrap_middleL > :not(#mmTrigger, #mobileBackdrop, #mobileMenu), #mmTrigger, #mobileMenu, #mobileBackdrop, #toTop, .skip-link) { filter: invert(1) hue-rotate(180deg); }
html.a11y-gray.a11y-invert :is(#detaleM, #header, #contentareaWrap_middleL > :not(#mmTrigger, #mobileBackdrop, #mobileMenu), #mmTrigger, #mobileMenu, #mobileBackdrop, #toTop, .skip-link) { filter: grayscale(1) invert(1) hue-rotate(180deg); }
html.a11y-invert :is(img, video, iframe, a#logo, .slide) { filter: invert(1) hue-rotate(180deg); }
html.a11y-gray body { background: #f1f1f1 !important; }
html.a11y-invert body { background: #101820 !important; }

/* --- kontrast: ciemny (biały na czarnym), jasny (czarny na białym), wysoki (żółty na czarnym), czarny na żółtym --- */
html.a11y-c-yb { --a-bg: #000; --a-fg: #ff0; --a-link: #0ff; }
html.a11y-c-wb { --a-bg: #000; --a-fg: #fff; --a-link: #ffeb3b; }
html.a11y-c-lt { --a-bg: #fff; --a-fg: #000; --a-link: #0000b8; }
html.a11y-c-by { --a-bg: #ff0; --a-fg: #000; --a-link: #0000b8; }
html[class*="a11y-c-"], html[class*="a11y-c-"] body { background: var(--a-bg) !important; }
html[class*="a11y-c-"] *:not(#a11y-x):not(#a11y-y):not(.slide):not([style*="background-image"]), html[class*="a11y-c-"] *:not(#a11y-x):not(#a11y-y)::before, html[class*="a11y-c-"] *:not(#a11y-x):not(#a11y-y)::after { background-color: var(--a-bg) !important; background-image: none !important; color: var(--a-fg) !important; border-color: var(--a-fg) !important; box-shadow: none !important; text-shadow: none !important; }
html[class*="a11y-c-"] a:not(#a11y-x):not(#a11y-y), html[class*="a11y-c-"] a:not(#a11y-x):not(#a11y-y) * { color: var(--a-link) !important; text-decoration: underline !important; }
html[class*="a11y-c-"] a#logo:not(#a11y-x):not(#a11y-y) { background-image: var(--a11y-logo, url(../img/logo.png)) !important; background-color: #fff !important; border-radius: 8px; }
html[class*="a11y-c-"] img:not(#a11y-x):not(#a11y-y) { background-color: #fff !important; }
html[class*="a11y-c-"] :is(.btn, button, input, select, textarea, .cta-visit):not(#a11y-x):not(#a11y-y) { border: 2px solid var(--a-fg) !important; }
html[class*="a11y-c-"] :is(#toTop, .cta-visit, #mmTrigger) svg *:not(#a11y-x):not(#a11y-y) { stroke: var(--a-fg) !important; fill: none !important; }
html[class*="a11y-c-"] .a11y-panel svg *:not(#a11y-x):not(#a11y-y), html[class*="a11y-c-"] .a11y-btn svg *:not(#a11y-x):not(#a11y-y) { stroke: var(--a-fg) !important; }
html[class*="a11y-c-"] :is(.a11y-btn, .a11y-hico) svg path:not(#a11y-x):not(#a11y-y) { fill: var(--a-fg) !important; stroke: none !important; }
html[class*="a11y-c-"] .a11y-panel { border: 3px solid var(--a-fg) !important; }
html[class*="a11y-c-"] .a11y-opt[aria-pressed="true"]:not(#a11y-x):not(#a11y-y) { border-width: 5px !important; font-weight: 700; }
html[class*="a11y-c-"] .a11y-dots i:not(#a11y-x):not(#a11y-y) { border: 2px solid var(--a-fg) !important; background-color: transparent !important; }
html[class*="a11y-c-"] .a11y-dots i.on:not(#a11y-x):not(#a11y-y) { background-color: var(--a-fg) !important; }
html[class*="a11y-c-"] #a11yGuide:not(#a11y-x):not(#a11y-y) { background-color: transparent !important; border-color: var(--a-link) !important; border-top: 3px solid; border-bottom: 3px solid; }
html[class*="a11y-c-"] .moduletable.menu ul.nav-child:not(#a11y-x):not(#a11y-y) { -webkit-backdrop-filter: none; backdrop-filter: none; }
html[class*="a11y-c-"] ::selection { background: var(--a-fg) !important; color: var(--a-bg) !important; }

/* Rozmiar tekstu ustawiany w panelu zarządzania (A−, A+, „Rozmiar tekstu”): wielokrotność rozmiaru bieżącego bloku; rośnie razem z menu dostępności (--fs) */
.item-page h2 { --kt-base: calc(var(--fs) + 5px); } .item-page h3, .item-page h4 { --kt-base: calc(var(--fs) + 3px); } .item-page h5 { --kt-base: calc(var(--fs) + 1px); }
html body [data-fs] { font-size: calc(var(--kt-base, var(--fs)) * var(--k, 1)); }

/* Zdjęcia lekarzy (float: right + object-fit w stylu elementu): na wąskich ekranach (telefon) zdjęcie stoi nad tekstem, wyśrodkowane. Obok niego zostawało za mało miejsca i słowa łamały się w środku. */
@media (max-width: 600px) {
  .item-page img[style*="float: right"][style*="object-fit"] { float: none !important; display: block; margin: 0 auto 16px !important; }
}
