/* Блок «Отзывы наших клиентов» — block-reviews.php, подключается в page-home.php */

.reviews__wrap {
	padding: 60px 0 60px 0;
	overflow: hidden;
}
.reviews__title {
	text-align: center;
	margin-bottom: 30px;
}

/* строка рейтинга + стрелки */
.reviews__top {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	margin-bottom: 40px;
}
.reviews__summary {
	grid-column: 2;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	column-gap: 12px;
	row-gap: 6px;
}
.reviews__summary-brand {
	font-family: 'Onest-Medium', sans-serif;
	font-weight: 500;
	font-size: 22px;
	line-height: 28px;
	letter-spacing: -0.02em;
}
.reviews__summary-count {
	color: #9A9A9A;
	margin-left: 12px;
}
.reviews__slidercontrol {
	grid-column: 3;
	display: flex;
	justify-content: flex-end;
}

/* звёзды */
.block-reviewstars {
	position: relative;
	display: inline-flex;
	flex-shrink: 0;
}
.block-reviewstars__base,
.block-reviewstars__fill {
	display: flex;
	gap: 3px;
}
.block-reviewstars__fill {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	white-space: nowrap;
}
.block-reviewstars svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}
.block-reviewstars__base svg path {
	fill: #CFCFCF;
}
.block-reviewstars__fill svg path {
	fill: #0077FF;
}
.block-reviewstars_total svg {
	width: 24px;
	height: 24px;
}

/* слайдер */
.reviews__slider {
	overflow: hidden;
}
.reviews__slider .swiper-wrapper {
	display: flex;
}
.reviews__slide {
	width: calc((100% - 20px) / 3);
	margin-right: 10px;
	flex-shrink: 0;
	height: auto;
	display: flex;
}
.reviews__slide:last-child {
	margin-right: 0;
}
.reviews__slider-scrollbar {
	display: none;
	margin-top: 30px;
}

/* карточка */
.block-review {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 20px;
	border: 1px solid #D9D9D9;
	border-radius: 16px;
	background-color: #FCFCFC;
}
.block-review__head {
	display: flex;
	align-items: center;
	gap: 20px;
}
.block-review__avatar {
	width: 48px;
	height: 48px;
	border-radius: 100%;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Onest-Medium', sans-serif;
	font-weight: 500;
	font-size: 22px;
	line-height: 1;
	color: #FFFFFF;
	user-select: none;
}
.block-review__author {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

/* кнопка */
.reviews__btn {
	margin-top: 40px;
	display: flex;
	justify-content: center;
}

@media (max-width: 991px) {
	.reviews__wrap {
		padding: 50px 0 50px 0;
	}
	.reviews__top {
		display: flex;
		justify-content: center;
	}
	.reviews__slidercontrol {
		display: none;
	}
	.reviews__slide {
		width: calc((100% - 10px) / 2.1);
	}
	.reviews__slider-scrollbar {
		display: block;
	}
}

@media (max-width: 480px) {
	.reviews__title {
		margin-bottom: 20px;
	}
	.reviews__summary-brand {
		font-size: 20px;
	}
	.reviews__summary-count {
		width: 100%;
		margin-left: 0;
		text-align: center;
	}
	.reviews__slide {
		width: 85%;
	}
	.reviews__btn {
		margin-top: 30px;
	}
	.reviews__btn .btn-blue-back {
		max-width: 100%;
	}
}
