.eme-testimonials {
	--eme-testimonials-columns: 3;
	--eme-testimonials-gap: 20px;
	--eme-testimonials-speed: 450ms;
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

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

.eme-testimonials__stage {
	position: relative;
}

.eme-testimonials__viewport {
	width: 100%;
	overflow: hidden;
	touch-action: pan-y;
}

.eme-testimonials__track {
	display: flex;
	align-items: stretch;
	gap: var(--eme-testimonials-gap);
	transition: transform var(--eme-testimonials-speed) ease;
	will-change: transform;
}

.eme-testimonial-card {
	display: flex;
	flex: 0 0 calc((100% - (var(--eme-testimonials-gap) * (var(--eme-testimonials-columns) - 1))) / var(--eme-testimonials-columns));
	flex-direction: column;
	min-width: 0;
	min-height: 390px;
	padding: 34px 34px 30px;
	background: #fff;
	border: 1px solid #dfe5e2;
	border-radius: 20px;
	overflow: hidden;
}

.eme-testimonial-card__stars {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-bottom: 24px;
	color: #d9901a;
}

.eme-testimonial-card__star {
	display: block;
	width: 23px;
	height: 23px;
	flex: 0 0 auto;
}

.eme-testimonial-card__review {
	margin: 0;
	padding: 0;
	color: #344951;
	font-family: "DM Sans", sans-serif;
	font-size: 22px;
	font-style: normal;
	font-weight: 400;
	line-height: 1.45;
}

.eme-testimonial-card__author {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: auto;
	padding-top: 22px;
	border-top: 1px solid #e3e8e6;
}

.eme-testimonial-card__image-wrap {
	display: block;
	width: 70px;
	height: 70px;
	flex: 0 0 auto;
	border-radius: 50%;
	overflow: hidden;
	background: #eef1ef;
}

.eme-testimonial-card__image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
	padding: 5px;
}

.eme-testimonial-card__identity {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 4px;
}

.eme-testimonial-card__name,
.eme-testimonial-card__location {
	display: block;
}

.eme-testimonial-card__name {
	color: #082f41;
	font-family: "DM Sans", sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
}

.eme-testimonial-card__location {
	color: #718087;
	font-family: "DM Sans", sans-serif;
	font-size: 15px;
	line-height: 1.35;
}

.eme-testimonials__arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	padding: 0;
	transform: translateY(-50%);
	color: #176b6a;
	background: #e7f0ee;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: transform .2s ease, opacity .2s ease;
}

.eme-testimonials__arrow:hover,
.eme-testimonials__arrow:focus-visible {
	transform: translateY(-50%) scale(1.06);
}

.eme-testimonials__arrow:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.eme-testimonials__arrow:disabled {
	opacity: .35;
	cursor: default;
}

.eme-testimonials__arrow svg {
	display: block;
	width: 42%;
	height: 42%;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.eme-testimonials__arrow--prev {
	left: -27px;
}

.eme-testimonials__arrow--next {
	right: -27px;
}

.eme-testimonials__dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 12px;
	margin-top: 28px;
}

.eme-testimonials__dot {
	display: block;
	width: 10px;
	height: 10px;
	padding: 0;
	background: #cad6d3;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: width .2s ease, background-color .2s ease;
}

.eme-testimonials__dot.is-active {
	width: 38px;
	background: #208a83;
}

@media (max-width: 767px) {
	.eme-testimonials {
		--eme-testimonials-columns: 1;
		--eme-testimonials-gap: 14px;
		padding-inline: 6px;
	}

	.eme-testimonial-card {
		min-height: 340px;
		padding: 26px 24px 24px;
	}

	.eme-testimonial-card__review {
		font-size: 19px;
	}

	.eme-testimonials__arrow {
		width: 44px;
		height: 44px;
	}

	.eme-testimonials__arrow--prev {
		left: -8px;
	}

	.eme-testimonials__arrow--next {
		right: -8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.eme-testimonials__track,
	.eme-testimonials__arrow,
	.eme-testimonials__dot {
		transition: none;
	}
}
