/*основные цвета*/
:root{
    --c-black: #3c3a3a;
    --c-light-grey: #80808059;
    --c-dark-blue: #1d5a91;
    --c-blue: #1d72ac;
    --c-med-blue: #1e81ce;
    --c-ligt-blue: #8bcafb;

}

*{
    margin: 0;
    padding: 0;
}

html{
    position: relative;
}

html::before {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: #fff url('../images/background.jpg') fixed;
    background-size: cover;
    opacity: .3;
    content: "";
    z-index: -1;
}

body{
    font-family: 'PT Sans Caption', serif;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    color: var(--c-black);
}

p{
    font-size: 18px;
    line-height: 26px;
}

img{
    width: 100%;
}

#content{
    position: relative;
    margin: 200px 0;
    z-index: 1;
    padding: 30px 0;
    min-height: 60vh;
}

.container.md-width{
    background-color: white;
    border: 1px var(--c-light-grey) solid;
    border-radius: 16px;
}

h1{
    font-size: 29px;
}

h2{
    font-size: 24px;
}

h3 {
    font-size: 19px;
}

.title{
    text-align: center;
    width:100%;
    margin-bottom: 50px;
}

ul, li{
    padding: 0;
    list-style-type: none;
}

a,
a:hover,
a:active,
a:visited,
a:focus
{
    text-decoration: none;
    color: var(--c-black);
}

header{
    position:fixed;
    top: 0;
    width: 100%;
    z-index: 2;
    height: auto;
    background-color: white;
    border-bottom: 1px var(--c-light-grey) solid;
}

header .header-top{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    width: 100%;
}

#header_logo{
    width: 200px;
}

#header_logo img{
    width: 100%;
}

.header_menu{
    display: flex;
    align-self: flex-end;
    text-align: center;
    align-items: center;
    font-size: 18px;
    height: 55px;
}

.header_menu a{
    margin: 0 35px;
}

.header_menu a:hover{
    color: var(--c-dark-blue);
}

.header_menu a.active{
    border-bottom: 1px var(--c-dark-blue) dashed;
}

/* выпадающий список в шапке */

.header_menu:after {
    content: "";
    display: table;
    clear: both;
}

#submenu-link:after {
    content: "\f107";
    font-family: "FontAwesome", sans-serif;
    color: inherit;
    margin-left: 10px;
}

#submenu {
    position: absolute;
    z-index: 2;
    top: calc(100% + 16px);
    left: -12px;
    width: 160px;
    opacity: 0;
    transform: scaleY(0);
    transform-origin: 0 0;
    transition: .5s ease-in-out;
    margin: 0;
    padding: 16px 12px;
    border-radius: 16px;
    background-color: white;
    border: 1px var(--c-light-grey) solid;
}

#submenu li{
    text-align: left;
    padding: 5px;
}

#submenu li a{
    margin: 0;
}

#submenu li a:hover{
    color: var(--c-dark-blue);
}

.header_menu > li:hover #submenu {
    opacity: 1;
    transform: scaleY(1);
}


/*мобильное меню в header*/

.hidden-menu {
    display: block;
    position: fixed;
    padding: 10px;
    box-sizing: border-box;
    width: 100%;
    background-color: white;
    height: 100%;
    top: 62px;
    left: -1000px;
    transition: left .2s;
    z-index: 1500;
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
}

.hidden-menu ul{
    list-style:none;
    margin: 0;
    padding: 10px;
}

.hidden-menu ul li{
    width: 140px;
    margin-bottom: 10px;
    padding-bottom: 2px;
}

.hidden-menu ul li.active{
    border-bottom: 1px var(--c-dark-blue) dashed;
}

.hidden-menu ul li a {
    text-decoration: none;
    font-size: 18px;
}

/*скрываем инпут чекбокс*/
.hidden-menu-ticker {
    display: none;
}
/*общие стили значка-гамбургера, самого лэйбла*/
.btn-menu {
    color: var(--c-dark-blue);
    background-color: white;
    width: 23px;
    margin: 0;
}

/*общие стили полосок*/
.btn-menu span {
    display: block;
    height: 3px;
    background-color: var(--c-dark-blue);
    margin: 5px 0 0;
    transition: all .1s linear .23s;
    position: relative;
}
/*прибиваем к верху лэйбла первую полоску*/
.btn-menu span.first {
    margin-top: 0;
}
/*при нажатии на бургер двигаем его и делаем другой фон бургеру*/
.hidden-menu-ticker:checked ~ .btn-menu {
    background-color: white;
}

/*и дальше стили меняющие бургер, двигающие менюшку по событию - нажатие на значек бургера*/
.hidden-menu-ticker:checked ~ .hidden-menu {
    left: 0;
}
.hidden-menu-ticker:checked ~ .btn-menu span.first {
    -webkit-transform: rotate(45deg);
    top: 7px;
    background-color: var(--c-dark-blue);
}
.hidden-menu-ticker:checked ~ .btn-menu span.second {
    opacity: 0;
}

.hidden-menu-ticker:checked ~ .btn-menu span.third {
    -webkit-transform: rotate(-45deg);
    top: -9px;
    background-color: var(--c-dark-blue);
}

/*контент*/
.main-block
{
    display: flex;
    align-items: center;
}

.main-block p{
    width: 65%;
}

.main-block div
{
   width: 35%;
}

/*услуги*/

.services-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background-color: #d3d3d32e;
}

.services-block{
    display: flex;
    flex-wrap: wrap;
    width: 33%;
    text-align: center;
    padding: 80px 15px;
}

.services-block:hover{
    background-color: white;
}

/*клиенты*/
.services-container.clients{
    justify-content: space-evenly;
    background-color: white;
}

.services-container.clients .services-block{
    width: 48%;
    text-align: left;
    padding: 18px;
    margin-bottom: 15px;
    border: 1px var(--c-light-grey) solid;
    border-radius: 16px;
}

.services-container.clients .services-block:hover {
    border: 1px var(--c-ligt-blue) solid;
}

.services-container.clients .services-block:hover h3{
    color: var(--c-blue);
}

.services-block h3,
.services-block div,
.services-block p,
.services-block ul
{
    width: 100%;
}

.services-block div img{
    width: 35%;
}

.services-block h3{
    font-weight: bold;
    margin-bottom: 20px;
}

.services-block p
{
    font-size: 16px;
    height: 160px;
}

.services-container.clients .services-block p{
    color: gray;
    height: auto;
}

.services-block ul{
    height: 225px;
    text-align: left;
}

.services-block ul li{
    margin-bottom: 10px;
}

.services-block ul li:before {
    content: '\2022';
    color: var(--c-med-blue);
    margin-right: 5px;
}

/*контакты*/
.contact-block{
    padding: 20px 0;
    border-top: 1px var(--c-light-grey) solid;
}

.contact-block div{
    display: flex;
    align-items: center;
    padding: 10px;
}

.contact-block div p{
    margin: 0;
    font-size: 16px;
}

.contact-block div i{
    font-size: 30px;
    margin-right: 8px;
    color: var(--c-med-blue);
}



/*footer*/
footer{
    width: 100%;
    padding: 20px 0;
    background: white;
    position: relative;
    bottom: 0;
    height: 90px;
    left: 0;
    border-top: 1px var(--c-light-grey) solid;
}

footer .copyright_text {
    display: block;
    width: 100%;
    margin: 0 auto;
    padding: 10px 0 0 0;
    clear: both;
    text-align: center;
    font-size: 18px;
}

footer .copyright_text a{
    color: var(--c-dark-blue);
}

/*капча*/

.wa-captcha img{
    width: auto;
}

.wa-captcha p{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wa-captcha strong{
    margin: 0 5px;
}

.wa-captcha-input{
    margin-right: 5px;
}

p.invalid-captcha{
    font-weight: bold;
    color: red;
}

/*
  стили для модального окна
*/

.md-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    visibility: hidden;
    top: 0;
    left: 0;
    z-index: 2000;
    opacity: 0;
    background: rgba(0,0,0,.55);
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
}

.md-modal-msg {
    position: fixed;
    top: 50%;
    left: 50%;
    max-width: 800px;
    min-width: 300px;
    width: auto;
    height: auto;
    z-index: 2500;
    visibility: hidden;
    -webkit-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
}

.md-show {
    visibility: visible;
}

.md-show ~ .md-overlay {
    opacity: 1;
    visibility: visible;
}

.md-show .info {
    background: white;
    padding: 20px;
}
/* Content styles */
.md-content {
    color: black;
    background: white;
    position: relative;
    margin: 0 auto;
}

.md-content h1{
    margin-top: 10px;
    font-size: 30px;
}

.md-content button {
    display: block;
    margin: 0 auto;
    font-size: 0.8em;
    outline: none;
}

.md-content .md-close {
    position: absolute;
    z-index: 1;
    right: 0;
    top: 0;
    width: 40px;
    height: 39px;
    border: none;
    cursor: pointer;
    background: #2b5135;
    border-radius: 0;
}

.md-content .md-close:after{
    content: 'x';
    color: white;
    font-size: 28px;
}

/* Effect 1: Fade in and scale up */
.md-effect-1 .md-content {
    -webkit-transform: scale(0.7);
    -moz-transform: scale(0.7);
    -ms-transform: scale(0.7);
    transform: scale(0.7);
    opacity: 0;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
}

.md-show.md-effect-1 .md-content {
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
    opacity: 1;
}
