.page-profile .profile-page {
	margin-top: 30px;
	margin-bottom: 30px;
}

.page-profile .profile-card {
	border: 1px solid #e6ecf2;
	border-radius: 10px;
	box-shadow: 0 6px 20px rgba(36, 53, 74, 0.06);
	background: #fff;
}

.page-profile .profile-hero {
	border-radius: 12px;
	margin-bottom: 18px;
}

.page-profile .profile-hero .media-left {
	padding-right: 28px;
}

.page-profile .profile-avatar {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #f0f3f7;
}

.page-profile .profile-title {
	margin-top: 0;
	margin-bottom: 10px;
	font-size: 28px;
}

.page-profile .profile-stats {
	margin-top: 25px;
}

.page-profile .profile-stat {
	background: #f8fafc;
	border: 1px solid #e6ecf2;
	border-radius: 6px;
	padding: 14px;
	margin-bottom: 15px;
	text-align: center;
}

.page-profile .profile-stat-value {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
}

.page-profile .profile-stat-label {
	color: #75808d;
	font-size: 13px;
}

.page-profile .profile-tabs {
	margin-bottom: 16px;
	overflow-x: auto;
	overflow-y: hidden;
	white-space: nowrap;
	display: flex;
	flex-wrap: nowrap;
	gap: 6px;
	border-bottom: 1px solid #e6ecf2;
}

.page-profile .profile-settings-nav {
	display: flex;
	align-items: stretch;
	gap: 0;
	position: relative;
}

.page-profile .profile-tabs-scroll-clip {
	flex: 1 1 auto;
	min-width: 0;
}

.page-profile .profile-tabs-scroll-btn {
	display: none;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.95);
	color: #8a96a3;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	user-select: none;
	-webkit-user-select: none;
	-webkit-tap-highlight-color: transparent;
	z-index: 3;
	box-shadow: 0 1px 4px rgba(30, 50, 70, 0.08);
}

.page-profile .profile-tabs-scroll-btn:hover,
.page-profile .profile-tabs-scroll-btn:focus {
	color: #2e3b4b;
	background: #f6f9fc;
	border-color: #e3ebf3;
	outline: none;
}

.page-profile .profile-tabs-scroll-btn:active {
	background: #eef3f8;
}

.page-profile .profile-tabs .nav-item {
	float: none;
	display: inline-flex;
}

.page-profile .profile-tabs .nav-link {
	border: 1px solid transparent;
	border-radius: 6px 6px 0 0;
	padding: 10px 14px;
	color: #55616f;
	font-weight: 600;
	cursor: pointer;
	user-select: none;
	-webkit-user-select: none;
}

.page-profile .profile-tabs .nav-link:hover,
.page-profile .profile-tabs .nav-link:focus {
	color: #2e3b4b;
	background: #f6f9fc;
	border-color: #e3ebf3;
}

.page-profile .profile-tabs .nav-link.active {
	color: #0b5fa8;
	background: #fff;
	border-color: #e6ecf2 #e6ecf2 #fff;
}

.page-profile .profile-tab-content {
	padding-top: 6px;
}

.page-profile .profile-section-card {
	border: 1px solid #edf2f7;
	border-radius: 10px;
	box-shadow: 0 3px 14px rgba(30, 50, 70, 0.05);
	margin-bottom: 16px;
}

.page-profile .profile-section-title {
	margin-top: 0;
	margin-bottom: 16px;
	font-size: 24px;
}

.page-profile .profile-form {
	max-width: 680px;
}

.page-profile .profile-current-password-label-row {
	margin-bottom: 6px;
}

.page-profile .profile-current-password-label {
	display: block;
	overflow: hidden;
	padding-right: 8px;
	margin-bottom: 0;
}

.page-profile .profile-form-block {
	margin-bottom: 25px;
	padding-bottom: 20px;
	border-bottom: 1px solid #eef3f8;
}

.page-profile .profile-form-inline {
	margin-bottom: 15px;
}

.page-profile .profile-sessions-table td {
	vertical-align: middle;
}

.page-profile .profile-help-text {
	color: #5a6570;
	font-size: 15px;
	line-height: 1.55;
	margin-bottom: 16px;
	padding: 12px 14px;
	background: #f8fafc;
	border: 1px solid #e8eef4;
	border-radius: 8px;
}

.page-profile .profile-help-text p {
	margin-bottom: 8px;
}

.page-profile .profile-help-text p:last-child {
	margin-bottom: 0;
}

.page-profile .profile-tip-icon {
	cursor: help;
	font-size: 16px;
	vertical-align: middle;
}

.page-profile .profile-sessions-explainer {
	border-radius: 8px;
	border: 1px solid #c5ddf5;
}

.page-profile .profile-sessions-explainer .small {
	font-size: 14px;
	line-height: 1.55;
}

.page-profile .profile-settings-main-row {
	margin-top: 4px;
	align-items: flex-start;
}

.page-profile .profile-settings-col-left {
	text-align: center;
}

.page-profile .profile-display-name-line--stacked {
	margin-bottom: 10px;
	justify-content: center;
}

.page-profile .profile-name-edit-panel--stacked {
	max-width: 300px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 14px;
	text-align: left;
}

.page-profile .profile-name-edit-panel--stacked .form-group {
	margin-bottom: 10px;
}

.page-profile .profile-avatar-stack {
	margin-top: 4px;
	margin-left: auto;
	margin-right: auto;
	max-width: 220px;
}

.page-profile .profile-avatar-preview-wrap {
	display: inline-block;
	margin-bottom: 4px;
}

.page-profile .profile-avatar-preview-trigger {
	cursor: pointer;
}

.page-profile .profile-avatar-preview-trigger:focus {
	outline: 2px solid #0b5fa8;
	outline-offset: 3px;
}

.page-profile .profile-avatar-circle {
	width: 132px;
	height: 132px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #e6ecf2;
	display: block;
	margin-left: auto;
	margin-right: auto;
	background: #f4f7fb;
}

.page-profile .profile-avatar-circle--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 12px;
	box-sizing: border-box;
	color: #8a96a3;
	font-size: 14px;
	line-height: 1.35;
	font-weight: 600;
}

.page-profile .profile-avatar-empty-label {
	max-width: 9em;
}

.page-profile .profile-display-name-line {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px 0;
	margin-bottom: 6px;
}

.page-profile .profile-display-name-text {
	margin: 0;
	padding: 0;
	line-height: 1.25;
}

.page-profile .profile-name-edit-panel {
	max-width: 680px;
}

.page-profile .profile-settings-col-bio {
	padding-left: 8px;
}

.page-profile .profile-bio-form-title {
	margin-top: 0;
	margin-bottom: 6px;
	font-size: 17px;
	font-weight: 600;
	color: #2e3b4b;
}

.page-profile .profile-bio-note {
	margin-bottom: 10px;
	line-height: 1.35;
	font-size: 13px;
}

.page-profile .profile-form-bio-compact .form-group {
	margin-bottom: 8px;
}

.page-profile .profile-bio-textarea {
	min-height: 92px;
	max-height: 220px;
	font-size: 14px;
	line-height: 1.4;
	resize: vertical;
	padding: 8px 10px;
}

@media (max-width: 767px) {
	.page-profile .profile-tabs-scroll-btn {
		display: flex;
		width: 40px;
		min-width: 40px;
		min-height: 44px;
		align-self: center;
	}

	.page-profile .profile-settings-col-bio {
		padding-left: 0;
		margin-top: 22px;
		padding-top: 18px;
		border-top: 1px solid #edf2f7;
	}
}

.page-profile .profile-name-edit-toggle {
	color: #5a6570;
	vertical-align: middle;
}

.page-profile .profile-name-edit-toggle:hover,
.page-profile .profile-name-edit-toggle:focus {
	color: #0b5fa8;
	text-decoration: none;
}

.page-profile .profile-bio .profile-bio-title {
	font-size: 20px;
	margin-bottom: 12px;
}

.page-profile .profile-bio-text {
	font-size: 16px;
	line-height: 1.6;
	color: #3d4a57;
}

/* Конфликт привязки MAX: уже привязан к другому профилю */
.page-profile .mkp-max-conflict-host {
	color: inherit;
}

.page-profile .mkp-max-conflict-card {
	text-align: left;
	border-radius: 12px;
	border: 1px solid #e8d9a0;
	background: #fffdf6;
	padding: 14px 16px;
}

.page-profile .mkp-max-conflict-title {
	font-size: 15px;
	line-height: 1.35;
}

.page-profile .mkp-max-conflict-user {
	align-items: center;
	margin-top: 4px;
}

.page-profile .mkp-max-conflict-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	border: 1px solid #e6e6e6;
	margin-right: 12px;
}

.page-profile .mkp-max-conflict-name {
	font-weight: 600;
	font-size: 16px;
	color: #2e3b4b;
}

.page-profile .mkp-max-conflict-hint {
	line-height: 1.45;
	color: #4a5563;
}

/* Публичный блок «Связь» */
.page-profile .profile-contact-card .profile-section-title {
	font-size: 20px;
	margin-bottom: 12px;
}

.page-profile .profile-contact-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
}

/* Публичный блок «Связь»: крупные иконки без подписей */
.page-profile .profile-contact-chips {
	align-items: flex-start;
	gap: 14px 18px;
}

.page-profile .profile-contact-chip-wrap {
	display: inline-block;
	vertical-align: top;
}

.page-profile .profile-contact-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 14px;
	border: 1px solid #e6ecf2;
	background: #fff;
	box-shadow: 0 2px 10px rgba(30, 50, 70, 0.06);
	color: #3d5a80;
	font-size: 28px;
	line-height: 1;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
	padding: 0;
	cursor: pointer;
}

.page-profile .profile-contact-chip:hover,
.page-profile .profile-contact-chip:focus {
	color: #0b5fa8;
	background: #f4f8fc;
	border-color: #c5d6eb;
	box-shadow: 0 4px 14px rgba(30, 50, 70, 0.08);
	text-decoration: none;
}

.page-profile button.profile-contact-chip {
	-webkit-appearance: none;
	appearance: none;
}

.page-profile .profile-contact-chip--phone {
	color: #0b5fa8;
}

.page-profile .profile-contact-chip--max svg {
	width: 34px;
	height: 34px;
	vertical-align: middle;
}

.page-profile .profile-contact-chips-social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 18px;
}

.page-profile .profile-contact-chips .profile-social-icon {
	width: 64px;
	height: 64px;
	border-radius: 14px;
	font-size: 28px;
}

.page-profile .profile-public-phone-img {
	max-width: 100%;
	height: auto;
}

.page-profile a.profile-contact-max--link.profile-contact-chip,
.page-profile a.profile-contact-max--link.profile-contact-chip:hover,
.page-profile a.profile-contact-max--link.profile-contact-chip:focus {
	text-decoration: none;
	color: inherit;
}

.page-profile .profile-contact-max.profile-contact-max--nolink {
	cursor: help;
	opacity: 0.92;
}

.page-profile .profile-contact-phone-mask {
	font-weight: 600;
	letter-spacing: 0.02em;
}

.page-profile .profile-contact-max {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: #2e3b4b;
}

.page-profile a.profile-contact-max--link {
	color: #2e3b4b;
	text-decoration: none;
	border-radius: 8px;
	padding: 6px 10px;
	margin: -6px -10px;
	transition: background 0.15s ease, color 0.15s ease;
}

.page-profile a.profile-contact-max--link:hover,
.page-profile a.profile-contact-max--link:focus {
	background: #eef4fc;
	color: #0b5fa8;
	text-decoration: none;
}

.page-profile .profile-contact-max--nolink {
	cursor: help;
}

.page-profile .profile-contact-max svg {
	width: 1.35em;
	height: 1.35em;
}

.page-profile .profile-contact-social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
}

.page-profile .profile-social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: #f4f7fb;
	border: 1px solid #e6ecf2;
	color: #3d5a80;
	font-size: 20px;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.page-profile .profile-social-icon:hover,
.page-profile .profile-social-icon:focus {
	background: #e8f0fb;
	border-color: #c5d6eb;
	color: #0b5fa8;
	text-decoration: none;
}

.page-profile .profile-social-row {
	margin-bottom: 18px;
}

/* Вкладка «Связь»: подтверждение телефона (MAX + SMS) */
.page-profile .profile-contact-phone-verify {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid #edf2f7;
}

.page-profile .profile-contact-subtitle {
	font-size: 15px;
	font-weight: 600;
	color: #2e3b4b;
	margin-bottom: 6px;
}

.page-profile .profile-contact-max-phone-row {
	align-items: flex-end;
}

@media (min-width: 768px) {
	.page-profile .profile-contact-max-phone-btn-col {
		text-align: right;
	}
	.page-profile .profile-contact-max-phone-btn-col .profile-max-phone-verify-wrap {
		display: inline-block;
		text-align: left;
	}
}

@media (max-width: 767px) {
	.page-profile .profile-contact-sms-code-col {
		margin-top: 12px;
	}
}

.page-profile .profile-contact-sms-form .form-group {
	margin-bottom: 10px;
}

.page-profile .profile-contact-sms-toggle {
	white-space: normal;
	text-align: left;
}

.page-profile .profile-contact-sms-collapse .well {
	border-radius: 8px;
	background: #fafbfc;
	border-color: #e6ecf2;
}

.page-profile .profile-contact-sms-inline-alert {
	margin-bottom: 10px;
	padding: 8px 12px;
	font-size: 13px;
}

/* Вкладка «Связь»: сводка, карточки, соцсети */
.page-profile .profile-contact-settings-card .card-body {
	padding-top: 18px;
}

.page-profile .profile-contact-lead {
	line-height: 1.45;
}

.page-profile .profile-contact-summary {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px 14px;
	margin-bottom: 20px;
	padding: 12px 14px;
	background: #f8fafc;
	border: 1px solid #e8eef4;
	border-radius: 8px;
}

@media (min-width: 768px) {
	.page-profile .profile-contact-summary {
		grid-template-columns: repeat(3, 1fr);
	}
}

.page-profile .profile-contact-summary__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.page-profile .profile-contact-summary__k {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #8a96a3;
}

.page-profile .profile-contact-summary__v {
	font-size: 13px;
	line-height: 1.35;
	color: #2e3b4b;
}

.page-profile .profile-contact-main-form {
	max-width: 720px;
}

.page-profile .profile-contact-card {
	border: 1px solid #e6ecf2;
	border-radius: 10px;
	background: #fff;
	padding: 14px 16px;
	margin-bottom: 14px;
}

.page-profile .profile-contact-card__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 12px;
	margin-bottom: 8px;
}

.page-profile .profile-contact-card__title {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	color: #2e3b4b;
}

.page-profile .profile-contact-card__badge {
	font-size: 11px;
	font-weight: 600;
	padding: 0.28em 0.55em;
	vertical-align: middle;
}

.page-profile .profile-contact-card__hint {
	margin-bottom: 10px;
	line-height: 1.4;
}

.page-profile .profile-contact-card__toggle {
	margin-bottom: 0;
}

.page-profile .profile-contact-card--max .profile-contact-max-actions {
	margin-top: 8px;
}

.page-profile .profile-contact-card--max .profile-max-link-wrap {
	margin-top: 6px;
	margin-bottom: 0;
}

.page-profile .profile-contact-unlink-max-btn {
	font-weight: 600;
}

.page-profile .profile-contact-reverify-wrap .profile-contact-reverify-toggle {
	text-decoration: none;
}

.page-profile .profile-contact-reverify-wrap .profile-contact-reverify-toggle:hover,
.page-profile .profile-contact-reverify-wrap .profile-contact-reverify-toggle:focus {
	text-decoration: underline;
}

.page-profile .profile-contact-phone-reverify {
	margin-top: 8px;
}

.page-profile .profile-contact-add-social {
	margin-top: 14px;
	margin-bottom: 8px;
}

.page-profile .profile-contact-add-social__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.page-profile .profile-contact-add-social-select {
	flex: 1 1 200px;
	min-width: 0;
	max-width: 320px;
}

.page-profile .profile-social-row--contact {
	margin-bottom: 12px;
}

.page-profile .profile-social-row--contact:last-child {
	margin-bottom: 0;
}

.page-profile .profile-social-row__main {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

@media (min-width: 768px) {
	.page-profile .profile-social-row__main {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
		gap: 14px;
	}
}

.page-profile .profile-social-row__label {
	display: block;
	margin-bottom: 0;
	font-weight: 600;
	color: #3d4a57;
	min-width: 8em;
}

.page-profile .profile-social-row__controls {
	flex: 1 1 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	min-width: 0;
}

.page-profile .profile-social-row__controls .form-control {
	min-width: 0;
	flex: 1 1 220px;
}

.page-profile .profile-social-row__show {
	margin: 0;
	white-space: nowrap;
}

.page-profile .profile-social-row__show label {
	font-weight: 400;
	margin-bottom: 0;
}

.page-profile .profile-contact-save-bar {
	margin-top: 22px;
	padding-top: 16px;
	border-top: 1px solid #edf2f7;
}
