/* Лидерборд недели на главной */

.lb-block {
	margin: 60px 0 24px;
}

.lb-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	margin: 0 0 12px;
}

.lb-head .sect__header,
.lb-head .sect__title {
	margin: 0;
	text-align: left;
}

.lb-head__titles {
	min-width: 0;
}

.lb-head__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 12px;
	margin-top: 4px;
	font-size: 12px;
	line-height: 1.3;
	color: var(--tt-2);
}

.lb-week,
.lb-award {
	white-space: nowrap;
}

.lb-countdown {
	font-variant-numeric: tabular-nums;
}

.lb-faq-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.lb-block button.lb-faq-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	min-width: 18px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid var(--tt-2);
	background: transparent;
	background-color: transparent;
	color: var(--tt-2);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	box-shadow: none;
	cursor: pointer;
	font-family: inherit;
}

.lb-block button.lb-faq-btn:hover,
.lb-block button.lb-faq-btn:active {
	border-color: var(--tt);
	background: transparent;
	background-color: transparent;
	color: var(--tt);
	box-shadow: none;
}

.lb-faq {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 30;
	width: 260px;
	padding: 10px 12px;
	border: 1px solid var(--bdc);
	border-radius: 10px;
	background: var(--bg-2);
	color: var(--tt);
	font-size: 12px;
	line-height: 1.45;
	box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.lb-faq p {
	margin: 0 0 6px;
}

.lb-faq p:last-child {
	margin: 0;
}

.lb-tabs {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	flex-shrink: 0;
	margin-left: auto;
}

.lb-tab {
	border: 0;
	background: var(--fltx);
	color: var(--tt);
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	font-family: inherit;
}

.lb-tab:hover,
.lb-tab.is-active {
	background: var(--bg1s);
	color: #fff;
}

.lb-pane {
	display: none;
}

.lb-pane.is-active {
	display: block;
}

.lb-hero,
.lb-clan-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr) minmax(0, 1fr);
	grid-template-areas: "p2 p1 p3";
	align-items: end;
	gap: 12px;
	margin-bottom: 12px;
}

.lb-hero .lb-card--p1,
.lb-clan-cover--p1 {
	grid-area: p1;
}

.lb-hero .lb-card--p2,
.lb-clan-cover--p2 {
	grid-area: p2;
}

.lb-hero .lb-card--p3,
.lb-clan-cover--p3 {
	grid-area: p3;
}

.lb-hero .lb-card {
	min-height: 108px;
	position: relative;
}

.lb-hero .lb-card--p1 {
	min-height: 148px;
	padding: 16px 14px 14px;
	border-color: color-mix(in srgb, #c9af1c 38%, var(--bdc));
	background:
		radial-gradient(120% 70% at 50% -10%, rgba(201, 175, 28, 0.22), transparent 58%),
		linear-gradient(180deg, color-mix(in srgb, #c9af1c 16%, var(--bg-2)) 0%, var(--bg-2) 78%);
	box-shadow: 0 10px 22px color-mix(in srgb, #c9af1c 14%, transparent);
	z-index: 2;
}

.lb-hero .lb-card--p2 {
	min-height: 108px;
	border-color: color-mix(in srgb, #8b9bb4 32%, var(--bdc));
	background:
		radial-gradient(120% 70% at 50% -10%, rgba(139, 155, 180, 0.18), transparent 58%),
		linear-gradient(180deg, color-mix(in srgb, #8b9bb4 12%, var(--bg-2)) 0%, var(--bg-2) 78%);
}

.lb-hero .lb-card--p3 {
	min-height: 108px;
	border-color: color-mix(in srgb, #c47a4a 30%, var(--bdc));
	background:
		radial-gradient(120% 70% at 50% -10%, rgba(196, 122, 74, 0.16), transparent 58%),
		linear-gradient(180deg, color-mix(in srgb, #c47a4a 12%, var(--bg-2)) 0%, var(--bg-2) 78%);
}

.lb-hero .lb-card--p1:hover {
	background:
		radial-gradient(120% 70% at 50% -10%, rgba(201, 175, 28, 0.26), transparent 58%),
		linear-gradient(180deg, color-mix(in srgb, #c9af1c 20%, var(--bg-2)) 0%, var(--bg-2) 78%);
}

.lb-hero .lb-card--p1 .lb-place {
	width: 28px;
	height: 28px;
	font-size: 13px;
}

.lb-hero .lb-card--p1 .lb-user__avatar-link,
.lb-hero .lb-card--p1 .lb-user__side .comment-item__img,
.lb-hero .lb-card--p1 .lb-user__level,
.lb-hero .lb-card--p1 .lb-user__level .lv-badge,
.lb-hero .lb-card--p1 .lb-user__level .lv-badge--size-lg,
.lb-hero .lb-card--p1 .lb-user__level .lv-badge--size-sm,
.lb-hero .lb-card--p1 .lb-user__level .lv-badge--size-md {
	width: 56px;
	height: 56px;
}

.lb-hero .lb-card--p1 .lb-user__side .comment-item__avatar-col--premium {
	width: 56px;
}

.lb-hero .lb-card--p1 .lb-user__name {
	font-size: 15px;
}

.lb-hero .lb-card--p1 .lb-stats__main strong {
	font-size: 17px;
}

.lb-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
}

.lb-card {
	display: grid;
	grid-template-columns: 24px 48px minmax(0, 1fr) auto;
	gap: 8px 10px;
	align-items: center;
	min-height: 64px;
	padding: 8px 10px;
	border: 1px solid var(--bdc);
	border-radius: 12px;
	background: var(--bg-2);
	transition: border-color .25s ease, background-color .25s ease;
}

.lb-card--user {
	grid-template-columns: 24px auto minmax(0, 1fr) auto;
	align-items: center;
}

.lb-card:hover {
	border-color: var(--bg1s);
	background: color-mix(in srgb, var(--bg1s) 8%, var(--bg-2));
}

.lb-place {
	width: 24px;
	height: 24px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 12px;
	background: var(--fltx);
	color: var(--tt-2);
	flex: none;
}

.lb-place--1 {
	background: var(--accent-gold, #c9af1c);
	color: #fff;
}

.lb-place--2 {
	background: #9aa4b2;
	color: #fff;
}

.lb-place--3 {
	background: #c47a4a;
	color: #fff;
}

.lb-user__media {
	display: flex;
	align-items: center;
	gap: 15px;
	flex: none;
}

.lb-user__side {
	min-width: 48px;
}

.lb-user__avatar-link {
	display: block;
	width: 48px;
}

.lb-user__side .comment-item__img {
	width: 48px;
	height: 48px;
	border-radius: 8px;
}

.lb-user__side .comment-item__avatar-col--premium {
	width: 48px;
	margin-top: 0;
	padding-top: 12px;
}

.lb-user__side .comment-item__premium-avatar-crown img {
	height: 12px;
}

.lb-user__level {
	width: 48px;
	height: 48px;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lb-user__level .lv-badge,
.lb-user__level .lv-badge--size-lg,
.lb-user__level .lv-badge--size-sm,
.lb-user__level .lv-badge--size-md {
	width: 48px;
	height: 48px;
	margin: 0;
}

.lb-user__main {
	min-width: 0;
}

.lb-user__line {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	min-width: 0;
}

.lb-user__name {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-right: 14px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--tt);
	text-decoration: none;
	white-space: nowrap;
	max-width: 220px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lb-user__name:hover {
	color: var(--bg1s);
}

.lb-user__name img {
	height: 12px;
	width: auto;
}

.lb-user__line .group-icon {
	float: none;
	width: 20px;
	height: 20px;
	flex: none;
}

.lb-user__line .group-icon img {
	width: 20px;
	height: 20px;
	object-fit: contain;
	display: block;
}

.lb-user__line .comm-group-mark {
	display: inline-block;
	width: auto;
	margin-top: 0;
	padding: 2px 6px;
	font-size: 10px;
	line-height: 1.2;
	white-space: nowrap;
}

.lb-user__status {
	width: 28px;
	height: 28px;
	object-fit: contain;
	flex: none;
}

.lb-user__counts {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 4px;
	font-size: 12px;
	color: var(--tt-2);
}

.lb-user__counts i {
	margin-right: 4px;
}

.lb-stats {
	text-align: right;
	flex: none;
}

.lb-stats__main strong {
	display: block;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.15;
	color: var(--tt);
}

.lb-stats__main span {
	display: block;
	margin-top: 1px;
	font-size: 11px;
	color: var(--tt-2);
}

.lb-stats__sub {
	margin-top: 2px;
	font-size: 11px;
	color: var(--tt-2);
}

.lb-clan-hero {
	margin-bottom: 12px;
}

.lb-clan-cover {
	position: relative;
	display: block;
	height: 108px;
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	color: #fff;
	text-decoration: none;
}

.lb-clan-cover--p1 {
	height: 148px;
	box-shadow: 0 10px 22px rgba(201, 175, 28, 0.18);
}

.lb-clan-cover--p1 .lb-clan-cover__bg::after {
	background:
		linear-gradient(180deg, rgba(201, 175, 28, 0.22) 0%, transparent 42%),
		linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.28) 48%, transparent 78%);
}

.lb-clan-cover--p2 .lb-clan-cover__bg::after {
	background:
		linear-gradient(180deg, rgba(139, 155, 180, 0.18) 0%, transparent 42%),
		linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.22) 45%, transparent 70%);
}

.lb-clan-cover--p3 .lb-clan-cover__bg::after {
	background:
		linear-gradient(180deg, rgba(196, 122, 74, 0.16) 0%, transparent 42%),
		linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.22) 45%, transparent 70%);
}

.lb-clan-cover__bg {
	position: absolute;
	inset: 0;
	background-color: #374151;
	background-size: cover;
	background-position: center;
}

.lb-clan-cover__bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.22) 45%, transparent 70%);
}

.lb-clan-cover__rank {
	position: absolute;
	top: 10px;
	left: 10px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: linear-gradient(135deg, #fbbf24, #f59e0b);
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.lb-clan-cover__rank--2 {
	background: linear-gradient(135deg, #d9e7ff, #9cb7df);
	color: #35527d;
}

.lb-clan-cover__rank--3 {
	background: linear-gradient(135deg, #ffd3af, #d48b5d);
	color: #fff;
}

.lb-clan-cover__logo {
	position: absolute;
	top: 10px;
	left: 48px;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	object-fit: cover;
	z-index: 2;
	background: #1f2937;
}

.lb-clan-cover__name {
	position: absolute;
	top: 12px;
	left: 88px;
	right: 10px;
	z-index: 2;
	font-weight: 700;
	font-size: 15px;
	color: #fff;
	text-shadow: 0 1px 3px rgba(0,0,0,.7);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lb-clan-cover__meta {
	position: absolute;
	bottom: 26px;
	left: 12px;
	right: 12px;
	z-index: 2;
	font-size: 12px;
	color: rgba(255,255,255,.9);
	text-shadow: 0 1px 3px rgba(0,0,0,.6);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lb-clan-cover__rating {
	position: absolute;
	bottom: 8px;
	left: 12px;
	right: 12px;
	z-index: 2;
	font-size: 12px;
	color: rgba(255,255,255,.95);
	text-shadow: 0 1px 3px rgba(0,0,0,.6);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lb-clan__logo {
	display: block;
	width: 48px;
	height: 48px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--fltx);
	flex: none;
}

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

.lb-clan__body {
	min-width: 0;
}

.lb-clan__name {
	display: block;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--tt);
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lb-clan__name:hover {
	color: var(--bg1s);
}

.lb-clan__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
	margin-top: 3px;
	font-size: 12px;
	color: var(--tt-2);
}

.lb-empty {
	padding: 20px 14px;
	text-align: center;
	border: 1px dashed var(--bdc);
	border-radius: 12px;
	color: var(--tt-2);
	background: var(--fltx);
	font-size: 14px;
}

.lb-empty p {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 600;
	color: var(--tt);
}

.lb-empty span {
	display: block;
	font-size: 13px;
}

@media (max-width: 900px) {
	.lb-hero,
	.lb-clan-hero {
		grid-template-columns: 1fr;
		grid-template-areas:
			"p1"
			"p2"
			"p3";
		align-items: stretch;
		gap: 8px;
	}

	.lb-hero .lb-card {
		min-height: 0;
	}

	.lb-hero .lb-card--p1 {
		min-height: 0;
		padding: 12px 10px;
	}

	.lb-hero .lb-card--p1 .lb-place {
		width: 24px;
		height: 24px;
		font-size: 12px;
	}

	.lb-hero .lb-card--p1 .lb-user__avatar-link,
	.lb-hero .lb-card--p1 .lb-user__side .comment-item__img,
	.lb-hero .lb-card--p1 .lb-user__level,
	.lb-hero .lb-card--p1 .lb-user__level .lv-badge,
	.lb-hero .lb-card--p1 .lb-user__level .lv-badge--size-lg,
	.lb-hero .lb-card--p1 .lb-user__level .lv-badge--size-sm,
	.lb-hero .lb-card--p1 .lb-user__level .lv-badge--size-md {
		width: 48px;
		height: 48px;
	}

	.lb-hero .lb-card--p1 .lb-user__side .comment-item__avatar-col--premium {
		width: 48px;
	}

	.lb-hero .lb-card--p1 .lb-user__name,
	.lb-hero .lb-card--p1 .lb-stats__main strong {
		font-size: 14px;
	}

	.lb-clan-cover,
	.lb-clan-cover--p1 {
		height: 96px;
	}

	.lb-clan-cover--p1 {
		height: 112px;
	}
}

@media (max-width: 720px) {
	.lb-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.lb-tabs {
		margin-left: 0;
	}

	.lb-week,
	.lb-award {
		white-space: normal;
	}

	.lb-head__meta {
		font-size: 11px;
	}

	.lb-card,
	.lb-card--user {
		grid-template-columns: 24px auto minmax(0, 1fr);
		align-items: start;
	}

	.lb-user__media {
		flex-direction: column;
		align-items: center;
		grid-column: auto;
		grid-row: 1 / 3;
		gap: 6px;
	}

	.lb-user__side {
		min-width: 0;
	}

	.lb-card--user > .lb-place {
		grid-row: 1 / 3;
		align-self: center;
	}

	.lb-user__main {
		min-width: 0;
	}

	.lb-user__name {
		max-width: 100%;
		margin-right: 8px;
	}

	.lb-stats {
		grid-column: 3;
		text-align: left;
	}

	.lb-card--clan {
		grid-template-columns: 24px 40px minmax(0, 1fr);
	}

	.lb-card--clan .lb-clan__logo {
		width: 40px;
		height: 40px;
	}

	.lb-card--clan .lb-stats {
		grid-column: 2 / -1;
	}

	.lb-clan-cover__name {
		font-size: 14px;
	}
}

.lb-head__title-row {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px 14px;
}

.lb-head .sect__header a,
.lb-head .sect__title a {
	color: inherit;
	text-decoration: none;
}

.lb-head .sect__header a:hover,
.lb-head .sect__title a:hover {
	color: var(--color-accent, var(--accent, #c9af1c));
}

.lb-head__more {
	font-size: 13px;
	font-weight: 600;
	color: var(--tt-2);
	text-decoration: none;
	white-space: nowrap;
}

.lb-head__more:hover {
	color: var(--color-accent, var(--accent, #c9af1c));
}

.sect .grid-items > .lb-page-root,
.sect .grid-items > .lb-page {
	grid-column: 1 / -1;
}

.lb-page {
	margin: 0 0 32px;
}

.lb-page__hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin: 0 0 20px;
}

.lb-page__kicker {
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--tt-2);
}

.lb-page__title {
	margin: 0;
	font-size: clamp(28px, 5vw, 42px);
	font-weight: 800;
	line-height: 1.15;
	color: var(--tt);
}

.lb-page__week {
	margin: 8px 0 0;
	font-size: 14px;
	color: var(--tt-2);
}

.lb-page__timer {
	width: 100%;
	max-width: 560px;
	margin: 22px 0 0;
	padding: 22px 18px 20px;
	border-radius: 16px;
	border: 1px solid color-mix(in srgb, #c9af1c 32%, var(--bdc, #2a3140));
	background:
		radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, #c9af1c 18%, transparent), transparent 55%),
		var(--bg-2, #151a22);
}

.lb-page__timer-label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--tt-2);
}

.lb-page__timer-val {
	display: block;
	margin-top: 8px;
	font-size: clamp(36px, 9vw, 64px);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	letter-spacing: .02em;
	line-height: 1.05;
	color: var(--tt);
}

.lb-page__rules {
	max-width: 720px;
	margin: 0 auto 22px;
	padding: 16px 18px;
	border-radius: 12px;
	border: 1px solid var(--bdc, #2a3140);
	background: var(--bg-2, #151a22);
	font-size: 14px;
	line-height: 1.55;
	color: var(--tt-2);
	text-align: left;
}

.lb-page__rules h2 {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 700;
	color: var(--tt);
}

.lb-page__rules p {
	margin: 0 0 8px;
}

.lb-page__rules p:last-child {
	margin-bottom: 0;
}

.lb-page__rules ul {
	margin: 8px 0 10px;
	padding-left: 18px;
}

.lb-page__rules li {
	margin: 0 0 6px;
}

.lb-page .lb-head--page {
	margin-bottom: 14px;
}

.lb-page .lb-head--page .lb-tabs {
	margin-left: 0;
}

@media (max-width: 720px) {
	.lb-page__timer {
		padding: 18px 12px 16px;
	}

	.lb-page__rules {
		padding: 14px 14px;
	}
}

