/* =========================================================================
   Stats — Омор (слайдер + счётчики)
   ========================================================================= */

.stats-section {
	position: relative;
	margin-top: 48px;
	padding-block: 64px 56px;
	background: linear-gradient(
		145deg,
		#2C4B5F 0%,
		#3A6A8A 45%,
		#4D86B1 100%
	);
	overflow: hidden;
}

/* анимированный световой слой */
.stats-section::before {
	content: "";
	position: absolute;
	inset: -20%;                      /* запас, чтобы края не оголялись при сдвиге */
	z-index: 0;
	pointer-events: none;

	background:
		radial-gradient(circle 40% at 25% 30%, rgba(103, 201, 245, 0.55) 0%, transparent 60%),
		radial-gradient(circle 35% at 80% 75%, rgba(255, 255, 255, 0.18) 0%, transparent 60%),
		radial-gradient(circle 45% at 60% 10%, rgba(12, 30, 44, 0.45)   0%, transparent 65%);

	background-size: 200% 200%;
	animation: statsGlow 0.4s ease-in-out infinite alternate!important;
	will-change: background-position;
}

@keyframes statsGlow {
	0%   { background-position:   0%   0%,  100% 100%,  50% 0%; }
	100% { background-position: 100% 100%,   0%   0%,   0% 100%; }
}

.stats-section .container {
	position: relative;
	z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
	.stats-section::before { animation: none; }
}
.stats-section::after { /* если не занят сеткой */
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 120px;
	background: linear-gradient(to bottom, transparent, rgba(10, 25, 38, 0.35));
	pointer-events: none;
}
.stats-card::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -60px;
	width: 120px;
	height: 120px;
	transform: translateX(-50%);
	background: radial-gradient(circle, rgba(44, 165, 224, 0.35) 0%, transparent 70%);
	filter: blur(12px);
	pointer-events: none;
}
.stats-section .container {
	position: relative;
	z-index: 1;
}

.stats-slider {
	position: relative;
	max-width: 1000px;
	margin-inline: auto;
}

.stats-track {
	position: relative;
	min-height: 300px;
}

.stats-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(16px);
	pointer-events: none;
}

.stats-slide.is-active {
	position: relative;
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

/* Заголовок слайда */
.stats-slide__title {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 12px;
	margin: 0 0 36px;
	text-align: center;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(17px, 2.2vw, 22px);
	line-height: 1.45;
	letter-spacing: 0.01em;
	color: #fff;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
	max-width: 820px;
	margin-inline: auto;
}

/* Маркер как у section-head */
.stats-slide__title::before {
	content: "";
	flex: 0 0 6px;
	width: 6px;
	height: 1.15em;
	margin-top: 0.15em;
	background: linear-gradient(180deg, #67C9F5 0%, #2CA5E0 100%);
	border-radius: 4px;
	box-shadow: 0 0 12px rgba(104, 201, 245, 0.45);
}

.stats-slide__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

/* Карточка */
.stats-card {
	position: relative;
	background: #fff;
	border-radius: 18px;
	padding: 32px 24px 28px;
	text-align: center;
	box-shadow:
		0 4px 6px rgba(15, 30, 45, 0.04),
		0 16px 40px rgba(15, 30, 45, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.6);
	transition:
		transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.35s ease;
	overflow: hidden;
}

/* тонкая цветная полоска сверху карточки */
.stats-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 20%;
	right: 20%;
	height: 3px;
	border-radius: 0 0 4px 4px;
	background: linear-gradient(90deg, #2CA5E0, #67C9F5);
	opacity: 0.85;
}

.stats-card:hover {
	transform: translateY(-6px);
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1)!important;
	box-shadow:
		0 8px 16px rgba(15, 30, 45, 0.08),
		0 24px 48px rgba(15, 30, 45, 0.16);
}

.stats-card__value {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(32px, 4.5vw, 48px);
	line-height: 1.1;
	color: #2C4B5F;
	margin-bottom: 10px;
	letter-spacing: -0.02em;
}

.stats-card__num {
	font-variant-numeric: tabular-nums;
	background: linear-gradient(135deg, #2C4B5F 0%, #4D86B1 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: #2C4B5F; /* fallback */
}

.stats-card__suffix {
	font-size: 0.4em;
	font-weight: 600;
	-webkit-text-fill-color: #66727D;
	color: #66727D;
	margin-left: 4px;
	letter-spacing: 0;
}

.stats-card__label {
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: #66727D;
}

/* Навигация */
.stats-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin-top: 36px;
}

.stats-nav__btn {
	width: 42px;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
	backdrop-filter: blur(6px);
	transition:
		background 0.25s ease,
		border-color 0.25s ease,
		transform 0.2s ease;
}

.stats-nav__btn:hover {
	background: rgba(255, 255, 255, 0.28);
	border-color: rgba(255, 255, 255, 0.5);
	transform: scale(1.05);
}

.stats-nav__btn:active {
	transform: scale(0.96);
}

.stats-nav__dots {
	display: flex;
	align-items: center;
	gap: 8px;
}

.stats-nav__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: none;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.35);
	cursor: pointer;
	transition:
		width 0.3s cubic-bezier(0.22, 1, 0.36, 1),
		background 0.25s ease;
}

.stats-nav__dot.is-active {
	width: 24px;
	background: #fff;
}

/* ---------- Адаптив ---------- */

@media (max-width: 800px) {
	.stats-section {
		padding-block: 48px 40px;
		margin-top: 32px;
	}

	.stats-slide__title {
		margin-bottom: 24px;
		font-size: 16px;
	}

	.stats-slide__grid {
		gap: 14px;
	}

	.stats-card {
		padding: 24px 18px 22px;
		border-radius: 14px;
	}

	.stats-card__value {
		font-size: 32px;
	}
}

@media (max-width: 600px) {
	.stats-slide__title {
		text-align: left;
		justify-content: flex-start;
		font-size: 15px;
	}

	.stats-slide__grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.stats-card {
		display: flex;
		align-items: center;
		justify-content: space-between;
		text-align: left;
		gap: 16px;
		padding: 18px 20px;
	}

	.stats-card::before {
		left: 0;
		right: auto;
		top: 16%;
		bottom: 16%;
		width: 3px;
		height: auto;
		border-radius: 0 4px 4px 0;
	}

	.stats-card__value {
		margin-bottom: 0;
		font-size: 28px;
		order: 2;
		flex-shrink: 0;
	}

	.stats-card__label {
		order: 1;
		flex: 1;
		font-size: 14px;
		color: var(--toj-text, #1F2733);
	}

	.stats-nav {
		margin-top: 24px;
	}
}