.customer-reviews-section {
	display: flex;
	flex-flow: column;
	gap: 16px;
	margin: 32px 16px 0;

	@include desktop {
		align-self: center;
		margin: 80px 0 0;
		width: calc(100% - 32px);
		gap: 32px;
		max-width: $width-desktop;
	}
}

.customer-reviews-section__head {
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	justify-content: space-between;
}

.customer-reviews-section__title {
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.03em;

	@include mobile {
		&--compact {
			max-width: 200px;
		}
	}

	@include desktop {
		font-size: 38px;

		&::before {
			content: attr(data-desktop-text);
		}

		i {
			display: none;
		}
	}
}

.customer-reviews-section__head__btn {
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	gap: 2px;

	@include desktop {
		order: 3;
		gap: 6px;
		height: 36px;
		padding: 0px 12px;
		border-radius: 16px;
		border: 1px solid $color-border;
		box-sizing: border-box;
	}
}

.customer-reviews-section__head__btn__label {
	font-weight: 500;
	font-size: 12px;
	line-height: 14px;

	@include desktop {
		font-size: 16px;
		line-height: 18px;

		&::before {
			content: attr(data-desktop-text);
		}

		i {
			display: none;
		}
	}
}

.customer-reviews-section__head__btn__icon {
	width: 20px;
	height: 20px;
	color: $color-green;

	@include desktop {
		width: 24px;
		height: 24px;
	}
}

.customer-reviews-section__gallery {
	--galley-counter: attr(data-counter);

	display: flex;
	flex-flow: row nowrap;
	gap: 8px;

	@include mobile {
		.customer-reviews-section__gallery-link:nth-child(5) {
			position: relative;

			&::before {
				content: var(--galley-counter);
				position: absolute;
				inset: 0;
				display: flex;
				align-items: center;
				justify-content: center;
				background-color: rgba(#000, 0.7);
				color: $color-white;
				font-weight: 700;
				font-size: 16px;
				letter-spacing: -0.03em;
				z-index: 1;
			}
		}
	}

	@include desktop {
		gap: 16px;

		.customer-reviews-section__gallery-link:nth-child(8) {
			position: relative;

			&::before {
				content: var(--galley-counter);
				position: absolute;
				inset: 0;
				display: flex;
				align-items: center;
				justify-content: center;
				background-color: rgba(#000, 0.7);
				color: $color-white;
				font-weight: 700;
				font-size: 28px;
				line-height: 100%;
				letter-spacing: -0.03em;
				z-index: 1;
			}
		}
	}
}

.customer-reviews-section__gallery-link {
	flex: 1;
	aspect-ratio: 2 / 2;
	border-radius: 10px;
	overflow: hidden;

	@include desktop {
		border-radius: 24px;
	}

	@include mobile {
		&:nth-child(n + 6) {
			display: none;
		}
	}
}

.customer-reviews-section__gallery-link__photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.customer-reviews-section__reviews-slider {
	position: relative;

	.swiper-pagination {
		position: unset !important;
		display: flex !important;
		flex-flow: row nowrap;
		align-items: center;
		justify-content: center;
		gap: 6px;
		margin-top: 16px;

		.swiper-pagination-bullet {
			width: 8px;
			height: 8px;
			opacity: 1;
			border-radius: 50%;
			background-color: #d7d7d7;
			margin: 0 !important;

			&-active {
				background-color: $color-green;
			}
		}

		@include desktop {
			display: none !important;
		}
	}

	.swiper-slider {
		overflow: hidden;
	}
}

.customer-reviews-section__review {
	display: flex;
	flex-flow: column;
	padding: 18px;
	border-radius: 28px;
	background-color: $color-surface;

	@include desktop {
		padding: 24px;
		min-height: 380px;
		border-radius: 32px;
	}
}

.customer-reviews-section__review__head {
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	gap: 14px;

	@include desktop {
		gap: 16px;
	}
}

.customer-reviews-section__review__head__avatar {
	display: flex;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background-color: $color-green;
	overflow: hidden;

	@include desktop {
		width: 64px;
		height: 64px;
	}

	span {
		margin: auto;
		font-weight: 700;
		font-size: 18px;
		letter-spacing: -0.03em;
		color: $color-white;

		@include desktop {
			font-size: 24px;
		}
	}

	img {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: center;
		pointer-events: none;
	}
}

.customer-reviews-section__review__head__main {
	display: flex;
	flex-flow: column;
	gap: 4px;

	@include desktop {
		flex: 1;
		flex-flow: row nowrap;
		align-items: flex-start;
		gap: 6px;
	}
}

.customer-reviews-section__review__head__client {
	display: flex;
	flex-flow: column;
	gap: 4px;

	@include desktop {
		flex: 1;
		gap: 6px;
	}

	&-name {
		font-size: 16px;
		font-weight: 700;
		letter-spacing: -0.03em;

		@include desktop {
			font-size: 20px;
		}
	}

	&-date {
		font-size: 14px;
		line-height: 16px;
		color: $color-gray-md;

		@include desktop {
			font-size: 16px;
			line-height: 18px;
		}
	}
}

.customer-reviews-section__review__text {
	margin-top: 10px;
	font-size: 14px;
	line-height: 150%;

	@include desktop {
		flex: 1;
		margin-top: 20px;
		font-size: 16px;
	}
}

.customer-reviews-section__review__social-label {
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	gap: 6px;
	align-self: flex-start;
	padding: 0 14px;
	margin-top: 20px;
	height: 32px;
	border-radius: 10px;
	background-color: $color-white;
	box-sizing: border-box;

	@include desktop {
		height: 36px;
		padding: 0 16px;
		border-radius: 12px;
	}

	svg {
		width: 24px;
		height: 24px;
	}

	span {
		font-size: 14px;
		font-weight: 500;

		@include desktop {
			font-size: 16px;
		}
	}
}
