/********** Template CSS **********/
:root {
    --primary: #348E38;
    --secondary: #525368;
    --light: #E8F5E9;
    --dark: #0F4229;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

h1,
.h1,
h2,
.h2,
.fw-bold {
    font-weight: 700 !important;
    padding-top: 20px;
    line-height: normal;
}

h3,
.h3,
h4,
.h4,
.fw-medium {
    font-weight: 600 !important;
}

h5,
.h5,
h6,
.h6,
.fw-semi-bold {
    font-weight: 500 !important;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--light);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 80px
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 18px;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(15, 66, 41, .6);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background: linear-gradient(rgba(15, 66, 41, .6), rgba(15, 66, 41, .6)), url("../img/cs_3.webp") center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--light);
}


/*** Top Feature ***/
@media (min-width: 991.98px) {
    .top-feature {
        position: relative;
        margin-top: -80px;
        z-index: 1;
    }
}


/*** Facts & Quote ***/
.facts,
.quote {
    background: rgba(15, 66, 41, .6);
}


/*** Service ***/
.service-item {
    position: relative;
    text-align: center;
}

.service-item .service-img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
}

.service-item .service-img img {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    object-fit: cover;
    transform: scale(1.2);
    transition: .3s;
    z-index: -1;
}

.service-item:hover .service-img img {
    transform: scale(1);
}

.service-item .service-text {
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .3s;
}

.service-item:hover .service-text {
    background: rgba(15, 66, 41, .6);
}

.service-item .service-text h4,
.service-item .service-text p {
    transition: .3;
}

.service-item:hover .service-text h4 {
    color: #FFFFFF;
}

.service-item:hover .service-text p {
    color: var(--light);
}

.service-item .service-text .btn-square {
    width: 100px;
    height: 100px;
    background: transparent;
    transition: .5s;
}

.service-item:hover .service-text .btn-square {
    background: var(--light);
}

.service-item .service-text .btn {
    width: 31px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    color: var(--dark);
    background: var(--light);
    white-space: nowrap;
    overflow: hidden;
    transition: .3s;
}

.service-item:hover .service-text .btn {
    width: 112px;
}


/*** Project Portfolio ***/
#portfolio-flters {
    display: inline-block;
    background: var(--light);
    padding: 10px 15px;
}

#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--primary);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--dark);
    border-color: var(--dark);
}

.portfolio-inner {
    position: relative;
    overflow: hidden;
}

.portfolio-inner::before,
.portfolio-inner::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(15, 66, 41, .6);
    transition: .5s;
}

.portfolio-inner::after {
    left: auto;
    right: 0;
}

.portfolio-inner:hover::before,
.portfolio-inner:hover::after {
    width: 50%;
}

.portfolio-inner .portfolio-text {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .5s;
    z-index: 3;
    opacity: 0;
}

.portfolio-inner:hover .portfolio-text {
    transition-delay: .3s;
    opacity: 1;
}

.portfolio-inner .portfolio-text .btn {
    background: var(--light);
    color: var(--primary);
}

.portfolio-inner .portfolio-text .btn:hover {
    background: var(--primary);
    color: var(--light);
}


/*** Team ***/
.team-item {
    position: relative;
    overflow: hidden;
}

.team-item .team-text {
    position: absolute;
    width: calc(100% - 45px);
    left: -100%;
    bottom: 45px;
    padding: 1.5rem;
    background: #FFFFFF;
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-text {
    left: 0;
    opacity: 1;
}

.team-item .team-social .btn {
    background: var(--light);
    color: var(--primary);
}

.team-item .team-social .btn:hover {
    background: var(--primary);
    color: var(--light);
}

.team-item .team-img .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
    z-index: 3;
    opacity: 0;
}

.team-item:hover .team-img .team-social {
    transition-delay: .3s;
    opacity: 1;
}


/*** Testimonial ***/

.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-nav {
    margin-top: 10px;
    display: flex;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin-right: 15px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--light);
    border-radius: 4px;
    font-size: 22px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    color: var(--light);
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    color: var(--light);
    background: #072A19;
}

.copyright a {
    color: #FFFFFF;
}

.copyright a:hover {
    color: var(--primary);
}

.image-swap {
  overflow: hidden;
}

.image-swap .base-img,
.image-swap .hover-img {
  display: block;
}

.image-swap .hover-img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .3s ease;
}

.image-swap:hover > .base-img {
    opacity: 0;
}

.image-swap:hover .hover-img {
  opacity: 1;
}




.testimonial-carousel {
    --testimonial-accent: var(--bs-primary, #0d6efd);
}

.testimonial-carousel .testimonial-item {
    position: relative;
    overflow: hidden;
    background: #fff;
}

/* Dwie części animowanej ramki */
.testimonial-carousel .testimonial-item::before,
.testimonial-carousel .testimonial-item::after {
    content: "";
    position: absolute;
    box-sizing: border-box;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
    z-index: 2;

    border: 2px solid transparent;

    transition:
        width 0.4s ease,
        height 0.4s ease,
        opacity 0.2s ease;
}

.testimonial-carousel .testimonial-item::before {
    top: 0;
    left: 0;
    border-top-color: var(--testimonial-accent);
    border-left-color: var(--testimonial-accent);
    border-top-left-radius: inherit;
}

.testimonial-carousel .testimonial-item::after {
    right: 0;
    bottom: 0;
    border-right-color: var(--testimonial-accent);
    border-bottom-color: var(--testimonial-accent);
    border-bottom-right-radius: inherit;
}

.testimonial-carousel .testimonial-item img {
    transition: transform 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
    .testimonial-carousel .testimonial-item:hover::before,
    .testimonial-carousel .testimonial-item:hover::after {
        width: 100%;
        height: 100%;
        opacity: 1;
    }

    .testimonial-carousel .testimonial-item:hover img {
        transform: scale(1.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .testimonial-carousel .testimonial-item::before,
    .testimonial-carousel .testimonial-item::after,
    .testimonial-carousel .testimonial-item img {
        transition: none;
    }

    .testimonial-carousel .testimonial-item:hover img {
        transform: none;
    }
}
.tomato-article {
    --article-green: #315b3c;
    --article-green-light: #edf4e9;
    --article-cream: #faf7ef;
    --article-muted: #657166;
}

.tomato-article .article-eyebrow {
    color: var(--article-green);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tomato-article .article-intro {
    max-width: 820px;
    margin-inline: auto;
}

.tomato-article .article-copy {
    line-height: 1.85;
}

.tomato-article .article-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 2rem;
    overflow: hidden;
    border: 1px dashed #a8bca1;
    border-radius: 1.25rem;
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(255, 255, 255, 0.8),
            transparent 45%
        ),
        linear-gradient(135deg, #edf4e9, #e1ead9);
    color: var(--article-green);
    text-align: center;
}

.tomato-article .article-image-placeholder svg {
    width: 46px;
    height: 46px;
    opacity: 0.65;
}

.tomato-article .placeholder-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.tomato-article .placeholder-description {
    max-width: 340px;
    color: var(--article-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.tomato-article .article-image--hero {
    aspect-ratio: 16 / 9;
}

.tomato-article .article-image--section {
    aspect-ratio: 4 / 3;
}

.tomato-article .article-image--step {
    aspect-ratio: 1 / 1;
}

.tomato-article img.article-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 1.25rem;
    object-fit: cover;
}

.tomato-article .article-caption {
    margin-top: 0.8rem;
    color: var(--article-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.tomato-article .article-section {
    margin-bottom: 4.5rem;
}

.tomato-article .article-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--article-green-light);
    color: var(--article-green);
    font-size: 0.9rem;
    font-weight: 600;
}

.tomato-article .article-step-card {
    height: 100%;
    padding: 1.25rem;
    border: 1px solid #e5ebdf;
    border-radius: 1.5rem;
    background: #fff;
}

.tomato-article .article-step-number {
    display: block;
    margin: 1.25rem 0 0.5rem;
    color: var(--article-green);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tomato-article .article-note {
    padding: 1.5rem;
    border-left: 3px solid var(--article-green);
    border-radius: 0 1rem 1rem 0;
    background: var(--article-cream);
}

.tomato-article .article-cta {
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: 1.5rem;
    background: var(--article-green-light);
}

@media (max-width: 575.98px) {
    .tomato-article .article-section {
        margin-bottom: 3rem;
    }

    .tomato-article .article-image-placeholder {
        padding: 1.25rem;
    }

    .tomato-article .article-image--hero {
        aspect-ratio: 4 / 3;
    }
}

/* Pionowe zdjęcie główne — proporcje 3:4 */
.tomato-article .article-hero-portrait {
    width: 100%;
    max-width: 600px;
    margin-inline: auto;
}

.tomato-article .article-image--portrait {
    width: 100%;
    aspect-ratio: 3 / 4;
}

/* Zdjęcie po zastąpieniu placeholdera */
.tomato-article img.article-image--portrait {
    height: auto;
    object-fit: cover;
}

/* Równa wysokość kart */
.latest-articles-carousel .owl-stage {
    display: flex;
}

.latest-articles-carousel .owl-item {
    display: flex;
}

/* Miejsce na obramowanie i cień przy najechaniu */
.latest-articles-carousel .owl-stage-outer {
    padding-block: 12px;
}

/* Karta artykułu */
.latest-articles-carousel .latest-article-card {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
    padding: 1.5rem;

    border: 1px solid #e1e8dc;
    border-radius: 1rem;
    background-color: #fff;

    color: #253629;
    text-align: center;
    text-decoration: none;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

/* Mała grafika — nadpisanie szerokości ustawianej przez Owl Carousel */
.latest-articles-carousel .latest-article-card__image {
    display: block;
    flex-shrink: 0;

    width: 88px;
    height: 88px;
    margin: 0 auto 1rem;

    border-radius: 0.85rem;
    object-fit: cover;
}

/* Treść karty */
.latest-articles-carousel .latest-article-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;

    width: 100%;
    min-width: 0;
}

.latest-articles-carousel .latest-article-card__category {
    display: block;
    margin-bottom: 0.65rem;

    color: #527247;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.latest-articles-carousel .latest-article-card__title {
    margin: 0 0 0.75rem;

    color: #315b3c;
    font-size: 1.1rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.latest-articles-carousel .latest-article-card__subtitle {
    margin: 0 0 1rem;

    color: #657166;
    font-size: 0.9rem;
    line-height: 1.65;
}

/* Link tekstowy wyrównany do dołu karty */
.latest-articles-carousel .latest-article-card__action {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;

    margin-top: auto;
    padding-top: 0.25rem;

    color: #315b3c;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Efekt po najechaniu */
.latest-articles-carousel .latest-article-card:hover {
    transform: translateY(-4px);
    border-color: #a8bca1;
    box-shadow: 0 8px 20px rgba(49, 91, 60, 0.1);

    color: #253629;
    text-decoration: none;
}

/* Obsługa klawiatury */
.latest-articles-carousel .latest-article-card:focus-visible {
    outline: 3px solid #315b3c;
    outline-offset: -4px;
}

@media (max-width: 575.98px) {
    .latest-articles-carousel .latest-article-card {
        padding: 1.25rem;
    }

    .latest-articles-carousel .latest-article-card__image {
        width: 76px;
        height: 76px;
    }

    .latest-articles-carousel .latest-article-card__title {
        font-size: 1rem;
    }
}

/* Ograniczenie animacji zgodnie z ustawieniem użytkownika */
@media (prefers-reduced-motion: reduce) {
    .latest-articles-carousel .latest-article-card {
        transition: none;
    }

    .latest-articles-carousel .latest-article-card:hover {
        transform: none;
    }
}

/* ==================================================
   KARUZELA ZESPOŁU
   Bez zmiany oryginalnych efektów kart
   ================================================== */

#o-nas {
    --team-gap: 24px;
    --team-accent: var(--bs-primary, #348e38);
}

/* Obszar przewijania */
#o-nas .team-carousel__viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

#o-nas .team-carousel__viewport::-webkit-scrollbar {
    display: none;
}

/* Układ kart w jednym rzędzie */
#o-nas .team-carousel__track {
    display: flex;
    align-items: stretch;
    gap: var(--team-gap);
}

/* Komputer: 3 widoczne profile */
#o-nas .team-carousel__slide {
    flex: 0 0 calc((100% - 2 * var(--team-gap)) / 3);
    min-width: 0;
    scroll-snap-align: start;
}

/*
   Nie nadpisujemy:
   .team-item
   .team-text
   .team-social
   ani ich stanów :hover.

   Wygląd kart i efekt pojawiania się tekstu
   pozostają w oryginalnym CSS strony.
*/

/* Zastępcze grafiki dla profili 4–6 */
#o-nas .team-avatar-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 550 / 650;
    background: linear-gradient(135deg, #edf5e8, #d5e5cc);
    color: #58774a;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
}

/* Nawigacja */
#o-nas .team-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 28px;
}

#o-nas .team-carousel__controls[hidden] {
    display: none;
}

/* Strzałki */
#o-nas .team-carousel__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    flex-shrink: 0;
    border: 1px solid var(--team-accent);
    border-radius: 50%;
    background: #fff;
    color: var(--team-accent);
    font-size: 25px;
    cursor: pointer;
    transition:
        background 0.2s,
        color 0.2s,
        opacity 0.2s;
}

#o-nas .team-carousel__arrow:hover:not(:disabled) {
    background: var(--team-accent);
    color: #fff;
}

#o-nas .team-carousel__arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

/* Wskaźniki pozycji */
#o-nas .team-carousel__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
}

#o-nas .team-carousel__dot {
    display: grid;
    place-items: center;
    width: 28px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

#o-nas .team-carousel__dot::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cdd8c9;
    transition:
        background 0.2s,
        transform 0.2s;
}

#o-nas .team-carousel__dot[aria-current="true"]::before {
    background: var(--team-accent);
    transform: scale(1.3);
}

/* Widoczny fokus podczas obsługi klawiaturą */
#o-nas .team-carousel__arrow:focus-visible,
#o-nas .team-carousel__dot:focus-visible,
#o-nas .team-carousel__viewport:focus-visible {
    outline: 3px solid var(--team-accent);
    outline-offset: 3px;
}

/* Tablet: 2 widoczne profile */
@media (max-width: 991.98px) {
    #o-nas .team-carousel__slide {
        flex-basis: calc((100% - var(--team-gap)) / 2);
    }
}

/* Telefon: 1 widoczny profil */
@media (max-width: 575.98px) {
    #o-nas {
        --team-gap: 16px;
    }

    #o-nas .team-carousel__slide {
        flex-basis: 100%;
    }

    #o-nas .team-carousel__controls {
        gap: 12px;
    }
}

/* Nawigacja wyłącznie z kropkami */
#o-nas .team-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
    gap: 0;
}

#o-nas .team-carousel__controls[hidden] {
    display: none;
}

/* Ukrycie strzałek, jeśli pozostały w HTML */
#o-nas .team-carousel__arrow {
    display: none;
}

#o-nas .team-carousel__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px;
}

#o-nas .team-carousel__dot {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

#o-nas .team-carousel__dot::before {
    content: "";
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #cdd8c9;
    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

#o-nas .team-carousel__dot:hover::before {
    background: var(--team-accent, #348e38);
}

#o-nas .team-carousel__dot[aria-current="true"]::before {
    background: var(--team-accent, #348e38);
    transform: scale(1.35);
}

#o-nas .team-carousel__dot:focus-visible {
    outline: 2px solid var(--team-accent, #348e38);
    outline-offset: 2px;
    border-radius: 50%;
}

@media (prefers-reduced-motion: reduce) {
    #o-nas .team-carousel__dot::before {
        transition: none;
    }
}

.error-404 {
    --error-bg-height: 520px;

    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    min-height: var(--error-bg-height);
    background-color: #203124;
    color: #fff;
}

/* Tło ma własną wysokość, niezależną od tekstu. */
.error-404::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--error-bg-height);
    pointer-events: none;

    /* Przyciemnienie grafiki poprawia czytelność tekstu. */
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.60)),
        url("../img/404.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* Nadpisuje kolor nagłówków i akapitów z szablonu. */
.error-404__content h1,
.error-404__content p {
    color: #fff;
}

.error-404__content {
    min-height: var(--error-bg-height);
    display: flex;
    flex-direction: column;
    padding-top: 24px;
    padding-bottom: 24px;
}

.error-404__message {
    flex: 1;
    align-items: center;
}

.error-404__action {
    margin-top: 24px;
}

#cookieConsent[hidden] {
  display: none !important;
}

#cookieConsent {
  position: fixed;
  z-index: 2000;
  right: 12px;
  bottom: 12px;
  left: 12px;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  left: max(12px, env(safe-area-inset-left));
  max-width: 960px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - max(12px, env(safe-area-inset-bottom)) - 12px);
  margin-inline: auto;
  overflow: auto;
  pointer-events: auto;
  color: var(--dark, #0F4229);
  background: var(--light, #E8F5E9);
  border: 1px solid var(--primary, #348E38);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(15, 66, 41, .18);
}

#cookieConsent .cookie-consent__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
}

#cookieConsent .cookie-consent__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  font-size: 22px;
}

#cookieTitle {
  margin: 0 0 4px;
  color: var(--dark, #0F4229);
  font-size: 1rem;
  line-height: 1.3;
}

#cookieConsent p {
  margin: 0;
  color: var(--secondary, #525368);
  font-size: .9rem;
  line-height: 1.45;
}

#cookieConsent .cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#cookieConsent .cookie-btn {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--primary, #348E38);
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  touch-action: manipulation;
}

#cookieConsent .cookie-btn--accept {
  background: var(--dark, #0F4229);
  color: #fff;
}

#cookieConsent .cookie-btn--reject {
  background: #fff;
  color: var(--dark, #0F4229);
}

#cookieConsent .cookie-btn:focus-visible {
  outline: 2px solid var(--dark, #0F4229);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  #cookieConsent .cookie-consent__inner {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 14px;
  }

  #cookieConsent .cookie-consent__actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 359px) {
  #cookieConsent .cookie-consent__actions {
    grid-template-columns: 1fr;
  }
}