/* === Margin === */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 4px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 12px !important; }
.mt-4 { margin-top: 16px !important; }
.mt-5 { margin-top: 24px !important; }
.mt-6 { margin-top: 32px !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 12px !important; }
.mb-4 { margin-bottom: 16px !important; }
.mb-5 { margin-bottom: 24px !important; }
.mb-6 { margin-bottom: 32px !important; }

/* === Margin Left === */
.ml-0 { margin-left: 0 !important; }
.ml-1 { margin-left: 4px !important; }
.ml-2 { margin-left: 8px !important; }
.ml-3 { margin-left: 12px !important; }
.ml-4 { margin-left: 16px !important; }
.ml-5 { margin-left: 24px !important; }
.ml-6 { margin-left: 32px !important; }

/* === Margin Right === */
.mr-0 { margin-right: 0 !important; }
.mr-1 { margin-right: 4px !important; }
.mr-2 { margin-right: 8px !important; }
.mr-3 { margin-right: 12px !important; }
.mr-4 { margin-right: 16px !important; }
.mr-5 { margin-right: 24px !important; }
.mr-6 { margin-right: 32px !important; }

/* === Margin All Sides === */
.m-0 { margin: 0 !important; }
.m-1 { margin: 4px !important; }
.m-2 { margin: 8px !important; }
.m-3 { margin: 12px !important; }
.m-4 { margin: 16px !important; }
.m-5 { margin: 24px !important; }
.m-6 { margin: 32px !important; }

/* === Padding === */
.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 4px !important; }
.pt-2 { padding-top: 8px !important; }
.pt-3 { padding-top: 12px !important; }
.pt-4 { padding-top: 16px !important; }
.pt-5 { padding-top: 24px !important; }
.pt-6 { padding-top: 32px !important; }
.pt-7 { padding-top: 64px !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 4px !important; }
.pb-2 { padding-bottom: 8px !important; }
.pb-3 { padding-bottom: 12px !important; }
.pb-4 { padding-bottom: 16px !important; }
.pb-5 { padding-bottom: 24px !important; }
.pb-6 { padding-bottom: 32px !important; }
.pb-7 { padding-bottom: 64px !important; }

/* === Padding Left === */
.pl-0 { padding-left: 0 !important; }
.pl-1 { padding-left: 4px !important; }
.pl-2 { padding-left: 8px !important; }
.pl-3 { padding-left: 12px !important; }
.pl-4 { padding-left: 16px !important; }
.pl-5 { padding-left: 24px !important; }
.pl-6 { padding-left: 32px !important; }

/* === Padding Right === */
.pr-0 { padding-right: 0 !important; }
.pr-1 { padding-right: 4px !important; }
.pr-2 { padding-right: 8px !important; }
.pr-3 { padding-right: 12px !important; }
.pr-4 { padding-right: 16px !important; }
.pr-5 { padding-right: 24px !important; }
.pr-6 { padding-right: 32px !important; }

/* === Padding All Sides === */
.p-0 { padding: 0 !important; }
.p-1 { padding: 4px !important; }
.p-2 { padding: 8px !important; }
.p-3 { padding: 12px !important; }
.p-4 { padding: 16px !important; }
.p-5 { padding: 24px !important; }
.p-6 { padding: 32px !important; }

.half-container-left {
    width: 100%;
    max-width: 585px; /* połowa z 1170px */
    padding-left: 20px; /* jak w containerze */
    padding-right: 20px;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: 0;
}

/* Dostosowanie do większych breakpointów */
@media (min-width: 1440px) {
    .half-container-left {
        max-width: 700px; /* połowa z 1400px */
    }
}

@media (min-width: 1200px) and (max-width: 1439px) {
    .half-container-left {
        max-width: 585px; /* połowa z 1170px */
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .half-container-left {
        max-width: 485px; /* połowa z 970px */
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .half-container-left {
        max-width: 375px; /* połowa z 750px */
    }
}

.container-narrow {
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
    margin: 30px auto;
}

@media (min-width: 768px) {
    .container-narrow {
        max-width: 700px;
    }
}

@media (min-width: 992px) {
    .container-narrow {
        max-width: 800px;
    }
}

@media (min-width: 1200px) {
    .container-narrow {
        max-width: 900px;
    }
}

@media (min-width: 993px) {

    #site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        transition: transform 0.3s ease-in-out;
    }

    #site-header.header-hidden {
        transform: translateY(-100%);
    }


    #about .about_right {
        margin-top: 0 !important;
    }

    #about .about_right .about_right_bcg {
        top: 0 !important;
    }

    .navbar_desktop {
        padding: 16px 40px;
        display: flex;
        border-bottom: none !important;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .navbar-logo,
    .navbar-cta {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 9999;
    }

    .navbar-logo {
        left: 40px;
    }

    .navbar-cta {
        right: 40px;
    }

    .navbar-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 0 auto;
    }

    .navbar-logo img {
        min-height: 60px;
    }

    .navbar-menu {
        position: relative;
        z-index: 1000;
        flex: 1;
        display: flex;
        justify-content: center;
        height: 60px;
        align-items: center;
    }

    /* Styl główny menu */
    .main-menu {
        display: flex;
        gap: 12px;
        justify-content: center;
    }

    .main-menu li {
        font-size: 14px;
        padding: 10px 0 !important;
        border-bottom: 2px solid transparent;
        transition: all .5s
    }

    .main-menu li a{
        padding: 10px 5px !important;
    }

    .main-menu li:hover {
        color: #242424 !important;
        border-bottom: 2px solid #323235;
    }

    .main-menu li a:hover {
        color: #323235 !important;
    }


    /* Pozycjonowanie submenu */
    .main-menu > li > .sub-menu {
        position: fixed;
        right: 0;
        display: none;
        top: 124px;
        left: 0;
        width: 100vw;
        background: #323235;
        padding: 10px 32px !important;
        z-index: 9999;
    }

    /* Pokaż submenu przy klasie show-submenu */
    .main-menu > li.show-submenu > .sub-menu {
        display: flex;
        gap: 16px;
        justify-content: center;
    }

    /* Styl elementów submenu */
    .sub-menu li {
        display: inline-block;
        color: #fff;
        transition: transform 0.4s ease, opacity 0.4s ease;
    }

    .sub-menu li a {
        font-size: 14px;
        color: #fff !important;
        text-decoration: none;
        font-weight: 500;
        padding: 10px 5px;
        border-bottom: 2px solid transparent;
        transition: all .5s
    }

    .sub-menu li a:hover {
        text-decoration: none;
        background-color: transparent !important;
        border-bottom: 2px solid #fff;
        color: #fff !important;
    }


    .navbar-cta .cta-button {
        background: #323235 !important;
        color: #fff;
        padding: 12px 16px;
        text-decoration: none;
        font-weight: 600;
        font-size: 14px;
        display: flex;
        align-items: center;
        cursor: pointer;
        width: max-content;
    }

    #load-more-posts.cta-button {
        background: #323235 !important;
        color: #fff;
        padding: 12px 16px;
        text-decoration: none;
        font-weight: 600;
        font-size: 14px;
        display: flex;
        align-items: center;
        cursor: pointer;
        width: max-content;
    }

    .cta-button .arrow {
        margin-left: 12px;
        font-size: 20px;
    }



    .sticky-navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 10000;
    }

    html {
        padding-top: 80px ;
    }

    body {
        padding-top: 0;
    }

    html[style*="padding-top: 32px"] body {
        padding-top: 32px; /* albo więcej jeśli masz header większy */
    }

}



@media (max-width: 992px) {
    .sticky-navbar {
        display: none;
    }
}

/*sekcja partners*/
.partners-section {
    background: #f2f2f2;
    padding: 0 0 10px 0;
    text-align: center;
    position: relative;
}

.partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* odstęp między ikonami */
    background-color: #fff;
    margin-bottom: 20px;
}

.partners-logos > * {
    flex: 0 0 calc(100% / 6 - 20px); /* 6 ikon na desktopie */
    max-width: calc(100% / 6 - 20px);
}

.partners-logos img {
    width: 100%;
    height: auto;
}

.partners-content {
    margin: 0 auto;
    position: relative;
}

.partners-content .line {
    height: 1px;
    background: #1a1a1a;
    width: 100%;
    margin-bottom: 40px;
}

.partners-text  {
    text-align: left;
}

.flex-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.partners-more {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 16px;
}

.partners-more .arrow {
    margin-left: 12px;
    font-size: 18px;
    transform: translateY(1px);
}

@media (max-width: 992px) {
    .partners-logos > * {
        flex: 0 0 calc(100% / 3 - 20px);
        max-width: calc(100% / 3 - 20px);
    }

    .flex-row {
        flex-direction: column;
    }
}

/*realizacje*/
.text-realizacje{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.portfolio-links {
    display: flex;
    flex-direction: column;
}

.portfolio-link {
    position: relative;
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.portfolio-link:hover {
    color: white;
}

.portfolio-link .arrow--fix-right {
    opacity: 0;
    transform: translateX(-20px); /* start poza tekstem – po lewej */
    transition: transform 0.4s ease, opacity 0.4s ease;
    margin-left: 40px;
}

.portfolio-link:hover .arrow--fix-right {
    opacity: 1;
    transform: translateX(0); /* końcowa pozycja */
}


/*zespol*/
#about .row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch; /* dopasowuje wysokość kolumn */
}

.about_left,
.about_right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: auto;
}

.about_right_bcg {
    height: 100%;
    width: 100%;
}

.about_right_bcg_img {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
}




/*strefa wiedzy listing*/
.knowledge-listing {
    margin-top: 0px !important;
}



.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 65px 20px;
    margin-top: 30px;
}

@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .posts-grid {
        grid-template-columns: 1fr;
        margin-top: 35px;
    }
}

.post-card {
    display: flex;
    flex-direction: column;
}

.thumbnail-link {
    display: block;
    overflow: hidden;
}

.post-thumbnail {
    position: relative;
    height: 450px;
    overflow: hidden;
    background-color: #eee;
}

.post-thumbnail-blog {
    position: relative;
    height: 350px;
    overflow: hidden;
    background-color: #eee;
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.6s ease, transform 0.6s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.main-img {
    z-index: 1;
}

.hover-img {
    opacity: 0;
    z-index: 2;
}

.thumbnail-link:hover .hover-img {
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail-link:hover .main-img {
    transform: scale(1.05);
}

.post-content {
    margin-top: 20px;
    position: relative;
    color: #323235 !important;
}
.post-content a {
    color: #323235 !important;
}


.wiedza-arrow-up {
    position: absolute;
    right: 0;
    top:0;
}

.post-meta {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.term-label {
    font-weight: bold;
    color: #323235;
    font-size: 15px;
}

.author-name {
    font-weight: normal;
    color: #323235;
}

.post-title {
    font-size: 20px;
    font-weight: 800;
    color: #323235 !important;
    line-height: 1.3;
    margin: 0;
}

.post-title a {
    color: inherit;
    text-decoration: none;
}

/* DESKTOP — bez zmian (Twoje reguły zostają) */

/* MOBILE SLIDER: poziome przewijanie */
@media (max-width: 768px) {
    .posts-grid {
        display: flex;                /* zamiast grida */
        gap: 16px;                    /* odstępy między kartami */
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory; /* snap do kart */
        padding: 8px 16px;             /* wewnętrzne marginesy toru */
        margin: 0 -16px;               /* pełny bleed do krawędzi ekranu (opcjonalnie) */
        overscroll-behavior-x: contain;/* nie „wciągaj” całej strony przy mocnym swipe */
    }

    .posts-grid::-webkit-scrollbar { display: none; } /* ukryj scrollbar na mobile */
    .posts-grid { scrollbar-width: none; }           /* Firefox */

    .post-card {
        flex: 0 0 85%;           /* szerokość karty ~85% ekranu */
        scroll-snap-align: start;
    }

    /* wysokość obrazków niższa na mobile, by karta była „lekka” */
    .post-thumbnail { height: 350px; }

    /* dopasuj typografię jeśli chcesz */
    .post-card h2 { font-size: 20px; }
}

/* małe telefony */
@media (max-width: 420px) {
    .post-card { flex-basis: 90%; }
    .post-thumbnail { height: 260px; }
}



/*pojedynczy */
.knowledge-header {
    margin-top: 0 !important;
}

.knowledge-breadcrumb {
    display: flex;
    align-items: center;
}

.knowledge-breadcrumb h4{
    padding-left: 8px !important;
}

.arrow-bottom {
    text-align: center;
}

.arrow-bottom img{
    height: 80px;
    top: -30px;
    position: relative;
}

#ajax-loader {
    position: absolute;

}

.c-load-more {
    display: flex;
    justify-content: center;
}

.knowledge-author {
    position: relative;
    padding-top: 10px !important;
}

.knowledge-author::before {
    content: "";
    position: absolute;
    top: 0;
    left: 20px;
    width: calc(100% - 40px);
    height: 1px;
    background-color: #000;
}

.author-box {
    display: flex;
    gap: 20px;
    position: relative;
}

.author-image img {
    width: 200px;
    height: auto;
}

.author-share {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    align-items: center;
    top: 15px;
    position: relative;
    z-index: 999;
}

.author-share img {
    width: 25px;
    height: auto;
}

.meta-info {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #000;
    font-size: 16px;
}

.time-read img{
    width: 25px;
}

@media (max-width: 992px) {
    .time-read {
        display: flex;
        align-items: flex-end;
    }

    .author-box {
        flex-direction: column;
    }

    .category-link {
        width: fit-content;
    }

    .author-image img {
        width: 175px;
    }

    .knowledge-title {
        font-size: 28px;
    }

    .knowledge-breadcrumb {
        display: block;
    }

    .knowledge-breadcrumb {
        padding-left: 0 !important;
    }
    .knowledge-breadcrumb h4{
        padding-left: 0 !important;
    }

}

/*zobacz wiecej strefy wiedzy*/

.knowledge-latest-section {
    background-color: #f2f2f2;
}

.border-bottom {
    border-bottom: 1px solid #565353;
}

.flex-title-list {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem; /* lub np. 3rem */
    flex-wrap: wrap;
}

.knowledge-categories {
    display: flex;
    gap: 24px;
}

.category-link {
    display: inline-block;
    position: relative;
    text-decoration: none;
    color: inherit;
    text-transform: uppercase;
    padding-bottom: 10px;
}

.category-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px; /* lekko poniżej tekstu */
    width: 100%;
    height: 2px;
    background-color: black;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.category-link:hover::after {
    transform: scaleX(1);
}


.more-right {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 992px) {
    .knowledge-categories {
        gap: 0;
        flex-direction: column;
    }

    .category-link {
        padding-bottom: 2px;
    }
}

/*listing blogowy*/
.content-post {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: relative;
    bottom: 50px;
    right: 15px;
}

.title-center {
    display: flex;
    justify-content: center;
    text-transform: uppercase;
}

/*listing prawoe glowna strona*/
.container-prasowe {
    display: flex;
    gap: 36px;
    padding-bottom: 0 !important;
}

.section-title {
    text-transform: uppercase;
}

.offer-columns {
    display: flex;
    gap: 40px;
}

@media (max-width: 992px) {
    .container-prasowe {
        flex-direction: column;
    }
    .content-post {
        text-align: end;
    }
    .offer-columns {
        gap: 0;
    }


}


/*oferta*/
.project-process {
    background: #fff;
}

.process-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.process-left {
    flex: 1;
    min-width: 280px;
}

.process-left h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.process-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.process-menu li {
    cursor: pointer;
    color: #333;
    font-size: 20px;
    text-transform: uppercase;
    line-height: 44px;
    font-weight: 700;
}

.process-menu li.active {
    color: #000;
}

.process-menu li .arrow--fix-right {
    overflow: hidden;
    right: 0;
    margin-left: 16px;
}

.ask-details-btn {
    margin-top: 30px;
    padding: 12px 24px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
}

.process-right {
    flex: 2;
    min-width: 400px;
}

.process-tab {
    display: none;
}

.process-tab.active {
    display: block;
}

.process-tab h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.process-tab p {
    font-size: 16px;
    line-height: 1.6;
}

.step-content {
    font-size: 16px;
}

.image-wrapper {
    width: 100%;
    height: 300px; /* zmień wg potrzeb */
    overflow: hidden;
    position: relative;
}

.process-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    clip-path: polygon(0 0, 100% 0, 100% 75%, 0 100%);
}

.image-bottom {
    display: flex;
    justify-content: flex-end;
    bottom: 40px;
    position: relative;
    right: 10px;
}

.button-w {
    background: #2a2a2a;
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    cursor: pointer;
    width: max-content;
}

.button-w::after {
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: white;
    -webkit-mask: url('/wp-content/uploads/2025/07/message.svg') no-repeat center;
    mask: url('/wp-content/uploads/2025/07/message.svg') no-repeat center;
    background-size: contain;
    margin-left: 16px;
}

@media (max-width: 768px) {
    .process-menu li {
        font-size: 16px;
        line-height: 38px;
    }

    .process-right {
        min-width: auto;
    }
}



/*podglad galerii*/
.custom-lightbox {
    position: relative;
    background: white;
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.header-lightbox {
    width: 100%;
    display: flex;
    padding: 0 40px;
    justify-content: space-between;
}
.lightbox-close {
    background-color: white;
    border: none;
    font-size: 40px;
}
.lightbox-slider-wrapper {
    position: relative;
    width: 100vw;
    height: 70vh;
    overflow: hidden;
}

.lightbox-track-wrapper {
    overflow: hidden;
    height: 100%;
}

.lightbox-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
    will-change: transform;
    padding-left: calc((100vw - 60vw) / 2);
}
.lightbox-track img {
    width: 60vw;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    margin-right: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
}
.lightbox-prev {
    left: 40px;
}
.lightbox-next {
    right: 40px;
}
.lightbox-progress {
    width: 40%;
    height: 4px;
    background: #e0e0e0;
    margin-top: 24px;
    border-radius: 2px;
    overflow: hidden;
}
.progress-bar-line {
    height: 100%;
    width: 0;
    background: #323235;
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* Przygaszenie slajdów poza głównym */
.lightbox-track img{
    opacity: .2;                 /* ~80% transparentne */
    transition: opacity .3s ease;
}
.lightbox-track img.is-active{
    opacity: 1;                  /* aktualny slajd pełna widoczność */
}

@media (max-width: 768px) {
    .lightbox-slider-wrapper {
        height: 50vh;

    }
    .lightbox-prev {
        left: 0;
    }
    .lightbox-next {
        right: 0;
    }

    .nav-btn {
        background: #ffffff9e;
        border-radius: 5px;
        padding: 10px 8px;
    }

    .nav-btn img {
        width: 38px;
        height: auto;
    }

}

/* blokada scrolla strony przy otwartym overlayu */
.no-scroll { overflow: hidden !important; }

/* Overlay tylko na mobile */
.mlb-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.92);
    z-index: 9999999; display: none; color: #fff;
}
.mlb-overlay.is-open { display: flex; flex-direction: column; }
@media (min-width: 769px){ .mlb-overlay { display: none !important; } }

.mlb-close {
    position: absolute; top: 10px; right: 14px;
    font-size: 36px; line-height: 1;
    color: #fff; background: transparent; border: 0; z-index: 5;
}

.mlb-slider-wrapper { position: relative; width: 100vw; height: 70vh; margin: auto 0 0; overflow: hidden; }
.mlb-track-wrapper { height: 100%; overflow: hidden; }
.mlb-track { display: flex; height: 100%; transition: transform .4s ease; will-change: transform; }
.mlb-track img { width: 100vw; height: 100%; object-fit: cover; flex-shrink: 0; opacity: .2; transition: opacity .3s ease; }
.mlb-track img.is-active { opacity: 1; }

.nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: #ffffffc0; border: none; padding: 6px 8px; border-radius: 6px; }
.mlb-prev { left: 8px; } .mlb-next { right: 8px; }
.nav-btn img { width: 38px; height: auto; }

.mlb-progress { width: 60%; height: 4px; background: #555; margin: 16px auto; border-radius: 2px; overflow: hidden; }
.mlb-progress-bar { height: 100%; width: 0; background: #fff; transition: width .3s ease; }





/*zakres uslug*/
.zakres-uslug {
    background-color: #323235;
    color: #fff;
}

.offer-slider-section {
}

.slider-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.slider-thumb-wrapper {
    width: 100%;         /* kontener dopasowany do szerokości */
    overflow: hidden;    /* ukrywa wystające części obrazka */
    display: flex;       /* żeby ładnie centrować */
    align-items: center;
    justify-content: center;
}

.slider-thumb {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.slider-card:hover .slider-thumb {
    transform: scale(1.1); /* efekt zbliżenia */
}


.slider-title {
    font-weight: 400;
}

.slider-card:hover {
    color: #fff !important;
}

.swiper-button-next,
.swiper-button-prev {
    display: none !important;
}

.custom-swiper {
    background-color: #d3d3d3bd;
    padding: 12px 8px;
    border-radius: 15px;
}

.custom-swiper-prev,
.custom-swiper-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
}

.custom-swiper-prev {
    left: 20px; /* lub inna wartość zależna od układu */
}

.custom-swiper-next {
    right: 20px;
}

/*mobile clas*/
.flex-column {
    display: flex;
    flex-direction: column;
}

/*zmiana img realizacja*/
#img_right_bcg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.img-fade {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 768px) {
    .custom-swiper-prev {
        left: 10px;
    }

    .custom-swiper-next {
        right: 10px;
    }

    .custom-swiper {
        padding: 12px 8px;
        border-radius: 5px;
    }

    .custom-swiper img {
        width: 30px !important;
    }

}

.realizacje-map {
    height: 600px; width: 100%;
}

@media (max-width: 768px) {
    .realizacje-map {
        height: 480px; width: 100%;
    }
    /* węższy, bardziej „mobilny” korpus */
    .leaflet-popup-content-wrapper.jb-popup-wrap,
    .jb-popup-wrap .leaflet-popup-content-wrapper {
        max-width: 320px; /* ostateczny bezpiecznik */
    }

    /* przestrzeń wewnątrz */
    .jb-popup-wrap .leaflet-popup-content {
        margin: 10px 12px;
    }

    /* łamanie bardzo długich adresów/linków/słów */
    .jb-popup,
    .jb-popup .jb-addr,
    .jb-popup .jb-desc,
    .jb-popup .jb-link,
    .jb-popup a {
        word-wrap: break-word;
        overflow-wrap: anywhere;
    }

    /* drobna kosmetyka na mobile */
}

@media (max-width: 480px) {
    .jb-popup .jb-title { font-size: 16px; line-height: 1.25; }
    .jb-popup .jb-desc  { font-size: 14px; line-height: 1.35; }
}
