/*
 * 07-reviews.css — «Отзывы клиентов» [milfey_reviews]: плашка рейтинга Яндекса и карточки отзывов.
 * Лента и стрелки — общие из 06-cards.css (.mld-rail).
 * Порядок подключения файлов важен: см. MLD_Plugin::STYLES.
 */

.mld-reviews .mld-rail__head { flex-wrap: wrap; }
.mld-reviews .mld-rail__nav { margin-left: 0; }
.mld-reviews .mld-rail__track { --mld-per: 3; }

/* Плашка рейтинга: «Я», 4,6, звёзды, число отзывов. Ссылка на все отзывы в Яндексе. */
.mld .mld-rating {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin-left: auto;
	padding: 10px 22px 10px 10px;
	border: 1px solid var(--mld-line);
	border-radius: 999px;
	background: var(--mld-grey);
	color: var(--mld-heading);
	text-decoration: none;
	transition: border-color .3s, transform .3s, box-shadow .3s;
}
a.mld-rating:hover { border-color: var(--mld-dark); transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(33, 32, 30, .45); }
.mld-rating__logo {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fc3f1d;
	color: #fff;
	font: 600 20px/1 var(--mld-font);
}
.mld-rating__num {
	font-family: var(--mld-head-font);
	font-size: 32px;
	line-height: 1;
	font-weight: var(--mld-head-weight);
}
.mld-rating__meta { display: flex; flex-direction: column; gap: 3px; }
.mld-rating__count { font-size: 13px; line-height: 1.2; color: var(--mld-muted); }

/* Звёзды: пять символов, закрашена доля --mld-stars */
.mld-stars {
	display: inline-block;
	font-size: 18px;
	line-height: 1;
	letter-spacing: 2px;
	background: linear-gradient(90deg, #f6b51e var(--mld-stars, 100%), color-mix(in srgb, var(--mld-muted) 30%, transparent) 0);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.mld-stars--sm { font-size: 15px; letter-spacing: 1px; }

/* Карточка отзыва */
.mld-review {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-height: 100%;
	padding: 26px;
	border: 1px solid var(--mld-line);
	border-radius: 28px;
	background: var(--mld-grey);
	transition: border-color .35s, transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s;
}
.mld-review__head { display: flex; align-items: center; gap: 12px; }
.mld-review__avatar {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--mld-warm);
	color: var(--mld-heading);
	font-size: 18px;
	font-weight: 500;
}
.mld-review__who { display: flex; flex-direction: column; min-width: 0; }
.mld-review__name {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: 17px;
	line-height: 1.25;
	color: var(--mld-heading);
}
.mld-review__date { font-size: 13px; color: var(--mld-muted); }
.mld-review__text {
	display: -webkit-box;
	-webkit-line-clamp: 7;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 15px;
	line-height: 1.5;
	color: var(--mld-text);
}
.mld .mld-review__more {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	font-size: 13px;
	letter-spacing: .5px;
	text-transform: uppercase;
	color: var(--mld-heading);
	text-decoration: none;
}
.mld .mld-review__more .mld-go {
	position: relative;
	width: 34px;
	height: 34px;
	border-radius: 50%;
}
.mld .mld-review__more .mld-go::before {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 7px;
	height: 7px;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: translateX(-1px) rotate(45deg);
}

@media (hover: hover) {
	.mld-review:hover { border-color: var(--mld-dark); transform: translateY(-6px); box-shadow: 0 26px 44px -26px rgba(33, 32, 30, .5); }
	.mld-review__more:hover .mld-go::before { animation: mld-arrow-through .6s cubic-bezier(.5, 0, .3, 1); }
	.mld-review__more:hover .mld-go::after { animation: mld-ring 1.2s ease-out .15s infinite; }
}

@media (max-width: 1199px) {
	.mld-reviews .mld-rail__track { --mld-per: 2.2; }
}
@media (max-width: 639px) {
	.mld-reviews .mld-rail__track { --mld-per: 1.15; }
	.mld .mld-rating { width: 100%; margin: 4px 0 0; padding-right: 16px; }
	.mld-rating__num { font-size: 28px; }
	.mld-review { padding: 22px; border-radius: 22px; }
	.mld-review__text { font-size: 14px; -webkit-line-clamp: 8; }
}
@media (prefers-reduced-motion: reduce) {
	.mld-review, .mld .mld-rating { transition: none; }
}
