#services-block {
    background: white;
    padding: 60px 0px;
}

#services-block .tabs {
    display: flex;
}

#services-block .tabs-btn {
    background: var(--white-color);
    border: 1px solid var(--grey-color2);
    border-radius: 30px;
    padding: 12px 25px;
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    color: var(--grey-color2);
    cursor: pointer;
    margin-bottom: 40px;
    margin-right: 15px;
}

#services-block .tabs-btn:last-child {
    margin-right: 0px;
}

#services-block .tabs-btn.active,
#services-block .tabs-btn:hover {
    background: var(--text-color2);
    color: var(--white-color);
    border: 1px solid var(--text-color2);
}

#services-block .service-item {
    display: flex;
    flex-direction: column;
}

#services-block .service-item .top {
    display: flex;
    justify-content: space-between;
}

#services-block .service-item .left-side {
    width: 49%;
    margin-right: 60px;
}

#services-block .service-item .left-side .img {
    position: relative;
}

#services-block .service-item .left-side .img:after {
    content: '';
    display: block;
    padding-bottom: 42%;
}

#services-block .service-item .left-side .img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#services-block .service-item .right-side {
    width: 49%;
}

#services-block .services-name {
    font-weight: 700;
    font-size: 24px;
    line-height: 120%;
    color: var(--text-color2);
    margin-bottom: 30px;
}

#services-block .desc {
    margin-bottom: 40px;
}

#services-block .desc p {
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    color: var(--text-color);
}

#services-block .btn-holder {
    display: flex;
    gap: 30px;
}

#services-block .btn-holder .btn.free {
    background: white;
    color: var(--main-color2);
    border: 2px solid var(--main-color2);
}

#services-block .btn-holder .btn.free:hover {
    color: white;
    background: var(--main-color2);
}

#services-block .bot {
    display: flex;
    flex-direction: column;
    margin-top: 40px;
}

#services-block .bot h3 {
    font-weight: 700;
    font-size: 24px;
    line-height: 120%;
    color: var(--text-color2);
    margin-bottom: 30px;
}

#services-block .subs-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

#services-block .subs-item {
    display: flex;
    flex-direction: column;
}

#services-block .subs-item .icon {
    background: var(--grey-color);
    border-radius: 5px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#services-block .subs-item .icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

#services-block .subs-item .name {
    font-weight: 700;
    font-size: 16px;
    line-height: 140%;
    color: var(--text-color2);
    margin-top: 15px;
}

#services-block .service-item.tab {
    display: none;
}

#services-block .service-item.tab.active {
    display: block;
}

.name-serv {
    display: none;
}

@media (max-width: 1200px) {
    #services-block .tabs {
        flex-wrap: wrap;
    }

    #services-block .btn-holder {
        flex-direction: column;
    }

    #services-block .tabs-btn {
        margin-bottom: 20px;
    }
}

@media (max-width: 996px) {
    #services-block .subs-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }

    #services-block .tabs-btn {
        padding: 8px 15px;
    }

    #services-block .service-item .top {
        flex-direction: column;
        align-items: center;
    }

    #services-block .service-item .right-side {
        margin-top: 20px;
        width: 100%;
    }

    #services-block .service-item .left-side {
        margin-right: 0px;
    }

    #services-block .tabs-btn {
        margin-right: 0px;
    }
}

@media (max-width: 776px) {
    #services-block .subs-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    #services-block .service-item .left-side {
        width: 100%;
    }
}

@media (max-width: 600px) {
    #services-block {
        padding: 20px 0px;
    }
}

@media (max-width: 498px) {
    #services-block .subs-wrapper {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    #services-block .subs-item {
        flex-direction: row;
    }

    #services-block .subs-item .name {
        width: 70%;
        margin-left: 10px;
    }

    #services-block .tabs {
        justify-content: center;
    }

    #services-block .tabs-btn {
        margin-bottom: 10px;
        text-align: center;
    }

    #services-block .services-name {
        font-size: 22px;
    }

    #services-block .btn-holder {
        gap: 10px;
        align-items: center;
    }

    #services-block .btn-holder .btn {
        width: 300px;
        padding: 10px 15px;
    }
}