/* Указываем box sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Убираем внутренние отступы */
ul[class],
ol[class] {
    padding: 0;
}

/* Убираем внешние отступы */
body,
h1,
h2,
h3,
h4,
p,
ul[class],
ol[class],
li,
figure,
figcaption,
blockquote,
dl,
dd {
    margin: 0;
}

/* Выставляем основные настройки по-умолчанию для body */
body {
    min-height: 100vh;
    scroll-behavior: smooth;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
}

/* Удаляем стандартную стилизацию для всех ul и il, у которых есть атрибут class*/
ul[class],
ol[class] {
    list-style: none;
}

/* Элементы a, у которых нет класса, сбрасываем до дефолтных стилей */
a:not([class]) {
    text-decoration-skip-ink: auto;
}

/* Упрощаем работу с изображениями */
img {
    max-width: 100%;
    display: block;
}

/* Указываем понятную периодичность в потоке данных у article*/
article > * + * {
    margin-top: 1em;
}

/* Наследуем шрифты для инпутов и кнопок */
input,
button,
textarea,
select {
    font: inherit;
}


body {
    font-family: 'Montserrat', sans-serif;
    background-color: #EBF9FF;
}

#header, #langs > ul, #menu  .menu-container > ul, .nav {
    display: flex;
}

#header {
    background-color: #A1DDFF;
    height: 80px;
}

#logo {
    padding: 10px 0px 10px 100px;
    height: 100%;
    min-width: 150px;
}

#logo img {
    height: 100%;
    width: auto;
}

#header .relation a {
    text-decoration: none;
    color: #fff;
    text-transform: uppercase;
    height: 40px;
    background-color: #0077A6;
    border-radius: 7px;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
    display: block;
    margin-left: 50px;
    width: 80px;
}

#menu  ul, #langs ul {
    padding: 0;
    margin: 0;
}

#menu li, #langs li {
    list-style: none;
}

#menu li a, #langs li a {
    text-decoration: none;
    text-transform: uppercase;
    padding: 30px 40px 30px 0;
    line-height: 20px;
    display: block;
}

#menu ul {
    padding-left: 300px;
}

#langs {
    /*position: absolute;*/
    /*right: 90px;*/
}

#langs li a {
    padding-right: 20px;
}

#header a {
    font-family: 'Montserrat', sans-serif;
    color: #0B0754;
}

#banner {
    background-color: #FFF;
    height: auto;
    position: relative;
}

#banner .play {
    background: url("../imgs/play.png") left top no-repeat;
    background-size: 100% 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -60px;
    margin-top: -60px;
    width: 120px;
    height: 120px;
}

#content .info, #content .partners {
    /*display: flex;*/
    float: right;
}

#content .partners {
    display: flex;
}

#content .partners > div {
    width: 50%;
}

#content .partners h2 {
    font-size: 14px;
    color: #0B0754;
    font-weight: 600;
    text-align: center;
    padding: 20px 0;
}

#content .partners span {
    font-size: 12px;
    color: #0B0754;
    font-weight: 400;
    text-align: center;
    padding: 0 0 20px;
    display: block;
}

#content .partners, #content .text {
    width: 50%;
    float: right;
}

#content h3 {
    color: #0B0754;
    font-weight: 700;
    font-size: 32px;
    padding-top: 100px;
}

#content .text {
    padding-left: 40px;
}

#content .text p {
    padding: 20px 40px 20px 0;
    /*width: 600px;*/
}

#content .text button {
    background-color: #0077A6;
    color: #fff;
    border-radius: 7px;
    padding: 15px 0;
    text-align: center;
    border: none;
    width: 275px;
    margin-top: 20px;
    text-transform: uppercase;
    font-size: 16px;
}

#services {
    padding: 0 20px;
    text-align: center;
    clear: both;
}

#services .service a {
    position: absolute;
    top: 50%;
    display: block;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    width: 100%;
    line-height: 30px;
    margin-top: -15px;
}

#services .service, #posts .post {
    background-color: #C4C4C4;
    width: 390px;
    height: 250px;
    position: relative;
    border-radius: 7px;
    margin: 10px;
    display: inline-block;
}

#services h3, #posts h3 {
    padding-top: 40px;
    padding-bottom: 30px;
    text-align: center;
}

#posts {
    text-align: center;
}

#posts .post {
    height: 379px;
    overflow: hidden;
}

#posts .post img {
    width: 100%;
}

#posts .post h4 {
    color: #0B0754;
    font-size: 20px;
    padding-bottom: 20px;
}

#posts .post > div a {
    color: #0077A6;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

#posts .post > div {
    position: absolute;
    bottom: 0;
    background-color: #fff;
    padding: 20px;
    text-align: left;
    width: 100%;
    border-radius: 0 0 7px 7px;
}

#posts .link-more a {
    color: #0077A6;
    border-bottom: 1px solid #0077A6;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    padding: 20px 0 1px;
}

#feedback {
    position: relative;
    margin-top: 20px;
}

#feedback .back {
    background-color: #0077A6;
    height: 446px;
    position: absolute;
    top: 0;
    width: 100%;
}

#feedback form {
    position: relative;
    margin: 0 auto;
    width: 680px;
    background: #fff;
    border-radius: 7px;
    top: 60px;
}

#feedback form > div {
    width: 450px;
    margin: 0 auto;
    padding: 10px 0;
}

#feedback form h5 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    padding: 20px 0 0;
    margin: 0;
}

#feedback form p {
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    padding: 20px 0;
    color: #0B0754;
    width: 450px;
    margin: 0 auto;
}

#feedback form label {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    padding-bottom: 10px;
}

#feedback form input, #feedback form textarea {
    width: 100%;
}

#feedback form input {
    border: 2px solid #E1E0E7;
    padding: 10px;
    border-radius: 7px;
}

#feedback textarea {
    background: #F5F5F5;
    border: 1px solid #ccc;
    border-radius: 7px;
    height: 100px;
}

#feedback input[type=submit] {
    text-decoration: none;
    color: #fff;
    text-transform: uppercase;
    height: 40px;
    background-color: #0077A6;
    border-radius: 7px;
    text-align: center;
    padding: 10px;
    margin: 20px auto;
    display: block;
    width: 171px;
}

#bottom {
    position: relative;
    width: 100%;
    overflow: hidden;
}

#bottom .map {
    height: 500px;
    overflow: hidden;
}

#bottom .map img, #bottom .map {
    width: 150%;
    padding: 0;
    margin-left: -25%;
    margin-right: -25%;
}

#bottom .info-block {
    position: absolute;
    top: 60px;
    left: 40px;
    width: 280px;
    background: #ebf9ff;
    border-radius: 7px;
    padding-bottom: 20px;
    padding-left: 20px;
}

#bottom h4 {
    color: #0B0754;
    font-size: 24px;
    padding: 40px 10px;
}

#bottom div {
    font-size: 14px;
    padding: 0;
}

#bottom a {
    font-size: 14px;
    display: block;
    padding-top: 20px;
}

#footer .blue {
    background: #0077A6;
    width: 100%;
    padding: 10px;
    color: #fff;
    font-size: 12px;
}


#breads {
    text-align: center;
    font-size: 18px;
    padding: 10px 0;
}

#service-content {
    width: 750px;
    margin: 0 auto;
}

#service-content h1 {
    font-size: 40px;
    color: #123144;
    text-align: center;
    font-weight: 700;
    padding: 10px 0;
}

#service-content .subline {
    font-size: 16px;
    color: #0B0754;
    text-align: center;
    font-weight: 400;
}

#service-content p {
    font-size: 16px;
    color: #0B0754;
    font-weight: 400;
    padding: 10px 0;
}

#bottom .info-block div {
    padding: 10px 0 10px 40px;
    line-height: 20px;
    margin-left: 10px;
}

#bottom .info-block .tel {
    background: url("../imgs/phone_icon.png") left center no-repeat;
    background-size: 19px 19px;
}

#bottom .info-block .email {
    background: url("../imgs/letter_icon.png") left center no-repeat;
    background-size: 19px 19px;
}

#bottom .info-block .address {
    background: url("../imgs/marker_icon.png") left center no-repeat;
    background-size: 19px 19px;
}

#bottom .info-block .subscribe-btn {
    color: #333;
    text-decoration: underline;
}

#breads span {
    background: url("../imgs/arrow.png") left center no-repeat;
    padding: 20px 0 20px 15px;
    background-size: 10px;
}

#breads span:first-child {
    background-image: none;
    padding-left: 0;
    padding-right: 0;
}

#mobile-menu-switcher {
    display: none;
    width: 90px;
    height: 90px;
    position: absolute;
    top: 3px;
    right: 0;
    padding: 20px;
}

#mobile-menu-switcher span {
    border: 2px solid #0077A6;
    display: block;
    margin-bottom: 12px;
}

@media (max-width: 1240px) {
    #menu ul {
        padding-left: 120px;
    }
}


@media(max-width: 1024px) {
    #services .service a {
        line-height: 50px;
        margin-top: -25px;
    }

    #bottom .info-block div a, #bottom .info-block .tel, #bottom .info-block .email, #bottom .info-block .address {
        font-size: 30px;
    }

    .partners img {
        margin: 0 auto;
    }

    #content .text p {
        width: auto;
    }

    #header {
        height: 140px;
    }

    #mobile-menu-switcher {
        width: 140px;
        height: 140px;
        margin-top: 5px;
    }

    #logo img {
        width: 100px;
    }

    #langs {
        position: absolute;
        right: 150px;
        top: 25px;
    }

    #mobile-menu-switcher span {
        margin-bottom: 20px;
        border: 6px solid #0077A6;
    }

    #breads {
        text-align: left;
        padding: 20px;
    }

    #langs li a {
        padding-right: 20px;
        font-size: 40px;
    }

    #mobile-menu-switcher {
        display: block;
    }
    #menu {
        width: 100%;
    }
    #menu  .menu-container > ul.active {
        display: block;
    }
    #menu  .menu-container > ul {
        display: none;
        position: absolute;
        top: 0;
        right: 0;
        width: auto;
        background: #f1f7fa;
        border: 1px solid #999999;
        border-top: none;
        border-right: none;
        z-index: 100;
        padding: 30px 30px 30px 70px;
        text-align: right;
    }
    #menu  .menu-container > ul li {
        display: block;
        font-size: 30px;
    }
    #menu .menu-container {
        position: relative;
    }

    #mobile-menu-closer {
        position: absolute;
        top: 0;
        left: -80px;
        background: url(../imgs/cross.png) center center no-repeat;
        width: 80px;
        height: 80px;
    }

    #content .partners > div {
        width: 100%;
    }
    #content .partners, #content .text {
        width: 100%;
    }
    #content .info, #content .partners {
        display: block;
    }
    #content .text p {
        width: 100%;
    }
    #content .text {
        padding: 20px;
    }

    #content .text button {
        width: 100%;
        padding: 30px 0;
        font-size: 40px;
    }
    #services .service, #posts .post {
        width: auto;
        height: 400px;
        font-size: 40px;
        display: block;
    }
    #post {
        padding: 20px;
    }
    #posts .post {
        height: 500px;
        display: block;
    }
    #posts .post h4 {
        font-size: 40px;
    }
    #posts .post > div a {
        font-size: 30px;
    }
    #posts .link-more {
        padding: 0 0 40px;
    }
    #posts .link-more a {
        font-size: 16px;
    }

    #feedback form {
        padding: 40px 20px;
        border-radius: 30px;
    }
    #feedback form label {
        font-size: 30px;
    }
    #feedback form input {
        font-size: 30px;
    }
    #feedback form {
        width: auto;
        margin: 0 20px;
    }
    #feedback h5 {
        font-family: Montserrat;
        font-style: normal;
        font-weight: bold;
        font-size: 32px;
    }

    #feedback form input {
        width: 100%;
        height: 94px;
        border: 2px solid #E1E0E7;
        box-sizing: border-box;
        border-radius: 5px;
        line-height: 20px;
        font-size: 20px;
    }
    #feedback form input[type=submit] {
        background: #0077A6;
        border-radius: 5px;
        font-family: Montserrat;
        font-style: normal;
        font-weight: bold;
        width: 80%;
        padding: 30px 0;
        font-size: 40px;
        height: auto;
    }
    #feedback form textarea {
        height: 170px;
        background: #F5F5F5;
        border-radius: 5px;
    }
    #feedback form label {
        font-family: Montserrat;
        font-size: 14px;
    }
    #feedback form > div {
        width: auto;
        padding: 10px 20px;
    }
    #feedback form p {
        font-size: 12px;
        width: auto;
    }
    .br {
        height: 50px;
    }
    #bottom .info-block {
        /*position: static;*/
        width: auto;
        background: #ebf9ff;
        border-radius: 7px;
        padding: 20px;
    }
    #bottom .info-block h4 {
        font-family: Montserrat;
        font-style: normal;
        font-weight: bold;
        font-size: 50px;
    }

    #logo {
        padding: 10px 0 10px 20px;
    }

    #header .relation {
        display: none;
    }


    /* POSTS */
    #service-content {
        width: auto;
        margin: 0;
        padding: 20px;
    }
    #service-content h1 {
        font-family: Montserrat;
        font-style: normal;
        font-weight: bold;
        font-size: 32px;
        text-align: left;
    }
}
