
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #d9dee6;
  color: #1b2230;
}

/* =========================
   UKŁAD OGÓLNY
========================= */

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* =========================
   GÓRNY PASEK
========================= */

.topbar {
  background: #fff;
  padding: 14px 0;
  box-shadow: 0 1px 0 rgba(0,0,0,.05);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #111;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #c7a86a;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: .9rem;
  color: #2b3452;
}

.brand-name {
  font-size: .95rem;
  line-height: 1.1;
}

.nav {
  display: flex;
  gap: 24px;
  font-size: .8rem;
  letter-spacing: .08em;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a {
  text-decoration: none;
  color: #1d2432;
}

/* =========================
   HERO
========================= */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
  background: #0d1f3d;
  color: #fff;
  min-height: 330px;
  overflow: hidden;
}

.hero-image {
  height: 730px;
  position: relative;
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(5,14,33,.18),
    rgba(5,14,33,.18)
  );
  pointer-events: none;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('naglowek_strona_v1.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  right: 24px;
  top: 24px;
  z-index: 2;
  max-width: 260px;
  background: rgba(13,31,61,.72);
  padding: 12px 14px;
  border-radius: 10px;
}

.hero-copy h1 {
  color: #fff;
  font-size: 26px;
  line-height: 1.1;
  margin: 0 0 8px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
}

.hero-copy p {
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  margin: 0 0 10px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,.35);
}

.hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-actions a {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .04em;
}

/* =========================
   KAFELKI
========================= */

.services {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 10px;
  background: #f7efe4;
  padding: 14px 20px;
  margin-top: -1px;
}

.services div {
  background: #fff;
  border-radius: 12px;
  padding: 12px 10px;
  font-size: 10px;
  text-align: center;
  color: #364055;
  box-shadow: 0 3px 12px rgba(0,0,0,.08);
}

/* =========================
   WYDARZENIA
========================= */

.events {
  background: #fff;
  padding: 34px 0;
}

.events h2 {
  text-align: center;
  letter-spacing: .08em;
  font-size: 18px;
  margin: 0 0 20px;
  color: #31384a;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
}

.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  overflow: hidden;
  position: relative;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-link:hover h3 {
  text-decoration: underline;
}

.card:hover {
  box-shadow: 0 12px 28px rgba(0,0,0,.14);
  transform: translateY(-2px);
  transition: all .2s ease;
}

.thumb {
  height: 144px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.date {
  position: absolute;
  left: 10px;
  top: 10px;
  background: #20355e;
  color: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  text-align: center;
  z-index: 2;
}

.date span {
  display: block;
  font-size: 10px;
  letter-spacing: .06em;
  font-weight: 600;
}

.card h3 {
  font-size: 14px;
  line-height: 1.25;
  padding: 14px 14px 6px;
  margin: 0;
  color: #1f2634;
}

.card p {
  font-size: 12px;
  line-height: 1.5;
  color: #6a7280;
  padding: 0 14px 16px;
  margin: 0;
}

/* =========================
   O NAS
========================= */

.about {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px 0 34px;
}

.about-img {
  height: 200px;
  border-radius: 12px;
  background: url('06082026.png') center/cover;
}

.about-copy h2 {
  margin: 0 0 8px;
  letter-spacing: .08em;
  color: #31384a;
}

.about-copy p {
  margin: 0 0 12px;
  color: #545d6b;
  line-height: 1.55;
  font-size: 13px;
}

.about-copy a {
  display: inline-block;
  padding: 10px 16px;
  background: #20355e;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 12px;
}

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

.footer {
  background: #10284a;
  color: #fff;
  padding: 28px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 24px;
}

.footer h4 {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: .08em;
}

.footer p {
  margin: 0;
  color: #dce5f6;
  font-size: 12px;
  line-height: 1.7;
}

.newsletter {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.newsletter input {
  flex: 1;
  padding: 10px;
  border-radius: 4px;
  border: 0;
}

.newsletter button {
  padding: 10px 14px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  border-radius: 4px;
  font-size: 12px;
}

/* =========================
   ARTYKUŁ
========================= */

.article-page {
  width: 100%;
  background: #d9dee6;
  padding: 60px 0 40px;
  min-height: calc(100vh - 180px);
}

.article-center {
  width: min(800px, calc(100% - 40px));
  margin: 0 auto;
}

.event-full {
  max-width: 800px;
  margin: 0 auto;
}

.event-detail {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
  overflow: hidden;
}

.event-image {
  height: 260px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.event-date-badge {
  position: absolute;
  left: 16px;
  top: 16px;
  background: #20355e;
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  text-align: center;
}

.event-date-badge span {
  display: block;
  font-size: 10px;
  letter-spacing: .06em;
}

.event-title {
  font-size: 24px;
  margin: 20px 20px 10px;
  color: #1f2634;
}

.event-body {
  padding: 0 20px 24px;
  font-size: 14px;
  line-height: 1.7;
  color: #454c5a;
}

.article-back {
  text-align: center;
  margin: 20px 0 0;
}

.article-back a {
  display: inline-block;
  padding: 10px 16px;
  background: #20355e;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
}

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

.category-news {
  padding: 34px 0 40px;
  background: #d9dee6;
}

.category-news .wrap {
  max-width: 980px;
  margin: 0 auto;
}

.category-news h2,
.older-title {
  text-align: center;
  margin: 0 0 24px;
  color: #31384a;
  letter-spacing: .08em;
}

.category-news .cards {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
  justify-content: center;
}

.category-news .card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.category-news .card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.category-news .thumb {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.category-news .date {
  position: absolute;
  left: 10px;
  top: 10px;
  background: #20355e;
  color: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  text-align: center;
  z-index: 2;
}

.category-news .date span {
  display: block;
  font-size: 10px;
  letter-spacing: .06em;
  font-weight: 600;
}

.category-news .card h3 {
  font-size: 14px;
  line-height: 1.25;
  padding: 14px 14px 6px;
  margin: 0;
  color: #1f2634;
}

.category-news .card p {
  font-size: 12px;
  line-height: 1.5;
  color: #6a7280;
  padding: 0 14px 16px;
  margin: 0;
}

/* =========================
   SLIDER
========================= */

.news-slider {
  position: relative;
  max-width: 1000px;
  margin: 0 auto 40px;
}

.slide {
  display: none;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

.slide.active {
  display: block;
  animation: fade .5s ease;
}

@keyframes fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.slide-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.slide-image {
  height: 460px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.slide-content {
  padding: 24px;
  background: #fff;
  color: #1f2634;
}

.slide-date {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 12px;
  background: #20355e;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
}

.slide-content h3 {
  margin: 0 0 12px;
  font-size: 28px;
  color: #20355e;
}

.slide-content p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #555;
}

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

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 34px 0 20px;
}

.pagination a {
  display: inline-block;
  min-width: 36px;
  height: 36px;
  line-height: 36px;
  padding: 0 12px;
  border: 1px solid #cfd6e6;
  border-radius: 6px;
  background: #fff;
  color: #20355e;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.pagination a:hover {
  background: #f0f4fa;
}

.pagination a.active {
  background: #20355e;
  color: #fff;
  border-color: #20355e;
}

.pagination a.prev,
.pagination a.next {
  background: #f7efe4;
  border-color: #e6dccf;
}

/* =========================
   NAGŁÓWKI AKTUALNOŚCI
========================= */

.news h2 {
  display: block;
  width: 100%;
  text-align: center;
  margin: 0 0 24px;
  letter-spacing: .08em;
  font-size: 24px;
  color: #31384a;
}

#aktualnosci-title {
  display: block;
  width: 100%;
  text-align: center;
  margin: 34px 0 24px;
  letter-spacing: .08em;
  color: #31384a;
}

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

.search-form {
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-form input[type="text"] {
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid #cfd6e6;
  font-size: 12px;
}

.search-form button {
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #cfd6e6;
  background: #20355e;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

/* =========================
   PANEL DOSTĘPNOŚCI
   JEDYNA WERSJA
========================= */

#accessibility-panel {
  position: fixed !important;
  top: 50% !important;
  right: 0 !important;

  transform: translateY(-50%) !important;

  z-index: 999999 !important;

  display: flex !important;
  align-items: center !important;

  pointer-events: auto !important;
}

/* IKONA */

#acc-toggle {
  width: 55px !important;
  height: 55px !important;

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

  border: none !important;
  border-radius: 8px 0 0 8px !important;

  background: #005bbb !important;
  color: #fff !important;

  font-size: 26px !important;

  cursor: pointer !important;

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

  position: relative !important;

  z-index: 999999 !important;

  pointer-events: auto !important;
}

/* MENU */

#acc-menu {
  display: flex !important;
  flex-direction: column !important;

  gap: 6px !important;

  padding: 10px !important;
  margin: 0 !important;

  background: #fff !important;

  border: 1px solid #ccc !important;

  border-right: none !important;

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

  box-shadow: 0 2px 12px rgba(0,0,0,.3) !important;

  position: relative !important;

  z-index: 999999 !important;
}

/*
   NAJWAŻNIEJSZA REGUŁA:
   hidden zawsze ukrywa menu.
*/

#acc-menu[hidden] {
  display: none !important;
}

/* PRZYCISKI */

#acc-menu button {
  min-width: 110px !important;
  min-height: 42px !important;

  padding: 8px 12px !important;

  border: 1px solid #aaa !important;

  border-radius: 5px !important;

  background: #f5f5f5 !important;

  color: #111 !important;

  font-size: 14px !important;

  cursor: pointer !important;
}

#acc-menu button:hover {
  background: #ddd !important;
}

/* FOCUS */

#acc-toggle:focus-visible,
#acc-menu button:focus-visible {
  outline: 3px solid #0066cc !important;
  outline-offset: 2px !important;
}

/* =========================
   SKIP LINK
========================= */

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 20px;
  top: 20px;
  z-index: 100000;
  background: #000;
  color: #fff;
  padding: 10px;
}

/* =========================
   WYSOKI KONTRAST
========================= */

body.high-contrast {
  background: #000 !important;
  color: #fff !important;
}

body.high-contrast a {
  color: #ffff00 !important;
  text-decoration: underline;
}

body.high-contrast h1,
body.high-contrast h2,
body.high-contrast h3,
body.high-contrast h4,
body.high-contrast h5,
body.high-contrast h6,
body.high-contrast p,
body.high-contrast span,
body.high-contrast li,
body.high-contrast label {
  color: #fff !important;
}

body.high-contrast header,
body.high-contrast footer,
body.high-contrast section,
body.high-contrast article,
body.high-contrast nav,
body.high-contrast .card,
body.high-contrast .slide-content,
body.high-contrast .about,
body.high-contrast .services,
body.high-contrast .slide {
  background: #000 !important;
  color: #fff !important;
}

body.high-contrast button,
body.high-contrast input,
body.high-contrast textarea,
body.high-contrast select {
  background: #000 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
}

body.high-contrast img {
  filter: grayscale(100%);
}

/* =========================
   ZAZNACZANIE TEKSTU
========================= */

.slide-content,
.slide-content h3,
.slide-content p,
.card h3,
.card p {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
  cursor: text;
}

.slide-link,
.card-link {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

.slide-title-link,
.card h3 a {
  color: #20355e;
  text-decoration: none;
}

.slide-title-link:hover,
.card h3 a:hover {
  text-decoration: underline;
}

.slide-image-link,
.card-image-link {
  display: block;
  cursor: pointer;
}

.slide-content,
.slide-content h3,
.slide-content p,
.card h3,
.card p {
  position: relative;
  z-index: 5;
}

.slide-content p,
.card-link p {
  cursor: text;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

button,
.nav a,
.hero-actions a {
  user-select: none;
}

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

@media (max-width: 900px) {

  .nav {
    display: none;
  }

  .services,
  .cards,
  .about,
  .footer-grid,
  .category-news .cards {
    grid-template-columns: 1fr;
  }

  .hero-image {
    height: 420px;
  }

  .hero-copy {
    right: 16px;
    bottom: 16px;
    max-width: 70%;
  }

  .hero-copy h1 {
    font-size: 22px;
  }

  .slide-image {
    height: 260px;
  }

  .slide-content {
    padding: 18px;
  }

  .slide-content h3 {
    font-size: 22px;
  }

  .article-page {
    padding: 40px 0 30px;
  }
}

@media (max-width: 600px) {

  #acc-toggle {
    width: 50px !important;
    height: 50px !important;
    font-size: 23px !important;
  }

  #acc-menu button {
    min-width: 95px !important;
    min-height: 40px !important;
    font-size: 13px !important;
  }
}

header,
.topbar,
.topbar-inner,
.brand,
.brand-name,
.nav,
.nav a {
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
}
/* =================================================
   OBRAZY AKTUALNOŚCI I ARTYKUŁÓW — BEZ PRZYCINANIA
================================================= */

.slide-image,
.category-news .thumb,
.event-image {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;

    aspect-ratio: 16 / 9;

    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: #ffffff;

    overflow: hidden;
}

/* Duża aktualność */
.slide-image {
    min-height: 300px !important;
}

/* Starsze aktualności */
.category-news .thumb {
    min-height: 180px !important;
}

/* Obraz w pojedynczym artykule */
.event-image {
    min-height: 260px !important;
}

/* Jeżeli artykuł zawiera prawdziwy znacznik <img> */
.event-image img,
.event-detail img,
.article-page img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
}
@media (max-width: 600px) {

    .slide-image,
    .category-news .thumb,
    .event-image {
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 16 / 9;

        background-size: contain !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }

    .slide-image {
        min-height: 220px !important;
    }

    .category-news .thumb {
        min-height: 150px !important;
    }

    .event-image {
        min-height: 200px !important;
    }
}
.rodo-item a {
    display: block;
    color: inherit;
    text-decoration: none;
    user-select: text;
    -webkit-user-select: text;
}

.rodo-item a:hover,
.rodo-item a:focus {
    color: inherit;
    text-decoration: underline;
}
.osw-item a {
    display: block;
    color: inherit;
    text-decoration: none;
    user-select: text;
    -webkit-user-select: text;
}

.osw-item a:hover,
.osw-item a:focus {
    color: inherit;
    text-decoration: underline;
}
.rap-item a {
    display: block;
    color: inherit;
    text-decoration: none;
    user-select: text;
    -webkit-user-select: text;
}

.rap-item a:hover,
.rap-item a:focus {
    color: inherit;
    text-decoration: underline;
}
.oswb-item a {
    display: block;
    color: inherit;
    text-decoration: none;
    user-select: text;
    -webkit-user-select: text;
}

.oswb-item a:hover,
.oswb-item a:focus {
    color: inherit;
    text-decoration: underline;
}
.de-item a {
    display: block;
    color: inherit;
    text-decoration: none;
    user-select: text;
    -webkit-user-select: text;
}

.de-item a:hover,
.de-item a:focus {
    color: inherit;
    text-decoration: underline;
}
.BIP-item a {
    display: block;
    color: inherit;
    text-decoration: none;
    user-select: text;
    -webkit-user-select: text;
}

.BIP-item a:hover,
.BIP-item a:focus {
    color: inherit;
    text-decoration: underline;
}
.BIPB-item a {
    display: block;
    color: inherit;
    text-decoration: none;
    user-select: text;
    -webkit-user-select: text;
}

.BIPB-item a:hover,
.BIPB-item a:focus {
    color: inherit;
    text-decoration: underline;
}
/* ===================================================== BANER COOKIES ====================================================== */ .cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998; background: #ffffff; color: #111111; border-top: 3px solid #222222; box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.18); padding: 18px 20px; font-size: 16px; } .cookie-banner-inner { width: min(1100px, calc(100% - 20px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; } .cookie-text { flex: 1; } .cookie-text strong { display: block; font-size: 19px; margin-bottom: 6px; } .cookie-text p { margin: 0 0 6px; line-height: 1.5; } .cookie-text a { color: #111111; text-decoration: underline; font-weight: 600; } .cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; } .cookie-btn { border: 2px solid #111111; padding: 11px 20px; min-width: 120px; font-size: 16px; font-weight: 700; cursor: pointer; border-radius: 4px; } .cookie-accept { background: #111111; color: #ffffff; } .cookie-reject { background: #ffffff; color: #111111; } .cookie-btn:hover, .cookie-btn:focus { outline: 3px solid #777777; outline-offset: 2px; } .cookie-hidden { display: none; } /* ===================================================== MOBILE ====================================================== */ @media (max-width: 700px) { .cookie-banner { padding: 15px; } .cookie-banner-inner { width: 100%; flex-direction: column; align-items: stretch; gap: 15px; } .cookie-buttons { display: grid; grid-template-columns: 1fr 1fr; width: 100%; } .cookie-btn { width: 100%; min-width: 0; } } /* ===================================================== WYSOKI KONTRAST ====================================================== */ html.high-contrast .cookie-banner, body.high-contrast .cookie-banner { background: #000000; color: #ffffff; border-color: #ffffff; } html.high-contrast .cookie-text a, body.high-contrast .cookie-text a { color: #ffffff; } html.high-contrast .cookie-accept { background: #ffffff; color: #000000; } html.high-contrast .cookie-reject { background: #000000; color: #ffffff; border-color: #ffffff; }