/* reviews.css — "Отзывы" (Section 14, REVIEWS SECTION) of MASTER_PROJECT.md
 * Fully custom — Elementor Free has no autoplay carousel widget.
 * Rendered via the [ontop360_reviews] shortcode in functions.php.
 *
 * Card background is LIGHT (near-white), not dark — matches the real
 * "Отзывы" Figma screenshot exactly, unlike the dark cards used for
 * Benefits/Reviews-module elsewhere. Yandex Maps-style "Знаток города N
 * уровня" badge line included since it's part of the real supplied content.
 */

.reviews-section__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
}

.reviews-section__title {
	color: var(--color-accent);
	font-family: var(--font-primary);
	font-weight: 800;
	font-size: 32px; /* TODO: confirm against Figma */
	margin: 0 0 16px;
}

.reviews-section__desc {
	color: var(--color-white);
	font-family: var(--font-primary);
	margin: 0 0 40px;
}

.reviews-track-wrap {
	position: relative;
}

.reviews-arrow {
	position: absolute;
	top: 120px;
	right: -22px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	min-width: 48px;
	min-height: 48px;
	margin: 0;
	padding: 0 0 4px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	background: var(--color-accent);
	color: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
	font: 400 42px/1 var(--font-primary);
	cursor: pointer;
	transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.reviews-arrow:hover {
	transform: translateX(2px);
	background: #2384f2;
	box-shadow: 0 10px 28px rgba(64, 150, 252, 0.35);
}

.reviews-arrow:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.reviews-arrow span {
	display: block;
	line-height: 1;
}

.reviews-track {
	display: flex;
	gap: 24px; /* TODO: confirm against Figma */
	overflow-x: hidden; /* autoplay/dot-driven, not manually scrollable by default */
}

.review-card {
	flex: 0 0 calc(50% - 12px); /* confirmed: 14.5 two visible desktop/tablet */
	background-color: #f5f5f5; /* confirmed: light card background per Figma */
	border-radius: 16px; /* TODO: confirm against Figma */
	padding: 32px; /* TODO: confirm against Figma */
	height: 240px; /* confirmed: "Every review card should have identical dimensions" — the 7 real reviews vary from 2 to 9 lines, so a fixed height + text clamp (below) keeps this true instead of the tallest review stretching every card */
	display: flex;
	flex-direction: column;
	transition: transform 250ms ease, box-shadow 250ms ease; /* confirmed: 14.7, 250ms */
}

.review-card:hover {
	transform: translateY(-2px); /* confirmed: 14.7 */
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); /* TODO: exact shadow value not given */
}

.review-card__name {
	font-family: var(--font-primary);
	font-weight: 700;
	color: var(--color-accent); /* confirmed: name shown in accent blue */
	margin: 0 0 4px;
}

.review-card__badge {
	font-family: var(--font-primary);
	font-size: 13px; /* TODO: confirm against Figma */
	color: #9a9a9a; /* confirmed: muted gray badge text on the light card */
	margin: 0 0 16px;
}

.review-card__text {
	font-family: var(--font-primary);
	color: #1a1a1a; /* confirmed: dark text on the light card */
	line-height: 1.5;
	margin: 0;
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 5; /* TODO: confirm against Figma; keeps card height identical across reviews of very different lengths */
}

.reviews-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 24px;
}

.reviews-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--color-text-muted);
	border: none;
	padding: 0;
	cursor: pointer;
}

.reviews-dot.is-active {
	background: var(--color-accent);
}

@media (max-width: 1320px) {
	.reviews-arrow {
		right: 8px;
	}
}

@media (max-width: 767px) {
	.reviews-arrow {
		top: 120px;
		right: 8px;
		width: 44px;
		height: 44px;
		min-width: 44px;
		min-height: 44px;
		font-size: 38px;
	}
}
