:root {
  --brand-navy: #073763;
  --brand-blue: #075db8;
  --brand-blue-dark: #06477f;
  --brand-green: #7fb83d;
  --text-main: #182433;
  --text-muted: #536579;
  --surface: #ffffff;
  --surface-soft: #f2f6fa;
  --border: #dce5ee;
  --body-font-scale: 1;
}
html { scroll-behavior: smooth; font-size: calc(16px * var(--body-font-scale)); }
body { margin: 0; color: var(--text-main); background: #fff; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.6; }
a { color: #0757a5; text-underline-offset: .16em; }
a:hover { color: #033d78; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #e6a700 !important; outline-offset: 3px; box-shadow: none !important; }
.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 2000; padding: .75rem 1rem; color: #fff; background: #000; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.utility-bar { color: #fff; background: var(--brand-navy); }
.utility-links { display: flex; gap: 1rem; }
.utility-links a { color: #fff; }
.site-header { background: #fff; box-shadow: 0 2px 12px #0a2f5010; position: relative; z-index: 10; }
.brand { color: var(--brand-navy); min-width: max-content; }
.brand:hover { color: var(--brand-blue); }
.brand-mark { width: 3.2rem; height: 3.2rem; display: block; flex: 0 0 auto; object-fit: contain; padding: 2px; border: 2px solid #d5e5f5; border-radius: .4rem; background: #fff; }
.brand-title { font-size: 1.55rem; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.brand-subtitle { color: var(--text-muted); font-size: .86rem; }
.site-search { display: flex; width: min(36rem, 45%); }
.site-search .form-control { border-radius: .4rem 0 0 .4rem; min-height: 2.8rem; }
.site-search .btn { border-radius: 0 .4rem .4rem 0; }
.accessibility-tools { gap: .3rem; }
.main-nav { padding: 0; background: #f2f6fa; border-top: 1px solid var(--border); }
.main-nav .nav-link { color: #183956; font-weight: 650; padding: 1rem .9rem; }
.main-nav .nav-link:hover, .main-nav .nav-link:focus, .main-nav .nav-link.active { color: #064e9d; background: #e3edf7; }
.dropdown-menu { border-color: var(--border); box-shadow: 0 .5rem 1.5rem #0c2f5018; padding: .4rem; }
.dropdown-item { border-radius: .25rem; padding: .55rem .8rem; }
.btn-primary { --bs-btn-bg: #075db8; --bs-btn-border-color: #075db8; --bs-btn-hover-bg: #06477f; --bs-btn-hover-border-color: #06477f; --bs-btn-focus-shadow-rgb: 7,93,184; }
.hero-section { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #123f5d; }
.hero-section::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("https://images.unsplash.com/photo-1500375592092-40eb2168fd21?auto=format&fit=crop&w=2000&q=85") center 48% / cover no-repeat; }
.hero-section::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(2 32 55 / 86%) 0%, rgb(2 32 55 / 55%) 48%, rgb(2 32 55 / 15%) 100%); }
.hero-section > .container { min-height: 410px; padding-top: 3.5rem; padding-bottom: 3.5rem; display: flex; align-items: center; gap: 3rem; }
.hero-content { max-width: 42rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .09em; font-size: .78rem; font-weight: 800; }
.hero-content h1 { font-size: clamp(2.6rem, 5vw, 4.5rem); line-height: 1.05; font-weight: 800; letter-spacing: -.04em; margin-bottom: .3rem; }
.hero-lead { font-size: clamp(1.35rem, 2.4vw, 2rem); font-weight: 650; margin-bottom: 1rem; }
.hero-copy { max-width: 34rem; font-size: 1.1rem; margin-bottom: 1.5rem; }
.hero-shortcuts { width: 19rem; flex: 0 0 19rem; margin-left: auto; display: grid; gap: .65rem; }
.shortcut-card { display: grid; grid-template-columns: 2.2rem 1fr auto; align-items: center; gap: .7rem; background: #fff; color: var(--brand-navy); border-radius: .5rem; padding: .8rem .9rem; text-decoration: none; box-shadow: 0 .25rem .9rem #001a2d24; }
.shortcut-card:hover { color: var(--brand-blue); transform: translateX(-2px); }
.shortcut-icon { font-size: 1.55rem; text-align: center; color: var(--brand-blue); }
.shortcut-card strong, .shortcut-card small { display: block; }
.shortcut-card small { color: var(--text-muted); font-size: .78rem; }
.section-space { padding: 4rem 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.section-heading h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--brand-navy); margin: 0; }
.text-link { display: inline-flex; gap: .35rem; align-items: center; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.news-tabs { border-bottom-color: var(--border); gap: .4rem; }
.news-tabs .nav-link { color: var(--text-muted); font-weight: 650; border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: .75rem .8rem; }
.news-tabs .nav-link.active { color: var(--brand-blue); border-bottom-color: var(--brand-blue); background: transparent; }
.news-card { border: 1px solid var(--border); border-radius: .5rem; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.news-card:hover { box-shadow: 0 .5rem 1.5rem #0a2f5012; }
.news-image { display: block; min-height: 145px; background-color: #dce8f2; background-size: cover; background-position: center; }
.lake-image { background-image: url("https://images.unsplash.com/photo-1500375592092-40eb2168fd21?auto=format&fit=crop&w=1000&q=80"); }
.road-image { background-image: url("https://images.unsplash.com/photo-1519608487953-e999c86e7455?auto=format&fit=crop&w=1000&q=80"); }
.event-image { background-image: url("https://images.unsplash.com/photo-1511632765486-a01980e01a18?auto=format&fit=crop&w=1000&q=80"); }
.nature-image { background-image: url("https://images.unsplash.com/photo-1470770841072-f978cf4d019e?auto=format&fit=crop&w=1000&q=80"); }
.news-card-body { padding: 1rem; display: flex; flex-direction: column; align-items: start; flex: 1; }
.news-meta { color: var(--text-muted); font-size: .82rem; margin-bottom: .5rem; }
.news-card h3 { font-size: 1.05rem; line-height: 1.35; font-weight: 800; }
.news-card h3 a, .listing-item h2 a { color: var(--brand-navy); text-decoration: none; }
.news-card h3 a:hover, .listing-item h2 a:hover { color: var(--brand-blue); text-decoration: underline; }
.news-card-body > p:not(.news-meta) { font-size: .9rem; color: #405064; }
.news-card-body .text-link { margin-top: auto; padding-top: .4rem; }
.sidebar-panel { border: 1px solid var(--border); border-radius: .55rem; padding: 1.25rem; background: #fff; }
.sidebar-title { color: var(--brand-navy); font-size: 1.15rem; font-weight: 800; margin-bottom: 1rem; }
.quick-links, .sidebar-news, .site-footer ul { list-style: none; margin: 0; padding: 0; }
.quick-links li + li, .sidebar-news li + li { border-top: 1px solid var(--border); }
.quick-links a { display: block; padding: .55rem 0; text-decoration: none; font-weight: 600; }
.quick-links a::before { content: "›"; color: var(--brand-blue); font-weight: 900; margin-right: .6rem; }
.sidebar-news li { padding: .8rem 0; }
.sidebar-news li:first-child { padding-top: 0; }
.sidebar-news a { display: block; font-weight: 700; text-decoration: none; }
.sidebar-news span { color: var(--text-muted); font-size: .8rem; }
.map-promo { border-radius: .55rem; padding: 1.5rem; color: #fff; background: linear-gradient(135deg, #073763, #087b9c); }
.map-promo h2 { font-size: 1.5rem; font-weight: 800; }
.map-promo p:not(.eyebrow) { color: #e6f2fb; }
.audience-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface-soft); border-radius: .6rem; padding: 1rem; gap: .4rem; }
.audience-strip a { padding: .8rem; display: grid; grid-template-columns: auto 1fr; column-gap: .7rem; align-items: center; text-decoration: none; color: var(--brand-navy); border-radius: .4rem; }
.audience-strip a:hover { background: #e2edf7; }
.audience-strip a > span { grid-row: span 2; color: var(--brand-blue); font-size: 1.6rem; }
.audience-strip strong { font-size: .88rem; }
.audience-strip small { color: var(--text-muted); }
.site-footer { background: #062c4b; color: #f3f7fb; }
.site-footer h2 { font-size: 1rem; font-weight: 800; margin-bottom: 1rem; }
.site-footer a { color: #e0efff; }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; line-height: 1.9; }
.site-footer ul li { margin-bottom: .45rem; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand strong, .footer-brand span:not(.brand-mark) { display: block; }
.footer-brand strong { font-size: 1.2rem; }
.footer-brand .brand-mark { border-color: #68849c; }
.footer-description { color: #c8d8e6; margin-top: 1rem; }
.footer-bottom { border-top: 1px solid #ffffff2b; color: #d5e3ef; font-size: .86rem; }
.accessibility-panel { padding: 1rem; border: 2px solid var(--brand-blue); border-radius: .5rem; background: #f7fbff; color: var(--text-main); }
.back-to-top { position: fixed; z-index: 100; right: 1rem; bottom: 1rem; width: 2.8rem; height: 2.8rem; border: 0; border-radius: 50%; background: var(--brand-blue); color: #fff; font-size: 1.5rem; box-shadow: 0 2px 12px #0003; }
.page-banner { background: var(--surface-soft); padding: 2.5rem 0; border-bottom: 1px solid var(--border); }
.page-banner h1 { color: var(--brand-navy); font-weight: 850; letter-spacing: -.025em; font-size: clamp(2rem, 4vw, 3rem); }
.breadcrumb { font-size: .9rem; }
.breadcrumb-item a { color: var(--brand-blue); }
.listing-item { display: grid; grid-template-columns: minmax(160px, 240px) 1fr; gap: 1.25rem; padding: 1.4rem 0; border-bottom: 1px solid var(--border); }
.listing-item:first-of-type { padding-top: 0; }
.listing-image { min-height: 165px; border-radius: .5rem; background-size: cover; background-position: center; }
.listing-item h2 { font-size: 1.35rem; font-weight: 800; }
.listing-item p:not(.news-meta) { color: #405064; }
.pagination { gap: .2rem; }
.page-link { color: var(--brand-blue); border-radius: .25rem !important; }
.page-item.active .page-link { background: var(--brand-blue); border-color: var(--brand-blue); }
.notice-box { padding: 1.5rem; border: 1px solid var(--border); border-radius: .5rem; background: var(--surface-soft); }
.article-content { font-size: 1.05rem; }
.article-content h2 { color: var(--brand-navy); font-size: 1.6rem; font-weight: 800; margin-top: 2rem; margin-bottom: .8rem; }
.article-hero { width: 100%; aspect-ratio: 16 / 9; border-radius: .65rem; margin-bottom: 1.6rem; background-size: cover; background-position: center; }
.download-list { list-style: none; padding: 0; }
.download-list li { border: 1px solid var(--border); border-radius: .4rem; margin-bottom: .7rem; }
.download-list a { display: flex; align-items: center; gap: .8rem; padding: 1rem; text-decoration: none; }
.download-list strong, .download-list small { display: block; }
.download-list small { color: var(--text-muted); }
.article-share { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: 1rem; background: var(--surface-soft); border-radius: .5rem; }
/* Mocny tryb wysokiego kontrastu obejmuje także treść artykułów i komponenty Bootstrap. */
body.high-contrast, body.high-contrast main, body.high-contrast article,
body.high-contrast .article-body, body.high-contrast .article-layout,
body.high-contrast .section-space, body.high-contrast .page-banner,
body.high-contrast .news-card, body.high-contrast .news-card-body,
body.high-contrast .listing-item, body.high-contrast .sidebar-panel,
body.high-contrast .notice-box, body.high-contrast .list-group-item,
body.high-contrast .card, body.high-contrast .card-body,
body.high-contrast .modal-content, body.high-contrast .accessibility-panel {
  color: #000 !important; background: #fff !important; border-color: #000 !important;
}
body.high-contrast { --brand-navy:#000; --brand-blue:#0000cc; --brand-blue-dark:#000; --brand-green:#ff0; --text-main:#000; --text-muted:#222; --surface:#fff; --surface-soft:#fff; --border:#000; background:#fff !important; color:#000 !important; }
body.high-contrast * { box-shadow: none !important; text-shadow: none !important; }
body.high-contrast a, body.high-contrast a *, body.high-contrast .nav-link,
body.high-contrast .text-primary, body.high-contrast .breadcrumb-item a,
body.high-contrast .news-card h3 a, body.high-contrast .listing-item h2 a {
  color: #0000cc !important; text-decoration: underline !important;
}
body.high-contrast .utility-bar, body.high-contrast .site-footer,
body.high-contrast .main-nav, body.high-contrast .map-promo,
body.high-contrast .hero-section, body.high-contrast .hero-section::before,
body.high-contrast .hero-section::after { background: #000 !important; background-image: none !important; color:#fff !important; }
body.high-contrast .utility-bar *, body.high-contrast .site-footer *,
body.high-contrast .hero-section *, body.high-contrast .map-promo * { color:#fff !important; }
body.high-contrast .btn, body.high-contrast button, body.high-contrast .page-link {
  color:#000 !important; background:#ff0 !important; border:2px solid #000 !important; text-decoration:underline !important;
}
body.high-contrast input, body.high-contrast textarea, body.high-contrast select {
  color:#000 !important; background:#fff !important; border:2px solid #000 !important;
}
body.high-contrast .news-meta, body.high-contrast .text-muted, body.high-contrast .form-text,
body.high-contrast small, body.high-contrast .lead { color:#111 !important; }
body.high-contrast .article-body p, body.high-contrast .article-body li,
body.high-contrast .article-body h2, body.high-contrast .article-body h3 { color:#000 !important; background:#fff !important; }
/* v62: kafelki strony głównej i banery pozostają czytelne w trybie wysokiego kontrastu. */
body.high-contrast .shortcut-card,
body.high-contrast .shortcut-card:hover,
body.high-contrast .shortcut-card:focus-visible,
body.high-contrast .sidebar-banner,
body.high-contrast .sidebar-banner:hover,
body.high-contrast .sidebar-banner:focus-visible,
body.high-contrast .footer-tiles,
body.high-contrast .footer-tile,
body.high-contrast .footer-tile:hover,
body.high-contrast .footer-tile:focus-visible {
  background: #000 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
  text-decoration: underline !important;
}
body.high-contrast .shortcut-card *,
body.high-contrast .sidebar-banner *,
body.high-contrast .footer-tile * {
  color: #fff !important;
}
body.high-contrast .shortcut-card small,
body.high-contrast .sidebar-banner-text small,
body.high-contrast .sidebar-banner-arrow,
body.high-contrast .footer-tile small {
  color: #fff !important;
}
body.high-contrast .shortcut-icon,
body.high-contrast .sidebar-banner-icon,
body.high-contrast .footer-tile-icon,
body.high-contrast .sidebar-banner img {
  background: #000 !important;
  color: #ff0 !important;
  border: 1px solid #fff !important;
}
body.high-contrast .shortcut-card:focus-visible,
body.high-contrast .sidebar-banner:focus-visible,
body.high-contrast .footer-tile:focus-visible {
  outline: 3px solid #ff0 !important;
  outline-offset: 3px !important;
}

body.wide-text-spacing { line-height: 2 !important; letter-spacing: .04em; word-spacing: .12em; }
body.wide-text-spacing p, body.wide-text-spacing li, body.wide-text-spacing .article-body { line-height: 2 !important; }
body.all-links-underlined a { text-decoration: underline !important; text-decoration-thickness: .12em !important; text-underline-offset: .18em !important; }
.accessibility-panel[hidden] { display:none !important; }
.accessibility-panel { margin-top:.75rem; }
.accessibility-panel button[aria-pressed="true"] { outline:3px solid #e6a700; outline-offset:2px; }
@media (max-width: 991.98px) {
  .header-main { flex-wrap: wrap; }
  .site-search { order: 3; width: 100%; }
  .navbar-toggler { margin-left: auto; }
  .main-nav .nav-link { padding: .75rem .5rem; }
  .hero-section > .container { align-items: stretch; flex-direction: column; gap: 2rem; padding-top: 3rem; padding-bottom: 3rem; }
  .hero-shortcuts { width: 100%; flex: 1 1 auto; margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shortcut-card:last-child { grid-column: 1 / -1; }
  .audience-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
  .utility-bar .container { display: block !important; }
  .utility-links { margin-top: .35rem; }
  .brand { min-width: 0; }
  .brand-mark { width: 2.7rem; height: 2.7rem; }
  .brand-title { font-size: 1.25rem; }
  .brand-subtitle { font-size: .75rem; }
  .hero-section > .container { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .hero-shortcuts { grid-template-columns: 1fr; }
  .shortcut-card:last-child { grid-column: auto; }
  .section-space { padding: 2.5rem 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .news-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .news-tabs .nav-link { white-space: nowrap; }
  .audience-strip { grid-template-columns: 1fr; }
  .listing-item { grid-template-columns: 1fr; }
  .listing-image { min-height: 190px; }
  .site-footer .row { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .utility-bar, .main-nav, .site-search, .accessibility-tools, .accessibility-panel, .back-to-top, .site-footer { display: none !important; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}


/* Galerie */
.gallery-card { overflow: hidden; border: 1px solid var(--border); border-radius: .55rem; background: #fff; }
.gallery-cover { display: block; position: relative; aspect-ratio: 16 / 10; background-size: cover; background-position: center; }
.gallery-cover::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgb(0 0 0 / 40%)); }
.gallery-count { position: absolute; z-index: 1; right: .75rem; bottom: .75rem; color: #fff; background: rgb(0 0 0 / 75%); border-radius: 2rem; padding: .25rem .7rem; font-size: .82rem; font-weight: 700; }
.gallery-card-body { padding: 1.1rem; }
.gallery-card h2 { font-size: 1.25rem; font-weight: 800; }
.gallery-card h2 a { color: var(--brand-navy); text-decoration: none; }
.gallery-card h2 a:hover { text-decoration: underline; color: var(--brand-blue); }
.gallery-event-1 { background-image: url("https://images.unsplash.com/photo-1501386761578-eac5c94b800a?auto=format&fit=crop&w=1200&q=80"); }
.gallery-event-2 { background-image: url("https://images.unsplash.com/photo-1492684223066-81342ee5ff30?auto=format&fit=crop&w=1200&q=80"); }
.gallery-event-3 { background-image: url("https://images.unsplash.com/photo-1511795409834-ef04bbd61622?auto=format&fit=crop&w=1200&q=80"); }
.gallery-event-4 { background-image: url("https://images.unsplash.com/photo-1523580494863-6f3031224c94?auto=format&fit=crop&w=1200&q=80"); }
.gallery-event-5 { background-image: url("https://images.unsplash.com/photo-1461896836934-ffe607ba8211?auto=format&fit=crop&w=1200&q=80"); }
.gallery-event-6 { background-image: url("https://images.unsplash.com/photo-1533174072545-7a4b6ad7a6c3?auto=format&fit=crop&w=1200&q=80"); }
.random-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.gallery-thumb { display: block; aspect-ratio: 4 / 3; border-radius: .35rem; background-size: cover; background-position: center; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 155px; gap: .65rem; }
.photo-tile { display: block; width: 100%; min-width: 0; border: 0; border-radius: .45rem; background-color: #dce8f2; background-size: cover; background-position: center; cursor: zoom-in; }
.photo-tile:hover { filter: brightness(.9); }
.photo-tile.photo-large { grid-column: span 2; grid-row: span 2; }
.lightbox-placeholder { width: 100%; min-height: 55vh; border-radius: .4rem; background-size: contain; background-repeat: no-repeat; background-position: center; background-color: #101820; }
.gallery-details dt { color: var(--text-muted); font-size: .85rem; }
.gallery-details dd { font-weight: 700; margin-bottom: 1rem; }
@media (max-width: 575.98px) {
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 125px; gap: .45rem; }
  .photo-tile.photo-large { grid-column: span 2; grid-row: span 1; }
}



/* Mobilne menu: widoczny przycisk hamburgera na jasnym nagłówku */
.navbar-toggler {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: .45rem .6rem;
  border: 1px solid #9aafc3;
  border-radius: .4rem;
  background: #fff;
  color: var(--brand-navy);
}
.navbar-toggler:focus-visible {
  outline: 3px solid #e6a700 !important;
  outline-offset: 3px;
}
.navbar-toggler-icon {
  width: 1.5rem;
  height: 1.5rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23073763' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.4' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100%;
}
@media (max-width: 991.98px) {
  .header-main { position: relative; }
  .header-main > .navbar-toggler { order: 2; flex: 0 0 44px; margin-left: auto; }
  .header-main > .site-search { order: 3; flex: 0 0 100%; width: 100%; }
  .main-nav .navbar-collapse { padding-bottom: .5rem; }
  .main-nav .navbar-nav { padding-top: .25rem; }
  .main-nav .nav-item { border-top: 1px solid var(--border); }
  .main-nav .nav-link { display: block; padding: .8rem .65rem; }
  .main-nav .dropdown-menu { margin: 0 .5rem .5rem; box-shadow: none; }
}


/* Wymuszenie widoczności i poprawne pozycjonowanie hamburgera na małych ekranach */
@media (max-width: 991.98px) {
  header .header-main > button.navbar-toggler.d-lg-none {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 30;
    order: 2;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    align-self: center;
  }
  header .header-main > a.brand {
    order: 1;
    flex: 0 1 auto;
    max-width: calc(100% - 56px);
  }
  header .header-main > a.brand .brand-title {
    white-space: nowrap;
  }
  header .header-main > form.site-search {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    margin-left: 0 !important;
  }
  header .header-main > .accessibility-tools {
    display: none !important;
  }
}


/* Miniatury zdjęć w artykule i powiększanie w oknie lightbox */
.article-photo-button { display:block; width:100%; padding:0; border:0; border-radius:.5rem; background:#eef2f5; cursor:zoom-in; overflow:hidden; }
.article-photo-button:focus-visible { outline:3px solid #e6a700; outline-offset:3px; }
.article-thumbnail { display:block; width:100%; height:190px; object-fit:cover; transition:transform .18s ease; }
.article-photo-button:hover .article-thumbnail { transform:scale(1.035); }
.article-lightbox-image { display:block; max-width:100%; max-height:75vh; width:auto; height:auto; margin:0 auto; object-fit:contain; }
@media (max-width:575.98px) { .article-thumbnail { height:135px; } }
@media (prefers-reduced-motion:reduce) { .article-thumbnail { transition:none; } }

/* Zdjęcia i treść artykułu muszą mieścić się w szerokości ekranu. */
.article-layout, .article-body { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.article-body img, .article-layout img:not(.article-thumbnail):not(.article-lightbox-image), .article-body video { max-width: 100% !important; height: auto !important; }
/* Osadzony film: nie nadpisuj wysokości iframe regułą height:auto. */
.article-body .video-embed iframe { width: 100% !important; height: 100% !important; max-width: 100% !important; }
.article-body table { display: block; max-width: 100%; overflow-x: auto; }
.article-photo-grid { max-width: 100%; }
.article-photo-button { display:block; width:100%; max-width:100%; padding:0; border:0; background:transparent; overflow:hidden; border-radius:.5rem; }
.article-thumbnail { display:block; width:100%; max-width:100%; height:190px; object-fit:cover; }
.article-lightbox-image { display:block; max-width:100%; max-height:80vh; width:auto; height:auto; margin-inline:auto; object-fit:contain; }


/* v6: stabilny, wycentrowany układ strony artykułu niezależny od siatki Bootstrap. */
main#main-content.section-space { display:block; width:100%; min-width:0; }
#main-content > .article-shell {
  box-sizing:border-box;
  width:calc(100% - 2rem);
  max-width:1200px;
  min-width:0;
  margin-left:auto;
  margin-right:auto;
  padding-left:0;
  padding-right:0;
}
.article-shell > * { max-width:100%; min-width:0; }
.article-shell h1, .article-shell h2, .article-shell p, .article-shell section, .article-shell ul {
  max-width:100%;
  overflow-wrap:anywhere;
}
.article-shell .lead { max-width:75ch; }
.article-shell .article-photo-grid {
  display:flex;
  flex-wrap:wrap;
  margin-left:0;
  margin-right:0;
  width:100%;
}
.article-shell .article-photo-grid > [class*="col-"] {
  box-sizing:border-box;
  min-width:0;
}
.article-shell .article-body { width:100%; max-width:100%; overflow-wrap:anywhere; }
.article-shell .article-body img,
.article-shell .article-body video,
.article-shell .article-body svg {
  max-width:100% !important;
  height:auto !important;
}
.article-shell .article-body .video-embed iframe {
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
}
.article-shell .article-body pre { max-width:100%; overflow-x:auto; white-space:pre-wrap; overflow-wrap:anywhere; }
.article-shell .list-group { width:100%; max-width:100%; }
.article-shell .list-group-item { min-width:0; overflow-wrap:anywhere; }
.article-shell .list-group-item > span { min-width:0; }
.article-shell .article-thumbnail { width:100%; max-width:100%; }
.article-lightbox-image { max-width:calc(100vw - 2rem) !important; max-height:75vh !important; }
@media (max-width:575.98px) {
  #main-content > .article-shell { width:calc(100% - 1.25rem); }
  .article-shell .list-group-item { align-items:flex-start !important; }
}

/* Nagłówek strony głównej: płynna karuzela sterowana przez JavaScript */
.hero-section:has(.hero-slideshow:not(:empty))::before { background-image:none !important; }
.hero-slideshow { position:absolute; inset:0; z-index:-2; overflow:hidden; pointer-events:none; }
.hero-slide,.hero-video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; background-position:center; background-size:cover; opacity:0; }
.hero-slide { transition:opacity .8s ease, transform .8s ease; transform:translateX(0) scale(1); }
.hero-slide.is-active { opacity:1; }
.hero-transition-slide .hero-slide { transform:translateX(3%); }
.hero-transition-slide .hero-slide.is-active { transform:translateX(0); }
.hero-transition-zoom .hero-slide { transform:scale(1.07); }
.hero-transition-zoom .hero-slide.is-active { transform:scale(1); }
.hero-video { opacity:1; }
.hero-section[data-hero-type="video"] .hero-slide { display:none; }
.hero-section[data-hero-type="video"] .hero-slideshow:empty { display:none; }
@media (prefers-reduced-motion:reduce) { .hero-slide { transition:none !important; transform:none !important; } }

/* Sidebar w normalnym ukladzie strony: przewija sie z dokumentem, pozostaje sticky podczas scrollowania */
.page-layout{width:min(100% - 2rem, 1360px);margin-inline:auto;display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:1.5rem;align-items:start}
.page-layout>main{min-width:0;width:100%}
.page-layout>main .container{width:100%;max-width:none;padding-left:0;padding-right:0}
.site-sidebar{position:static;top:auto;align-self:start;width:100%;max-height:none;overflow:visible;z-index:auto;padding:4rem 2px 8px;background:transparent}
.site-sidebar-heading{font-size:1.1rem;font-weight:800;margin:0 0 .85rem;color:#1769e0}
.sidebar-banner{display:flex;align-items:center;gap:.65rem;padding:.85rem;background:#fff;border:1px solid #d7e1eb;border-radius:.75rem;margin-bottom:.75rem;text-decoration:none!important;color:#183746;box-shadow:0 4px 14px rgba(24,55,70,.07);transition:box-shadow .15s ease,transform .15s ease,border-color .15s ease;min-width:0}
.sidebar-banner:hover,.sidebar-banner:focus-visible{color:#123d5a;border-color:#b8cfe0;box-shadow:0 7px 20px rgba(23,57,74,.13);transform:translateY(-1px)}
.sidebar-banner img{display:block;width:48px;height:48px;object-fit:contain;flex:0 0 48px;border-radius:.6rem;background:#eaf2f7;padding:.25rem}
.sidebar-banner-icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;flex:0 0 48px;border-radius:.6rem;background:var(--banner-icon-color,#244b70);color:#fff;font-size:1.5rem;font-weight:700}.sidebar-banner-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sidebar-banner-text{min-width:0;flex:1}.sidebar-banner-text strong{display:block;font-size:.92rem;line-height:1.3;overflow-wrap:anywhere}.sidebar-banner-text small{display:block;color:#5c6d77;font-size:.78rem;line-height:1.4;margin-top:.3rem}.sidebar-banner-arrow{font-size:1.4rem;color:#58727f;flex:0 0 auto}
@media(max-width:991.98px){.page-layout{display:flex;flex-direction:column;gap:0}.page-layout>main{order:0}.site-sidebar{position:static;width:100%;max-width:none;max-height:none;overflow:visible;margin:1.5rem auto;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.site-sidebar-heading{grid-column:1/-1;margin-bottom:0}.sidebar-banner{margin:0}}
@media(max-width:575.98px){.page-layout{width:calc(100% - 1.25rem)}.site-sidebar{grid-template-columns:1fr}}

/* Kafelki linków w stopce - zarządzane z panelu */
.footer-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin-bottom:1.5rem}.footer-tile{display:flex;align-items:center;gap:.75rem;padding:1rem;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.2);border-radius:.75rem;text-decoration:none!important;color:#fff;min-width:0;transition:background .15s ease,transform .15s ease}.footer-tile:hover,.footer-tile:focus-visible{color:#fff;background:rgba(255,255,255,.15);transform:translateY(-2px)}.footer-tile-icon{display:flex;align-items:center;justify-content:center;width:44px;height:44px;flex:0 0 44px;border-radius:.6rem;background:var(--banner-icon-color,#244b70);color:#fff;font-size:1.5rem}.footer-tile strong{display:block;line-height:1.3}.footer-tile small{display:block;color:#d8e5ef;margin-top:.25rem;line-height:1.35}@media(max-width:900px){.footer-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:575.98px){.footer-tiles{grid-template-columns:1fr}}

/* Ikony tematyczne w kafelkach stopki */
.footer-tile-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.footer-tiles{background:#f0f5fa;border-radius:.75rem;padding:1.25rem;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin-bottom:1.5rem}
.footer-tile{background:transparent!important;border:0!important;border-radius:.5rem;padding:.75rem;color:#173f68!important;box-shadow:none!important}
.footer-tile:hover,.footer-tile:focus-visible{background:#e4edf6!important;transform:none}
.footer-tile-icon{background:transparent!important;color:var(--banner-icon-color,#1769e0)!important;width:32px;height:32px;flex-basis:32px}
.footer-tile small{color:#536f89!important}
@media(max-width:900px){.footer-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:575.98px){.footer-tiles{grid-template-columns:1fr;padding:.75rem}}

/* v35: hero jest poza ukladem kolumnowym, dlatego rozciaga sie na pelna szerokosc okna. */
.hero-section { display:block; width:100%; max-width:none; margin:0; }


/* v36: wyrównanie nagłówka sidebara z nagłówkiem aktualności na stronie głównej. */
.home-page-layout > .site-sidebar { padding-top: 4rem; }
@media (max-width: 991.98px) { .page-layout > .site-sidebar { padding-top: 0; } }


/* v37: lightbox dopasowany do okna, także dla bardzo szerokich zdjęć. */
#articleLightbox .modal-dialog {
  width: calc(100vw - 2rem) !important;
  max-width: calc(100vw - 2rem) !important;
  margin: 1rem auto !important;
}
#articleLightbox .modal-content {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
#articleLightbox .modal-body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: auto;
  box-sizing: border-box;
}
#articleLightbox #articleLightboxImage {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: calc(100vh - 190px) !important;
  object-fit: contain;
  margin: 0 auto;
}
@media (max-width: 575.98px) {
  #articleLightbox .modal-dialog { width: calc(100vw - 1rem) !important; max-width: calc(100vw - 1rem) !important; margin: .5rem auto !important; }
  #articleLightbox #articleLightboxImage { max-height: calc(100vh - 170px) !important; }
}


/* v41: odnośniki do profili społecznościowych w stopce */
.social-links{display:flex;justify-content:flex-end;gap:.6rem;align-items:center}
.social-link{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border:1px solid rgba(224,239,255,.45);border-radius:.65rem;color:#fff!important;text-decoration:none!important;transition:background .15s ease,border-color .15s ease,transform .15s ease}
.social-link svg{display:block;width:22px;height:22px}
.social-link:hover,.social-link:focus-visible{background:rgba(255,255,255,.14);border-color:#fff;color:#fff!important;transform:translateY(-1px);outline-offset:3px}
@media(max-width:767.98px){.social-links{justify-content:flex-start}.site-footer .col-md-4.text-md-end{text-align:left!important}}

/* Osadzone filmy YouTube w treści */
.article-body .video-embed{position:relative;display:block;box-sizing:border-box;width:100%!important;max-width:100%!important;aspect-ratio:16/9!important;height:auto!important;min-height:0!important;margin:1.5rem 0;overflow:hidden;border-radius:.5rem;background:#000}.article-body .video-embed iframe{position:absolute;inset:0;display:block;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;border:0}


/* Czytanie treści na głos */
.read-aloud-button{display:inline-flex;align-items:center;gap:.55rem;margin:.25rem 0 1.25rem;padding:.45rem .65rem;border:1px solid transparent;border-radius:.35rem;background:transparent;color:var(--brand-navy,#17365d);font:inherit;font-size:.95rem;text-align:left;cursor:pointer}
.read-aloud-button:hover,.read-aloud-button:focus-visible{background:#f1f5f9;border-color:#cbd5e1;text-decoration:underline;outline-offset:2px}
.read-aloud-button svg{width:1.25rem;height:1.25rem;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.read-aloud-button[aria-pressed="true"]{background:#eef4fa;border-color:#cbd5e1}


/* Karty aktualności i wydarzeń: plakat nie może rozpychać kolumny */
.news-card-image { display: block; width: 100%; height: 180px; min-height: 180px; overflow: hidden; background: #eef2f6; }
.news-card-image img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: cover; object-position: center; }
@media (max-width: 575.98px) { .news-card-image { height: 200px; min-height: 200px; } }
