.baltiya-home-brands {
	padding: 80px 0;
	background: #fff;
}

.baltiya-home-brands .baltiya-home-brands__container {
	padding: 0 14px;
	background: transparent;
}

.baltiya-home-brands__header {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 38px;
}

.baltiya-home-brands__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.baltiya-home-brands .baltiya-home-brands__title {
	margin: 0;
	color: #272727;
	font-size: 36px;
	font-weight: 500;
	line-height: 36px;
}

.baltiya-home-brands__catalog-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	min-height: 42px;
	padding: 10px 24px;
	border-radius: 12px;
	background: #e5f3f2;
	color: #539d9b;
	font-size: 16px;
	line-height: 22px;
	transition: background-color .2s;
}

.baltiya-home-brands__catalog-link:hover {
	background: #d8ebe9;
	color: #437e7c;
}

.baltiya-home-brands .baltiya-home-brands__description {
	margin: 0;
	color: #777;
	font-size: 20px;
	line-height: 22px;
}

.baltiya-home-brands__marquee {
	--brands-card-width: 220px;
	--brands-card-height: 140px;
	--brands-gap: 12px;
	--brands-fade-width: 140px;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	overflow: hidden;
}

.baltiya-home-brands__marquee::before,
.baltiya-home-brands__marquee::after {
	position: absolute;
	top: 0;
	bottom: 0;
	z-index: 1;
	width: var(--brands-fade-width);
	pointer-events: none;
	content: '';
}

.baltiya-home-brands__marquee::before {
	left: 0;
	background: linear-gradient(90deg, #fff, rgb(255 255 255 / 0%));
}

.baltiya-home-brands__marquee::after {
	right: 0;
	background: linear-gradient(270deg, #fff, rgb(255 255 255 / 0%));
}

.baltiya-home-brands__row {
	overflow: hidden;
}

.baltiya-home-brands__track {
	position: relative;
	display: flex;
	width: max-content;
	animation: baltiya-brands-scroll calc(var(--brands-cycle-count) * 29s) linear infinite;
	will-change: transform;
}

.baltiya-home-brands__row--right .baltiya-home-brands__track {
	left: -31px;
	animation-direction: reverse;
}

.baltiya-home-brands__row--left .baltiya-home-brands__track {
	left: -140px;
}

.baltiya-home-brands__row:hover .baltiya-home-brands__track,
.baltiya-home-brands__row:focus-within .baltiya-home-brands__track {
	animation-play-state: paused;
}

.baltiya-home-brands__group {
	display: flex;
	flex-shrink: 0;
	gap: var(--brands-gap);
	padding-right: var(--brands-gap);
}

.baltiya-home-brands__card {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 var(--brands-card-width);
	width: var(--brands-card-width);
	height: var(--brands-card-height);
	padding: 10px;
	overflow: hidden;
	border-radius: 20px;
	background: #f4f4f4;
}

.baltiya-home-brands__logo {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	filter: none;
	opacity: 1;
	mix-blend-mode: multiply;
}

.baltiya-home-brands__card:focus-visible {
	outline: 2px solid #539d9b;
	outline-offset: -3px;
}

.baltiya-home-brands__catalog-link:focus-visible {
	outline: 2px solid #539d9b;
	outline-offset: 3px;
}

@keyframes baltiya-brands-scroll {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

@media (max-width: 767px) {
	.baltiya-home-brands {
		padding: 50px 0;
	}

	.baltiya-home-brands__heading {
		flex-wrap: wrap;
		gap: 18px;
	}

	.baltiya-home-brands .baltiya-home-brands__title {
		font-size: 28px;
		line-height: 32px;
	}

	.baltiya-home-brands .baltiya-home-brands__description {
		font-size: 16px;
		line-height: 22px;
	}

	.baltiya-home-brands__header {
		margin-bottom: 28px;
	}

	.baltiya-home-brands__marquee {
		--brands-card-width: 160px;
		--brands-card-height: 100px;
		--brands-gap: 10px;
		--brands-fade-width: 40px;
	}

	.baltiya-home-brands__card {
		border-radius: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.baltiya-home-brands__track {
		animation: none;
		transform: none;
	}

	.baltiya-home-brands__row {
		overflow-x: auto;
	}
}
