/*
	Профиль: визуальная система Clean UI / Modern Minimalist.
	Mobile-first, подключается последним (после profile-panel.css).
	Только оформление: разметку, ячейки и обработчики не меняет.
*/

/* ================================================================== */
/* 1. Токены                                                          */
/* ================================================================== */

.account-profile,
.profile-layout,
.account-profile ~ .profile-side,
.page_profile {
	--pr-radius-lg: 16px;
	--pr-radius-md: 14px;
	--pr-radius-sm: 12px;
	--pr-radius-pill: 999px;

	--pr-accent: #6d5ce6;
	--pr-accent-strong: #5b49d8;
	--pr-accent-soft: rgba(109, 92, 230, .1);

	--pr-bg: #f4f5f9;
	--pr-surface: #ffffff;
	--pr-surface-soft: #f6f7fb;
	--pr-border: #e7e9f1;
	--pr-text: #1f2430;
	--pr-muted: #737d90;

	--pr-shadow-sm: 0 2px 8px rgba(31, 36, 48, .05);
	--pr-shadow: 0 8px 24px rgba(31, 36, 48, .07);
	--pr-shadow-lg: 0 16px 40px rgba(31, 36, 48, .1);

	--pr-tap: 44px;
	--pr-safe-bottom: env(safe-area-inset-bottom, 0px);
}

html[data-bs-theme="dark"] .account-profile,
html[data-bs-theme="dark"] .profile-layout,
html[data-bs-theme="dark"] .account-profile ~ .profile-side {
	--pr-accent: #8b7cf0;
	--pr-accent-strong: #7c6cf0;
	--pr-accent-soft: rgba(139, 124, 240, .16);

	--pr-bg: #0d1017;
	--pr-surface: #161b26;
	--pr-surface-soft: #1c2230;
	--pr-border: #2a3141;
	--pr-text: #e8ecf5;
	--pr-muted: #9aa4b8;

	--pr-shadow-sm: 0 2px 8px rgba(0, 0, 0, .3);
	--pr-shadow: 0 10px 26px rgba(0, 0, 0, .4);
	--pr-shadow-lg: 0 18px 44px rgba(0, 0, 0, .5);
}

/* ================================================================== */
/* 2. Герой: карточка, обложка, аватар, имя, быстрые действия          */
/* ================================================================== */

.account-profile.block.account {
	position: relative;
	margin: 0 0 14px;
	padding: 0;
	border: 1px solid var(--pr-border);
	border-radius: var(--pr-radius-lg);
	background: var(--pr-surface);
	box-shadow: var(--pr-shadow);
	overflow: hidden;
}

/* Обложка */
.account-profile .cover {
	position: relative;
	height: 148px;
	max-height: 148px;
	background: linear-gradient(120deg, color-mix(in srgb, var(--pr-accent) 24%, #dfe3ef), color-mix(in srgb, var(--pr-accent) 6%, #eef0f7));
	overflow: hidden;
}

.account-profile .cover img,
.account-profile .cover .image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.account-profile.no_cover .cover {
	height: 118px;
	max-height: 118px;
}

/* Область аватара и данных */
.account-profile .content {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	justify-items: center;
	gap: 10px;
	padding: 0 16px 16px;
	text-align: center;
}

.account-profile.block.account .content > .avatar,
.account-profile .content > .avatar {
	position: relative;
	padding: 0;
	width: 96px;
	height: 96px;
	margin: -52px 0 0;
	border-radius: 50%;
	background: var(--pr-surface);
	box-shadow: 0 0 0 4px var(--pr-surface), 0 6px 20px rgba(31, 36, 48, .16);
}

.account-profile .content > .avatar .image,
.account-profile .content > .avatar img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
}

.account-profile .content > .avatar.online::after {
	content: '';
	position: absolute;
	right: 4px;
	bottom: 6px;
	width: 16px;
	height: 16px;
	border: 3px solid var(--pr-surface);
	border-radius: 50%;
	background: #25c07a;
}

.account-profile .content > .info {
	min-width: 0;
	width: 100%;
}

/* Имя и значки */
.account-profile .info .name {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	color: var(--pr-text);
	font-size: 20px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -.01em;
}

.account-profile .info .name > span,
.account-profile .info .name a {
	color: inherit;
	text-decoration: none;
}

.account-profile .info .name a:hover,
.account-profile .info .name a:focus-visible {
	color: var(--pr-accent);
	text-decoration: underline;
}

/* Быстрые действия и строка состояния */
.account-profile .content .Panel {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: 4px;
}

.account-profile .content .Panel .btn,
.account-profile .content .Panel button,
.account-profile .content .Panel a.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: var(--pr-tap);
	padding: 10px 16px;
	border: 1px solid var(--pr-border);
	border-radius: var(--pr-radius-sm);
	background: var(--pr-surface);
	color: var(--pr-text);
	font-size: 14px;
	font-weight: 650;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.account-profile .content .Panel .btn:hover,
.account-profile .content .Panel button:hover {
	border-color: color-mix(in srgb, var(--pr-accent) 45%, var(--pr-border));
	background: var(--pr-accent-soft);
	color: var(--pr-accent);
	transform: translateY(-1px);
}

.account-profile .content .Panel .btn:active,
.account-profile .content .Panel button:active {
	transform: translateY(0);
	box-shadow: inset 0 2px 6px rgba(31, 36, 48, .12);
}

.account-profile .content .Panel .btn:focus-visible,
.account-profile .content .Panel button:focus-visible {
	outline: 2px solid var(--pr-accent);
	outline-offset: 2px;
}

.account-profile .content .Panel .btn[disabled],
.account-profile .content .Panel button[disabled] {
	opacity: .55;
	cursor: not-allowed;
	transform: none;
}

.account-profile .content .Panel .btn.primary,
.account-profile .content .Panel .btn.is-primary {
	border-color: transparent;
	background: linear-gradient(180deg, color-mix(in srgb, var(--pr-accent) 92%, #fff), var(--pr-accent));
	color: #fff;
	box-shadow: 0 8px 18px color-mix(in srgb, var(--pr-accent) 26%, transparent);
}

/* Мобильное окно кадрирования обложки — не шире экрана */
.account-profile .cover-position-editor,
.account-profile .cover-position-preview {
	max-width: 100%;
}

/* ================================================================== */
/* 3. Счётчики                                                        */
/* ================================================================== */

.account-profile .profile-counters {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin: 0;
	padding: 14px 0 0;
	border-top: 1px solid var(--pr-border);
}

.profile-counter {
	position: relative;
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr);
	grid-template-rows: auto auto;
	align-items: center;
	column-gap: 10px;
	row-gap: 2px;
	min-height: var(--pr-tap);
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid var(--pr-border);
	border-radius: var(--pr-radius-md);
	background: var(--pr-surface-soft);
	color: inherit;
	text-align: left;
	font: inherit;
	cursor: default;
	transition: background-color .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

button.profile-counter {
	cursor: pointer;
}

button.profile-counter:hover {
	border-color: color-mix(in srgb, var(--pr-accent) 42%, var(--pr-border));
	background: var(--pr-surface);
	transform: translateY(-1px);
	box-shadow: var(--pr-shadow-sm);
}

button.profile-counter:active {
	transform: translateY(0);
}

button.profile-counter:focus-visible {
	outline: 2px solid var(--pr-accent);
	outline-offset: 2px;
}

.profile-counter i {
	grid-row: 1 / span 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: var(--pr-radius-sm);
	background: var(--pr-accent-soft);
	color: var(--pr-accent);
	font-size: 16px;
}

.profile-counter b {
	grid-column: 2;
	color: var(--pr-text);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.05;
}

.profile-counter span {
	grid-column: 2;
	min-width: 0;
	color: var(--pr-muted);
	font-size: 10.5px;
	font-weight: 650;
	line-height: 1.2;
	letter-spacing: .04em;
	text-transform: uppercase;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ================================================================== */
/* 4. Переключатели разделов: мобильная нижняя панель, десктоп — сегменты */
/* ================================================================== */

.profile-side-tabs {
	display: flex;
	align-items: stretch;
	gap: 6px;
	margin: 0 0 12px;
	padding: 6px;
	border: 1px solid var(--pr-border);
	border-radius: var(--pr-radius-lg);
	background: var(--pr-surface);
	box-shadow: var(--pr-shadow-sm);
}

.profile-side-tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	flex: 1 1 auto;
	min-height: var(--pr-tap);
	padding: 8px 12px;
	border: 1px solid transparent;
	border-radius: var(--pr-radius-sm);
	background: none;
	color: var(--pr-muted);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}

.profile-side-tab i {
	color: color-mix(in srgb, var(--pr-accent) 75%, var(--pr-muted));
	font-size: 16px;
}

.profile-side-tab:hover {
	background: var(--pr-surface-soft);
	color: var(--pr-text);
	transform: translateY(-1px);
}

.profile-side-tab:hover i {
	color: var(--pr-accent);
}

.profile-side-tab:active {
	transform: translateY(0);
}

.profile-side-tab:focus-visible {
	outline: 2px solid var(--pr-accent);
	outline-offset: 2px;
}

.profile-side-tab.is-active {
	border-color: transparent;
	background: linear-gradient(180deg, color-mix(in srgb, var(--pr-accent) 94%, #fff), var(--pr-accent));
	color: #fff;
	box-shadow: 0 6px 16px color-mix(in srgb, var(--pr-accent) 28%, transparent);
}

.profile-side-tab.is-active i {
	color: #fff;
}

.profile-side-tab-count {
	font-weight: 800;
	opacity: .9;
}

/* На мобильных: нижняя панель во всю ширину экрана */
@media (max-width: 767.98px) {
	body {
		padding-bottom: calc(74px + var(--pr-safe-bottom));
	}

	/* Верхняя лента шаблона больше не нужна — её роль играет нижняя панель */
	.profile-layout > .profile-tabs,
	nav.profile-tabs {
		display: none;
	}

	.profile-side-tabs {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 60;
		align-items: center;
		gap: 2px;
		margin: 0;
		padding: 6px 8px calc(6px + var(--pr-safe-bottom));
		border: 0;
		border-top: 1px solid var(--pr-border);
		border-radius: 0;
		background: color-mix(in srgb, var(--pr-surface) 92%, transparent);
		backdrop-filter: blur(12px);
		box-shadow: 0 -8px 24px rgba(31, 36, 48, .08);
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.profile-side-tabs::-webkit-scrollbar {
		display: none;
	}

	.profile-side-tab {
		flex: 0 0 auto;
		flex-direction: column;
		gap: 3px;
		min-width: 62px;
		min-height: var(--pr-tap);
		padding: 6px 10px;
		border-radius: var(--pr-radius-sm);
		font-size: 10.5px;
		scroll-snap-align: center;
	}

	.profile-side-tab i {
		font-size: 19px;
	}

	.profile-side-tab.is-active {
		background: var(--pr-accent-soft);
		color: var(--pr-accent);
		box-shadow: none;
	}

	.profile-side-tab.is-active i {
		color: var(--pr-accent);
	}

	html[data-bs-theme="dark"] .profile-side-tabs {
		background: color-mix(in srgb, var(--pr-surface) 94%, transparent);
		box-shadow: 0 -8px 24px rgba(0, 0, 0, .5);
	}
}

/* Планшет и десктоп */
@media (min-width: 768px) {
	.profile-side-tabs {
		flex-wrap: wrap;
	}

	.profile-side-tab {
		flex: 1 1 130px;
	}
}

/* ================================================================== */
/* 5. Разделы: карточки, шапки, строки, витрины                        */
/* ================================================================== */

.profile-side {
	display: block;
	min-width: 0;
	margin-bottom: 16px;
}

.profile-side-panel,
.profile-side .profile-card,
.profile-side .profile-panel-mini {
	min-width: 0;
	margin: 0 0 12px;
	padding: 14px 14px 16px;
	border: 1px solid var(--pr-border);
	border-radius: var(--pr-radius-lg);
	background: var(--pr-surface);
	box-shadow: var(--pr-shadow-sm);
}

.profile-side-panel[hidden] {
	display: none;
}

.profile-side-panel.is-side-active {
	border-color: color-mix(in srgb, var(--pr-accent) 26%, var(--pr-border));
	box-shadow: var(--pr-shadow);
}

/* Шапка раздела */
.profile-side-panel > .profile-card-head,
.profile-side-panel > .profile-panel-mini-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 12px;
	padding: 0 0 10px 11px;
	border-bottom: 1px solid var(--pr-border);
	border-left: 3px solid var(--pr-accent);
}

.profile-side-panel > .profile-card-head span,
.profile-side-panel > .profile-card-head .profile-card-kicker,
.profile-side-panel > .profile-panel-mini-heading span {
	display: block;
	color: var(--pr-accent);
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.profile-side-panel > .profile-card-head h2,
.profile-side-panel > .profile-panel-mini-heading h2 {
	margin: 3px 0 0;
	color: var(--pr-text);
	font-size: 17px;
	font-weight: 800;
	line-height: 1.2;
}

.profile-side-panel > .profile-card-head i,
.profile-side-panel > .profile-panel-mini-heading i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	border-radius: var(--pr-radius-sm);
	background: var(--pr-accent-soft);
	color: var(--pr-accent);
	font-size: 16px;
}

/* Строки списков и «Подробнее» */
.profile-side-panel ul,
.profile-side-panel ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.profile-side-panel li {
	list-style: none;
}

.profile-side-panel li::marker,
.profile-side-panel ul::marker {
	content: none;
}

.profile-side-panel .profile-details-inline li,
.profile-side-panel .Detail-Profile ul > li,
.profile-side-panel .profile-panel-mini ul li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 10px 8px;
	border-bottom: 1px dashed color-mix(in srgb, var(--pr-border) 85%, transparent);
	color: var(--pr-text);
	font-size: 13.5px;
	line-height: 1.45;
}

.profile-side-panel li:last-child,
.profile-side-panel .Detail-Profile ul > li:last-child {
	border-bottom: 0;
}

.profile-side-panel .Detail-Icon,
.profile-side-panel .profile-panel-mini ul li span {
	display: flex;
	align-items: center;
	gap: 9px;
	flex: 1 1 auto;
	min-width: 0;
	color: var(--pr-muted);
	font-size: 13px;
	overflow-wrap: anywhere;
}

.profile-side-panel .Detail-Icon i,
.profile-side-panel .Detail-Icon .bi,
.profile-side-panel .profile-panel-mini ul li i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	border-radius: 9px;
	background: var(--pr-accent-soft);
	color: var(--pr-accent);
	font-size: 14px;
}

.profile-side-panel .Detail-Icon-Text,
.profile-side-panel .profile-panel-mini ul li strong {
	flex: 0 1 auto;
	max-width: 58%;
	color: var(--pr-text);
	font-size: 13.5px;
	font-weight: 700;
	text-align: right;
	overflow-wrap: anywhere;
}

.profile-side-panel .Detail-Icon-Text a {
	color: var(--pr-accent);
	text-decoration: none;
	border-bottom: 1px solid color-mix(in srgb, var(--pr-accent) 35%, transparent);
}

.profile-side-panel .Detail-Icon-Text a:hover {
	border-bottom-color: var(--pr-accent);
}

.profile-side-panel .profile-details-inline .detail-profile-divider {
	padding: 0;
	border: 0;
}

.profile-side-panel .profile-details-inline .detail-profile-divider hr {
	height: 1px;
	margin: 4px 0;
	border: 0;
	background: color-mix(in srgb, var(--pr-border) 90%, transparent);
}

/* Витрины подарков и медалей */
.profile-side-panel .gift-shelf,
.profile-side-panel .profile-medals,
.profile-side-panel .achievements {
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
}

.profile-side-panel .gift-shelf-list,
.profile-side-panel .profile-medals-list,
.profile-side-panel .achievements-list {
	display: flex;
	flex-wrap: nowrap;
	gap: 10px;
	max-width: 100%;
	margin: 0 -14px;
	padding: 2px 14px 6px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.profile-side-panel .gift-shelf-list::-webkit-scrollbar,
.profile-side-panel .profile-medals-list::-webkit-scrollbar,
.profile-side-panel .achievements-list::-webkit-scrollbar {
	display: none;
}

.profile-side-panel .gift-shelf-list > li,
.profile-side-panel .profile-medals-list > li,
.profile-side-panel .achievements-list > li {
	flex: 0 0 auto;
	max-width: 112px;
	border-bottom: 0;
	scroll-snap-align: start;
}

.profile-side-panel img,
.profile-side-panel video,
.profile-side-panel canvas,
.profile-side-panel svg {
	max-width: 100%;
	height: auto;
}

.profile-side-panel table {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
	font-size: 13px;
}

/* Пустые состояния */
.profile-side-panel .gift-shelf-empty,
.profile-side-panel .profile-panel-empty,
.profile-side-panel .profile-empty {
	display: block;
	width: 100%;
	margin: 0;
	padding: 18px 12px;
	border: 1px dashed color-mix(in srgb, var(--pr-accent) 30%, var(--pr-border));
	border-radius: var(--pr-radius-md);
	background: color-mix(in srgb, var(--pr-accent) 4%, var(--pr-surface));
	color: var(--pr-muted);
	font-size: 13px;
	text-align: center;
}

/* ================================================================== */
/* 6. Стена — во всю ширину                                           */
/* ================================================================== */

.profile-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
	margin: 0;
}

.profile-layout > .profile-main {
	grid-column: 1;
	min-width: 0;
	order: 2;
}

.profile-layout > .profile-side {
	grid-column: 1;
	min-width: 0;
	order: 1;
}

/* ================================================================== */
/* 7. Планшет и десктоп                                               */
/* ================================================================== */

@media (min-width: 768px) {
	.account-profile .cover {
		height: 210px;
		max-height: 210px;
	}

	.account-profile .content {
		grid-template-columns: 112px minmax(0, 1fr) auto;
		justify-items: start;
		align-items: center;
		column-gap: 16px;
		row-gap: 8px;
		padding: 0 20px 18px;
		text-align: left;
	}

	.account-profile.block.account .content > .avatar,
	.account-profile .content > .avatar {
		width: 112px;
		height: 112px;
		margin: -58px 0 0;
		grid-row: 1;
	}

	.account-profile .content > .info {
		grid-column: 2;
	}

	.account-profile .info .name {
		justify-content: flex-start;
		font-size: 24px;
	}

	.account-profile .content .Panel {
		grid-column: 3;
		width: auto;
		margin: 0;
		justify-content: flex-end;
	}

	.account-profile .profile-counters {
		grid-column: 1 / -1;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 10px;
		padding-top: 16px;
	}

	.profile-counter {
		grid-template-columns: 40px minmax(0, 1fr);
		padding: 12px 14px;
	}

	.profile-counter i {
		width: 40px;
		height: 40px;
		font-size: 17px;
	}

	.profile-counter b {
		font-size: 20px;
	}

	.profile-side-panel,
	.profile-side .profile-card,
	.profile-side .profile-panel-mini {
		padding: 16px 18px 18px;
	}

	.profile-side-panel .gift-shelf-list,
	.profile-side-panel .profile-medals-list,
	.profile-side-panel .achievements-list {
		margin: 0;
		padding: 2px 0 6px;
	}

	.profile-side-panel .gift-shelf-list > li,
	.profile-side-panel .profile-medals-list > li,
	.profile-side-panel .achievements-list > li {
		max-width: 132px;
	}
}

@media (min-width: 1200px) {
	.account-profile .cover {
		height: 250px;
		max-height: 250px;
	}

	.account-profile .content {
		grid-template-columns: 124px minmax(0, 1fr) auto;
		padding: 0 24px 20px;
	}

	.account-profile.block.account .content > .avatar,
	.account-profile .content > .avatar {
		width: 124px;
		height: 124px;
		margin-top: -62px;
	}

	.account-profile .info .name {
		font-size: 26px;
	}

	.account-profile .profile-counters {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 12px;
	}

	.profile-side-tabs {
		flex-wrap: nowrap;
	}

	.profile-side-tab {
		flex: 1 1 auto;
	}
}

/* Очень узкие экраны (320-359px) */
@media (max-width: 359.98px) {
	.account-profile .content {
		padding: 0 12px 14px;
	}

	.account-profile .info .name {
		font-size: 18px;
	}

	.profile-counter {
		grid-template-columns: 32px minmax(0, 1fr);
		padding: 9px 10px;
	}

	.profile-counter i {
		width: 32px;
		height: 32px;
		font-size: 15px;
	}

	.profile-counter b {
		font-size: 16px;
	}

	.profile-counter span {
		font-size: 9.5px;
		letter-spacing: 0;
	}

	.profile-side-tab {
		min-width: 56px;
		padding: 6px 8px;
	}
}

/* ================================================================== */
/* 8. Доступность                                                     */
/* ================================================================== */

.account-profile a:focus-visible,
.account-profile button:focus-visible,
.profile-side a:focus-visible,
.profile-side button:focus-visible,
.profile-side-tab:focus-visible,
.profile-counter:focus-visible {
	outline: 2px solid var(--pr-accent);
	outline-offset: 2px;
}

.account-profile input:focus-visible,
.account-profile select:focus-visible,
.account-profile textarea:focus-visible,
.profile-side input:focus-visible,
.profile-side select:focus-visible,
.profile-side textarea:focus-visible {
	outline: 2px solid var(--pr-accent);
	outline-offset: 1px;
	border-color: var(--pr-accent);
}

@media (prefers-reduced-motion: reduce) {
	.account-profile *,
	.profile-side *,
	.profile-side-tab,
	.profile-counter {
		transition-duration: .01ms;
		animation-duration: .01ms;
	}
}

/* Отступы счётчиков и блока разделов (задано вручную) */
.profile-counters {
	padding: 23px 28px 0 !important;
}

aside.profile-side.account.widgets.profile-side-wide,
.profile-side.account.widgets.profile-side-wide,
.profile-side.profile-side-wide {
	padding: 0 28px 0;
}

/* Мобильные: вкладки разделов — в потоке под счётчиками (вместо нижней панели) */
@media (max-width: 767.98px) {
	/* нижняя панель больше не нужна — убираем зарезервированное под неё место */
	body {
		padding-bottom: 0;
	}

	.profile-side-tabs {
		position: static;
		left: auto;
		right: auto;
		bottom: auto;
		z-index: auto;
		flex-wrap: nowrap;
		align-items: center;
		gap: 6px;
		margin: 0 0 12px;
		padding: 6px;
		border: 1px solid var(--pr-border);
		border-radius: 16px;
		background: var(--pr-surface-soft);
		backdrop-filter: none;
		box-shadow: none;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.profile-side-tabs::-webkit-scrollbar {
		display: none;
	}

	.profile-side-tab {
		flex: 0 0 auto;
		flex-direction: row;
		gap: 7px;
		min-width: 0;
		min-height: 44px;
		padding: 9px 12px;
		border-radius: 12px;
		font-size: 12.5px;
		scroll-snap-align: start;
	}

	.profile-side-tab i {
		font-size: 17px;
	}

	.profile-side-tab span {
		display: inline;
	}
}

/* Мобильные отступы блока разделов (задано вручную) */
@media (max-width: 767.98px) {
	aside.profile-side.account.widgets.profile-side-wide,
	.profile-side.account.widgets.profile-side-wide,
	.profile-side.profile-side-wide {
		padding: 0 28px 0 !important;
		margin: 1rem 0;
	}
}
