/* ===== Framelab Reviews Grid — страница всех отзывов (макет в Figma: Page — All Reviews) ===== */
.flrg {
	--flrg-cols: 2;
	--flrg-gap: 28px;
	--flr-star: #FBBC04;
	--flr-star-empty: rgba(255, 255, 255, .3);
	--flr-overlay: #3A0A00;
	--flr-photo-o: 0.15;
	--flr-blend: luminosity;
	--flr-blur: 6px;
	--flrg-ink: #1E1412;
	--flr-font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

	font-family: var(--flr-font);
	color: var(--flrg-ink);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 56px;
	width: 100%;
	-webkit-font-smoothing: antialiased;
}
.flrg *, .flrg *::before, .flrg *::after { box-sizing: border-box; }

/* Шапка */
.flrg-intro {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	max-width: 900px;
	text-align: center;
}
.flrg-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px 8px 14px;
	border-radius: 999px;
	background: #FDF1F0;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
}
.flrg-gword { font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }
.flrg .flrg-heading {
	margin: 0;
	font-family: var(--flr-font);
	font-size: clamp(30px, 3.4vw, 48px);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	color: var(--flrg-ink);
}
.flrg .flrg-lead {
	margin: 0;
	max-width: 640px;
	font-size: 17px;
	line-height: 1.5;
	color: rgba(30, 20, 18, .7);
}
.flrg-summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 12px;
}
.flrg-avg { font-size: 23px; font-weight: 700; }
.flrg-summary .flrg-stars svg { width: 22px; height: 22px; }
.flrg-summary .flrg-stars svg path[fill="var(--flr-star-empty)"] { fill: #EEDBDA; }
.flrg-count { font-size: 14px; color: rgba(30, 20, 18, .65); }

/* Сетка: колонки разной высоты плотно стыкуются (masonry на CSS columns) */
.flrg-grid {
	width: 100%;
	max-width: var(--flrg-max, 1200px); /* как контейнеры сайта; меняется в настройке «Макс. ширина» */
	column-count: var(--flrg-cols);
	column-gap: var(--flrg-gap);
	transition: opacity .35s ease;
}
/* Пока JS не перемешал — сетку не показываем, чтобы карточки не «прыгали» */
.flrg--shuffle .flrg-grid { opacity: 0; animation: flrg-reveal 0s linear 1.5s forwards; }
/* Страховка: если JS отложен (LiteSpeed «Delay JS») — через 1.5 с показываем без перемешивания */
@keyframes flrg-reveal { to { opacity: 1; } }

.flrg-stars { display: flex; gap: 3px; }
.flrg-stars svg { width: 18px; height: 18px; display: block; }

/* Карточка */
.flrg-card {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 18px;
	width: 100%;
	margin: 0 0 var(--flrg-gap);
	padding: 28px 28px 24px;
	border-radius: 20px;
	background: var(--flr-overlay);
	box-shadow: 0 20px 44px -22px rgba(66, 12, 0, .35);
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
	transform: translateZ(0); /* Safari: иначе тень/скругление обрезаются в колонках */
	transition: transform .25s ease, box-shadow .25s ease;
}
.flrg-card[data-link] { cursor: pointer; }
.flrg-card[data-link]:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -22px rgba(66, 12, 0, .5); }

.flrg-bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	mix-blend-mode: var(--flr-blend);
	opacity: var(--flr-photo-o);
	pointer-events: none;
}
.flrg-bg-img {
	position: absolute;
	inset: calc(var(--flr-blur) * -3);
	background-size: cover;
	background-position: center;
	filter: blur(var(--flr-blur));
}

.flrg .flrg-text {
	margin: 0;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.55;
	letter-spacing: -0.01em;
	color: rgba(255, 255, 255, .66);
}
.flrg .flrg-text.no-hl,
.flrg .flrg-text mark { color: #fff; }
.flrg .flrg-text mark { background: none; padding: 0; }

.flrg-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, .15);
}
.flrg-person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.flrg .flrg-avatar,
.flrg img.flrg-avatar {
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	max-width: none;
	border: 0;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, .85);
}
.flrg-initial {
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, .08);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
}
.flrg-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.flrg-name { font-size: 15px; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flrg-date { font-size: 13px; color: rgba(255, 255, 255, .7); }
.flrg-source { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.flrg .flr-g { width: 16px; height: 16px; flex: 0 0 16px; }
.flrg .flrg-link {
	font-variant-emoji: text;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, .45);
	text-underline-offset: 3px;
}
.flrg .flrg-link:hover,
.flrg-card[data-link]:hover .flrg-link { text-decoration-color: #fff; }
.flrg .flrg-link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.flr-editor-note {
	margin: 0 auto 12px;
	max-width: 900px;
	padding: 10px 14px;
	border-radius: 8px;
	background: #FFF4D6;
	color: #6B4E00;
	font: 13px/1.4 system-ui, sans-serif;
}

/* Mobile */
@media (max-width: 767px) {
	.flrg { gap: 36px; --flrg-gap: 16px; }
	.flrg-intro { gap: 16px; }
	.flrg .flrg-lead { font-size: 15px; }
	.flrg-card { padding: 24px 22px 20px; gap: 16px; }
	.flrg .flrg-text { font-size: 16px; }
}
/* На телефоне всегда одна колонка — две карточки в 375px не читаются */
@media (max-width: 600px) {
	.flrg { --flrg-cols: 1 !important; }
}

@media (prefers-reduced-motion: reduce) {
	.flrg-grid, .flrg-card { transition: none; }
	.flrg-card[data-link]:hover { transform: translateZ(0); }
}
