/* Homepage news redesign */
.rd-news .nms-news__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: clamp(48px, 4vw, 72px);
}
.rd-news .nms-news__title {
    margin: 0;
}
.rd-news .nms-news__header-actions,
.rd-news .nms-news__controls {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}
.rd-news .nms-news__header-actions {
    gap: 28px;
}
.rd-news .nms-news__controls {
    gap: 10px;
}
.rd-news .nms-news__all-link {
    min-width: 210px;
    min-height: 56px;
    padding: 16px 24px;
    color: #fff;
    background-color: #1400c4;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-decoration: none;
}
.rd-news .nms-news__all-link:hover,
.rd-news .nms-news__all-link:focus-visible {
    color: #fff;
    background-color: #0098ff;
}
.rd-news .nms-news__all-link span {
    font-size: 22px;
    line-height: 1;
}
.rd-news .nms-news__counter {
    display: flex;
    align-items: baseline;
    gap: 7px;
    min-width: 88px;
    margin-right: 10px;
    color: #1400c4;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.rd-news .nms-news__counter-current {
    font-size: 28px;
    font-weight: 500;
}
.rd-news .nms-news__counter-divider,
.rd-news .nms-news__counter-total {
    color: #717171;
    font-size: 16px;
    font-weight: 300;
}
.rd-news .nms-news__arrow {
    width: 54px;
    height: 54px;
    padding: 0;
    border: 1px solid rgba(20, 0, 196, 0.28);
    color: #1400c4;
    background-color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.rd-news .nms-news__arrow:hover:not(.slick-disabled) {
    border-color: #1400c4;
    color: #fff;
    background-color: #1400c4;
}
.rd-news .nms-news__arrow.slick-disabled {
    opacity: 0.35;
    cursor: default;
}
.rd-news .nms-news__slide {
    height: 100%;
    padding-right: 0;
    padding-left: 0;
    box-sizing: border-box;
}
.rd-news .nms-news__slider .slick-active + .slick-active .nms-news__item {
    width: calc(100% - 22px);
    margin-left: 22px;
}
.rd-news .nms-news__item {
    height: 100%;
    margin-right: 0;
    padding: 0;
    border: 1px solid #dfe1ea;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    overflow: hidden;
}
.rd-news .nms-news__item::before {
    content: 'Материал';
    position: absolute;
    z-index: 2;
    top: 18px;
    left: 18px;
    padding: 7px 10px;
    color: #fff;
    background-color: #1400c4;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.rd-news .nms-news__img {
    width: 100%;
    height: 300px;
    display: block;
    object-fit: cover;
}
.rd-news .nms-news__info {
    min-height: 292px;
    padding: 30px 32px 28px;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}
.rd-news .nms-news__caption {
    margin: 0 0 16px;
    color: #1400c4;
    font-size: 27px;
    font-weight: 600;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.rd-news .nms-news__introtext {
    margin-bottom: 24px;
    color: #32313f;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.5;
    -webkit-line-clamp: 3;
}
.rd-news .nms-news__item-bottom {
    margin-top: auto;
    flex-direction: row;
    align-items: center;
    gap: 18px;
}
.rd-news .nms-news__link {
    color: #1400c4;
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}
.rd-news .nms-news__link::after {
    content: ' →';
    display: inline-block;
    transform: translateX(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.rd-news .nms-news__link:hover,
.rd-news .nms-news__link:focus-visible {
    color: #0091ff;
}

.rd-news .nms-news__link:hover::after,
.rd-news .nms-news__link:focus-visible::after {
    transform: translateX(2px);
}
.rd-news .nms-news__date span {
    font-size: 15px;
}

@media (max-width: 1200px) {
    .rd-news .nms-news__header {
        align-items: flex-start;
        flex-direction: column;
    }
    .rd-news .nms-news__header-actions {
        width: 100%;
        justify-content: space-between;
    }
    .rd-news .nms-news__img {
        height: 260px;
    }
}
@media (max-width: 767px) {
    .rd-news .nms-news__header-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
    }
    .rd-news .nms-news__all-link {
        width: 100%;
    }
    .rd-news .nms-news__controls {
        justify-content: flex-end;
    }
    .rd-news .nms-news__slide {
        padding-right: 0;
    }
    .rd-news .nms-news__img {
        height: 230px;
    }
    .rd-news .nms-news__info {
        min-height: 300px;
        padding: 24px 20px;
    }
    .rd-news .nms-news__caption {
        font-size: 23px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .rd-news .nms-news__link,
    .rd-news .nms-news__link::after {
        transition: none;
    }
}