@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/open-sans-v34-latin-regular.eot');
    src: local(''), url('../fonts/open-sans-v34-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/open-sans-v34-latin-regular.woff2') format('woff2'), url('../fonts/open-sans-v34-latin-regular.woff') format('woff'), url('../fonts/open-sans-v34-latin-regular.ttf') format('truetype'), url('../fonts/open-sans-v34-latin-regular.svg#OpenSans') format('svg');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/open-sans-v34-latin-700.eot');
    src: local(''), url('../fonts/open-sans-v34-latin-700.eot?#iefix') format('embedded-opentype'), url('../fonts/open-sans-v34-latin-700.woff2') format('woff2'), url('../fonts/open-sans-v34-latin-700.woff') format('woff'), url('../fonts/open-sans-v34-latin-700.ttf') format('truetype'), url('../fonts/open-sans-v34-latin-700.svg#OpenSans') format('svg');
}

:root {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 23px;
    color: #231f20;
}

#wrapper {
    margin: 1rem auto;
    max-width: 980px;
    background: #fff;
    border: solid thin #cbcbcb;
}

header {
    position: relative;
}

article {
    padding: 30px 62px 20px;
}

.flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0 6px;
}

.flex-box {
    display: flex;
    gap: 32px 12px;
    justify-content: space-between;
    margin: 48px 0 0;
}

.flex-box-content {
    width: 49%;
}

.justify {
    text-align: justify;
    hyphens: auto;
}

.border {
    border: 1px solid #231f20;
    padding: 20px;
    margin-top: 48px;
}

.small {
    font-size: 13px;
    line-height: 1.3;
    margin: 52px 0 0;
}

.link a {
    color: #3B5898 !important;
}

.background {
    position: absolute;
    left: 62px;
    bottom: 0;
    background: #fff;
    height: 40px;
    line-height: 40px;
    width: 174px;
    text-align: center;
    margin: 0;
}

footer {
    padding: 16px 62px 40px;
}

:is(h1, h2, strong) {
    font-weight: 700;
}

:is(h1, h2) {
    line-height: 1.2;
}

h1 {
    font-size: 37px;
    margin: 0 0 16px;
}

h1 span {
    font-size: 77%;
    font-weight: 400;
}

h2 {
    font-size: 16px;
    margin: 0 0 10px;
}

p {
    margin-bottom: 10px;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #231f20;
    text-decoration: none;
}

img {
    max-width: 100%;
    vertical-align: top;
}

ul {
    margin: 0 0 16px;
    list-style: none;
}

ul li {
    padding-left: 34px;
}

li:before {
    content: '\2010';
    float: left;
    font-size: 20px;
    text-indent: -20px;
    margin: -2px 0 0;
}

.flex ul {
    width: 48%;
}

@media screen and (max-width: 978px) {
    #wrapper {
        border: none;
        margin: 0;
    }

    .justify {
        text-align: left;
    }

    :is(h1, h2, p, ul li) {
        hyphens: auto;
        text-wrap: pretty;
    }

    ul li {
        padding-left: 20px;
    }

    :is(p a, span) {
        white-space: nowrap;
    }

    br:not(br.mobile-block) {
        display: none;
    }
}

@media screen and (max-width: 767px) {
    :is(article, footer, .border) {
        padding: 1rem;
    }

    .background {
        left: 1rem;
        width: 140px;
    }
}

@media screen and (max-width: 680px) {
    .flex-box {
        flex-direction: column;
        margin-top: 1rem;
        gap: 0;
    }

    .flex-box-content {
        width: 100% !important;
    }

    .flex ul {
        width: auto;
        margin: 0;
    }

    .border {
        margin-top: 1rem;
    }
}

@media screen and (max-width: 580px) {
    .flex {
        flex-direction: column;
    }

    .flex li {
        width: auto !important;
    } }