#services-block {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    align-items: center;
}

.service-item {
    display: flex;
    position: relative;
    width: 240px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    justify-content: center;
    align-items: center;
}

.service-item::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    transition: opacity 0.3s ease, border-radius 0.3s ease, transform 0.3s ease;
    z-index: 2;
    opacity: 1;
}

.service-item:hover::before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
}

.service-item img {
    width: 100%;
    height: 100%;
    filter: brightness(50%);
    transition: filter 0.3s ease;
    z-index: 1;
    border-radius: 20px;
    object-fit: cover;
}

.service-item .text {
    position: absolute;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(0);
    font-size: 20px;
    color: white;
    z-index: 2;
}

.service-item:hover img {
    filter: brightness(100%);
}

.service-item:hover .text {
    transform: translateY(-50px);
}

.service-item .one {
    background-image: url('./img1.png');
}

.service-item .two {
    background-image: url('./img2.png');
}

.service-item .three {
    background-image: url('./img3.png');
}

.service-item .four {
    background-image: url('./img4.png');
}

.service-button {
    position: absolute;
    bottom: 20px;
    font-size: 12px;
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: bottom 0.3s ease, opacity 0.3s ease;
    z-index: 2;
    opacity: 0;
}

.service-item:hover .service-button {
    opacity: 1;
}

.services-button-main {
    margin-top: 20px;
    font-size: 20px;
}


@media (max-width: 600px) {
    #services-block {
        display: flex;
        flex-direction: column;
        gap: 1px;
        background: rgba(255, 255, 255, 0.3);
    }

    .service-item {
        border-radius: 0;
        box-shadow: none;
        height: 60px;
        width: 100%;
        text-align: left;
        justify-content: start;
    }

    .service-item::before {
        border-radius: 0;
    }

    .service-item img {
        border-radius: 0;
    }

    .service-item .text {
        font-size: 4vw;
        padding: 0 8px;
    }

    .service-item:hover .text {
        opacity: 0;
        transform: translateY(0);
    }

    .service-button {
        font-size: 4vw;
        padding: 4px;
        right: 8px;
        bottom: auto;
    }

    .services-button-main {
        font-size: 6vw;
    }
}