.cr-reviews {
	--cr-gap: 1.25rem;
	--cr-radius: 14px;
	--cr-border: #e8eaef;
	--cr-text: #3a4150;
	--cr-muted: #8b93a7;
	--cr-name: #1a1f2c;
	--cr-accent: #2f6fed;
	--cr-bg: #fbfcfe;
	--cr-card: #ffffff;
	display: grid;
	gap: var(--cr-gap);
	grid-template-columns: 1fr;
	margin: 1.75rem 0;
}

.cr-reviews[data-columns="2"] {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cr-reviews[data-columns="3"] {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cr-reviews[data-columns="4"] {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cr-review {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	padding: 1.15rem 1.15rem 1.05rem;
	border: 1px solid var(--cr-border);
	border-radius: var(--cr-radius);
	background: var(--cr-card);
	box-shadow: 0 8px 24px rgba(26, 31, 44, 0.04);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cr-review:hover {
	box-shadow: 0 12px 28px rgba(26, 31, 44, 0.08);
	transform: translateY(-1px);
}

.cr-review__header {
	display: block;
}

.cr-review__meta {
	min-width: 0;
}

.cr-review__stars {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0 0 0.4rem;
	line-height: 1;
}

.cr-review__star {
	color: #f5b301;
	font-size: 0.95rem;
	text-shadow: 0 1px 0 rgba(180, 120, 0, 0.15);
}

.cr-review__name {
	margin: 0;
	font-weight: 700;
	color: var(--cr-name);
	font-size: 0.95rem;
	line-height: 1.3;
}

.cr-review__label {
	margin: 0.15rem 0 0;
	font-size: 0.75rem;
	color: var(--cr-muted);
}

.cr-review__quote {
	position: relative;
	padding: 0.15rem 0 0;
}

.cr-review__quote::before {
	content: "“";
	position: absolute;
	top: -0.35rem;
	left: -0.15rem;
	font-size: 2rem;
	line-height: 1;
	color: #dbe4ff;
	font-family: Georgia, "Times New Roman", serif;
	pointer-events: none;
}

.cr-review__content {
	position: relative;
	z-index: 1;
	color: var(--cr-text);
	line-height: 1.65;
	font-size: 0.9rem;
}

.cr-review__content p {
	margin: 0 0 0.55em;
}

.cr-review__content p:last-child {
	margin-bottom: 0;
}

.cr-review__gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cr-review__gallery-item {
	margin: 0;
}

.cr-review__gallery-btn {
	display: block;
	padding: 0;
	border: 1px solid var(--cr-border);
	border-radius: 8px;
	overflow: hidden;
	background: var(--cr-bg);
	cursor: zoom-in;
	line-height: 0;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.cr-review__gallery-btn:hover {
	border-color: #c5d4f7;
	transform: scale(1.03);
}

.cr-review__gallery-btn img {
	display: block;
	width: 64px;
	height: 64px;
	object-fit: cover;
}

.cr-review__video {
	border-radius: 10px;
	overflow: hidden;
	background: #111;
}

.cr-review__video video {
	display: block;
	width: 100%;
	height: auto;
	max-height: 220px;
}

.cr-reviews-empty {
	color: var(--cr-muted);
	text-align: center;
	padding: 1.5rem;
}

.cr-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	background: rgba(15, 18, 28, 0.78);
}

.cr-lightbox[hidden] {
	display: none !important;
}

.cr-lightbox__img {
	max-width: min(920px, 92vw);
	max-height: 86vh;
	border-radius: 10px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	object-fit: contain;
	background: #000;
}

.cr-lightbox__close {
	position: absolute;
	top: 16px;
	right: 18px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.cr-lightbox__close:hover {
	background: rgba(255, 255, 255, 0.28);
}

body.cr-lightbox-open {
	overflow: hidden;
}

@media (max-width: 900px) {
	.cr-reviews[data-columns="3"],
	.cr-reviews[data-columns="4"] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.cr-reviews[data-columns="2"],
	.cr-reviews[data-columns="3"],
	.cr-reviews[data-columns="4"] {
		grid-template-columns: 1fr;
	}

	.cr-review__gallery-btn img {
		width: 56px;
		height: 56px;
	}
}
