*, *: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;
}
.post-image img {
   display: block;
   width: 100%;
}
h1, h2, h3 {
   font-family: 'Playfair Display';
   font-weight: normal;
   letter-spacing: 1px;
}
h4, h5, h6 {
   font-family: 'Open Sans', arial, sans-serif;
   font-weight: normal;
}
hr {
	color: #ddd;
}
body {
   font-family: 'Open Sans', arial, sans-serif;
   font-size: 15px;
   line-height: 1;
   color: #373737;
   background: #f7f7f7;
   display: -webkit-box;
   display: -webkit-flex;
   display: -ms-flexbox;
   display: flex;
   flex-direction: column;
   min-height: 100vh;
}
blockquote {
	margin: 20px 30px;
	padding-left: 13px;
	border-left: 3px solid #30D5C8;
	font-style: italic;
}
.post-content blockquote p {
	padding-bottom: 4px;
}
.size-medium {
    margin: 10px 20px 10px 0px;
}
.alignleft {
    float: left;
    margin-right: 20px;
}
.alignright {
    float: right;
    margin-right: 0px;
    margin-left: 20px;
}
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
/* добавим очистку потока для всех контейнеров, внутри которых задано обтекание дочерних элементов */
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: 1060px;
   padding: 0 15px;
   
   flex-grow: 1;
   -ms-flex: 1 1 auto;
}

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;
   height: 40px;
}
.logo img {
	width: 200px;
	margin-top: 4px;
}
/* меню */
#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 .blind a {
	font-weight: 800;
    padding-left: 8px;
}
#menu a:hover {
	color: #30D5C8;	
}
#menu li:last-child {
   margin-right: 0;
}
#menu .menu-item-has-children {
	position: relative;
}
#menu .menu-item-has-children::after {
	content: '';	
	position: absolute;
	left: 0; 
	right: 0;
	margin-left: auto;
	margin-right: auto;
	width: 4px;
	bottom: -5px;
	border: 4px solid transparent;
	border-top: 4px solid #30D5C8;
}
#menu .menu-item-has-children:hover::after {
	display: none;
}
#menu .menu-item-has-children:hover .sub-menu {
	display: block;
}
#menu .sub-menu {
	white-space: nowrap;
	position: absolute;
	display: none;
	left: 50%; 
	right: 50%;
	transform: translateX(-50%);
	top: 41px;
	z-index: 999;
	padding: 0 2px;
	background: white;
	width: fit-content;	
	border: 1px solid #EBEBE3;
	box-shadow: 3px 3px 3px rgba(0, 0, 0, .05);
}
#menu .sub-menu ::after,
#menu .sub-menu ::before {
	content: '';	
	position: absolute;
	left: 0; 
	right: 0;
	margin-left: auto;
	margin-right: auto;
	width: 4px;
	top: -12px;
	border: 6px solid transparent;
	border-bottom: 6px solid #EBEBE3;
}
#menu .sub-menu ::after {
	border-bottom: 6px solid white;
	top: -11px;
}
#menu .sub-menu li {
	display: block;
	margin-right: 0;
	border-bottom: 1px solid #EBEBE3;
	padding: 0 18px;
	width: 100%;
}
#menu .sub-menu li:last-child {
	border: none;
}
.blind-switcher {
	display: inline-block;
	position: relative;
	width: 42px;
	height: 20px;
	background: #30D5C8;
	border-radius: 10px;
	margin: 0 6px;
	vertical-align: text-bottom;
}
.sw-bullet {
	position: absolute;
	width: 14px;
	height: 14px;
	border-radius: 100%;
	background: white;
	left: 3px;
	top: 3px;
}
/* форма поиска */
#searchform {
   float: right;
   margin-left: 46px;
   display: inline-block;
   position: relative;
}
#searchform input {
   width: 170px;
   float: left;
   border: none;
   padding-left: 10px;
   height: 40px;
   overflow: hidden;
   outline: none;
   color: #9E9C9C;
   font-style: italic;
}
#searchform button {
   padding: 0;
   background: transparent;
   height: 40px;
   border: none;
   position: absolute;
   right: 10px;
   color: #30D5C8;
   cursor: pointer;
   font-size: 18px;
}
#searchform input:focus {
   outline: 2px solid #EBEBE3;
}
#toTop {
 opacity: 0.6;
 position:fixed;
 z-index:9999;
 bottom:20px;
 right:20px;
 background: #30D5C8;
 padding: 5px;
 cursor: pointer;
 color: #f7f7f7;
 text-decoration: none;
 border-radius: 100%;
 width:48px;
 height:48px;
}
#toTop::before {
	content: "\f102";
    font: 40px "FontAwesome";
	line-height: 36px;
	margin-left: 7px;
}
#toTop:hover {
	opacity: 1;
}
/* кнопка переключения меню, появляющаяся при ширине 768px */
.nav-toggle {
   display: none;
   position: relative;
   float: right;
   width: 40px;
   height: 40px;
   margin-left: 20px;
   background: #30D5C8;
   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: 800px;
}
/* левый контейнер */
.posts-list {
   margin-bottom: 30px;
   width: 67%;
   float: left;
}
/* блок для статьи */
.post {
   margin-bottom: 35px;
}
.post-content p,
.post-content ol,
.post-content ul {
   line-height: 1.5;
   padding-bottom: 1em;
   counter-reset: item;
   list-style-type: none;
}
.post-content ol li {
   padding-left: 1.5em;
   margin-bottom: 10px;
}
.post-content ol li:before {
   content: counter(item) ') ';
   counter-increment: item;
   color: #111;
   margin-right: 5px;
}
.post-content ul li {
   padding-left: 3em;
   text-indent: -1.55em;
   margin-bottom: 10px;
}
.post-content ul li::before {
   content: '\f00C';   
   color: #30D5C8;
   font-family: 'FontAwesome';
   margin-right: 10px;
}
.post-content p a:hover,
.post-content li a:hover {
	text-decoration: underline;
}
.post-content h3 {
   margin-bottom: 12px;
   font-size: 20px;
}
.post-image {
   margin-bottom: 30px;
}
.page-content .post-image {
   margin-top: -40px;
   margin-left: -40px;
   margin-right: -40px;
}
.date {
	margin-bottom: 15px;
	color: #bbb;
	font-style: italic;
}
.category {
   margin-bottom: 10px;
}
.category a {
   margin-right: 16px;
   color: #30D5C8;
   text-transform: uppercase;
}
.post-title {
   margin-bottom: 12px;
   font-size: 26px;
}
.category-title {
   text-align: center;
   margin-top: 0;
   margin-bottom: 10px;
   font-size: 26px;
}
.category-count {
	text-align: center;
	color: #c6c6c6;
}
.post-title a {
	color: #373737;
}
.post-title a:hover {
   color: #30D5C8;
}
/* блок с кнопкой "продолжить чтение" и кнопками социальных сетей */
.post-footer {
   border-top: 1px solid #EBEBE3;
   border-bottom: 1px solid #EBEBE3;
   position: relative;
   margin-top: 15px;
}
.more-link {
   position: relative;
   white-space: nowrap;
   max-width: 70%;
   display: inline-block;
   font-size: 10px;
   text-transform: uppercase;
   color: white;
   line-height: 44px;
   padding: 0 22px;
   background: #3C3D41;
   letter-spacing: 0.1em;
}
.more-link:hover {
	background: #30D5C8;
}
.more-link:hover:after {
	border-left-color: #30D5C8;
}
.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-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: #30D5C8;
   width: 25px;
   height: 25px;
   line-height: 23px;
   text-align: center;
   border-radius: 50%;
   border: 1px solid;
}
.post-social a:hover {
   background: #30D5C8; 
   border-color: #30D5C8; 
   color: white;
}
.search-result {
	box-sizing: border-box;
}
.search-result:after {
  content: '';
  display: block;
  clear: both;
}
.search-result-info {
	margin-top: 15px;
}
.search-result-info a {
	color: #30D5C8;
}
.search-result-num {
	float: left;
	width: 32px;
	text-align: center;
	margin-top: 9px;
	color: #626262;
}
.search-result-content {
	overflow: hidden;
}
.search-result p {
	line-height: 1.5;
	padding-bottom: 1em;
}
.search-result em {
	font-style: normal;
	background: #FFF89E;
}
.search-result-title {
	margin-bottom: 12px;
}
.search-result-title a {
	font-size: 24px;
	color: #373737;
}
.search-result-title a:hover {
   color: #30D5C8;
}
.search-result-category {
	color: #bbb;
}
.search-result-category a {
	color: #30D5C8;
	text-transform: uppercase;
}
ul.page-numbers {
	border-top: 1px solid #EBEBE3;
    border-bottom: 1px solid #EBEBE3;
	width: 100%;
    display: inline-block;
    padding: 0;
    margin: 0;
}
ul.page-numbers li {
	display: inline;
}
ul.page-numbers li a,
ul.page-numbers li .current 
{
    color: #626262;
    float: left;
	font-size: 15px;
    padding: 12px 16px;
    text-decoration: none;
}
ul.page-numbers li .current {
    background-color: #30D5C8;
    color: white;
}
ul.page-numbers li a:hover:not(.active) {
	background-color: #ddd;
}
/* gallery */
.gallery {
	margin: 24px 0;
}

.gallery a {
	display: inline-block;
	position: relative;
	margin: 2px 3px 3px 2px;
}
.gallery a em {
	display: block;
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: url(../img/rgba_pattern.png) repeat;
	opacity: 0;
	filter: alpha(opacity=0);
	-webkit-transition: all 0.25s ease;
	transition: all 0.25s ease;
}
.gallery a em i {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: none;
	background: url(../img/magnify.png) center center no-repeat;
}
.gallery a:hover em {
	opacity: 1;
	filter: alpha(opacity=100);
	-webkit-transition: all 0.25s ease;
	transition: all 0.25s ease;
}
.gallery a:hover em i {
	display: block;
}
/* sidebar */
aside {
   width: 30%;
   float: right;
}
.page-content {
   padding: 40px 40px;
   background: white;
   font-size: 14px;
   margin-bottom: 30px;
   box-shadow: 3px 3px 1px rgba(0, 0, 0, .05);
}
.page-content h2 {
	text-align: center;
	margin-bottom: 16px;
}
/* sidebar widgets */
aside .widget,
.search-bar,
.search-result-container
{
   padding: 20px 15px;
   background: white;
   font-size: 14px;
   margin-bottom: 30px;
   box-shadow: 3px 3px 1px rgba(0, 0, 0, .05);
}
aside .widget a {
	color: #626262;
	font-style: normal;
}
aside .widget .widget-title {
   font-size: 18px;
   padding: 10px;
   margin-bottom: 20px;
   text-align: center;
   border: 2px solid #30D5C8;
   box-shadow: 3px 3px 0 0 #30D5C8;
}
.widget-category-list li {
   border-bottom: 1px solid #EBEBE3;
   padding: 10px 0;
   color: #c6c6c6;
   font-style: italic;
}
.widget-category-list li b {
   color: #626262;
   font-style: normal;
}
.widget-category-list ul {
	margin-left: 24px;
}
.widget-category-list ul li {
	padding-bottom: 0;
	border-bottom: none;
}
.widget-category-list li:last-child {
   border-bottom: none;
}
.widget-category-list li a {
   margin-right: 6px;
}
.widget-category-list li a:before {
   content: "\f105";
   display: inline-block;
   font-family: 'FontAwesome';
   margin-right: 10px;
   color: #c6c6c6;
}
.widget-category-list li b:before {
   content: "\f101";
   display: inline-block;
   font-family: 'FontAwesome';
   margin-right: 10px;
   font-weight: normal;
   color: #c6c6c6;
}
.widget-category-list .widget-category-list-more a:before {
	content: ''
}
.widget-posts-list li {
   border-bottom: 1px solid #EBEBE3;
   padding: 10px 0;
   color: #c6c6c6;
   font-style: italic;
}
.widget-posts-list li:last-child {
   border-bottom: none;
}
.widget-post-date {
   display: block;
   margin-bottom: 3px;
}
/* footer widgets */
footer .widget {
	display: block;
	color: #aaa;
	text-align: center;
	margin-bottom: 16px;
}
footer .widget:last-child {
	margin-bottom: 0;
}
footer .widget-title {
	display: none;
}
footer .widget a {
	color: white;
}
footer .widget a:hover {
	color: #30D5C8;
}
footer .widget p {
	margin-bottom: 10px;
}
/* === Forms === */
    button,
    input,
    select,
    textarea {
        border-radius: 0;
        margin: 0;
        max-width: 100%;
        vertical-align: baseline;
    }

    button,
    input {
        line-height: normal;
    }

    input,
    textarea {
        background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0)); /* Removing the inner shadow on iOS inputs */
        border: 2px solid #EBEBE3;
        color: #707070;
    }

    input:focus,
    textarea:focus {
        background-color: #fff;
        border: 2px solid #30D5C8;
        color: #333;
    }

    input:focus,
    select:focus {
        outline: 2px solid #c1c1c1;
    }

    button[disabled],
    input[disabled],
    select[disabled],
    textarea[disabled] {
        cursor: default;
        opacity: .5;
    }

    button,
    input[type="button"],
    input[type="reset"],
    input[type="submit"] {
        -webkit-appearance: button;
        background-color: #30D5C8;
        border: 0;
        color: #fff;
        cursor: pointer;
        font-size: 12px;
        font-weight: 700;
        padding: 10px;
        text-transform: uppercase;
        opacity: .8;
    }

    button:hover,
    input[type="button"]:hover,
    input[type="reset"]:hover,
    input[type="submit"]:hover,
    button:focus,
    input[type="button"]:focus,
    input[type="reset"]:focus,
    input[type="submit"]:focus {
        outline: 0;
        opacity: 1;
    }

    input[type="search"] {
        -webkit-appearance: textfield;
    }

    input[type="search"]::-webkit-search-cancel-button,
    input[type="search"]::-webkit-search-decoration {
        -webkit-appearance: none;
    }

    button::-moz-focus-inner,
    input::-moz-focus-inner {
        border: 0;
        padding: 0;
    }

    input[type="text"],
    input[type="email"],
    input[type="url"],
    input[type="password"],
    input[type="search"],
    textarea {
        /*padding: 0.375em;*/
		padding: 10px;
        width: 100%;
    }

    textarea {
        overflow: auto;
        vertical-align: top;
    }

    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="url"]:focus,
    input[type="password"]:focus,
    input[type="search"]:focus,
    textarea:focus {
        outline: 0;
    }

    .post-password-form {
        position: relative;
    }

    .post-password-form label {
        color: #707070;
        display: block;
        font-family: "Noto Sans", sans-serif;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.04em;
        line-height: 1.5;
        text-transform: uppercase;
    }

    .post-password-form input[type="submit"] {
        padding: 0.7917em;
        position: absolute;
        right: 0;
        bottom: 0;
    }

    input[type="checkbox"],
    input[type="radio"] {
        padding: 0;
    }
/* форма подписки */
#subscribe {
   position: relative;
   width: 100%;
   padding: 15px 0;
}
.search-form {
   position: relative;
   width: 100%;
   padding-bottom: 40px;
}
#subscribe input,
.search-form input {
   width: 100%;
   display: block;
   float: left;
   padding: 0 0 0 10px;
   height: 40px;
   position: relative;
   outline: none;
}
#subscribe button,
.search-form button {
   padding: 0 15px;
   background: transparent;
   height: 40px;
   border: none;
   position: absolute;
   right: 0;
   color: #30D5C8;
   cursor: pointer;
   font-size: 18px;
}
#subscribe input:focus+button,
.search-form input:focus+button {
   background: #30D5C8;
   color: white;
}

footer {
   padding: 30px 0;
   background: #3C3D41;
   color: white;
   
   flex-shrink: 0;
}
.page404 {
	background: center 50px url(../img/404.jpg);
}
.page404 h1 {
	text-transform: uppercase;
	text-align: center;
	margin-top: 20px;
	margin-bottom: 30px;
}
.page404 p {
	margin-bottom: 15px;
}
.page404 p a {
	color: #30D5C8;
}
.page404 p a:hover {
	text-decoration: underline;
}
.page404 .search-form button {
   background: #30D5C8;
   color: white;
}
.page404 .search-form input {
  border: 2px solid #30D5C8;
  color: #333;
}
.page404 footer {
	display: none;
}
.container-404 {
	width: 100%;
	max-width: 536px;
	margin-top: 50px;
}
.commercial {
	margin: 0;
	margin-left: -35px;
    margin-right: -40px;
}
.col-xs-12 {
  width: 100%;
  float: left;
  position: relative;
  min-height: 1px;
  padding-left: 15px;
  padding-right: 15px;
}
.commercial img {
	padding-right: 8px;
}
.footer-col {
   float: left;
}
.footer-col:last-child {
   text-align: right;
}
.social-bar-wrap {
   text-align: center;
}
.social-bar-wrap a {
   padding: 0 7px;
   font-size: 18px;
}
@media (max-width: 820px) {
	#menu li {
	   margin-right: 16px;
	}
	#menu .blind a {
		padding-left: 0;
	}
}
@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: 3;
   }
   /* делаем элементы списка блочными, чтобы они располагались друг под другом */
   #menu li {
      display: block;
      text-align: center;
      border-bottom: 1px solid #EBEBE3;
      margin-right: 0;
   }
   #menu .menu-item-has-children {
		position: relative;
	}
	#menu .menu-item-has-children .expand-btn  {
		position: absolute;
		left: 0; top: 0;
		width: 40px; height: 40px;
		cursor: pointer;
	}
	#menu .menu-item-has-children .expand-btn .bullet {
		position: absolute;
		margin: auto;
		top: 0; left: 4px; bottom: 0; right: 0;
		width: 6px; height: 6px;
		border: 6px solid transparent;
		border-left: 6px solid #30D5C8;
		transform-origin: 3px 6px;
	}
	#menu .menu-item-has-children .expand-btn .opened {
		transform: rotate(90deg);
	}
	#menu .menu-item-has-children::after {
		display: none;
	}
	#menu .menu-item-has-children .sub-menu {
		overflow: hidden;
		max-height: 0;
		position: unset;
		display: block;
		left: unset; right: unset;
		transform: none;
		padding: unset;
		width: unset;
		border: none;
		border-top: 1px solid #EBEBE3;
		box-shadow: unset;
	}
	#menu .menu-item-has-children .active
	{
		max-height: 800px;
	}
	#menu .sub-menu ::after,
	#menu .sub-menu ::before {
		display: none;
	}
	#menu .sub-menu li {
		margin-right: unset;
		border-bottom: 1px solid #EBEBE3;
		padding: unset;
		width: unset;
	}
	#menu .sub-menu li:last-child {
		border: none;
	}
   /* отменяем обтекание левой и правой колонок, устанавливаем им ширину 100%*/
   .posts-list, aside {
      width: 100%;
      float: none;
   }
   .widget-post-title {
      font-size: 1.5em;
   }
}

@media (max-width: 480px) {
   /* позиционируем форму поиска по левому краю */
   #searchform {
      float: left;
      margin-left: 0;
   }
   .more-link {
	  max-width: none;
	  width: 100%;
   } 
   /* убираем верхнюю и нижнюю границы и выравниваем кнопку по центру */
   .post-footer {
	  padding-right: 16px;
      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;
   }
}