.news-section {
    padding-top: 40px;
}

.news-section__header {
    margin-bottom: 24px;
}

@media screen and (min-width: 768px) {
    .news-section__header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

.news-section__title {
    font-size: 32px;
    color: #6136CA;
    margin: 0 0 2px 0;
}

@media screen and (min-width: 768px) {
    .news-section__title {
        font-size: 40px;
    }
}

@media screen and (min-width: 1560px) {
    .news-section__title {
        max-width: 350px;
    }
}

.news-section__link {
    color: #6136CA;
    font-weight: 600;
    font-size: 16px;
    text-underline-offset: 3px;
}

.news-section__card-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 8px;
    flex-direction: column;
}

@media screen and (min-width: 1560px) {
    .news-section__card-list {
        flex-direction: row;
    }

    .news-section__card-list > * {
        flex: 1;
    }
}

.news-card {
    text-decoration: none;
    color: inherit;
    transition: background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 324px;
    padding: 24px;
    background: #F6F6F6;
    border-radius: 24px;
    box-shadow: 0px -2px 50px 0px #0000001A;
}

.news-card__date-number {
    color: #F9630E;
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
}

.news-card__date-month {
    color: #F9630E;
    font-weight: 700;
    font-size: 13px;
    line-height: 20px;
    margin-bottom: 8px;
}

.news-card__title {
    -webkit-line-clamp: 3;
    /* Число отображаемых строк */
    display: -webkit-box;
    /* Включаем флексбоксы */
    -webkit-box-orient: vertical;
    /* Вертикальная ориентация */
    overflow: hidden;
    /* Обрезаем всё за пределами блока */
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 8px 0;
    min-height: 66px;
}

.news-card__text {
    -webkit-line-clamp: 4;
    /* Число отображаемых строк */
    display: -webkit-box;
    /* Включаем флексбоксы */
    -webkit-box-orient: vertical;
    /* Вертикальная ориентация */
    overflow: hidden;
    /* Обрезаем всё за пределами блока */
    font-size: 13px;
    font-weight: 500;
    color: #6E6E6F;
    margin: 0;
}

.news-card__link {
    position: relative;
    display: block;
    width: 66px;
    height: 54px;
    border-radius: 20px;
    background: #ffffff;
    color: inherit;
    margin-top: auto;
    margin-left: auto;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.news-card__link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: translate(-50%, -50%) rotate(45deg);
}

@media screen and (min-width: 768px) and (hover: hover) {
    .news-card__link:not(:disabled):not(.news-card__link--disabled):hover, .news-card__link:not(:disabled):not(.news-card__link--disabled):focus-visible {
        background: #F9630E;
        color: #ffffff;
    }
}

@media screen and (min-width: 768px) and (hover: hover) {
    .news-card:not(:disabled):not(.news-card--disabled):hover, .news-card:not(:disabled):not(.news-card--disabled):focus-visible {
        background: #ffffff;
    }
}
