html,
body {
    height: 100%;
}

body {
    font: 16px/24px "Roboto", sans-serif;
    color: #805430;
}

a {
    color: #d93b3a;
}

a:hover, a:focus, a:active, a:active:focus, a:active:hover, a:focus:hover {
    color: #a6221b;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -94px;
    padding: 0 0 94px;
}

.site-header {
    height: 366px;
    border-bottom: 6px solid #758f18;
    background: url(../img/header_bg.png);
}

.site-header > .container {
    position: relative;
}

.logo-table {
    position: absolute;
    left: 0;
    top: 0;
    width: 612px;
    height: 327px;
    background: url(../img/logo_table.png);
    color: #75420e;
    text-shadow: -1px -1px 0 rgba(0,0,0,.65), 1px 1px 1px rgba(255,255,255,.5);
    font-weight: 700;
}



.logo-wrap {
    position: absolute;
    left: 73px;
    top: 119px;
}

.site-title {
    position: absolute;
    left: 261px;
    top: 106px;
    font-size: 22px;
    font-weight: 700;
}

.site-title span {
    font-weight: 900;
    text-transform: uppercase;
}

.header-contacts {
    position: absolute;
    left: 270px;
    top: 180px;
    font-size: 22px;
}

.header-contacts-item {
    padding-left: 50px;
    margin-bottom: 26px;
    position: relative;
}

.header-contacts-item:before {
    display: inline-block;
    font: normal normal normal 14px/1 'Material-Design-Iconic-Font';
    font-size: 48px;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: absolute;
    left: 0;
}

.header-contacts-item-address:before {
    content: '\f1ab';
    top: 2px;
}

.header-contacts-item-phones:before {
    content: '\f2be';
    top: 0;
}

.lang-switcher {
    position: absolute;
    right: 0;
    top: 0;
    width: 311px;
    height: 61px;
    background: url(../img/langSwitcher.png);
}

@media (max-width: 991px) {

}

.lang-switcher ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
    font-size: 24px;
    font-weight: 700;

}

.lang-switcher li {
    display: inline-block;
    margin-top: 12px;
    margin-left: 15px;
    position: relative;
}

.lang-switcher li:first-child {
    padding-left: 0;
}

.lang-switcher a {
    display: inline-block;
    color: #75420e;
    text-shadow: -1px -1px 0 rgba(0,0,0,.65), 1px 1px 1px rgba(255,255,255,.5);
    text-decoration: none;
}

.lang-switcher a:hover,
.lang-switcher li.active a {
    color: #5d3308;
}

.lang-switcher li.active:after {
    content: '';
    background: #5d3308;
    width: 100%;
    height: 2px;
    position: absolute;
    left: 0;
    bottom: -7px;
    box-shadow: -1px -1px 0 rgba(0,0,0,.65), 1px 1px 1px rgba(255,255,255,.5);
}

.site-nav {
    background: #b8c41d;
    font-family: "Gabriela", "Roboto", sans-serif;
}

/* Первый уровень */

.main-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
}

.main-menu > li {
    display: inline-block;
    position: relative;
}

.main-menu > li > a {
    display: inline-block;
    padding: 19px 15px;
    color: #0c663e;
    text-decoration: none;
    position: relative;
}

.main-menu > li:hover > a {
    color: white;
    background: #e13931;
}

.main-menu li {
    z-index: 1;
}

.main-menu li.parent {
    z-index: 10;
}

.main-menu > li.parent > a:after {
    content: '\f2fc';
    display: inline-block;
    font: normal normal normal 14px/1 'Material-Design-Iconic-Font';
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-left: 10px;
}

.main-menu > li.parent:hover > a:after {
    content: '\f2f9';
}

.main-menu > li.parent:hover > ul {
    display: block;
}

/* Второй уровень */

.main-menu > .parent > ul {
    display: none;
    text-align: left;
    margin: 0;
    list-style: none;
    background: #e13931;
    position: absolute;
    left: 0;
    top: 100%;
    padding: 10px 0;
    width: 224px;
}

.main-menu > .parent > ul > li {
    position: relative;
}

.main-menu > .parent > ul > li > a {
    color: white;
    padding: 10px 15px;
    display: block;
    text-decoration: none;
    position: relative;
}

.main-menu > .parent > ul > li.parent > a {
    padding-right: 40px;
}

.main-menu > .parent > ul > li.parent > a:after {
    content: '\f2fb';
    display: inline-block;
    font: normal normal normal 14px/1 'Material-Design-Iconic-Font';
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: absolute;
    right: 15px;
    top: 15px;
}

.main-menu > .parent > ul > li:hover > a {
    background: #c12c25;
}

.main-menu > .parent > ul > li.parent:hover > ul {
    display: block;
}

/* Третий уровень */

.main-menu > .parent .parent ul {
    background: #c12c25;
    position: absolute;
    left: 224px;
    top: -10px;
    padding: 10px 0;
    margin: 0;
    list-style: none;
    width: 224px;
    display: none;
}

.main-menu > .parent .parent ul > li > a {
    color: white;
    padding: 10px 15px;
    display: block;
    text-decoration: none;
    position: relative;
}

.main-menu > .parent .parent ul > li:hover > a {
    background: #a6221b;
}

.main-menu li.active > a {
    /*font-weight: bold;*/
}

.main-menu > li.active > a {
    color: #e13931;
}

.main-menu > li.active:hover > a {
    color: white;
}

.main-menu ul > li.active > a {
    background: #c12c25;
}

.main-menu ul ul > li.active > a {
    background: #a6221b;
}

h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6 {
    color: #758f18;
    font-family: "Gabriela", "Roboto", sans-serif;
}

h1 {
    font-size: 30px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
}

a h3 {
    color: #c12c25;
}

.news-main {
    margin-top: 15px;
}

.news-main-date {
    font-size: 13px;
    text-align: right;
}

.news-main-heading a {
    color: #d93b3a;
}
.news-main-heading {
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: bold;
}

.news-main-announce {
    line-height: 20px;
}

.news-main-last, .news-main-old {
    margin-bottom: 30px;
    height: 278px;
    overflow: hidden;
}

.footer {
    background: url(../img/footer_bg.png);
    height: 94px;
    border-top: 10px solid #758f18;
    padding-top: 20px;
}

.footer > .container {
    position: relative;
}

.dflex {
    display: flex;
}

@media (min-width: 768px) {
    a.copyright {
        margin: 0 auto;
    }
}

a.copyright {
    display: flex;
    flex-direction: column;

    padding-left: 100px;
    position: relative;
    color: #3d4e06;
}

.copyright:after {
    content: '';
    width: 60px;
    height: 60px;
    position: absolute;
    left: 0;
    top: -6px;
    background: url(https://goodhost.kz/img/logo4.png);
}

.footer-socials {
    position: absolute;
    right: 15px;
    top: 3px;
}

.footer-socials a {
    color: #e13931;
    font-size: 40px;
    padding-left: 10px;
}

@media (max-width: 767px) {
    .footer-socials a {
        color: #e13931;
        font-size: 20px;
        padding-left: 5px;
    }
}

.footer-socials a:first-child {
    padding-left: 0;
}

.breadcrumb {
    margin-top: 15px;
    background: transparent;
    padding-left: 0;
}

.admin-edit {
    display: none;
    position: absolute;
    top: 5px;
    right: 5px;
    background: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    vertical-align: middle;
}

#fancybox-buttons ul {
    width: 135px;
    height: 32px;
}

.gallery-widget {
    background: #394E8F;
    text-align: center;
    display: table;
    margin: 0 auto;
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
    padding-bottom: 6px;
    color: white!important;
}

.gallery-widget:hover {
    background: #293868;
}

.gallery-widget .gallery-widget-last-photo {
    margin-bottom: 5px;
}

.gallery-widget-icon {
    margin-right: 5px;
    display: inline-block;
}

#toTop {
    background: #171c15;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    display: none;
    padding: 5px 20px;
    position: fixed;
    bottom: 0;
    right: 15px;
    z-index: 123;
    color: white;
}

.paginate li {
    padding: 0;
}

.paginate a, .paginate span {
    display: inline-block;
    border: 1px solid #E7E5E1;
    width: 32px;
    text-decoration: none!important;
    height: 32px;
    line-height: 32px;
}

.paginate .active > a {
    font-weight: bold;
    border: 1px solid #7d8ab3;
    background: #c6d2f7;
}

.text-bold {
    font-weight: bold;
}

@media (max-width: 991px) {
    .logo-table {
        display: table;
        margin: 0 auto;
        position: static;
        width: auto;
        height: auto;
        background: none;
        color: #75420e;
        text-shadow: -1px -1px 0 rgba(0,0,0,.65), 1px 1px 1px rgba(255,255,255,.5);
        font-weight: 700;
    }

    .header-contacts {
        position: static;
        left: 0;
        top: 0;
        font-size: 16px;
    }

    .header-contacts-item {
        margin-bottom: 26px;
        position: relative;
    }

    .site-title {
        position: static;
        left: 0;
        top: 0;
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 20px;
        text-align: center;
    }

    .header-contacts-item {
        display: none;
    }

    .logo-wrap {
        position: static;
        left: 0;
        top: 0;
        text-align: center;
        display: block;
        margin-top: 60px;
        margin-bottom: 20px;
    }

    .logo-wrap img {
        max-width: 100px;
        height: auto;
    }

    .lang-switcher {
        left: 50%;
        right: auto;
        margin-left: -155px;
        top: -20px;
    }

    .lang-switcher a {
        font-size: 16px;
    }

    .lang-switcher li {
        margin-top: 20px;
    }

    .lang-switcher li.active:after {
        bottom: -3px;
    }

    .site-header {
        height: auto;
        background-size: cover;
        background-position: center center;
    }
}
.news-main-last, .news-main-old {
    position: relative;
}
.news-main-last:after, .news-main-old:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 87%,rgba(255,255,255,1) 97%);
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 767px) {
    .news-main-last, .news-main-old {
        margin-bottom: 15px;
        height: auto;
    }

    .news-main-last:after, .news-main-old:after {
        display: none;
    }
}

.news-main-last .img-responsive, .news-main-old .img-responsive {
    position: relative;
    z-index: 9;
}

.hamburger {
  padding: 15px 15px;
  display: inline-block;
  cursor: pointer;
  transition-property: opacity, filter;
  transition-duration: 0.15s;
  transition-timing-function: linear;
  font: inherit;
  color: inherit;
  text-transform: none;
  background-color: transparent;
  border: 0;
  margin: 0;
  overflow: visible; }
  .hamburger:hover {
    opacity: 0.7; }

.hamburger-box {
  width: 40px;
  height: 24px;
  display: inline-block;
  position: relative; }

.hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -2px; }
  .hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 40px;
    height: 4px;
    background-color: #171c15;
    border-radius: 4px;
    position: absolute;
    transition-property: transform;
    transition-duration: 0.15s;
    transition-timing-function: ease; }
  .hamburger-inner::before, .hamburger-inner::after {
    content: "";
    display: block; }
  .hamburger-inner::before {
    top: -10px; }
  .hamburger-inner::after {
bottom: -10px; }

.hamburger--collapse .hamburger-inner {
  top: auto;
  bottom: 0;
  transition-duration: 0.13s;
  transition-delay: 0.13s;
  transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); }
  .hamburger--collapse .hamburger-inner::after {
    top: -20px;
    transition: top 0.2s 0.2s cubic-bezier(0.33333, 0.66667, 0.66667, 1), opacity 0.1s linear; }
  .hamburger--collapse .hamburger-inner::before {
    transition: top 0.12s 0.2s cubic-bezier(0.33333, 0.66667, 0.66667, 1), transform 0.13s cubic-bezier(0.55, 0.055, 0.675, 0.19); }

.hamburger--collapse.is-active .hamburger-inner {
  transform: translate3d(0, -10px, 0) rotate(-45deg);
  transition-delay: 0.22s;
  transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }
  .hamburger--collapse.is-active .hamburger-inner::after {
    top: 0;
    opacity: 0;
    transition: top 0.2s cubic-bezier(0.33333, 0, 0.66667, 0.33333), opacity 0.1s 0.22s linear; }
  .hamburger--collapse.is-active .hamburger-inner::before {
    top: 0;
    transform: rotate(-90deg);
    transition: top 0.1s 0.16s cubic-bezier(0.33333, 0, 0.66667, 0.33333), transform 0.13s 0.25s cubic-bezier(0.215, 0.61, 0.355, 1); }

.hamburger {
    position: fixed;
    right: 0px;
    top: 0px;
    z-index: 100;
}

.mobile-menu {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    background: rgba(255,255,255,0.9);
    width: 100%;
    z-index: 20;
    border-bottom: 10px solid #758f18;
}

.mobile-menu-wrapper a {
    display: block;
    padding: 5px;
}

.mobile-menu-wrapper {
    padding: 10px 0;
    overflow-y: auto;
}

.mobile-menu .active a {
    font-weight: bold;
}

.btn-primary {
    background: #b8c41d!important;
    border: 1px solid #758f18!important;
    color: #0c663b!important;
}
.btn-primary:hover, .btn-primary:focus {
    background: #f8d660!important;
    border: 1px solid #758f18!important;
    color: #0c663b!important;
}

.review-answer {
	color: #a6221b;
	border-color: #a6221b;
}