/* Главное меню */
header nav {
	clear: both;
	background: url('/thm/pfrf2/img/sprite.png') 0 -400px repeat-x;
	margin-top: 0.8em;
	padding: 1.2em 15px 0 15px;
	position: relative;
}

.assist-view nav {
	background: none;
}

.assist-view header nav {
	margin-bottom: 0.5em;
}

.assist-view nav:before {
	display: none !important;
}

.more-wide header nav {
	padding-left: 0;
	padding-right: 0;
}

.adopt-mobile header nav {
	display: none
}

header nav:before {
	content: '';
	width: 25px;
	height: 21px;
	margin-bottom: -21px;
	position: relative;
	top: -1.2em;
	left: -25px;
	background: url('/thm/pfrf2/img/sprite.png') -256px -59px;
	display: none;
}

.more-wide header nav:before {
	display: block;
}

header nav ul li {
	float: left;
	width: 25%;
	font-size: 110%;
	text-align: center;
	white-space: nowrap;
}

.adopt-800 header nav ul li {
	font-size: 100%
}

.adopt-700 header nav ul li {
	font-size: 90%
}

.adopt-600 header nav ul li {
	font-size: 80%
}

header nav ul li:last-child {
	text-align: right
}

header nav ul li:first-child {
	text-align: left
}

header nav ul:after {
	content: "";
	display: block;
	clear: both;
	height: 1.3em;
}

header nav.with-sub-menu ul:after {
	height: 0
}

header nav a {
	text-decoration: none;
	border-bottom: 1px solid #9dc3cf;
	padding-top: 7px;
	top: -7px;
}

header nav li.active a {
	display: inline-block;
	background: url('/thm/pfrf2/img/sprite.png') 100% -273px no-repeat #f2f5f7;
	border-bottom: none !important;
	padding: 7px 25px 0 10px;
	height: 28px;
	position: relative;
	border-top-left-radius: 3px;
	border-bottom-left-radius: 3px;
	color: #000;
}

.assist-view header nav ul li.active a,
.assist-view header nav ul li a {
	background: transparent !important;
	color: black;
	text-decoration: none;
	padding: 0.5em 1em !important;
	border: 1px solid black;
	border-radius: 0;
}

.assist-view header nav ul li.active a,
.assist-view header nav ul li a:hover {
	color: black;
	background: white;
	border: 4px solid black !important;
	position: relative;
}

.assist-blue header nav ul li.active a,
.assist-blue header nav ul li a:hover {
	border-color: #14305e !important;
}

.assist-invert header nav ul li.active a,
.assist-invert header nav ul li a:hover {
	border-color: white !important;
}

.assist-view header nav ul li a {
	top: 0;
}

.assist-view header nav ul li.active a {
	position: relative;
	top: -11px;
	height: auto !important;
	padding: 0.4em 1em !important;
}

.assist-view header nav ul li:first-of-type a:hover,
.assist-view header nav ul li:first-of-type.active a {
	left: -3px;
}

.assist-view header nav ul li:last-of-type a:hover,
.assist-view header nav ul li:last-of-type.active a {
	left: 3px;
}

.assist-blue header nav ul li a:hover {
	background: #9dd1ff;
}

.assist-invert header nav ul li a {
	border-color: white !important;
	color: white !important;
}

.assist-invert header nav ul li a:hover {
	background: black;
	color: white !important;
}

.assist-large header nav ul li:nth-child(3) a {
	position: relative;
	left: -0.5em;
}

.assist-large header nav ul li:nth-child(3) a:hover {
	left: -13px;
}

/* подменю */
.sub-menu {
	font-size: 90%;
	position: relative;
	padding-left: 15px;
	top: -22px;
	margin-bottom: -8px;
	display: none;
}

.more-wide .sub-menu {
	padding-left: 0
}

.adopt-mobile .sub-menu {
	display: none
}

.sub-menu:after {
	content: '';
	clear: both;
	display: block;
}

.sub-menu li {
	float: left;
	background: #e3eef1;
	padding: 3px 10px;
	border-radius: 3px;
	margin-right: 5px;
}

.sub-menu li:last-child {
	background: url('/thm/pfrf2/img/sprite.png') 100% -313px no-repeat #e3eef1;
	padding-right: 24px;
}

.assist-view .sub-menu li {
	background: transparent;
	border-radius: 0;
	margin: 0 1em 1em 0;
	font-size: 110%;
	border: 1px solid black;
}

.assist-view .sub-menu li:last-child {
	margin-right: 0;
	padding-right: 10px;
}

.assist-view .sub-menu li.active,
.assist-view .sub-menu li:hover {
	box-shadow: 0 0 2px black, 0 0 2px black, 0 0 2px black, 0 0 2px black, 0 0 2px black;
}

.sub-menu li a {
	text-decoration: none;
}