body{
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  background: url('../img/grafiki/bg.jpg') top center #f9f3df;
  background-size: cover;
  font-size: 16px;
  transition: font-size .15s ease;
  padding-bottom: 60px;
}
.kursywa {
  font-family: "Birthstone", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 140%;
}


/* --- zmienne */
:root {
  --color_niebieski: #2c57a8;
  --border_color_niebieski: #6983bc;
  --color_hover: #ffd43b;
  --color_hover2: #183153;
  --standard-text-color: #040023;
  --standard-text-color2: #55505a;
  --standard-text-color3: #6a6142;
  /*--kolor-jasny-border: #d2c69d;*/
  --kolor-jasny-border: #bab3a0;
}

:root{
  --tile-bg: #F6C542;         /* żółty kafelka */
  --tile-bg-hover: #f8cf63;   /* jaśniejszy na hover */
  --ink: #0f2b46;             /* granatowe ikony/tekst */
  --radius: 20px;
  --shadow: 0 8px 20px rgba(15,43,70,.15);
  --shadow-hover: 0 12px 28px rgba(15,43,70,.25);
}

/* COOKIES ---------------------------------------------------------------------------------------------------------- */
.cookie-bar{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: #101114;
  color: #fff;
  z-index: 9999;
  box-shadow: 0 -6px 20px rgba(0,0,0,.25);
  transform: translateY(100%);
  transition: transform .35s ease;
  font: 400 15px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}
.cookie-bar.is-visible{ transform: translateY(0); }

.cookie-bar__container{
  max-width: 1200px;
  margin: 0 auto;
  padding: .9rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.cookie-bar__text{
  margin: 0;
  opacity: .95;
}
.cookie-bar__link{
  color: #7db2ff; text-decoration: none; font-weight: bolder;
}
.cookie-bar__btn{
  margin-left: auto;
  background: #2ea44f; color: #fff;
  border: 0; border-radius: .45rem;
  padding: .55rem 1rem;
  font-weight: 600; cursor: pointer;
  transition: transform .08s ease, opacity .2s ease, background .2s ease;
  white-space: nowrap;
}
.cookie-bar__btn:hover{ background:#279445; }
.cookie-bar__btn:active{ transform: translateY(1px); }

/* Mobile: złam układ w kolumnę */
@media (max-width: 640px){
  .cookie-bar__container{ flex-direction: column; align-items: stretch; }
  .cookie-bar__btn{ margin-left: 0; width: 100%; }
}

/* WCAG ------------------------------------------------------------------------------------------------------------- */
/* Kontener menu po prawej, przyklejony do ekranu */
.wcag-menu-z-prawej{
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 1000;
}

/* pionowa kolumna przycisków */
.wcag-menu-z-prawej ul{
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* przycisk/ikona */
.wcag-menu-z-prawej a{
  position: relative;                 /* KLUCZ: kotwica dla dymka */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: #0d6efd;
  color: #fff;
  font-size: 22px;
  text-decoration: none;
  transition: transform .25s ease, background .25s ease;
}

.wcag-menu-z-prawej a:hover{
  background: #0b5ed7;
  transform: translateX(-4px);        /* lekkie przesunięcie ikony/przycisku w lewo */
}

/* --- DYMek: desktop (po lewej stronie przycisku) --- */
.wcag-menu-z-prawej a::after{
  content: attr(data-dymek);
  position: absolute;
  right: 100%;                         /* doklej do lewej strony kotwicy */
  top: 50%;
  transform: translate(-10px, -50%);   /* odsunięcie i centrowanie w pionie */
  background: rgba(0,0,0,.88);
  color: #fff;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  z-index: 1;                          /* nad przyciskiem */
}

/* mała strzałka przy dymku */
.wcag-menu-z-prawej a::before{
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translate(0, -50%);
  border: 6px solid transparent;
  border-right-color: rgba(0,0,0,.88); /* trójkąt w stronę przycisku */
  opacity: 0;
  transition: opacity .18s ease;
}

/* pokaż dymek na hover i focus */
.wcag-menu-z-prawej a:hover::after,
.wcag-menu-z-prawej a:focus-visible::after{
  opacity: 1;
  transform: translate(-14px, -50%);   /* delikatne wysunięcie */
}
.wcag-menu-z-prawej a:hover::before,
.wcag-menu-z-prawej a:focus-visible::before{
  opacity: 1;
}

/* --- WARIANT MOBILNY: pasek na dole, dymek NAD przyciskiem --- */
@media (max-width: 768px){
  .wcag-menu-z-prawej{
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    background: #ffffff;
    padding: 8px 0;
    box-shadow: 0 -6px 20px rgba(0,0,0,.08);
  }

  .wcag-menu-z-prawej ul{
    flex-direction: row;
    justify-content: center;
    gap: 14px;
  }

  .wcag-menu-z-prawej a{
    width: 50px;
    height: 50px;
  }

  .wcag-menu-z-prawej a:hover{
    transform: translateY(-4px);       /* na mobile animacja do góry */
  }

  /* dymek nad przyciskiem, wycentrowany */
  .wcag-menu-z-prawej a::after{
    right: auto;
    left: 50%;
    top: auto;
    bottom: 100%;
    transform: translate(-50%, -10px);
  }

  .wcag-menu-z-prawej a::before{
    right: auto;
    left: 50%;
    top: auto;
    bottom: 100%;
    transform: translate(-50%, 0);
    border: 6px solid transparent;
    border-top-color: rgba(0,0,0,.88); /* strzałka w dół */
  }

  .wcag-menu-z-prawej a:hover::after,
  .wcag-menu-z-prawej a:focus-visible::after{
    transform: translate(-50%, -14px);
  }
}

/* Preferencja: redukcja ruchu */
@media (prefers-reduced-motion: reduce){
  .wcag-menu-z-prawej a,
  .wcag-menu-z-prawej a::after{
    transition: none;
  }
}

/* ---- WYSZUKIWARKA -------------------------------------------------------------------------------------------------*/
/* Ekranowe okno wyszukiwarki (domyślnie schowane nad ekranem) */
#searchOverlay{
  position: fixed;
  inset: 0;                       /* top/right/bottom/left: 0 */
  background: rgba(10, 23, 55, 0.92);
  backdrop-filter: blur(2px);
  z-index: 2000;

  display: grid;
  place-items: center;

  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s ease, opacity .35s ease;
}

/* stan otwarty */
#searchOverlay.is-open{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* pudełko wyszukiwarki w centrum */
#searchOverlay .search-box{
  width: min(800px, 92vw);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 22px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}

#searchOverlay .search-box input{
  width: 100%;
  font-size: 18px;
  padding: 14px 16px;
  border: 2px solid #e6e8ef;
  border-radius: 12px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
#searchOverlay .search-box input:focus{
  border-color: var(--color_niebieski);
  box-shadow: 0 0 0 4px rgba(13,110,253,.15);
}

/* przycisk szukania */
#searchOverlay .btn-search{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  background: var(--color_niebieski);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
#searchOverlay .btn-search:hover{
  background: var(--color_niebieski);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(13,110,253,.25);
}

/* przycisk zamykania (prawy górny róg) */
#searchOverlay .search-close{
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
#searchOverlay .search-close:hover{
  background: rgba(255,255,255,.2);
  transform: scale(1.05);
}

/* ukryta etykieta dla dostępności */
.sr-only{
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* mobile */
@media (max-width: 600px){
  #searchOverlay .search-box{
    grid-template-columns: 1fr;
  }
  #searchOverlay .btn-search{
    justify-content: center;
  }
}

/* ---- WCAG panel opcji ----------------------------------------------------------------------------------------------*/
/* Overlay (domyślnie schowany nad ekranem) */
/* OVERLAY – pełnoekranowy, klikalny tylko gdy otwarty */
#wcagPanelOverlay{
  position: fixed !important;
  inset: 0 !important;
  z-index: 2200 !important;
  background: rgba(10,23,55,.55) !important;
  backdrop-filter: blur(2px);
  display: none;                 /* domyślnie ukryty */
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
#wcagPanelOverlay.is-open{
  display: block !important;     /* pokaż */
  opacity: 1;
  pointer-events: auto;
}

/* PANEL – zawsze idealnie na środku ekranu */
#wcagPanelOverlay .wcag-panel{
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;

  margin: 0 !important;
  float: none !important;        /* gdyby coś go „ściągało” */
  width: min(720px, 95vw) !important;
  max-height: 90dvh !important;
  overflow: auto !important;
  border-radius: 12px;
  background: #0f1520;           /* dostosuj do motywu */
  color: #e9edf3;
  z-index: 2201;                 /* nad tłem overlayu */
}


/* Panel w centrum */
.wcag-panel{
  position: relative;
  width: min(920px, 94vw);
  background: var(--kolor-jasny-border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.wcag-panel h2{
  margin: 0 0 14px;
  font-size: 22px;
}

/* Grid kafelków */
.wcag-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
@media (max-width: 720px){
  .wcag-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* Kafelek */
.wcag-tile{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;

  width: 100%;
  padding: 18px 12px;
  background: var(--color_hover);
  color: #0d2140;
  border: 0;
  border-radius: 14px;
  cursor: pointer;

  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.wcag-tile:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  background: #eef3ff;
}
.wcag-ico{
  width: 42px; height: 42px;
  display: grid; place-items: center;
  color: #0d6efd;
}
.wcag-ico svg{ width: 100%; height: 100%; display: block; }
.wcag-label{ font-weight: 700; text-align: center; }

/* Zamknij (X) */
.wcag-close{
  position: absolute;
  top: 14px; right: 14px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: transparent;
  color: #334;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.wcag-close:hover{
  background: rgba(0,0,0,.06);
  transform: scale(1.05);
}

/* dostępność */
@media (prefers-reduced-motion: reduce){
  #wcagPanelOverlay, .wcag-tile{ transition: none; }
}
.wcag-tile.active {
  border: 4px solid var(--color_niebieski);
  background: #eaf1ff;
}
#wcagPanelTitle{
  color: var(--standard-text-color);
}

/* -- okno wcag, zmiana opcji ---------------------------------------------------------------------------------------- */
#wcagPanelOverlay { display: none; }
#wcagPanelOverlay.is-open { display: block; }
body.wcag-panel-open { overflow: hidden; } /* opcjonalnie: blokada scrolla tła */

/* Aktywna opcja w panelu */
.wcag-tile.is-active {
  outline: 3px solid #2b6fff;
  outline-offset: 2px;
  border-radius: 10px; /* opcjonalnie, ładniej */
  background: #ccc;
}

/* 1. Kontrast -> robi JS przez podmianę href arkusza; tu tylko nic */

/* 2. Skala szarości (cała strona) */
html.wcag-grayscale {
  filter: grayscale(100%) !important;
}

/* 3. Maska czytania – overlay */
#wcagReadingMask {
  position: fixed;
  inset: 0;
  z-index: 2147483640;         /* nad wszystkim, ale pointer-events: none */
  pointer-events: none;
  display: none;               /* pokazywana, gdy włączona */
  /* regulacja wysokości okna czytania */
  --maskHeight: 160px;         /* możesz zmienić np. na 220px */
  --maskY: 50vh;               /* JS aktualizuje bieżącą pozycję kursora */
  background:
          linear-gradient(
                  to bottom,
                  rgba(0,0,0,.6) 0,
                  rgba(0,0,0,.6) calc(var(--maskY) - var(--maskHeight)/2),
                  rgba(0,0,0,0)  calc(var(--maskY) - var(--maskHeight)/2),
                  rgba(0,0,0,0)  calc(var(--maskY) + var(--maskHeight)/2),
                  rgba(0,0,0,.6) calc(var(--maskY) + var(--maskHeight)/2),
                  rgba(0,0,0,.6) 100%
          );
}

/* 4. Podświetl linki – wyraźnie */
.wcag-highlight-links a {
  text-decoration: underline !important;
  outline: 2px solid #ffbf00 !important;
  outline-offset: 2px !important;
  background: #fff4bf !important;
  box-shadow: 0 0 0 2px #fff4bf inset !important;
}

/* 5. Ukryj obrazy (IMG + tła CSS) */
.wcag-hide-images img { visibility: hidden !important; } /* zamiast display:none – nie psuje layoutu */
.wcag-hide-images * ,
.wcag-hide-images *::before,
.wcag-hide-images *::after {
  background-image: none !important;
}

/* 6. Wyłącz animacje / przejścia / smooth scroll */
html.wcag-disable-animations,
html.wcag-disable-animations * ,
html.wcag-disable-animations *::before,
html.wcag-disable-animations *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
/* Celujemy tylko w linki oznaczone atrybutem */
html a[data-wcag-hl]{
  position: relative;
  z-index: 0;
  /* podwójna opaska dookoła (nie tnie jej overflow jak outline) */
  box-shadow:
          0 0 0 3px #ffffff !important, /* wewnętrzny biały ring */
0 0 0 6px #0066ff !important;  /* zewnętrzny niebieski ring */
  text-decoration: underline !important;
  /* invert + wzmocnienie kontrastu, żeby „odbić” od tła menu */
  filter: invert(1) hue-rotate(180deg) contrast(1.35) saturate(1.2) !important;
  /* zachowanie czytelności na złożonych tłach */
  -webkit-text-stroke: 0.6px #000; /* gdzie wspierane */
}

/* wszystkie dzieci linku dziedziczą „odwrócone” kolory – nie pozwól, by motyw je nadpisał */
html a[data-wcag-hl] *,
html a[data-wcag-hl] *::before,
html a[data-wcag-hl] *::after{
  color: inherit !important;
  text-decoration: inherit !important;
  box-shadow: none !important;
}



/* ---------------------------------------------------------------------------------------------------------- buttony */

:root{
  --btn-bg: #4b6cb7;           /* niebieski */
  --btn-bg-hover: #f8cf63;     /* jaśniejszy na hover */
  --btn-text: #fff;
  --btn-radius: 12px;
  --btn-shadow: 0 6px 16px rgba(0,0,0,.15);
}

.btn-read{
  display:inline-flex;
  align-items:center;
  gap:16px;
  padding:7px 17px 7px 17px;
  background:var(--btn-bg);
  color:var(--btn-text);
  border-radius:var(--btn-radius);
  text-decoration:none;
  font:600 90%/1.1 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  box-shadow:var(--btn-shadow);
  transition: background-color .25s ease, transform .2s ease, box-shadow .2s ease;
}

.btn-read__icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding-left:10px;                 /* odstęp za kreską */
  margin-left:2px;
  border-left:1px solid rgba(255,255,255,.45);  /* pionowa kreska */
  height:1.7em;                      /* dopasowanie wysokości kreski do tekstu */
}

.btn-read svg{
  display:block;
  transition: transform .25s ease;
}

/* Hover / focus */
.btn-read:hover{
  background:var(--btn-bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
}
.btn-read:hover svg{ transform: translateX(5px); }

.btn-read:focus-visible{
  outline:3px solid rgba(255,255,255,.9);
  outline-offset:2px;
}

/* Klik */
.btn-read:active{
  transform: translateY(0);
  box-shadow: var(--btn-shadow);
}

/* Preferencje: redukcja ruchu */
@media (prefers-reduced-motion: reduce){
  .btn-read, .btn-read svg{
    transition: none;
  }
}

/* ------------------------------------------------------------------------------------------------- obrazy i zdjęcia */
.dodaj-dorber-do-img{
  border: 2px solid #e2dbb8 !important;
  border-radius: 8px !important;
}
.napis-specjalny{
  display: block;
  position: absolute;
  left: 20px;
  top:-20px;
}

.naglowek{
  padding: 20px 0;
  margin: 0 0 30px 0;
}
  .naglowek ul{
    list-style-type: none;
    margin: 0;
    padding: 0;
  }
    .naglowek li{
      display: inline-block;
      margin: 0 30px 0 0;
      padding: 0;
      color: var(--color_niebieski);
      font-size: 85%;
      font-weight: bold;
    }
      .naglowek li img{
        width: 20px;
        margin-right: 8px;
      }
      .naglowek li a{
        text-decoration: none;
      }
        .naglowek li a:hover, .naglowek li a:focus{
          color:#040023;

        }
@media (max-width: 992px){
  .naglowek li{
    display: block;
    margin: 0 0 10px;
  }
}

.panel-z-logo{
  border-top: 10px solid var(--color_niebieski);
  border-bottom: 10px solid var(--color_niebieski);
  padding: 20px 0;
  background: url('../img/grafiki/bg-logo.jpg') center center;
  background-size: cover;
  min-height: 230px;
}

.logo-szkoly{
  position: relative;
}

/* domyślnie przy lewej krawędzi kontenera */
.logo-szkoly img {
  position: absolute;
  max-width: 300px;
  top: -150px;
  left: 0;
  z-index: 10;
}

/* Ekrany < 992px → środek */
@media (max-width: 991.98px) {
  .logo-szkoly img {
    left: 50%;
    transform: translateX(-50%);
  }
}
    .cytat-powitania{
      color: #fff;
      max-width: 300px;
      margin-right: 36% !important;
    }
      .cytat-powitania cite{
        font-size: 90%;
      }
        .cytat-powitania p{
          font-weight: bold;
          font-size: 80%;
        }
/* < md (poniżej 768 px) */
@media (max-width: 992px){
  .cytat-powitania{
    display: none;
  }
}


/* --- PRZYCISK MENU włącz / wyłącz--- */
.menu-toggle {
  display: none !important;

  text-align: center;
  vertical-align: middle;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #0d6efd;
  color: #fff;
  text-decoration: none;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(13,110,253,.25);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.menu-toggle .bi {
  display: block;
  font-size: 230%;
  line-height: 1;
  margin-top: 10px;
}

.menu-toggle:hover {
  background: #0b5ed7;
  transform: translateY(-2px);
}
.menu-toggle:active {
  transform: translateY(0);
}

/* --- TYLKO NA MAŁYCH EKRANACH (<992px) --- */
@media (max-width: 991.98px) {
  .menu-toggle {
    display: block !important;
    margin: 30px auto 42px !important;
  }
}

.menu-glowne{
  display: block;
  background: var(--color_niebieski);
  border-radius: 10px;
  position: relative;
  padding-top: 10px;
  padding-bottom: 5px;
  margin-top: 50px;
}
@media (max-width: 991.98px) {
  .menu-list {
    display: none;
  }
  .menu-glowne{
    margin-top: 70px;
  }
}
  .menu-glowne .napis-specjalny{
    height: 50px;
  }
  .menu-glowne ul{
    list-style-type: none;
    padding: 20px 0;
    margin: 10px 0 20px;
  }
  .menu-glowne li{
    border-bottom: 1px dashed var(--border_color_niebieski);
    margin: 2px 10px;
    padding: 2px 14px;
  }
.menu-glowne a {
  display: block;
  color: #fff;
  padding: 4px 0;
  text-decoration: none;
  font-size: 85%;
  font-weight: bold;
  transition: color 0.3s ease, transform 0.3s ease; /* animacja koloru i przesunięcia */
}

.menu-glowne a:hover {
  color: var(--color_hover);
  transform: translateX(6px); /* przesunięcie w prawo */
}

.menu-glowne li.sub{
    padding-left: 20px;
  }
    .menu-glowne li.sub a:before{
      content: ' - ';
      color: var(--color_hover);
    }
    .menu-glowne li.sub a{
      font-weight: normal;
    }

/* panele boczne */
.nowe-galerie{
  background: #ffe17c;
  display: block;
  border-radius: 10px;
  position: relative;
  padding-top: 10px;
  margin-top: 50px;
}
@media (max-width: 991.98px) {
  .nowe-galerie {
    display: none;
  }
}
  .nowe-galerie .napis-specjalny{
    height: 50px;
  }
  .nowe-galerie ul{
    list-style-type: none;
    margin: 30px auto;
    padding: 0 0 20px;
  }
    .nowe-galerie ul li{
      display: block;
      text-align: center;
      margin: 0 auto 50px;
      padding: 0 20px;
    }
    .nowe-galerie ul li img{
      border-radius: 6px;
      border:3px solid #f4e7b8;
      height: 100px;
      max-width: 100%;
    }
    .nowe-galerie .nowa-galeria-meta{
      margin: 10px auto;
      font-size: 80%;
      color: var(--standard-text-color);
    }
@media (max-width: 992px){
  .nowe-galerie ul li img{
    height: 200px;
  }
}

.kalendarz{
  /*background: var(--color_hover2);*/
  background: #040023;
  display: block;
  border-radius: 10px;
  position: relative;
  padding: 50px 30px 30px;
  margin-top: 50px;
}
@media (max-width: 991.98px) {
  .kalendarz {
    display: none;
  }
}
.kalendarz .napis-specjalny{
  height: 50px;
}
  .kalendarz-kontener{
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: 85%;
  }
  .kalendarz p{
    margin-bottom: 17px;
    line-height: 1.6em;
  }
    .kalendarz p strong{
      color: var(--color_hover);
    }
    .kalendarz-kontener i{
      color: #7896ce;
    }

.boczne-banery{
  display: block;
  position: relative;
  margin-top: 50px;
}
@media (max-width: 992px){
  .boczne-banery{
    display: none;
  }
}

.baner {
  display: flex;
  align-items: center;
  gap: 18px; /* odstęp między logo a tekstem */

  background: #f3e7b7;
  padding: 18px 22px;
  border-radius: 12px;

  color: var(--color_niebieski);
  font-size: 80%;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;

  box-shadow: 0 4px 14px rgba(0,0,0,.1);
  transition: transform .25s ease, box-shadow .25s ease;
  margin-bottom: 20px;
}

.baner:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

/* stała ramka na logo */
.baner .logo-wrapper {
  width: 80px;   /* zawsze taka sama szerokość */
  height: 60px;   /* zawsze 80px wysokości */
  display: flex;
  align-items: start;
  justify-content: start;
  flex-shrink: 0;
}

/* obrazek w środku ramki */
.baner img {
  max-height: 60px;   /* dopasowanie wysokości */
  max-width: 100%;    /* nie wychodzi poza ramkę */
  object-fit: contain; /* proporcje zachowane */
  display: block;
  margin: 0 auto;
}



/* -------------------------------------------------------------------------------------------------- siatka kafelków */
.wrapper-ikon{
  margin-top: 50px;
}
.tile-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 18px;
}

/* kafelek */
.tile{
  list-style: none;
}
.tile > a{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  color: var(--ink);
  background: var(--tile-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);

  min-height: 150px;          /* wysokość kafelka */
  padding: 28px 16px;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
  position: relative;
  isolation: isolate;
}
.tile > a:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  background: var(--tile-bg-hover);
}
.tile > a:focus-visible{
  outline: 3px solid #244e80;
  outline-offset: 3px;
}

/* ikona */
.tile__icon{
  width: 46px;
  height: 46px;
  color: var(--ink);
  margin-bottom: 14px;
}
.tile__icon svg{
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

/* tytuł */
.tile__title{
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
  font-size: 80%;
}

/* opcjonalnie – warianty rozmiaru */
.tile--lg > a{ min-height: 180px; }
.tile--sm > a{ min-height: 140px; }

/* ciemny tryb – jeśli przeglądarka ma preferencję */
/*
@media (prefers-color-scheme: dark){
  body{ background:#0f172a; color:#e5e7eb; }
  :root{
    --tile-bg:#e0b32f;
    --tile-bg-hover:#f0c954;
    --ink:#0b1e34;
    --shadow: 0 8px 20px rgba(0,0,0,.35);
    --shadow-hover: 0 12px 28px rgba(0,0,0,.5);
  }
  .tile > a{ color:#0b1e34; }
}

 */

/* ------------------------------------------------------------------------------------------------------------ START */
.news-start{
  position: relative;
  margin-top: 50px;
}
  .news-start .napis-specjalny{
    height: 50px;
  }
  .news{
    margin: 0 0 50px;
  }
    .news a{
      text-decoration: none;
    }
    .news-img{
      display: block;
      width: 100%;
      height: 350px;
      background-size: cover !important;
      background-position: center top;
      border-radius: 10px;
    }
    .news-content{
      margin-top: -40px;
      margin-left: 5%;
      background: #f8efd1;
      border-radius: 10px;
      padding: 30px;
      width: 90%;
      color: var(--standard-text-color);
    }
      .news-content h2{
        font-weight: bold;
        color: var(--color_niebieski);
        font-size: 130%;
        line-height: 1.2em;
        margin: 0 0 15px;
      }
        .news-content h2 a{
          color: var(--color_niebieski);
        }
          .news-content h2 a:hover{
            color: var(--color_hover2);
          }
      .news-content p{
        font-size: 90%;
      }
      .news-content .news-meta{
        list-style-type: none;
        margin:0 0 14px;
        padding: 0;
      }
        .news-content .news-meta li{
          display: inline-block;
          margin: 0;
          padding: 4px 6px;
          border-radius: 5px;
          font-size: 80%;
          font-weight: bolder;
        }
        .news-content .news-meta li:first-child{
          background: var(--color_niebieski);
          color: var(--color_hover);
        }
      .news-content .btn-read{
        float: right;
      }
/* tylko obraz w news-img */
.news-img{
  /* masz już w HTML background-image */
  background-size: cover;          /* wypełnia kontener */
  background-repeat: no-repeat;
  background-position: 50% 55%;    /* start: lekko w dół */
  display: block;                  /* zostaw jak masz – bez wpływu na układ */
  transition: background-position .6s ease;  /* płynne przesunięcie */
  will-change: background-position;
}

/* efekt najechania: delikatny „pan” w górę (możesz zmienić na lewo/prawo) */
.news-img:hover{
  background-position: 30% 45%;
}

/* dostępność: bez animacji dla osób z redukcją ruchu */
@media (prefers-reduced-motion: reduce){
  .news-img{ transition: none; }
}




.start-patron{
  display: block;
  width:100%;
  border-radius: 10px;
  background: #f8efd1;
  padding: 30px;
  margin: 0 0 30px;
  position: relative;
}
  .start-patron .napis-specjalny{
    height: 50px;
    max-width: 100%;
    position: static;
    margin-bottom: 10px;
  }
  .start-patron p{
    color: var(--standard-text-color2);
    font-size: 90%;
  }
  .start-patron .btn-read{
    margin-top: 10px;
  }


/* ----------------------------------------------------------------------------------------------------------- stopka */
.stopka{

}
  .stopka-linki{
    display: block;
    width:100%;
    border-radius: 10px;
    background: #f8efd1;
    padding: 30px;
    margin: 0 0 30px;
    position: relative;
  }
    .stopka-linki p{
      color: var(--standard-text-color3);
      font-size: 85%;
    }
    .stopka-linki ul{
      margin: 0;
      padding: 0;
      list-style-type: none;
    }
      .stopka-linki ul li{
        display: block;
        border-bottom: 1px dashed var(--kolor-jasny-border);
      }
      .stopka-linki li a{
        display: block;
        font-size: 80%;
        padding: 4px;
        text-decoration: none;
        color: var(--standard-text-color);
        font-weight: 600;
      }
        .stopka-linki li a:hover{
          color: var(--color_niebieski);
        }
        .zs-stopka a{
          text-decoration: none;
          color: var(--standard-text-color);
          font-weight: 600;
        }
  .cpr{
    color: var(--standard-text-color3);
    font-size: 85%;
    text-align: center;
  }
    .cpr img{
      height: 16px;
      margin-left: 4px;
      vertical-align: middle;
    }

#toTopBtn{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:end;

  background:transparent;
  border:none;
  cursor:pointer;

  color: var(--color_niebieski);
  font-weight:700;
  font-size:80%;

  transition: transform .2s ease, opacity .2s ease;
}

#toTopBtn:hover{
  transform: translateY(-4px);
  color:var(--color_hover2);
}

#toTopBtn:active{
  transform: translateY(0);
}

#toTopBtn svg{
  display:block;
  margin-bottom:6px;
}


/* ---- Strona, artykuł */
.strona{
  padding-top: 50px;
}
.tutaj{
  display: block;
  margin: 0 0 14px;
  padding: 0;
  list-style-type: none;
}
  .tutaj li{
    display: inline-block;
    margin: 0 10px 0 0;
    padding: 0;
    font-size: 85%;
  }
    .tutaj li a:after{
      content: '/';
      padding-left: 10px;
    }
    .tutaj li a{
      display: block;
      font-weight: bolder;
      color: var(--color_niebieski);
      text-decoration: none;
    }
      .tutaj li a:hover{
        color: var(--color_hover2);
      }
.pagination{
  margin-bottom: 40px;
}
  .pagination .page-item:disabled{
    background: transparent !important;
  }
    .pagination li a{
      background: #e8d9a7;
      color: #3b63ae;
      border:1px solid #f8efd1;
      font-weight: bolder;
      font-size: 90%;
    }
    .pagination li.active a{
      background: #3b63ae !important;
      color: #e8d9a7 !important;
    }
.news-pop-nast-napis{
  display: inline-block;
  background: #ffe17c;
  color: var(--standard-text-color);
  padding: 4px 8px;
  font-size: 85%;
  font-weight: bolder;
  border-radius: 4px;
  margin: 0 0 20px;
}

.art{
  background: #f8efd2;
  display: block;
  width: 100%;
  border-radius: 10px;
  padding: 30px;
  color: #050124;
}

.art h1, .art h2, .art h3{
  font-weight: bolder;
  line-height: 1.3em;
  margin: 10px 0 20px;
  /*color: var(--color_hover2);*/
  color: var(--color_niebieski);
}
  .art h1{
    font-size: 210%;
  }
  .art h2{
    font-size: 170%;
  }
  .art h3{
    font-size: 140%;
  }
.art p{
  font-size: 90%;
  line-height: 1.6em;
  margin: 10px 0 14px;
}
/* Stylizacja list w artykule */
.art ul,
.art ol {
  margin: 1em 0 1.5em 2em;   /* odstępy i wcięcie od lewej */
  padding: 0;
  line-height: 1.6;
}

/* elementy list */
.art ul li,
.art ol li {
  margin-bottom: 0.4em;      /* odstęp między punktami */
}

/* listy punktowane */
.art ul {
  list-style-type: disc;     /* klasyczne kropki */
}

.art ul ul {
  list-style-type: circle;   /* zagnieżdżona lista: kółeczka */
  margin-top: 0.3em;
}

.art ul ul ul {
  list-style-type: square;   /* jeszcze głębiej: kwadraty */
}

/* listy numerowane */
.art ol {
  list-style-type: decimal;  /* liczby */
}

.art ol ol {
  list-style-type: lower-alpha; /* kolejne zagnieżdżenie: a, b, c */
  margin-top: 0.3em;
}

.art ol ol ol {
  list-style-type: lower-roman; /* jeszcze głębiej: i, ii, iii */
}

/* opcjonalnie: wyróżnienie punktorów */
.art ul li::marker {
  color: var(--color_niebieski);            /* niebieski punktor */
  font-size: 1.1em;
}

.art ol li::marker {
  color: var(--color_niebieski);            /* zielony numer */
  font-weight: bold;
}

.art a{
  font-weight: bolder;
  color:var(--color_niebieski);
  text-decoration: none;
}
  .art a:hover{
    color: var(--color_hover2);
  }
.art blockquote {
  margin: 2em 0;                       /* odstępy góra/dół */
  padding: 1.2em 1.5em;
  background: var(--color_hover);                 /* jasne tło (lekko odróżnione) */
  border-left: 6px solid var(--color_niebieski);      /* niebieski akcent z lewej */
  border-radius: 6px;
  font-style: italic;
  line-height: 1.6;
  position: relative;
  quotes: "„" "”" "«" "»";
}

/* Dodatkowe ozdobne cudzysłowy */
.art blockquote::before {
  content: open-quote;
  font-size: 2.5em;
  line-height: 0;
  color: var(--color_niebieski);
  position: absolute;
  top: 10px;
  left: 10px;
}

.art blockquote::after {
  content: close-quote;
  font-size: 2.5em;
  line-height: 0;
  color: var(--color_niebieski);
  position: absolute;
  bottom: -10px;
  right: 12px;
}

/* Jeżeli w środku damy autora */
.art blockquote footer {
  margin-top: 0.8em;
  font-size: 0.9em;
  font-style: normal;
  text-align: right;
  color: #666;
}
.strona-wstep{
  border-radius: 10px;
  font-weight: bolder;
  border-top: 1px solid #cdbf8a;
  border-bottom: 1px solid #cdbf8a;
  background: #e6d7a3;
  padding: 14px;
  margin-left: -14px !important;
  margin-right: -14px !important;
}
.lista-galerii-zdjec{
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  list-style-type: none !important;
}
  .lista-galerii-zdjec li{
    margin: 0 0 30px !important;
    padding: 10px !important;
    overflow: hidden;
    border-bottom: 1px solid #c7bc97;
    background: #efe0a8;
    border-radius: 6px;
  }
  .lista-galerii-zdjec li img{
    width: 100px;
    border-radius: 8px;
    border: 3px solid #ffe17c;
    float:left;
    clear: left;
    margin: 0 10px 20px;
  }
  .galeria-meta{
    display: block;
    font-size: 85%;
    color: var(--standard-text-color);
    font-weight: normal;
  }
  .galeria-opis{

    display: block;
    font-size: 85%;
    color: var(--standard-text-color);
    font-weight: normal;
    margin: 2px 0;
  }

/* ---- sterownie klawiaturą */
/* Pasek nawigacji klawiaturowej – domyślnie ukryty */
.klawiatura-wcag{
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, -120%);
  z-index: 3000;
  display: none;                     /* ukryty, JS pokaże .is-visible */

  background: rgba(15, 21, 32, .95);
  color: #fff;
  padding: 10px 14px;
  border: 2px solid #2a3440;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,.35);

  transition: transform .25s ease;
}
.klawiatura-wcag.is-visible{
  display: block;
  transform: translate(-50%, 8px);
}

/* Lista pozioma */
.klawiatura-wcag ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.klawiatura-wcag li{ margin: 0; padding: 0; }

/* Linki wyglądające jak „pigułki” */
.klawiatura-wcag a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 9999px;
  text-decoration: none;
  color: #f2f5f7;
  background: #1b2430;
  border: 2px solid transparent;
  line-height: 1.2;
  white-space: nowrap;
}
.klawiatura-wcag a:hover{
  background: #243142;
}
.klawiatura-wcag a:focus,
.klawiatura-wcag a:focus-visible{
  outline: none;
  border-color: #00ff6a;
  box-shadow: 0 0 0 3px rgba(0,255,106,.25);
}

/* Ikony */
.klawiatura-wcag .wcag-ikona{
  width: 18px;
  height: 18px;
  display: inline-block;
}

/* Preferencje ruchu: mniej animacji */
@media (prefers-reduced-motion: reduce){
  .klawiatura-wcag{ transition: none; }
}


.strona table tbody td,
.strona table th{
  border-color: #bcaa6a !important;
}