.our-brands {
	padding: 40px 0;
	background: var(--sky-blue);
}
.our-brands__wrapper {
	width: 100%;
	max-width: 1312px;
	margin: 0 auto;
	padding: 0 16px;
}
.our-brands__heading {
	font-family: "Inter", sans-serif;
	font-weight: 700;
	font-size: 40px;
	line-height: 56px;
	text-align: center;
	color: var(--dark-blue);
}
.our-brands .underline {
	margin: 12px auto 0;
}
.our-brands .underline__highlighter {
	background: #2eafe9;
	left: 50%;
	transform: translateX(-50%);
}
.our-brands__subheading {
	max-width: 840px;
	margin: 24px auto 0;
	font-family: "Inter", sans-serif;
	font-weight: 400;
	font-size: 20px;
	line-height: 32px;
	text-align: center;
	color: var(--graphite-black);
}


.our-brands__tiles {
	margin-top: 40px;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 40px 32px;
}
.our-brands__tile {
	width: calc(100% / 2 - 16px);
	min-height: 480px;
}

.brands-tile {
	width: 100%;
	height: 100%;
}
.brands-tile__front {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
	border-radius: 40px;
}
.brands-tile__logo {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 304px;
	height: 128px;
	margin: 0 auto;
	background: var(--white);
	border-radius: 16px;
}
.brands-tile__back {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	padding: 40px 20px 40px 40px;
	background: var(--white);
	border-radius: 40px;
	position: absolute;
	top: 0;
	left: 0;
	backface-visibility: hidden;
	transition: transform 0.6s ease;
	transform: rotateY(180deg);
	overflow: hidden;
}
.brands-tile__content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 100%;
	height: 100%;
	padding: 0px 20px 0px 0px;
	box-sizing: border-box;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--dark-blue) #e0e0e0;
}
.brands-tile__head {
	font-family: "Inter", sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 26px;
	color: var(--graphite-black);
}
.brands-tile__links {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin-top: 16px;
}
.brands-tile__links-text {
	font-family: "Inter", sans-serif;
	font-weight: 400;
	font-size: 11px;
	line-height: 9px;
	color: var(--graphite-black);
}
.brands-tile__link {
	display: inline-block;
	margin-top: 16px;
	font-family: "Inter", sans-serif;
	font-weight: 400;
	font-size: 14px;
	line-height: 17px;
	color: var(--dark-blue);
	text-decoration: none;
	transition: all .3s;
}
.brands-tile__link + .brands-tile__link {
	margin-top: 16px;
}
.brands-tile__link:hover {
	color: var(--darkest-blue);
}
.brands-tile__note {
	margin-top: 16px;
	font-family: "Inter", sans-serif;
	font-weight: 400;
	font-size: 11px;
	line-height: 9px;
	color: var(--smoke-gray);
}
.brands-tile__action {
	margin-top: 32px;
}
.brands-tile__btn {
	padding: 17px 39px;
	font-size: 14px;
}
.brands-tile[data-brand-tile="alfare"] .brands-tile__front {
	background-image: url('../assets/images/our-brands/tile-alfare.jpg');
}
.brands-tile[data-brand-tile="modulen"] .brands-tile__front {
	background-image: url('../assets/images/our-brands/tile-modulen.jpg');
}
.brands-tile[data-brand-tile="resource"] .brands-tile__front {
	background-image: url('../assets/images/our-brands/tile-resource.jpg');
}
.brands-tile[data-brand-tile="optifast"] .brands-tile__front {
	background-image: url('../assets/images/our-brands/tile-optifast.jpg');
}
.brands-tile[data-brand-tile="resource-junior"] .brands-tile__front {
	background-image: url('../assets/images/our-brands/tile-resource-junior.jpg');
}
.brands-tile[data-brand-tile="isosource"] .brands-tile__front {
	background-image: url('../assets/images/our-brands/tile-isosource.jpg');
}
.brands-tile[data-brand-tile="pertamen"] .brands-tile__front {
	background-image: url('../assets/images/our-brands/tile-pertamen.jpg');
}
.brands-tile[data-brand-tile="novasource"] .brands-tile__front {
	background-image: url('../assets/images/our-brands/tile-novasource.jpg');
}
.brands-tile[data-brand-tile="pertamen-junior"] .brands-tile__front {
	background-image: url('../assets/images/our-brands/tile-pertamen-junior.jpg');
}

.brands-tile[data-brand-tile="resource"] .brands-tile__links {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 24px;
}
.brands-tile[data-brand-tile="resource"] .brands-tile__links-text {
	width: 100%;
}
.brands-tile[data-brand-tile="resource"] .brands-tile__link {
	width: calc(100% / 2 - 12px);
	margin: 0;
}

/* Анимация переворота */
.brands-tile {
	position: relative;
	-webkit-perspective: 1500px;
	perspective: 1500px;
	-webkit-transform-style: preserve-3d;
	transform-style: preserve-3d;
}
.brands-tile__front,
.brands-tile__back {
	position: absolute;
	top: 0;
	left: 0;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-transition: -webkit-transform 0.6s ease;
	transition: transform 0.6s ease;
	-webkit-transform-style: preserve-3d;
	transform-style: preserve-3d;
}
.brands-tile__front {
	-webkit-transform: rotateY(0deg);
	transform: rotateY(0deg);
}
.brands-tile__back {
	-webkit-transform: rotateY(180deg);
	transform: rotateY(180deg);
}
.brands-tile:hover .brands-tile__front {
	-webkit-transform: rotateY(-180deg);
	transform: rotateY(-180deg);
}
.brands-tile:hover .brands-tile__back {
	-webkit-transform: rotateY(0deg);
	transform: rotateY(0deg);
}
/* Фикс для Safari и старых браузеров */
@media not all and (min-resolution:.001dpcm) {
	@supports (-webkit-appearance:none) {
		.brands-tile__front,
		.brands-tile__back {
			-webkit-backface-visibility: hidden;
			backface-visibility: hidden;
		}
	}
}

/* Стилизация скроллбара для WebKit (Chrome, Safari, Edge) */
.brands-tile__content::-webkit-scrollbar {
	width: 6px;
}
.brands-tile__content::-webkit-scrollbar-track {
	background: #e0e0e0;
	border-radius: 10px;
	margin: 10px 0; /* Отступы сверху и снизу */
}
.brands-tile__content::-webkit-scrollbar-thumb {
	background: var(--dark-blue);
	border-radius: 10px;
}
.brands-tile__content::-webkit-scrollbar-thumb:hover {
	background: var(--darkest-blue);
}
/* Для Firefox */
.brands-tile__content {
	scrollbar-width: thin;
	scrollbar-color: var(--dark-blue) #e0e0e0;
}

.our-brands__references {
	margin-top: 48px;
}

.our-brands__note {
	margin-top: 40px;
	font-family: "Inter", sans-serif;
	font-weight: 400;
	font-size: 13px;
	line-height: 21px;
	color: #34778a;
}

@media (max-width: 1279px) {
	.brands-tile__back {
		padding: 24px 12px 24px 24px;
	}
	.brands-tile__content {
		padding: 0px 12px 0px 0px;
	}
}
@media (max-width: 1023px) {
	.our-brands__heading {
		font-size: 32px;
		line-height: 38px;
	}
	.our-brands__subheading {
		font-size: 16px;
		line-height: 26px;
	}

	.our-brands__tiles {
		gap: 16px;
		margin-top: 24px;
	}
	.our-brands__tile {
		min-height: 400px;
	}

	.brands-tile__front {
		border-radius: 24px;
	}
	.brands-tile__logo {
		width: 152px;
		height: 64px;
		padding: 12px;
		border-radius: 8px;
	}
	.brands-tile__img {
		width: 100%;
	}
	.brands-tile__head {
		font-size: 14px;
		line-height: 20px;
	}
	.brands-tile__action {
		margin-top: 16px;
	}
	.brands-tile__btn {
		padding: 13px 39px;
	}
	.brands-tile[data-brand-tile="resource"] .brands-tile__links {
		gap: 12px;
	}
	.our-brands__references {
		margin-top: 40px;
	}
}

@media (max-width: 768px) {
	.our-brands .underline {
		width: 240px;
	}
	.our-brands__heading {
		font-size: 24px;
		line-height: 29px;
	}
	.our-brands__subheading {
		font-size: 14px;
		line-height: 20px;
	}
	.our-brands__tile {
		width: 100%;
		max-width: 340px;
		height: auto;
		min-height: auto;
	}
	.brands-tile {
		display: flex;
		flex-direction: column;
		-webkit-perspective: none;
		perspective: none;
		height: 100%;
		border-radius: 24px;
		overflow: hidden;
	}
	.brands-tile__front,
	.brands-tile__back {
		position: relative;
		-webkit-transform: none !important;
		transform: none !important;
		-webkit-backface-visibility: visible;
		backface-visibility: visible;
		height: auto;
		transition: none;
		border-radius: 0;
	}
	.brands-tile__front {
		height: 144px;
	}
	.brands-tile__back {
		flex-grow: 1;
		overflow: visible;
		height: auto;
		min-height: auto;
		padding: 0;
	}
	.brands-tile__content {
		overflow-y: visible;
		height: auto;
		padding: 24px;
	}
	.brands-tile__links {
		margin-top: 24px;
	}
	.brands-tile[data-brand-tile="resource"] .brands-tile__links {
		flex-direction: column;
	}
	.brands-tile[data-brand-tile="resource"] .brands-tile__link {
		width: auto;
	}
	.our-brands__references {
		margin-top: 12px;
	}
}












