
body, html {
    height: 100%;
    margin: 0;
    font-family: 'Rubik', sans-serif;
    font-size: 18px; /* 18px */
    color: #333333;
    background: url(../images/blob_blurred1.png) no-repeat top left;
}

:root {
    --HonestGreen: #18BD78;
    --HonestGreenDark: #168d5d; /* Ciemniejszy kolor po najechaniu */
    --TextColor: #333333;
    --MainBlue: #04356B;
}

.container-fluid {
    padding: 0;
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: url(../images/blob_blurred2.png) no-repeat right 30% fixed;
}

header {
    text-align: center;
}

footer {
    background-color: var(--MainBlue);
    padding: 32px 0; /* 32px góra i dół */
    color: white;
    font-size: 0.778rem; /* 14px */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    width: 100px;
    margin-right: 32px;
}   

.footer-address {
    text-align: right;
}

.main-content-logo {
    width: 300px;
    margin: 100px 0 60px 0;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    overflow: hidden; /* Ukrycie scrollbara */
    margin: 32px 0 60px 0;
}

.card {
    text-align: center;
    position: relative;
    padding: 32px;
    box-shadow: 0px 4px 31px 0px rgba(0, 0, 0, 0.05);
    border: none; /* Usunięcie bordera */
    width: 100%; /* Szerokość karty w trybie pionowym */
    border-radius: 8px;
    display: flex;
}

.card a:last-child {
    margin-top: auto;
}

.card img {
    border-radius: 8px;
    margin-bottom: 8px;
}

.card a {
    color: var(--HonestGreen);
    font-size: .85rem;
    text-decoration: underline;
}

h1 {
    font-size: 2rem;
    font-weight: 500;
}

h2 {
    font-size: 1.333rem; /* 24px */
    margin: 10px 0 5px 0;
}

h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--MainBlue);
    margin-bottom: 25px;
}

a.btn-primary {
    background-color: var(--HonestGreen);
    color: white !important;
    text-decoration: none;
    border: none;
    font-size: 0.778rem; /* 14px */
    font-weight: bold;
    transition: background-color 0.3s ease; /* Dodanie płynnej zmiany koloru */
}

a.btn-primary:hover {
    background-color: var(--HonestGreenDark);
}

.map {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;

}

.map h3 {
    font-size: 1rem;
}

.map .description {
    width: 30%;
    margin-right: 60px;
}

footer .container{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer .container div {
    flex-grow: 1;
    text-align: left;
}

footer .container div + div {
    text-align: right;
} 

.offer {
    width: 70%;
    margin: 0 auto;
}

.offer .btn {
    margin: 30px auto;
    width: 300px;
    display: block;
}

.propo {
    display: flex;
    margin: 25px 0;
}

.propo li {
    padding: 25px;
    border: 1px solid #333333;
    font-size: 1.2rem;
    width: 49%;
    border-radius: 6px;
    margin: 5px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.propo + p {
    text-align: center;
}

.cooperation {    
    background: url(../../assets/images/blob_blurred3.png) left no-repeat;
    background-color: var(--MainBlue);
    color: #fff;
    text-align: center;
    padding: 25px;
    border-radius: 6px;
    margin-bottom: 80px;
}

.cooperation.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    display: flex;
    border-radius: 0;
    align-items: center;
    justify-content: center;
    align-content: center;
    padding: 10px;
    
}

.cooperation.sticky > div {
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
}

.cooperation.sticky p {
    margin: 0 32px 0 8px;
    font-size: 0.85rem;
    text-align: left;
    width: 100%;
}

.cooperation.sticky img {
    filter: brightness(100);  }

.cooperation.sticky .btn {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;

}

.cooperation p{
    width: 60%;
    margin: 16px auto;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
}

.gallery li {
    flex-basis: 350px;  
}

.gallery img {
    object-fit: cover;
  max-width: 100%;
  vertical-align: middle;
  border-radius: 5px;
}




@media (min-width: 701px) {
    /* Styl dla ekranów o szerokości większej niż 700px */
    .card-container {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 700px) {

    .card-container {
    grid-template-columns: auto; /* Jeden element na wiersz */
    overflow-x: auto; /* Dodano overflow-x dla obsługi swipe na małych ekranach */ 
    -webkit-overflow-scrolling: touch; /* Dla płynnego scrollowania na iOS */
    }

    footer .container {
        display: block;
    }

    footer .container div {
        text-align: left !important;
        margin-bottom: 12px;
    }

    .map {
        display: block;
    }
    .map .description {
        width: 100%;
        margin-right: 0;
    }

    iframe {
        width: 100%;
    }

    .propo {
        display: block;
    }

    .offer {width: 100%;}

    .propo li {
        width: 100%;
    }

    .cooperation p {
        width: 100%;
    }

    .cooperation.sticky {
        display: block;
        text-align: left;
    }

    .cooperation.sticky p {
        margin: 0 0 12px 0;
        width: 100%;
    }

    .cooperation.sticky img {
        display: none;
    }

    .cooperation a.btn {
        white-space: pre-wrap;
    }

}
