/* Типографика и карточки — как .pb-stat-* на странице статистики Popup Banner */
.category-stat-grid {
	--cs-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--cs-box-bg: #eef6ff;
	--cs-box-border: #dbe9fb;
	--cs-box-accent: #1a6fc4;
	--cs-stat-color: #1a6fc4;
	--cs-stat-size: 26px;
	--cs-stat-size-m: 22px;
	--cs-info-color: #1a6fc4;
	--cs-info-size: 11px;
	--cs-info-size-m: 11px;
	--cs-border-radius: 10px;
	--cs-box-gap: 14px;

	display: flex;
	flex-flow: row wrap;
	justify-content: center;
	align-items: stretch;
	gap: var(--cs-box-gap);
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	font-family: var(--cs-font-family);
}

.category-stat-grid .category-stat-card,
.category-stat-grid .header-box-info {
	box-sizing: border-box;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: max-content;
	max-width: 100%;
	overflow: hidden;
	padding: 16px 18px;
	border: 1px solid var(--cs-box-border);
	border-radius: var(--cs-border-radius);
	background: var(--cs-box-bg);
	color: var(--cs-box-accent);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.category-stat-grid .category-stat-card::after,
.category-stat-grid .header-box-info::after {
	content: "";
	position: absolute;
	right: -22px;
	bottom: -22px;
	width: 90px;
	height: 90px;
	border-radius: 50%;
	opacity: 0.08;
	background: currentColor;
	pointer-events: none;
}

.category-stat-grid .category-stat-card:hover,
.category-stat-grid .header-box-info:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.category-stat-grid .category-stat-card__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	width: max-content;
	max-width: 100%;
	text-align: center;
}

.category-stat-grid .category-stat-card__label,
.category-stat-grid .info {
	margin: 0;
	font-family: var(--cs-font-family);
	font-size: var(--cs-info-size);
	font-weight: 600;
	line-height: 1.3;
	color: var(--cs-info-color);
	opacity: 0.78;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.category-stat-grid .category-stat-card__value,
.category-stat-grid .stat {
	font-family: var(--cs-font-family);
	font-size: var(--cs-stat-size);
	font-weight: 700;
	line-height: 1;
	color: var(--cs-stat-color);
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.5px;
	white-space: nowrap;
}

@media (max-width: 599px) {
	.category-stat-grid {
		--cs-box-gap: 12px;
	}

	.category-stat-grid .category-stat-card,
	.category-stat-grid .header-box-info {
		padding: 14px 16px;
	}

	.category-stat-grid .category-stat-card__value,
	.category-stat-grid .stat {
		font-size: var(--cs-stat-size-m);
		letter-spacing: -0.4px;
	}

	.category-stat-grid .category-stat-card__label,
	.category-stat-grid .info {
		font-size: var(--cs-info-size-m);
	}
}
