.news__header{
    margin-bottom: 40px;
}
@media screen and (max-width: 992px) {
    margin-bottom: 25px;
}


.main-services {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/*.main-services__wrapper {*/
/*    padding: 5rem 0;*/
/*}*/

.main-services__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.main-services__header h3 {
    line-height: 125%;
    color: var(--title-color);
    font-size: calc(
            18px + 14 * ((100vw - 360px) / 1560)
    );
    /*font-family: "manrope_semibold", sans-serif;*/
    font-weight: 600;
}

.main-services__header a.more {
    padding: 5px 12px;
    font-size: 15px;
}

.main-services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.main-services__grid-item {
/*    display: flex;*/
/*    align-items: end;*/
/*    min-height: 171px;*/
/*    padding: 24px;*/
/*    border-radius: var(--border-radius);*/
    overflow: hidden;
/*    z-index: 1;*/
    position: relative;
    /*transition: background-size 0.3s ease;*/
}

.main-services__grid-item span {
    font-size: 20px;
    line-height: 125%;
    color: var(--white);
    /*font-family: "manrope_semibold", sans-serif;*/
    font-weight: 600;
    position: absolute;
    z-index: 2;
    padding: 24px;
    bottom: 0;
}

.main-services__grid-item::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
}

/*.main-services__grid-item::before {*/
/*    content: "";*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    background-image: var(--bg-image);*/
/*    background-size: cover;*/
/*    background-position: center;*/
/*    z-index: -1;*/
/*    transition: transform 0.3s ease;*/
/*}*/

@media screen and (max-width: 1200px) {
    .main-services__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 991px) {
    .main-services__wrapper {
        padding: 25px 0;
    }

    .main-services__header a.more {
        font-size: 12px;
    }

    .main-services__grid-item span {
        font-size: 16px;
        padding: 12px;
    }

    /*.main-services__grid-item {*/
    /*    padding: 12px;*/
    /*}*/

    .main-services__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .main-services {
        gap: 25px;
    }
}

@media screen and (max-width: 768px) {
    /*.main-services__grid-item {*/
    /*    flex-shrink: 0;*/
    /*    width: 260px;*/
    /*    min-height: 200px;*/
    /*}*/

    .main-services__grid {
        display: flex;
        overflow-x: auto;
    }
}

/*@media (hover: hover) {*/
/*    .main-services__grid-item:hover:not(.focus-visible)::before {*/
/*        transform: scale(1.1);*/
/*    }*/
/*}*/