.news-ticker {
    width: 100%;
    min-height: 48px;
    overflow: hidden;
    background: #60626a;
    border-bottom: 1px solid #dfe3e8;
}

.news-ticker__container {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1440px;
    min-height: 48px;
    margin: 0 auto;
    padding: 0 36px;
}

/* Ссылка на страницу всех новостей. */
.news-ticker__label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 78px;
    height: 22px;
    padding: 0 10px;
    border-radius: 5px;
    background: #ff6a00;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition:
            color 0.2s ease,
            background 0.2s ease;
}

.news-ticker__label:hover,
.news-ticker__label:focus-visible {
    background: #ff7d26;
    color: #ffffff;
    outline: none;
}

/* Общий стиль кнопок навигации. */
.news-ticker__control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #ff6a00;
    cursor: pointer;
    transition:
            color 0.2s ease,
            background 0.2s ease,
            opacity 0.2s ease;
}

.news-ticker__control:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ff9c56;
}

.news-ticker__control:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: #ff9c56;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.45);
}

.news-ticker__control:disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

/* SVG-стрелки. */
.news-ticker__control svg {
    display: block;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Видимая область с анимируемыми новостями. */
.news-ticker__viewport {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    height: 48px;
    overflow: hidden;
}

/* Обёртка всех слайдов новостей. */
.news-ticker__track {
    position: relative;
    width: 100%;
    height: 100%;
}

/*
 * Базовое стартовое положение новости:
 * она находится сверху за границей видимой области.
 *
 * Используется при переходе вперёд.
 */
.news-ticker__item {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    width: 100%;
    height: 48px;
    min-width: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
    transition:
            transform 0.45s ease,
            opacity 0.45s ease;
}

/* Видимая текущая новость. */
.news-ticker__item.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/*
 * Переключение вперёд:
 * текущая новость уходит вниз.
 */
.news-ticker__item.is-leaving {
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
}

/*
 * Переключение назад:
 * новая новость стартует снизу.
 */
.news-ticker__item.is-from-bottom {
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
}

/*
 * Переключение назад:
 * текущая новость уходит наверх.
 */
.news-ticker__item.is-leaving.is-to-top {
    transform: translateY(-100%);
}

/*
 * Ссылка растягивается только до ширины заголовка.
 * При длинном тексте сжимается, оставляя место для стрелки справа.
 */
.news-ticker__link {
    display: block;
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(100% - 40px);
    overflow: hidden;
    color: #ffffff;
    font-size: 14px;
    line-height: normal;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-ticker__link:hover,
.news-ticker__link:focus-visible {
    color: #ff9c56;
    outline: none;
}

/* Обрезание длинного заголовка с многоточием. */
.news-ticker__title {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/*
 * Правая стрелка располагается сразу после заголовка.
 * Она находится внутри конкретной новости и двигается вместе с ней.
 */
.news-ticker__item .news-ticker__control--next {
    flex: 0 0 auto;
    margin-left: 10px;
}

/* Планшеты и мобильные. */
@media (max-width: 767px) {
    .news-ticker__container {
        gap: 8px;
        padding: 0 15px;
    }

    .news-ticker__label {
        min-width: 67px;
        height: 22px;
        padding: 0 8px;
        font-size: 10px;
    }

    .news-ticker__control {
        width: 25px;
        height: 25px;
    }

    .news-ticker__control svg {
        width: 17px;
        height: 17px;
    }

    .news-ticker__link {
        max-width: calc(100% - 34px);
        font-size: 12px;
    }

    .news-ticker__item .news-ticker__control--next {
        margin-left: 7px;
    }
}

/* Узкие смартфоны. */
@media (max-width: 420px) {
    .news-ticker__container {
        gap: 5px;
        padding: 0 10px;
    }

    .news-ticker__label {
        min-width: 62px;
        padding: 0 6px;
        font-size: 9px;
    }

    .news-ticker__control {
        width: 23px;
        height: 23px;
    }

    .news-ticker__control svg {
        width: 16px;
        height: 16px;
    }

    .news-ticker__link {
        font-size: 11px;
    }
}

/* Отключаем движения для пользователей с настройкой reduced motion. */
@media (prefers-reduced-motion: reduce) {
    .news-ticker__item,
    .news-ticker__label,
    .news-ticker__control,
    .news-ticker__link {
        transition: none;
    }
}