.testimonials {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: var(--space-36);
	padding: 80px;
	overflow: clip;
	background: #f5f5f5;

	@media (min-width: 810px) and (max-width: 1199.98px) {
		padding: 50px 40px;
	}

	@media (max-width: 809.98px) {
		gap: 35px;
		padding: 50px 10px;
	}
}

.testimonials__sprite {
	position: absolute;
	width: 0;
	height: 0;
}

.testimonials__top {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--space-10);
	width: 100%;
}

.testimonials__rating {
	display: flex;
	align-items: center;
	gap: 21px;
	width: min-content;
}

.testimonials__score {
	display: flex;
	flex-direction: column;
	gap: 5.98px;
	width: 130px;
}

.testimonials__score-row {
	display: flex;
	align-items: center;
	gap: 9.97px;
}

.testimonials__score-value {
	font-family: var(--font-questrial);
	font-size: 15.7px;
	line-height: var(--lh-120);
	letter-spacing: 1.36px;
	color: #e98644;
	text-transform: uppercase;
}

.testimonials__count {
	font-family: var(--font-questrial);
	font-size: 12.83px;
	line-height: var(--lh-120);
	letter-spacing: 1.12px;
	color: #1f202180;
}

.testimonials__heading {
	width: 100%;
	max-width: 800px;
	font-family: var(--font-questrial);
	font-size: var(--fs-40);
	font-weight: var(--fw-regular);
	line-height: var(--lh-120);
	letter-spacing: 0.02em;
	color: var(--color-olive);
	text-align: center;
}

.testimonials__intro {
	width: 100%;
	max-width: 800px;
	font-size: var(--fs-16);
	line-height: 25.2px;
	color: var(--color-olive-70);
	text-align: center;
}

.testimonials__carousel {
	position: relative;
	width: 100%;
	padding: var(--space-10);
	overflow: hidden;

	@media (max-width: 809.98px) {
		padding: 0;
	}
}

.testimonials__track {
	display: flex;
	align-items: flex-start;
	gap: var(--space-10);
	overflow-x: auto;
	overflow-y: hidden;
	list-style: none;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;

	&::-webkit-scrollbar {
		display: none;
	}

	@media (max-width: 809.98px) {
		gap: var(--space-8);
	}
}

.testimonial {
	position: relative;
	display: flex;
	flex: none;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: var(--space-10);
	width: min(320px, calc(100vw - 20px));
	padding: var(--space-30);
	overflow: clip;
	background: var(--color-white);
	border-radius: var(--radius-12);
	box-shadow: inset 0 0 0 1px var(--color-sand-60);
	scroll-snap-align: center;
	scroll-snap-stop: always;
}

.testimonial__sygnet {
	fill: #a8b5a2;
}

.testimonial__stars {
	display: flex;
	align-items: center;
	gap: 3px;
	fill: var(--color-sand);
}

.testimonial__quote {
	align-self: stretch;
	font-family: var(--font-cormorant);
	font-size: var(--fs-22);
	line-height: var(--lh-140);
	color: var(--color-olive);
}

.testimonial__author {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	width: 100%;
	min-height: 39px;
	font-family: var(--font-questrial);
	line-height: var(--lh-120);
}

.testimonial__name {
	font-size: var(--fs-15);
	color: rgb(40 41 33 / 0.5);
}

.testimonial__treatment {
	font-size: var(--fs-12-5);
	letter-spacing: 1.25px;
	color: rgb(40 41 33 / 0.38);
	text-transform: uppercase;
}

.testimonials__controls {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--space-20);
	pointer-events: none;

	@media (hover: none) {
		display: none;
	}
}

.testimonials__arrow {
	width: 40px;
	height: 40px;
	pointer-events: auto;
	cursor: pointer;
	background: rgb(0 0 0 / 0.2);
	border: 0;
	border-radius: 40px;
	transition:
		opacity 0.2s,
		transform 0.05s;

	&:active {
		transform: scale(0.9);
	}

	&.is-hidden {
		pointer-events: none;
		opacity: 0;
	}

	& svg {
		display: block;
		fill: none;
		stroke: var(--color-white);
		stroke-linecap: round;
		stroke-linejoin: round;
		stroke-width: 2;
	}
}
