.telegram-user-page__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.telegram-user-page__title {
	margin: 0;
	flex: 1;
}

.telegram-user-page__title h2 {
	font-size: 1.75rem;
	line-height: 1.2;
  margin: 0;

}

.telegram-user-page__title p {
	font-size: 1rem;
	line-height: 0.75;
  margin: 0.5rem 0;
}

.telegram-user-page__avatar-header {
	flex-shrink: 0;
	width: 6rem;
	height: 6rem;
}

.telegram-user-page__avatar-header img {
	width: 100%;
	height: 100%;
	border-radius: 12px;
	object-fit: cover;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.telegram-user-page__content {
	padding: 0;
}

.telegram-user-page__grid {
	display: grid;
	grid-template-columns: 1fr 12rem;
	gap: 1.2rem;
}

.telegram-user-page__main {
	display: contents;
}

.telegram-user-page__section {
	margin-bottom: 0;
	padding: 0;
}

.telegram-user-page__main-section {
	padding: 0;
}

.telegram-user-page__aside-section {
	padding: 1.2rem;
}

.telegram-user-page__section-title {
	margin: 0 0 0.85rem;
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	color: var(--primary-color);
}

.telegram-user-page__stats {
	width: 100%;
	min-width: 100%;
}

.telegram-user-page__aside {
	display: flex;
	flex-direction: column;
	gap: 1.2rem;
}

.telegram-user-page__cards-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.telegram-user-page__cards-list li {
	padding: 0.55rem 0;
	border-bottom: 1px solid color-mix(in srgb, var(--secondary-color) 12%, transparent);
	font-size: 0.9rem;
}

.telegram-user-page__cards-list li:last-child {
	border-bottom: none;
}

.telegram-user-page__card {
	color: color-mix(in srgb, var(--secondary-color) 88%, #ffffff 12%);
}

.telegram-user-page__rarity {
	display: inline-block;
	padding: 0.2rem 0.5rem;
	border-radius: 6px;
	font-size: 0.85rem;
	font-weight: 500;
}

.telegram-user-page__rarity--common {
	background: color-mix(in srgb, green 35%, transparent);
	color: #9cff9c;
}

.telegram-user-page__rarity--uncommon {
	background: color-mix(in srgb, blue 35%, transparent);
	color: #9cbfff;
}

.telegram-user-page__rarity--rare {
	background: color-mix(in srgb, purple 35%, transparent);
	color: #d79cff;
}

.telegram-user-page__rarity--epic {
	background: color-mix(in srgb, red 35%, transparent);
	color: #ff9c9c;
}

.telegram-user-page__rarity--legendary {
	background: color-mix(in srgb, orange 35%, transparent);
	color: #ffc89c;
}

.telegram-user-page__banner {
	display: inline-block;
	padding: 0.2rem 1.5rem 0;
	border-radius: 6px;
	font-size: 0.85rem;
	font-weight: 500;
}

@media (max-width: 1024px) {
	.telegram-user-page__header {
		flex-direction: column;
		align-items: flex-start;
	}

	.telegram-user-page__grid {
		grid-template-columns: 1fr;
	}

	.telegram-user-page__avatar-header {
		width: 80px;
		height: 80px;
	}
}

@media (max-width: 640px) {
	.telegram-user-page__header {
		gap: 0.75rem;
		margin-bottom: 1rem;
	}

	.telegram-user-page__title {
		font-size: 1.3rem;
	}

	.telegram-user-page__avatar-header {
		width: 60px;
		height: 60px;
	}

	.telegram-user-page__section-title {
		font-size: 0.95rem;
		margin-bottom: 0.65rem;
	}
}
