.news {
    position: relative;
}

.news__head {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: end;
    align-items: flex-end;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 12px;
}

.news .news-slider {
    position: relative;
    padding-top: 30px;
}

.news .news-slider__slide {
    height: auto;
}

.news .news-slider__nav {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: end;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 32px;
}

.news-card {
    height: 100%;
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    border-radius: var(--main-chamfer);
    overflow: hidden;
    padding: 16px;
    background: var(--main-bg-clr);
}

.news-card > a {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 7;
    font-size: 0;
    background: none;
}

.news-card__photo {
    position: relative;
    aspect-ratio: 1.3;
    overflow: hidden;
    border-radius: var(--main-chamfer);
    border-top-left-radius: 0;
    margin-bottom: 8px;
    -webkit-mask-image: url("../img/mask.svg"), linear-gradient(#000000 0 0);
    mask-image: url("../img/mask.svg"), linear-gradient(#000000 0 0);
    -webkit-mask-size: auto, 100%;
    mask-size: auto, 100%;
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 6;
}

.news-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--animation-duration) var(--timing-func);
}

.news-card__content {
    -ms-flex: 1;
    flex: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    -ms-flex-align: end;
    align-items: end;
    z-index: 6;
}

.news-card__date {
    font-weight: 500;
    font-size: var(--fluid-7);
    line-height: 120%;
    position: absolute;
    padding-top: 11px;
    padding-left: 8px;
    z-index: 6;
}

.news-card__title {
    font-weight: 500;
    font-size: var(--fluid-7);
    line-height: 120%;
}

.news-card__btn {
    border-radius: 50%;
    width: 49px;
    height: 48px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    background: var(--accent-clr);
    transition: background var(--animation-duration) var(--timing-func);
}

.news-card__btn svg path {
    transition: stroke var(--animation-duration) var(--timing-func);
}

.rs-news__wrapper {
    background: var(--bg-clr-2);
    border-radius: var(--main-chamfer);
    padding-top: 80px;
    padding-bottom: 80px;
}

@media (min-width: 767.98px) {
    .news__head .site-slide-icon {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .news__head .btn-color {
        position: absolute;
        bottom: 0;
        width: calc(100% - 30px);
    }

    .news .news-slider {
        padding-bottom: 70px;
    }

    .news .news-slider__slider {
        margin-right: -15px;
    }

    .news .news-slider__slide {
        width: 310px;
    }

    .news .news-slider__nav {
        display: none;
    }

    .news-card__btn {
        width: 38px;
        height: 38px;
    }

    .rs-news__wrapper {
        padding-top: 42px;
        padding-bottom: 42px;
    }
}

@media (any-hover: hover) {
    .news-card:hover .news-card__btn {
        background: var(--primary-clr);
    }

    .news-card:hover .news-card__btn svg path {
        stroke: #fff;
    }
}