/* Плашки отзывов на фото первого блока. Компонент с посадки ocifrovka-24.ru. */

:root {
	--badge-ink: #222222;
	--badge-star: #F5B400;
	--badge-link: #8A8A8A;
}

.review-badge {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .16), 0 1px 4px rgba(0, 0, 0, .08);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 9px 8px 8px;
	gap: 5px;
	flex: none;
	width: 146px;
	font-family: inherit;
	color: var(--badge-ink);
}

.review-badge__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 20px;
	width: 100%;
}

.review-badge__logo img {
	display: block;
	height: 20px;
	width: auto;
	max-width: 126px;
}

.review-badge__logo--yandex { gap: 5px; }
.review-badge__logo--yandex .pin { width: 18px; height: 18px; flex: none; }
.review-badge__logo--yandex .wordmark { height: 15px; max-width: 104px; }
.review-badge__logo--2gis img { height: 20px; max-width: 126px; }
.review-badge__logo--avito img { height: 18px; max-width: 126px; }

.review-badge__rating {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	line-height: 1;
}

.review-badge__score {
	font-size: 16px;
	font-weight: 700;
	color: var(--badge-ink);
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

.review-badge__stars { display: inline-flex; align-items: center; gap: 0.5px; }
.review-badge__stars svg { width: 11px; height: 11px; display: block; }

.review-badge__reviews {
	font-size: 10px;
	line-height: 1.15;
	color: var(--badge-link);
	text-decoration: underline;
	text-underline-offset: 1px;
	font-weight: 400;
}

.review-badges {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	justify-content: center;
	gap: 8px;
}

/* Вариант 1: плашки на фото справа. */
.hero-1 .hero-image-wrapp,
.hero-1 .hero-thumb {
	position: relative;
	overflow: visible;
}

.hero-1 .hero-thumb .review-badges {
	position: absolute;
	left: 50%;
	bottom: 18px;
	transform: translateX(-50%);
	width: max-content;
	max-width: calc(100% - 12px);
	z-index: 5;
}

@media (max-width: 760px) {
	.hero-1 .hero-thumb .review-badges {
		left: 8px;
		right: 8px;
		bottom: 12px;
		width: auto;
		max-width: none;
		transform: none;
		justify-content: stretch;
		gap: 6px;
	}
	.hero-1 .hero-thumb .review-badge {
		flex: 1 1 0;
		width: auto;
		min-width: 0;
		padding: 7px 4px 6px;
		gap: 3px;
		border-radius: 10px;
	}
	.hero-1 .hero-thumb .review-badge__logo { height: 15px; }
	.hero-1 .hero-thumb .review-badge__logo img { height: 15px; max-width: 100%; }
	.hero-1 .hero-thumb .review-badge__logo--yandex { gap: 2px; }
	.hero-1 .hero-thumb .review-badge__logo--yandex .pin { width: 13px; height: 13px; }
	.hero-1 .hero-thumb .review-badge__logo--yandex .wordmark { height: 11px; max-width: 74px; }
	.hero-1 .hero-thumb .review-badge__logo--2gis img,
	.hero-1 .hero-thumb .review-badge__logo--avito img { height: 14px; }
	.hero-1 .hero-thumb .review-badge__score { font-size: 13px; }
	.hero-1 .hero-thumb .review-badge__stars svg { width: 9px; height: 9px; }
	.hero-1 .hero-thumb .review-badge__reviews {
		display: block;
		font-size: 9px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		max-width: 100%;
	}
}
