/*
 * Бегущая строка: список повторён дважды и сдвигается на половину своей ширины по кругу.
 * Края растворяются в фоне.
 */

.ticker {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 100px, #000 calc(100% - 100px), transparent);
}

.ticker__track {
    display: flex;
    width: max-content;
    animation: ticker 50s linear infinite;
}

.ticker__item {
    flex-shrink: 0;
    font-size: var(--fs-h5);
    font-weight: 500;
    line-height: 1.04;
    white-space: nowrap;
    color: #bfbecc;
}

.ticker__item::after {
    content: '•';
    margin-inline: 0.3em;
}

@media (min-width: 980px) {
    .ticker {
        mask-image: linear-gradient(90deg, transparent, #000 200px, #000 calc(100% - 200px), transparent);
    }

    .ticker__item {
        font-size: var(--fs-h3);
    }
}

@keyframes ticker {
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ticker__track {
        animation: none;
    }
}
