/* Блок направлений на первой странице */
.direction {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position:relative;
}
/* Блок направлений на первой странице конец */

a {
	color: #800000;
	text-decoration: none;
	-webkit-transition: color 0.25s ease-out;
	-moz-transition: color 0.25s ease-out;
	-ms-transition: color 0.25s ease-out;
	-o-transition: color 0.25s ease-out;
	transition: color 0.25s ease-out;
}
a:hover {
	color: #F1C50E;
	text-decoration: none;
}

input {
    color: #2F2F2F;
    margin: 15px 0;
    padding: 5px;
    float: none;
    height: auto;
    width: 100%;
	border: 2px solid #F1C50E;
	border-radius: 3px;
    position: relative;
}

textarea {
    color: #2F2F2F;
    margin: 15px 0;
    padding: 5px;
    float: none;
    height: 100px;
    width: 100%;
	border: 2px solid #F1C50E;
	border-radius: 3px;
    position: relative;
}

.u-nav-item input {
    color: #FFFFFF;
    background: #000;
    margin: 0 0 25px 0;
    padding: 3px;
    float: none;
    height: auto;
    width: 60%;
	border: 1px solid #FFFFFF;
	border-radius: 3px;
    position: relative;
}

.u-nav-item .btn {
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	position: relative;
	margin: 0 0 50px 0;
	padding: 10px;
	text-align: center;
	color: #FFFFFF;
	width: 60%;
	background: #000000;
	font-size: 18px;
	border-radius: 6px;
	border: 2px solid #FFFFFF;
	cursor: pointer;
	cursor: hand;
}

/* Стиль кнопок */
.btn {
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	position: relative;
	margin: 0 0 50px 0;
	padding: 10px;
	text-align: center;
	color: rgb(241, 197, 14);
	width: 100%;
	background: rgb(255, 255, 255);
	font-size: 18px;
	border-radius: 6px;
	border: 4px solid rgb(241, 197, 14);
    cursor: pointer;
	cursor: hand;
	transition: all 0.3s ease-in-out 0s;
}

.btn:hover {
	color: rgb(74, 74, 74);
	border: 4px solid rgb(74, 74, 74);
}

.ui-dialog-buttonset button {
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	position: relative;
	margin: 0 0 50px 0;
	padding: 10px;
	text-align: center;
	color: rgb(241, 197, 14);
	background: rgb(255, 255, 255);
	font-size: 18px;
	border-radius: 6px;
	border: 4px solid rgb(241, 197, 14);
	cursor: pointer;
	cursor: hand;
	transition: all 0.3s ease-in-out 0s;
}

.ui-dialog-buttonset button:hover {
	color: rgb(74, 74, 74);
	border: 4px solid rgb(74, 74, 74);
}
/* Стиль кнопок конец */

/* Стиль галереи */
.xfieldimagegallery {
	display: flex;
    list-style: none;
	flex-wrap: wrap;
	justify-content: space-between;
	margin-left: 0px;
	margin-right: 0px;
}
.xfieldimagegallery li {
    width: 40vmin;
    height: 40vmin;
    list-style: none;
    display: flex;
    flex: 0 0 33%;
    justify-content: center;
    align-items: stretch;
    float: left;
    overflow: hidden;
    border: 4px solid #F8F3ED;
    position:relative;
}
.kartinka {
    width: 42vmin;
    height: 42vmin;
    display: flex;
    flex: 0 0 33%;
    justify-content: center;
    align-items: stretch;
    float: left;
    overflow: hidden;
    border: 4px solid #F8F3ED;
    position:relative;
}
@media only screen and (max-width: 800px) {   
.xfieldimagegallery li {
    width: 46vmin;
    height: 46vmin;
    flex: 0 0 48%;
    float: none;
    margin: 0 auto;
    border: none;
    margin-bottom: 20px;
}
.kartinka {
    width: 46vmin;
    height: 46vmin;
    flex: 0 0 48%;
    float: none;
    margin: 0 auto;
    margin-top: 0;
    border: none;
    margin-bottom: 20px;
}
}
/* Стиль галереи конец */

/* Стиль аватара в панели авторизации */
.avatar {
    width: 38vmin;
    height: 38vmin;
    display: flex;
    justify-content: center;
    align-items: center;
    float: none;
    margin: 0 auto;
    margin-top: 25px;
    margin-bottom: 25px;
    overflow: hidden;
    border-radius: 50%;
    position:relative;
}
@media only screen and (max-width: 800px) {   
.avatar {
    width: 200px;
    height: 200px;
    border-radius: 0;
}
.avatar img {
    width: 200px;
    height: auto;
}
}
/* Стиль аватара в панели авторизации конец */

/* Окно авторизации */
.modal {
  position: absolute;
  visibility: hidden;
  opacity: 0;
  -webkit-transition: .3s;
  transition: .3s;
  top: -1000px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  overflow-y: scroll;
  padding: 60px 15px;
}

.modal_active {
  position: fixed;
  top: 0;
  visibility: visible;
  opacity: 1;
  -webkit-transition: .3s;
  transition: .3s;
}

.modal__content {
  width: 100%;
  max-width: 500px;
  padding: 50px;
  background: #f9f9f9;
  -webkit-box-shadow: 0 5px 15px black;
          box-shadow: 0 5px 15px black;
  border-radius: 3px;
  position: relative;
}

.modal__content a {
	color: #4A4A4A;
	text-decoration: none;
}

.modal__content a:hover {
	color: #000000;
	text-decoration: none;
}

.modal__close-button {
  background: #ff0000;
  height: 30px;
  width: 30px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  border: none;
  position: absolute;
  right: 0;
  top: 0;
  background: none;
  cursor: pointer;
  -webkit-transition: .3s;
  transition: .3s;
  outline: none;
}

.modal__close-button:hover {
  -webkit-transition: .3s;
  transition: .3s;
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
}
/* Окно авторизации конец */

/* Блок регистрации */
.regtext {
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
    display: block;
    margin: 0px;
    float: right;
    width: 50%;
    padding-left: 50px;
    position: relative;
}
.left {
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
    display: block;
    margin: 0px;
    float: left;
    width: 50%;
    padding-right: 50px;
    position: relative;
}
@media only screen and (max-width: 800px) { 
.regtext {
    margin: 20px 0;
    float: none;
    width: 100%;
    padding-left: 0;
}
.left {
    margin: 20px 0;
    float: none;
    width: 100%;
    padding-right: 0;
}
}
/* Блок регистрации конец */

/* Форма редактирования данных */
.ui-form {
	margin: 0px;
	width: 100%;
}
.ui-form tr:nth-child(odd) { background-color: #F8F3ED; }
.ui-form, tr, td {
	color: #252525;
	border: none;
	border-collapse: collapse;
}
.ui-form td, th { padding: 10px 5px 10px 0; }
.ui-form input {
	margin: 10px 0;
}
.ui-form textarea {
    margin: 0;
}
/* Форма редактирования данных конец */
@media only screen and (max-width: 800px) { 
.regtext {
    margin: 20px 0;
    float: none;
    width: 100%;
    padding-left: 0;
}
.ui-form {
    margin: 20px 0;
    float: none;
    width: 100%;
    padding-right: 0;
}
}
/* Блок регистрации конец */

/*Стили таблиц*/
table {
	margin: 0px;
	width: 100%;
}
table tr:nth-child(odd) { background-color: #FCFCFC; }

table, tr, td, th {
	color: #252525;
	border: none;
	border-collapse: collapse;
}

td, th { padding: 5px; }
/*Стили таблиц конец*/

/* Передача файлов */
.input-file { position: relative; display: inline-block; margin-bottom: 20px;}
.input-file input[type=file] {
	position: absolute;
	z-index: -1;
	opacity: 0;
	display: block;
	width: 0;
	height: 0;
}
.input-file input[type=file]:focus + span { box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25); }
.input-file input[type=file]:disabled + span { background-color: #eee; }
.input-file span {
	position: relative;
	display: inline-block;
	cursor: pointer;
	outline: none;
	text-decoration: none;
	vertical-align: middle;
	color: rgb(255 255 255);
	text-align: center;
	border-radius: 4px;
	background-color: #E7BD0D;
	line-height: 22px;
	height: 40px;
	padding: 10px 20px;
	box-sizing: border-box;
	border: none;
	margin: 0;
	transition: background-color 0.2s;
}
.input-file:hover span { background-color: #F7DB6A; }
.input-file:active span { background-color: #E7BD0D; }
/* Передача файлов конец */

/* Стиль чекбоксов */
.container {
 display: block;
 position: relative;
 padding-left: 35px;
 margin-bottom: 12px;
 cursor: pointer;
 -webkit-user-select: none;
 -moz-user-select: none;
 -ms-user-select: none;
 user-select: none;
}

.container input {
 position: absolute;
 opacity: 0;
 cursor: pointer;
 height: 0;
 width: 0;
}

.checkmark {
 position: absolute;
 top: 0;
 left: 0;
 height: 25px;
 width: 25px;
 background-color: white;
 border: 1px solid grey;
}

.container:hover input~.checkmark {
 background-color: #ccc;
}
.container input:checked~.checkmark {
 background-color: orange;
 border: 1px solid orange;
}
.checkmark:after {
 content: "";
 position: absolute;
 display: none;
}
.container input:checked~.checkmark:after {
 display: block;
}
.container .checkmark:after {
 left: 9px;
 top: 5px;
 width: 5px;
 height: 10px;
 border: solid white;
 border-width: 0 3px 3px 0;
 -webkit-transform: rotate(45deg);
 -ms-transform: rotate(45deg);
 transform: rotate(45deg);
}
/* Стиль чекбоксов конец */

/* --- PM --- */
/* Персональные сообщения */
#pm-menu {
    font-size: 12pt;
    font-weight: 400;
    text-transform: uppercase;
    color: #3A3732;
    background-color: #EADCCA;
    display: block;
    margin: 0px;
    float: none;
    width: 100%;
    position: relative;
}
#pm-menu span {
    margin: 10px;
    float: left;
    padding: 10px;
    border-right: 1px solid #3A3732;
}

.pm-box {
    display: block;
    margin: 0px;
    float: none;
    height: auto;
    width: 100%;
    position: relative;
}
		.pm_status { padding: 25px; background-color: #f7f7f7; border-radius: 2px; }
		.pm_progress_bar { background-color: #e5dbcc; margin-bottom: 10px; border-radius: 2px; }
		.pm_progress_bar span { background: #e85319; font-size: 0; height: 20px; border-radius: 2px; display: block; overflow: hidden }

/* --- Страница пользователя --- */
.userinfo_top { position: relative; padding-bottom: 50px; margin-bottom: 50px; }
.userinfo_top .avatar { position: absolute; }
.user_tab { list-style: none; padding: 0; margin: 0; }
	.user_tab > li { display: inline; margin-right: 1.2em; }
	.user_tab > li > a {
		text-decoration: none !important;
		font-size: .6em;
		-webkit-transition: all ease .3s; transition: all ease .3s;
	}
	.user_tab > li > a { color: #fff; opacity: .5; }
	.user_tab > li > a:hover { color: inherit; }
	.user_tab > li.active > a { cursor: default; font-size: 1em; opacity: 1; }

	.usinf { list-style: none; padding: 0; margin: 0 0 25px 0; } 
	.usinf li { padding: 12px 0; border-top: 1px solid #e6e6e6; }
	.usinf li:first-child { border-top-width: 0; }

	.ui-c1, .ui-c2 { display: inline-block; vertical-align: top; }
	.ui-c1 { width: 30%; margin-right: 5%; }
	.ui-c2 { width: 60%; }

	/* Окно пользователя */
	.userinfo { padding-left: 90px; }
	.userinfo .avatar { position: absolute; float: left; margin: 0 0 0 -90px; }
	.userinfo .avatar .cover { width: 60px; height: 60px; }
	.userinfo > ul { list-style: none; padding: 0; margin: 0; }

/* --- Статистика --- */
.stats_head > ul {
	list-style: none;
	padding: 0; margin: 0;
	font-size: 1.25em;
}
	.stats_head > ul > li { margin-top: 15px; padding-left: 30px; }
	.stats_head > ul > li:before {
		content: "";
		float: left;
		margin: 2px 0 0 -30px;
		width: 16px; height: 16px;
		border-radius: 50%;
		background-color:  #3394e6;
	}
	.stats_head > ul > li > b {
		display: block;
		font-size: .8em;
		opacity: .5;
		font-weight: normal;
	}
	.stats_head > ul > li.stats_d:before { background-color: #f6a71a; }
	.stats_head > ul > li.stats_w:before { background-color: #ce3f28; }
	
	.stat_group { margin-bottom: 25px; }
	.stat_group > h5 { margin-top: 0; margin-bottom: 1em; }
	.stat_group > ul { list-style: none; padding: 0; margin: 0; }
	.stat_group > ul > li { padding: .6em 0; border-top: 1px dotted #d5d5d5; }