body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 20px;
}

/*  navbar  */

.menu {
    width: 100%;
    max-width: 1920px;
    background-color: #333;
    padding: 0;

    border: 2px solid #222;

    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.menu li {
    margin: 0;
}

.menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 14px 20px;
    transition: background 0.3s;
}

.menu a:hover {
    background-color: #555;
}

/*  home page + contact page  */

.separator {
    width: 100%;
    max-width: 1920px;
    height: 3vh;
    background-color: white;
}

.main-content {
    width: 100%;
    max-width: 1920px;
    height: 75vh;

    background-color: white;
    color: black;
    display: block;
    justify-content: center;
    align-items: center;

    
}

.box {
    padding: 20px;
}

/*  home page  */

.container {
    width: 80%;
    height: 95%;
    display: flex;
    justify-content: center;
    gap: 5%;
    margin: 0 auto;
    padding: 2%;

    border-bottom: 2px solid #222;
}

.szeroki {
    flex: 0 0 80%;
    overflow: hidden;
}

.waski {
    flex: 0 0 20%;
}

@media (max-width: 924px) {
    .container {
        flex-direction: column;
        align-items: center;
        height: 90%;
    }

    .szeroki {
        flex: 8;
    }

    .waski {
        flex: 2;
    }

    .szeroki, .waski {
        width: 100%;
    }
}

.szeroki img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/*  contact page  */

.container-contact {
    width: 80%;
    height: clamp(80px, 40vw, 480px);
    display: flex;
    justify-content: center;
    margin: 0 auto;
    padding: 2%;

    border: 2px solid #222;
    border-radius: 10px;
    margin-top: 100px;
}

.lewy {
    flex: 0 0 50%;
    overflow: hidden;
}

.prawy {
    flex: 0 0 35%;
    padding: 20px;
    margin-right: 15%;
}

@media (max-width: 934px) {
    .container-contact {
        flex-direction: column;
        align-items: center;
        height: 90%;
    }

    .lewy {
        flex: 9;
        padding: 50 40px;
    }

    .prawy {
        flex: 1;
        padding: 0 40px;
        margin-right: 0;
    }

    .lewy, .prawy {
        width: 100%;
    }
}

.image-contact-container {
    width: 100%;
    height: clamp(200px, 20vw, 300px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-contact-container img {
    width: clamp(200px, 20vw, 300px);
    height: clamp(200px, 20vw, 300px);
    object-fit: cover;
    border-radius: 50%;
}

.company-data {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.company-contact {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: left;
}

.mail {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 20px;
}

.mail p {
    margin: 0;
}

/*  gallery - grid  */

.grid {
    margin-top: 50px;
    display: grid;
    gap: 20px;
    width: 100%;
}

@media (min-width: 1000px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 999px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 599px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.item {
    aspect-ratio: 16 / 9;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* gallery - overlay */

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: felx;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    padding-left: 20px;
}

.item:hover .overlay {
    opacity: 1;
}

.topContainer {
    display: none;
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.8);
    text-align: center;
    width: 100%;
}

/*  slider  */

.slider {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin: 0 auto;
    text-align: center;
    align-items: center;
}

.controls img {
    width: 100%;
    height: 100%;
    display: none;
    object-fit: contain;
}

.slider img.active {
    display: block;
}

.controls {
    height: 100%;
    margin-top: 15px;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    font-size: 32px;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    z-index: 1;
    border-radius: 50%;
    user-select: none;
}

.arrow:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.arrow.left {
    left: 10px;
}

.arrow.right {
    right: 10px;
}

.counter {
    position: absolute;
    bottom: 10px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-family: sans-serif;
}

.bottom-text {
    padding: 0 60px;
    text-align: left;
}