* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
}

.hero-section {
    height: 100vh;
    width: 100%;
    background-image: url('templates/LandigPage1.png?v=3');
    background-size: cover; /* Naprawia zniekształcenie zdjęcia */
    background-position: center;
    background-repeat: no-repeat;
}

.main-nav {
    background-color: #525b5f;
    color: white;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

.main-nav.visible {
    transform: translateY(0);
}

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

.logo img {
    height: 50px;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.7;
}

.content {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.custom-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

.custom-list li {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    border: 1px solid #f0f0f0;
}

.custom-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.list-icon {
    width: 70px;
    height: 70px;
    margin-right: 25px;
    object-fit: contain;
    flex-shrink: 0;
    background: #f4f4f4;
    border-radius: 50%;
    padding: 15px;
}

.scroll-down-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 105px; /* Wysokość dopasowana do kafelka */
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;/* Strzałka do prawej */
    align-items: center;
    opacity: 1;
    z-index: 5; /* Pasek pod kafelkiem */
    pointer-events: none;
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    animation: bounce 2s infinite;
    pointer-events: auto; /* Sama strzałka pozostaje klikalna */
    cursor: pointer;
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.list-icon {
    width: 100px; /* Tutaj wpisz pożądaną szerokość */
    height: auto; /* To gwarantuje, że ikona się nie rozciągnie */
}

.kropki-mega-volt {
        display: grid;
        grid-template-columns: repeat(4, 20px);
        grid-template-rows: repeat(4, 20px);
        gap: 25px;
        position: absolute;
        right: 40px;
        margin-top: 20px;
        margin-bottom: 20px;
        z-index: -1;
    }

.kropeczka {
        width: 15px;
        height: 15px;
        border-radius: 50%;
        background-color: #ff0000;
        box-shadow: 0 0 8px rgba(255, 0, 0, 0.4);
    }

.footer-section {
        background-color: #525b5f;
        color: #fff;
        padding: 50px 20px;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        margin-top: 50px;
    }
.footer-content {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        flex-wrap: wrap;
        gap: 40px;
        align-items: center;
    }
.contact-details {
        flex: 1;
        min-width: 300px;
    }
.contact-details p {
        font-size: 20px;
        line-height: 1.8;
        margin: 0 0 20px 0;
        color: #ddd;
    }
.contact-details a {
        color: #ffc620;
        text-decoration: none;
        font-weight: 600;
        transition: 0.3s;
    }
.contact-details a:hover {
        color: #ff3344;
    }
.map-box {
        flex: 2;
        min-width: 300px;
        border-radius: 12px;
        overflow: hidden;
        height: 300px;
    }
.map-box iframe {
        width: 100%;
        height: 100%;
        border: none;
    }


.content {
    position: relative;
}

.szary-trojkat-tlo {
    position: absolute;
    top: -20px;
    /* To obliczenie przesuwa element do lewej krawędzi okna przeglądarki */
    left: calc(-50vw + 50%);
    width: 80vw;
    height: 700px;
    background-color: #f3f3f3;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    z-index: -2;
}
.hero-section {
    position: relative; /* To musi tu być, żeby kafelek wiedział gdzie jest dół zdjęcia */
    overflow: hidden; /* Zapobiega wystawaniu elementów */
}

.kontakt-kafelek-img {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 105px; /* Taka sama wysokość jak paska */
    width: auto;
    z-index: 10; /* Kafelek nad paskiem */
}


@media (max-width: 768px) {
    .hero-section {
            /* svh blokuje wysokość na najmniejszym możliwym oknie, 
            więc zdjęcie nie "puchnie" podczas scrollowania */
            height: 100svh !important; 
            
            background-image: url('templates/LandingPage_Mobile.png?v=4') !important;
            background-size: cover !important;
            background-position: center center;
        }
    .custom-list {
        /* Naprawia za szerokie kafelki O Nas */
        grid-template-columns: 1fr !important; 
        padding: 0 10px;
    }

    .custom-list li {
        min-width: unset !important; /* Usuwa wymuszone 450px */
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

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

    .kropki-mega-volt {
        display: none; /* Ukrywamy dekoracje zasłaniające treść */
    }

    .nav-links {
        display: none; /* Menu ukryte (do zrobienia jako hamburger) */
    }
    #realizacje iframe {
        height: 760px !important; /* Wystarczy na nagłówek "Nasze realizacje" + 3 kafelki */
    }
.kontakt-kafelek-img {
        height: 70px !important;
        width: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        position: absolute !important;
        z-index: 20 !important;
    }

    .scroll-down-bar {
        height: 70px !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: flex-end !important;
        padding-right: 40px !important;
        align-items: center !important;
        background-color: rgba(0, 0, 0, 0.4) !important;
        z-index: 10 !important;
        pointer-events: none !important;
    }

    .scroll-arrow {
        width: 35px !important;
        height: 35px !important;
        pointer-events: auto !important;
        cursor: pointer;
    }

    .scroll-arrow {
        width: 35px !important;        
        height: 35px !important;
        pointer-events: auto !important;
    }

    /* Reszta twoich ustawień mobilnych zostaje bez zmian */
    .custom-list { grid-template-columns: 1fr !important; padding: 0 10px; }
    .custom-list li { min-width: unset !important; flex-direction: column; text-align: center; gap: 15px; }
    .list-icon { margin-right: 0; }
    .kropki-mega-volt { display: none; }
    .nav-links { display: none; }
    #realizacje iframe { height: 760px !important; }
}
    

