.services_list_section2 {}

.services_list_section2 .items {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.services_list_section2 .service_item_wrap {
    display: block;
    flex: 1 1 calc(25% - 15px);
    /* Базовый размер 25%, но может расти */
    min-width: 200px;
    /* Минимальная ширина для контроля */
}

.services_list_section2 .item {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 20px;
}

.services_list_section2 .link2_arrow {
    position: absolute;
    border: 1px solid var(--theme-base-color);
    border-radius: 30px;
    width: clamp(28px, 32px, 36px);
    height: clamp(28px, 32px, 36px);
    overflow: hidden;
    transition: all 0.3s ease;
    right: 15px;
    top: 15px;
    transform: rotate(-45deg);
    display: flex;
    justify-content: center;
    align-items: center;
}

.services_list_section2 .name {
    font-weight: 500;
    font-size: 22px;
    line-height: 110%;
    letter-spacing: 0.01em;
    text-transform: capitalize;
    color: var(--theme-base-color);
    position: absolute;
    z-index: 3;
    bottom: 20px;
    right: 20px;
    left: 20px;
    text-align: center;
    transition: 0.4s;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
}

.services_list_section2 .name_back {
    background: rgb(255 255 255 / 30%);
    border: 1px solid rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(10.15px);
    border-radius: 0px;
    z-index: 1;
    position: absolute;
    width: 100%;
    bottom: 0px;
    top: auto;
    height: 90px;
    transition: 0.7s;
}

.services_list_section2 .image {
    height: 100%;
}

.services_list_section2 .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services_list_section2 .btn_item_position {
    position: absolute;
    bottom: -100px;
    transition: 0.3s;
    left: 0px;
    right: 0px;
    display: flex;
    justify-content: center;
    z-index: 2;
}

.services_list_section2 .item:hover .name_back {
    border-radius: 0px;
    height: 150px;
}

.services_list_section2 .item:hover .name {
    bottom: 80px;
}

.services_list_section2 .item:hover .btn_item_position {
    bottom: 20px;
}

@media (max-width: 991px) {
    .services_list_section2 .container {
        padding: 0px;
        overflow-x: scroll;
    }

    .services_list_section2 .items {
        flex-wrap: nowrap;
        width: max-content;
        padding: 0px 15px;
    }

    .services_list_section2 .service_item_wrap {
        width: 250px;
    }

    .services_list_section2 .item {
        height: 400px;
    }

    .services_list_section2 .name_back {
        left: -50px;
        right: 0px;
        width: auto;
    }

    .services_list_section2 .name {
        font-size: 24px;
    }
}
