
*, *:after, *:before {
box-sizing: border-box;
padding: 0;
margin: 0;
transition: .5s ease-in-out; /* плавность переходов для всех элементов страницы*/
}
ul {
list-style: none;
}
a {
text-decoration: none;
outline: none;
}
img {
display: block;
width: 100%;
}
h1, h2, h3, h4, h5, h6 {
font-family: 'Playfair Display';
font-weight: normal;
letter-spacing: 1px;
}
body {
font-family: 'Open Sans', arial, sans-serif;
font-size: 14px;
line-height: 1,1;
color: #000;
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: 960px;
padding: 0 15px;
} 

header {
width: 100%;
background: #999999;
box-shadow: 10px 7px 8px #333;
padding: 0;
margin-bottom: 20px;
position: relative;
}

.topline {
display: in-block;
position: relative;
width: 100%;
height: 19px;
padding: 4px 25px 0 0;
background-color: #999;
text-align: right; 
}
.topline a {
color: #333
}
.topline a:hover {
color: #399
}

/* логотип */
.logo {
display: block; 
float: left;
color: white;
display: inline-block;
width: 200px;
height: 45px;
line-height: 40px;
border: 2px #399 solid;
border-radius: 50px 0 50px 0;
-moz-border-radius: 50px 0 50px 0;
-webkit-border-radius: 50px 0 50px 0;
-khtml-border-radius: 50px 0 50px 0;
background-color: #9cc;
font-size: 30px;
font-weight: bold;
padding: 0px 0px 5px 0px;
margin: 5px 0;
text-align: left;
text-shadow: 3px 3px 3px #066,
                    -3px -3px 3px #000;
}

/* меню */
#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: 35px;
}
#menu a:hover {
color: #399;
}
#menu li:last-child  {
margin-right: 20px;
}
/* форма поиска */
#searchform {
float: right;
width: 250px;
height: 40px;
margin-left: 10px;
display: inline-block;
position: relative;
}

/* кнопка переключения меню, появляющаяся при ширине 768px */
.nav-toggle {
display: none;
position: relative;
float: right;
width: 40px;
height: 40px;
margin-left: 0px;
margin-top: 12px;
margin-bottom: 20px;
background: #399;
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: 300px;
}


/* левый контейнер */
.posts-list {
margin-bottom: 30px;
width: 64%;
float: left;
}
/* блок для статьи */
.post {
margin-bottom: 10px;
padding: 10px 15px;
background: white;
box-shadow: 3px 3px 1px #ccc;
}
.main-post {
width: 47%;
height: 300px;
margin: 5px;
position: relative;
float: left;
margin-bottom: 10px;
padding: 10px 15px;
background: white;
box-shadow: 3px 3px 1px #ccc;
}
.main-post a{
color: #000;
font-size: 17px;
line-height: 1;
font-weight: bold;
}
.post-content p {
line-height: 1.5;
padding-bottom: 1em;
}
.post-image {
margin-bottom: 30px;
float: left;
width: 30%;
display: inline-block;
}
.category {
width: 70%;
border: 1px #ccc solid;
border-radius: 0 50px 50px  0;
-moz-border-radius: 0 50px 50px  0;
-webkit-border-radius: 0 50px 50px  0;
-khtml-border-radius: 0 50px 50px  0;
background-color: #ccc;
font-size: 15px;
padding: 7px 10px 7px 10px; 
margin: 0;
text-align: left;
}
.category a {
color: #066;
text-transform: uppercase;
}
.post h1 {
color: #000;
font-size: 20px;
text-decoration: ;
font-weight: bold;
padding: 5px 0px 5px 0px;
}

.post h2 {
color: #000;
font-size: 19px;
text-decoration: ;
font-weight: bold;
padding: 10px 0px 10px 0px;
}

.post p {
font-size: 15px;
color: #333;
}

img.inpost {
float: left;
width: 30%;
height: ;
margin: 5px;
border: 3px #ccc solid;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
-khtml-border-radius: 10px;
border-radius: 10px;
}


/* блок с кнопкой "продолжить чтение" и кнопками социальных сетей */
.post-footer {
border-top: 1px solid #EBEBE3;
border-bottom: 1px solid #EBEBE3;
position: relative;
margin-top: 15px;
}
.more-link {
position: relative;
display: inline-block;
font-size: 10px;
text-transform: uppercase;
color: white;
line-height: 44px;
padding: 0 22px;
background: #3C3D41;
letter-spacing: 0.1em;
white-space: nowrap;
}
.more-link:after {
content: '';
display: block;
position: absolute;
width: 0;
height: 0;
top: 0;
right: 0;
border: solid transparent;
border-width: 22px 18px;
border-left-color: #3C3D41;
transform: translateX(100%);
}

.post-social1 {
display: inline-block;
float: right;
position: relative;
height: 40px;
left: auto;
top: 50%;
right: 30%;
text-align: right;
transform: translateY(-50%);
padding: 0;
font-size: 12px;
}
.post-social1 a {
display: inline-block;
margin-left: 8px;
color: #066;
width: 25px;
height: 25px;
line-height: 23px;
text-align: center;
border-radius: 50%;
border: 1px solid;
}


.post-social {
position: absolute;
left: auto;
top: 50%;
right: 0;
text-align: right;
transform: translateY(-50%);
padding: 0;
font-size: 12px;
}
.post-social a {
display: inline-block;
margin-left: 8px;
color: #066;
width: 25px;
height: 25px;
line-height: 23px;
text-align: center;
border-radius: 50%;
border: 1px solid;
}


/* правый контейнер */
aside {
width: 35%;
float: right;
}
/* блок для виджетов */
.widget {
padding: 10px 15px;
background: white;
font-size: 13px;
margin-bottom: 20px;
box-shadow: 3px 3px 1px rgba(0,0,0,.05);
}
.widget-title {
font-size: 18px;
padding: 10px;
margin-bottom: 10px;
text-align: center;
border: 2px solid #066;
box-shadow: 3px 3px 0 0 #066;
}
/*bu nedi*/
.correction {
height: 10px;
border: transparent;
display: none;
position: relative;
float: right;
}
.widget-category-list li {
border-bottom: 1px solid #EBEBE3;
padding: 10px 0;
color: #c6c6c6;
font-style: italic;
}
.widget-category-list li:last-child {
border-bottom: none;
}
.widget-category-list li a {
color: #626262;
margin-right: 6px;
font-style: normal;
}
.widget-category-list li a:before {
content: ""; 		/* \f105 sildim ?????????????????????????????????????????????????????????????????????????*/
display: inline-block;
font-family: 'FontAwesome';
margin-right: 10px;
color: #c6c6c6;
}
.widget-posts-list {
overflow: auto;
height: 250px;
}
.widget-posts-list li {
border-top: 1px solid #EBEBE3;
padding: 5px 0;
}
.widget-posts-list li:nth-child(1) {
border-top: none;
}
.post-image-small {
width: 40%;
float: left;
margin-right: 10px;
}
.widget-post-title {
float: right;
width: 55%;
}
/* форма подписки */
#subscribe {
position: relative;
width: 100%;
padding: 15px 0;
}
#subscribe input {
width: 100%;
display: block;
float: left;
border: 2px solid #EBEBE3;
padding: 0 0 0 10px;
height: 40px;
position: relative;
outline: none;
color: #9E9C9C;
font-style: italic;
}
#subscribe button {
padding: 0 15px;
background: transparent;
height: 40px;
border: none;
position: absolute;
right: 0;
color: #399;
cursor: pointer;
font-size: 18px;
}
#subscribe input:focus + button {
background: #399;
color: white;
}



footer {
padding: 30px 0;
background: #3C3D41;
color: white;
}
.footer-col {
width: ;
float: left;
text-align: center;
}
.footer-col (1) {
width: 15%;
}
.footer-col (2) {
width: 5%;
}
.footer-col (3) {
width: 60%;
}
.footer-col (4) {
width: 5%;
}
.footer-col (5) {
width: 15%;
}
.footer-col a {
color: white;
}
.social-bar-wrap {
text-align: center;
}
.social-bar-wrap a {
padding: 0 7px;
font-size: 18px;
}

.post-kux {
margin-bottom: 10px;
padding: 10px 15px;
background: white;
box-shadow: 3px 3px 1px #ccc;
}
.imgkux {
text-align:center;
width:350px;
padding:5px;
border:1px;
}

@media (max-width: 768px) {
.topline {
padding: 0 0 5px 0;
}
.main-post {
width: 48%;
float: left;
}
/* показываем кнопку для переключения верхней навигации */
.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: 3;
top: 88px;
}
/* делаем элементы списка блочными, чтобы они располагались друг под другом */
#menu li {
display: block;
text-align: center;
border-bottom: 1px solid #EBEBE3;
margin-right: 0;
}
/* отменяем обтекание левой и правой колонок, устанавливаем им ширину 100%*/
.posts-list, aside {
width: 100%;
float: none;
}
.posts-list {
margin-bottom: 10px;
}
.widget-post-title {
font-size: 1.5em;
}
.widget-title {
width: 100%;
display: inline-block;
}
}
@media (max-width: 480px) {
.topline {
padding: 0 0 5px 0;
}
.main-post {
width: 100%;
float: none;
height: 370px;
}
/* отменяем обтекание для логотипа и выравниваем по центру*/
.logo {
float: none;
margin: 0 auto 15px;
display: table;
}
.logo span {
margin: 0 2px;
}
/* позиционируем меню на увеличившуюся высоту шапки */
#menu {
top: 148px;
}
/* позиционируем форму поиска по левому краю */
#searchform {
float: left;
margin-left: 0;
}
/* убираем верхнюю и нижнюю границы и выравниваем кнопку по центру */
.post-footer {
border-top: none;
border-bottom: none;
text-align: center;
}
/* отменяем позиционирование кнопок соцсетей */
.post-social {
position: static;
text-align: center;
transform: none;
margin-top: 20px;
}
.widget-post-title {
font-size: 1.2em;
}
/* отменяем обтекание для столбцов подвала страницы */
.footer-col {
float: none;
margin-bottom: 20px;
width: 100%;
text-align: center;
}
.footer-col:last-child {
text-align: center;
margin-bottom: 0;
}
.post img {
width: 100%;
}
}

/* KARUSEL*/
.carousel  {
   max-width: 400px; /* ширина всего блока */
   margin: 3px auto;
   width:400px;
   background-color: #fff;
}
.carousel-wrapper {
   margin: 10px 30px; /* отступы для стрелок */
   overflow: hidden; /* скрываем содержимое, выходящее за рамки основной области */
   position:relative;
}
.carousel-items {
   width: 10000px; /* устанавливаем большую ширину для набора элементов */
   position: relative; /* позиционируем блок относительно основной области карусели */
}
.carousel-block {
   float: left; /* выстраиваем все элементы карусели в ряд */
   height: 200px;
   width: ; /* задаём ширину каждого элемента */
   padding: 10px 10px 10px 0px; /* делаем оступы, чтобы элементы не сливались */
}
.carousel-block img{
	display:block;
}
/*********** BUTTONS ***********/
.carousel-button-left a, .carousel-button-right a{
   width: 25px; 
   height: 36px; 
   position: relative;
   top: 90px; 
   cursor: pointer; 
   text-decoration:none;
}
.carousel-button-left a{
   float: left; 
   background: url(../img/arrow-left.png); 
}
.carousel-button-right a{
   float: right;
   background: url(../img/arrow-right.png); 
}
/*********** SHADOW ***********/
.shadow{
	box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.6);
}
/**********text&image***********/
.carousel-text {
background-color:#fff;
color:#033;
font-size:12px;
text-align:center;
font-weight:bold;
width:200px
}
.carousel-img {
height:150px
}
/***********END**************/
