@charset "UTF-8";

.profile {
	box-sizing: border-box;
	font-family: 'Open Sans', Helvetica, Arial, sans-serif;
	font-weight: normal;
	font-size: inherit;
	line-height: inherit;
	display: block;
	margin: 20px auto 0;
}

.profile *,
.profile *:before,
.profile *:after {
	box-sizing: border-box;
}

.profile-intro {
	display: block;
}

.profile-head {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;

	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;

	-webkit-box-pack: start;
	-ms-flex-pack: start;
	justify-content: flex-start;

	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
}

.profile-photo-block {
	display: block;
	position: relative;
	width: 100px;
	height: 100px;
	border-radius: 50%;
	margin: 0 auto 20px;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.profile-photo {
	display: block;
	width: 100%;
	height: 100%;
	min-width: 100px;
	background-position: center;
	background-size: cover;
	border-radius: 50%;
}

.profile-photo-block .user_avatar {
	display: block;
}

.profile-photo-block .user_avatar img {
	box-shadow: none;
	border: none;
	padding: 0;
	background: none;
	border-radius: 50%;
	max-width: 100%;
	max-height: 100%;
}

.profile-status > span {
	display: block;
	width: 20px;
	height: 20px;
	background: #2BD400;
	position: absolute;
	top: auto;
	bottom: 5px;
	left: auto;
	right: 5px;
	font-size: 0;
	border-radius: 50%;
	border: 3px solid #ffffff;
}

.profile-status > span.statusOnline {
	background: #2BD400;
}

.profile-status > span.statusOffline {
	background: #F74659;
}

.profile-name {
	display: block;
	max-width: 100%;
}

.profile-full-name-row {
	display: block;
	margin: 0 0 6px;
	text-align: center;
}

.profile-full-name-row > span {
	display: inline-block;
	vertical-align: middle;
}

.profile-full-name {
	display: block;
	font-size: 1.2em;
	letter-spacing: .2px;
	margin: 0;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}

.profile-nickname {
	display: block;
	text-align: center;
}

.profile-nickname > a {
	display: inline-block;
	vertical-align: middle;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}

.profile-moder-panel {
	display: block;
	margin: 20px auto 0;
}

.profile-buttons {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;

	-webkit-box-orient: horizontal;
	-webkit-box-direction: normal;
	-ms-flex-direction: row;
	flex-direction: row;

	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;

	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;

	padding: 30px 0 20px;
}

.profile-buttons .button {
	margin: 8px;
}

.profile-body {
	display: block;
	padding: 20px 0;
	margin: 0 auto;
	border-top: 1px solid #D5D9DB;
}

.profile-section {
	display: block;
	margin: 0 0 40px;
}

.profile-section:last-child {
	margin: 0;
}

.profile-section-name {
	display: block;
	margin: 0 0 20px;
}

.profile-section-content {
	display: block;
}

.profile-row {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;

	-webkit-box-orient: horizontal;
	-webkit-box-direction: normal;
	-ms-flex-direction: row;
	flex-direction: row;

	-webkit-box-pack: start;
	-ms-flex-pack: start;
	justify-content: flex-start;

	-webkit-box-align: start;
	-ms-flex-align: start;
	align-items: flex-start;

	margin: 0 0 8px;
}

.profile-row:last-child {
	margin: 0;
}

.profile-row-name {
	display: block;
	min-width: 160px;
	-webkit-box-flex: 0;
	-ms-flex-positive: 0;
	flex-grow: 0;
}

.profile-row-content {
	display: block;
	-webkit-box-flex: 1;
	-ms-flex-positive: 1;
	flex-grow: 1;
}

/* profile labels */
.profile-labels {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;

	-webkit-box-orient: horizontal;
	-webkit-box-direction: normal;
	-ms-flex-direction: row;
	flex-direction: row;

	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;

	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;

	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
}

.profile-label {
	display: block;
	background: #EBEFF0;
	color: #27292C;
	text-decoration: none;
	border: 1px solid #D5D9DB;
	border-radius: 20px;
	margin: 8px;
	padding: 6px 14px 7px;
	font-size: 0.7rem;
	line-height: 0.8rem;
	white-space: nowrap;
	transition: background .2s ease;
	-webkit-transition: background .2s ease;
}

.profile-label:focus,
.profile-label:hover {
	background: #D5D9DB;
	color: #27292C;
	text-decoration: none;
}

.profile-label b {
	font-weight: 600;
}

.social-accounts.profile-social-accounts {
	padding: 0;
}

.profile-social-accounts {
	padding: 0;
	font-size: 0;
}



:where(.profile-grid-container) {
	container: profile-grid-container / inline-size;
}


:where(.profile-grid) {
	display: grid;
	gap: 8px;
	grid-template-columns: auto minmax(0, 1fr);

	:where(.profile-grid-row) {
		align-items: center;
		display: grid;
		grid-column: 1 / -1;
		grid-template-columns: subgrid;
		gap: 8px;
	}
}

@container profile-grid-container (width <= 380px) {
	:where(.profile-grid) {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}
}


.status-badge {
	--status-color-1: #7f7f7f;
	--status-color-2: #4cd46a;
	--status-color-3: #eb5757;
	--status-color-4: #ffa916;
	--status-color-5: #2196f3;

	border-radius: 4px;
	font-size: 13px;
	line-height: 18px;
	outline: 1px solid currentColor;
	padding: 5px 8px;
	width: fit-content;
	display: inline-block;

	&.color-gray {
		color: var(--status-color-1);
	}

	&.color-green {
		color: var(--status-color-2);
	}

	&.color-red {
		color: var(--status-color-3);
	}

	&.color-orange {
		color: var(--status-color-4);
	}

	&.color-blue {
		color: var(--status-color-5);
	}
}


