
:root {
    --bs-link-color: #86c11a;
    --navy: #0f2d59;
    --text: #0f233a;
    --muted: #6a778b;
    --green: #86c11a;
    --green-100: #eef8dd;
    --bg: #ffffff;
    --muted-bg: #f5f7f9;
    --radius: 18px;
    --shadow: 0 6px 22px rgba(16, 32, 69, .08);
    --shadow-lg: 0 10px 30px rgba(16, 32, 69, .12);
    --bs-carousel-indicator-active-bg: var(--green);

    /* Offset for sticky header when scrolling to #anchors */
    --header-h: 82px; /* adjust if header height changes */
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

* {
    box-sizing: border-box
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/*body.modal-open {*/
/*    padding-right: 0 !important;*/
/*}*/

main {
    flex: 1 0 auto;
    padding-top: var(--header-h);
}

img {
    max-width: 100%;
    display: block
}

/* Helpers */
.mobile-only { display: none; }
body.no-scroll { overflow: hidden; }

/* ====== Layout ====== */
/* ====== Realizations Section ====== */
.btn-category {
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 500;
    color: var(--muted);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    background: transparent;
    text-align: start;
}

.btn-category .dot {
    width: 8px;
    height: 8px;
    background: var(--muted);
    border-radius: 50%;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.btn-category:hover {
    background: var(--green-100);
    color: var(--navy);
}

.btn-category.active {
    background: #fff;
    color: var(--navy);
    border-color: var(--green-100);
    box-shadow: var(--shadow);
}

.btn-category.active .dot {
    background: var(--green);
    box-shadow: 0 0 0 4px var(--green-100);
}

.realization-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.realization-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.realization-card__img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.realization-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.realization-card:hover .realization-card__img img {
    transform: scale(1.05);
}

.realization-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 45, 89, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.realization-card:hover .realization-card__overlay {
    opacity: 1;
}

.realization-card__overlay span {
    color: #fff;
    font-size: 80px;
    font-weight: 300;
}

.realization-card__overlay .realization-card__extra-count {
    font-size: 22px;
    font-weight: 400;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.realization-card__body {
    padding: 20px;
}

/* Compact variant – carousel */
.realizations-carousel-container {
    position: relative;
}

.realizations-carousel-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.realizations-carousel-nav {
    display: flex;
    gap: 8px;
}

.realizations-carousel-wrapper {
    position: relative;
}

.realizations-carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--green);
    background: #fff;
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.realizations-carousel-btn:hover {
    background: var(--green);
    color: #fff;
}

.realizations-carousel {
    overflow: hidden;
    width: 100%;
    padding-top: 15px;
    margin-top: -15px;
}

.realizations-carousel__track {
    display: flex;
    gap: 0.75rem;
    will-change: transform;
}

.realization-item--compact {
    flex: 0 0 230px;
    max-width: 230px;
    padding-top: 10px;
}

.realization-card--compact {
    border-radius: 55px 15px;
    overflow: visible;
}

.realization-card--compact .realization-card__img {
    aspect-ratio: 1/1;
    border-radius: 55px 15px;
    overflow: hidden;
}

.realization-card--compact:hover {
    transform: translateY(-5px);
}

.realization-card__extra-count {
    color: rgba(255,255,255,0.75);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.category-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--green-100);
    color: var(--green);
    font-size: 12px;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 8px;
    margin-right: 3px;
}

/* Modal Styles */
.realization-modal .modal-content {
    border-radius: 24px;
}

.modal-close-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 10;
    background-color: #fff;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background-color: #f8f9fa;
    transform: scale(1.1);
}

@media (min-width: 992px) {
    .realization-modal .modal-dialog {
        max-width: 85vw;
    }

    .realization-modal .modal-content {
        height: 90vh;
    }

    .realization-modal .modal-body {
        height: 100%;
        overflow: hidden;
    }

    .realization-modal .modal-body > .row {
        height: 100%;
    }

    .realization-modal .col-lg-7 {
        height: 100%;
    }

    .main-image-container {
        height: 100%;
        border-radius: 24px 0 0 24px;
    }

    .realization-modal .modal-detail-panel {
        height: 100%;
        overflow: hidden;
    }

    .realization-modal .modal-detail-scroll {
        flex: 1 1 auto;
        overflow-y: auto;
        min-height: 0;
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
    }

    .realization-modal .modal-detail-scroll::-webkit-scrollbar {
        width: 6px;
    }

    .realization-modal .modal-detail-scroll::-webkit-scrollbar-track {
        background: transparent;
    }

    .realization-modal .modal-detail-scroll::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.15);
        border-radius: 3px;
    }

    .realization-modal .modal-detail-scroll::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 0, 0, 0.3);
    }

    .realization-modal .modal-detail-footer {
        flex-shrink: 0;
    }
}

.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 5;
    padding: 0;
}

.modal-nav-btn span {
    font-size: 20px;
    font-weight: 600;
}

.modal-nav-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.modal-nav-btn.prev { left: 20px; }
.modal-nav-btn.next { right: 20px; }

.thumbnail-item {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-item:hover {
    opacity: 0.8;
}

.thumbnail-item.active {
    border-color: var(--green);
}

.main-image-bg-blur {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(30px) brightness(0.7);
    transform: scale(1.2);
    z-index: 0;
    transition: background-image 0.5s ease;
}

.main-image-container {
    background: #1a1a1a;
}

#modalMainImg {
    position: relative;
    z-index: 1;
    transition: opacity 0.3s ease;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal-spinner.active {
    opacity: 1;
}

.modal-spinner__circle {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spinnerRotate 0.8s linear infinite;
}

@keyframes spinnerRotate {
    to { transform: rotate(360deg); }
}

@media (max-width: 991px) {
    .main-image-container {
        height: 350px;
    }

    .realization-modal .modal-detail-footer {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .realization-modal .modal-detail-footer .btn {
        padding: 10px 20px;
        font-size: 16px;
    }

    .realization-modal .modal-detail-footer .btn .material-symbols-outlined {
        font-size: 22px;
    }
}

/* ====== Layout ====== */
.container {
    width: min(1200px, 92%);
    margin-inline: auto
}

.container-wide {
    width: min(1400px, 92%);
    margin-inline: auto
}

.container-slim {
    width: min(1000px, 92%);
    margin-inline: auto
}

.section {
    padding: 64px 0
}

.section--muted {
    background: var(--muted-bg)
}

.lead {
    color: var(--muted)
}

/* ====== Header ====== */
.site-header {
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .05)
}

.header-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
}

.brand__img {
    width: 140px;
}

.main-nav {
    justify-self: center;
    position: relative
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-list a {
    text-decoration: none;
    color: #3b4a63;
    font-weight: 500;
}

.nav-list a:hover {
    color: var(--navy)
}

.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 999px;
}

.btn--primary {
    background: var(--green);
    color: #fff
}

/* Hamburger (mobile) */
.hamburger {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: #fff;
    border-radius: 10px;
    padding: 8px
}

.hamburger span {
    display: block;
    height: 2px;
    background: #1a2b49;
    margin: 6px 0;
    border-radius: 2px
}

/* Anchor offset per-section */
section[id] { scroll-margin-top: var(--header-h); }

/* ====== Hero ====== */
.hero {
    padding: 30px 0 36px;
}

.hero h1 {
    font-size: clamp(28px, 3.2vw + 10px, 46px);
    line-height: 1.2;
    color: var(--navy);
    margin: 6px 0 18px;
}

.pills {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 26px
}

.pill {
    background: var(--green-100);
    color: #6b9120;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
}

.services-list {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 16px;
    margin-bottom: 26px;

    /* Kolor tekstu */
    color: var(--muted);
}

/* Reguła dodająca separator */
.services-list span:not(:last-child)::after {
    content: "|";
    margin-left: 0.75em;
    margin-right: 0.75em;

    /* Kolor separatora */
    color: #86c11a;
}

.media-wrap {
    position: relative
}

.hero-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.media-wrap .corner {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 36px;
    height: 36px;
    background: var(--green);
    border-radius: 10px 0 18px 0;
}

/* ====== Kafle / oferta ====== */
.cards-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow)
}

.card > img {
    height: 220px;
    object-fit: cover
}

.card__body {
    padding: 18px
}

.card h3 {
    margin: 2px 0 8px;
    color: var(--navy);
    font-size: 20px
}

.card p {
    color: #394A63;
    opacity: .9
}

/* ====== Realizacje ====== */
.projects__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 20px
}

.projects__layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: start;
}

.cities ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px
}

.cities li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #334;
    font-weight: 500
}

.cities .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green)
}

.custom-carousel {
    overflow: hidden;
    border-radius: 20px;
    position: relative;
}

.custom-carousel .carousel__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
}

.custom-carousel .carousel__track img {
    height: 220px;
    object-fit: cover;
    border-radius: 22px;
    scroll-snap-align: start;
    box-shadow: var(--shadow)
}

/* ====== Opinie ====== */
.quote {
    background: #f3f7f3;
    border-radius: 22px;
    padding: 24px 28px;
    width: 100%;
    max-width: 880px;
    margin: 18px auto 0;
    position: relative;
    /*box-shadow: var(--shadow)*/
}

.quote__icon {
    width: 32px;
    height: 32px;
    fill: var(--green);
    position: absolute;
    left: 18px;
    top: 18px;
    opacity: .9
}

.quote blockquote {
    margin: 0 0 6px 40px;
    color: #20324a;
    font-size: 18px
}

.quote figcaption {
    display: flex;
    justify-content: space-between;
    margin-left: 40px;
    color: var(--muted);
    font-weight: 600
}


.quote figcaption img{
    height: 20px;
}

/* ====== Partnerzy ====== */
.logos {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    align-items: center;
    justify-content: center;
    list-style: none;
    padding: 18px 0 0;
    margin: 0
}

.logos li {
    font-weight: 800;
    letter-spacing: .02em;
    color: #20324a;
    opacity: .85
}

/* ====== Hello / prefooter ====== */
.hello {
    padding: 42px 0;
    background: #0f2d59;
    color: #fff;
}

.hello__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
}

.hello__title h3 {
    font-size: 28px;
    margin: 0;
    position: relative;
    color: #fff;
}

.hello__title h3::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--green);
    border-radius: 6px;
}

.hello__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    justify-content: end;
}

.hello__cols div {
    display: flex;
    flex-direction: row;
    justify-content: end;
}

.hello__cols div div {
    display: block;
    justify-content: normal;
    width: fit-content;
    white-space: nowrap;
    word-break: keep-all;
}

.hello a {
    color: #b1ff66;
    text-decoration: none;
    font-weight: 700
}

.muted {
    display: block;
    font-size: 13px;
    color: #bcd1ef;
    margin-bottom: 6px
}

/* ====== Footer ====== */
.site-footer {
    background: #0b1f3e;
    color: #cfe0ff;
    padding: 26px 0;
    margin-top: auto; /* push footer to bottom when content is short */
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 18px;
    align-items: center
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    justify-content: center
}

.footer-nav a {
    color: #cfe0ff;
    text-decoration: none
}

.footer-nav a:hover {
    color: #fff
}

.copy {
    margin: 0;
    text-align: right
}

/* ====== Responsywność ====== */
@media (max-width: 980px) {
    .header-grid {
        grid-template-columns: 160px 1fr auto
    }

    .cards-3 {
        grid-template-columns: 1fr 1fr
    }

    .projects__layout {
        grid-template-columns: 1fr
    }

    .cities {
        order: 2
    }
}

@media (max-width: 760px) {
    .header-grid {
        grid-template-columns: 1fr auto auto
    }

    .brand {
        justify-self: start
    }

    .main-nav {
        justify-self: end
    }

    .hamburger {
        display: block
    }

    /* Hide desktop CTA on mobile */
    .header-cta { display: none !important; }

    /* Show mobile-only items in the drawer */
    .mobile-only { display: block; }

    .hero-img {
        height: 220px;
    }

    /* Full-screen side drawer */
    .nav-list {
        position: fixed;
        top: 0;
        right: 0;
        width: 100vw;
        height: 100vh;
        background: #fff;
        padding: 24px;
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: center;
        gap: 18px;
        display: flex;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-list.is-open {
        transform: translateX(0);
    }

    /* Close (X) button inside mobile drawer */
    .nav-list .nav-close {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        border: 0;
        background: transparent;
        color: #1a2b49;
        font-size: 32px;
        line-height: 1;
        padding: 0;
        cursor: pointer;
        border-radius: 8px;
    }

    .nav-list .nav-close:focus-visible {
        outline: 2px solid var(--green);
        outline-offset: 2px;
    }

    /* Extra spacing above options and centering for .menuitem */
    .nav-list { padding-top: 80px; }
    .nav-list .menuitem,
    .nav-list [role="menuitem"] { text-align: center; }

    /* Mobile menu typography and CTA sizing */
    .nav-list a {
        font-size: 18px;
        line-height: 1.5;
        text-align: center;
    }

    /* Ensure the Kontakt button has light text and full width */
    .nav-list a.btn.btn--primary {
        display: block;
        width: 100%;
        margin: 0;
        text-align: center;
        color: #fff !important;
        padding: 14px 18px;
    }
    .nav-list a.btn.btn--primary:hover,
    .nav-list a.btn.btn--primary:focus {
        color: #fff !important;
    }

    /* Make each list item span full drawer width so the CTA can be truly full-width */
    .nav-list li {
        width: 100%;
        text-align: center;
    }

    .cards-3 {
        grid-template-columns: 1fr
    }

    .hello__grid {
        grid-template-columns: 1fr
    }

    .hello__cols {
        grid-template-columns: 1fr
    }

    .footer__grid {
        grid-template-columns: 1fr
    }

    .copy {
        text-align: center
    }
}


/*#opinionsCarousel .carousel-inner {*/
/*    min-height: 200px;*/
/*}*/


.custom-carousel .carousel-inner {
    padding: 1em;
}

.card {
    margin: 0 1em;
    box-shadow: 2px 6px 8px 0 rgba(22, 22, 26, 0.18);
    border: none;
}

.carousel-control-prev,
.carousel-control-next {
    width: 6vh;
    height: 6vh;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.carousel-control-next {
    right: -7vh;
}

.carousel-control-prev {
    left: -7vh;
}

@media (min-width: 768px) {
    .custom-carousel .carousel-item {
        margin-right: 0;
        flex: 0 0 31%;
        display: block;
    }

    .custom-carousel .carousel-inner {
        display: flex;
        padding: 1em 0;
    }
    /* Center only the initial 3 items by adding side gutters, without centering the whole track */
    .custom-carousel .carousel-inner::before,
    .custom-carousel .carousel-inner::after {
        content: "";
        flex: 0 0 calc((100% - (31% * 3)) / 2);
    }
}

.card .img-wrapper {
    max-width: 100%;
    height: 13em;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card img {
    max-height: 100%;
}

@media (max-width: 767px) {
    .card .img-wrapper {
        height: 17em;
    }
}


.material-symbols-outlined {
    font-variation-settings: 'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24
}

/* === Carousel: equalize card and image heights to match .cards-3 === */
/* Uniform image height like .cards-3 (220px) */
.custom-carousel  .card .img-wrapper {
    height: 220px;
}
.custom-carousel  .card .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Make cards equal height within each carousel row */
@media (min-width: 768px) {
    /* Stretch items to the same height and let cards fill them */
    .custom-carousel  .carousel-item {
        align-self: stretch; /* ensure each item stretches to row height */
    }
    .custom-carousel  .carousel-item .card {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    .custom-carousel  .carousel-item .card .card-body {
        flex: 1 1 auto; /* fill remaining space so all cards align */
        display: flex;
        flex-direction: column;
    }
}

/* Ensure mobile also uses the same image height inside carousel */
@media (max-width: 767px) {
    .custom-carousel  .card .img-wrapper {
        height: 220px;
    }
    /* Hide prev/next arrows for this carousel only on mobile */
    button.carousel-control-prev[data-bs-target="#offertCarousel"],
    button.carousel-control-next[data-bs-target="#offertCarousel"] {
        display: none !important;
    }
}

/* Carousel indicators styling */
.carousel-indicators {
    bottom: -50px;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* Carousel indicators styling */
.custom-carousel .carousel-indicators {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    margin: 0;
    display: none; /* hidden by default, shown on mobile */
    justify-content: center;
    gap: 8px;
}
.custom-carousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--green);
    opacity: 0.35;
    border: 0;
}
.custom-carousel .carousel-indicators .active {
    opacity: 1;
    background-color: var(--green);
}

/* === Minimal-width 'więcej ->' buttons bottom-right === */
/* Carousel cards: place the link at the bottom-right and keep it shrink-to-fit */
.custom-carousel  .card .card-body .btn.btn-link {
    margin-top: auto;           /* push to bottom */
    align-self: flex-end;       /* move to right */
    float: none;                /* override any float utilities */
    display: inline-flex;       /* shrink to content + padding */
    width: auto;                /* ensure not full width */
    white-space: nowrap;        /* keep text in one line */
}

/* 3-cards section: make body flex column and pin the link bottom-right */
.cards-3 .card__body {
    display: flex;
    flex-direction: column;
}
.cards-3 .card__body .btn.btn-link {
    margin-top: auto;
    align-self: flex-end;
    float: none;
    display: inline-flex;
    width: auto;
    white-space: nowrap;
}


/* === Card typography colors === */
/* Ensure carousel and other cards use navy color for titles and texts */
.card .card-title {
    color: var(--navy);
}
.card .card-text {
    color: var(--navy);
    opacity: 1; /* override weaker paragraph opacity in .card p */
}

/* Ensure carousel indicators are visible above content */
.custom-carousel  .carousel-indicators { z-index: 3; }

/* Mobile: show dots and add space at bottom so they are not clipped */
@media (max-width: 767px) {
    .custom-carousel  { padding-bottom: 20px; }
    .custom-carousel  .carousel-indicators { display: flex; pointer-events: auto; }

    .hello__cols div {
        display: flex;
        flex-direction: row;
        justify-content: start;
    }
}


/* === Global: Keep 'więcej ->' link bottom-right in all cards === */
/* Make standard Bootstrap .card-body act as a flex column so CTA can stick to bottom */
.card .card-body {
    display: flex;
    flex-direction: column;
}
/* Support custom card body too, beyond .cards-3 usage */
.card .card__body {
    display: flex;
    flex-direction: column;
}
/* Position the text link button in the bottom-right corner with minimal width */
.card .card-body .btn.btn-link,
.card .card__body .btn.btn-link {
    margin-top: auto;
    align-self: flex-end;
    float: none;
    display: inline-flex;
    width: auto;
    white-space: nowrap;
}


/* Footer mobile-specific logo adjustments */
@media (max-width: 760px) {
    /* Center the footer brand/logo without affecting header */
    .site-footer .brand { justify-self: center; }
    /* Make footer logo slightly larger on mobile only, control width */
    .site-footer .brand--small .brand__img { width: 160px; height: auto; }
}


/* ====== Page: Solar (Fotowoltaika) ====== */
.page-hero {
    width: 100%;
    background: transparent;
    margin-top: 12px;
}
@media (min-width: 768px) {
    .page-hero { margin-top: 20px; }
}
.page-hero__img {
    width: 100%;
    height: 38vh;
    min-height: 240px;
    max-height: 420px;
    background-size: cover;
    background-position: center;
}
@media (min-width: 992px) {
    .page-hero__img { height: 48vh; max-height: 520px; }
}

.section--tight-top { padding-top: 28px; }

/* Breadcrumbs tweaks */
.breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.breadcrumbs .breadcrumb {
    --bs-breadcrumb-divider: ">";
    margin: 0;
    padding: 0;
    background: transparent;
}
.breadcrumb { align-items: center; }
.breadcrumb-item + .breadcrumb-item::before {
    color: var(--muted);
    opacity: .6;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; }
.breadcrumb .active { color: var(--text); font-weight: 600; }

/* Contact modal */
/* Drobne dopasowanie do stylu projektu */
#contactModal .btn.btn--primary { background-color: var(--green); border: none; }

/* Select2 — dopasowanie do stylu */
#contactModal .select2-container .select2-selection--single {
    height: 42px;
    border-radius: .375rem;
    border: 1px solid #ced4da;
    display: flex;
    align-items: center;
}
#contactModal .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px;
    padding-left: .75rem;
    color: #212529;
}
#contactModal .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: .5rem;
}
#contactModal .select2-container--default.select2-container--focus .select2-selection--single,
#contactModal .select2-container--default .select2-selection--single:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 .25rem rgba(0, 128, 0, .15);
    outline: none;
}
#contactModal .select2-dropdown { border-color: var(--green); }
#contactModal .select2-results__option--highlighted { background-color: var(--green); }
