@import "./cosmetology/reviews.css";

.home-review {
	padding: 36px 0 60px;
	overflow: hidden;
}

.home-review__cols {
	display: grid;
	gap: 35px;
}

.home-review__block-title {
	font-family: "Magistralc";
	font-size: 16px;
	font-weight: 500;
	line-height: 19.2px;
	margin: 0 0 20px 0;
	color: #384153;
}

.home-review__title {
	font-family: "Magistralc";
	font-size: 25px;
	font-weight: 900;
	line-height: 30px;
	color: #384153;
	margin: 0 0 25px 0;
	max-width: 240px;
}

.total-rating {
	width: max-content;
	position: relative;
}

.total-rating__block {
	display: flex;
	align-items: center;
	gap: 8px;
	overflow: hidden;
}

.total-rating__block > div {
	min-width: 24px;
	min-height: 24px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center center;
}

.total-rating__empty > div {
	background-image: url("../images/review/star-empty.svg");
}

.total-rating__full > div {
	background-image: url("../images/review/star-full.svg");
}

.total-rating__full {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
}

.home-review__summary {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.home-review__summary-row {
	display: flex;
	align-items: flex-end;
	gap: 14px;
}

.home-review__rating {
	font-family: "Magistralc";
	font-size: 50px;
	font-weight: 700;
	line-height: 1;
	color: #0A8DBD;
}

.home-review__total-reviews {
	font-family: "Magistralc";
	font-size: 16px;
	font-weight: 500;
	line-height: 19.2px;
	color: #0A8DBD;
	margin-bottom: 3px;
}

.home-review__btn {
	height: 46px;
	display: inline-flex;
	align-items: center;
	padding: 0 20px;
	border: 1px solid #3BADFC;
	font-family: "Magistralc";
	font-size: 13px;
	font-weight: 500;
	line-height: 16px;
	text-align: center;
	font-style: normal;
	color: #38415380;
	gap: 10px;
	background: #FFF;
}

.home-review__btn > img {
	display: block;
	width: 25px;
	height: 25px;
}

.home-review__btnContainer {
	display: flex;
	justify-content: center;
	margin-top: 35px;
}

.show-fromlaptop {
	display: none;
}

.reviews-swiper {
	width: 100%;
	overflow: hidden;
	padding-top: 20px;
}

.home-review__right-col {
	width: 100%;
	position: relative;
}

.home-review .reviews-list__content {
	padding: 39px 19px 34px 22px;
	background-color: #fff;
}

.home-review .reviews-list {
	max-width: calc(100vw - 30px);
}

.home-review__right-col .total-rating {
	position: absolute;
	top: -12px;
}

.home-review .swiper-pagination {
	position: initial;
}

.reviews-swiper__controls {
	display: flex;
	flex-direction: column;
	gap: 60px;
	position: absolute;
	top: 80px;
	right: 0;
	z-index: 1;
}

.home-review .reviews-swiper__controls > div {
	width: 14px;
	height: 7px;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: contain;
	transform: rotate(0);
	cursor: pointer;
}

.review-swiper-prev {
	background-image: url('../images/review/control-prev.svg');
}

.review-swiper-next {
	background-image: url('../images/review/control-next.svg');
}

@media (min-width: 768px) {
	.home-review {
		padding: 75px 0 90px;
	}

	.home-review__left-col {
		text-align: center;
	}

	.home-review__block-title {
		font-size: 18px;
		margin-bottom: 14px;
	}

	.home-review__title {
		max-width: 100%;
		font-size: 39px;
	}

	.home-review__summary {
		flex-direction: row;
		justify-content: center;
		align-items: center;
	}

	.home-review__btn {
		height: 60px;
		font-size: 16px;
		padding: 0 26px;
	}

	.home-review__btn > img {
		width: 32px;
		height: 32px;
	}

	.home-review__btnContainer {
		margin-top: 45px;
	}

}

@media (min-width: 1250px) {

	.hide-fromlaptop {
		display: none;
	}

	.home-review {
		padding: 94px 0 80px;
	}

	.home-review__cols {
		display: grid;
		grid-template-columns: 1fr 590px;
		gap: 80px;
	}

	.home-review__left-col {
		text-align: left;
	}

	.home-review__summary {
		flex-direction: column;
		justify-content: flex-start;
		align-items: flex-start;
	}

	.show-fromlaptop {
		display: flex;
		justify-content: flex-start;
		margin-top: 25px;
	}

	.home-review .reviews-list {
		max-width: 100%;
		margin-bottom: 30px;
	}

	.home-review .reviews-list__content {
		box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
	}

	.home-review .reviews-list__content {
		padding: 40px 30px 30px 30px;
	}

	.home-review .reviews-swiper__controls > div {
		width: 20px;
		height: 20px;
		background-size: 14px;
	}
	

}