* {
	margin: 0;
	padding: 0;
}
html {
	height: 100%;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary {
	display: block;
}
body {
	font: 12px/18px Arial, sans-serif;
	height: 100%;
}


*, *:after, *:before {
box-sizing: border-box;
padding: 0;
margin: 0;
transition: .5s ease-in-out; /* добавим плавность переходов для всех элементов страницы*/
}

a {
text-decoration: none;
outline: none;
color: #4B7E3B;
}
img{
	max-width: 100%;
	height: auto;
	display: block;
}


h1, h2, h3, h4, h5, h6 {
font-weight: normal;
letter-spacing: 1px;
}

h1 {
	font-size: 2em;	
	line-height: 1.5em;
}

p {
	font-size: 1.2em;
	line-height: 1.2em;
}

body {
	font: 12px/18px Arial, Tahoma, Verdana, sans-serif;
	height: 100%;
	background-color: #F6F6F6;
	line-height: 1;
	color: #373737;
	background: #f7f7f7;
}
/* добавим очистку потока для всех контейнеров, внутри которых задано обтекание дочерних элементов */
header:after, .container:after, footer:after, .widget-posts-list li:after, #subscribe:after {
content: "";
display: table;
clear: both;
} 
/* стилевой класс, который управляет шириной контейнера сетки*/
.container {
margin: 0 auto;
width: 100%;
max-width: 1200px;
padding: 0 15px;

} 


header {
width: 100%;
background: white;
box-shadow: 3px 3px 1px rgba(0,0,0,.05);
padding: 15px 0;
margin-bottom: 30px;
position: relative;
}

/* логотип */
.logo {
display: block; 
float: left;
}



/* меню */
#menu {
	float: right;
}
#menu li {
	display: inline-block;
	margin-right: 30px;
}
#menu a {
	color: #111;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 600;
	display: block;
	line-height: 40px;
}
#menu a:hover {
	color: #EF5A42;
}
#menu li:last-child  {
	margin-right: 0;
}

/* кнопка переключения меню, появляющаяся при ширине 768px */
.nav-toggle {
display: none;
position: relative;
float: right;
width: 40px;
height: 40px;
margin-left: 20px;
background: #EF5A42;
cursor: pointer;
}
.nav-toggle span {
display: block;
position: absolute;
top: 19px;
left: 8px;
right: 8px;
height: 2px;
background: white;
}
.nav-toggle span:before, .nav-toggle span:after {
content: "";
position: absolute;
display: block;
left: 0;
width: 100%;
height: 2px;
background: white;
}
.nav-toggle span:before {
top: -10px;
}
.nav-toggle span:after {
bottom: -10px;
}
/* класс, который будет добавлен в верхнему меню при нажатии на кнопку и покажет скрытое меню */
#menu.active {
max-height: 369px;
}

.index_block {
	padding: 5px;
}

.index_block_title {
	text-align: left;
	padding: 8px 20px;	
	margin-bottom: 6px;
	background: #A14446;
	width: 100%;
	height: 30px;	
	border-radius: 5px 0 5px 0;
}

.index_block_title span {
	font-size: 1.1em;
	font-weight: bold;
	text-transform: uppercase;
	position: relative;
}


.index_block_title span a {
	color: #FFF;
}

.index_block_title span a:hover {
	text-decoration: underline;
}


footer {
padding: 30px 0;
background: #3C3D41;
color: white;
}
.footer-col {
width: 33.3333333333%;
float: left;
}
.footer-col a {
color: white;
}
.footer-col:last-child {
text-align: right;
}


@media (max-width: 768px) {
/* показываем кнопку для переключения верхней навигации */
.nav-toggle {
display: block;
}
header {
padding: 10px 0;
}
/* скрываем верхнее меню, отменяем обтекание, позиционируем его, сместив на высоту шапки сайта */ 
#menu {
max-height: 0;
background: white;
float: none;
position: absolute;
overflow: hidden;
top: 63px;
right: 0;
left: 0;
margin: 0;
padding: 0;
z-index: 100;
}
/* делаем элементы списка блочными, чтобы они располагались друг под другом */
#menu li {
display: block;
text-align: center;
border-bottom: 1px solid #EBEBE3;
margin-right: 0;
}

.copyright {
	float: left;
}
.counter  {
	float: right;
}


.ban {
	display:   inline;	
}

.ban-mob {
	display:   none;	
}

@media (max-width: 480px) {


		.ban {
			display:   none;
		}
		
		.ban-mob {
			display:   inline;	
		}

		/* позиционируем меню на увеличившуюся высоту шапки */
		#menu {
		top: 50px;
		}


		/* отменяем обтекание для столбцов подвала страницы */
		.footer-col {
		float: none;
		margin-bottom: 20px;
		width: 100%;
		text-align: center;
		}
		.footer-col:last-child {
		text-align: center;
		margin-bottom: 0;
		}
}


