.mobile-nav-icon {
    width: 40px;
    height: 32px;
    position: relative;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
    cursor: pointer;
}

.mobile-nav-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background-color: #005884;
    opacity: 1;
    left: 0;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s ease-in-out;
}

.mobile-nav-icon span:nth-child(1) {
    top: 8px;
}

.mobile-nav-icon span:nth-child(2), .mobile-nav-icon span:nth-child(3) {
    top: 15px;
}

.mobile-nav-icon span:nth-child(4) {
    top: 22px;
}

.mobile-nav-icon:not(.open) span:nth-child(1) {
    width: 85%;
}

.mobile-nav-icon:not(.open) span:nth-child(4) {
    width: 70%;
}

.mobile-nav-icon:not(.open):hover span {
    width: 100%;
}

.mobile-nav-icon.open span:nth-child(1) {
    top: 7px;
    width: 0%;
    left: 50%;
}

.mobile-nav-icon.open span:nth-child(2) {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

.mobile-nav-icon.open span:nth-child(3) {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.mobile-nav-icon.open span:nth-child(4) {
    top: 8px;
    width: 0%;
    left: 50%;
}

.mobile-nav-icon::after {
    content: "Закрыть";
    position: absolute;
    top: -4px;
    color: white;
    height: 0px;
    opacity: 0;
    visibility: hidden;
    letter-spacing: 0.33rem;
    transform: translateX(40px);
    -webkit-transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, height 0s linear;
    -moz-transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, height 0s linear;
    -ms-transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, height 0s linear;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, height 0s linear;
}

@media screen and (max-width: 767px) {
    .mobile-nav-icon::after {
        transform: translateX(40px);
    }
}

.mobile-nav-icon.open::after {
    opacity: 1;
    height: 22px;
    transform: translateX(80px);
    visibility: visible;
}

@media screen and (max-width: 767px) {
    .mobile-nav-icon.open::after {
        transform: translateX(40px);
    }
}

.header-nav {
	position: relative;
	z-index: 7;
	padding-top: 120px;
}

.header-nav ul {
	display: -webkit-flex;
	display: -moz-flex;
	display: -ms-flex;
	display: -o-flex;
	display: flex;
	justify-content: space-between;
	list-style: none;
	margin: 0;
	background-color: #f1f1f1;
}

.header-nav ul li {
	flex-grow: 1;
}
.header-nav ul li a {
	display: block;
	padding: 10px;
	border: 1px solid #ccc;
	text-align: center;
	font-size: 20px;
	font-family: "PlumbCondensed";
	color: rgb( 48, 48, 48 );
	text-transform: uppercase;
	position: relative;
}
/*.header-nav ul li a:after {
    content: "";
    display: block;
    position: absolute;
    bottom: 10px;
    left: 5%;
    height: 2px;
    width: 100%;
    max-width: 0%;
    background-color: transparent;
    transition: all 300ms ease-in-out;
}
.header-nav ul li:hover a:after {
    max-width: 90%;
    background-color: #005884;
}*/
.header-nav ul li a:hover {
	color: #005884;
}
.header-nav ul li:first-child a,
.header-nav ul li:last-child a {
	border-right: none;
	border-left: none;
}
.header-nav ul li + li {
	margin-left: -1px;
}

.header-nav-mobile {
	position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    z-index: 11;
    display: none;
    background-image: url("/local/templates/imetria/img/menu-bg.jpg");
    background-size: cover;
    background-position: right;
    box-shadow: 0 0 11px rgba(0, 0, 0, .75);
    padding-top: 15px;
    padding-bottom: 15px;
}
.header-nav-mobile ul {
	display: -webkit-flex;
	display: -moz-flex;
	display: -ms-flex;
	display: -o-flex;
	display: flex;
	-webkit-flex-direction: column;
	-moz-flex-direction: column;
	-ms-flex-direction: column;
	-o-flex-direction: column;
	flex-direction: column;
	justify-content: center;
	-ms-align-items: center;
	align-items: center;
	list-style: none;
	margin: 0;
	height: 100%;
}
.header-nav-mobile .mobile-nav-icon {
    margin: 10px auto 20px 25px;
}
.header-nav-mobile ul li {
	width: 100%;
}
.header-nav-mobile ul > img {
	width: 100px;
	border-bottom: 2px solid rgb(86, 86, 86);
	padding: 0 0 20px;
	margin-bottom: 20px;
}
.header-nav-mobile ul li a {
	display: block;
	padding: 10px;
	/*border: 1px solid #ccc;*/
	text-align: center;
	font-size: 22px;
	font-family: "PlumbCondensed";
	color: rgb(33, 33, 33);
	text-transform: uppercase;
	position: relative;
	transition: all 300ms ease-in-out;
}
.header-nav-mobile ul li a:after {
	content: "";
    display: block;
    position: absolute;
    bottom: 2px;
    left: 15%;
    height: 2px;
    width: 100%;
    max-width: 0%;
    background-color: transparent;
    transition: all 300ms ease-in-out;
}
.header-nav-mobile ul li:hover a:after {
    max-width: 70%;
    background-color: #005884;
}
.header-nav-mobile ul li a:hover {
	color: #005884;
	transform: scale(1.15);
}
.header-nav-mobile ul li:first-child a,
.header-nav-mobile ul li:last-child a {
	border-right: none;
	border-left: none;
}
.header-nav-mobile ul li + li {
	margin-top: -1px;
}