/* --- NEO-PREMIUM UI SYSTEM 2026 --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;800&display=swap');

:root {
    --primary-bg: #0b0d11;          /* Głęboki antracyt */
    --secondary-bg: #151921;        /* Karty */
    --accent-gold: #d4af37;         /* Złoto szampańskie */
    --accent-gold-glow: rgba(212, 175, 55, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --nav-height: 85px;
    --border-radius: 24px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0; background-color: var(--primary-bg);
    color: var(--text-main); line-height: 1.6;
    background-image: radial-gradient(circle at 0% 0%, rgba(212, 175, 55, 0.07) 0%, transparent 40%);
}

.container { max-width: 1200px; margin: 0 auto; padding: 80px 20px; }

/* --- Nawigacja --- */
nav {
    position: fixed; top: 0; width: 100%; height: var(--nav-height);
    background: rgba(11, 13, 17, 0.8); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border); z-index: 1000;
    display: flex; align-items: center; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav ul { list-style: none; display: flex; justify-content: center; width: 100%; gap: 35px; margin: 0; padding: 0; }
nav ul li a {
    text-decoration: none; color: var(--text-main); font-weight: 500; font-size: 0.85em;
    text-transform: uppercase; letter-spacing: 1.2px; transition: 0.3s;
}
nav ul li a:hover, nav ul li a.active { color: var(--accent-gold); }

/* --- Header --- */
header {
    padding: calc(var(--nav-height) + 80px) 20px 80px; text-align: center;
    background: linear-gradient(to bottom, #13171f, var(--primary-bg));
}
header h1 {
    font-size: clamp(2.5em, 5vw, 4em); font-weight: 800; margin-bottom: 15px;
    background: linear-gradient(135deg, #fff 30%, var(--accent-gold) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.header-subtitle { color: var(--text-muted); font-size: 1.1em; letter-spacing: 1px; }

/* --- Specjalna Sekcja Mapy (Kontakt) --- */
.map-wrapper {
    position: relative; width: 100%; height: 550px;
    border-radius: var(--border-radius); overflow: hidden;
    border: 1px solid var(--glass-border); margin-bottom: 50px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.map-overlay {
    position: absolute; top: 0; left: 0; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(11, 13, 17, 0.95) 0%, rgba(11, 13, 17, 0.8) 60%, transparent 100%);
    z-index: 10; display: flex; flex-direction: column; justify-content: center;
    padding-left: 60px; transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.map-wrapper:hover .map-overlay {
    opacity: 0; transform: translateX(-100px);
}

.map-overlay h2 { color: var(--accent-gold); font-size: 2em; margin-bottom: 10px; max-width: 350px; }
.map-overlay p { color: #fff; font-size: 1.2em; }

.map-wrapper iframe { width: 100%; height: 100%; border: 0; }

/* --- Partnerzy (KOLOROWI) --- */
.partners-section { 
    padding: 100px 0; background: #fff; /* Białe tło dla logotypów partnerów, by wyglądały profesjonalnie */
    text-align: center; border-radius: 40px 40px 0 0;
}
.partners-section p { color: #111; font-weight: 800; text-transform: uppercase; margin-bottom: 40px; }
.partners-section img { 
    max-width: 85%; height: auto; transition: 0.4s ease; 
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}
.partners-section img:hover { transform: scale(1.02); }

/* --- Karty i Ikony --- */
.glass-card, .service-item, .realizacja-item, .blog-post {
    background: var(--secondary-bg); border: 1px solid var(--glass-border);
    border-radius: var(--border-radius); padding: 40px; transition: 0.4s;
}
.service-item:hover { border-color: var(--accent-gold); transform: translateY(-10px); }

.service-icon { width: 60px; height: 60px; margin-bottom: 25px; }
.service-icon svg { fill: none; stroke: var(--accent-gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.button-link {
    display: inline-block; padding: 16px 36px; background: var(--accent-gold);
    color: #000 !important; font-weight: 800; border-radius: 50px;
    text-decoration: none; text-transform: uppercase; font-size: 0.85em;
    letter-spacing: 1px; transition: 0.3s; box-shadow: 0 10px 25px var(--accent-gold-glow);
}
.button-link:hover { transform: scale(1.05); background: #fff; box-shadow: 0 15px 30px rgba(255,255,255,0.2); }

footer { padding: 80px; text-align: center; border-top: 1px solid var(--glass-border); color: var(--text-muted); }

@media (max-width: 768px) {
    .map-overlay { width: 100%; padding: 20px; text-align: center; background: rgba(11, 13, 17, 0.9); }
    nav ul { gap: 15px; }
}






/* STYL DLA MIGAJĄCEGO CZERWONEGO NAPISU OCHRONA - POWIĘKSZONY */
        .nav-emergency {
            color: #ff0000 !important;
            font-weight: 900 !important;
            font-size: 1.2em !important; /* Powiększenie napisu */
            text-transform: uppercase;
            letter-spacing: 1px;
            text-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
            animation: blink 1s infinite;
        }

        @keyframes blink {
            0% { opacity: 1; }
            50% { opacity: 0.3; }
            100% { opacity: 1; }
        }

        /* Styl dla wyróżnionego tekstu w treści */
        .highlight-red {
            color: #ff0000;
            font-weight: bold;
        }

        /* Specjalne wyróżnienie dla kluczowej korzyści */
        .highlight-large {
            color: #ff0000;
            font-weight: 900;
            font-size: 1.1em;
            text-shadow: 0 0 5px rgba(255, 0, 0, 0.2);
            display: inline-block;
            margin-top: 5px;
        }

        /* --- RESPONSIVE DESIGN BY PRO-DEV --- */

@media (max-width: 768px) {
    /* 1. Reset zmiennych dla mobile */
    :root {
        --nav-height: auto;
        --border-radius: 16px;
    }

    /* 2. Nawigacja - klucz do wygody */
    nav {
        padding: 10px 0;
    }
    nav ul {
        flex-wrap: wrap; /* Pozwala linkom przejść do nowej linii */
        gap: 10px;
        justify-content: center;
        padding: 5px;
    }
    nav a {
        font-size: 0.7em; /* Mniejszy tekst w menu */
        padding: 5px 8px;
    }

    /* 3. Typografia - tekst musi być czytelny */
    header h1 {
        font-size: 1.8rem !important;
        line-height: 1.2;
        padding: 0 15px;
    }
    .header-subtitle {
        font-size: 0.9rem !important;
        padding: 0 20px;
    }

    /* 4. Układ Grid - zamiana kolumn na pion */
    .container {
        padding: 120px 15px 40px; /* Mniejsze marginesy boczne */
    }

    /* Wszystkie siatki (statystyki, usługi, blog) ustawiamy w jedną kolumnę */
    .stats-grid, 
    .blog-post-listing, 
    .protection-steps, 
    .services-grid {
        grid-template-columns: 1fr !important; 
        gap: 20px;
    }

    /* 5. Sekcja Mapy w Kontakt.html */
    .map-wrapper {
        height: 300px;
    }
    .map-overlay {
        position: relative; /* Wyjmujemy nakładkę z mapy - na telefonie musi być pod nią */
        inset: 0;
        width: 100%;
        max-width: none;
        border-radius: 0;
        border-left: none;
        border-top: 3px solid var(--accent-gold);
    }

    /* 6. Formularz Kontaktowy */
    #contact-form-container > div {
        flex-direction: column !important; /* Zamiana dwóch kolumn na jedną */
    }
    
    /* 7. Obrazki Partnerów */
    .partners-section img {
        max-width: 100%;
        height: auto;
    }

    /* 8. Przyciski - muszą być "klikalne" kciukiem */
    .button-link, .big-contact-btn {
        width: 100%;
        display: block;
        text-align: center;
        box-sizing: border-box;
    }

    @media (max-width: 768px) {
    /* 1. Główne nagłówki (h1) - drastyczna redukcja i marginesy */
    h1 {
        font-size: 1.5rem !important; /* Zmniejszamy z 1.8 na 1.5, żeby się mieściło */
        line-height: 1.2 !important;
        padding: 0 10px !important;
        word-wrap: break-word;        /* Wymusza zawijanie długich słów */
        overflow-wrap: break-word;
        text-align: center;
    }

    /* 2. Podtytuły pod nagłówkami */
    .header-subtitle {
        font-size: 0.85rem !important;
        padding: 0 15px !important;
        line-height: 1.4 !important;
    }

    /* 3. Naprawa kontenera - upewnij się, że nie ma paddingu, który wypycha tekst */
    header {
        padding: 100px 10px 40px !important; /* Mniejsze marginesy boczne w sekcji header */
        width: 100%;
        box-sizing: border-box;
    }

    /* 4. Usunięcie sztywnych szerokości z elementów tekstowych */
    .container, section, div {
        max-width: 100% !important;
        overflow-x: hidden; /* Blokuje pływanie strony na boki */
    }
}
}

