.news {
    position: relative;
}

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

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

.news .news-slider__nav {
    display: -ms-flexbox;
    display: flex;
    gap: 12px;
    -ms-flex-align: center;
    align-items: center;
}

.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;
}

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

.news-card__photo {
    position: relative;
    aspect-ratio: 1.2676;
    overflow: hidden;
}

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

.news-card__content {
    border-radius: 12px;
    padding: 25px 20px;
    background: var(--bg-clr-2);
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    margin-top: -25px;
    position: relative;
}

.news-card__date {
    display: inline-block;
    margin-bottom: 30px;
    border-radius: 2px;
    padding: 5px 12px;
    font-weight: 500;
    font-size: var(--fluid-3);
    line-height: 120%;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #fff;
    background: var(--primary-clr);
}

.news-card__title {
    font-weight: 600;
    font-size: var(--fluid-5);
    line-height: 120%;
    transition: color var(--animation-duration) var(--timing-func);
}

@media (min-width: 767.98px) {
    .news__head {
        width: 50%;
    }

    .news .news-slider__nav {
        position: absolute;
        bottom: 100%;
        right: 0;
    }
}

@media (max-width: 767.98px) {
    .news .news-slider__slider {
        margin-right: -15px;
    }

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

    .news .news-slider__nav {
        margin-top: 32px;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }
}

@media (any-hover: hover) {
    .news-card:hover .news-card__photo img {
        transform: scale(1.05);
    }

    .news-card:hover .news-card__title {
        color: var(--primary-clr);
    }
}