/* Clearfix */
.clearfix2:before,
.clearfix2:after {
    content: " ";
    display: table;
}
.clearfix2:after {
    clear: both;
}
.clearfix2 {
    *zoom: 1;
}

/* Основные стили */
nav {
	height: 40px;
	width: 100%;
	background: #4F221B;
	font-size: 1.6em;
	font-family: 'PT Sans', Arial, sans-serif;
	position: relative;
	border-bottom: 2px solid #283744;
}
nav ul {
	padding: 0;
	margin: 0 auto;
	width: 600px;
	height: 40px;
}
nav li {
	display: inline;
	float: left;
}
nav a {
	color: #fff;
	display: inline-block;
	width: 100px;
	text-align: center;
	text-decoration: none;
	line-height: 40px;
}
nav li a {
	border-right: 1px solid #576979;
	box-sizing:border-box;
	-moz-box-sizing:border-box;
	-webkit-box-sizing:border-box;
}
nav li:last-child a {
	border-right: 0;
}
nav a:hover, nav a:active {
	background-color: rgba(255, 255, 255, 0.2);
	color: #fff;
}
nav a#pull {
	display: none;
}

/* Стили для экранов 640px и меньше */
@media screen and (max-width: 640px) {
	nav { 
  		height: auto;
  	}
  	nav ul {
  		width: 100%;
  		display: block;
  		height: auto;
  	}
  	nav li {
  		width: 50%;
  		float: left;
  		position: relative;
  	}
  	nav li a {
		border-bottom: 1px solid #576979;
		border-right: 1px solid #576979;
	}
  	nav a {
	  	text-align: left;
	  	width: 100%;
	  	text-indent: 25px;
  	}
}

/*Стили для экранов 515px и меньше*/
@media only screen and (max-width : 480px) {
	nav {
		border-bottom: 0;
	}
	nav ul {
		display: none;
		height: auto;
	}
	nav a#pull {
		display: block;
		background-color: #DE7E0A;
		width: 100%;
		position: relative;
	}
	nav a#pull:after {
		content:"";
		background: url('/infusions/extra2_adaptive_navigation_panel/img/nav-icon.png') no-repeat;
		width: 30px;
		height: 30px;
		display: inline-block;
		position: absolute;
		right: 15px;
		top: 10px;
	}
}

/* Смартфоны */
@media only screen and (max-width : 320px) {
	nav li {
		display: block;
		float: none;
		width: 100%;
	}
	nav li a {
		border-bottom: 1px solid #576979;
	}
}