/**
 * Слайдер сертификатов врача — [legstom_doctor_certificates]
 */

.legstom-certs {
	background: #f0f6fb;
	border-radius: 16px;
	padding: 32px 0 24px;
}

.legstom-certs__viewport {
	overflow: hidden;
}

.legstom-certs__track {
	display: flex;
	align-items: center;
	gap: 12px;
	transition: transform 0.4s ease;
	padding: 20px 0;
}

.legstom-certs__slide {
	flex-shrink: 0;
	width: 260px;
	border-radius: 10px;
	transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease;
	transform: scale(0.8);
	opacity: 0.5;
}

.legstom-certs__slide img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 10px;
	pointer-events: none;
}

.legstom-certs__slide.is-active {
	transform: scale(1.15);
	opacity: 1;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
	z-index: 2;
}

.legstom-certs__slide.is-near {
	transform: scale(0.95);
	opacity: 0.75;
	z-index: 1;
}

.legstom-certs__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 20px;
}

.legstom-certs__btn {
	width: 44px;
	height: 44px;
	border-radius: 8px;
	border: none;
	background: #1a73e8;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s, transform 0.2s;
	padding: 0;
}

.legstom-certs__btn:hover {
	background: #1557b0;
	transform: scale(1.08);
}

.legstom-certs__counter {
	font-size: 16px;
	font-weight: 600;
	color: #333;
	min-width: 60px;
	text-align: center;
}

@media (max-width: 768px) {
	.legstom-certs__slide {
		width: 220px;
	}

	.legstom-certs__slide.is-active {
		transform: scale(1.1);
	}

	.legstom-certs {
		padding: 20px 0 16px;
	}
}

@media (max-width: 480px) {
	.legstom-certs__slide {
		width: 200px;
	}
}
