/* ===== ZMIENNE KOLORYSTYCZNE ===== */
:root {
    --primary: #0d2b5c;           /* Ciemniejszy niebieski - lepszy kontrast */
    --secondary: #1a56db;         /* Więcej nasycenia dla lepszego kontrastu */
    --accent: #1e4bb8;            /* Ciemniejszy akcent */
    --light: #f8fafc;             /* Delikatnie jaśniejsze tło */
    --text: #1f2937;              /* Ciemniejszy szary - lepszy kontrast */
    --text-light: #4b5563;        /* Ciemniejszy szary dla tekstu drugoplanowego */
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #0d2b5c 0%, #1e4bb8 100%);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET I PODSTAWOWE STYLE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text);
    line-height: 1.7;
    background-color: var(--light);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 6rem 0;
}

h1, h2, h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

p {
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background-color: var(--secondary);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

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

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ===== NAGŁÓWEK I NAWIGACJA ===== */
header {
    background-color: rgba(255, 255, 255, 0.98); /* Mniej przezroczyste dla lepszego kontrastu */
    color: var(--primary);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Ciemniejszy cień */
    transition: var(--transition);
}

header.scrolled {
    padding: 0.7rem 0;
    background-color: rgba(255, 255, 255, 0.98);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--secondary);
}

.logo span {
    color: var(--secondary);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
    position: relative;
}

nav ul li a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600; /* Pogrubienie dla lepszej czytelności */
    transition: var(--transition);
    padding: 0.5rem 0;
}

nav ul li a:hover {
    color: var(--secondary);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

/* ===== SEKCJA HERO ===== */

.hero {
    background-image: url('tlo.png');
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 12rem 0 8rem;
    position: relative;
    overflow: hidden;
}
.hero-subtitle {
    font-size: 0.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 400;
}

.hero h1 span {
    font-size: 1.5rem;
    opacity: 0.9;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M1200 120L0 16.48 0 0 1200 0 1200 120z" fill="%23f8fafc"/></svg>');
    background-size: 100% 150px;
    background-repeat: no-repeat;
    background-position: bottom;
}

/* ZMIENIONE: Lżejsza nakładka */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1); /* Zmienione z 0.4 na 0.2 */
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 17rem;
    color: var(--white);
    line-height: 1;
    
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    color: var(--white);
    
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .btn {
    background-color: var(--white);
    color: var(--primary);
    font-weight: 600;
}

.hero .btn:hover {
    background-color: var(--light);
}

.hero .btn-primary {
    background-color: rgba(255, 255, 255, 0.9); /* Mniej przezroczyste */
    color: var(--primary);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.8); /* Grubsza obwódka */
}

.hero .btn-primary:hover {
    background-color: rgba(255, 255, 255, 1);
}

/* ===== SEKCJA O NAS ===== */
.about {
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.about-features {
    margin: 2rem 0;
}

.feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.feature-icon {
    background-color: var(--light);
    color: var(--secondary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.feature-text h4 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.feature-text p {
    color: var(--text-light);
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

/* ===== SEKCJA USŁUGI ===== */
.services {
    background-color: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
    z-index: 2;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    display: inline-flex;
    width: 80px;
    height: 80px;
    background-color: var(--light);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--primary);
}

.service-card p {
    color: var(--text-light);
}

/* ===== SEKCJA GALERIA ===== */
.gallery {
    background-color: var(--white);
}

.gallery-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 250px;
    width: 280px;
    background-color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    position: relative;
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 0.7;
}

.gallery-item span {
    position: relative;
    z-index: 2;
}

/* ===== SEKCJA KONTAKT ===== */
.contact {
    background: var(--gradient);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M1200 120L0 16.48 0 0 1200 0 1200 120z" fill="%230d2b5c"/></svg>');
    background-size: 100% 150px;
    background-repeat: no-repeat;
    background-position: top;
    opacity: 0.1;
}

.contact h2, .contact h3 {
    color: var(--white);
}
.contact .section-title p {
    color: var(--white);
    opacity: 0.9;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.contact-info h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-detail i {
    margin-right: 1rem;
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact .btn {
    background-color: var(--white);
    color: var(--primary);
    font-weight: 600;
}

.contact .btn:hover {
    background-color: var(--light);
}

/* ===== STOPKA ===== */
footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.9); /* Jaśniejsze linki */
    text-decoration: none;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15); /* Jaśniejsze tło */
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* Jaśniejsza linia */
    color: rgba(255, 255, 255, 0.9); /* Jaśniejszy tekst */
}

/* DODANE: Focus styles dla dostępności */
a:focus, button:focus {
    outline: 3px solid var(--secondary);
    outline-offset: 3px;
}

.btn:focus {
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
}

/* Reszta kodu pozostaje bez zmian... */

        /* ===== BANNER COOKIES ===== */
        .cookie-banner {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: var(--primary);
            color: var(--white);
            padding: 1.5rem;
            box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
            z-index: 1001;
            display: none;
        }

        .cookie-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
        }

        .cookie-text {
            flex: 1;
            margin-right: 2rem;
        }

        .cookie-buttons {
            display: flex;
            gap: 1rem;
        }

        /* ===== MODAL POLITYKI PRYWATNOŚCI ===== */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 1002;
            overflow-y: auto;
            backdrop-filter: blur(5px);
        }

        .modal-content {
            background-color: var(--white);
            margin: 5% auto;
            padding: 3rem;
            border-radius: 12px;
            width: 90%;
            max-width: 800px;
            max-height: 80vh;
            overflow-y: auto;
            position: relative;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        }

        .close-modal {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--text-light);
            transition: var(--transition);
        }

        .close-modal:hover {
            color: var(--primary);
        }

        .cookie-options {
            margin: 2rem 0;
        }

        .cookie-option {
            display: flex;
            align-items: center;
            margin-bottom: 1rem;
            padding: 1rem;
            background-color: var(--light);
            border-radius: 8px;
        }

        .cookie-option label {
            flex: 1;
            margin-left: 1rem;
            font-weight: 500;
        }

        .cookie-option input[type="checkbox"] {
            width: 20px;
            height: 20px;
        }

        /* ===== ANIMACJE ===== */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .fade-in-up {
            animation: fadeInUp 0.8s ease-out forwards;
        }

        /* ===== RESPONSYWNOŚĆ ===== */
        @media (max-width: 992px) {
    .hero h1 {
        font-size: 2.3rem;
        margin-bottom: 7rem !important; /* DODANE: Mniejszy margines na tabletach */
    }
    
    .about-content, .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem; /* DODANE: Większy odstęp między sekcjami */
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem; /* DODANE: Większy odstęp w stopce */
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem; 
        margin-bottom :0.1rem; ;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    /* DODANE: Poprawki dla obrazków na tabletach */
    .about-image img {
        height: 400px !important; /* Mniejsza wysokość obrazka */
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        text-align: left;
        padding: 0.5rem 0; /* DODANE: Mniejsze paddingi */
    }
    
    nav ul {
        margin-top: 0;
        flex-direction: column;
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--white);
        padding: 1rem 0;
        box-shadow: var(--shadow);
        border-radius: 0 0 12px 12px;
        z-index: 1000; /* DODANE: Wyższy z-index */
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 0;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 1.1rem; /* DODANE: Większa czcionka w menu */
    }
    
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        font-size: 1rem;
        color: var(--primary);
        cursor: pointer;
        padding: 0.5rem;
    }
    
    .hero h1 {
        font-size: 2.3rem;
        margin-bottom: 6rem !important; 
        line-height: 0.8; 
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem; /* DODANE: Margines dla tekstu */
    }
    
    .hero {
        padding: 10rem 0 5rem; /* DODANE: Mniejsze paddingi hero */
    }
    
    section {
        padding: 1.5rem 0; /* DODANE: Mniejsze paddingi sekcji */
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem; /* DODANE: Odstęp w stopce */
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem; /* DODANE: Odstęp w cookie banner */
    }
    
    .cookie-text {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem; /* DODANE: Odstęp między przyciskami cookie */
    }
    
    .cookie-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
        padding: 1rem 1.5rem; /* DODANE: Większe przyciski cookie */
    }

    /* DODANE: Poprawki dla obrazków na mobile */
    .about-image img {
        height: 300px !important;
        width: 100%;
    }

    /* DODANE: Lepsze wyświetlanie galerii */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 kolumny na tabletach */
        gap: 1rem;
    }

    .gallery-item {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
        padding: 0 15px; /* DODANE: Padding dla bardzo małych ekranów */
    }
    
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem !important;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.5; /* DODANE: Lepsze leading */
    }
    
    .hero {
        padding: 6rem 0 3rem;
        height:auto;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem; /* DODANE: Odstęp między kartami usług */
    }
    
    .gallery-grid {
        grid-template-columns: 1fr; /* 1 kolumna na bardzo małych ekranach */
        gap: 1rem;
    }
    
    .gallery-item {
        height: 180px;
        width: 100%;
    }
    
    .section-title h2 {
        font-size: 1.8rem; /* DODANE: Mniejszy nagłówek sekcji */
        margin-bottom: 1rem;
    }

    .section-title p {
        font-size: 1rem; /* DODANE: Mniejszy tekst pod nagłówkiem */
    }
    
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-text p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.4; /* DODANE: Lepsze leading */
    }
    
    .modal-content {
        padding: 1.5rem 1rem; /* DODANE: Mniejsze paddingi modalów */
        margin: 10% auto;
        width: 95%;
    }

    /* DODANE: Poprawki dla przycisków na bardzo małych ekranach */
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        min-height: 44px; /* DODANE: Minimalna wysokość dla accessibility */
    }

    /* DODANE: Lepsze wyświetlanie feature items */
    .feature {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .feature-icon {
        margin-right: 0;
    }

    /* DODANE: Poprawki dla stopki na małych ekranach */
    .footer-column {
        text-align: center;
    }

    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-icons {
        justify-content: center;
    }
}

/* DODANE: Extra małe ekrany (iPhone SE itp) */
@media (max-width: 375px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .gallery-item {
        height: 150px;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .modal-content {
        padding: 1rem 0.8rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
}
    