/* ============================================================
   Reviews Section — тёмная, сетка сканов отзывов в 3 колонки
   ============================================================ */

/* ———————————————————————
   Section Background — dark
   ——————————————————————— */

section.reviews-section.section {
	position: relative;
	background-color: #0d0d20 !important;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/* Subtle background pattern — dot matrix + fine grid */
section.reviews-section.section::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
		radial-gradient(rgba(255, 94, 20, 0.05) 1px, transparent 1px);
	background-size: 50px 50px, 50px 50px, 25px 25px;
	-webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 45%, transparent 72%);
	mask-image: radial-gradient(ellipse at 50% 50%, black 45%, transparent 72%);
	pointer-events: none;
}

/* Ambient orange glow — bottom-right */
section.reviews-section.section::after {
	content: '';
	position: absolute;
	bottom: -150px;
	right: -100px;
	width: 450px;
	height: 450px;
	background: radial-gradient(circle, rgba(255, 94, 20, 0.04) 0%, transparent 65%);
	border-radius: 50%;
	pointer-events: none;
	z-index: 0;
}

section.reviews-section .container {
	position: relative;
	z-index: 1;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* Section title */
.reviews-section .section-title {
	color: #ffffff;
	text-align: center;
	margin-bottom: 60px;
}

/* --- Grid: 3 columns on desktop --- */
.reviews-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	max-width: 1100px;
	margin: 0 auto;
	width: 100%;
}

/* --- Review Card --- */
.review-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding: 20px;
	background: rgba(255, 255, 255, 0.03);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	height: auto;
	box-sizing: border-box;
	transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.review-card:hover {
	border-color: rgba(255, 94, 20, 0.2);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* Scan image */
.review-scan-link {
	display: block;
	width: 100%;
	text-decoration: none;
}

.review-scan {
	display: block;
	width: 100%;
	height: auto;
	max-height: 420px;
	object-fit: contain;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.2);
	transition: transform 0.3s ease;
}

.review-scan-link:hover .review-scan {
	transform: scale(1.02);
}

/* Placeholder when no scan */
.review-scan-placeholder {
	width: 100%;
	height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 8px;
	color: rgba(255, 255, 255, 0.25);
	font-size: 14px;
}

/* Company name */
.review-company-name {
	display: block;
	font-size: 15px;
	font-weight: 600;
	color: #ffffff;
	text-align: center;
	padding-top: 4px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	width: 100%;
}

/* --- Responsive --- */
@media (max-width: 991px) {
	.reviews-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}

@media (max-width: 767px) {
	.reviews-section .section-title {
		margin-bottom: 40px;
	}

	.reviews-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.review-card {
		padding: 16px;
		gap: 12px;
	}

	.review-scan {
		max-height: 300px;
	}
}
