* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body { 
    height: 100%; 
}
body {
    font-family: Arial, sans-serif;
    background-color: #333;
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
    overflow-x: hidden;
}

header .logo img {
    height: 100px;
}

header .contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
}

header .contact-info p {
    font-size: 1.1em;
}

header .contact-info i {
    margin-right: 8px;
}

/* Zintegrowane tło dla header i hero */
.header-hero-wrapper {
    background-color: #027BAB;
    background-image: url('images/hero-bg13.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding-bottom: 10px; /* Dla sekcji hero */
    position: relative;

}

/* Warstwa koloru na tle z efektem mgły */
.header-hero-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Efekt mgły */
    z-index: 1;
}

/* Zawartość (logo, menu, nagłówki) nad mgłą */
header, nav, .hero {

    position: relative;
    z-index: 2;
}

/* Ustawienie dla header i hero */
header {
    padding: 10px 0;
    color: white;
    background-color: transparent; /* Usunięcie osobnego tła */
}

.container {

    width: 90%;
    margin: 0 auto;
}

header .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1300px;
}


nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    padding: 5px 10px;
}

nav ul li a:hover {
    background-color: #005678;
    border-radius: 5px;
}

/* Ikona hamburgera tylko na telefonach */
.menu-icon {
    display: none;
    font-size: 2em;
    color: white;
    cursor: pointer;
}

.hero {
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-top: 0; /* Usunięcie marginesu między header a hero */
}
.hero p {
    font-size: 1.2em;
    animation: fadeInDown 2s ease-in-out;
}
.hero h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
    animation: fadeInDown 2s ease-in-out;
}
/* Przykładowa animacja fadeInDown */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.hero::after {
    content: "";
    display: block;
    width: 90%;
    height: 1px;
    background-color: grey;
    margin: 0 auto;
    margin-top: 20px;
}


.services-section {
    padding: 40px 0;
    background-color: #333;
}

.services-section h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #005678;
}

.services-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.service-tile {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.service-tile:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.service-tile img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-info {
    padding: 20px;
    text-align: center;
}

.service-info h3 {
    margin-bottom: 10px;
    color: #005678;
}

.contact-form-section {
    background-color: #333;
    padding: 50px 0;
}

/* Zaktualizowana sekcja kontaktowa */
.contact-container {
    display: flex;
    justify-content: space-between;
    gap: 20px; /* Zmniejszenie odstępów */
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1350px;
    margin: 0 auto;
}

.contact-form, .contact-details {
    flex: 1;
    background-color: #005678;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    margin: 10px; /* Zmniejszenie marginesów */
}
.contact-details {
    background-color: #333;
    color: white;
}

/* MEDIA QUERY DLA KOMPUTERÓW */
@media (min-width: 1200px) {
    .contact-container {
        justify-content: center;
        gap: 30px; /* Niewielkie zmniejszenie odstępów między kontenerami */
    }
    
    .contact-form, .contact-details {
        max-width: 45%; /* Zbliżenie do siebie kontenerów, aby były w jednym rzędzie na większych ekranach */
    }
}

.contact-form h2 {
    color: white;
    margin-bottom: 20px;
}
 .contact-details h2 {
    color: #005678;
    margin-bottom: 50px;
}
.contact-form label {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: white;
    display: block; /* Label na oddzielnym wierszu */

}
.contact-details p {
    font-size: 1.1em;
    margin-bottom: 10px;
}
.contact-form input, .contact-form textarea {
    font-family: arial;
    font-size: 12px;
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
background-color: #f4f4f4;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    padding: 10px 20px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #222;
}

footer .container {
    display: flex;
    flex-direction: column;
    background-color: #005678;
    color: white;
    padding: 5px;
    position: relative;
    left: 0;
    bottom: 0;
    width: 100%;
  

}

footer p {
    margin: 20px 0;
}

/* Przywrócenie stylów linków - brak podkreślania, brak zmiany koloru po kliknięciu */
a {
    text-decoration: none;
    color: inherit;
}

a:visited {
    color: inherit;
}

/* MEDIA QUERY DLA MOBILNYCH URZĄDZEŃ */
@media screen and (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        background-color: #333;
        position: absolute;
        width: 100%;
        top: 100%;
        left: 0;
        padding: 10px 0;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        text-align: center;
        padding: 10px 0;
    }

    .menu-icon {
        display: block;
    }

    header .header-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-form, .contact-details {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .hero h2 {
        font-size: 2em;
    }

    .cookie-banner {
            position: fixed;
            bottom: 0;
            width: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 15px;
            text-align: center;
            z-index: 1000;
        }
        .cookie-banner button {
            margin-left: 10px;
            background-color: #ff9800;
            border: none;
            padding: 10px 20px;
            color: white;
            font-size: 14px;
            cursor: pointer;
        }
        .cookie-banner button:hover {
            background-color: #e68900;
        }
}
