.brands {
	position: relative;
	width: 100%;
	padding: 134px 16px 0;
	background: #fff;
	color: #000;
}

.brands *,
.brands *::before,
.brands *::after {
	box-sizing: border-box;
}

.brands__inner {
	width: min(100%, 1408px);
	margin: 0 auto;
}

.brands__heading {
	display: flex;
	align-items: flex-end;
	padding-bottom: 13px;
	border-bottom: 1px solid #d9d9d9;
}

.brands__heading-label {
	font-size: 18px;
	line-height: 18px;
	letter-spacing: -0.05em;
	font-weight: 500;
	color: #000;
}

.brands__heading-number {
	margin-left: 4px;
	font-size: 10px;
	line-height: 18px;
	font-weight: 400;
	letter-spacing: -0.05em;
	vertical-align: top;
}

.brands__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
	padding-top: 12px;
}

.brands__card {
	margin: 0;
}

.brands__card[hidden] {
	display: none;
}

.brands__card-inner {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 134px;
	height: 100%;
	padding: 12px;
	border: 1.33px solid rgba(245, 245, 245, 0.33);
	border-radius: 8px;
	background: #000;
	transition:
		transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
		border-color 260ms ease,
		box-shadow 260ms ease;
}

.brands__card:hover .brands__card-inner {
	transform: translateY(-2px);
	border-color: rgba(245, 245, 245, 0.5);
	box-shadow: 0 18px 28px rgba(0, 0, 0, 0.16);
}

.brands__logo-wrap {
	display: flex;
	align-items: flex-start;
	min-height: 38px;
}

.brands__logo {
	display: block;
	max-width: min(100%, 220px);
	max-height: 38px;
	width: auto;
	height: auto;
	object-fit: contain;
	object-position: left center;
}

.brands__logo-fallback {
	display: block;
	max-width: 100%;
	font-size: 24px;
	line-height: 1;
	font-weight: 500;
	letter-spacing: -0.05em;
	color: #fff;
}

.brands__links {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}

.brands__link {
	color: #969696;
	font-size: 16px;
	line-height: 18px;
	font-weight: 500;
	letter-spacing: -0.05em;
	text-decoration: none;
	transition: color 180ms ease;
}

.brands__link:hover {
	color: #fff;
}

.brands__bottom {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 62px;
	padding: 10px 0 0;
}

.brands__more-wrap[hidden] {
	display: none;
}

.brands__more {
	appearance: none;
	border: 0;
	padding: 0;
	background: transparent;
	color: #000;
	font: inherit;
	font-size: 14px;
	line-height: 18px;
	font-weight: 500;
	letter-spacing: -0.05em;
	text-align: center;
	cursor: pointer;
	transition:
		transform 180ms ease,
		opacity 180ms ease;
}

.brands__more:hover {
	transform: translateY(-1px);
	opacity: 0.72;
}

@media (max-width: 1100px) {
	.brands__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

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

	.brands__list {
		grid-template-columns: minmax(0, 1fr);
	}

	.brands__card-inner {
		min-height: 128px;
	}

	.brands__logo {
		max-width: min(100%, 200px);
	}
}
