/* Страница благодарностей */
.thanks-hero {
	position: relative;
	overflow: hidden;
	padding: 46px 0 50px;
	color: #fff;
	background: linear-gradient(135deg, #5273ba 0%, #3d5a99 55%, #2f4a85 100%);
}

.thanks-hero::before,
.thanks-hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, .07);
	pointer-events: none;
}

.thanks-hero::before {
	width: 340px;
	height: 340px;
	top: -170px;
	right: -80px;
}

.thanks-hero::after {
	width: 220px;
	height: 220px;
	bottom: -150px;
	left: -60px;
}

.thanks-hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 24px;
}

.thanks-hero__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	border-radius: 20px;
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .18);
}

.thanks-hero__icon svg {
	width: 38px;
	height: 38px;
}

.thanks-hero__text {
	flex: 1 1 420px;
	min-width: 260px;
}

.thanks-hero__eyebrow {
	margin-bottom: 8px;
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	opacity: .8;
}

.thanks-hero h1 {
	margin: 0 0 10px;
	font-size: 42px;
	line-height: 1.1;
	font-weight: 600;
}

.thanks-hero p {
	max-width: 620px;
	margin: 0;
	font-size: 17px;
	line-height: 1.55;
	color: rgba(255, 255, 255, .88);
}

.thanks-hero__stats {
	display: flex;
	flex: 0 0 auto;
	gap: 14px;
}

.thanks-stat {
	min-width: 120px;
	padding: 16px 20px;
	text-align: center;
	border-radius: 16px;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .18);
	backdrop-filter: blur(4px);
}

.thanks-stat strong {
	display: block;
	font-size: 28px;
	line-height: 1.1;
}

.thanks-stat span {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	color: rgba(255, 255, 255, .8);
}

.thanks-page {
	margin-top: 36px;
	margin-bottom: 54px;
}

.thanks-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 22px;
}

.thanks-section-head h2 {
	margin: 0 0 4px;
	font-size: 28px;
	color: #1f2a44;
}

.thanks-section-head p {
	margin: 0;
	color: #6b7690;
}

.thanks-section-head__count {
	font-size: 14px;
	white-space: nowrap;
	color: #5273ba;
}

.thanks-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 18px;
}

.thanks-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 26px 20px 20px;
	text-align: center;
	background: #fff;
	border: 1px solid #e4e9f2;
	border-radius: 18px;
	box-shadow: 0 6px 20px rgba(31, 42, 68, .06);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.thanks-card:hover {
	transform: translateY(-4px);
	border-color: #b9c7e6;
	box-shadow: 0 12px 28px rgba(31, 42, 68, .12);
}

.thanks-card--top {
	background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
}

.thanks-card--top-1 {
	border-color: #f0cf6b;
}

.thanks-card--top-2 {
	border-color: #c5ccd6;
}

.thanks-card--top-3 {
	border-color: #d9a06b;
}

.thanks-card__rank {
	position: absolute;
	top: 14px;
	right: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 0 8px;
	font-size: 13px;
	font-weight: 600;
	color: #7b879d;
	background: #eef2f8;
	border-radius: 999px;
}

.thanks-card--top-1 .thanks-card__rank {
	color: #4a3400;
	background: linear-gradient(135deg, #f7d774, #dfa900);
}

.thanks-card--top-2 .thanks-card__rank {
	color: #303945;
	background: linear-gradient(135deg, #eef1f5, #b9c1cc);
}

.thanks-card--top-3 .thanks-card__rank {
	color: #4b2b13;
	background: linear-gradient(135deg, #e8b98f, #c98245);
}

.thanks-card__avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 84px;
	width: 84px;
	height: 84px;
	margin-bottom: 14px;
	overflow: hidden;
	background: #eef2fa;
	border: 3px solid #eef2fa;
	border-radius: 50%;
	box-shadow: 0 4px 12px rgba(31, 42, 68, .10);
}

.thanks-card__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.thanks-card__initials {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 28px;
	font-weight: 600;
	letter-spacing: .02em;
	color: #fff;
}

.thanks-card__initials--1 {
	background: linear-gradient(135deg, #5b7cc4, #3f5d9e);
}

.thanks-card__initials--2 {
	background: linear-gradient(135deg, #4e9f8a, #2f7a6a);
}

.thanks-card__initials--3 {
	background: linear-gradient(135deg, #d18a5f, #b5653a);
}

.thanks-card__initials--4 {
	background: linear-gradient(135deg, #8a6bc0, #67479e);
}

.thanks-card__initials--5 {
	background: linear-gradient(135deg, #4f9bb8, #2f7590);
}

.thanks-card__name {
	margin: 0 0 8px;
	font-size: 18px;
	line-height: 1.3;
	font-weight: 600;
	color: #1f2a44;
}

.thanks-card__count {
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
	padding: 6px 12px;
	font-size: 13px;
	color: #5273ba;
	background: #eef3ff;
	border-radius: 999px;
}

.thanks-card__count strong {
	font-size: 16px;
}

.thanks-card__vk {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 14px;
	font-size: 14px;
	color: #5273ba;
	text-decoration: none;
}

.thanks-card__vk:hover {
	color: #3f5d9e;
	text-decoration: underline;
}

.thanks-card__vk-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	font-size: 10px;
	font-weight: 700;
	color: #fff;
	background: #5273ba;
	border-radius: 6px;
}

.thanks-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 34px;
	padding: 28px 32px;
	background: linear-gradient(135deg, #eef3ff, #e3ebfb);
	border: 1px solid #d7e1f5;
	border-radius: 20px;
}

.thanks-cta h2 {
	margin: 0 0 6px;
	font-size: 24px;
	color: #1f2a44;
}

.thanks-cta p {
	margin: 0;
	color: #5f6b82;
}

.thanks-cta__button {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 10px;
	padding: 13px 22px;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	background: #5273ba;
	border-radius: 999px;
	box-shadow: 0 6px 16px rgba(82, 115, 186, .28);
	transition: transform .18s ease, background-color .18s ease;
}

.thanks-cta__button:hover {
	color: #fff;
	text-decoration: none;
	background: #3f5d9e;
	transform: translateY(-1px);
}

.thanks-empty {
	padding: 40px;
	text-align: center;
	color: #6b7690;
	background: #f7f9fd;
	border-radius: 18px;
}

@media (max-width: 991px) {
	.thanks-hero__stats {
		width: 100%;
	}

	.thanks-stat {
		flex: 1;
	}
}

@media (max-width: 767px) {
	.thanks-hero {
		padding: 34px 0 38px;
	}

	.thanks-hero__icon {
		width: 56px;
		height: 56px;
		flex-basis: 56px;
		border-radius: 16px;
	}

	.thanks-hero__icon svg {
		width: 30px;
		height: 30px;
	}

	.thanks-hero h1 {
		font-size: 32px;
	}

	.thanks-hero__stats {
		flex-direction: column;
	}

	.thanks-stat {
		width: 100%;
	}

	.thanks-section-head {
		flex-direction: column;
		align-items: flex-start;
	}

	.thanks-grid {
		grid-template-columns: 1fr;
	}

	.thanks-cta {
		flex-direction: column;
		align-items: flex-start;
		padding: 24px;
	}

	.thanks-cta__button {
		justify-content: center;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.thanks-card,
	.thanks-cta__button {
		transition: none;
	}

	.thanks-card:hover,
	.thanks-cta__button:hover {
		transform: none;
	}
}
