﻿/*основные */

/* fff C6FFC6   D7EBFF EAD0F7 E4CAF4 EDF8F0  F5F5F5 C6FFa0    #C7FFC6    rgba(222,255,200,.75)  этот = rgba(183, 228, 59, 0.712)  rgba(213, 233, 159, 0.75)     */
body {font-family: 'Open Sans', arial, sans-serif; font-size: 18px; line-height: 1.2; color: #0a0a0aeb; background: rgb(255, 255, 255);}
/* добавим очистку потока для всех контейнеров, внутри которых задано обтекание дочерних элементов */
header:after, .container:after, footer:after, .widget-posts-list li:after, #subscribe:after {
    content: ""; display: table; clear: both;}
/* стилевой класс, который управляет шириной контейнера сетки*/
.container {margin: 25 auto; width: 330px; max-width: 480px; padding: 10px 15px;}

* { font-family: Calibri; padding: 5px }
table caption th h {padding: 13px }
caption { padding: 3px; font-weight: bold}
fieldset select { font-size: 100%; margin-bottom: 10px; padding: 2px }
legend { padding: 15px 10px; font-variant:bold }
label { display: inline-block; vertical-align: left; margin: 3px }
table, input, textarea { background-color: #fff; border-color: #EF5A42; color: black; width: 90%; margin: 3px }
button {display: inline-block; width: 90%; background-color: #532785; padding: 11px; margin: 5px }
.fit-picture {height: 111px; width: 222px; align-content: center}
.error {border:1px solid red }

/* table tr td input { width: 80%; font-size: 100%; margin: 3px } */
table tr td input[type=checkbox]  { width: 10%; margin: 2px; font-size: 100% } 
table tr td input[type=radio] { width: 10%; margin: 2px; font-size: 100% } 
table tr td input[type=color] { width: 70%; font-weight: bold; margin: 0px; padding: 0px }
table tr td input[type="radio"]:checked+label { color: black; font-weight: bold; }
table tr td input[type="checkbox"]:checked+label { color: blue; font-weight: bold; }
table tr td input[type="checkbox"], input[type="radio"] {position: absolute; visibility: hidden; }
table tr td div input[type=input] { width: 90%; }
/* Кнопки по высоте не узкие*/
input[type=submit] { width: 90%; font-weight: bold; padding: 20px }


/* transition: .25s ease-in-out;   добавим плавность переходов для всех элементов страницы*/
*, *:after, *:before {box-sizing: border-box; padding: 0; margin: 0;}

ul      {list-style: none; }
a       {text-decoration: none; font-weight: bold; outline: none;}
a {
    color: rgb(46, 219, 46); /* Цвет ссылки */ 
   }
   a.content {
    color: #6f4a25; /* Цвет ссылок */ 
   }
   a.vender {
    color: #df4dae; /* Цвет ссылок */ 
   }
   a.vender:visited { 
    color: rgb(85, 33, 134); /* Цвет посещенных ссылок */ 
   }
   a.vender:hover {
    color: rgb(110, 133, 11); /* Цвет ссылок при наведении на них курсора мыши */ 
   }

img     {display: block; }
h1, h2, h3, h4, h5, h6 {font-family: 'Playfair Display'; font-weight: normal; letter-spacing: 1.5px; }
/* для имен поставщиков и компонентов*/
h2 {font-weight: bold; color: #2da393; }
h3 {font-weight: bold; color: #cb89f1; }
h4 {font-weight: bold; color: #156b15; }
h5 {font-weight: bold; color: #53f7ee; }




/*Стили для шапки и её содержимого*/
header {
    box-shadow: 3px 3px 1px rgba(0,0,0,.05);
    padding: 15px 0;
    margin-bottom: 20px;
    position: relative;
    }
nav {
    width: 100%;
    }
/* логотип */
.logo {
    display: block;
    float: left;
    }
.logo span {
    color: #CEFFE7;
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
        margin: 5px 10px;
        text-align: center;
    text-shadow: 2px 2px 1px rgba(0,0,0,0.7);
    }
.logo span:nth-child(odd) {
    background: #B367E0; /*#00C161 */
    }
.logo span:nth-child(even) {
    background: #DDBCF1;/*#96D3A3 */
    }


    
/* меню */
#menu {
    float: right;
    }
#menu li {
    display: inline-block;
    margin-right: 10px;/*расст мжд пунктами меню*/
    }
#menu a {
    color: #f31c87;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    display: block;
    line-height: 40px;
    }
#menu a:hover {
    color: #e3ef42;
    }
#menu li:last-child  {
    margin-right: 0;
    }
/* класс, который будет добавлен в верхнему меню при нажатии на кнопку и покажет скрытое меню*/
#menu.active {
    max-height: 40px;
    }


    
/* форма поиска */
#searchform {
    margin-left: 20px;
    display: inline-block;
    position: relative;
    }
#searchform input {
    width: 220px;
    float: right;
    border: 1px;
    padding-left: 10px;
    height: 40px;
    overflow: hidden;
    outline: none;
    color: #e0e010;
    font-style: italic;
    }
#searchform button {
    background: transparent;
    height: 40px;
    border: 3px;
    position: absolute;
    right: -100px;
    color: #EF5A42;
    cursor: pointer;
    font-size: 14px;
    }
#searchform input:focus {
    outline: 2px solid rgb(133, 231, 202);
    }



/* кнопка переключения меню, появляющаяся при ширине 768px */
.nav-toggle {
    display: none;
    position: relative;
    float: right;
    width: 40px;
    height: 40px;
    margin-left: 20px;
    background: rgb(33, 173, 75);
    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: 20;
    width: 100%;
    height: 2px;
    background: white;
    }
.nav-toggle span:before {
    top: -10px;
    }
.nav-toggle span:after {
    bottom: -10px;
    }




/* работает  = блоки рядом по горизонтали расставляет и переносит*/
.line_block { 
    width:100px; 
    float: left;
    margin: 0 15px 15px 0; 
    text-align:left;
    padding: 10px;
    }

.box_inline {
    display: inline-block;
    background: rgb(141, 241, 216);
    border: solid 2px rgb(141, 31, 99); 
    position: relative; 
    padding: 20;
    margin: 20;
    }






/* стиль CHECKBOX   RADIO */ 
/* https://codepen.io/raubaca/pen/ONzBxP/ */

.group {
  display: flex;
  align-items: left;
  margin-bottom: 2em;
}
input[type="checkbox"],
input[type="radio"] {
  position: absolute;
  opacity: 0;
  z-index: -1;
}
label {
  position: relative;
  margin-right: 1em;
  padding-left: 2em;
  padding-right: 1em;
  line-height: 2;
  cursor: pointer;
  &:before {
    box-sizing: border-box;
    content: " ";
    position: absolute;
    top: 0.3em;
    left: 0;
    display: block;
    width: 1.4em;
    height: 1.4em;
    border-color: 2px solid #B367E0;
    border-radius: .5em;

    z-index: -1;
  }
}
input[type="radio"] + label::before {
  border-radius: 1em;
}
/* Checked */
input[type="checkbox"]:checked + label,
input[type="radio"]:checked + label {
  padding-left: 0.5em;
  color: rgb(245, 247, 94);
  &:before {
    top: 0;
    width: 100%;
    height: 2em;
    background: #008040;
  }
}

/* Transition */
label, label::before {
  -webkit-transition: .25s all ease;
  -o-transition: .25s all ease;
  transition: .25s all ease;
}
/* стиль CHECKBOX   RADIO */ 

















/*	Стили для блока с основным содержимым	*/
/* левый контейнер */
.posts-list {
    margin-bottom: 30px;
    width: 88%;
    float: left;
    }
/* блок для статьи */
.post {
    margin-bottom: 35px;
    }
.post-content p {
    line-height: 1.5;
    padding-bottom: 1em;
    }
.post-image {
    margin-bottom: 30px;
    }
.category {
    margin-bottom: 15px;
    }
.category a {
    color: rgb(68, 136, 245);
    text-transform: uppercase;
    }
.post-title {
    margin-bottom: 12px;
    font-size: 26px;
    }

/* блок с кнопкой "продолжить чтение" и кнопками социальных сетей */
.more-link {
    position: relative;
    display: inline-block;
    font-size: 10px;
    text-transform: uppercase;
    color: white;
    line-height: 44px;
    padding: 0 22px;
    background: #96D3A3;
    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: #96D3A3;
    transform: translateX(100%);
    }
.post-footer {
    border-top: 1px solid #EBEBE3;
    border-bottom: 1px solid #EBEBE3;
    position: relative;
    margin-top: 15px;
    }
.post-social {
    position: absolute;
    left: auto;
    top: 50%;
    right: 0;
    text-align: left;
    transform: translateY(-50%);
    padding: 0;
    font-size: 12px;
    }
.post-social a {
    display: inline-block;
    margin-left: 8px;
    color: #D852CA;
    width: 33px;
    height: 33px;
    line-height: 33px;
    text-align: left;
    border-radius: 50%;
    border: 1px solid;
    }



/*	Стили для боковой колонки	*/
/* правый контейнер */
aside {
    width: 28%;
    float: right;
    }
/* блок для виджетов */
.widget {
    padding: 3px 3px;
    background: rgb(240, 243, 239);
    font-size: 18px;
    margin-bottom: 30px;
    box-shadow: 7px 7px 7px rgba(0,0,0,.05);
    }
.widget_estrecho {/*gvf*/
    padding: 5px 5px;
    background: #C6FFC6;
    font-size: 13px;
    margin-bottom: 5px;
    box-shadow: 3px 3px 1px rgba(0,0,0,.05);
    }
.widget-title {
    font-size: 18px;
    padding: 10px;
    margin-bottom: 20px;
    text-align: left;
    border: 2px solid #008040;
    box-shadow: 9px 3px 0 0 #96D3A3;
    }
/* border-bottom: 1px solid #96D3A3; */
.widget-category-list li {
    border-bottom: 0px solid #96D3A3;
    padding: 10px;
    color: #352e2e;
    font-style: italic;
    }
.widget-category-list li:last-child {
    border-bottom: none;
    }
.widget-category-list li a {
    color: #4b1212;
    margin-right: 6px;
    font-style: normal;
    }
.widget-category-list li a:before {
    content: "\f105";
    display: inline-block;
    font-family: 'FontAwesome';
    margin-right: 40px;
    color: #96D3A3;
    }
.widget-posts-list li {
    border-top: 1px solid #96D3A3;
    padding: 15px 0;
    }
.widget-posts-list li:nth-child(1){
    border-top: none;
    }
.post-image-small {
    width: 30%;
    float: left;
    margin-right: 15px;
    }
.widget-post-title {
    float: left;
    }
/* форма подписки */
#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: #EF5A42;
    cursor: pointer;
    font-size: 18px;
    }
#subscribe input:focus + button {
    background: #EF5A42;
    color: white;
    }





/*	footer	*/
footer {
    padding: 30px 0;
    background: #C6FFC6;
    color: rgb(11, 182, 102);
    }
.footer-col {
    width: 50%;
    float: left;
    }
.footer-col a {
    color: rgb(11, 182, 102);
    }
.footer-col:last-child {
    text-align: right;
    }
.social-bar-wrap {
    text-align: left;
    }
.social-bar-wrap a {
    padding: 0 7px;
    font-size: 18px;
    }










/*	Медиа-запросы	768px

@media only screen and (min-width: 1600px)
html {
    font-size: 15px;
}
@media only screen and (min-width: 1050px)
html {
    font-size: 14.5px;
}
@media only screen and (min-width: 0)
html {
    font-size: 14px;
}
*/


/*	Медиа-запросы	768px*/
@media (max-width: 768px) {
    /* показываем кнопку для переключения верхней навигации 
    .nav-toggle {
    display: block;
    }*/
    header {
    padding: 10px 0;
    }
    /* скрываем верхнее меню, отменяем обтекание, позиционируем его, сместив на высоту шапки сайта
    #menu {
    max-height: 125;
    background: rgb(207, 233, 90);
    float: none;
    position: absolute;
    overflow: hidden;
    top: 63px;
    right: 0;
    left: 20;
    margin: 0;
    padding: 0;
    z-index: 3;
    } */
    /* делаем элементы списка блочными, чтобы они располагались друг под другом 
    #menu li {
    display: block;
    padding-left: 15px;
    border-bottom: 1px solid #EBEBE3;
    margin-right: 0;
    }*/
    
    /* отменяем обтекание левой и правой колонок, устанавливаем им ширину 100%*/
    .posts-list, aside {
    width: 100%;
    float: none;
    }
    .widget-post-title {
    font-size: 1.5em;
    }
}

@media (max-width: 360px) {
    /* выравниванием логотип по центру left  */
    nav {
    text-align: left;
    }
    /* отменяем обтекание для логотипа */
    .logo {
    float: none;
    margin-bottom: 15px;
    }
    /* позиционируем меню на увеличившуюся высоту шапки */
    #menu {
    top: 118px;
    }
    /* позиционируем форму поиска по левому краю */
    #searchform {
    float: left;
    margin-left: 0;
    }
    /* убираем верхнюю и нижнюю границы и выравниваем кнопку по центру */
    .post-footer {
    border-top: none;
    border-bottom: none;
    text-align: left;
    }
    /* отменяем позиционирование кнопок соцсетей */
    .post-social {
    position: static;
    text-align: left;
    transform: none;
    margin-top: 20px;
    }
    .widget-post-title {
    font-size: 1.2em;
    }
    /* отменяем обтекание для столбцов подвала страницы */
    .footer-col {
    float: none;
    margin-bottom: 20px;
    width: 100%;
    text-align: left;
    }
    .footer-col:last-child {
    text-align: left;
    margin-bottom: 0;
    }
}