/* Natige — brand stage: horizontal expand + horizontal SKU strip. */

.brands {
	--brand-blue: #3A78BA;
	--brand-blue-deep: #2A5C94;
	--brand-lime: #C6E260;
	--brand-ink: #243040;
	--brand-line: rgba(36, 48, 64, 0.12);
	--brand-ease: cubic-bezier(0.35, 0, 0.14, 1);
	padding: 64px 0;
	background: #ffffff;
	scroll-margin-top: 96px;
}

.brands .section-1400 {
	background: #ffffff;
	border-radius: 32px;
	padding: 40px 24px 24px;
	box-shadow: none;
}

.brands__head {
	max-width: 36em;
	margin: 0 auto 24px;
	text-align: center;
}

.brands__title {
	margin: 0;
	font-size: 36px;
	font-weight: 700;
	line-height: 1.12;
	color: var(--brand-blue);
}

.brands__stage {
	position: relative;
	overflow: hidden;
	width: 100%;
	background: #ffffff;
}

.brands__controls {
	display: none;
}

.brands__stage > .swiper-wrapper {
	display: flex;
	align-items: stretch;
}

.brands__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	box-sizing: border-box;
	overflow: hidden;
	width: 100%;
	height: 560px;
	padding: 16px 16px 20px;
	background: #ffffff;
}

.brands__panel + .brands__panel::before {
	content: "";
	position: absolute;
	top: 24px;
	bottom: 24px;
	left: 0;
	z-index: 2;
	width: 1px;
	background: var(--brand-line);
	pointer-events: none;
	transition: bottom 280ms var(--brand-ease);
}

@media (min-width: 992px) {
	.brands__stage > .swiper-wrapper {
		display: flex;
		transform: none !important;
	}

	.brands__stage > .swiper-wrapper > .brands__panel {
		flex: 1 1 0;
		width: auto !important;
		margin: 0 !important;
		min-width: 0;
		transition: flex-grow 320ms var(--brand-ease);
	}

	.brands__stage > .swiper-wrapper > .brands__panel.is-active,
	.brands__stage > .swiper-wrapper > .brands__panel:hover,
	.brands__stage > .swiper-wrapper > .brands__panel:focus-within {
		flex-grow: 1.55;
	}

	.brands__panel.is-active::before,
	.brands__panel:hover::before,
	.brands__panel:focus-within::before,
	.brands__panel.is-active + .brands__panel::before,
	.brands__panel:hover + .brands__panel::before,
	.brands__panel:focus-within + .brands__panel::before {
		bottom: 136px;
	}

	.brands__panel.is-active .brands__logo,
	.brands__panel:hover .brands__logo,
	.brands__panel:focus-within .brands__logo {
		height: 56px;
		margin-bottom: 8px;
	}

	.brands__panel.is-active .brands__logo img,
	.brands__panel:hover .brands__logo img,
	.brands__panel:focus-within .brands__logo img {
		height: 48px;
		max-width: 140px;
		max-height: 48px;
	}

	.brands__panel.is-active .brands__text,
	.brands__panel:hover .brands__text,
	.brands__panel:focus-within .brands__text {
		grid-template-rows: 1fr;
		margin: 0 0 12px;
		opacity: 1;
		transform: translateY(0);
	}

	.brands__panel.is-active .brands__text-clip::before,
	.brands__panel:hover .brands__text-clip::before,
	.brands__panel:focus-within .brands__text-clip::before {
		transform: scaleX(1);
	}

	.brands__panel.is-active .brands__hero,
	.brands__panel:hover .brands__hero,
	.brands__panel:focus-within .brands__hero {
		align-items: flex-start;
	}

	.brands__panel.is-active .brands__hero img,
	.brands__panel:hover .brands__hero img,
	.brands__panel:focus-within .brands__hero img {
		max-height: 220px;
	}

	.brands__panel.is-active .brands__mini,
	.brands__panel:hover .brands__mini,
	.brands__panel:focus-within .brands__mini {
		max-height: 112px;
		margin-top: 8px;
		opacity: 1;
		pointer-events: auto;
	}

	.brands__panel.is-active .brands__mini-track,
	.brands__panel:hover .brands__mini-track,
	.brands__panel:focus-within .brands__mini-track {
		animation-play-state: running;
	}
}

.brands__logo {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 104px;
	margin: 0 0 8px;
	flex: 0 0 auto;
	transition: height 280ms var(--brand-ease);
}

.brands__logo img {
	display: block;
	width: auto;
	height: 96px;
	max-width: 220px;
	max-height: 96px;
	object-fit: contain;
	transition: height 280ms var(--brand-ease), max-height 280ms var(--brand-ease), max-width 280ms var(--brand-ease);
}

.brands__text {
	flex: 0 0 auto;
	display: grid;
	grid-template-rows: 0fr;
	width: 100%;
	max-width: 20em;
	margin: 0;
	padding: 0 16px;
	opacity: 0;
	text-align: center;
	transform: translateY(8px);
	transition:
		grid-template-rows 280ms var(--brand-ease),
		opacity 220ms var(--brand-ease),
		margin 280ms var(--brand-ease),
		transform 280ms var(--brand-ease);
}

.brands__text-clip {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 0;
	overflow: hidden;
}

.brands__text-clip::before {
	content: "";
	display: block;
	width: 32px;
	height: 2px;
	margin: 0 0 12px;
	background: var(--brand-lime);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 320ms var(--brand-ease);
}

.brands__text-lead {
	display: block;
	margin: 0 0 8px;
	font-family: var(--font-display);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.3;
	color: var(--brand-blue-deep);
}

.brands__text-body {
	display: block;
	max-width: 18em;
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--brand-ink);
	text-wrap: balance;
}

.brands__hero {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 auto;
	width: 100%;
	min-height: 0;
}

.brands__hero img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 300px;
	object-fit: contain;
	filter: drop-shadow(0 16px 24px rgba(36, 48, 64, 0.16));
	transition: max-height 280ms var(--brand-ease);
}

.brands__mini {
	flex: 0 0 auto;
	width: 100%;
	max-height: 0;
	margin: 0;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
	background-color: #ffffff;
	transform: translateZ(0);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
	transition:
		max-height 280ms var(--brand-ease),
		opacity 220ms var(--brand-ease),
		margin 280ms var(--brand-ease);
}

.brands__mini-track {
	display: flex;
	width: max-content;
	gap: 8px;
	background-color: #ffffff;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	animation: brands-mini-scroll 24s linear infinite;
	animation-play-state: paused;
}

.brands__stage.is-swiping .brands__mini-track {
	animation-play-state: paused;
}

.brands__mini-track > .brands__sku {
	flex: 0 0 96px;
	width: 96px;
}

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

.brands__sku {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	background-color: #ffffff;
	text-decoration: none;
	color: inherit;
}

.brands__sku img {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: contain;
	background-color: transparent;
}

.brands__sku span {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	max-width: 7.5em;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
	color: var(--brand-ink);
}

.brands__sku:hover span,
.brands__sku:focus-visible span {
	color: var(--brand-blue);
}

.brands__logo:focus-visible,
.brands__hero:focus-visible,
.brands__sku:focus-visible {
	outline: 2px solid #FCB43C;
	outline-offset: 3px;
	border-radius: 8px;
}

@media (max-width: 991.98px) {
	.brands {
		padding: 48px 0;
	}
	.brands .section-1400 {
		padding: 24px 16px 20px;
		border-radius: 24px;
		box-shadow: none;
	}
	.brands__title {
		font-size: 28px;
	}
	.brands__stage {
		overflow: hidden;
		padding-bottom: 8px;
	}
	.brands__panel {
		height: auto;
		min-height: 480px;
		border: 1px solid var(--brand-line);
		border-radius: 24px;
	}
	.brands__controls {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 16px;
		margin-top: 16px;
	}
	.brands__arrow {
		position: static;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex: 0 0 auto;
		width: 44px;
		height: 44px;
		margin: 0;
		padding: 0;
		border: 1px solid var(--brand-line);
		border-radius: 999px;
		background: #ffffff;
		background-image: none;
		color: var(--brand-blue);
		font-size: 26px;
		line-height: 1;
		cursor: pointer;
	}
	.brands__arrow::after {
		content: none;
	}
	.brands__arrow i {
		line-height: 1;
	}
	.brands__arrow:focus-visible {
		outline: 2px solid #FCB43C;
		outline-offset: 3px;
	}
	.brands__arrow:disabled,
	.brands__arrow.swiper-button-disabled {
		opacity: 0.35;
		cursor: default;
	}
	.brands__dots {
		position: static;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		width: auto;
		left: auto;
		bottom: auto;
	}
	.brands__dots .swiper-pagination-bullet {
		width: 8px;
		height: 8px;
		margin: 0;
		opacity: 1;
		border-radius: 999px;
		background: rgba(58, 120, 186, 0.28);
		transition: width 180ms var(--brand-ease), background-color 180ms var(--brand-ease);
	}
	.brands__dots .swiper-pagination-bullet-active {
		width: 24px;
		background: var(--brand-lime);
	}
	.brands__mini,
	.brands__mini-track,
	.brands__sku {
		touch-action: pan-y;
	}
	.brands__panel + .brands__panel::before {
		display: none;
	}
	.brands__text,
	.brands__mini {
		max-height: none;
		opacity: 1;
		transform: none;
		pointer-events: auto;
		overflow: visible;
	}
	.brands__text {
		grid-template-rows: 1fr;
		margin: 0 0 12px;
	}
	.brands__text-clip::before {
		transform: scaleX(1);
	}
	.brands__mini {
		margin-top: 8px;
		max-height: 112px;
		overflow: hidden;
	}
	.brands__mini-track {
		animation-play-state: running;
	}
	.brands__hero {
		min-height: 200px;
	}
	.brands__hero img {
		max-height: 240px;
	}
	.brands__logo {
		height: 72px;
	}
	.brands__logo img {
		height: 64px;
		max-height: 64px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.brands__logo,
	.brands__logo img,
	.brands__text,
	.brands__text-clip::before,
	.brands__mini,
	.brands__hero img,
	.brands__stage > .swiper-wrapper > .brands__panel {
		transition: none;
	}
	.brands__dots .swiper-pagination-bullet,
	.brands__arrow {
		transition: none;
	}
	.brands__mini-track {
		animation: none;
	}
}
