.container-wide {
	max-width: 1476px;
	width: 100%;
	margin: 0 auto;
	padding: 0 30px;
}

.brands-marquee {
	--brands-marquee-speed: 55s;
	position: relative;
	z-index: 2;
	overflow-x: clip;
	overflow-y: visible;
	padding: 100px 0 60px;
	background: #ffffff;
	font-family: 'Manrope', sans-serif;
}

.brands-marquee__title {
	position: relative;
	z-index: 2;
	margin: 0;
	color: #595757;
	font: 400 24px/32px "Manrope", sans-serif;
	text-align: center;
}

.brands-marquee__track-wrap {
	position: relative;
	z-index: 10;
	overflow: visible;
	width: 100%;
	padding: 10px 0 0;
	clip-path: inset(-140px 2px -80px 2px);
}

.brands-marquee__track-wrap::before,
.brands-marquee__track-wrap::after {
	position: absolute;
	top: 0;
	z-index: 50;
	width: 180px;
	height: 100%;
	content: '';
}

.brands-marquee__track-wrap::before {
	left: 0;
	background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.brands-marquee__track-wrap::after {
	right: 0;
	background: linear-gradient(270deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.brands-marquee__track-wrap.is-tooltip-active::before,
.brands-marquee__track-wrap.is-tooltip-active::after {
	z-index: 90;
}

.brands-marquee__track-clip {
	position: relative;
	overflow: visible;
	width: 100%;
	padding: 40px 0 40px;
}

.brands-marquee__track {
	position: relative;
	z-index: 7;
	display: flex;
	width: max-content;
	gap: 30px;
	animation: brands-marquee var(--brands-marquee-speed) linear infinite;
	will-change: transform;
}

.brands-marquee__track-wrap.is-tooltip-active .brands-marquee__track {
	z-index: 80;
}

.brands-marquee__track:hover {
	animation-play-state: paused;
}

.brands-marquee__track:hover .brands-marquee__card {
	opacity: .2;
}

.brands-marquee__item {
	position: relative;
	flex: 0 0 auto;
	width: 170px;
}

.brands-marquee__card {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 170px;
	height: 112px;
	border: 1px solid #e6e7ec;
	border-radius: 16px;
	background: #ffffff;
	box-shadow:
		0 0 0 5px #f8f8fa,
		0 0 0 6px #ececf1,
		0 8px 18px rgba(0, 0, 0, .035);
	transition: opacity .3s ease, border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.brands-marquee__card:hover {
	z-index: 20;
	opacity: 1 !important;
	border-color: #e0e1e7;
	box-shadow:
		0 0 0 5px #f8f8fa,
		0 0 0 6px #e6e7ec,
		0 10px 22px rgba(0, 0, 0, .055);
	transform: scale(1.04);
}

.brands-marquee__logo {
	display: block;
	width: 120px;
	height: 60px;
	object-fit: contain;
	user-select: none;
	pointer-events: none;
	-webkit-user-drag: none;
	user-drag: none;
	transform: translate3d(0, 0, 0);
	backface-visibility: hidden;
}

.brands-marquee__card {
	isolation: isolate;
	contain: paint;
}

.brands-marquee__tooltip-global {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 150;
	width: 250px;
	padding: 14px 16px 13px;
	border-radius: 8px;
	background: #1f1f22;
	color: #ffffff;
	text-align: left;
	opacity: 0;
	visibility: hidden;
	transform: translate3d(var(--tooltip-x, 0), var(--tooltip-y, 0), 0);
	pointer-events: none;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .2);
	transition:
		opacity .25s ease,
		visibility .25s ease;
}

.brands-marquee__tooltip-global.is-measuring {
	opacity: 0;
	visibility: hidden;
}

.brands-marquee__tooltip-global.is-visible {
	opacity: 1;
	visibility: visible;
}

.brands-marquee__tooltip-global::after {
	position: absolute;
	left: var(--tooltip-arrow-x, 50%);
	bottom: -7px;
	width: 14px;
	height: 14px;
	background: #1f1f22;
	transform: translateX(-50%) rotate(45deg);
	content: '';
}

.brands-marquee__tooltip-text {
	margin: 0 0 12px;
	color: #ffffff;
	font: 600 13px/18px "Manrope", sans-serif;
}

.brands-marquee__tooltip-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.brands-marquee__tooltip-company {
	color: rgba(255, 255, 255, .75);
	font: 500 12px/16px "Manrope", sans-serif;
}

.brands-marquee__tooltip-owner {
	color: rgba(255, 255, 255, .5);
	font: 400 12px/16px "Manrope", sans-serif;
	text-align: right;
}

@keyframes brands-marquee {
	from {
		transform: translate3d(0, 0, 0);
	}

	to {
		transform: translate3d(calc(-50% - 15px), 0, 0);
	}
}

@media (max-width: 992px) {
	.container-wide {
		padding: 0 20px;
	}

	.brands-marquee {
		padding: 40px 0 50px;
	}

	.brands-marquee__title {
		font: 400 20px/28px "Manrope", sans-serif;
	}

	.brands-marquee__track {
		gap: 22px;
		animation-duration: 28s;
		pointer-events: none;
	}

	.brands-marquee__track:hover {
		animation-play-state: running;
	}

	.brands-marquee__track:hover .brands-marquee__card {
		opacity: 1;
	}

	.brands-marquee__card {
		cursor: default;
	}

	.brands-marquee__item,
	.brands-marquee__card {
		width: 145px;
	}

	.brands-marquee__card {
		height: 84px;
		border-radius: 16px;
	}

	.brands-marquee__logo {
		max-width: 96px;
		max-height: 46px;
	}

	.brands-marquee__tooltip-global {
		width: 220px;
	}
}

@media (max-width: 575px) {
	.container-wide {
		padding: 0 15px;
	}

	.brands-marquee__title {
		font-size: 18px;
		line-height: 26px;
	}

	.brands-marquee__track-wrap::before,
	.brands-marquee__track-wrap::after {
		width: 70px;
	}

	.brands-marquee__tooltip-bottom {
		gap: 10px;
	}
}
