@media (max-width: 600px) {
    /* Ukryj stare menu na urządzeniach mobilnych */
#menu1 {
    display: none;
}
#logo {
    width: 100px;
}

/* Nowe mobilne menu */
#mobile-menu {
    display: block;
    width: 100%;
}

#mobile-hamburger {
    display: block;
    /*left: 50%;*/
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
    background-color: lightgray;
    text-align: center;
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 10001;
}

#mobile-hamburger.open {
    background-color: lightgray;
}

#mobile-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    height: 450px;
    text-align: center;
    background-color: transparent;
    color: black;
}

#mobile-nav.open {
    display: flex;
}

#mobile-nav ul {
    display: flex;
    left: 0px;
    top: 34%;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    align-items: center;
    margin-top: 100px;
}

#li1 {
    border-top: 1px solid lightgray;
}
#mobile-nav li {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: grey;
}

#mobile-nav a {
    display: block;
    width: 100%;
    color: black;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 0;
    transition: color 0.3s, background-color 0.3s;
}

#mobile-nav a:hover {
    color: white;
    background-color: gray;

} 
    .tlo {
        height: auto;
        margin-top: 100px;
    }

    .overlaytla1 a {
        font-size: 40px;
        line-height: 2;
    }

    #serwistyt, #monitoringtyt, #smarttyt {
        height: 150px;
    }

    #tyt {
        font-size: 24px;
    }

    #serwis, #monitoring, #smart {
        height: auto;
    }

    #smartdom {
        position: relative;
        overflow: hidden;
        width: 90%;
        height: 100%;
        margin-top: 5px;
        margin-bottom: 280px;
    }

    #kamery {
        position: relative;
        overflow: hidden;
        width: 90%;
        height: 100%;
        margin-top: 5px;
        margin-bottom: 350px;
    }

    #laptop {
        position: relative;
        overflow: hidden;
        width: 90%;
        height: 100%;
        margin-top: 5px;
        margin-bottom: 200px;
    }
    #overlayserwis {
        top: 55%;
        left: 10%;
        right: 10%;
        font-size: 16px;
        line-height: 1.2;
        transform: translate(0, 0);
        text-align: justify;
    }
    #overlaymonitoring {
        top: 45%;
        left: 10%;
        right: 10%;
        font-size: 16px;
        line-height: 1.2;
        transform: translate(0, 0);
        text-align: justify;
    }
    #overlaysmart {
        top: 50%;
        left: 10%;
        right: 10%;
        font-size: 16px;
        line-height: 1.2;
        transform: translate(0, 0);
        text-align: justify;
    }

    #cennik, #cennik2, #monitoringcennik, #monitoringcennik2 {
        margin-left: 5%;
        margin-right: 5%;
    }

    #paragraf, #numer, #minus {
        font-size: 14px;
    }

    #data {
        text-align: left;
        margin-right: 0;
    }

    table {
        font-size: 14px;
    }

    #cenniktyt, #cenniktytkomp, #cenniktytlaptop, #cenniktytmonitoring {
        font-size: 24px;
    }

    .footer1container, .footer2container {
        flex-direction: column;
        align-items: center;
        margin-left: 5%;
        margin-right: 5%;
    }

    #footer11ahref, #footer11p {
        font-size: 18px;
    }

    #contactForm {
        font-size: 18px;
        width: 300px;
    }
    #kontaktcontainer {
        flex-direction: column;
    }

    #kontaktdane, #kontaktgodz {
        position: static;
        top: 0;
        right: 0;
        left: 0;
    }

    #kontaktdanetyt, #kontaktdane1 {
        font-size: 18px;
    }

    #glowna1container, #onas1, #onas2 {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    #onaszdj1, #onaszdj2 {
        width: 80%;
        margin: 10px auto;
        margin-bottom: 10px;
    }

    #onastekst, #onastekst2 {
        margin: 0;
        font-size: 16px;
    }

    #onastyt {
        font-size: 24px;
    }
    #copyrightfooter {
        position: absolute;
        left: 23%;
        bottom: 8%;
        font-size: 15px;
    }
    #regulamin {
        display: block;
        margin-top: 200px;
        text-align: left;
        margin-left: 5%;
        margin-right: 5%;
        margin-bottom: 100px; 
    }
    #onas1 {
        text-align: center;
        margin-left: 5%;
        margin-right: 5%;
        margin-bottom: 100px;
        font-size: 20px;
    }
    #cenniktyt2 {
        font-size: 20px;
        font-weight: 700;
        text-align: center;
        margin-left: 20%;
        margin-right: 20%;
    }
}
