@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/roboto-v30-latin-regular.eot');
    src: 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: 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');
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    color: #161a54;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5em;
    font-weight: 400;
}

#wrapper {
    max-width: 1030px;
    margin: 16px auto;
    border: 1px solid #000;
    background-color: #fff;
    position: relative;
}

article {
    padding: 16px 40px;
    position: relative;
}

.logo {
    position: absolute;
    top: 23px;
    right: 64px;
    width: 157px;
}

.flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 32px 16px;
    margin: 0 0 32px;
}

.box {
    width: 48%;
}

.background {
    padding: 24px;
    background: #f2f2f2;
}

.background div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-end;
}

.background div p {
    margin: 0;
    flex: 1 1 0;
}

footer {
    padding: 0 40px 40px;
}

footer p {
    text-align: center;
}

.font {
    margin: 48px 0 0;
    font-size: 14px;
    line-height: 18px;
    padding-top: 16px;
    border-top: 1px solid #161a54;
}

p {
    margin: 0 0 10px;
}

strong {
    font-weight: 700;
}

h1 {
    margin: 27px 0;
    font-weight: 700;
    font-size: 34px;
    line-height: 38px;
    text-align: center;
    color: #296bff;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1 small {
    display: block;
    font-size: 18px;
    line-height: 24px;
    margin: 10px 0;
}

h2 {
    padding-top: 40px;
    margin: 0 0 16px;
    font-weight: 700;
    font-size: 20px;
    line-height: 26px;
    background: url(../images/line.jpg) top left no-repeat;
    background-size: 100%;
}

h3 {
    margin: 0 0 0;
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
}

h4 {
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    width: 150px;
    height: 150px;
    padding: 10px;
    background: #afc904;
    border-radius: 50%;
    transform: rotate(-8deg);
    text-align: center;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

ul {
    list-style: none;
}

ul li {
    padding-left: 16px;
}

li:before {
    content: '\2022';
    float: left;
    font-size: 20px;
    text-indent: -16px;
}

img {
    max-width: 100%;
    vertical-align: bottom;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #161a54;
    text-decoration: none;
    white-space: nowrap;
}

@media all and (max-width: 1028px) {
    #wrapper {
        margin: 0;
        border: none;
    }

    article {
        padding: 16px;
    }

    .logo {
        right: 16px;
    }

    footer {
        padding: 0 16px 16px;
    }

    :is(p, ul) {
        hyphens: auto;
        text-wrap: pretty;
    }

    :is(a, span) {
        white-space: nowrap;
    }

    br:not(footer br) {
        display: none;
    }
}

@media all and (max-width: 900px) {
    .flex {
        flex-direction: column;
    }

    .box {
        width: 100%;
    }

    .logo {
        position: static;
        display: flex;
        justify-content: center;
        width: auto;
    }
}

@media all and (max-width: 480px) {
    .background div {
        flex-direction: column;
        align-items: center;
        margin: 16px 0 0;
    }
}