*
{
	margin: 0;
	padding: 0;
	text-decoration: none;
}

header
{
	position: relative;
	width: 100%;
	background: #333;
}

div.logo 
{
	position: relative;
	z-index: 123;
	padding: 12px 10px;
	font: 18px verdana;
	color: #00ccff;
	float: left;
	width: 16.5%;
	box-sizing: border-box;
}

div.logo a 
{
	color: #00ccff;
}

div.logo:hover, div.logo a:hover
{
	color: #269EDE;
    text-decoration: none;
}

#menu
{
	position: relative;
	width: 980px;
	margin: 0 auto;
    z-index: 100;
}

#menu,#menu ul,#menu ul li,#menu ul li a,#menu #head-mobile
{
    position: relative;
	border: 0;
	list-style: none;
	line-height: 1;
	display: block;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

#menu:after,#menu > ul:after
{
	content: ".";
	display: block;
	clear: both;
	visibility: hidden;
	line-height: 0;
	height: 0;
}

#menu #head-mobile
{
	display: none;
}

#menu
{
	font-family: sans-serif;
	background: #003C5E;
    border-bottom: 3px solid #00a6ff;
}

#menu ul.menu
{
    margin-bottom: 0px;
}

#menu > ul > li
{
	float: left;
    cursor: pointer;
}

#menu > ul > li > a
{
	padding: 17px;
	font-size: 12px;
	letter-spacing: 1px;
	text-decoration: none;
	color: #ddd;
	font-weight: 700;
}

#menu > ul > li:hover > a,#menu ul li.active a
{
	color: #fff;
}

#menu ul li.active:hover, #menu ul li.active, #menu ul li.has-sub.active:hover
{
	background: #269EDE !important;
	-webkit-transition: background .3s ease;
	-ms-transition: background .3s ease;
	transition: background .3s ease;
}

#menu > ul > li.has-sub > a
{
	padding-right: 30px;
}

#menu > ul > li.has-sub > a:after
{
	position: absolute;
	top: 22px;
	right: 11px;
	width: 8px;
	height: 2px;
	display: block;
	background: #ddd;
	content: "";
}

#menu > ul > li.has-sub > a:before
{
	position: absolute;
	top: 19px;
	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
}

#menu > ul > li.has-sub:hover > a:before
{
	top: 23px;
	height: 0;
}

#menu ul ul
{
	position: absolute;
	left: -9999px;
}

#menu ul ul li
{
	height: 0;
	-webkit-transition: all .25s ease;
	-ms-transition: all .25s ease;
	background: #003C5E;
	transition: all .25s ease;
    cursor: pointer;
}

#menu ul ul li:hover{}

#menu li:hover > ul
{
	left: auto;
}

#menu li:hover > ul > li
{
	height: 35px;
}

#menu ul ul ul
{
	margin-left: 100%;
    top:0
}

#menu ul ul li a
{
	border-bottom: 1px solid rgba(255,255,255,0.25);
	padding: 11px 15px;
	min-width: 180px;
	font-size: 12px;
	text-decoration: none;
	color: #ddd;
	font-weight: 400;
}

#menu ul ul li:last-child > a,#menu ul ul li.last-item > a
{
	border-bottom: 0;
}

#menu ul ul li:hover > a,#menu ul ul li a:hover
{
	color: #fff;
}

#menu ul ul li.has-sub > a:after
{
	position: absolute;
	top: 16px;
	right: 11px;
	width: 8px;
	height: 2px;
	display: block;
	background: #ddd;
	content: '';
}

#menu 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
}

#menu ul ul > li.has-sub:hover > a:before
{
	top: 17px;
	height: 0;
}

#menu ul ul li.has-sub:hover, #menu ul li.has-sub ul li.has-sub ul li:hover, #menu ul li.has-sub ul li:hover,#menu ul li:hover
{
	background: #424242;
}

#menu ul li:hover
{
    background: #363636
}

#menu ul ul ul li.active a
{
	border-left: 1px solid #333
}

#menu > ul > li.has-sub > ul > li.active > a,#menu > ul ul > li.has-sub > ul > li.active> a
{
	border-top: 1px solid #333
}

@media screen and (max-width:1000px)
{
	div.logo
	{
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 46px;
		text-align: center;
		padding: 10px 0 0 0 ;
		float: none
	}
	
	div.logo2
	{
		display: none
	}
	
	nav
	{
		width: 100%;
	}
	
	#menu
	{
		width: 100%;
	}
	
	#menu ul
	{
		width: 100%;
		display: none;
	}
	
	#menu ul li
	{
		width: 100%;
		border-top: 1px solid rgba(255,255,255,0.25);
	}
	
	#menu ul ul li.has-sub:hover, #menu ul li.has-sub ul li.has-sub ul li:hover, #menu ul li.has-sub ul li:hover,#menu ul li:hover
    {
        background: #424242 !important;
    }

    #menu ul li:hover
    {
        background: #363636 !important;
    }
	
	#menu ul ul li,#menu li:hover > ul > li
	{
		height: auto;
	}
	
	#menu ul li a,#menu ul ul li a
	{
		width: 100%;
		border-bottom: 0;
	}
	
	#menu > ul > li
	{
		float: none;
	}
	
	#menu ul ul li a
	{
		padding-left: 25px;
	}
	
	#menu ul ul li
	{
		background: #262626!important;
	}
	
	#menu ul ul ul li a
	{
		padding-left: 35px;
	}
	
	#menu ul ul li a
	{
		color: #ddd;
		background: none;
	}
	
	#menu ul ul li:hover > a,#menu ul ul li.active > a
	{
		color: #fff;
	}
	
	#menu ul ul,#menu ul ul ul
	{
		position: relative;
		left: 0;
		width: 100%;
		margin: 0;
		text-align: left;
	}

	#menu > ul > li.has-sub > a:after,#menu > ul > li.has-sub > a:before,#menu ul ul > li.has-sub > a:after,#menu ul ul > li.has-sub > a:before
	{
		display: none;
	}
	
	#menu #head-mobile
	{
		display: block;
		padding: 23px;
		color: #ddd;
		font-size: 12px;
		font-weight: 700;
	}
	
	div.button
	{
		width: 55px;
		height: 46px;
		position: absolute;
		right: 0;
		top: 0;
		cursor: pointer;
		z-index: 12399994;
	}
	
	div.button:after
	{
        -webkit-box-sizing: content-box;
        -moz-box-sizing: content-box;
        box-sizing: content-box;
		position: absolute;
		top: 22px;
		right: 20px;
		display: block;
		height: 4px;
		width: 20px;
		border-top: 2px solid #dddddd;
		border-bottom: 2px solid #dddddd;
		content: '';
	}
	
	div.button:before
	{
        -webkit-box-sizing: content-box;
        -moz-box-sizing: content-box;
        box-sizing: content-box;
		-webkit-transition: all .3s ease;
		-ms-transition: all .3s ease;
		transition: all .3s ease;
		position: absolute;
		top: 16px;
		right: 20px;
		display: block !important;
		height: 2px;
		width: 20px;
		background: #ddd;
		content: '';
	}
	
	div.button.menu-opened:after
	{
		-webkit-transition: all .3s ease;
		-ms-transition: all .3s ease;
		transition: all .3s ease;
		top: 23px;
		border: 0;
		height: 2px;
		width: 19px;
		background: #fff;
		-webkit-transform: rotate(45deg);
		-moz-transform: rotate(45deg);
		-ms-transform: rotate(45deg);
		-o-transform: rotate(45deg);
		transform: rotate(45deg);
	}
	
	div.button.menu-opened:before
	{
		top: 23px;
		background: #fff;
		width: 19px;
		-webkit-transform: rotate(-45deg);
		-moz-transform: rotate(-45deg);
		-ms-transform: rotate(-45deg);
		-o-transform: rotate(-45deg);
		transform: rotate(-45deg);
	}
	
	#menu .submenu-button
	{
		position: absolute;
		z-index: 99;
		right: 0;
		top: 0;
		display: block;
		border-left: 1px solid rgba(255,255,255,0.25);
		height: 46px;
		width: 46px;
		cursor: pointer;
	}
	
	#menu .submenu-button.submenu-opened
	{
		background: #262626;
	}
	
	#menu ul ul .submenu-button
	{
		height: 34px;
		width: 34px;
	}
	
	#menu .submenu-button:after
	{
		position: absolute;
		top: 22px;
		right: 19px;
		width: 8px;
		height: 2px;
		display: block;
		background: #ddd;
		content: '';
	}
	
	#menu ul ul .submenu-button:after
	{
		top: 15px;
		right: 13px;
	}
	
	#menu .submenu-button.submenu-opened:after
	{
		background: #fff;
	}
	
	#menu .submenu-button:before
	{
		position: absolute;
		top: 19px;
		right: 22px;
		display: block;
		width: 2px;
		height: 8px;
		background: #ddd;
		content: '';
	}
	
	#menu ul ul .submenu-button:before
	{
		top: 12px;
		right: 16px;
	}
	
	#menu .submenu-button.submenu-opened:before
	{
		display: none;
	}
	
	#menu ul ul ul li.active a
	{
		border-left: none;
	}
	
	#menu > ul > li.has-sub > ul > li.active > a,#menu > ul ul > li.has-sub > ul > li.active > a
	{
		border-top: none;
	}	
}