/* ---- teksty / fonty */
.fs-12px{
  font-size: 12px !important;
}

.tutaj{

}
  .tutaj a{
    color: #c6ffdf !important;
    font-weight: 550 !important;
  }
  .tutaj a:hover{
    color: #df8100 !important;
  }

/* ---- aktualności */
.news-img{
  width: 300px !important;
}

.logo-naglowek-bip{
  padding: 15px !important;
  background: none;
}
.logo-naglowek-bip img{
  height: 32px;
}

.obraz-newsa {
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  max-height: 220px !important;
}

.obraz-newsa img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.miniaturka-galerii {
  position: relative;
  display: block;
  width: 100%;
  height: 350px;
  max-height: 350px;
  overflow: hidden;
  background-color: #f3f4f6;
}

.miniaturka-galerii img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

/* Delikatne powiększenie zdjęcia po najechaniu */
.miniaturka-galerii:hover img {
  transform: scale(1.04);
}

/* Widoczny fokus dla obsługi klawiaturą */
.miniaturka-galerii:focus-visible {
  outline: 3px solid #005ea8;
  outline-offset: 3px;
}

.miniaturka-galerii:focus-visible img {
  transform: scale(1.04);
}

/* Ograniczenie animacji zgodnie z preferencjami użytkownika */
@media (prefers-reduced-motion: reduce) {
  .miniaturka-galerii img {
    transition: none;
  }

  .miniaturka-galerii:hover img,
  .miniaturka-galerii:focus-visible img {
    transform: none;
  }
}

.art{

}
.art-wstep{
  font-weight: bold;
  border-top: 1px solid #508c6a;
  border-bottom: 1px solid #508c6a;
  border-radius: 14px;
  padding: 10px;
  margin-left: -10px;
  margin-top: 14px;
  margin-bottom: 14px;
  background: #defaea;
  line-height: 1.40em;
}

/* -----------------------------------------------------------------
| Dodatkowe style dla podglądu tekstów
----------------------------------------------------------------- */

.podglad{

}

.podglad img{
  max-width: 100% !important;
}

/* tytuł artykułu */
#preview-title{
  font-weight: 650 !important;
  margin: 30px 0 20px 0 !important;
}
/* kontener podglądu z tekstem */
.podglad{

}
/* wstęp */
.ia-article-preview__intro{
  font-weight: bold !important;
  color: #222222 !important;
  line-height: 1.4em !important;
}

.dark .ia-article-preview__intro{
  color: gold !important;
}

/* Nagówki w tekście / nie dotyczy tytułu tekstu */
.podglad h1,
.podglad h2,
.podglad h3,
.podglad h1{
  font-weight: 650 !important;
  margin: 30px 0 20px 0 !important;
}

.podglad h1{
  font-size: 220%;
}
.podglad h2{
  font-size: 180%;
}
.podglad h3{
  font-size: 150%;
}
.podglad h4{
  font-size: 130%;
}

/* Akapity P */
.podglad p{
  margin: 16px 0 !important;
  line-height: 1.5em !important;
  text-align: justify !important;
}
.podglad p i, .podglad p em{
  font-style: italic !important;
  color: #e08201 !important;
  font-weight: 600 !important;
}

/* Listy ul / ol / li */
.podglad ul,
.podglad ol{
  margin:18px 0;
  padding-left:34px;
  line-height: 1.4em !important;
}

.podglad ul{
  list-style:disc;
}

.podglad ol{
  list-style:decimal;
}

.podglad li{
  margin:8px 0;
}

/* zagnieżdżone listy */

.podglad li ul,
.podglad li ol{
  margin-top:8px;
  margin-bottom:8px;
}

.podglad ul ul{
  list-style:circle;
}

.podglad ul ul ul{
  list-style:square;
}

.podglad ol ol{
  list-style:lower-alpha;
}

.podglad ol ol ol{
  list-style:lower-roman;
}

/* pogrubienia i kursywa w listach */

.podglad li strong,
.podglad li b{
  font-weight:650;
}

.podglad li em,
.podglad li i{
  color:#508c6a;
  font-style:italic;
  font-weight:600;
}

/* odstępy między akapitami w elementach list */

.podglad li p{
  margin:6px 0;
}

/* kolor punktorów */

.podglad ul li::marker{
  color:#508c6a;
  font-size:1.05em;
}

.podglad ol li::marker{
  color:#508c6a;
  font-weight:700;
}

/* listy w dark mode */
.dark .podglad li{
  color:#d8d8d8;
}

.dark .podglad ul li::marker,
.dark .podglad ol li::marker{
  color:#508c6a;
}

.dark .podglad li em,
.dark .podglad li i{
  color:#508c6a !important;
}

.podglad a{
  font-weight: 600 !important;
  color: #508c6a;
  text-decoration: none !important;
  border-bottom: 1px solid transparent;
}
.podglad a:hover,
.podglad a:focus{
  text-decoration: none !important;
  border-bottom: 1px solid #508c6a;
}

/* Tabele */
.podglad table {
  width: 100% !important;
  max-width: 100% !important;
  margin: 24px 0 !important;

  border-collapse: collapse !important;
  border-spacing: 0 !important;

  background: #ffffff;
  color: #1f2937;

  font-size: 14px;
  line-height: 1.55;

  table-layout: auto;
}

/* Nagłówki i komórki */

.podglad table th,
.podglad table td {
  padding: 12px 14px !important;

  border: 1px solid #dbe2ea !important;

  text-align: left;
  vertical-align: top;

  overflow-wrap: anywhere;
  word-break: normal;
}

/* Nagłówki tabeli */

.podglad table th {
  background: #f1f5f9 !important;
  color: #0f172a !important;

  font-weight: 700 !important;
}

/* Naprzemienne wiersze */

.podglad table tbody tr:nth-child(even) td {
  background: #f8fafc;
}

/* Efekt po najechaniu */

.podglad table tbody tr:hover td {
  background: #eef2ff;
}

/* Pierwsza kolumna może być delikatnie wyróżniona */

.podglad table tbody td:first-child {
  font-weight: 600;
}

/* Linki w tabelach */

.podglad table a {
  color: var(--primary, #6366f1);
  font-weight: 600;
  text-decoration: none !important;
  text-underline-offset: 3px;
}

/* Obrazy w komórkach */

.podglad table img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0;
}

/* Akapity wewnątrz komórek */

.podglad table td p,
.podglad table th p {
  margin: 0 0 8px !important;
  line-height: 1.55 !important;
}

.podglad table td p:last-child,
.podglad table th p:last-child {
  margin-bottom: 0 !important;
}

/* Listy wewnątrz tabel */

.podglad table ul,
.podglad table ol {
  margin: 6px 0 !important;
  padding-left: 22px !important;
}

.podglad table li {
  margin: 4px 0 !important;
}

/* Responsywność tabel  */

/*
 * Gdy tabela jest szersza niż ekran, przewijana jest tylko tabela,
 * a nie całe okno podglądu.
 */
.podglad .table-responsive,
.podglad .mce-table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;

  margin: 24px 0;

  border-radius: 12px;

  scrollbar-width: thin;
  scrollbar-color:
          rgba(99, 102, 241, .55)
          rgba(148, 163, 184, .12);
}

.podglad .table-responsive table,
.podglad .mce-table-responsive table {
  margin: 0 !important;
  min-width: 600px;
}

/*
 * Zabezpieczenie dla zwykłych tabel, które nie mają wrappera.
 */
@media (max-width: 767px) {
  .podglad {
    overflow-x: hidden;
  }

  .podglad table {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto;

    font-size: 13px;

    scrollbar-width: thin;
    scrollbar-color:
            rgba(99, 102, 241, .55)
            rgba(148, 163, 184, .12);
  }

  .podglad table th,
  .podglad table td {
    min-width: 130px;
    padding: 10px 11px !important;
  }
}

/* Dark mode tabel */
.dark .podglad table {
  background: #172033;
  color: #e2e8f0;
}

.dark .podglad table th,
.dark .podglad table td {
  border-color: rgba(255, 255, 255, .11) !important;
}

.dark .podglad table th {
  background: #232f46 !important;
  color: #ffffff !important;
}

.dark .podglad table tbody tr:nth-child(even) td {
  background: #1b263a;
}

.dark .podglad table tbody tr:hover td {
  background: rgba(99, 102, 241, .16);
}

.dark .podglad table a {
  color: #a5b4fc;
}

/* -----------------------------------------------------------------
| Dołączanie obrazów, plików... obsługa kodów w tekście
----------------------------------------------------------------- */

/* -----------------------------------------------------------------
| Obrazy
----------------------------------------------------------------- */

.podglad .dolacz-obraz{
  margin:32px auto;
  text-align:center;
}

.podglad .dolacz-obraz a{
  display:inline-block;
  text-decoration:none !important;
}

.podglad .dolacz-obraz img{
  display:block;

  max-width:100%;
  height:auto;

  margin:0 auto;

  border-radius:18px;
  border:1px solid #e5e7eb;

  box-shadow:
          0 8px 24px rgba(0,0,0,.08),
          0 2px 8px rgba(0,0,0,.04);

  transition:
          transform .25s ease,
          box-shadow .25s ease;
}

.podglad .dolacz-obraz a:hover img{
  transform:translateY(-3px);

  box-shadow:
          0 16px 38px rgba(0,0,0,.15),
          0 6px 18px rgba(0,0,0,.08);
}

.podglad .dolacz-obraz .opis{
  margin-top:10px;
  font-size:13px;
  color:#6b7280;
  font-style:italic;
}

/* -----------------------------------------------------------------
| Pliki
----------------------------------------------------------------- */

.podglad .dolacz-plik:not(.dolacz-plik-blok) {
  display: inline-flex !important;
  align-items: baseline;
  gap: 6px;

  width: auto !important;
  max-width: 100%;

  margin: 0 !important;
  padding: 0 !important;

  border: 0 !important;
  border-radius: 0 !important;

  background: transparent !important;
  box-shadow: none !important;

  color: #16a34a;

  font-size: inherit;
  font-weight: 650;
  line-height: inherit;

  text-decoration: none !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;

  vertical-align: baseline;

  transition: color .2s ease;
}

.podglad .dolacz-plik:not(.dolacz-plik-blok):hover {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;

  color: var(--primary, #6366f1);

  transform: none !important;
}

.podglad .dolacz-plik:not(.dolacz-plik-blok) i,
.podglad .dolacz-plik:not(.dolacz-plik-blok) em,
.podglad .dolacz-plik:not(.dolacz-plik-blok) svg {
  flex: 0 0 auto;

  color: inherit !important;

  font-size: 1em;
  font-style: normal !important;
}

.podglad .dolacz-plik:not(.dolacz-plik-blok) img {
  display: inline-block;

  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;

  margin: 0 2px 0 0 !important;

  object-fit: contain;
  vertical-align: -3px;
}

/* -----------------------------------------------------------------
| Plik / wersja blokowa
----------------------------------------------------------------- */

.podglad .dolacz-plik-blok {
  display: flex !important;
  align-items: center;
  gap: 16px;

  width: 100% !important;
  max-width: 100%;

  margin: 20px 0 !important;
  padding: 14px 18px !important;

  border: 1px solid #dbe3ef !important;
  border-radius: 14px !important;

  background: #fff !important;
  color: #334155;

  box-shadow: none;

  text-decoration: none !important;

  transition:
          border-color .2s ease,
          box-shadow .2s ease,
          background-color .2s ease;
}

.podglad .dolacz-plik-blok:hover {
  border-color: var(--primary, #6366f1) !important;
  background: #fff !important;

  box-shadow:
          0 6px 20px rgba(15, 23, 42, .06) !important;

  transform: none !important;
}

.podglad .dolacz-plik-blok .dolacz-ikone-do-pliku {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 54px;

  width: 54px;
  min-width: 54px;
  height: 54px;

  margin: 0;
  padding: 0;

  border: 0;
  background: transparent;
}

.podglad .dolacz-plik-blok .dolacz-ikone-do-pliku a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 54px;
  height: 54px;

  margin: 0;
  padding: 0;

  border: 0;
  background: transparent;

  text-decoration: none !important;
}

.podglad .dolacz-plik-blok .dolacz-ikone-do-pliku img {
  display: block;

  width: auto !important;
  height: auto !important;

  max-width: 48px !important;
  max-height: 48px !important;

  margin: 0 !important;

  object-fit: contain;

  transition: transform .2s ease;
}

.podglad .dolacz-plik-blok .dolacz-ikone-do-pliku a:hover img {
  transform: scale(1.05);
}

.podglad .dolacz-plik-blok .dolacz-nazwe-pliku {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;

  min-width: 0;

  margin: 0;
  padding: 0;

  color: #64748b;

  font-size: 13px;
  line-height: 1.45;
}

.podglad .dolacz-plik-blok .dolacz-opis {
  margin: 0 0 2px;

  color: #64748b;

  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.podglad .dolacz-plik-blok .dolacz-opis i {
  color: var(--primary, #6366f1) !important;
  font-style: normal !important;
}

.podglad .dolacz-plik-blok .dolacz-nazwe-pliku > a {
  display: block;

  width: fit-content;
  max-width: 100%;

  margin: 0;
  padding: 0;

  border: 0;
  background: transparent;

  color: #16a34a;

  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;

  text-decoration: none !important;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  transition: color .2s ease;
}

.podglad .dolacz-plik-blok .dolacz-nazwe-pliku > a:hover {
  color: var(--primary, #6366f1);

  text-decoration: none !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.podglad .dolacz-plik-blok .dolacz-plik-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 18px;

  width: 100%;

  margin: 7px 0 0;
  padding: 0;

  color: #64748b;

  font-size: 13px;
  line-height: 1.45;
}

.podglad .dolacz-plik-blok .dolacz-plik-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;

  width: auto;

  margin: 0 !important;
  padding: 0;
}

.podglad .dolacz-plik-blok .dolacz-plik-meta em,
.podglad .dolacz-plik-blok .dolacz-plik-meta i {
  color: var(--primary, #6366f1) !important;

  font-size: 13px;
  font-style: normal !important;
}

.podglad .dolacz-plik-blok .dolacz-plik-meta strong {
  margin: 0;

  color: #334155;

  font-size: inherit;
  font-weight: 700;
}

.podglad .dolacz-plik-blok
.wartosc-liczby-pobran {
  color: #475569;
  font-weight: 650;
}

.dark .podglad .dolacz-plik:not(.dolacz-plik-blok) {
  color: #86efac;
}

.dark .podglad .dolacz-plik:not(.dolacz-plik-blok):hover {
  color: #c7d2fe;
}

.dark .podglad .dolacz-plik-blok {
  border-color: rgba(255, 255, 255, .09) !important;
  background: #172033 !important;
  color: #cbd5e1;
}

.dark .podglad .dolacz-plik-blok:hover {
  border-color: #818cf8 !important;
  background: #172033 !important;

  box-shadow:
          0 9px 26px rgba(0, 0, 0, .25) !important;
}

.dark .podglad .dolacz-plik-blok .dolacz-opis,
.dark .podglad .dolacz-plik-blok .dolacz-nazwe-pliku,
.dark .podglad .dolacz-plik-blok .dolacz-plik-meta {
  color: #aeb9ca;
}

.dark .podglad .dolacz-plik-blok
.dolacz-nazwe-pliku > a {
  color: #86efac;
}

.dark .podglad .dolacz-plik-blok
.dolacz-nazwe-pliku > a:hover {
  color: #c7d2fe;
}

.dark .podglad .dolacz-plik-blok
.dolacz-plik-meta strong {
  color: #f8fafc;
}

.dark .podglad .dolacz-plik-blok
.wartosc-liczby-pobran {
  color: #e2e8f0;
}

@media (max-width: 560px) {
  .podglad .dolacz-plik-blok {
    align-items: flex-start;

    gap: 12px;

    padding: 13px 14px !important;
  }

  .podglad .dolacz-plik-blok
  .dolacz-ikone-do-pliku,
  .podglad .dolacz-plik-blok
  .dolacz-ikone-do-pliku a {
    flex-basis: 44px;

    width: 44px;
    min-width: 44px;
    height: 44px;
  }

  .podglad .dolacz-plik-blok
  .dolacz-ikone-do-pliku img {
    max-width: 40px !important;
    max-height: 40px !important;
  }

  .podglad .dolacz-plik-blok
  .dolacz-nazwe-pliku > a {
    font-size: 15px;
  }

  .podglad .dolacz-plik-blok
  .dolacz-plik-meta {
    align-items: flex-start;
    flex-direction: column;

    gap: 4px;
  }
}

/* -----------------------------------------------------------------
| Galeria zdjęć
----------------------------------------------------------------- */

.podglad .dolacz-galeria-zdjec {
  display: block;

  width: 100%;
  max-width: 100%;

  margin: 34px 0;
  padding: 0;
}

.podglad .dolacz-galeria-tytul {
  margin: 0 0 8px !important;

  color: #0f172a;

  font-size: 25px;
  font-weight: 750;
  line-height: 1.3;
}

.podglad .dolacz-galeria-opis {
  max-width: 850px;

  margin: 0 0 12px !important;

  color: #64748b;

  font-size: 14px;
  line-height: 1.7 !important;
}

.podglad .dolacz-galeria-licznik {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  margin-bottom: 17px;
  padding: 6px 10px;

  border-radius: 999px;

  background: rgba(99, 102, 241, .09);
  color: var(--primary, #508c6a);

  font-size: 12px;
  font-weight: 700;
}

.podglad .dolacz-galeria-licznik i {
  color: inherit !important;
  font-style: normal !important;
}

/* SIATKA  */
.podglad .dolacz-zdjecia-do-galerii {
  display: grid !important;
  grid-template-columns: repeat(
        4,
        minmax(0, 1fr)
    );
  gap: 14px;

  width: 100%;

  margin: 0 !important;
  padding: 0 !important;

  list-style: none !important;
}

.podglad .dolacz-galeria-item {
  position: relative;

  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;

  list-style: none !important;
}

.podglad .dolacz-galeria-item::marker {
  display: none;
  content: "";
}

/* LINK I OBRAZ */

.podglad .dolacz-galeria-link {
  position: relative;

  display: block;

  width: 100%;
  height: 100%;

  overflow: hidden;

  border-radius: 15px;

  background: #eef2f7;
  color: inherit;

  text-decoration: none !important;

  box-shadow:
          0 2px 5px rgba(15, 23, 42, .05),
          0 8px 20px rgba(15, 23, 42, .06);

  transition:
          transform .25s ease,
          box-shadow .25s ease;
}

.podglad .dolacz-galeria-link:hover {
  transform: translateY(-4px);

  box-shadow:
          0 16px 35px rgba(15, 23, 42, .15);
}

.podglad .dolacz-galeria-obraz {
  position: relative;

  display: block;

  width: 100%;
  aspect-ratio: 4 / 3;

  overflow: hidden;
}

.podglad .dolacz-galeria-img {
  display: block;

  width: 100% !important;
  height: 100% !important;
  max-width: none !important;

  margin: 0 !important;

  border: 0;
  border-radius: 0;

  object-fit: cover;

  transition:
          transform .45s cubic-bezier(.2, .65, .3, 1),
          filter .3s ease;
}

.podglad .dolacz-galeria-link:hover
.dolacz-galeria-img {
  transform: scale(1.075);
  filter: brightness(.83);
}

/* NAKŁADKA I IKONA POWIĘKSZENIA */
.podglad .dolacz-galeria-overlay {
  position: absolute;
  inset: 0;

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

  background:
          linear-gradient(
                  180deg,
                  rgba(15, 23, 42, .03),
                  rgba(15, 23, 42, .42)
          );

  opacity: 0;

  transition: opacity .25s ease;
}

.podglad .dolacz-galeria-link:hover
.dolacz-galeria-overlay {
  opacity: 1;
}

.podglad .dolacz-galeria-powieksz {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;

  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;

  background: rgba(255, 255, 255, .9);
  color: var(--primary, #6366f1);

  font-size: 18px;

  box-shadow:
          0 8px 26px rgba(15, 23, 42, .25);

  opacity: 0;
  transform: scale(.72);

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

.podglad .dolacz-galeria-link:hover
.dolacz-galeria-powieksz {
  opacity: 1;
  transform: scale(1);
}

/*
 * Podpis jest przeznaczony dla lightGallery.
 * Nie pokazujemy go pod kafelkiem.
 */
.podglad .dolacz-galeria-podpis {
  display: none;
}

/* DARK MODE */

.dark .podglad .dolacz-galeria-tytul {
  color: #f8fafc;
}

.dark .podglad .dolacz-galeria-opis {
  color: #aeb9ca;
}

.dark .podglad .dolacz-galeria-licznik {
  background: rgba(129, 140, 248, .16);
  color: #c7d2fe;
}

.dark .podglad .dolacz-galeria-link {
  background: #172033;

  box-shadow:
          0 3px 8px rgba(0, 0, 0, .25),
          0 10px 24px rgba(0, 0, 0, .22);
}

.dark .podglad .dolacz-galeria-link:hover {
  box-shadow:
          0 18px 38px rgba(0, 0, 0, .42);
}

/* RESPONSYWNOŚĆ */

@media (max-width: 1100px) {
  .podglad .dolacz-zdjecia-do-galerii {
    grid-template-columns: repeat(
            3,
            minmax(0, 1fr)
        );
  }
}

@media (max-width: 760px) {
  .podglad .dolacz-zdjecia-do-galerii {
    grid-template-columns: repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 10px;
  }

  .podglad .dolacz-galeria-link {
    border-radius: 12px;
  }

  .podglad .dolacz-galeria-powieksz {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 440px) {
  .podglad .dolacz-zdjecia-do-galerii {
    grid-template-columns: minmax(0, 1fr);
  }

  .podglad .dolacz-galeria-obraz {
    aspect-ratio: 16 / 10;
  }
}

@media (hover: none) {
  .podglad .dolacz-galeria-overlay {
    align-items: flex-end;
    justify-content: flex-end;

    padding: 10px;

    background:
            linear-gradient(
                    180deg,
                    transparent 55%,
                    rgba(15, 23, 42, .48)
            );

    opacity: 1;
  }

  .podglad .dolacz-galeria-powieksz {
    width: 38px;
    height: 38px;

    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .podglad .dolacz-galeria-link,
  .podglad .dolacz-galeria-img,
  .podglad .dolacz-galeria-overlay,
  .podglad .dolacz-galeria-powieksz {
    transition: none;
  }
}

/* specjalne z index aby powiększone zdjęcie znalazło się nad modalem */
.lg-backdrop {
  z-index: 100200 !important;
}

.lg-outer {
  z-index: 100210 !important;
}

.lg-toolbar,
.lg-actions,
.lg-sub-html,
.lg-thumb-outer {
  z-index: 100220 !important;
}

/* -----------------------------------------------------------------
| Filmy Video
----------------------------------------------------------------- */

.dolacz-video {
  position: relative;
  width: 100%;
  max-width: 1100px !important;
  margin: 2.5rem auto;
  overflow: hidden;

  /* Eleganckie zaokrąglenie odtwarzacza */
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 22px;

  /* Ciemne tło widoczne podczas ładowania filmu */
  background:
          linear-gradient(
                  135deg,
                  #111827 0%,
                  #020617 100%
          );

  /* Delikatna głębia */
  box-shadow:
          0 8px 20px rgba(15, 23, 42, 0.08),
          0 24px 60px rgba(15, 23, 42, 0.14);

  isolation: isolate;

  transition:
          transform 250ms ease,
          box-shadow 250ms ease,
          border-color 250ms ease;
}

/*
 * Delikatny efekt po najechaniu.
 * Kontener unosi się tylko minimalnie, aby efekt nie był przesadzony.
 */
.dolacz-video:hover {
  transform: translateY(-3px);

  border-color: rgba(59, 130, 246, 0.28);

  box-shadow:
          0 12px 28px rgba(15, 23, 42, 0.11),
          0 32px 75px rgba(15, 23, 42, 0.18);
}

/*
 * Dyskretna poświata widoczna nad odtwarzaczem.
 * pointer-events: none sprawia, że warstwa nie blokuje obsługi filmu.
 */
.dolacz-video::before {
  position: absolute;
  top: 0;
  left: 8%;
  z-index: 2;

  width: 84%;
  height: 1px;

  background: linear-gradient(
          90deg,
          transparent,
          rgba(255, 255, 255, 0.65),
          transparent
  );

  content: "";
  pointer-events: none;
}

/*
 * Sam odtwarzacz.
 */
.dolacz-video iframe {
  display: block;
  width: 100%;
  height: 100%;

  border: 0;
  border-radius: inherit;

  background-color: #020617;
}

/* WERSJA MOBILNA  */

@media (max-width: 767px) {
  .dolacz-video {
    margin: 1.75rem auto;
    border-radius: 16px;

    box-shadow:
            0 8px 24px rgba(15, 23, 42, 0.14),
            0 16px 40px rgba(15, 23, 42, 0.1);
  }

  /*
   * Na urządzeniach dotykowych wyłączamy unoszenie,
   * aby dotknięcie filmu nie powodowało przesunięcia.
   */
  .dolacz-video:hover {
    transform: none;
  }
}

/* DARK MODE */

.dark .dolacz-video {
  border-color: rgba(255, 255, 255, 0.12);

  background:
          linear-gradient(
                  135deg,
                  #111827 0%,
                  #030712 100%
          );

  box-shadow:
          0 10px 28px rgba(0, 0, 0, 0.35),
          0 30px 75px rgba(0, 0, 0, 0.4);
}

.dark .dolacz-video:hover {
  border-color: rgba(96, 165, 250, 0.35);

  box-shadow:
          0 12px 32px rgba(0, 0, 0, 0.42),
          0 34px 85px rgba(0, 0, 0, 0.48);
}

/* ==========================================================================
   OGRANICZENIE ANIMACJI
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .dolacz-video {
    transition: none;
  }

  .dolacz-video:hover {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   MAPY GOOGLE
-------------------------------------------------------------------------- */

.dolacz-mape {
  position: relative;

  /*
   * Domyślny rozmiar mapy.
   * Wartości ustawione przez sterowniki SZEROKOSC i WYSOKOSC
   * nadal mogą je zastąpić przez atrybut style.
   */
  width: 100%;
  height: 520px;
  max-width: 1100px;

  margin: 2.5rem auto;
  overflow: hidden;

  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 22px;

  /*
   * Tło widoczne przez chwilę podczas ładowania mapy.
   */
  background:
          linear-gradient(
                  135deg,
                  #f1f5f9 0%,
                  #e2e8f0 100%
          );

  box-shadow:
          0 8px 20px rgba(15, 23, 42, 0.08),
          0 24px 60px rgba(15, 23, 42, 0.14);

  box-sizing: border-box;
  isolation: isolate;

  transition:
          transform 250ms ease,
          border-color 250ms ease,
          box-shadow 250ms ease;
}

/*
 * Element nigdy nie może wyjść poza szerokość artykułu,
 * nawet gdy sterownik SZEROKOSC poda dużą wartość.
 */
.dolacz-mape[style] {
  max-width: 100%;
}

/*
 * Delikatne uniesienie mapy po najechaniu.
 */
.dolacz-mape:hover {
  transform: translateY(-3px);

  border-color: rgba(59, 130, 246, 0.32);

  box-shadow:
          0 12px 28px rgba(15, 23, 42, 0.11),
          0 32px 75px rgba(15, 23, 42, 0.18);
}

/*
 * Subtelna jasna linia przy górnej krawędzi.
 */
.dolacz-mape::before {
  position: absolute;
  top: 0;
  left: 8%;
  z-index: 2;

  width: 84%;
  height: 1px;

  background: linear-gradient(
          90deg,
          transparent,
          rgba(255, 255, 255, 0.85),
          transparent
  );

  content: "";
  pointer-events: none;
}

/*
 * Właściwa mapa Google.
 */
.dolacz-mape iframe {
  position: absolute;
  inset: 0;

  display: block;
  width: 100%;
  height: 100%;

  border: 0;
  border-radius: inherit;

  background-color: #e2e8f0;
}

/* ==========================================================================
   URZĄDZENIA MOBILNE
   ========================================================================== */

@media (max-width: 767px) {
  .dolacz-mape {
    /*
     * Wysokość mobilna obowiązuje również wtedy, gdy w kodzie mapy
     * zapisano większą wysokość za pomocą stylu inline.
     */
    height: 380px !important;

    margin: 1.75rem auto;
    border-radius: 16px;

    box-shadow:
            0 8px 24px rgba(15, 23, 42, 0.14),
            0 16px 40px rgba(15, 23, 42, 0.1);
  }

  .dolacz-mape:hover {
    transform: none;
  }
}

@media (max-width: 480px) {
  .dolacz-mape {
    height: 320px !important;
    border-radius: 14px;
  }
}

/* ==========================================================================
   DARK MODE
   ========================================================================== */

.dark .dolacz-mape {
  border-color: rgba(255, 255, 255, 0.12);

  background:
          linear-gradient(
                  135deg,
                  #1e293b 0%,
                  #0f172a 100%
          );

  box-shadow:
          0 10px 28px rgba(0, 0, 0, 0.35),
          0 30px 75px rgba(0, 0, 0, 0.4);
}

.dark .dolacz-mape:hover {
  border-color: rgba(96, 165, 250, 0.4);

  box-shadow:
          0 12px 32px rgba(0, 0, 0, 0.42),
          0 34px 85px rgba(0, 0, 0, 0.48);
}

/* ==========================================================================
   OGRANICZENIE ANIMACJI
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .dolacz-mape {
    transition: none;
  }

  .dolacz-mape:hover {
    transform: none;
  }
}

/* =========================================================
   Tooltip dla linków otwieranych w nowej karcie
   ========================================================= */

/*
 * Tekst dostępny dla czytników ekranu.
 * Element pozostaje w drzewie dostępności, ale nie jest
 * wyświetlany wizualnie.
 */
.wcag-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/*
 * Tooltip jest dodawany bezpośrednio do <body>,
 * dlatego nie zostanie ucięty przez kontenery
 * posiadające overflow: hidden.
 */
.wcag-new-tab-tooltip {
  position: fixed;
  z-index: 999999;

  max-width: min(280px, calc(100vw - 24px));
  padding: 9px 13px;

  color: #ffffff;
  background-color: #1f2937;
  border: 1px solid #ffffff;
  border-radius: 6px;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;

  box-shadow:
          0 4px 12px rgba(0, 0, 0, 0.25),
          0 0 0 1px rgba(0, 0, 0, 0.15);

  pointer-events: auto;

  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);

  transition:
          opacity 150ms ease,
          transform 150ms ease,
          visibility 150ms ease;
}

/* Widoczny tooltip */
.wcag-new-tab-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Trójkąt tooltipa */
.wcag-new-tab-tooltip::after {
  content: "";
  position: absolute;
  left: var(--tooltip-arrow-left, 50%);
  width: 10px;
  height: 10px;
  background-color: #1f2937;
  transform: translateX(-50%) rotate(45deg);
}

/* Tooltip wyświetlany nad linkiem */
.wcag-new-tab-tooltip[data-position="top"]::after {
  bottom: -6px;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
}

/* Tooltip wyświetlany pod linkiem */
.wcag-new-tab-tooltip[data-position="bottom"]::after {
  top: -6px;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
}

/*
 * Czytelny fokus klawiatury.
 * Jeżeli strona ma już własny styl focus-visible,
 * regułę można dostosować do projektu.
 */
a[target="_blank"]:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 3px;
  border-radius: 2px;
}

/* Tryb wysokiego kontrastu systemowego */
@media (forced-colors: active) {
  .wcag-new-tab-tooltip {
    color: CanvasText;
    background-color: Canvas;
    border: 2px solid CanvasText;
    box-shadow: none;
  }

  .wcag-new-tab-tooltip::after {
    background-color: Canvas;
  }

  a[target="_blank"]:focus-visible {
    outline: 3px solid Highlight;
  }
}

/* Ograniczenie animacji zgodnie z preferencjami użytkownika */
@media (prefers-reduced-motion: reduce) {
  .wcag-new-tab-tooltip {
    transition: none;
  }
}


/* ---------------------------------------------------------------------------------------------------------------------
Dostosowania
--------------------------------------------------------------------------------------------------------------------- */

/* =========================================================
   WCAG — wyraźny fokus podczas obsługi klawiaturą
   ========================================================= */

:root {
  --wcag-focus-yellow: #ffeb00;
  --wcag-focus-black: #000000;
}

/*
 * Wersja podstawowa wykorzystująca :focus-visible.
 * Fokus pojawia się podczas nawigowania klawiaturą,
 * ale nie po zwykłym kliknięciu linku myszą.
 */
a[href]:focus-visible {
  position: relative !important;
  z-index: 9999 !important;

  color: var(--wcag-focus-yellow) !important;
  background-color: var(--wcag-focus-black) !important;

  outline: 4px solid var(--wcag-focus-yellow) !important;
  outline-offset: 4px !important;

  border-radius: 2px !important;

  box-shadow:
          0 0 0 7px var(--wcag-focus-black),
          0 0 0 10px var(--wcag-focus-yellow) !important;

  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 4px !important;

  text-shadow: none !important;
}

/*
 * Kolor tekstu i ikon znajdujących się wewnątrz linku,
 * np. ikon Font Awesome albo tekstów w menu.
 */
a[href]:focus-visible i,
a[href]:focus-visible span:not(.wcag-new-tab-tooltip),
a[href]:focus-visible strong,
a[href]:focus-visible small {
  color: var(--wcag-focus-yellow) !important;
  text-shadow: none !important;
}

/*
 * Zabezpieczenie dla przeglądarek lub elementów,
 * przy których :focus-visible może działać niepoprawnie.
 * Klasa jest ustawiana przez jQuery po użyciu klawisza Tab.
 */
html.wcag-keyboard-navigation a[href]:focus {
  position: relative !important;
  z-index: 9999 !important;

  color: var(--wcag-focus-yellow) !important;
  background-color: var(--wcag-focus-black) !important;

  outline: 4px solid var(--wcag-focus-yellow) !important;
  outline-offset: 4px !important;

  border-radius: 2px !important;

  box-shadow:
          0 0 0 7px var(--wcag-focus-black),
          0 0 0 10px var(--wcag-focus-yellow) !important;

  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 4px !important;

  text-shadow: none !important;
}

html.wcag-keyboard-navigation a[href]:focus i,
html.wcag-keyboard-navigation a[href]:focus span:not(.wcag-new-tab-tooltip),
html.wcag-keyboard-navigation a[href]:focus strong,
html.wcag-keyboard-navigation a[href]:focus small {
  color: var(--wcag-focus-yellow) !important;
  text-shadow: none !important;
}

/*
 * Fokus elementów umieszczonych blisko krawędzi strony
 * nie powinien zostać ucięty.
 */
a[href] {
  scroll-margin-block: 100px;
}

/*
 * Tryb wysokiego kontrastu systemu operacyjnego.
 */
@media (forced-colors: active) {
  a[href]:focus-visible,
  html.wcag-keyboard-navigation a[href]:focus {
    color: HighlightText !important;
    background-color: Highlight !important;
    outline: 4px solid Highlight !important;
    box-shadow: none !important;
  }
}

/* =========================================================
   PANEL DOSTOSOWAŃ — PRZYCISK OTWIERAJĄCY
   ========================================================= */

:root {
  --wcag-panel-yellow: #ffeb00;
  --wcag-panel-yellow-dark: #e1cf00;
  --wcag-panel-black: #101010;
  --wcag-panel-dark: #20242b;
  --wcag-panel-border: #d5dae2;
  --wcag-panel-background: #ffffff;
  --wcag-panel-text: #15171a;
  --wcag-panel-muted: #545b66;
}

.wcag-settings-launcher {
  position: fixed !important;
  top: 50%;
  left: 0;
  z-index: 99990;
  transform: translateY(-50%);
}

.wcag-settings-open {
  position: relative;

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

  width: 64px;
  height: 64px;
  padding: 0;

  color: var(--wcag-panel-yellow);
  background: var(--wcag-panel-black);

  border: 3px solid var(--wcag-panel-yellow);
  border-left: 0;
  border-radius: 0 14px 14px 0;

  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3);
  cursor: pointer;

  transition:
          width 180ms ease,
          color 180ms ease,
          background-color 180ms ease,
          box-shadow 180ms ease;
}

.wcag-settings-open i {
  color: inherit;
  font-size: 26px;
  line-height: 1;
}

.wcag-settings-open:hover,
.wcag-settings-open:focus-visible {
  width: 72px;
  color: var(--wcag-panel-black);
  background-color: var(--wcag-panel-yellow);

  outline: 4px solid var(--wcag-panel-black);
  outline-offset: 3px;

  box-shadow:
          0 6px 22px rgba(0, 0, 0, 0.35),
          0 0 0 7px var(--wcag-panel-yellow);
}


/* =========================================================
   TOOLTIP PRZYCISKU
   ========================================================= */

.wcag-settings-tooltip {
  position: absolute;
  top: 50%;
  left: calc(100% + 14px);

  width: max-content;
  max-width: 220px;
  padding: 9px 13px;

  color: #ffffff;
  background-color: var(--wcag-panel-black);

  border: 2px solid var(--wcag-panel-yellow);
  border-radius: 7px;

  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;

  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.28);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(-50%) translateX(-5px);

  transition:
          opacity 150ms ease,
          visibility 150ms ease,
          transform 150ms ease;
}

.wcag-settings-tooltip::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;

  width: 0;
  height: 0;

  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 8px solid var(--wcag-panel-yellow);

  transform: translateY(-50%);
}

.wcag-settings-launcher:hover .wcag-settings-tooltip,
.wcag-settings-launcher:focus-within .wcag-settings-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}


/* =========================================================
   TŁO I OKNO MODALNE
   ========================================================= */

body.wcag-settings-opened {
  overflow: hidden;
}

.wcag-settings-modal[hidden] {
  display: none !important;
}

.wcag-settings-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;

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

  padding: 24px;
}

.wcag-settings-backdrop {
  position: absolute;
  inset: 0;

  background-color: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(4px);
}

.wcag-settings-dialog {
  position: relative;
  z-index: 1;

  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;

  color: var(--wcag-panel-text);
  background-color: var(--wcag-panel-background);

  border: 4px solid var(--wcag-panel-yellow);
  border-radius: 18px;

  box-shadow:
          0 24px 80px rgba(0, 0, 0, 0.5),
          0 0 0 5px var(--wcag-panel-black);
}


/* =========================================================
   NAGŁÓWEK OKNA
   ========================================================= */

.wcag-settings-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;

  padding: 26px 28px;

  color: #ffffff;
  background-color: var(--wcag-panel-black);

  border-bottom: 4px solid var(--wcag-panel-yellow);
  border-radius: 12px 12px 0 0;
}

.wcag-settings-heading {
  display: flex;
  align-items: center;
  gap: 18px;
}

.wcag-settings-heading-icon {
  flex: 0 0 auto;

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

  width: 58px;
  height: 58px;

  color: var(--wcag-panel-black);
  background-color: var(--wcag-panel-yellow);

  border-radius: 50%;
}

.wcag-settings-heading-icon i {
  color: inherit;
  font-size: 31px;
}

.wcag-settings-heading h2 {
  margin: 0 0 6px;

  color: #ffffff;
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.15;
}

.wcag-settings-heading p {
  max-width: 650px;
  margin: 0;

  color: #ffffff;
  font-size: 16px;
  line-height: 1.5;
}

.wcag-settings-close {
  flex: 0 0 auto;

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

  width: 48px;
  height: 48px;
  padding: 0;

  color: #ffffff;
  background-color: transparent;

  border: 2px solid #ffffff;
  border-radius: 50%;

  cursor: pointer;
}

.wcag-settings-close i {
  color: inherit;
  font-size: 24px;
}

.wcag-settings-close:hover {
  color: var(--wcag-panel-black);
  background-color: var(--wcag-panel-yellow);
  border-color: var(--wcag-panel-yellow);
}


/* =========================================================
   SIATKA OPCJI
   ========================================================= */

.wcag-settings-content {
  padding: 30px 28px;
}

.wcag-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.wcag-option {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;

  min-height: 180px;
  padding: 22px 16px;

  color: var(--wcag-panel-text);
  background-color: #f4f6f8;

  border: 3px solid var(--wcag-panel-border);
  border-radius: 14px;

  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  cursor: pointer;

  transition:
          color 150ms ease,
          background-color 150ms ease,
          border-color 150ms ease,
          box-shadow 150ms ease,
          transform 150ms ease;
}

.wcag-option:hover {
  color: var(--wcag-panel-text);
  background-color: #ffffff;
  border-color: var(--wcag-panel-black);

  transform: translateY(-2px);
}

.wcag-option-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 58px;
  height: 58px;

  color: #ffffff;
  background-color: var(--wcag-panel-dark);

  border-radius: 50%;
}

.wcag-option-icon i {
  color: inherit;
  font-size: 27px;
}

.wcag-option-label {
  display: block;

  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.wcag-option-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 92px;
  padding: 5px 9px;

  color: #ffffff;
  background-color: #626a75;

  border-radius: 999px;

  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}


/* =========================================================
   AKTYWNA OPCJA
   ========================================================= */

.wcag-option.is-active,
.wcag-option[aria-pressed="true"] {
  color: var(--wcag-panel-yellow);
  background-color: var(--wcag-panel-black);
  border-color: var(--wcag-panel-yellow);

  box-shadow:
          0 0 0 3px var(--wcag-panel-black),
          0 0 0 6px var(--wcag-panel-yellow);
}

.wcag-option.is-active::after,
.wcag-option[aria-pressed="true"]::after {
  content: "\f00c";
  position: absolute;
  top: 10px;
  right: 10px;

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

  width: 30px;
  height: 30px;

  color: var(--wcag-panel-black);
  background-color: var(--wcag-panel-yellow);

  border-radius: 50%;

  font-family: "Font Awesome 6 Free";
  font-size: 15px;
  font-weight: 900;
}

.wcag-option.is-active .wcag-option-icon,
.wcag-option[aria-pressed="true"] .wcag-option-icon {
  color: var(--wcag-panel-black);
  background-color: var(--wcag-panel-yellow);
}

.wcag-option.is-active .wcag-option-state,
.wcag-option[aria-pressed="true"] .wcag-option-state {
  color: var(--wcag-panel-black);
  background-color: var(--wcag-panel-yellow);
}


/* =========================================================
   FOKUS KLAWIATURY
   ========================================================= */

.wcag-settings-open:focus-visible,
.wcag-settings-close:focus-visible,
.wcag-option:focus-visible,
.wcag-settings-done:focus-visible {
  outline: 4px solid var(--wcag-panel-yellow) !important;
  outline-offset: 4px !important;

  box-shadow:
          0 0 0 7px var(--wcag-panel-black),
          0 0 0 10px var(--wcag-panel-yellow) !important;
}


/* =========================================================
   STOPKA OKNA
   ========================================================= */

.wcag-settings-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  padding: 20px 28px;

  background-color: #eef1f4;
  border-top: 1px solid var(--wcag-panel-border);
  border-radius: 0 0 14px 14px;
}

.wcag-settings-footer p {
  margin: 0;

  color: var(--wcag-panel-muted);
  font-size: 14px;
  line-height: 1.5;
}

.wcag-settings-done {
  flex: 0 0 auto;

  min-width: 130px;
  padding: 12px 20px;

  color: var(--wcag-panel-yellow);
  background-color: var(--wcag-panel-black);

  border: 3px solid var(--wcag-panel-black);
  border-radius: 8px;

  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.wcag-settings-done:hover {
  color: var(--wcag-panel-black);
  background-color: var(--wcag-panel-yellow);
}


/* =========================================================
   TEKST TYLKO DLA CZYTNIKÓW EKRANU
   ========================================================= */

.wcag-visually-hidden {
  position: absolute !important;

  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;

  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;

  white-space: nowrap !important;
  border: 0 !important;
}


/* =========================================================
   RESPONSYWNOŚĆ
   ========================================================= */

@media (max-width: 767px) {
  .wcag-settings-modal {
    padding: 12px;
  }

  .wcag-settings-dialog {
    max-height: calc(100vh - 24px);
    border-width: 3px;
    border-radius: 13px;
  }

  .wcag-settings-header {
    padding: 20px;
  }

  .wcag-settings-heading {
    align-items: flex-start;
  }

  .wcag-settings-heading-icon {
    width: 48px;
    height: 48px;
  }

  .wcag-settings-heading-icon i {
    font-size: 25px;
  }

  .wcag-settings-heading p {
    font-size: 14px;
  }

  .wcag-settings-content {
    padding: 24px 20px;
  }

  .wcag-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .wcag-option {
    min-height: 155px;
    padding: 18px 12px;
  }

  .wcag-settings-footer {
    align-items: stretch;
    flex-direction: column;
    padding: 18px 20px;
  }

  .wcag-settings-done {
    width: 100%;
  }
}

@media (max-width: 479px) {
  .wcag-settings-open {
    width: 54px;
    height: 56px;
  }

  .wcag-settings-open:hover,
  .wcag-settings-open:focus-visible {
    width: 60px;
  }

  .wcag-settings-tooltip {
    font-size: 13px;
  }

  .wcag-settings-heading-icon {
    display: none;
  }

  .wcag-settings-header {
    gap: 12px;
  }

  .wcag-settings-close {
    width: 42px;
    height: 42px;
  }

  .wcag-settings-grid {
    grid-template-columns: 1fr;
  }

  .wcag-option {
    min-height: 130px;
  }
}


/* =========================================================
   OGRANICZENIE ANIMACJI
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .wcag-settings-open,
  .wcag-settings-tooltip,
  .wcag-option {
    transition: none;
  }
}

/* =========================================================
   Boczne przyciski WCAG
   ========================================================= */

.wcag-tools-launcher {
  position: fixed;
  top: 50%;
  left: 0;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateY(-50%);
}

.wcag-tool-item {
  position: relative;
}

.wcag-tools-launcher .wcag-settings-open {
  position: relative;
  inset: auto;
  transform: none;
}

.wcag-tool-item .wcag-settings-tooltip {
  top: 50%;
  left: calc(100% + 12px);
  bottom: auto;
  transform: translateY(-50%) translateX(-8px);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.wcag-tool-item:hover .wcag-settings-tooltip,
.wcag-tool-item:focus-within .wcag-settings-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.wcag-keyboard-open {
  background: #173f5f;
}

.wcag-keyboard-open:hover,
.wcag-keyboard-open:focus-visible {
  background: #0d2f49;
}

/* =========================================================
   Modal sterowania klawiaturą
   ========================================================= */

.wcag-keyboard-modal[hidden] {
  display: none !important;
}

.wcag-keyboard-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.wcag-keyboard-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 16, 27, 0.78);
  backdrop-filter: blur(4px);
}

.wcag-keyboard-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #fff;
  color: #1c2630;
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  outline: none;
}

.wcag-keyboard-dialog:focus-visible {
  outline: 4px solid #ffd600;
  outline-offset: 4px;
}

.wcag-keyboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px;
  color: #fff;
  background: #173f5f;
  border-radius: 22px 22px 0 0;
}

.wcag-keyboard-heading {
  display: flex;
  align-items: center;
  gap: 18px;
}

.wcag-keyboard-heading-icon {
  display: inline-flex;
  flex: 0 0 58px;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  color: #173f5f;
  background: #ffd600;
  border-radius: 16px;
  font-size: 25px;
}

.wcag-keyboard-heading h2 {
  margin: 0 0 5px;
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.2;
}

.wcag-keyboard-heading p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.97rem;
  line-height: 1.55;
}

.wcag-keyboard-close {
  display: inline-flex;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.wcag-keyboard-close:hover,
.wcag-keyboard-close:focus-visible {
  color: #173f5f;
  background: #ffd600;
  border-color: #ffd600;
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.wcag-keyboard-content {
  padding: 30px;
}

.wcag-keyboard-intro {
  margin: 0 0 22px;
  font-size: 1.05rem;
  line-height: 1.65;
}

.wcag-shortcuts-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wcag-shortcuts-list li {
  display: grid;
  grid-template-columns: auto auto auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 13px 16px;
  background: #f3f7fa;
  border: 2px solid #d7e1e8;
  border-radius: 14px;
}

.wcag-shortcuts-list kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 40px;
  padding: 6px 11px;
  color: #fff;
  background: #173f5f;
  border: 0;
  border-bottom: 4px solid #09263c;
  border-radius: 8px;
  box-shadow: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
}

.wcag-shortcut-plus {
  color: #52616d;
  font-size: 1.15rem;
  font-weight: 800;
}

.wcag-shortcut-description {
  margin-left: 8px;
  color: #1c2630;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.wcag-keyboard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 30px;
  background: #edf3f6;
  border-radius: 0 0 22px 22px;
}

.wcag-keyboard-footer p {
  margin: 0;
  color: #45545f;
  font-size: 0.9rem;
}

.wcag-keyboard-done {
  flex: 0 0 auto;
  padding: 12px 24px;
  color: #173f5f;
  background: #ffd600;
  border: 2px solid #ffd600;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
}

.wcag-keyboard-done:hover,
.wcag-keyboard-done:focus-visible {
  color: #fff;
  background: #173f5f;
  border-color: #173f5f;
  outline: 3px solid #ffd600;
  outline-offset: 3px;
}

body.wcag-modal-open {
  overflow: hidden;
}

/* Tekst dostępny dla czytników ekranu */
.wcag-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 600px) {
  .wcag-tools-launcher {
    gap: 7px;
  }

  .wcag-keyboard-modal {
    align-items: flex-start;
    padding: 12px;
  }

  .wcag-keyboard-dialog {
    max-height: calc(100vh - 24px);
    border-radius: 16px;
  }

  .wcag-keyboard-header {
    padding: 20px;
    border-radius: 16px 16px 0 0;
  }

  .wcag-keyboard-heading {
    align-items: flex-start;
    gap: 12px;
  }

  .wcag-keyboard-heading-icon {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    font-size: 20px;
  }

  .wcag-keyboard-content {
    padding: 20px;
  }

  .wcag-shortcuts-list li {
    grid-template-columns: auto auto auto;
  }

  .wcag-shortcut-description {
    grid-column: 1 / -1;
    margin: 4px 0 0;
  }

  .wcag-keyboard-footer {
    align-items: stretch;
    flex-direction: column;
    padding: 18px 20px;
    border-radius: 0 0 16px 16px;
  }

  .wcag-keyboard-done {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wcag-keyboard-close,
  .wcag-keyboard-done {
    transition: none;
  }
}

.wcag-tool-item:hover .wcag-keyboard-open{
  background: #ffeb00 !important;
}

/* =========================================================
   WYSZUKIWARKA
   ========================================================= */

.wyszukiwarka {
  --search-green: #3f8465;
  --search-green-dark: #286047;
  --search-green-light: #edf6f1;
  --search-orange: #c97516;
  --search-orange-light: #fff6e9;
  --search-text: #1f2b26;
  --search-muted: #637069;
  --search-border: #dce7e1;
  --search-white: #ffffff;

  position: relative;
  overflow: hidden;
  padding: 50px;
  color: var(--search-text);
  background:
          radial-gradient(
                  circle at 100% 0,
                  rgba(63, 132, 101, 0.13) 0,
                  rgba(63, 132, 101, 0) 290px
          ),
          linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
  border: 1px solid var(--search-border);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(29, 68, 50, 0.09);
}

/* Dekoracyjny element zgodny z grafiką szablonu */
.wyszukiwarka::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -80px;
  width: 240px;
  height: 240px;
  border: 32px solid rgba(63, 132, 101, 0.07);
  border-radius: 44% 56% 62% 38%;
  transform: rotate(25deg);
  pointer-events: none;
}

.wyszukiwarka::after {
  content: "";
  position: absolute;
  top: 38px;
  right: 42px;
  width: 14px;
  height: 14px;
  background: var(--search-orange);
  border-radius: 50%;
  box-shadow:
          26px 25px 0 rgba(63, 132, 101, 0.25),
          -13px 40px 0 rgba(201, 117, 22, 0.2);
  pointer-events: none;
}

/* =========================================================
   NAGŁÓWEK
   ========================================================= */

.wyszukiwarka__header {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-bottom: 32px;
}

.wyszukiwarka__header::before {
  content: "WYSZUKIWANIE W SERWISIE";
  display: block;
  margin-bottom: 10px;
  color: var(--search-orange);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.12em;
}

.wyszukiwarka__header .xc-postbox__title {
  margin: 0 0 12px;
  color: var(--search-text);
  font-family: "Lora", serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  line-height: 1.15;
}

.wyszukiwarka__header p {
  max-width: 640px;
  margin: 0;
  color: var(--search-muted);
  font-size: 16px;
  line-height: 1.75;
}

/* =========================================================
   FORMULARZ
   ========================================================= */

.wyszukiwarka__form {
  position: relative;
  z-index: 2;
  margin-bottom: 42px;
  padding: 26px;
  background: var(--search-green-light);
  border: 1px solid #d4e7dc;
  border-radius: 20px;
}

.wyszukiwarka__form > label {
  display: block;
  margin-bottom: 10px;
  color: var(--search-green-dark);
  font-size: 14px;
  font-weight: 800;
}

.wyszukiwarka__form-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.wyszukiwarka__form-row input[type="search"] {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 60px;
  margin: 0;
  padding: 0 22px;
  color: var(--search-text);
  background: var(--search-white);
  border: 2px solid transparent;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(39, 91, 67, 0.08);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1;
  outline: none;
  transition:
          border-color 0.2s ease,
          box-shadow 0.2s ease;
}

.wyszukiwarka__form-row input[type="search"]::placeholder {
  color: #7c8982;
  opacity: 1;
}

.wyszukiwarka__form-row input[type="search"]:hover {
  border-color: #9fc7b4;
}

.wyszukiwarka__form-row input[type="search"]:focus {
  border-color: var(--search-green-dark);
  box-shadow:
          0 0 0 4px rgba(63, 132, 101, 0.17),
          0 8px 25px rgba(39, 91, 67, 0.1);
}

.wyszukiwarka__form-row input[aria-invalid="true"] {
  border-color: #b42318;
}

.wyszukiwarka__form-row button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 145px;
  min-height: 60px;
  padding: 0 25px;
  color: #ffffff;
  background: var(--search-green);
  border: 2px solid var(--search-green);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(40, 96, 71, 0.2);
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition:
          background-color 0.2s ease,
          border-color 0.2s ease,
          transform 0.2s ease,
          box-shadow 0.2s ease;
}

.wyszukiwarka__form-row button i {
  color: inherit;
  font-size: 17px;
}

.wyszukiwarka__form-row button:hover {
  color: #ffffff;
  background: var(--search-green-dark);
  border-color: var(--search-green-dark);
  box-shadow: 0 13px 30px rgba(40, 96, 71, 0.27);
  transform: translateY(-2px);
}

.wyszukiwarka__form-row button:focus-visible {
  color: #ffffff;
  background: var(--search-green-dark);
  border-color: var(--search-green-dark);
  outline: 3px solid #f1a63b;
  outline-offset: 4px;
}

/* Usunięcie systemowego przycisku czyszczenia w WebKit,
   jeśli zaburza wygląd pola */
.wyszukiwarka input[type="search"]::-webkit-search-cancel-button {
  cursor: pointer;
}

/* =========================================================
   PODSUMOWANIE
   ========================================================= */

.wyszukiwarka__podsumowanie {
  position: relative;
  margin-bottom: 24px;
  padding: 0 0 20px 22px;
  border-bottom: 1px solid var(--search-border);
}

.wyszukiwarka__podsumowanie::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 23px;
  left: 0;
  width: 5px;
  background: var(--search-orange);
  border-radius: 10px;
}

.wyszukiwarka__podsumowanie h2 {
  margin: 0 0 5px;
  color: var(--search-text);
  font-family: "Lora", serif;
  font-size: clamp(23px, 3vw, 30px);
  font-weight: 600;
  line-height: 1.3;
}

.wyszukiwarka__podsumowanie p {
  margin: 0;
  color: var(--search-muted);
  font-size: 14px;
  line-height: 1.6;
}

.wyszukiwarka__podsumowanie strong {
  color: var(--search-green-dark);
}

/* =========================================================
   LISTA WYNIKÓW
   ========================================================= */

.wyszukiwarka .wyniki-wyszukiwania {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: search-results;
}

.wyszukiwarka .wyniki-wyszukiwania > li {
  position: relative;
  margin: 0;
  padding: 0;
  counter-increment: search-results;
}

.wyszukiwarka .wynik-wyszukiwania {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  padding: 27px 30px 27px 88px;
  background: var(--search-white);
  border: 1px solid var(--search-border);
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(31, 76, 55, 0.07);
  transition:
          border-color 0.2s ease,
          box-shadow 0.2s ease,
          transform 0.2s ease;
}

.wyszukiwarka .wynik-wyszukiwania::before {
  content: counter(search-results, decimal-leading-zero);
  position: absolute;
  top: 27px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--search-green-dark);
  background: var(--search-green-light);
  border: 1px solid #d4e7dc;
  border-radius: 12px;
  font-family: "Lora", serif;
  font-size: 15px;
  font-weight: 700;
}

.wyszukiwarka .wynik-wyszukiwania::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: var(--search-green);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.wyszukiwarka .wynik-wyszukiwania:hover,
.wyszukiwarka .wynik-wyszukiwania:focus-within {
  border-color: #a9cdbb;
  box-shadow: 0 17px 42px rgba(31, 76, 55, 0.13);
  transform: translateY(-3px);
}

.wyszukiwarka .wynik-wyszukiwania:hover::after,
.wyszukiwarka .wynik-wyszukiwania:focus-within::after {
  transform: scaleY(1);
}

.wynik-wyszukiwania__typ {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 9px;
  padding: 6px 11px;
  color: #8b4c09;
  background: var(--search-orange-light);
  border-radius: 50px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wynik-wyszukiwania__typ::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--search-orange);
  border-radius: 50%;
}

.wyszukiwarka .lista-strona__tytul {
  margin: 0 0 12px;
  font-family: "Lora", serif;
  font-size: clamp(21px, 3vw, 27px);
  font-weight: 600;
  line-height: 1.35;
}

.wyszukiwarka .lista-strona__tytul a {
  color: var(--search-text);
  text-decoration: none;
  background-image: linear-gradient(
          var(--search-green),
          var(--search-green)
  );
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 2px;
  transition:
          color 0.2s ease,
          background-size 0.25s ease;
}

.wyszukiwarka .lista-strona__tytul a:hover {
  color: var(--search-green-dark);
  background-size: 100% 2px;
}

.wyszukiwarka .lista-strona__tytul a:focus-visible {
  color: var(--search-green-dark);
  background-size: 100% 2px;
  border-radius: 3px;
  outline: 3px solid #f1a63b;
  outline-offset: 5px;
}

.wyszukiwarka .wstep-strony {
  margin: 0;
  color: var(--search-muted);
  font-size: 14px;
  line-height: 1.75;
}

/* =========================================================
   KOMUNIKATY
   ========================================================= */

.wyszukiwarka__komunikat,
.wyszukiwarka__brak {
  position: relative;
  padding: 28px 30px 28px 82px;
  border-radius: 18px;
}

.wyszukiwarka__komunikat::before,
.wyszukiwarka__brak::before {
  position: absolute;
  top: 27px;
  left: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-family: "Font Awesome 6 Free", sans-serif;
  font-size: 17px;
  font-weight: 900;
}

.wyszukiwarka__komunikat--blad {
  color: #761c16;
  background: #fff1f0;
  border: 1px solid #efb9b4;
}

.wyszukiwarka__komunikat--blad::before {
  content: "\f071";
  color: #ffffff;
  background: #b42318;
}

.wyszukiwarka__komunikat p {
  margin: 6px 0 0;
  font-weight: 700;
  line-height: 1.6;
}

.wyszukiwarka__brak {
  color: var(--search-text);
  background: var(--search-green-light);
  border: 1px solid #cce2d6;
}

.wyszukiwarka__brak::before {
  content: "\f002";
  color: #ffffff;
  background: var(--search-green);
}

.wyszukiwarka__brak h2 {
  margin: 0 0 8px;
  color: var(--search-text);
  font-family: "Lora", serif;
  font-size: 25px;
}

.wyszukiwarka__brak p {
  margin: 0 0 17px;
  color: var(--search-muted);
  line-height: 1.7;
}

.wyszukiwarka__brak a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  color: #ffffff;
  background: var(--search-green);
  border: 2px solid var(--search-green);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.wyszukiwarka__brak a:hover {
  color: #ffffff;
  background: var(--search-green-dark);
  border-color: var(--search-green-dark);
}

.wyszukiwarka__brak a:focus-visible {
  outline: 3px solid #f1a63b;
  outline-offset: 4px;
}

/* =========================================================
   RESPONSYWNOŚĆ
   ========================================================= */

@media (max-width: 767px) {
  .wyszukiwarka {
    padding: 30px 22px;
    border-radius: 20px;
  }

  .wyszukiwarka::before {
    width: 170px;
    height: 170px;
  }

  .wyszukiwarka::after {
    display: none;
  }

  .wyszukiwarka__header {
    margin-bottom: 25px;
  }

  .wyszukiwarka__form {
    margin-bottom: 32px;
    padding: 18px;
    border-radius: 15px;
  }

  .wyszukiwarka__form-row {
    flex-direction: column;
  }

  .wyszukiwarka__form-row input[type="search"],
  .wyszukiwarka__form-row button {
    width: 100%;
    min-width: 0;
  }

  .wyszukiwarka .wynik-wyszukiwania {
    min-height: 0;
    padding: 24px 21px;
  }

  .wyszukiwarka .wynik-wyszukiwania::before {
    position: static;
    width: 38px;
    height: 38px;
    margin-bottom: 14px;
  }

  .wyszukiwarka__komunikat,
  .wyszukiwarka__brak {
    padding: 75px 22px 24px;
  }

  .wyszukiwarka__komunikat::before,
  .wyszukiwarka__brak::before {
    top: 22px;
    left: 22px;
  }
}

/* Ograniczenie animacji zgodne z preferencją użytkownika */
@media (prefers-reduced-motion: reduce) {
  .wyszukiwarka *,
  .wyszukiwarka *::before,
  .wyszukiwarka *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}