/* Partners — «Шарикон» */

.partners-section {
	padding-block: 40px 48px;
	background: #FFFFFF;
}

.partners-slider {
	position: relative;
	overflow: hidden;
}

.partners-track {
	display: flex;
	gap: 16px;
	will-change: transform;
	padding: 16px 1px;
	transition: transform .6s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.partners-slider--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 160px;
	background: var(--toj-bg-light);
	border: 1px dashed var(--toj-border);
	border-radius: 14px;
}

.partner-card {
	flex: 0 0 calc((100% - 16px * 3) / 4);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: stretch;
	background: #FFFFFF;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(31, 39, 51, 0.08);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
	min-width: 0;
	box-sizing: border-box;
}

.partner-card:hover {
	box-shadow: 0 8px 28px rgba(31, 39, 51, 0.12);
	transform: translateY(-2px);
}

.partner-card__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	min-height: 180px;
	height: 180px;
	background: #FFFFFF;
	flex: 1 1 auto;
}

.partner-card__img {
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
	display: block;
}

.partner-card__img--placeholder {
	opacity: 0.45;
	width: 60%;
	height: auto;
	max-height: 80px;
}

.partner-card__name {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0 12px 14px;
	padding: 10px 12px;
	background: #F3F5F7;
	border-radius: 10px;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 14px;
	line-height: 1.35;
	text-align: center;
	color: var(--toj-text-muted);
	overflow: hidden;
	min-height: 72px;
	flex: 0 0 auto;
}

@media (max-width: 1100px) {
	.partner-card {
		flex: 0 0 calc((100% - 16px * 2) / 3);
	}

	.partner-card__logo {
		min-height: 160px;
		height: 160px;
	}
}

@media (max-width: 800px) {
	.partner-card {
		flex: 0 0 calc((100% - 12px) / 2);
	}

	.partners-track {
		gap: 12px;
	}

	.partner-card__logo {
		min-height: 150px;
		height: 150px;
		padding: 12px;
	}
}

@media (max-width: 480px) {
	.partners-section {
		padding-block: 28px 32px;
	}

	.partner-card {
		flex: 0 0 78%;
	}

	.partner-card__logo {
		min-height: 140px;
		height: 140px;
	}

	.partner-card__name {
		font-size: 12px;
		padding: 8px 10px;
	}
}