.plc {
	--plc-speed: 30s;
	--plc-height: 60px;
	--plc-gap: 60px;
	position: relative;
	width: 100%;
	overflow: hidden;
	/* miękkie wygaszenie na krawędziach */
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.plc__viewport {
	overflow: hidden;
	width: 100%;
}

.plc__track {
	display: flex;
	align-items: center;
	width: max-content;
	will-change: transform;
	animation: plc-scroll var(--plc-speed) linear infinite;
}

.plc__item {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 calc(var(--plc-gap) / 2);
	box-sizing: border-box;
}

.plc__img {
	display: block;
	height: var(--plc-height);
	width: auto;
	max-width: none;
	object-fit: contain;
	transition: opacity .25s ease, filter .25s ease, transform .25s ease;
}

.plc__link {
	display: inline-flex;
	line-height: 0;
}

/* Opcja: logo szare, kolor po najechaniu */
.plc--grayscale .plc__img {
	filter: grayscale(100%);
	opacity: .7;
}
.plc--grayscale .plc__item:hover .plc__img {
	filter: grayscale(0);
	opacity: 1;
}

/* Delikatny efekt na hover niezależnie od trybu grayscale */
.plc__item:hover .plc__img {
	transform: scale(1.04);
}

/* Pauza po najechaniu na całą karuzelę */
.plc--pausable:hover .plc__track {
	animation-play-state: paused;
}

@keyframes plc-scroll {
	from { transform: translateX(0); }
	/* -50% bo track zawiera dwa identyczne zestawy = bezszwowa pętla */
	to   { transform: translateX(-50%); }
}

/* Szacunek dla preferencji ograniczenia ruchu */
@media (prefers-reduced-motion: reduce) {
	.plc__track {
		animation: none;
		flex-wrap: wrap;
		justify-content: center;
		gap: var(--plc-gap);
	}
	.plc {
		-webkit-mask-image: none;
		mask-image: none;
	}
}
