/**
 * Design Shack Respnsive Menu
 */
nav * {
    padding: 0;
    margin: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
nav {
    width: 100%;
    /*margin: 100px auto;*/
    overflow: hidden;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    background-color: #525151;
    background-image: url(/img/top_menu_bg.gif);
    background-repeat: repeat-x;
    background-position: 50%;
    margin: 0;
    /*margin-bottom:20px;*/
}
nav ul {
    list-style: none;
    overflow: hidden;
    vertical-align: middle;
    margin: 0;


}
nav li a {
    border-right: 1px solid #666;
    color: #FFF;
    display: table-cell;
    float: left;
    /*	font: 400 11px/1.3 Arial, Helvetica, sans-serif; */
    font-size: 13px;
    /*padding: 10px;*/
    letter-spacing: normal;
    line-height: 140%;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    /*text-transform: uppercase; */
    width: 12.5%; /* 100/7 */
    vertical-align: middle;
    /*height:40px;*/
    /*	background: #222; */
    padding: 7px 7px;

    /*TRANSISTIONS*/
    -webkit-transition: background 0.5s ease;
    -moz-transition: background 0.5s ease;
    -o-transition: background 0.5s ease;
    -ms-transition: background 0.5s ease;
    transition: background 0.5s ease;
}
/*HOVER*/
nav li a:hover {
    background: #666;
    color: #0CF;
}
nav li.selected a {
    background: #666;
    color: #0CF;
}
nav li a.onerow {
    padding: 10px 0;
}
/* MEDIA QUERIES*/
/*
@media only screen and (max-width : 1220px),
only screen and (max-device-width : 1220px){
	nav li a {
		font: 400 10px/1.4 'Cutive', Helvetica, Verdana, Arial, sans-serif;
	}
	
	nav small {
		font: 100 10px/1 Helvetica, Verdana, Arial, sans-serif;
	}
}
*/
@media only screen and (max-width: 930px)
/*, only screen and (max-device-width: 930px)*/
{
    nav li a {
        width: 25%;
        border-bottom: 1px solid #fff;
        /*font: 400 11px/1.4 'Cutive', Helvetica, Verdana, Arial, sans-serif;*/
        font-size: 11px;
    }

    nav li:last-child a, nav li:nth-child(4) a {
        border-right: none;
    }

    nav li:nth-child(5) a, nav li:nth-child(6) a, nav li:nth-child(7) a, nav li:nth-child(8) a {
        border-bottom: none;
    }

    /*.main_h {
    left: 152px!important; */
}

/*}*/
/*
@media only screen and (max-width : 1024px),
only screen and (max-device-width : 1024px){
		.main_h h1 { font-size:1.6em!important;}
	}
	*/
@media only screen and (max-width: 580px)
/*, only screen and (max-device-width: 580px)*/
{
    nav li a {
        width: 50%;
        /*font: 400 8px 'Cutive', Helvetica, Verdana, Arial, sans-serif!important;*/
        /*padding-top: 12px;
        padding-bottom: 12px;*/
        font-size: 8px;
    }

    nav li:nth-child(even) a {
        border-right: none;
    }

    nav li:nth-child(5) a, nav li:nth-child(6) a {
        border-bottom: 1px solid #fff;
    }


    .main_h h1 {
        font-size: 1em !important;
    }

    .main_h span.descr {
        font-size: 0.8em !important;
    }


}
@media only screen and (max-width: 320px)
/*, only screen and (max-device-width: 320px)*/
{
    nav li a {
        /*font: 400 7px 'Cutive', Helvetica, Verdana, Arial, sans-serif;*/
        font-size: 7px;
    }
}