.custom-news .news__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.custom-news .news__intro .xn-h2 { margin-bottom: 0; }
.custom-news .news__intro .xn-lead { margin-top: 18px; }

.custom-news .news__nav { display: flex; gap: 10px; flex-shrink: 0; }
.custom-news .news__nav.is-hidden { visibility: hidden; }
.custom-news .news__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1.5px solid #e4e4ea;
    border-radius: 50%;
    background: #fff;
    color: #111;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s, opacity .15s;
}
.custom-news .news__arrow svg { width: 20px; height: 20px; }
.custom-news .news__arrow--prev svg { transform: rotate(180deg); }
.custom-news .news__arrow:hover { background: #111; border-color: #111; color: #fff; }
.custom-news .news__arrow:focus-visible { outline: 3px solid var(--xn-orchid); outline-offset: 2px; }

.custom-news .news__track {
    --news-per-view: 3;
    --news-gap: 20px;
    display: flex;
    gap: var(--news-gap);
    margin-top: 44px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}
.custom-news .news__track::-webkit-scrollbar { display: none; }

.custom-news .news__card {
    flex: 0 0 calc((100% - (var(--news-per-view) - 1) * var(--news-gap)) / var(--news-per-view));
    min-width: 0;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    border: 1.5px solid #e4e4ea;
    border-radius: 22px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.custom-news .news__card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--xn-gradient); z-index: 2; }
.custom-news .news__card:hover { border-color: #d6d6de; box-shadow: 0 18px 40px rgba(17, 17, 17, .08); }

.custom-news .news__link { display: flex; flex-direction: column; height: 100%; color: inherit !important; }
.custom-news .news__link:focus-visible { outline: 3px solid var(--xn-orchid); outline-offset: -3px; border-radius: 22px; }

.custom-news .news__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #111; }
.custom-news .news__media--empty { background: #000 url('../assets/img/xn-ribbons.png') center / cover no-repeat; }
.custom-news .news__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.custom-news .news__card:hover .news__img { transform: scale(1.04); }
.custom-news .news__cat {
    position: absolute;
    left: 16px;
    top: 18px;
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--xn-gradient);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    line-height: 1;
}

.custom-news .news__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.custom-news .news__date { font-size: 13px; letter-spacing: .04em; color: #8a8a94; }
.custom-news .news__title { margin-top: 8px; font-size: 20px; font-weight: 500; line-height: 1.3; color: #111; }
.custom-news .news__excerpt { margin-top: 10px; font-size: 14.5px; line-height: 1.55; color: #555; }
.custom-news .news__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--xn-orchid);
}
.custom-news .news__more svg { width: 16px; height: 16px; transition: transform .2s; }
.custom-news .news__card:hover .news__more svg { transform: translateX(4px); }

.custom-news .news__empty { margin-top: 44px; padding: 40px; border: 1.5px dashed #d6d6de; border-radius: 22px; color: #8a8a94; text-align: center; }
.custom-news .news__cta { margin-top: 36px; }

@media (max-width: 1100px) {
    .custom-news .news__track { --news-per-view: 2; }
}
@media (max-width: 820px) {
    .custom-news .news__track { --news-per-view: 1.15; --news-gap: 14px; margin-top: 32px; }
    .custom-news .news__nav { display: none; }
    .custom-news .news__title { font-size: 18px; }
}
