@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');
}

@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: italic;
    font-weight: 700;
    src: url('../fonts/roboto-v30-latin-700italic.eot');
    src: url('../fonts/roboto-v30-latin-700italic.eot?#iefix') format('embedded-opentype'), url('../fonts/roboto-v30-latin-700italic.woff2') format('woff2'), url('../fonts/roboto-v30-latin-700italic.woff') format('woff'), url('../fonts/roboto-v30-latin-700italic.ttf') format('truetype'), url('../fonts/roboto-v30-latin-700italic.svg#Roboto') format('svg');
}

@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 900;
    src: url('../fonts/roboto-v30-latin-900.eot');
    src: url('../fonts/roboto-v30-latin-900.eot?#iefix') format('embedded-opentype'), url('../fonts/roboto-v30-latin-900.woff2') format('woff2'), url('../fonts/roboto-v30-latin-900.woff') format('woff'), url('../fonts/roboto-v30-latin-900.ttf') format('truetype'), url('../fonts/roboto-v30-latin-900.svg#Roboto') format('svg');
}

@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: italic;
    font-weight: 900;
    src: url('../fonts/roboto-v30-latin-900italic.eot');
    src: url('../fonts/roboto-v30-latin-900italic.eot?#iefix') format('embedded-opentype'), url('../fonts/roboto-v30-latin-900italic.woff2') format('woff2'), url('../fonts/roboto-v30-latin-900italic.woff') format('woff'), url('../fonts/roboto-v30-latin-900italic.ttf') format('truetype'), url('../fonts/roboto-v30-latin-900italic.svg#Roboto') format('svg');
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    font-size: 16px;
}

body {
    color: #000;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 16px;
    line-height: 18px;
    font-weight: 400;
}

#wrapper {
    max-width: 868px;
    margin: 16px auto;
    border: 1px solid #000;
    background: #fff url(../images/background.jpg) no-repeat;
    position: relative;
    height: 584px;
}

article {
    padding: 8px 32px 0;
    position: relative;
}

article>p {
    font-size: 20px;
    line-height: 23px;
}

.position {
    position: absolute;
    right: 20px;
    top: 13px;
    width: 375px;
    text-align: center;
    line-height: 20px;
}

.flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    margin: 22px -16px 13px;
}

.box:first-of-type {
    flex: 1 1 0;
    padding: 0 48px;
    width: 50%;
}

figure {
    display: none;
}

.box:last-of-type {
    width: 356px;
    margin: 87px 0 0;
}

.box:last-of-type>p {
    text-align: center;
    margin-top: 2px;
}

.logo {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 5px 0;
}

.logo p {
    margin: 0;
    font-size: 15px;
}

footer {
    padding: 10px 10px 8px 153px;
    position: relative;
}

.background {
    font-weight: 900;
    font-size: 18px;
    line-height: 22px;
    font-style: italic;
    text-shadow: 2px 0 #fff, -2px 0 #fff, 0 2px #fff, 0 -2px #fff, 1px 1px #fff, -1px -1px #fff, 1px -1px #fff, -1px 1px #fff, 1px 1px 4px #000, -1px 1px 4px #000, 1px -1px 4px #000, -1px -1px 4px #000;
    color: #ed1c24;
    padding: 6px 10px;
    position: absolute;
    bottom: 13px;
    right: 35px;
}

.background a {
    color: #ed1c24 !important;
}

.font {
    font-size: 23px;
    line-height: 22px;
    font-weight: 900;
    color: #fff;
}

.font small {
    font-size: 36px;
    line-height: 0;
    position: relative;
    top: 6px;
}

strong {
    font-weight: 700;
}

h1 {
    margin: 71px 0;
    padding-left: 24px;
    font-weight: 700;
    font-size: 19px;
    line-height: 28px;
    font-style: italic;
    position: relative;
}

h1:before {
    content: '✔';
    color: #d2232a;
    float: left;
    font-size: 22px;
    text-indent: -26px;
    position: absolute;
}

h1 small {
    display: block;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
}

h2 {
    font-weight: 900;
    font-size: 28px;
    line-height: 1.5;
    text-decoration: underline;
    font-style: italic;
}

h3 {
    font-weight: 900;
    font-size: 29px;
    line-height: 1.25;
    text-decoration: underline;
    font-style: italic;
    text-align: center;
    color: #d2232a;
    margin-left: 94px;
}

.link {
    color: #d2232a !important;
}

:is(h4, .box:last-of-type p strong) {
    font-weight: 700;
    font-size: 18px;
    line-height: 21px;
    text-align: center;
}

img {
    max-width: 100%;
    vertical-align: bottom;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #000;
    text-decoration: none;
}

@media all and (max-width: 866px) {
    #wrapper {
        margin: 0;
        border: none;
        background: #fff;
        height: auto;
    }

    article {
        padding: 8px 16px 32px;
        background: linear-gradient(to bottom, #fbfbfd 0%, #ced3eb 25%, #fcfcfe 50%, #e4e8f4 75%, #eaedf7 100%);
    }

    .position {
        position: static;
        width: auto;
    }

    .flex {
        margin: 26px 0 0;
    }

    .box:first-of-type {
        padding: 16px;
        border: 2px solid #000;
        position: relative;
        background: #fff;
    }

    figure {
        display: block;
        position: absolute;
        top: -20px;
        left: -24px;
    }

    .background {
        background: #ed1c24;
        border: 2px solid;
        border-image-source: linear-gradient(90deg, #ce8321, #ffce16, #ffdb48, #fff);
        border-image-slice: 1;
    }

    footer {
        background: linear-gradient(168deg, #ed1c24 0%, #ed1c24 25%, #D42728 50%, #D42728 80%, #f7a175 90%, #f9aa5f 95%, #C59237 100%);
        padding: 8px 16px;
    }

    h2 {
        font-size: 35px;
        margin: 0 0 0 104px;
    }

    h3 {
        margin-left: 0
    }

    :is(p, ul) {
        hyphens: auto;
        text-wrap: pretty;
    }

    :is(a, span) {
        white-space: nowrap;
    }

    br:not(.logo br, footer br) {
        display: none;
    }
}

@media all and (max-width: 800px) {
    .box {
        width: 100% !important;
        margin: 0 !important;
    }

    .box:first-of-type {
        display: flex;
        align-items: center;
        flex-direction: column;
    }

    h1 {
        margin: 24px 0;
    }

    h3 {
        margin-left: 0;
    }

    .block {
        display: inline !important;
    }
}

@media all and (max-width: 690px) {
    .background {
        position: static;
        margin: 0 0 16px;
        text-align: center;
    }

    .font {
        text-align: center;
        font-size: 20px;
    }

    footer br {
        display: none;
    }
}

@media all and (max-width: 424px) {
    figure {
        position: static;
    }

    .logo {
        flex-direction: column;
    }

    :is(.logo p, h1) {
        text-align: center;
    }

    h2 {
        margin: 0;
        text-align: center;
    }
}