@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,400italic,600,700,800);

*,html,body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,label,fieldset,input,p,blockquote,th,td {
    margin: 0;
    padding: 0;
}

article,aside,figure,footer,header,hgroup,nav,section {
    display: block;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
}

a {
    color: #BA0707;
    text-decoration: none;
}

a:hover {
    color: #BA0707;
}



.menu_bg{
	background: rgb(73,155,234); /* Old browsers */
	background: -moz-linear-gradient(top,  rgba(73,155,234,1) 0%, rgba(32,124,229,1) 100%); 
	background: -webkit-linear-gradient(top,  rgba(73,155,234,1) 0%,rgba(32,124,229,1) 100%); 
	background: linear-gradient(to bottom,  rgba(73,155,234,1) 0%,rgba(32,124,229,1) 100%); 
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#499bea', endColorstr='#207ce5',GradientType=0 ); 
	
}

nav {
    display: block;
    background--: #374147;
	
}


.top_menu {
    display: block;
	font-size:16px;
}

.top_menu li {
    display: inline-block;
    position: relative;
    z-index: 100;
}

.top_menu li:first-child {
    margin-left: 0;
}

.top_menu li a {
    font-weight: 600;
    text-decoration: none;
    padding: 15px 15px;
    display: block;
    color: #fff;
    transition: all 0.2s ease-in-out 0s;
}


.top_menu li ul li a {
    font-weight: 600;
    text-decoration: none;
    padding: 15px 15px;
    display: block;
    color: #494949;
	border-bottom:1px dashed #c7c7e2;
	
    transition: all 0.2s ease-in-out 0s;
	font-size:14px;
}




.top_menu li a:hover,.top_menu li:hover>a {
    color: #fff;
    background: #9ca3da;
	
}

.top_menu ul {
    visibility: hidden;
    opacity: 0;
    margin: 0;
    padding: 0;
    width--: 234px;
    position: absolute;
    left: 0px;
    background: #e8f3ff;
    z-index: 99;
    transform: translate(0,20px);
    transition: all 0.2s ease-out;
}

.top_menu ul:after {
    bottom: 100%;
    left: 50%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-color: rgba(255, 255, 255, 0);
    border-bottom-color: #fff;
    border-width: 6px;
    margin-left: -6px;
}

.top_menu ul li {
    display: block;
    float: none;
    background: none;
    margin: 0;
    padding: 0;
}

.top_menu ul li a {
    font-size: 18px;
    font-weight: normal;
    display: block;
    color: #797979;
    background: #e8f3ff;
}

.top_menu ul li a:hover,.top_menu ul li:hover>a {
    background: #9ca3da;
    color: #fff;
}

.top_menu li:hover>ul {
    visibility: visible;
    opacity: 1;
    transform: translate(0,0);
}

.top_menu ul ul {
    left: 169px;
    top: 0px;
    visibility: hidden;
    opacity: 0;
    transform: translate(20px,20px);
    transition: all 0.2s ease-out;
}

.top_menu ul ul:after {
    left: -6px;
    top: 10%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-color: rgba(255, 255, 255, 0);
    border-right-color: yellow;
    border-width: 6px;
    margin-top: -6px;
}

.top_menu li>ul ul:hover {
    visibility: visible;
    opacity: 1;
    transform: translate(0,0);
}

.responsive-menu {
    display: none;
    width: 100%;
    padding: 20px 15px;
    background: #374147;
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
}

.responsive-menu:hover {
    background: #374147;
    color: #fff;
    text-decoration: none;
}

a.active {
    background: #9ca3da;
}


.topmenu_head{text-align:right; width:100%; padding:7px;}
.topmenu_head a{color:#454545;}



@media (min-width: 1200px){
    nav {
        width: 1200px;
		position: relative;
        margin: 0px auto;
    }
	
	.top_menu > li{border-left:1px solid #bbcedb; list-style-type: none; margin-left:-5px;}
	.top_menu > li:last-of-type{border-right:1px solid #bbcedb;}



	


}
@media (min-width: 768px) and (max-width: 979px) {
    .mainWrap {
        width: 768px;
    }

    .top_menu ul {
        top: 37px;
    }

    .top_menu li a {
        font-size: 14px;
    }

    .top_menu a.active {
        background: #374147;
    }




	a.responsive-menu, a.responsive-menu:hover, a.responsive-menu:active{color:#ffffff !important;}
	
}

@media (max-width: 767px) {
    .mainWrap {
        width: auto;
        padding: 50px 20px;
    }

    .top_menu {
        display: none;
    }

    .responsive-menu {
        display: block;
    }

    nav {
        margin: 0;
        background: none;
    }

	
    .top_menu li {
        display: block;
        margin: 0;
    }

    .top_menu li a {
        background: #fff;
        color: #797979;
    }

    .top_menu li a:hover,.top_menu li:hover>a {
        background: #9ca3da;
        color: #fff;
    }

    .top_menu ul {
        visibility: hidden;
        opacity: 0;
        top: 0;
        left: 0;
        width: 100%;
        transform: initial;
    }

    .top_menu li:hover>ul {
        visibility: visible;
        opacity: 1;
        position: relative;
        transform: initial;
    }

    .top_menu ul ul {
        left: 0;
        transform: initial;
    }

    .top_menu li>ul ul:hover {
        transform: initial;
    }


	.top_menu > li a{background-color:#e6f7ff; border-bottom:1px dashed #0076ae; }
	a.responsive-menu, a.responsive-menu:hover, a.responsive-menu:active{color:#ffffff !important;}



}