#reviews {
	padding: 0;
}

#item-reviews.owl-carousel .owl-prev:hover,
#item-reviews.owl-carousel .owl-next:hover {
	background: #003896;
	color: #FFF !important;
	opacity: 1;
}

#item-reviews.owl-carousel .owl-next,
#item-reviews.owl-carousel .owl-prev {
	width: 40px;
	height: 40px;
	line-height: 40px !important;
	border-radius: 50%;
	font-size: 20px !important;
	color: #003896 !important;
	border: 1px solid #D2DBE1; !important;
	text-align: center;
	position: absolute;
	bottom: -32px;
	transition: all 0.3s ease;
}

#item-reviews.owl-carousel .owl-prev {
	right: 65px; 
	text-indent: inherit;
	background: #fff;
}

#item-reviews.owl-carousel .owl-next {
	right: 10px;
	text-indent: inherit;
	background: #fff;
}

/**********************************************/
.owl-carousel .owl-stage {
	display: flex;
}

/*******************************/
.our-testimonials {
	/*padding: 35px 0 0 0;*/
}

.our-testimonials .owl-carousel.owl-drag .owl-item {
	padding-bottom: 45px;
}

.reviews-card {
	background: #fff;
	padding: 30px;
	border-radius: 10px;
	text-align: left;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	min-height: 270px;
	height: auto;
	font-size: 14px;
	position: relative;
	top: 20px;
	margin: 10px;
	transition: all 0.3s ease;
	cursor: pointer;
}

.reviews-card .info {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	position: relative;
	margin-top: 15px;
	margin-bottom: 15px;
	overflow: hidden;
	font-style: italic;
}

.reviews-card .review-text-preview {
	max-height: 147px; 
	overflow: hidden;
	position: relative;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	text-overflow: ellipsis;
}

.reviews-card .fade-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 14px;
	pointer-events: none;
	text-align: center;
}

.reviews-card .fade-overlay.hidden {
	display: none !important;
}

.reviews-card .person-image {
	width: 87px !important;
	border-radius: 50%;
	object-fit: cover;
	height: 87px;
}

.reviews-card .stat-name {
	color: #767E86;
	font-size: 20px;
}

.reviews-card .person-name {
	font-weight: 400;
	margin: 0;
	font-size: 20px;
	color: #000;
}

.reviews-card .person-title {
	color: #767E86;
}

.reviews-card p {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
}

.reviews-card .bottom-content {
	display: flex;
	flex-direction: column;
	margin-top: 10px;
	margin-left: 0;
}

button, 
button:active, 
button:focus {
	outline: none !important;
}

/*********************************/
/* Модальное окно */
.review-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 99999;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.review-modal.active {
	display: block;
	opacity: 1;
}

.review-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(3px);
}

.review-modal-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	border-radius: 15px;
	width: 90%;
	max-width: 700px;
	max-height: 85vh;
	overflow: hidden;
	box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
	animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
	from {
		transform: translate(-50%, -60%);
		opacity: 0;
	}
	to {
		transform: translate(-50%, -50%);
		opacity: 1;
	}
}

.review-modal-close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 40px;
	height: 40px;
	border: none;
	background: rgba(0, 0, 0, 0.1);
	color: #333;
	font-size: 28px;
	line-height: 1;
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s ease;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
}

.review-modal-close:hover {
	background: rgba(0, 0, 0, 0.2);
	transform: rotate(90deg);
}

.review-modal-body {
	padding: 30px;
	max-height: 85vh;
	overflow-y: auto;
}

.review-modal-header {
	display: flex;
	align-items: center;
	margin-bottom: 30px;
	gap: 20px;
}

.modal-image-container {
	flex-shrink: 0;
}

.modal-person-image {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	object-fit: cover;
}

.modal-person-info {
	flex: 1;
}

.modal-person-name {
	font-size: 24px;
	color: #000;
	margin: 0 0 8px 0;
	font-family: "Lato", sans-serif;
}

.modal-stat-name {
	font-size: 18px;
	color: #767E86;
}

.modal-review-text {
	font-size: 15px;
	line-height: 1.7;
	color: #333;
	font-style: italic;
}

.modal-review-text p {
	margin-bottom: 15px;
}

.modal-review-text p:last-child {
	margin-bottom: 0;
}

/* Стили для скроллбара в модальном окне */
.review-modal-body::-webkit-scrollbar {
	width: 8px;
}

.review-modal-body::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 10px;
}

.review-modal-body::-webkit-scrollbar-thumb {
	background: #888;
	border-radius: 10px;
}

.review-modal-body::-webkit-scrollbar-thumb:hover {
	background: #555;
}

/*********************************/
@media (max-width: 767px) {
	.reviews-card .review-text-preview{
		max-height: 147px;
	}
	.reviews-card .stat-name {
		font-size: 14px;
	}
	
	.reviews-card {
		min-height: 260px;
		padding: 25px;
	}
	
	.reviews-card .info {
		margin-top: 15px;
		margin-bottom: 10px;
	}
	
	.reviews-card .person-image {
		max-width: fit-content;
		/*width: 70px !important;*/
		height: 70px;
	}
	
	.our-testimonials {
		padding: 5px 0 0 0;
	}
	
	#item-reviews .owl-item {
		height: 0;
	}
	
	#item-reviews .owl-item.active {
		height: auto;
	}
	
	#item-reviews.owl-carousel .owl-next, 
	#item-reviews.owl-carousel .owl-prev {
		width: 40px;
		height: 40px;
		bottom: -33px;
		top: auto;
	}
	#item-reviews.owl-carousel .owl-prev{
		right: 55px;
	}
	#reviews .title-h2 h3 {
		font-size: 23px;
		line-height: 22px;
	}
	
	.reviews-card .person-name {
		font-size: 18px;
		line-height: 1;
	}
	
	/* Модальное окно на мобильных */
	.review-modal-content {
		width: 95%;
		max-height: 90vh;
		border-radius: 10px;
	}
	
	.review-modal-body {
		padding: 40px 25px 30px;
	}
	
	.review-modal-header {
		flex-direction: column;
		align-items: flex-start;
		margin-bottom: 25px;
	}
	
	.modal-person-image {
		width: 80px;
		height: 80px;
	}
	
	.modal-person-name {
		font-size: 20px;
	}
	
	.modal-stat-name {
		font-size: 16px;
	}
	
	.modal-review-text {
		font-size: 14px;
	}
	
	.review-modal-close {
		top: 15px;
		right: 15px;
		width: 35px;
		height: 35px;
		font-size: 24px;
	}

}