/**
 * Бегущая строка объявления — над шапкой, не в sticky; только desktop.
 */

:root {
	--peptide-ticker-h: 38px;
}

.peptide-announcement-ticker {
	display: block;
	position: relative;
	z-index: 400;
	width: 100%;
	height: var(--peptide-ticker-h);
	background: #eef5fb;
	border-bottom: 1px solid var(--brdcolor-gray-300, #e8ecef);
	color: var(--color-gray-600, #555);
	font-size: 14px;
	line-height: var(--peptide-ticker-h);
	overflow: hidden;
}

.peptide-announcement-ticker__viewport {
	overflow: hidden;
	width: 100%;
	height: 100%;
}

.peptide-announcement-ticker__track {
	display: inline-flex;
	align-items: center;
	flex-wrap: nowrap;
	width: max-content;
	height: 100%;
	gap: 0;
	will-change: transform;
	animation: peptide-announcement-ticker-scroll 45s linear infinite;
}

.peptide-announcement-ticker__group {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

.peptide-announcement-ticker__item {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	white-space: nowrap;
	padding: 0 2.5rem;
	gap: 0.35em;
}

.peptide-announcement-ticker__label {
	color: inherit;
	font-weight: 400;
}

.peptide-announcement-ticker__link {
	color: var(--wd-primary-color, #2080c9);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.peptide-announcement-ticker__link:hover,
.peptide-announcement-ticker__link:focus-visible {
	color: var(--wd-primary-color, #2080c9);
	opacity: 0.85;
}

.peptide-announcement-ticker__link-text {
	font-weight: 600;
	color: var(--wd-primary-color, #2080c9);
}

.peptide-announcement-ticker:hover .peptide-announcement-ticker__track {
	animation-play-state: paused;
}

@keyframes peptide-announcement-ticker-scroll {
	from {
		transform: translate3d(0, 0, 0);
	}
	to {
		transform: translate3d(-50%, 0, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.peptide-announcement-ticker__track {
		animation: none;
		padding-left: 1.25rem;
	}
}

@media (max-width: 1024px) {
	.peptide-announcement-ticker {
		display: none !important;
	}
}
