:root {
    --light-gray: #E4F0FB;
    --dark-blue: #123d56;
    --orange: #287d42;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* GLOABAL */
a {
    color: #000;
}

.btn-blue, .btn-blue:hover {
    font-size: 13px;
    width: 100px;
    border-radius: 0;
    color: #fff;
    background-color: var(--dark-blue);
    text-decoration: none;
}

.btn-orange, .btn-orange:hover {
    font-size: 32px;
    text-decoration: none;
    background-color: var(--orange);
    color: #fff;
    border-radius: 0;
    padding: 5px 25px;
}

.btn-orange.active,
.btn-orange.active:hover,
.btn-orange.active:focus {
    border: 1px solid #0a4128;
    background-color: #0e5a37 !important;
    color: #fff !important;
}

.subpage {
    margin-top: 75px;
}

#contact-form {
    color: #fff;
    padding: 50px 100px;
    background-color: var(--dark-blue);
}

.subpage > .container {
    margin: 0 !important;
}

.subpage .subpage-title {
    padding-left: 0px;
    padding-bottom: 15px;
    font-weight: normal;
}

.subpage section {
    padding-left: 0;
}

#contact aside {
    color: #fff;
    padding: 50px 100px;
    background-color: var(--dark-blue);
}

#contact aside ul {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

#contact aside ul li {
    font-size: 24px !important;
}

.main_box {
    padding-left: 0;
    padding-bottom: 75px;
}

.page-link.active {
font-weight: 600;
color: #000;
background-color: transparent;
}

.page-link .page-link.disabled, .disabled>.page-link, .page-link:hover, .page-link:focus {
background-color: transparent !important;
}

/* HEADER */
.menu ul li a, .menu ul li a:hover{
    width: auto;
    font-size: 20px;
    text-decoration: none;
}

.menu {
    align-items: center;
}

.menu .logo {
    min-width: 0;
}

.menu .logo > a {
    display: block;
    flex: 0 0 auto;
    width: 180px;
    max-width: 38vw;
}

.menu .btn-blue {
    padding: 10px 20px;
}

.logo .site-name {
    min-width: 0;
    font-size: 24px;
    font-weight: normal;
    margin: 0;
    color: var(--dark-blue);
}

.site-navigation {
    background-color: var(--dark-blue);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: clamp(.45rem, .8vw, 1rem);
}

.nav-link, .nav-link:hover,.nav-link:focus{
    padding: .7rem .25rem !important;
    color: #fff;
    line-height: 1.35;
    text-underline-offset: 4px;
}

.nav-item:last-child .nav-link{
    border-radius: 0;
    color: #fff;
    background-color: var(--orange);
    padding: 8px 15px !important;;
}

.home-hero {
    position: relative;
    padding: 0;
    background: var(--dark-blue);
}

.home-hero .home-hero-grid {
    position: relative;
    display: grid;
    min-height: clamp(480px, 38vw, 560px);
    max-width: none;
    height: auto;
    margin: 0;
    overflow: hidden;
    border: 0;
    background: var(--dark-blue);
    box-shadow: none;
}

.home-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    min-width: 0;
    width: min(760px, 56vw);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(2.5rem, 4vw, 4.5rem) clamp(1.5rem, 7vw, 8rem);
}

.home-hero-eyebrow {
    margin: 0 0 1.25rem;
    color: #8ee0b4;
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.home-hero-title {
    max-width: 720px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: .97;
    text-wrap: balance;
}

.home-hero-lead {
    max-width: 620px;
    margin: 1.25rem 0 0;
    color: #f1f6f9;
    font-size: clamp(1.05rem, 1.4vw, 1.3rem);
    line-height: 1.6;
}

.home-hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin: 1.1rem 0 0;
    padding: 0;
    list-style: none;
}

.home-hero-highlights li {
    position: relative;
    min-height: 36px;
    padding: .45rem .75rem .45rem 1.65rem;
    border: 0;
    background: rgba(3, 32, 61, .55);
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.35;
    backdrop-filter: blur(8px);
}

.home-hero-highlights li::before {
    content: "";
    position: absolute;
    top: 50%;
    left: .7rem;
    width: .48rem;
    height: .48rem;
    background: #55c58a;
    transform: translateY(-50%);
}

.home-hero .home-hero-button,
.home-hero .home-hero-button:visited {
    display: inline-flex;
    min-height: 50px;
    width: auto;
    align-items: center;
    gap: .65rem;
    margin-top: 1.5rem;
    padding: .85rem 1.4rem;
    border: 3px solid #fff;
    background: #146c43;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}

.home-hero .home-hero-button:hover,
.home-hero .home-hero-button:focus {
    border-color: #fff;
    background: #fff;
    color: var(--dark-blue);
}

.home-hero .home-hero-button:focus-visible {
    outline: 3px solid #ffdc73;
    outline-offset: 3px;
}

.home-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    min-width: 100%;
    min-height: 100%;
    margin: 0;
    overflow: hidden;
    background: var(--dark-blue);
}

.home-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(3, 32, 61, .97) 0%, rgba(3, 32, 61, .91) 30%, rgba(3, 32, 61, .54) 55%, rgba(3, 32, 61, .08) 82%),
        linear-gradient(0deg, rgba(3, 32, 61, .28) 0%, transparent 36%);
}

.home-hero-media > img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: 67% 55%;
}

@media (max-width: 991.98px) {
    .home-hero .home-hero-grid {
        min-height: 600px;
    }

    .home-hero-content {
        width: min(760px, 85vw);
        padding: clamp(3rem, 8vw, 5rem) clamp(1.5rem, 7vw, 4.5rem);
    }

    .home-hero-media::after {
        background:
            linear-gradient(90deg, rgba(3, 32, 61, .96) 0%, rgba(3, 32, 61, .82) 52%, rgba(3, 32, 61, .24) 100%),
            linear-gradient(0deg, rgba(3, 32, 61, .4) 0%, transparent 45%);
    }

    .home-hero-media > img {
        object-position: 62% 55%;
    }
}

@media (max-width: 575.98px) {
    .home-hero .home-hero-grid {
        min-height: 640px;
    }

    .home-hero-content {
        width: 100%;
        justify-content: flex-end;
        padding: 3rem 1.25rem;
    }

    .home-hero-title {
        max-width: 440px;
        font-size: clamp(3rem, 15vw, 4.5rem);
    }

    .home-hero-lead {
        font-size: 1rem;
        line-height: 1.55;
    }

    .home-hero-highlights {
        gap: .5rem;
    }

    .home-hero-highlights li {
        font-size: .82rem;
    }

    .home-hero-media::after {
        background:
            linear-gradient(0deg, rgba(3, 32, 61, .99) 0%, rgba(3, 32, 61, .91) 56%, rgba(3, 32, 61, .22) 100%),
            linear-gradient(90deg, rgba(3, 32, 61, .45) 0%, transparent 100%);
    }

    .home-hero-media > img {
        object-position: 62% 45%;
    }
}

.slider {
    position: relative;
    background-color: var(--dark-blue);
    height: 300px;
}

.slider:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 10px;
    width: 100%;
    background-color: var(--orange);
    z-index: 9999;
}

.slider h3, .slider h2 {
    padding: 25px;
    color: #fff;
	font-size:25px;
}

.slider img {
    object-fit: contain;
}

/* SECTION news */
#news h1 {
    margin: 100px 0;
    font-weight: normal;
}

.news-card {
    position: relative;
    margin-bottom: 100px;
}

.news-card-content {
    position: relative;
    margin-bottom: 200px;
}

.news-card > .news-card-content:not(:last-of-type):after {
    content: "";
    position: absolute;
    width: 115%;
    right: -7.5%;
    height: 4px;
    bottom: -100px;
    background-color: lightblue;
    opacity: 0.6;
}

.news-card-title {
    font-size: 26px;
}

.news-card-desc {
    font-size: 1rem;
    margin: 50px 0;
}

.news-card-more, .news-card-more:hover {
    font-size: 24px;
    padding: 5px 25px;
}

.news-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.news-image-item {
    display: block;
    object-fit: cover;
}

.news-image-horizontal {
    grid-column: 1;
    grid-row: 2;
}

.news-image-vertical {
    grid-row: span 2;
}

.news-image-wrapper {
    float: left;
    width: 40%;
    margin-right: 15px;
    margin-bottom: 10px;
}

.news-image-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
}

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/*SUBPAGE aktualnosci*/
.archiv {
    text-align: center;
}

.archiv h5 {
    font-size: 16px;
}

.archiv ul{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 20px;
}

.archiv ul > li {
    position: relative;
}

.archiv ul > li:not(:last-child):after {
    content: "";
    position: absolute;
    width: 1px;
    height: 70%;
    top: 50%;
    transform: translateY(-50%);
    right: -10px;
    background-color: #000;
}

.page-link, .page-link:hover, .page-link:focus {
    border: 0 transparent;
    color: #000;
    outline: none;
    box-shadow: none;
    font-size: 24px;
}

/* PARTNERS */

.partners {
    position: relative;
    margin: 4rem 0 0;
    padding: 0;
    border: 0;
    background: #fff;
}

.partners::before,
.partners::after {
    content: none !important;
    display: none !important;
}

.partners-header {
    max-width: none;
    margin: 0 0 clamp(2rem, 3vw, 2.75rem);
    text-align: left;
}

.partners-kicker {
    margin-bottom: .65rem;
    color: #146c43;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.partners-header h2 {
    margin-bottom: .85rem;
    color: var(--dark-blue);
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 400;
    line-height: 1.15;
}

.partners-header > p:last-child {
    max-width: 760px;
    margin: 0;
    color: #263746;
    font-size: 1.05rem;
    line-height: 1.65;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.25rem, 2vw, 2rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.partner-card {
    display: flex;
    min-width: 0;
    min-height: 230px;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.25rem;
    overflow: hidden;
    border: 1px solid #d7e0e7;
    border-top: 4px solid var(--orange);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(3, 32, 61, .08);
    text-align: center;
}

.partner-logo-box {
    display: flex;
    min-height: 125px;
    width: 100%;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    padding: .5rem;
}

.partner-card .partner-name {
    margin: 0;
    color: var(--dark-blue);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.45;
}

@media (max-width: 991.98px) {
    .partners-grid {
        grid-template-columns: 1fr;
    }

    .partner-card {
        min-height: 210px;
    }
}

@media (max-width: 575.98px) {
    .partners {
        margin: 3rem 0 0;
        padding: 0;
    }

    .partners-header {
        margin-bottom: 1.5rem;
    }
}


    /* FOOTER */
footer section {
    padding: 75px;
    background-color: var(--light-gray);
}

#footer-contact p,
#footer-contact p > a{
    color: #000;
    white-space: pre-line;
}

.footer-heading {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-accessibility-link {
    color: var(--dark-blue);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-accessibility-link:hover,
.footer-accessibility-link:focus {
    color: #034aad;
}

footer aside {
    padding:  75px;
    background-color: var(--dark-blue);
}

footer aside > ul > li {
    margin-bottom: 10px;
}

footer aside > ul > li a {
    color: #fff;
    text-decoration: none;
}


@media screen and (max-width: 567px) {
    footer section{
        padding: 15px 0;
    }

    .footer-accessibility {
        margin: 1.5rem 0;
        text-align: center;
    }

    .btn-orange {
        font-size: 18px;
    }

}

@media (min-width: 768px) {
    .news-card-content {
        display: flex;
        align-items: flex-start;
        gap: 30px;
    }

    .news-image-wrapper {
        float: none;
        order: 2;
        width: 40%;
        margin: 0;
    }

    .news-text-content {
        width: 60%;
    }
}

@media screen and (max-width: 768px) {
    .menu ul li a, .menu ul li a:hover {
        width: auto;
        font-size: 14px;
        text-decoration: none;
    }

    .menu .logo > a,
    .site-logo {
        width: 140px;
    }

    .news-card-desc {
        margin: 0 0 30px 0;
    }

    .subpage .subpage-title {
        padding-left: 0;
        margin: 0;
    }

    .subpage section,
    .main_box{
        padding-left: 0;
    }

}

@media screen and (max-width: 1200px) {
    .navbar {
        padding: 0 !important;
    }

    #contact aside {
        padding: 25px 50px;
    }
}

@media screen and (max-width: 1400px) {
    footer aside {
        padding: 55px 35px;
    }
}



  .swal2-title{
		margin-bottom:20px;
		line-height:30px;
	   }
	   
	   .swal2-timer-progress-bar{
			height:7px;
			border-radius:3px;
			background: rgb(67,182,73);
background: linear-gradient(90deg, rgba(67,182,73,1) 0%, rgba(0,99,33,1) 100%);
	   }
	   
	   .swal2-timer-progress-bar-container{
		background-color:#d6d6d6;
	   }
	   
	   .swal2-title{
		color:#333;
	   }

	   
	   
	   /* Czytelna gradacja nagłówków w treści podstron. */
	   .main_box h2 {
		font-size: clamp(1.65rem, 2.5vw, 2rem);
		line-height: 1.25;
		margin-top: 1.75rem;
		margin-bottom: 1rem;
	   }

	   .main_box h3 {
		font-size: clamp(1.4rem, 2vw, 1.65rem);
		line-height: 1.3;
		margin-top: 1.5rem;
		margin-bottom: .9rem;
	   }

	   .main_box h4 {
		font-size: clamp(1.2rem, 1.7vw, 1.4rem);
		line-height: 1.35;
		margin-top: 1.35rem;
		margin-bottom: .8rem;
	   }

	   .main_box h5 {
		font-size: 1.12rem;
		line-height: 1.4;
		margin-top: 1.2rem;
		margin-bottom: .7rem;
	   }

	   .main_box h6 {
		font-size: 1rem;
		line-height: 1.45;
		margin-top: 1rem;
		margin-bottom: .6rem;
	   }
	   
	   .main_box  img{
		max-width:100%;
	   }
	   
	   
	   
	   
a:focus, button:focus, input:focus {
-webkit-box-shadow: 0px 0px 0px 3px rgba(255, 0, 8, 1) !important;
-moz-box-shadow: 0px 0px 0px 3px rgba(255, 0, 8, 1) !important;
box-shadow: 0px 0px 0px 3px rgba(255, 0, 8, 1) !important;
}

/* Naglowek wybranej sekcji otrzymuje fokus programowy dla czytnika ekranu.
   Nie wyswietlamy obramowania calego panelu; fokus kontrolek pozostaje widoczny. */
.section-content-heading:focus,
.about-content[tabindex="-1"]:focus {
    outline: 0;
    box-shadow: none !important;
}

/* Elementy wspolne i dostepnosc */
.btn,
.btn-blue,
.btn-orange,
.page-link,
.navbar-toggler,
button {
    border-radius: 0 !important;
}

.site-logo {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
    max-height: 140px;
    object-fit: contain;
}

.social-icon {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.bip-logo {
    display: block;
    width: 75px;
    max-width: 100%;
    height: auto;
}

.accessibility-link,
.contact-email {
    text-decoration: underline;
}

.accessibility-link {
    font-size: 16px;
}

.contact-link {
    color: #034aad !important;
}

.eu-logo,
.slider-image,
.partner-logo {
    width: 100%;
}

.eu-logo-header {
    display: block;
    width: 150px;
    max-width: 150px;
    height: auto;
    object-fit: contain;
}

.eu-logo-footer {
    max-width: 300px;
}

.slider-control {
    width: 40px;
    height: 40px;
}

.partner-logo {
    display: block;
    width: auto;
    max-width: 100%;
    height: 110px;
    object-fit: contain;
}

.contact-heading,
.contact-title {
    margin-bottom: .5rem;
    color: var(--dark-blue);
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.2;
}

.contact-section {
    margin-top: 0;
}

/* Wyszukiwarka */
.navbar-collapse {
    gap: 1.5rem;
}

.navbar-nav {
    flex: 1 1 auto;
    justify-content: flex-start !important;
}

.site-search {
    display: flex;
    flex: 0 0 240px;
}

.site-search input {
    min-width: 0;
    width: 100%;
    padding: .55rem .75rem;
    border: 3px solid #fff;
}

.site-search button {
    min-width: 46px;
    border: 2px solid #fff;
    background: var(--orange);
    color: #fff;
}

.search-results {
    width: min(100% - 2rem, 1120px);
    margin-inline: auto;
    padding-top: clamp(3rem, 6vw, 5.5rem);
    padding-bottom: clamp(4rem, 8vw, 7rem);
}

.search-results-header {
    max-width: 840px;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.search-results-eyebrow {
    margin: 0 0 .65rem;
    color: #146c43;
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.search-results h1 {
    margin: 0;
    color: var(--dark-blue);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.search-results-count {
    display: inline-flex;
    margin: 1.25rem 0 0;
    padding: .55rem .85rem;
    background: #eaf4ef;
    color: #173f2c;
    font-size: .95rem;
}

.search-results-count strong {
    margin-left: .35rem;
}

.search-results-groups {
    display: grid;
    gap: 2.25rem;
}

.search-results-group h2 {
    margin: 0 0 1rem;
    color: var(--dark-blue);
    font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.search-results-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.search-results-list li {
    min-width: 0;
}

.search-results-list a,
.search-results-list a:visited {
    display: flex;
    min-height: 76px;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border: 1px solid #cbd6dd;
    border-left: 5px solid #146c43;
    background: #fff;
    box-shadow: 0 7px 20px rgba(3, 32, 61, .07);
    color: var(--dark-blue);
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.search-results-list a:hover {
    border-color: #146c43;
    box-shadow: 0 12px 28px rgba(3, 32, 61, .13);
    transform: translateY(-2px);
}

.search-results-list a:focus-visible {
    outline: 3px solid #b44700;
    outline-offset: 3px;
    box-shadow: none !important;
}

.search-result-arrow {
    flex: 0 0 auto;
    color: #146c43;
    font-size: 1.35rem;
}

.search-empty {
    max-width: 720px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-left: 5px solid #146c43;
    background: #f3f7fa;
}

.search-empty i {
    color: #146c43;
    font-size: 2rem;
}

.search-empty h2 {
    margin: .75rem 0 .5rem;
    color: var(--dark-blue);
}

.search-empty p {
    margin: 0;
    line-height: 1.65;
}

@media (max-width: 767.98px) {
    .search-results-list {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .search-results-list a {
        transition: none;
    }

    .search-results-list a:hover {
        transform: none;
    }
}

/* Kafle aktualnosci */
#news {
    padding-top: clamp(3rem, 6vw, 5rem);
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

#news h1,
#news h2 {
    margin: 0 0 clamp(2rem, 4vw, 3.5rem);
    color: var(--dark-blue);
    font-size: clamp(2rem, 3vw, 2.75rem);
    line-height: 1.15;
}

.news-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.25rem, 2vw, 2rem);
    margin-bottom: 3rem;
	padding-left: 0;
	list-style: none;
}

.news-card-grid .news-card-content > article {
	height: 100%;
}

.news-card-grid .news-card-content {
    display: block;
    height: 100%;
    margin: 0;
    overflow: hidden;
    border: 1px solid #d7e0e7;
    border-top: 4px solid var(--orange);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(3, 32, 61, .08);
    transition: box-shadow .25s ease, transform .25s ease;
}

.news-card-grid .news-card-content::after {
    content: none !important;
}

.news-card-link {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: #17212b;
    text-decoration: none;
}

.news-card-link:hover,
.news-card-link:focus {
    color: #17212b;
    text-decoration: none;
}

.news-card-grid .news-card-content:hover,
.news-card-grid .news-card-content:focus-within {
    box-shadow: 0 14px 32px rgba(3, 32, 61, .15);
    transform: translateY(-4px);
}

.news-card-link:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: -3px;
}

.news-card-grid .news-image-wrapper {
    order: 0;
    flex: 0 0 auto;
    width: 100%;
    margin: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--light-gray);
}

.news-card-grid .news-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.news-card-link:hover .news-image-wrapper img,
.news-card-link:focus-visible .news-image-wrapper img {
    transform: scale(1.035);
}

.news-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--light-gray);
}

.news-card-grid .news-text-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    padding: 1.35rem 1.4rem 1.5rem;
}

.news-card-grid .news-card-title {
    display: -webkit-box;
    margin-bottom: .65rem;
    overflow: hidden;
    color: var(--dark-blue);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.news-card-link:hover .news-card-title,
.news-card-link:focus-visible .news-card-title {
    text-decoration: underline;
    text-decoration-color: var(--orange);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.news-card-date {
    margin-bottom: .9rem;
    color: #53616e;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .01em;
}

.news-card-grid .news-card-desc {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #2e3944;
    font-size: .98rem;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

@media (prefers-reduced-motion: reduce) {
    .news-card-grid .news-card-content,
    .news-card-grid .news-image-wrapper img {
        transition: none;
    }

    .news-card-grid .news-card-content:hover,
    .news-card-grid .news-card-content:focus-within,
    .news-card-link:hover .news-image-wrapper img,
    .news-card-link:focus-visible .news-image-wrapper img {
        transform: none;
    }
}

.news-cover,
.news-gallery {
    text-align: center;
}

.news-cover img {
    width: 100%;
    max-width: 500px;
}

.news-detail-title {
    padding-bottom: 0 !important;
}

.news-detail-date {
    margin-bottom: 30px;
    font-style: italic;
}

.news-detail-preamble {
    margin-top: 20px;
    margin-bottom: 20px;
}

.news-back-link {
    margin-top: 30px;
    text-align: center;
}

.news-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.news-gallery-link {
    display: block;
    border: 1px solid #9aa9b7;
}

.news-gallery-link img,
.gallery-image {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .news-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .news-card-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1199.98px) {
    .navbar-collapse {
        gap: 1rem;
        padding: .5rem 0 1.25rem;
    }

    .navbar-nav {
        width: 100%;
        align-items: flex-start;
        gap: 0;
        border-top: 1px solid rgba(255, 255, 255, .35);
    }

    .navbar-nav .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, .35);
    }

    .navbar-nav .nav-link {
        display: flex;
        min-height: 52px;
        width: 100%;
        align-items: center;
        text-align: left;
    }

    .navbar-nav .nav-link {
        padding: .85rem 1rem !important;
    }

    .site-search {
        width: 100%;
        max-width: 420px;
        margin: .75rem 0 0;
    }
}

/* Jeden skiplink na początku każdej strony, widoczny po uzyskaniu fokusu. */
#skipLinks { position: relative; z-index: 10000; }
#skipLinks a {
    position: absolute;
    top: .5rem;
    left: 1rem;
    transform: translateY(calc(-100% - 1rem));
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    max-width: calc(100vw - 2rem);
    padding: .65rem 1rem;
    border: 2px solid #fff;
    background: #03203d;
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
}
#skipLinks a:focus { transform: none; outline: 3px solid #ffdc73; outline-offset: 2px; }
#home-page-title { color: #fff !important; background-color: #03203d !important; }

.main_box p a{
	color:#034aad;
}





/* Spójny wygląd podsekcji, m.in. listy aktualnych projektów. */
.subpage-child-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin: 1.5rem 0 2rem;
    padding: 0;
    list-style: none;
}

.subpage-child-grid li { margin: 0; }

.subpage-child-grid a,
.subpage-child-grid a:visited {
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1rem;
    color: #0a4128;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    background: #fff;
    border: 2px solid #146c43;
}

.subpage-child-grid a:hover {
    color: #fff;
    background: #146c43;
}

.subpage-child-grid a:focus-visible {
    outline: 3px solid #03203d;
    outline-offset: 3px;
}

@media (max-width: 767.98px) {
    .subpage-child-grid { grid-template-columns: 1fr; }
}
	   
/* Profesjonalny formularz kontaktowy */
#contact .contact-eyebrow {
    margin: 0 0 .75rem;
    color: #8ff0be;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

#contact .contact-intro p { margin: 0; }
#contact .contact-form { display: grid; gap: 1.35rem; max-width: none; }
#contact .contact-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem; }
#contact .contact-field { display: grid; gap: .45rem; }
#contact .contact-field label,
#contact .contact-consent label { color: #fff; font-weight: 700; line-height: 1.45; }
#contact .contact-optional,
#contact .contact-help,
#contact .contact-required { color: #d6e3ed; font-size: .9rem; font-weight: 400; }
#contact .contact-field input,
#contact .contact-field select,
#contact .contact-field textarea {
    width: 100%;
    min-height: 52px;
    padding: .8rem .9rem;
    border: 2px solid #b8c7d3;
    border-radius: 0;
    background: #fff;
    color: #10273b;
    font: inherit;
}
#contact .contact-field textarea { min-height: 170px; resize: vertical; }
#contact .contact-field input:focus-visible,
#contact .contact-field select:focus-visible,
#contact .contact-field textarea:focus-visible,
#contact .contact-consent input:focus-visible {
    outline: 3px solid #ffdc73;
    outline-offset: 3px;
    border-color: #fff;
}
#contact .contact-field [aria-invalid="true"] { border-color: #ffb4b4; }
#contact .contact-error { display: block; color: #ffe0e0; font-size: .92rem; font-weight: 700; }
#contact .contact-alert {
    margin: 0 0 1.5rem;
    padding: 1rem 1.1rem;
    border-left: 5px solid #ffdc73;
    background: #fff4cf;
    color: #391f00;
    font-weight: 700;
}
#contact .contact-consent { display: grid; grid-template-columns: 24px 1fr; gap: .75rem; align-items: start; }
#contact .contact-consent input { width: 22px; height: 22px; margin-top: .12rem; accent-color: #55c58a; }
#contact .contact-consent-error { margin-top: -.9rem; }
#contact .contact-required { margin: -.35rem 0 0; }
#contact .contact-submit { justify-self: start; min-height: 50px; padding: .8rem 1.35rem; }
#contact .contact-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
@media (max-width: 700px) {
    #contact .contact-form-grid { grid-template-columns: 1fr; }
    #contact .contact-submit { width: 100%; }
}
#contact.contact-section {
    width: min(100% - 2rem, 1080px);
    margin: clamp(2rem, 5vw, 4rem) auto;
    padding: 0;
    background: transparent;
}
#contact .contact-form-panel {
    padding: clamp(2rem, 6vw, 4.75rem);
    border-top: 6px solid #55c58a;
    background: #0a3b61;
    box-shadow: 0 18px 45px rgba(0, 37, 70, .16);
}
#contact .contact-form-inner { max-width: 780px; margin: 0 auto; }
#contact .contact-form-panel h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.15;
}
#contact .contact-form-panel .contact-intro {
    margin: 1.25rem 0 2rem;
    color: #fff;
    line-height: 1.65;
}
@media (max-width: 575.98px) {
    #contact.contact-section { width: min(100% - 1rem, 1080px); margin: 1rem auto 2rem; }
    #contact .contact-form-panel { padding: 1.5rem 1rem 2rem; }
}

.site-footer .footer-contact-link {
    display: inline-flex;
    margin-top: 1.25rem;
}

/* Menu jest przed odnośnikami nagłówka w DOM, przy zachowaniu układu wizualnego. */


/* Formularz: widoczny fokus oraz błędy oznaczone także komunikatem tekstowym. */
#contact .contact-field input:focus,
#contact .contact-field select:focus,
#contact .contact-field textarea:focus {
    outline: 3px solid #ffdc73;
    outline-offset: 3px;
    border-color: #03203d;
    background: #fff8df;
    box-shadow: 0 0 0 6px #03203d;
}
#contact .contact-field [aria-invalid="true"] {
    border: 3px solid #a11212;
    background: #fff2f2;
    color: #10273b;
}
#contact .contact-consent input:focus {
    outline: 3px solid #ffdc73;
    outline-offset: 4px;
}
#contact .contact-consent:has(input[aria-invalid="true"]) {
    padding: .6rem;
    border: 2px solid #ffb4b4;
}
#contact .contact-error-summary { margin: 0 0 1rem; }
#contact .contact-error-summary[hidden] { display: none; }
#contact .contact-error-summary a { color: #03203d; text-decoration: underline; }
#contact .contact-error-summary a:focus-visible { outline: 3px solid #03203d; outline-offset: 3px; }

#contact .contact-consent .contact-error { grid-column: 1 / -1; }
#contact .contact-field:focus-within label { color: #ffdc73; }

/* Hierarchia nagłówków nie zmienia wyglądu tytułów kart. */
.news-card-grid h3.news-card-title { margin-top: 0; }
/* Lista błędów nie dziedziczy dużych odstępów dawnych list kontaktowych. */
#contact .contact-error-summary {
    padding: 1.25rem;
    margin: 0;
    border: 1px solid #d8a6a1;
    border-left: 5px solid #a11212;
    border-radius: 6px;
    background: #fff5f3;
    color: #481b18;
    min-width: 0;
}
#contact .contact-error-summary-title { margin: 0 0 .4rem; font-size: 1.3rem; line-height: 1.3; color: #7b1717; font-weight: 700; }
#contact .contact-error-summary-intro { margin: 0 0 .8rem; font-size: 1rem; line-height: 1.5; color: #481b18; font-weight: 400; }
#contact .contact-error-summary ul { display: grid; gap: .35rem; padding: 0; margin: 0; list-style: none; }
#contact .contact-error-summary li { margin: 0; padding: 0; font-size: 1rem; line-height: 1.45; min-width: 0; }
#contact .contact-error-summary li a,
#contact .contact-error-summary li a:visited {
    display: grid;
    gap: .15rem;
    padding: .6rem .75rem;
    min-height: 44px;
    border: 1px solid #e7cbc6;
    border-radius: 4px;
    background: #fff;
    color: #03203d;
    overflow-wrap: anywhere;
    text-decoration: none;
}
#contact .contact-error-summary .contact-error-field-name { text-decoration: underline; text-underline-offset: .15em; font-weight: 700; }
#contact .contact-error-summary .contact-error-detail { color: #572723; font-size: .95rem; }
#contact .contact-error-summary li a:hover { background: #fff0e9; border-color: #a11212; }
#contact .contact-error-summary li a:focus-visible { outline: 3px solid #03203d; outline-offset: 2px; background: #fff4cf; }
#contact .contact-field .contact-error { padding-left: .65rem; border-left: 3px solid #ffb4b4; line-height: 1.5; }
@media (max-width: 575.98px) { #contact .contact-error-summary { padding: 1rem; } }

#contact .contact-consent .contact-error { grid-column: 1 / -1; }
#contact .contact-field:focus-within label { color: #ffdc73; }

/* PP12: palette based on the supplied logo. */
.site-navigation .navbar-nav{flex-wrap:wrap;gap:.25rem}.site-name{max-width:680px}.home-hero-title{font-size:clamp(2rem,3.2vw,3.6rem)}
.home-hero .pp12-hero-logo{background:#f2f2f2;padding:1rem}.home-hero .pp12-hero-logo img{object-fit:contain;width:100%;height:auto;aspect-ratio:2413/1799}
.pp12-staff dt{font-weight:700;color:#123d56}.pp12-staff dd{margin:0 0 1rem}.pp12-calendar-filter{display:flex;flex-wrap:wrap;align-items:center;gap:1rem}.pp12-calendar-filter input{padding:.6rem;border:1px solid #607080;border-radius:.3rem}.pp12-calendar-nav{display:flex;flex-wrap:wrap;gap:1.5rem;justify-content:space-between;margin:2rem 0}.pp12-events{padding:0;list-style:none}.pp12-events li{padding:1rem 0;border-bottom:1px solid #cbd5e1}.pp12-events time{display:inline-block;margin-right:1rem;font-weight:700}.about-content img{max-width:100%;height:auto}
