@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@600;700&family=Source+Sans+3:wght@400;600;700&display=swap');

:root {
  --granat: #1B2A4A;
  --granat-ciemny: #111C33;
  --niebieski: #1D4ED8;
  --zloty: #C9A227;
  --tekst: #1E293B;
  --szary: #5B6678;
  --linia: #DDE3EC;
  --tlo: #F4F6FA;
  --promien: 8px;
  --cien: 0 1px 2px rgba(17,28,51,.06), 0 2px 8px rgba(17,28,51,.05);
  --cien-hover: 0 6px 18px rgba(17,28,51,.12);
  --cassiopeia-color-primary: #1B2A4A;
  --cassiopeia-color-link: #1D4ED8;
  --cassiopeia-color-hover: #1B2A4A;
}

body { background: var(--tlo); color: var(--tekst); font-family: "Source Sans 3", system-ui, sans-serif; font-size: 1.0625rem; }
h1, h2, h3, h4, h5, h6, .card-header, .metismenu { font-family: "Barlow Semi Condensed", system-ui, sans-serif; color: var(--granat); }
a { color: var(--niebieski); }
a:hover, a:focus { color: var(--granat); }
:focus-visible { outline: 3px solid var(--zloty) !important; outline-offset: 2px; }

.container-header { background: #fff !important; background-image: none !important; box-shadow: 0 2px 10px rgba(17,28,51,.08); border-bottom: 4px solid var(--zloty); }
.container-header .navbar-brand { padding: 12px 0; }
.container-header .navbar-brand img { max-height: 72px; width: auto; }
.container-header .container-nav { background: var(--granat); box-shadow: 0 0 0 100vmax var(--granat); clip-path: inset(0 -100vmax); padding: 0; }
.container-header .navbar-toggler { color: #fff; border-color: rgba(255,255,255,.5); }

.container-header .metismenu > li > a,
.container-header .metismenu > li > button { color: #fff; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; font-size: 1rem; padding: .9rem 1rem; }
.container-header .metismenu > li.active > a,
.container-header .metismenu > li > a:hover,
.container-header .metismenu > li > button:hover { color: #fff; background: rgba(255,255,255,.06); box-shadow: inset 0 -3px 0 var(--zloty); }
.container-header .metismenu .mm-collapse { background: #fff; border-top: 3px solid var(--zloty); border-radius: 0 0 var(--promien) var(--promien); box-shadow: var(--cien-hover); }
.container-header .metismenu .mm-collapse a { color: var(--granat); font-family: "Source Sans 3", system-ui, sans-serif; text-transform: none; }
.container-header .metismenu .mm-collapse a:hover { color: var(--niebieski); background: var(--tlo); }

.site-grid { padding-top: 28px; }

.blog-item { background: #fff; border: 1px solid var(--linia); border-radius: var(--promien); box-shadow: var(--cien); overflow: hidden; margin-bottom: 28px; transition: box-shadow .25s ease, transform .25s ease; }
.blog-item:hover { box-shadow: var(--cien-hover); transform: translateY(-2px); }
.blog-item .item-image { float: none !important; margin: 0 !important; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.blog-item .item-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-item .item-content { padding: 20px 24px 22px; }
.blog-item h2 { font-size: 1.45rem; line-height: 1.25; margin-bottom: .4rem; }
.blog-item h2 a { color: var(--granat); text-decoration: none; }
.blog-item h2 a:hover { color: var(--niebieski); }
.article-info { font-size: .875rem; color: var(--szary); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.article-info dd { margin: 0; }
.blog-item p, .com-content-article__body p { text-align: left !important; line-height: 1.7; }

.readmore .btn { background: transparent; color: var(--granat); border: 2px solid var(--granat); border-radius: 6px; padding: .4rem 1.1rem; font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.readmore .btn:hover, .readmore .btn:focus { background: var(--granat); color: #fff; }

.container-sidebar-right .card, .container-bottom-a .card, .container-bottom-b .card { background: #fff; border: 1px solid var(--linia); border-radius: var(--promien); box-shadow: var(--cien); margin-bottom: 20px; }
.container-sidebar-right .card-header, .container-bottom-a .card-header, .container-bottom-b .card-header { background: transparent; border: 0; border-left: 4px solid var(--zloty); margin: 18px 18px 0; padding: 0 0 0 12px; font-size: 1.1rem; font-weight: 700; color: var(--granat); }
.card-body img { border-radius: 6px; max-width: 100%; height: auto; }
.card-body ul.category-module, .card-body ul.mod-articlesnews, .card-body ul.mod-list, .card-body .feed ul { list-style: none; padding: 0; margin: 0; }
.card-body ul.category-module li, .card-body ul.mod-articlesnews li, .card-body .feed ul li { padding: 10px 0; border-bottom: 1px solid var(--linia); }
.card-body ul.category-module li:last-child, .card-body ul.mod-articlesnews li:last-child, .card-body .feed ul li:last-child { border-bottom: 0; }
.card-body select { width: 100%; padding: 9px 12px; border: 1px solid var(--linia); border-radius: 6px; color: var(--granat); }

.akordeon details { border-bottom: 1px solid var(--linia); }
.akordeon details:last-child { border-bottom: 0; }
.akordeon summary { cursor: pointer; padding: 10px 0; font-weight: 600; color: var(--granat); list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.akordeon summary::-webkit-details-marker { display: none; }
.akordeon summary::after { content: "+" / ""; color: var(--zloty); font-weight: 700; font-size: 1.2rem; line-height: 1; }
.akordeon details[open] summary::after { content: "\2013" / ""; }
.akordeon-tresc { padding: 0 0 12px; font-size: .95rem; }

.pagination .page-link { color: var(--granat); border-color: var(--linia); border-radius: 6px; margin: 0 2px; font-weight: 600; }
.pagination .active .page-link, .pagination .page-link:hover { background: var(--granat); border-color: var(--granat); color: #fff; }

.container-footer { background: var(--granat-ciemny) !important; background-image: none !important; border-top: 4px solid var(--zloty); }

.pg-categories-view :has(> .pg-category-box), .pg-category-view :has(> .pg-item-box) { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; height: auto !important; position: static !important; }
.pg-category-box, .pg-item-box { position: static !important; float: none !important; width: auto !important; height: auto !important; margin: 0 !important; transform: none !important; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--linia); border-radius: var(--promien); box-shadow: var(--cien); overflow: hidden; transition: box-shadow .25s ease, transform .25s ease; }
.pg-category-box:hover, .pg-item-box:hover { box-shadow: var(--cien-hover); transform: translateY(-2px) !important; }
.pg-category-box-image, .pg-item-box-image { position: static !important; width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tlo); }
.pg-category-box-image img, .pg-item-box-image img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
.pg-category-box-title, .pg-category-box-info, .pg-category-box-count, .pg-category-box-description { position: static !important; background: none !important; color: var(--granat) !important; padding: 10px 14px 0; line-height: 1.3; text-shadow: none !important; }
.pg-category-box-title a { color: var(--granat) !important; font-family: "Barlow Semi Condensed", system-ui, sans-serif; font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.pg-category-box-title a:hover { color: var(--niebieski) !important; }
.pg-category-box-title .ph-si { display: none; }
.pg-category-box-count, .pg-category-box-info { color: var(--szary) !important; font-size: .85rem; padding-bottom: 12px; }

.pg-category-box-image > *, .pg-item-box-image > *, .pg-category-box-image a, .pg-item-box-image a { display: block !important; width: 100% !important; height: 100% !important; margin: 0 !important; padding: 0 !important; position: static !important; }
.pg-category-box-image img, .pg-item-box-image img { margin: 0 !important; max-height: none !important; max-width: none !important; vertical-align: top; }
.pg-svg-box { display: flex !important; align-items: center; justify-content: center; background: var(--granat) !important; }
.pg-svg-box svg, .pg-svg-box .ph-si { width: 64px !important; height: 64px !important; color: var(--zloty); fill: var(--zloty); opacity: .9; }

.pg-categories-view :has(> .pg-category-box), .pg-category-view :has(> .pg-item-box) { align-items: stretch !important; vertical-align: top; }
.pg-category-box, .pg-item-box { align-self: stretch !important; vertical-align: top !important; justify-content: flex-start; }
.pg-svg-box .ph-si { background-color: var(--zloty) !important; }

/* KARTY-POZIOME */
@media (min-width: 768px) {
  .blog-item:has(> .item-image) { display: grid; grid-template-columns: 300px 1fr; align-items: stretch; }
  .blog-item:has(> .item-image) > .item-image { width: 300px; max-width: 300px; height: 100%; min-height: 210px; aspect-ratio: auto; }
  .blog-item:has(> .item-image) > .item-image a { display: block; height: 100%; }
  .blog-item:has(> .item-image) > .item-image img { width: 100%; height: 100%; object-fit: cover; }
  .blog-item:has(> .item-image) .item-content { padding: 18px 24px 20px; }
  .blog-item:hover .item-image img { transform: none; }
  .blog-item h2 { font-size: 1.3rem; }
}

/* ODSTEP-ZDJEC */
.com-content-article .item-image.left, .com-content-article .item-image.float-start, .com-content-article__body img[style*="float: left"], .com-content-article__body img[style*="float:left"], .com-content-article__body img[align="left"] { float: left; margin: .3rem 1.75rem 1.25rem 0 !important; border-radius: 6px; }
.com-content-article .item-image.right, .com-content-article .item-image.float-end, .com-content-article__body img[style*="float: right"], .com-content-article__body img[style*="float:right"], .com-content-article__body img[align="right"] { float: right; margin: .3rem 0 1.25rem 1.75rem !important; border-radius: 6px; }
.com-content-article .item-image img { border-radius: 6px; }
.com-content-article__body img { max-width: 100%; height: auto; }
@media (max-width: 767.98px) {
  .com-content-article .item-image.left, .com-content-article .item-image.float-start, .com-content-article .item-image.right, .com-content-article .item-image.float-end, .com-content-article__body img[style*="float"], .com-content-article__body img[align] { float: none !important; display: block; margin: 0 0 1rem !important; width: 100%; }
}

/* LISTY-DOL */
.container-bottom-a .newsflash-title, .container-bottom-b .newsflash-title, .card-body [class*="newsflash"] h4, .card-body [class*="newsflash"] h3 { font-family: "Source Sans 3", system-ui, sans-serif !important; font-size: 1rem !important; font-weight: 400 !important; line-height: 1.5; margin: 0 !important; }
.card-body [class*="newsflash"] > li, .card-body [class*="newsflash"] > .newsflash-item { padding: 10px 0; border-bottom: 1px solid var(--linia); list-style: none; }
.card-body [class*="newsflash"] > li:last-child { border-bottom: 0; }
.card-body [class*="newsflash"] { padding: 0; margin: 0; }
.card-body [class*="newsflash"] img { float: left; width: 72px; height: 54px; object-fit: cover; margin: 3px 12px 0 0; border-radius: 4px; }
.card-body .feed a, .card-body [class*="newsflash"] a, .card-body ul.category-module a { text-decoration: none; }
.card-body .feed a:hover, .card-body [class*="newsflash"] a:hover, .card-body ul.category-module a:hover { text-decoration: underline; }

/* SIATKA-ZDJEC */
.container-bottom-a { display: block !important; }
.container-bottom-a > * { width: 100% !important; max-width: 100% !important; margin-bottom: 24px; }
.siatka-zdjec [class*="newsflash"], .container-bottom-a [class*="newsflash"] { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.container-bottom-a [class*="newsflash"] > li, .container-bottom-a [class*="newsflash"] > .newsflash-item { display: flex; flex-direction: column; border: 1px solid var(--linia) !important; border-radius: var(--promien); overflow: hidden; padding: 0 !important; background: #fff; box-shadow: var(--cien); transition: box-shadow .25s ease, transform .25s ease; }
.container-bottom-a [class*="newsflash"] > li:hover { box-shadow: var(--cien-hover); transform: translateY(-2px); }
.container-bottom-a [class*="newsflash"] figure, .container-bottom-a [class*="newsflash"] .newsflash-image { order: -1; margin: 0; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.container-bottom-a [class*="newsflash"] img { float: none !important; width: 100% !important; height: 100% !important; object-fit: cover; margin: 0 !important; border-radius: 0 !important; }
.container-bottom-a [class*="newsflash"] .newsflash-title, .container-bottom-a [class*="newsflash"] h4 { padding: 12px 14px 14px !important; font-weight: 600 !important; }
@media (max-width: 991.98px) { .container-bottom-a [class*="newsflash"] { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .container-bottom-a [class*="newsflash"] { grid-template-columns: 1fr; } }

/* SIATKA-POPRAWKA */
.container-bottom-a [class*="newsflash"]:not(ul) { display: block !important; grid-template-columns: none !important; width: 100% !important; }
.container-bottom-a ul[class*="newsflash"] { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 20px; }
.container-bottom-a ul[class*="newsflash"] > li { display: flex !important; flex-direction: column; width: auto !important; }
.container-bottom-a ul[class*="newsflash"] > li > * { width: 100% !important; }
.container-bottom-a ul[class*="newsflash"] figure, .container-bottom-a ul[class*="newsflash"] .newsflash-image { order: -1; display: block !important; width: 100% !important; aspect-ratio: 16 / 9; margin: 0 !important; overflow: hidden; }
.container-bottom-a ul[class*="newsflash"] figure a, .container-bottom-a ul[class*="newsflash"] .newsflash-image a { display: block; width: 100%; height: 100%; }
.container-bottom-a ul[class*="newsflash"] img { display: block; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; float: none !important; margin: 0 !important; }
@media (max-width: 991.98px) { .container-bottom-a ul[class*="newsflash"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 575.98px) { .container-bottom-a ul[class*="newsflash"] { grid-template-columns: 1fr !important; } }

/* BANERY-POZIOMO */
.container-bottom-b { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.container-bottom-b > * { grid-column: 1 / -1; }
.container-bottom-b > .baner-poziomy { grid-column: auto; margin: 0 !important; }
.baner-poziomy .card-body { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.baner-poziomy img { max-height: 150px; width: auto !important; max-width: 100%; margin: 0 auto; }
.baner-poziomy .card-header { font-size: .95rem; }
@media (max-width: 991.98px) { .container-bottom-b { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .container-bottom-b { grid-template-columns: 1fr; } }


/* PAS-PARTNEROW */
.modul-partnerzy { margin-top: 28px !important; }
.pas-partnerow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.pas-element { flex: 1 1 0; min-width: 120px; display: flex; align-items: center; justify-content: center; text-align: center; }
.pas-element p { margin: 0; }
.pas-element img { max-height: 90px; width: auto !important; max-width: 100%; height: auto; transition: transform .2s ease; }
.pas-element a:hover img { transform: scale(1.05); }
@media (max-width: 767.98px) { .pas-element { flex: 0 0 calc(50% - 10px); } }

/* KOLUMNA-MIN */
.container-component, .container-sidebar-right { min-width: 0; }

/* PAS-PODPIS */
.pas-partnerow { flex-wrap: nowrap; gap: 16px; }
.pas-element { flex: 1 1 0; min-width: 0; flex-direction: column; text-decoration: none; }
.pas-element img { max-height: 80px; width: auto !important; max-width: 100%; height: auto; }
.pas-podpis span { margin-top: 6px; font-size: .85rem; font-weight: 600; color: var(--granat); }
@media (max-width: 991.98px) { .pas-partnerow { flex-wrap: wrap; } .pas-element { flex: 0 0 calc(25% - 12px); } }
@media (max-width: 575.98px) { .pas-element { flex: 0 0 calc(50% - 8px); } }

/* LISTA-ZWIJANA */
.lista-zwijana summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--linia); border-radius: 6px; font-weight: 600; color: var(--granat); background: var(--tlo); }
.lista-zwijana summary::-webkit-details-marker { display: none; }
.lista-zwijana summary::after { content: "+" / ""; color: var(--zloty); font-weight: 700; font-size: 1.3rem; line-height: 1; }
.lista-zwijana[open] summary::after { content: "\2013" / ""; }
.lista-zwijana summary:hover { border-color: var(--granat); }
.lista-zwijana ul { margin: 10px 0 0; }

/* SLIDER-PASEK */
.container-banner .slider-nszzp, .container-banner .pasek-nszzp { width: calc(100% - 32px); max-width: 1320px; margin-left: auto; margin-right: auto; }
.slider-nszzp { position: relative; overflow: hidden; border-radius: var(--promien); box-shadow: var(--cien); background: var(--granat); margin-top: 24px; }
.slider-tor { display: flex; transition: transform .6s ease; }
.slajd { flex: 0 0 100%; display: block; }
.slajd img { display: block; width: 100%; aspect-ratio: 1170 / 405; object-fit: cover; }
.slider-sterowanie { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; align-items: center; gap: 8px; }
.slider-kropka { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; background: rgba(17,28,51,.45); padding: 0; cursor: pointer; }
.slider-kropka[aria-current="true"] { background: var(--zloty); border-color: var(--zloty); }
.slider-pauza, .pasek-pauza { border: 0; border-radius: 4px; font-size: .8rem; font-weight: 700; padding: 5px 12px; cursor: pointer; }
.slider-pauza { margin-left: 10px; background: rgba(17,28,51,.85); color: #fff; }
.pasek-nszzp { display: flex; align-items: center; gap: 12px; background: var(--granat); border-radius: var(--promien); margin-top: 16px; overflow: hidden; }
.pasek-okno { flex: 1; overflow: hidden; white-space: nowrap; }
.pasek-tor { display: inline-block; padding: 12px 0 12px 100%; animation: pasek-ruch 19s linear infinite; }
.pasek-tor a { color: #fff; font-weight: 600; font-size: 1.1rem; text-decoration: none; }
.pasek-tor a:hover, .pasek-tor a:focus { text-decoration: underline; }
.pasek-nszzp:hover .pasek-tor, .pasek-nszzp:focus-within .pasek-tor, .pasek-nszzp.zatrzymany .pasek-tor { animation-play-state: paused; }
.pasek-pauza { flex: 0 0 auto; margin-right: 10px; background: var(--zloty); color: var(--granat-ciemny); }
@keyframes pasek-ruch { from { transform: translateX(0); } to { transform: translateX(-100%); } }


/* PASEK-TEMPO */
.pasek-tor { animation-duration: 35s; }

/* SEKCJE-ARTYKULU */
.sekcja-artykulu { border: 1px solid var(--linia); border-radius: var(--promien); margin: 12px 0; background: #fff; }
.sekcja-artykulu summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; font-family: "Barlow Semi Condensed", system-ui, sans-serif; font-size: 1.25rem; font-weight: 700; color: var(--granat); }
.sekcja-artykulu summary::-webkit-details-marker { display: none; }
.sekcja-artykulu summary::after { content: "+" / ""; color: var(--zloty); font-size: 1.5rem; line-height: 1; }
.sekcja-artykulu[open] summary::after { content: "\2013" / ""; }
.sekcja-artykulu[open] summary { border-bottom: 1px solid var(--linia); }
.sekcja-artykulu summary:hover { background: var(--tlo); }
.sekcja-tresc { padding: 6px 18px 12px; }

/* MENU-LAPTOP */
@media (min-width: 992px) {
  .container-nav ul.mod-menu { flex-wrap: wrap; justify-content: center; }
  .container-nav ul.mod-menu > li { padding: 8px 4px; }
  .container-nav ul.mod-menu > li > a { padding: 12px; }
}

/* STRONICOWANIE */
.pagination { flex-wrap: wrap; gap: 4px; }

/* PHOCA-STOPKA */
#phocagallery div[style*="ccc"], #phocagallery div[style*="ccc"] a,
main div[style*="ccc"], main div[style*="ccc"] a { color: #595959 !important; }

/* KROPKI-24 */
.slider-kropka { margin: 0 2px; }

/* TYLKO-CZYTNIK */
.tylko-czytnik { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* MAPA-RESPONSYWNA */
iframe[src*="google.com/maps"] { max-width: 100%; }

/* FACEBOOK-ZAKLADKA */
.fb-zakladka { position: fixed; right: 0; top: 100px; z-index: 1040; display: block; width: 48px; height: 48px; padding: 10px; border-radius: 8px 0 0 8px; background: #1877F2; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.fb-zakladka svg { display: block; width: 28px; height: 28px; }
.fb-zakladka:hover, .fb-zakladka:focus-visible { background: #0B5FCC; color: #fff; outline: 3px solid var(--zloty); outline-offset: 2px; }
@media (max-width: 575px) { .fb-zakladka { top: auto; bottom: 90px; } }
/* STOPKA-COOKIES-MAPA */
.container-footer { background: var(--granat); }
.container-footer ul.mod-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; list-style: none; margin: 0; padding: 18px 0; }
.container-footer a { color: #fff; text-decoration: underline; }
.container-footer a:hover, .container-footer a:focus-visible { color: var(--zloty); }
.cookies-pasek { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1050; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; padding: 14px 16px; background: #fff; border-top: 4px solid var(--zloty); box-shadow: 0 -4px 16px rgba(0,0,0,.15); color: var(--granat); }
.cookies-pasek p { margin: 0; max-width: 760px; }
.cookies-pasek button, .mapa-zgoda button { padding: 8px 20px; border: 0; border-radius: 6px; background: var(--granat); color: #fff; font-weight: 600; cursor: pointer; }
.cookies-pasek button:hover, .cookies-pasek button:focus-visible, .mapa-zgoda button:hover, .mapa-zgoda button:focus-visible { background: var(--niebieski); outline: 3px solid var(--zloty); outline-offset: 2px; }
.mapa-zgoda { max-width: 100%; padding: 28px 20px; border: 1px solid #C9D3E0; border-radius: 8px; background: #F5F8FB; text-align: center; }
.mapa-zgoda p { margin: 0 0 12px; }
/* TABELE-W-ARTYKULACH */
.com-content-article__body table { width: 100%; max-width: 100%; table-layout: fixed; }
.com-content-article__body th, .com-content-article__body td { overflow-wrap: anywhere; vertical-align: top; }
