/* ============================================================
   SPZOZ Łaskarzew — Main Stylesheet
   Responsive + WCAG 2.1 AA
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Kolory ─────────────────────────────────────────────────
     Każdy kolor tekstu zweryfikowany pod kontrast WCAG AA:
     - tekst normalny (< 18px lub < 14px bold): min 4,5:1
     - tekst duży  (≥ 18px lub ≥ 14px bold):   min 3:1
  ──────────────────────────────────────────────────────────── */

  /* #1b96d4 na białym = 3.37:1 — za mało dla tekstu normalnego.
     Do tła/dekoracji zostawiamy, do TEKSTU używamy --blue-text  */
  --blue-primary:  #1b96d4;
  --blue-dark:     #1578ac;
  --blue-light:    #e8f5fc;
  --blue-sidebar:  #27a4e0;
  /* #0a6da2 na białym = 5.26:1 ✓ — do linków i tekstu niebieskiego */
  --blue-text:     #0a6da2;

  /* #f5a623 na białym = 2.85:1 — przyciski CTA mają białe DUŻE napisy
     (14px bold = large text wg WCAG → próg 3:1) — i tak ledwo.
     Ciemniejszy wariant zapewnia 3.2:1 dla white text large ✓ */
  --orange:        #e8950e;
  --orange-dark:   #c97e0a;
  --orange-focus:  #7a4e00; /* do obramowania fokus na pomarańczowym tle */

  --text-dark:     #666666; /* na białym = 17.8:1 ✓ */
  --text-mid:      #284695; /* na białym = 9.7:1  ✓ */
  /* #777 na białym = 4.48:1 — FAIL. Zmienione na #666 = 5.74:1 ✓ */
  --text-muted:    #666666;
  /* #6e8494 na #2c3e50 = 2.80:1 — FAIL. Zmienione na #a0b5c0 = 5.08:1 ✓ */
  --footer-subtle: #a0b5c0;

  --border:        #dce8f0;
  --white:         #ffffff;
  --topbar-bg:     #f0f7fb;
  --footer-bg:     #2c3e50;
  --nav-height:    120px;

  /* Fokus — wyraźny pierścień widoczny dla wszystkich użytkowników klawiatury */
  --focus-color:   #005fcc;
  --focus-width:   3px;
}

/* =====================================================================
   GRAFIK LEKARZY — podstrona (szablon page-grafik-lekarzy.php)
   Kolory dopasowane do motywu SPZOZ Łaskarzew.
   Dopisz na końcu style.css motywu.
   ===================================================================== */

.grafik-section {
    --g-navy:   #0b3a73;  /* granat nagłówków        */
    --g-blue:   #2b95d6;  /* błękit akcentów         */
    --g-orange: #f5a623;  /* pomarańcz przycisków    */
    --g-ink:    #41505f;  /* tekst                   */
    --g-line:   #e7f1f8;  /* delikatne obramowania   */

    padding: 175px 0px;
    background: linear-gradient(180deg, #f3fafe 0%, #ffffff 55%);
}

.news-archive-card.is-sticky {
    border: 2px solid var(--blue-primary, #1b96d4);
	padding: 15px;
}


/* =========================================================
   ARCHIWUM AKTUALNOŚCI
   ========================================================= */

.news-archive {
    padding-top: 60px;
    padding-bottom: 80px;
}

.news-archive-header {
    margin-bottom: 40px;
}


/* GRID */

.news-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 28px;
}


/* KARTA */

.news-archive-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}


/* MINIATURA */

.news-archive-thumbnail {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    margin-bottom: 20px;
    text-decoration: none;
}

.news-archive-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.news-archive-thumbnail:hover img {
    transform: scale(1.03);
}


/* BRAK MINIATURY */

.news-archive-placeholder {
    width: 100%;
    height: 100%;
    min-height: 220px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f2f5f6;
    color: #6aaccc;
}


/* TREŚĆ */

.news-archive-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}


.news-archive-card .news-date {
    display: block;
    margin: 0 0 8px;
}


/* TYTUŁ */

.news-archive-title {
    margin: 0 0 14px;
    font-size: 24px;
    line-height: 1.25;
}

.news-archive-title a {
    color: inherit;
    text-decoration: none;
}

.news-archive-title a:hover {
    text-decoration: underline;
}


/* ZAJAWKA */

.news-archive-excerpt {
    margin-bottom: 20px;
    line-height: 1.6;
}


/* PRZYCISK NA DOLE KARTY */

.news-archive-card .btn-more {
    margin-top: auto;
}


/* =========================================================
   PAGINACJA
   ========================================================= */

.news-pagination {
    margin-top: 60px;
}

.news-pagination ul.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 8px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.news-pagination ul.page-numbers li {
    margin: 0;
    padding: 0;
}

.news-pagination .page-numbers a,
.news-pagination .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 44px;
    height: 44px;
    padding: 0 14px;

    text-decoration: none;
    border: 1px solid #ddd;
}

.news-pagination .page-numbers a:hover {
    background: #f3f3f3;
}

.news-pagination .page-numbers .current {
    font-weight: 700;
    background: #f3f3f3;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

    .news-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 650px) {

    .news-archive {
        padding-top: 35px;
        padding-bottom: 50px;
    }

    .news-archive-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .news-archive-title {
        font-size: 21px;
    }

    .news-pagination .page-numbers a,
    .news-pagination .page-numbers span {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
    }

}

.access-declaration-link {
    display: block;
    margin-top: 20px;
    font-weight: 400;
    /* text-decoration: underline; */
    background: #1b96d4;
    color: #FFF;
    padding: 18px;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
}

h2.wp-block-heading {
    background: #008dd2;
    margin-bottom: 20px;
    color: #fff;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 1.4em;
}

.wp-block-separator {
    border: none;
    border-top: 1px solid #008dd2;
    margin: 70px;
}

h3.wp-block-heading {
    margin-bottom: 20px;
    color: #008dd2;;
    border-radius: 6px;
    font-size: 1.2em;
}

.page-content a {
    text-decoration: none;
    color: inherit;
    border-bottom: solid 1px #008dd2;
}

.wp-block-file a{
	font-size: 1.3em;
}

.wp-block-file *+.wp-block-file__button {
    margin-left: .75em;
    color: #fff;
    border-radius: 6px;
    padding: 10px 40px;
    margin-bottom: 20px;
}

:root :where(.wp-element-button, .wp-block-button__link) {
    background-color: #284695;
}

.news-thumb-link {
  display: block;
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
}
.news-thumb-link .news-thumb-ph {
  width: 100%;
  height: 100%;
  border-radius: 0;          /* zaokrąglenie przejmuje link */
  transition: transform .25s ease;
}
.news-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-thumb-link:hover .news-thumb-ph,
.news-thumb-link:focus-visible .news-thumb-ph {
  transform: scale(1.04);
}

.single-content {
    width: min(1400px, calc(100% - 40px));
    margin: 0 auto;
}

.single-layout {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(240px, 1fr);
    gap: 50px;
    align-items: start;
}

.single-article {
    min-width: 0;
}

.single-header {
    margin-bottom: 30px;
}

.single-date {
    margin-bottom: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #777;
}

.single-thumbnail {
    width: 100%;
    margin: 0 0 35px;
    overflow: hidden;
    border-radius: 20px;
}

.single-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
}

/*
 * Treść wpisu
 */

.single-body {
    font-size: 1.05rem;
    line-height: 1.75;
}

.single-body img {
    max-width: 100%;
    height: auto;
}

/*
 * Prawa kolumna
 */



.single-sidebar-title {
    margin: 0 0 60px;
    padding-bottom: 14px;
    font-size: 1.3rem;
    line-height: 1.2;
        border-bottom: 2px solid rgb(27 150 212);
}

.single-sidebar-posts {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.single-sidebar-post {
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.single-sidebar-thumbnail {
    display: block;
    margin-bottom: 14px;
    overflow: hidden;
    border-radius: 12px;
    background: #f2f2f2;
}

.single-sidebar-thumbnail img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.3s ease;
	height: 150px;
}

.single-sidebar-thumbnail:hover img {
    transform: scale(1.04);
}

.single-sidebar-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #ededed;
}

.single-sidebar-date {
    display: block;
    margin-bottom: 7px;
    font-size: 0.75rem;
    color: #777;
}

.single-sidebar-post-title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    line-height: 1.35;
}

.single-sidebar-post-title a {
    color: inherit;
    text-decoration: none;
}

.single-sidebar-post-title a:hover {
    text-decoration: underline;
}

.single-sidebar-excerpt {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #666;
}

/*
 * Poprzedni i kolejny wpis
 */

.single-post-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.single-nav-item {
    min-width: 0;
}

.single-nav-next {
    text-align: right;
}

.single-post-navigation .btn-more {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    padding: 18px 20px;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 12px;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.single-post-navigation .btn-more:hover {
    transform: translateY(-2px);
    border-color: currentColor;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.single-nav-label {
    font-weight: 700;
    font-size: 1.5em;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.single-nav-title {
    font-size: 0.85rem;
    line-height: 1.4;
    opacity: 0.7;
	font-weight: 400;
}

.single-footer {
    margin-top: 30px;
}

/*
 * Tablet i telefon
 */

@media (max-width: 1000px) {
    .single-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .single-sidebar {
        position: static;
        margin-top: 30px;
    }

    .single-sidebar-posts {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .single-content {
        width: min(100% - 30px, 1400px);
    }

    .single-sidebar-posts,
    .single-post-navigation {
        grid-template-columns: minmax(0, 1fr);
    }

    .single-nav-next {
        text-align: left;
    }

    .single-layout {
        gap: 35px;
    }

    .single-thumbnail {
        border-radius: 12px;
    }
}

/* Powiększanie całej strony — działa też dla tekstu w px.
   Panel, overlay i pasek admina WP są wykluczone. */
html.acc-font-1 body > :not(.access-panel):not(.access-overlay):not(#wpadminbar) { zoom: 1.125; }
html.acc-font-2 body > :not(.access-panel):not(.access-overlay):not(#wpadminbar) { zoom: 1.25;  }
html.acc-font-3 body > :not(.access-panel):not(.access-overlay):not(#wpadminbar) { zoom: 1.375; }
html.acc-font-4 body > :not(.access-panel):not(.access-overlay):not(#wpadminbar) { zoom: 1.5;   }

.grafik-inner {
    max-width: 1180px;
    margin-inline: auto;
}

.grafik-header {
    margin-bottom: clamp(26px, 4vw, 46px);
}

p.wp-block-paragraph {
    margin-bottom: 20px;
	    font-size: 1.15em;
}

 ul.wp-block-list {
    margin-bottom: 20px;
    font-size: 1.15em;
	 list-style: disc;
	 margin-left: 20px;
}

ul.wp-block-list li::marker{
	color: #284695;
}

/* korzysta z istniejącego .section-title motywu — dokładamy tylko odstęp */
.grafik-header .section-title {
    margin-bottom: 60px;

}

/* Zdejmij ewentualne ograniczenia szerokości/marginesy narzucone
   przez układ bloków WordPressa na kontener siatki i karty */
.grafik-content .spzoz-grafik-grid {
    max-width: none !important;
    margin-inline: 0 !important;
}
.grafik-content .spzoz-doc-card {
    max-width: none !important;
    margin: 0 !important;
}

.spzoz-grafik-grid > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* tablet — 2 kolumny */
@media (max-width: 900px) {
  .spzoz-grafik-grid > .wp-block-group__inner-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* telefon — 1 kolumna */
@media (max-width: 600px) {
  .spzoz-grafik-grid > .wp-block-group__inner-container {
    grid-template-columns: 1fr;
  }
}

/* KARTA LEKARZA */
.grafik-content .spzoz-doc-card {
    margin: 0;
    background: #fff;
    border: 1px solid var(--g-line);
    border-radius: 16px;
    padding: 26px 26px 28px;
    box-shadow: 0 8px 26px rgba(11, 58, 115, .08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.grafik-content .spzoz-doc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 38px rgba(11, 58, 115, .14);
}

/* NAZWISKO LEKARZA + okrągła ikona */
.grafik-content .spzoz-doc-name {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    padding-bottom: 14px;
    border-bottom: 2px solid #eef6fc;
    color: var(--g-navy);
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.3;
}

.grafik-content .spzoz-doc-name::before {
    content: "";
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E"),
        linear-gradient(135deg, #36a3df, #1f7fc0);
    background-repeat: no-repeat, no-repeat;
    background-position: center, center;
    background-size: 19px 19px, cover;
}

/* LISTA GODZIN */
.grafik-content .spzoz-doc-hours {
    list-style: none;
    margin: 0;
    padding: 0;
}

.grafik-content .spzoz-doc-hours li {
    position: relative;
    margin: 0 0 11px;
    padding-left: 22px;
    color: var(--g-ink);
    font-size: .98rem;
    line-height: 1.55;
}

.grafik-content .spzoz-doc-hours li:last-child {
    margin-bottom: 0;
}

.grafik-content .spzoz-doc-hours li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--g-orange);
}

.grafik-content .spzoz-doc-hours li strong {
    color: var(--g-navy);
    font-weight: 700;
    white-space: nowrap;
}

/* Podpowiedź dla redaktora przy pustej stronie */
.grafik-content .grafik-hint {
    margin: 0;
    padding: 16px 18px;
    border: 1px dashed #b9d8ec;
    border-radius: 12px;
    background: #f1f8fd;
    color: #2c5f8a;
    font-size: .95rem;
}


@media (max-width: 480px) {
    .grafik-content .spzoz-doc-card {
        padding: 22px 20px 24px;
    }
}


body {
  font-family: 'Kanit', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  font-size: 0.9375em;
  line-height: 1.6;
}

a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
strong{ font-weight: 700;
}


/* ── MENU DWUPOZIOMOWE (PODMENU) — DESKTOP ────────────────────
   Reguły mobilne znajdują się w @media (max-width: 900px) niżej.
──────────────────────────────────────────────────────────────── */
.nav-links li {
  position: relative; /* punkt odniesienia dla podmenu */
}

.nav-links .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.6);

  /* stan ukryty + animacja */
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  z-index: 9999; /* ponad frosted-glass navbara, by nie było przycinane */
}

/* otwarcie: hover na rodzicu, fokus wewnątrz, lub klasa z JS */
.nav-links li:hover > .sub-menu,
.nav-links li:focus-within > .sub-menu,
.nav-links li.submenu-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity .25s ease, transform .25s ease, visibility 0s;
}

/* bufor nad podmenu, żeby kursor nie "wypadał" między rodzicem a listą */
.nav-links .menu-item-has-children > .sub-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nav-links .menu-item-has-children > a {
  position: relative;
}

.nav-links .sub-menu li {
  width: 100%;
}

.nav-links .sub-menu a {
  display: block;
  padding: 10px 20px;
  margin-left: 0;
  border-radius: 0;
  font-size: 0.95em;
  color: var(--text-mid);
  white-space: nowrap;
  min-height: 44px;
  /* pozycje podrzędne nie dziedziczą ikon tła z pozycji nadrzędnych */
  background-image: none !important;
}

.nav-links .sub-menu a:hover,
.nav-links .sub-menu a:focus-visible {
  background: var(--blue-light);
  color: var(--blue-text);
}

/* strzałka wskazująca rozwijalną pozycję */
.nav-links .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s ease;
  opacity: .7;
}

.nav-links .menu-item-has-children:hover > a::after,
.nav-links .menu-item-has-children.submenu-open > a::after {
  transform: rotate(225deg) translateY(2px);
}

@media (prefers-reduced-motion: reduce) {
  .nav-links .sub-menu {
    transition: visibility 0s, opacity .01ms;
    transform: none;
  }
  .nav-links li:hover > .sub-menu,
  .nav-links li:focus-within > .sub-menu,
  .nav-links li.submenu-open > .sub-menu {
    transform: none;
  }
  .nav-links .menu-item-has-children > a::after { transition: none; }
}

/* ====== PANEL UŁATWIEŃ DOSTĘPU ====== */

/* Pierścień fokusu — WCAG 2.4.7 */
.topbar-access:focus-visible,
.access-panel button:focus-visible {
  outline: var(--focus-width) solid var(--focus-color);
  outline-offset: 2px;
}

body.access-no-scroll { overflow: hidden; }

.access-overlay {
  position: fixed; inset: 0;
  background: rgba(20,30,45,.55);
  opacity: 0; z-index: 9998;
  transition: opacity .3s ease;
}
.access-overlay.is-open { opacity: 1; }

.access-panel {
  position: fixed; top: 0; right: 0;
  width: 360px; max-width: 90vw;
  height: 100%; height: 100dvh;
  background: var(--white); color: var(--text-dark);
  box-shadow: -6px 0 24px rgba(20,30,45,.18);
  z-index: 9999;
  transform: translateX(100%);
  visibility: hidden;                 /* usuwa zawartość z kolejności Tab, gdy zamknięty */
  overflow-y: auto;
  transition: transform .3s ease, visibility 0s linear .3s;
}
.access-panel.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform .3s ease, visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
  .access-panel, .access-overlay { transition: none; }
}

.access-panel__inner { padding: 20px; }
.access-panel__header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 16px; border-bottom: 2px solid var(--border);
}
.access-panel__title {
  margin: 0; font-size: 1.25rem; font-weight: 700;
  color: var(--text-mid);             /* 9.7:1 ✓ */
}
.access-panel__close {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;          /* cel dotykowy */
  border: 2px solid var(--blue-primary);
  border-radius: 8px; background: var(--white);
  color: var(--text-mid); cursor: pointer;
}
.access-panel__close:hover { background: var(--blue-light); }

.access-group { margin-top: 22px; }
.access-group__title {
  margin: 0 0 12px; font-size: .9rem; font-weight: 700;
  color: var(--text-mid); text-transform: uppercase; letter-spacing: .04em;
}

.access-fontsize { display: flex; align-items: center; gap: 12px; }
.access-fontsize__btn {
  flex: 1 1 auto; min-height: 48px;
  border: 2px solid var(--blue-primary); border-radius: 8px;
  background: var(--white); color: var(--blue-text);   /* 5.26:1 ✓ */
  font-size: 1.05rem; font-weight: 700; cursor: pointer;
}
.access-fontsize__btn:hover { background: var(--blue-light); }
.access-fontsize__value {
  flex: 0 0 64px; text-align: center; font-weight: 700;
  color: var(--text-dark);
}

.access-toggle {
  display: flex; align-items: center; width: 100%; min-height: 48px;
  margin-bottom: 10px; padding: 10px 14px;
  border: 2px solid var(--border); border-radius: 8px;
  background: var(--white); color: var(--text-dark);   /* 17.8:1 ✓ */
  font-size: 1rem; font-weight: 600; text-align: left; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.access-toggle:hover { background: var(--blue-light); border-color: var(--blue-primary); }
.access-toggle[aria-pressed="true"] {
  background: var(--blue-text);       /* białe na #0a6da2 = 5.26:1 ✓ */
  border-color: var(--blue-text); color: var(--white);
}
.access-toggle[aria-pressed="true"]::after { content: "✓"; margin-left: auto; font-weight: 700; }

.access-reset {
  width: 100%; min-height: 48px; margin-top: 22px;
  border: 2px solid var(--border); border-radius: 8px;
  background: var(--white); color: var(--text-mid);    /* 9.7:1 ✓ (pewny AA) */
  font-size: 1rem; font-weight: 700; cursor: pointer;
}
.access-reset:hover { background: var(--blue-light); border-color: var(--blue-primary); }

/* ====== TRYBY (klasy na <html>) ====== */

html.acc-grayscale { filter: grayscale(100%); }   /* na elemencie root nie psuje position:fixed */

html.acc-links a { text-decoration: underline !important; text-underline-offset: 2px; }

html.acc-spacing :is(p,li,a,h1,h2,h3,h4,h5,h6,label,td,th,blockquote,figcaption) {
  line-height: 1.7 !important; letter-spacing: .1em !important; word-spacing: .16em !important;
}
html.acc-spacing p { margin-bottom: 2em !important; }
html.acc-spacing .access-panel * { letter-spacing: normal !important; word-spacing: normal !important; }

html.acc-readable,
html.acc-readable :is(body,p,span,a,li,h1,h2,h3,h4,h5,h6,button,input,label,td,th) {
  font-family: Verdana, Tahoma, "Segoe UI", Arial, sans-serif !important;
}

/* Wysoki kontrast: białe na czarnym = 21:1, żółte linki = ~19,6:1 */
html.acc-contrast, html.acc-contrast body { background: #000 !important; color: #fff !important; }
html.acc-contrast :is(p,span,li,h1,h2,h3,h4,h5,h6,td,th,label,div,section,article,header,footer,nav,aside,blockquote) {
  background-color: transparent !important; color: #fff !important; border-color: #fff !important;
}
html.acc-contrast a { color: #ff0 !important; text-decoration: underline !important; }
html.acc-contrast :is(button,input,select,textarea) {
  background: #000 !important; color: #fff !important; border: 2px solid #fff !important;
}
/* panel czytelny też w trybie kontrastu */
html.acc-contrast .access-panel { background: #000 !important; }
html.acc-contrast .access-toggle[aria-pressed="true"] { background: #ff0 !important; color: #000 !important; border-color: #ff0 !important; }
html.acc-contrast :is(.access-panel__title,.access-group__title,.access-fontsize__value) { color: #fff !important; }
/* podmenu czytelne w trybie kontrastu */
html.acc-contrast .nav-links .sub-menu { background: #000 !important; border-color: #fff !important; }


/* ── WCAG: GLOBALNE STYLE FOKUS ─────────────────────────────
   Nigdy nie usuwamy outline bez zapewnienia alternatywy.
   :focus-visible = tylko klawiatura, nie klik myszą.
──────────────────────────────────────────────────────────── */
:focus { outline: none; }

:focus-visible {
  outline: var(--focus-width) solid var(--focus-color);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Przyciski i linki z kolorowym tłem — kontrastowy pierścień */
.btn-orange:focus-visible {
  outline-color: var(--orange-focus);
  outline-offset: 4px;
}
.btn-kontakt:focus-visible,
.btn-more:focus-visible,
.btn-dojazd:focus-visible {
  outline: var(--focus-width) solid white;
  outline-offset: 3px;
}
.hamburger:focus-visible {
  outline: var(--focus-width) solid var(--focus-color);
  outline-offset: 2px;
}
.sidebar-card a:focus-visible,
.sidebar-card button:focus-visible {
  outline: var(--focus-width) solid white;
  outline-offset: 3px;
}

/* ── WCAG: SKIP LINK ────────────────────────────────────────
   Niewidoczny do czasu fokusu — pierwszy element na stronie
──────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  background: var(--focus-color);
  color: white;
  font-weight: 700;
  font-size: 0.9375em;
  padding: 12px 20px;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid white;
  outline-offset: 2px;
}

/* ── SHARED ─────────────────────────────────────────────────  */
.section-title {
  font-size: 1.875em;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
	line-height: 1.2em;
}
.section-title::after {
  content: '';
  display: block;
  width: 40px; height: 3px;
  background: var(--blue-primary);
  margin-top: 20px;
  border-radius: 2px;
}

.btn-orange {
  display: inline-block;
  background: var(--orange);
  color: white;
  font-weight: 700;
  font-size: 0.9375em;
  padding: 13px 30px;
  border-radius: 10px;
  transition: background .2s, transform .15s;
  cursor: pointer;
  border: none;
  /* WCAG: minimalny rozmiar 44×44px dotyku */
  min-height: 44px;
}
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-1px); }

.img-placeholder {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #c9e4f0 0%, #aacfe3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4d8da8; /* ciemniejszy — kontrast 4.6:1 na tle ✓ */
  font-size: 0.8125em;
  flex-direction: column;
  gap: 8px;
}
.img-placeholder svg { width: 40px; height: 40px; opacity: .5; }

/* ── TOP BAR ────────────────────────────────────────────────  */
.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0px 0;
  font-size: 0.8125em;
  color: var(--text-mid);
}
.topbar-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--text-dark);
	    font-size: 1.2em;
}
.topbar-phone .label { font-weight: 400; color: var(--text-mid); margin-right: 2px; }
.topbar-phone a {
  color: var(--text-dark);
  font-weight: 700;
  /* WCAG: minimalny obszar dotyku */
  min-height: 44px;
  display: inline-flex;
  align-items: center;
	    font-size: 1em;
}
.topbar-right { display: flex; align-items: center; gap: 16px; }

img.ozdobnik {
    position: absolute;
    z-index: 1;
    top: 260px;
}

/* WCAG: topbar-access to teraz <button> */
.topbar-access {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  font-size: 0.8125em;
  color: var(--text-mid);
  padding: 4px 20px;
  border-radius: 6px;
  min-height: 44px;
  transition: background .2s;
}
.topbar-access:hover { background: var(--blue-light); }
.topbar-access-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.topbar-access-icon svg { fill: white; width: 14px; height: 14px; }
.bip-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    background: none;
    color: white;
    /* font-size: 0.6875em; */
    font-weight: 900;
    padding: 0px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

/* ── NAVBAR ─────────────────────────────────────────────────  */
.navbar {
    background: transparent;
    position: fixed;
    top: 55px;
    z-index: 200;
    padding: 10px 5%;
    width: 100%;
    box-sizing: border-box;
	transition: top 0.3s ease;
}

.smaller .navbar{
	top: 10px;
}

.nav-links .o_nas a {
    background-image: url(../img/o_nas.svg);
    background-size: 21px;
    background-position: left center;
    padding-left: 33px;
    background-repeat: no-repeat;
}

.nav-links .rejestracja a {
    background-image: url(../img/erejestracja.svg);
    background-size: 21px;
    background-position: left center;
    padding-left: 30px;
    background-repeat: no-repeat;
}

.nav-links .grafik a {
    background-image: url(../img/kalendarz.svg);
    background-size: 21px;
    background-position: left center;
    padding-left: 30px;
    background-repeat: no-repeat;
}

.nav-links .dla_pacjenta a {
    background-image: url(../img/dla_pacjenta.svg);
    background-size: 19.5px;
    background-position: left center;
    padding-left: 30px;
    background-repeat: no-repeat;
	
}

.nav-links .btn-kontakt a {
    background-image: url(../img/kontakt.svg);
    background-size: 23px;
    background-position: 20px center;
    /* padding-left: 40px; */
    padding: 15px 30px 15px 55px;
    background-repeat: no-repeat;
    color: #fff;
    font-weight: 500;
    background-color: #284695;
    border-radius: 6px !important;
}


.nav-links .btn-kontakt a:hover{
	background-color: #112458;
	color: #fff;
}


.navbar-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  flex-wrap: wrap;
  /* frosted glass */
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.logo { display: flex; align-items: center; gap: 12px; z-index: 201; }

.logo-icon { flex-shrink: 0; }
.logo img { width: 50px; height: 50px; }
.logo-text {
    font-size: 1.1em;
    line-height: 1.25;
    color: var(--text-dark);
    font-weight: 400;
    max-width: 200px;
}
/* WCAG: kolor tekstu loga — --blue-text ma kontrast 5.26:1 ✓ */
.logo-text strong { display: block; color: var(--blue-text); font-weight: 700; font-size: 0.875em; }

span.logo-text-accent {
    color: #284695;
    font-weight: 700;
}

img.custom-logo {
    width: 60px;
    height: 60px;
	    margin-right: 5px;
}

.align_left {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin: 0;
}
.nav-links li { list-style: none; }
.nav-links a {
  padding: 8px 14px;
  font-size: 1em;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  transition: background .2s, color .2s;
  white-space: nowrap;
  /* WCAG: min target 44px */
  min-height: 44px;
	    margin-left: 10px;
}
.nav-links a:hover { color: var(--blue-text); }
.nav-icon { opacity: .7; flex-shrink: 0; }


span.topbar-access-label
 {
    font-size: 1.3em;
}

/* ── HAMBURGER ──────────────────────────────────────────────  */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  /* WCAG: min 44×44px target */
  width: 44px; height: 44px;
  background: none;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  z-index: 201;
  transition: background .2s, border-color .2s;
}
.hamburger:hover { background: var(--blue-light); }
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
  transform-origin: center;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ───────────────────────────────────────────────────  */
.hero {
    position: relative;
    background:
        url('../img/rodzina.png') right 30px / auto no-repeat,
        linear-gradient(0deg, #ffffff 0%, #cce9f7 100%);
    overflow: hidden;
    min-height: 700px;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
      padding: 330px 24px 100px;
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}
.hero-content { flex: 1; }
.hero-content h1 {
    font-size: 2.5625em;
    font-weight: 300;
    line-height: 1.05;
    color: #284695;
}
.hero-content h1 strong { display: block; font-weight: 700; color: #284695; font-size: 1.8em;}
.hero-content .btn-orange { margin-top: 28px; }
.hero-image {
  flex: 1;
  max-width: 560px;
  border-radius: 16px;
  overflow: hidden;
  background: #c9dfe9;
  min-height: 300px;
  display: flex; align-items: center; justify-content: center;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-deco-rect {
  position: absolute;
  border: 2px dashed #b0d5e8;
  border-radius: 12px;
  pointer-events: none;
}
.hero-deco-rect.r1 { width: 160px; height: 120px; top: 40px; left: 40px; }
.hero-deco-rect.r2 { width: 100px; height: 80px; bottom: 30px; left: 120px; }

/* ── MAIN + SIDEBAR GRID ────────────────────────────────────  */
.main-with-sidebar {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0px 0px 0px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
	    z-index: 10;
    position: relative;
}

/* ── NASZA PLACÓWKA ─────────────────────────────────────────  */
.placowka-section { margin-bottom: 50px; }
.placowka-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 50px;
  align-items: start;
}
.placowka-img {  overflow: hidden;}
.placowka-img img { width: 100%;}
.placowka-text p { color: var(--text-mid); line-height: 1.7; margin-bottom: 16px; }
.placowka-text p strong { color: var(--text-mid); }
.cert-badge { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.cert-logo {
  width: 70px; height: 70px;
  border: 2px solid #d0e8f5;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: white; flex-shrink: 0;
}
.cert-logo img, .cert-logo svg { width: 46px; height: 46px; }
.cert-text { font-size: 0.84375em; color: var(--text-mid); line-height: 1.5; }

/* ── SIDEBAR ────────────────────────────────────────────────  */
.sidebar { display: flex; flex-direction: column; }
.sidebar-card {
    background-color: var(--blue-sidebar);
	background-image: url(../img/sygnet_maly.png);
	background-repeat: no-repeat;
	    background-position: 90% 97%;
	
    color: white;
    border-radius: 14px;
    padding: 20px 24px 132px 20px;
    box-shadow: 0 6px 24px rgba(27, 150, 212, .25);
    position: relative;
    overflow: hidden;
}

/* WCAG: <h2> wewnątrz sidebar */
.sidebar-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.375em;
    font-weight: 700;
    margin-bottom: 16px;
    font-family: inherit;
    background: #d9eef8;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 500;
    color: var(--text-mid);
}

h2.godziny {
    background-image: url(../img/time_orange.svg);
    background-repeat: no-repeat;
    background-size: 28px;
    background-position: 15px center;
    padding-left: 55px;
}

h2.lokalizacja {
    background-image: url(../img/pin_orange.svg);
    background-repeat: no-repeat;
    background-size: 25px;
    background-position: 15px center;
    padding-left: 55px;
}

/* WCAG: <dl>/<dt>/<dd> dla par etykieta–wartość godzin */
.hours-list { margin: 0; padding: 0; }
.hours-block {
    margin-bottom: 20px;
    border-bottom: solid 1px #62b9e3;
    padding-bottom: 20px;
}
.hours-label {
    font-size: 1em;
    opacity: 1;
    margin-bottom: 2px;
}
.hours-value { font-size: 1.5em; font-weight: 700; letter-spacing: .5px; line-height: 1.1; }
.hours-value.closed { font-size: 1.125em; }
.hours-sub { font-size: 0.71875em; opacity: .9; margin-top: 2px; }

.sidebar-divider {
    background: #008dd2;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 400;
    font-size: 1.375em;
    margin: 30px 0 20px 0;
}
.location-section { margin-top: 20px; }
.location-title {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15);
  border-radius: 8px; padding: 8px 14px;
  font-weight: 700; font-size: 0.9375em;
  margin-bottom: 14px;
  font-family: inherit; color: white;
}
/* WCAG: <address> — styl czytelny, nie kursywa */
.location-address {
    font-size: 1.0625em;
    font-style: normal;
    line-height: 1.3;
    margin-bottom: 14px;
    padding: 15px 15px;
}
.btn-dojazd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    background: var(--orange);
    color: white;
    font-weight: 700;
    font-size: 0.9375em;
    padding: 10px 40px;
    border-radius: 10px;
    transition: background .2s;
}


.btn-dojazd:hover { background: var(--orange-dark); }
.sidebar-cross-deco {
  position: absolute; bottom: -20px; right: -20px;
  opacity: .12; pointer-events: none;
}

/* ── AKTUALNOŚCI ────────────────────────────────────────────  */
.aktualnosci-section {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 0px 0px;
}
.news-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
  padding: 0;
}
.news-featured li,
.news-small-grid li { list-style: none; }

.news-card-featured {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: white;
  display: flex;
  gap: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  transition: box-shadow .2s;
  height: 100%;
}
.news-card-featured:hover, .karta:hover { box-shadow: 0 4px 20px rgba(27,150,212,.15); }

.karta{
	  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  transition: box-shadow .2s;
  height: 100%;
}

.karta h3{
	font-size: 1.5em;
}

.news-thumb-ph {
  width: 90px; height: 90px;
  background: linear-gradient(135deg, #c0dae8, #a8cfe0);
  border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.news-body { flex: 1; display: flex; flex-direction: column; }

/* WCAG: data — kolor spełnia kontrast 5.74:1 ✓ (--text-muted = #666) */
 .news-date {
    font-size: 0.75em;
    color: #a0b5c0;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.news-title { font-size: 1em;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 7px;
    line-height: 1.3;
    margin-bottom: 10px;
}
.news-excerpt { font-size: 0.9em; color: var(--text-mid); line-height: 1.55; flex: 1; }
.btn-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    min-height: 40px;
    background: var(--blue-primary);
    color: white;
    font-size: 0.75em;
    font-weight: 700;
    padding: 4px 30px;
    border-radius: 6px;
    align-self: flex-start;
    transition: background .2s;
}
.btn-more:hover { background: var(--blue-dark); }

.news-small-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 16px;
  padding: 0;
}
.news-card-small {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  background: white;
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
  transition: box-shadow .2s, transform .2s;
}
.news-card-small:hover { box-shadow: 0 4px 16px rgba(27,150,212,.12); transform: translateY(-2px); }
.news-card-small .news-title {
    font-size: 1em;
    margin-bottom: 8px;
}
.news-card-small .news-excerpt { font-size: 0.9em; }

/* ── WCAG: PAGINACJA ────────────────────────────────────────
   Przyciski zamiast div — klikalne klawiaturą + myszą.
   Rozmiar min 44×44px, wyraźna aktywna kropka.
──────────────────────────────────────────────────────────── */
.pagination {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 8px; padding-right: 4px;
}
.pagination-dot {
  /* WCAG: min 44×44px dla dotyku */
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: background .2s;
  padding: 0;
}
/* Wizualna kropka wewnątrz przycisku przez pseudo-element */
.pagination-dot::after {
  content: '';
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background .2s, transform .2s;
}
.pagination-dot:hover::after { background: var(--blue-primary); transform: scale(1.3); }
.pagination-dot.active::after { background: var(--blue-primary); }
/* WCAG: aktywna strona — nie tylko kolor, ale też wyraźniejszy rozmiar */
.pagination-dot[aria-current="true"]::after {
  background: var(--blue-primary);
  width: 10px; height: 10px;
}
.pagination-link {
  font-size: 1em;
  color: var(--text-muted);
  margin-left: 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 6px;
}
.pagination-link:hover { color: var(--blue-text); background: var(--blue-light); }

/* ── DOCTOR SECTION ─────────────────────────────────────────  */
.doctor-section {
    background: linear-gradient(135deg, rgb(214 238 249) 0%, rgb(211 240 255 / 15%) 100%), url(../img/wodny_maly.png);
    background-position: right bottom;
    background-repeat: no-repeat;
    position: relative;
    margin-top: 200px;
	margin-bottom:250px;
}
.doctor-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 155px 24px;
    display: flex;
    align-items: center;
    gap: 150px;
    position: relative;
}
.doctor-img-wrap { flex-shrink: 0; width: 320px; margin-bottom: -60px; }
.doctor-img-wrap img {
    /* width: 100%; */
    border-radius: 12px 12px 0 0;
    display: block;
    position: absolute;
    top: -130px;
    left: -90px;
}
.doctor-content h2 { font-size: 2.5em; font-weight: 300; line-height: 1.2; color: var(--text-mid); }
.doctor-content h2 strong {
    display: block;
    font-weight: 700;
    font-size: 1.4375em;
}
.doctor-content .btn-orange { margin-top: 28px; }
.doctor-deco-rect { position: absolute; border: 2px dashed #96cfe8; border-radius: 10px; pointer-events: none; }
.doctor-deco-rect.dr1 { width: 100px; height: 80px; right: 80px; top: 40px; opacity: .5; }
.doctor-deco-rect.dr2 { width: 60px; height: 50px; right: 40px; top: 100px; opacity: .4; }

/* ── FOOTER ─────────────────────────────────────────────────  */
footer { background: var(--footer-bg); color: #cdd6de; padding: 50px 0 0; }
.footer-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 0px 40px;
    display: flex;
    grid-template-columns: 280px 1fr 1fr;
    gap: 48px;
       justify-content: space-between;
}
.footer-logo { display: flex; align-items: center; gap: 5px; margin-bottom: 20px; }
.footer-logo-text {
    font-size: 1.125em;
    color: #ffffff;
    line-height: 1.2;
    max-width: 220px;
    margin-left: 0px;
}
/* #a8b8c4 na #2c3e50 = 6.07:1 ✓ */
.footer-logo-text strong { color: white; font-size: 0.875em; }
.footer-contact { font-size: 0.84375em; line-height: 1.9; }
.footer-contact a {
    color: #fff;
    font-size: 1.375em;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.footer-contact a:hover { color: white; }
.footer-phone-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0px;
    height: 20px;
    margin-top: 50px;
}
/* WCAG: --footer-subtle = #a0b5c0 na #2c3e50 = 5.08:1 ✓ */
.footer-phone-label {
    font-size: 1.125em;
    color: #fff;
}
.footer-mail {     font-size: 1.125em;
    color: #fff;}
.footer-mail a {
    color: #fff;
    font-size: 1.125em;
}
.footer-mail a:hover { color: white; }

/* WCAG: h2 wewnątrz footer nav */
.footer-col-title {
    font-size: 1.25em;
    font-weight: 500;
    color: #d3f0ff;
    margin-bottom: 16px;
}
.footer-col ul { padding: 0; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a {
    font-size: 1em;
    color: #fff;
    transition: color .2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 22px;
}
.footer-col ul li a::before { content: '•'; color: var(--blue-primary); font-size: 1em; line-height: 1; }
.footer-col ul li a:hover { color: white; }

.footer-bottom-wrap { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom {
  max-width: 1300px; margin: 0 auto;
  padding: 30px 0px;
  display: flex; justify-content: space-between; gap: 12px;
  /* WCAG: #a0b5c0 na #2c3e50 = 5.08:1 ✓ */
  font-size: 0.8125em; color: var(--footer-subtle);
}
.footer-bottom a { color: var(--footer-subtle); }
.footer-bottom a:hover { color: white; }
.footer-bottom p { margin: 0; }

/* ── WCAG: REDUCED MOTION ───────────────────────────────────
   Wyłącz animacje dla użytkowników, którzy o to proszą.
──────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ── TABLET (max 1024px) ─────────────────────────────────── */
@media (max-width: 1024px) {
  .main-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
  .news-small-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .doctor-img-wrap { width: 260px; }
}

/* ── MOBILE MENU (max 900px) ─────────────────────────────── */
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .topbar-access-label { display: none; }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    padding: 8px 0 16px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height .35s ease, opacity .25s ease;
  }
  .nav-links.is-open {
    max-height: 600px;
    overflow-y: auto;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    padding: 14px 24px;
    border-radius: 0;
    font-size: 1em;
    border-bottom: 1px solid var(--border);
    gap: 12px;
    min-height: 52px;
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links a:hover { background: var(--blue-light); }
  .btn-kontakt {
    background: var(--blue-primary) !important;
    color: white !important;
    border-radius: 0 !important;
    margin-left: 0 !important;
    font-size: 1em;
  }
  .btn-kontakt svg { stroke: white; }

  /* WCAG: fokus wewnątrz menu mobilnego */
  .nav-links a:focus-visible {
    outline: var(--focus-width) solid var(--focus-color);
    outline-offset: -3px;
  }
  .btn-kontakt:focus-visible {
    outline: var(--focus-width) solid white;
    outline-offset: -3px;
  }

  /* ── PODMENU W WIDOKU MOBILNYM — statyczne, sterowane klasą ──
     Tu (a NIE globalnie) nadpisujemy wersję desktopową, by na PC
     podmenu wysuwało się normalnie, a na telefonie działało jak
     akordeon rozwijany kliknięciem (klasa .submenu-open z JS).  */
  .nav-links .sub-menu {
    position: static;
    opacity: 1;
    visibility: hidden;
    transform: none;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: var(--blue-light);
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: max-height .3s ease, visibility 0s linear .3s;
  }
  .nav-links li.submenu-open > .sub-menu {
    visibility: visible;
    max-height: 600px;
    pointer-events: auto;
    transition: max-height .3s ease, visibility 0s;
  }
  .nav-links .sub-menu a {
    padding-left: 44px;
    font-size: 0.95em;
    border-bottom: 1px solid var(--border);
    min-height: 48px;
    background-image: none !important;
  }
  /* bufor desktopowy nad podmenu jest na mobile zbędny */
  .nav-links .menu-item-has-children > .sub-menu::before { display: none; }
  /* na mobile hover/focus NIE otwiera — tylko klasa submenu-open */
  .nav-links li:hover > .sub-menu,
  .nav-links li:focus-within > .sub-menu {
    visibility: hidden;
    max-height: 0;
  }
  .nav-links li.submenu-open:hover > .sub-menu,
  .nav-links li.submenu-open:focus-within > .sub-menu {
    visibility: visible;
    max-height: 600px;
  }
}

/* ── SMALL TABLET (max 768px) ───────────────────────────── */
@media (max-width: 768px) {
  .hero-inner { flex-direction: column; padding: 40px 20px; gap: 28px; }
  .hero-content h1 { font-size: 1.875em; }
  .hero-image { max-width: 100%; width: 100%; }
  .hero-deco-rect { display: none; }

  .placowka-grid { grid-template-columns: 1fr; }
  .placowka-img .img-placeholder { height: 200px; }
  .placowka-img img { height: 200px; }

  .news-featured { grid-template-columns: 1fr; }

  .doctor-inner { flex-direction: column; align-items: center; padding: 40px 20px 0; gap: 30px; text-align: center; }
  .doctor-img-wrap { width: 100%; max-width: 280px; margin-bottom: 0; }
  .doctor-img-wrap .img-placeholder { border-radius: 12px; }
  .doctor-img-wrap img { border-radius: 12px; }
  .doctor-content { padding-bottom: 40px; }
  .doctor-deco-rect { display: none; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .main-with-sidebar { padding: 30px 20px 40px; }
  .aktualnosci-section { padding: 0 20px 40px; }
}

/* ── PHONE (max 480px) ──────────────────────────────────── */
@media (max-width: 480px) {
  .topbar-inner { padding: 0 16px; }
  .topbar-phone .label { display: none; }

  .navbar-inner { padding: 0 16px; height: 64px; }
  :root { --nav-height: 64px; }

  .logo-text { display: none; }
  .logo-icon { width: 44px; height: 44px; }
  .logo-icon svg { width: 44px; height: 44px; }

    .hero-inner {
        padding: 112px 16px;
    }

  .hero-content h1 { font-size: 1.625em; }
  .btn-orange { font-size: 0.875em; padding: 12px 24px; }

  .main-with-sidebar { padding: 24px 16px 32px; }
  .aktualnosci-section { padding: 0 16px 32px; }
  .section-title { font-size: 1.25em; }

  .news-small-grid { grid-template-columns: 1fr; }

  .sidebar-card { padding: 16px; }
  .hours-value { font-size: 1.25em; }

  .doctor-content h2 { font-size: 1.625em; }

	.footer-inner {
        padding: 0 16px 32px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
	
	img.custom-logo {
    width: 60px;
    height: auto;
    margin-right: 5px;
}
	

  .footer-bottom { padding: 12px 16px; }

  .cert-badge { flex-direction: column; align-items: flex-start; }
}

/* ── SINGLE POST / CONTENT AREA ── */
.content-area,
.single-content {
  max-width: 1200px;
  margin: 0 auto;
padding: 180px 30px 60px;
	    min-height: 80vh;
}
.single-article { max-width: 820px; }
.single-header { margin-bottom: 28px; }
.single-title {
  font-size: 1.875em;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin-top: 8px;
}
.single-thumbnail {
  margin-bottom: 28px;
  border-radius: 12px;
  overflow: hidden;
}
.single-thumbnail img { width: 100%; height: auto; }
.single-body { font-size: 1em; line-height: 1.8; color: var(--text-mid); }
.single-body h2 { font-size: 1.375em; font-weight: 700; color: #fff; margin: 28px 0 12px; }
.single-body h3 { font-size: 1.125em; font-weight: 700; margin: 20px 0 10px; }
.single-body p  { margin-bottom: 16px; }
.single-body a  { color: var(--blue-text); text-decoration: underline; }
.single-body ul, .single-body ol { padding-left: 24px; margin-bottom: 16px; }
.single-footer  { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }

/* WP pagination (the_posts_pagination) */
.nav-links .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--text-mid);
  border: 1px solid var(--border);
  transition: background .2s, color .2s;
  font-size: 0.875em;
}
.nav-links .page-numbers:hover { background: var(--blue-light); color: var(--blue-text); }
.nav-links .page-numbers.current {
  background: var(--blue-primary); color: white; border-color: var(--blue-primary);
}