/* --- Zmienne CSS dla łatwej personalizacji --- */
:root {
    --primary-color: #0066cc;
    --primary-color-dark: #004d99;
    --text-color: #444;
    --heading-color: #333;
    --background-light: #f7f7f7;
    --background-grey: #f0f0f0;
    --white-color: #fff;
    --border-color: #ddd;
    --shadow-color: rgba(0, 0, 0, 0.08);
}

/* --- Globalny Reset & Domyślne Style --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    background-color: var(--background-light);
    color: var(--text-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Style dla Nagłówka (ZMODYFIKOWANE) --- */
/* --- Style dla Nagłówka (ZMODYFIKOWANE) --- */
header {
    background-color: var(--white-color);
    box-shadow: 0 2px 5px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 100;
    
    /* WAŻNE: Ustawiono stałą wysokość. 
       Dostosuj tę wartość (np. na 40px, 45px itd.), 
       aby była o połowę niższa niż wysokość Twojego logo.
    */
    height: 120px; 
}


/* Dodano style dla kontenera w nagłówku, aby użyć Flexbox */
header .container {
    display: flex;
    justify-content: space-between; /* Rozsuwa elementy na krańce */
    align-items: center; /* Wyrównuje w pionie do środka */
}


.header-logo {
    max-width: 280px; /* Lekko dostosowano rozmiar logo */
    height: auto;
    display: block; /* Pozostawiono dla spójności */
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* --- Sekcja Hero --- */
.hero {
    color: var(--white-color);
    text-align: center;
    /* ZMIENIONO: Dodanie Flexbox i min-height */
    position: relative;
    overflow: hidden;
    z-index: 1;
    
    /* WŁAŚCIWOŚCI FLEXBOX DLA WYŚRODKOWANIA */
    display: flex;
    align-items: center; /* Wyśrodkowanie w pionie */
    justify-content: center; /* Wyśrodkowanie w poziomie (tekst był już wyśrodkowany, ale to dla pewności) */
    min-height: 400px; /* Ustawienie minimalnej wysokości sekcji Hero */
    
    /* DODATKOWY PADDING, ABY ZAPOBIEC PRZYKLEJANIU DO GÓRY */
    padding-top: 100px; /* Zapewnienie dodatkowej przestrzeni od góry */
    padding-bottom: 100px;
}
/* Upewnij się, że .hero .container ma 100% szerokości i jest wyśrodkowany */
.hero .container {
    position: relative;
    z-index: 2;
    width: 100%; /* Upewnia się, że tekst jest wyśrodkowany w kontenerze */
}

/* Style dla kontenerów tła */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 1;
    animation: changeBackground 15s infinite linear;
}

/*
   Ważne: Wstaw tutaj własne ścieżki do obrazów!
*/
.hero-background:nth-child(1) {
    background-image: url('img/4.png');
    animation-delay: 0s;
}

.hero-background:nth-child(2) {
    background-image: url('img/5.png');
    animation-delay: 5s;
}

.hero-background:nth-child(3) {
    background-image: url('img/7.png');
    animation-delay: 10s;
}

/* Definicja animacji przenikania */
@keyframes changeBackground {
    0% { opacity: 0; }
    10% { opacity: 1; }
    33% { opacity: 1; }
    43% { opacity: 0; }
    100% { opacity: 0; }
}


/* Poprawiona warstwa nakładki dla czytelności tekstu */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* --- Style ogólne dla sekcji --- */
.section {
    padding: 80px 0;
    text-align: center;
}

.section-bg {
    background-color: var(--background-grey);
}

.section h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
}

/* --- Siatka usług (Karty) --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: center;
}

.card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card h3 {
    color: var(--heading-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* ZMODYFIKOWANY STYL DLA OBRAZKA W KARCIE */
.card-img {
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* --- Sekcja "O nas" --- */
.about-text {
    max-width: 800px;
    margin: 20px auto 0;
    font-size: 1.1rem;
}

/* --- Sekcja Kontaktowa --- */
.contact-info {
    font-size: 1.1rem;
    margin: 30px 0 50px;
}

/* --- Mapa Google w sekcji kontakt --- */
.map-container {
    width: 100%;
    margin: 30px 0 50px; /* Odstęp od tekstu i formularza */
    border-radius: 8px;
    overflow: hidden; /* Ukrywa ostre rogi mapy wewnątrz kontenera */
    box-shadow: 0 4px 15px var(--shadow-color);
    height: 400px; /* Wysokość mapy */
}



.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* --- Formularz kontaktowy --- */
.contact-form {
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-color);
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.contact-form h3 {
    text-align: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 102, 204, 0.3);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form button {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
    display: block;
    width: 100%;
}

.contact-form button:hover {
    background-color: var(--primary-color-dark);
}

/* --- Dostępność: widoczny focus dla nawigacji klawiaturą --- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 4px;
}

/* --- Stopka --- */
footer {
    background-color: var(--heading-color);
    color: #aaa;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}

/* --- Media Queries dla Responsywności (ZMODYFIKOWANE) --- */
@media (max-width: 768px) {
    /* Zmiana układu nagłówka na pionowy na mniejszych ekranach */
    header .container {
        flex-direction: column;
    }
    
    .header-logo {
        max-width: 200px;
        margin-bottom: 15px; /* Dodano margines pod logo */
    }
    
    .main-nav {
        margin-top: 0; /* Usunięto margines, jest już przy logo */
    }

    .main-nav a {
        display: inline-block; /* Zmieniono na inline-block dla lepszego wyglądu w jednej linii */
        margin: 5px 10px; /* Dostosowano marginesy */
    }
	
	
	/* DODANA KOREKTA DLA EKRANÓW MOBILNYCH: */
    .hero {
        /* Wystarczy zwiększyć min-height i padding-top */
        min-height: 500px; /* Zwiększenie minimalnej wysokości */
        padding-top: 150px; /* Odsuwa tekst od nagłówka */
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 60px 0;
    }
}

/* --- Baner Cookies --- */
.cookie-banner {
    position: fixed;
    bottom: -100px; /* Ukryty poza ekranem na start */
    left: 0;
    width: 100%;
    background-color: rgba(51, 51, 51, 0.95);
    color: var(--white-color);
    padding: 15px 20px;
    text-align: center;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    transition: bottom 0.5s ease-in-out;
}

.cookie-banner.show {
    bottom: 0; /* Pokazuje baner */
}

.cookie-banner p {
    margin: 0;
    font-size: 0.95rem;
}

.cookie-banner a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-banner button {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 8px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cookie-banner button:hover {
    background-color: var(--primary-color-dark);
}

/* Dostosowanie dla telefonów */
@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
}