nav.main,
nav.main ul,
nav.main ul li,
nav.main ul li a {
    border: 0;
    list-style: none;
    line-height: 0.8em;
    display: block;
    position: relative;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box
}
nav.main ul {
	margin: 0 auto;
	text-align: center;
}
nav.main:after,
nav.main > ul:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0
}
nav.main > ul > li {
	display: inline-block;
}
nav.main > ul > li > a {
    padding: 15px 20px 10px 20px;
    font-size: 1.2em;
    letter-spacing: 1px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
	line-height: 44px;
}

header .head.active nav.main > ul > li > a {
    color: #4f4f4f;
}

nav.main > ul > li:hover > a,
nav.main ul li.active a {
    color: #fff;
}

header .head.active nav.main > ul > li:hover > a,
header .head.active nav.main ul li.active a {
    color: #4f4f4f;
}

nav.main > ul > li:hover,
nav.main ul li.active:hover,
nav.main ul li.active,
nav.main ul li.has-sub.active:hover {
}
nav.main > ul > li > a:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 10px;
  left: 0;
  background-color: #fff;
  visibility: hidden;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transition: all 0.3s ease-in-out 0s;
  transition: all 0.3s ease-in-out 0s;
}

header .head.active nav.main > ul > li > a:before {
  background-color: #4f4f4f;
}

nav.main > ul > li > a:hover:before {
  visibility: visible;
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}
nav.main > ul > li.has-sub > a {
    padding-right: 30px
}
nav.main > ul > li.has-sub:hover > a:before {
    top: 23px;
    height: 0
}
nav.main ul ul {
    position: absolute;
    left: -9999px;
	z-index: 1000;
}
nav.main ul ul li {
    height: 0;
    -webkit-transition: all .25s ease;
    -ms-transition: all .25s ease;
    background: #6E6865;
    transition: all .25s ease
}
nav.main ul ul li:hover {
    background: #fff;
}
nav.main ul ul li:hover {} nav.main li:hover > ul {
    left: auto
}
nav.main li:hover > ul > li {
    height: 35px
}
nav.main ul ul ul {
    margin-left: 100%;
    top: 0
}
nav.main ul ul li a {
    border-bottom: 1px solid rgba(150, 150, 150, 0.15);
    padding: 11px 15px;
    min-width: 100px;
    font-size: 1.2em;
    text-decoration: none;
    color: #fff;
    font-weight: 400;
}
nav.main ul ul li:last-child > a,
nav.main ul ul li.last-item > a {
    border-bottom: 0
}
nav.main ul ul li:hover > a,
nav.main ul ul li a:hover {
    color: #4f4f4f;
}
nav.main ul ul li.has-sub > a:after {
    position: absolute;
    top: 16px;
    right: 11px;
    width: 8px;
    height: 2px;
    display: block;
    background: #ddd;
    content: ''
}
nav.main ul ul li.has-sub > a:before {
    position: absolute;
    top: 13px;
    right: 14px;
    display: block;
    width: 2px;
    height: 8px;
    background: #ddd;
    content: '';
    -webkit-transition: all .25s ease;
    -ms-transition: all .25s ease;
    transition: all .25s ease
}
nav.main ul ul > li.has-sub:hover > a:before {
    top: 17px;
    height: 0
}
nav.main ul ul li.has-sub:hover,
nav.main ul li.has-sub ul li.has-sub ul li:hover {
    background: #363636;
}
nav.main ul ul ul li.active a {
    border-left: 1px solid #333
}
nav.main > ul > li.has-sub > ul > li.active > a,
nav.main > ul ul > li.has-sub > ul > li.active> a {
    border-top: 1px solid #333
}

@media screen and (max-width: 1700px) {
	nav.main ul {
		max-width: 1150px;
	}
	nav.main > ul > li {
		min-height: 50px;
	}
	nav.main > ul > li > a {
		/*font-size: 1.4em;*/
		padding-left: 20px;
		padding-right: 20px;
	}
}

@media screen and (max-width: 1400px) {
    nav.main {
        width: 100%;
		padding-top: 0;
    }
    nav.main ul {
		max-width: none;
        width: 100%;
        display: none;
		z-index: 1000;
    }
    nav.main > ul {
		top: 78px;
	}
    nav.main ul li {
        width: 100%;
        border-top: 1px solid #fff;
		background-color: #6E6865;
    }
    nav.main ul li:hover {
        background: #DB6520;
    }
    nav.main ul ul li,
    nav.main li:hover > ul > li {
        height: auto
    }
    nav.main ul li a,
    nav.main ul ul li a {
        width: 100%;
        border-bottom: 0;
		color: #fff!important;
    }
    nav.main > ul > li {
        float: none;
    }
    nav.main ul ul li a {
        padding-left: 25px;
    }
    nav.main ul ul li {
        background: #6E6865!important;
    }
    nav.main ul ul li:hover {
        background: #791548!important
    }
    nav.main ul ul ul li a {
        padding-left: 35px
    }
	nav.main > ul > li > a::before {
		display: none;
	}
    nav.main ul ul li a {
		color: #791548;
        background: none
    }
    nav.main ul ul li:hover > a,
    nav.main ul ul li.active > a {
        color: #fff
    }
    nav.main ul ul,
    nav.main ul ul ul {
        position: relative;
        left: 0;
        width: 100%;
        margin: 0;
        text-align: left
    }
    nav.main > ul > li.has-sub > a:after,
    nav.main > ul > li.has-sub > a:before,
    nav.main ul ul > li.has-sub > a:after,
    nav.main ul ul > li.has-sub > a:before {
        display: none
    }
    nav.main .button {
        width: 70px;
        height: 70px;
        position: absolute;
        right: 20px;
        top: 7px;
        cursor: pointer;
        z-index: 1000;
    }
    nav.main .button:after {
        position: absolute;
        top: 29px;
        display: block;
        height: 9px;
        width: 70px;
        border-top: 9px solid #fff;
        border-bottom: 9px solid #fff;
        content: '';
    }
    .head.active nav.main .button:after {
		border-top-color: #DB6520;
		border-bottom-color: #DB6520;
	}
    nav.main .button:before {
        -webkit-transition: all .3s ease;
        -ms-transition: all .3s ease;
        transition: all .3s ease;
        position: absolute;
        top: 10px;
        display: block;
        height: 9px;
        width: 70px;
        background: #fff;
        content: '';
    }
    .head.active nav.main .button:before {
		background: #DB6520;
	}
    nav.main .button.menu-opened:after {
        -webkit-transition: all .3s ease;
        -ms-transition: all .3s ease;
        transition: all .3s ease;
        top: 30px;
        border: 0;
        height: 9px;
        width: 70px;
        background: #fff;
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        -o-transform: rotate(45deg);
        transform: rotate(45deg);
    }
    .head.active nav.main .button.menu-opened:after {
		background: #DB6520;
	}
    nav.main .button.menu-opened:before {
        top: 30px;
        background: #fff;
        width: 70px;
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        -ms-transform: rotate(-45deg);
        -o-transform: rotate(-45deg);
        transform: rotate(-45deg)
    }
    .head.active nav.main .button.menu-opened:before {
		background: #DB6520;
	}
    nav.main .submenu-button {
        position: absolute;
        z-index: 99;
        right: 0;
        top: 0;
        display: block;
        border-left: 1px solid #fff;
        height: 69px;
        width: 46px;
        cursor: pointer
    }
    .head.active nav.main .submenu-button {
		border-left-color: #DB6520;
	}
    nav.main .submenu-button:hover {
		border-color: #791548;
	}
    nav.main .submenu-button.submenu-opened {
        background: #791548;
    }
    nav.main ul ul .submenu-button {
        height: 34px;
        width: 34px
    }
    nav.main .submenu-button:after {
        position: absolute;
		top: 37px;
		right: 14px;
		width: 16px;
		height: 2px;
		display: block;
		background: #fff;
		content: '';
    }
    nav.main .submenu-button:hover:after,
	nav.main li:hover .submenu-button:after {
		background: #791548;
	}
    nav.main ul ul .submenu-button:after {
        top: 15px;
        right: 13px
    }
    nav.main .submenu-button.submenu-opened:after,
    nav.main li:hover .submenu-button.submenu-opened:after {
        background: #fff;
    }
    nav.main .submenu-button:before {
        position: absolute;
		top: 30px;
		right: 21px;
		display: block;
		width: 2px;
		height: 15px;
		background: #fff;
		content: '';
    }
    nav.main .submenu-button:hover:before,
	nav.main li:hover .submenu-button:before {
		background: #791548;
	}
    nav.main ul ul .submenu-button:before {
        top: 12px;
        right: 16px
    }
    nav.main .submenu-button.submenu-opened:before {
        display: none
    }
    nav.main ul ul ul li.active a {
        border-left: none
    }
    nav.main > ul > li.has-sub > ul > li.active > a,
    nav.main > ul ul > li.has-sub > ul > li.active > a {
        border-top: none
    }
	nav.main .button {
		width: 50px;
		height: 50px;
		top: 12px;
	}
	nav.main .button::before,
	nav.main .button::after,
    nav.main .button.menu-opened:after,
	nav.main .button.menu-opened:before {
		width: 50px;
		height: 7px;
	}
	nav.main .button::after {
		top: 24px;
		border-top-width: 7px;
		border-bottom-width: 7px;
	}
}