@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/roboto-v30-latin-regular.eot');
    src: local(''), url('../fonts/roboto-v30-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/roboto-v30-latin-regular.woff2') format('woff2'), url('../fonts/roboto-v30-latin-regular.woff') format('woff'), url('../fonts/roboto-v30-latin-regular.ttf') format('truetype'), url('../fonts/roboto-v30-latin-regular.svg#Roboto') format('svg');
}

@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/roboto-v30-latin-700.eot');
    src: local(''), url('../fonts/roboto-v30-latin-700.eot?#iefix') format('embedded-opentype'), url('../fonts/roboto-v30-latin-700.woff2') format('woff2'), url('../fonts/roboto-v30-latin-700.woff') format('woff'), url('../fonts/roboto-v30-latin-700.ttf') format('truetype'), url('../fonts/roboto-v30-latin-700.svg#Roboto') format('svg');
}

:root {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    color: #143564;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}

#wrapper {
    max-width: 790px;
    margin: 16px auto;
    border: 1px solid #000;
    background: url('../images/background.jpg') right center no-repeat;
}


article {
    padding: 16px;
    position: relative;
}

.position {
    position: absolute;
    top: -79px;
    right: 30px;
    z-index: 99;
}

.width {
    width: 79%;
}

.flex {
    display: flex;
    margin: 10px 0;
}


.item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
}

.item p {
    flex: 1 1 0;
    font-size: 14px;
    line-height: 1.25;
}

.item p strong {
    font-size: 16px;
    display: block;
}

.block {
    display: block;
    line-height: 1.5;
}

.qrcode {
    position: absolute;
    bottom: -142px;
    right: 40px;
    z-index: 9;
}

footer {
    padding: 24px 24px;
    background: #041c46;
}

.logo {
    display: flex;
    align-items: flex-start;
    gap: 22px;
}

.media {
    display: flex;
    align-items: center;
    gap: 52px;
    margin: 15px 0 0;
}

.media div {
    display: flex;
    align-items: center;
    gap: 6px;
}

article>p {
    margin: 0 0 14px;
}

span {
    white-space: nowrap;
}

:is(strong, h1, h3, h4, h5) {
    font-weight: 700;
}

h1 {
    margin: 20px 0 16px;
    font-size: 31px;
    line-height: 1.2;
    text-align: center;
    color: #113564;
    padding: 20px 20px 20px 40px;
    border-radius: 16px;
    text-align: center;
    display: inline-block;
    font-weight: 400;
    background: #C8DBEE url('../images/icon.jpg') no-repeat 15px 24px;
}

h1 span {
    color: #4E74A8;
    font-size: 75%;
}

h2 {
    margin: 0 0 66px;
    font-weight: 700;
    font-size: 40px;
    line-height: 1.25;
    color: #fff;
    text-align: center;
    position: relative;
}

h2 span {
    display: block;
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
}

h2::before {
    content: "";
    width: 3px;
    height: 60px;
    background-color: #C8DBEE;
    position: absolute;
    top: -60px;
    left: calc(50% - 1px);
}

h2 .span {
    color: #143564;
}

h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

h4 {
    font-size: 21px;
    line-height: 1.5;
    margin: 5px 0 0;
    color: #fff;
}

h4 small {
    display: block;
    font-size: 14px;
    color: #c9dbee;
    font-weight: 400;
}

h5 {
    display: inline-block;
    background: #c9dbee;
    padding: 5px 16px;
    border-radius: 10px;
    font-size: 29px;
    line-height: 1;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.text {
    color: #4974A8;
}

.line {
    color: #4A697D;
}

a.color {
    color: #0080c6 !important;
}

.tel {
    position: relative;
    z-index: 999;
}

.arrow {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.arrow ul {
    margin-bottom: 0;
}

.arrow>div {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

ul {
    margin: 0 0 16px;
    list-style: none;
}

ul li {
    padding-left: 14px;
}

li:before {
    content: '\2022';
    float: left;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 24px;
    text-indent: -14px;
    margin-top: -1px;
}

li div {
    margin-left: 46px;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

@media all and (max-width: 938px) {
    #wrapper {
        margin: 0 auto;
        border: none;
        background: none;
    }

    header {
        opacity: 1;
    }

    .position {
        background: #aebbd8;
        position: static;
        display: flex;
        justify-content: space-around;
        align-items: center;
        gap: 16px 20px;
        padding: 16px;
        margin: 0 -16px 16px;
        flex-wrap: wrap;
    }

    article {
        padding: 0 16px 16px;
    }

    footer {
        padding: 16px;
    }

    :is(p, ul) {
        hyphens: auto;
        text-wrap: pretty;
    }

    .flex {
        justify-content: space-between;
    }

    .box {
        width: 48%;
    }

    .qrcode {
        right: 16px;
        bottom: -130px;
    }

    .width {
        width: auto;
    }

    .kontakt {
        width: calc(100% - 230px);
    }

    .logo {
        gap: 16px;
    }

    .media {
        margin-left: 118px;
    }

    h2 {
        margin: 0;
    }

    br {
        display: none;
    }
}

@media all and (max-width: 767px) {
    .flex {
        display: block;
    }

    :is(.box, .kontakt) {
        width: 100%;
    }

    .qrcode {
        position: static;
        display: flex;
        justify-content: center;
    }
}

@media all and (max-width: 550px) {
    .logo {
        flex-direction: column;
        align-items: center;
    }

    h4 {
        text-align: center;
        margin: 0;
        font-size: 22px;
    }

    .media {
        margin: 12px 0 0;
        justify-content: center;
        gap: 16px;
        flex-wrap: wrap;
    }
}