/* Usuwamy ograniczenia max-width i marginesy */
html {
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;

}
header {
    position: relative;
    height: 300px; /* wysokość banera, możesz zmienić */
    background:
            linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6)),
            url('photos/contract-cleaners.jpg') no-repeat center center/cover;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 0; /* jeśli chcesz bez zaokrągleń */
    padding: 0 20px;
}

header, footer {
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    margin: 10px 0; /* pionowy odstęp między sekcjami */
    width: 100%; /* zajmuje całą szerokość */
    box-sizing: border-box; /* padding nie rozszerza szerokości */
}

header {
    background-color: #007acc;
    color: white;
    text-align: center;
}

section img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 15px;
}

footer {
    background-color: #0D703B;
    color: white;
    text-align: center;
    font-size: 0.9rem;
}
.text-header{
    margin-top: 40px;
}
#main-nav {
    background-color: rgba(255, 255, 255, 0); /* przezroczysty */
    backdrop-filter: blur(0px);
}

#main-nav a{
    text-decoration: none;
    color:white;
    font-weight: 500;
    transition: color 0.3s ease;
}


#main-nav.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(180%) blur(20px); /* fajny efekt rozmycia */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#main-nav.scrolled a {
    text-decoration: none;
    color: #000; /* czarny lub dowolny kolor */
    font-weight: 500;
    transition: color 0.3s ease;
}

#main-nav.scrolled a:visited {
    color: #000; /* ten sam kolor, by nie był fioletowy */
}

.service-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    max-width: 300px;
    flex: 1;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.service-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 5px;
    background-color: #007BFF;
    border-radius: 5px;
    transition: opacity 0.3s ease;
}

/* ukryj wszystkie teksty, pokaż tylko domyślny język */
.lang { display: none; }
.lang-en { display: inline; }

/* kontener dla przycisków-flagi */
.language-switcher {
    display: flex;
    gap: 0.5rem;
}
/* styl pojedynczej flagi */
.lang-item {
    width: 32px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    /* opcjonalnie obramowanie lub tło na hover */
    transition: transform .2s;
}
.lang-item:hover {
    transform: scale(1.1);
}
@media (max-width: 840px) {
    .about-section {
        flex-direction: column !important;
        text-align: center;
    }
    /* jeśli chcesz dodatkowo dopasować odstępy: */
    .about-section > * {
        margin-bottom: 1.5rem;
    }
    .nav-text{
        font-size: 12px;
    }
    .header_title{
        font-size: clamp(18px, 4vw, 32px);
    }
    .find {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}