@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/open-sans-v35-latin-regular.eot');
    src: url('../fonts/open-sans-v35-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/open-sans-v35-latin-regular.woff2') format('woff2'), url('../fonts/open-sans-v35-latin-regular.woff') format('woff'), url('../fonts/open-sans-v35-latin-regular.ttf') format('truetype'), url('../fonts/open-sans-v35-latin-regular.svg#OpenSans') format('svg');
}

@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/open-sans-v35-latin-700.eot');
    src: url('../fonts/open-sans-v35-latin-700.eot?#iefix') format('embedded-opentype'), url('../fonts/open-sans-v35-latin-700.woff2') format('woff2'), url('../fonts/open-sans-v35-latin-700.woff') format('woff'), url('../fonts/open-sans-v35-latin-700.ttf') format('truetype'), url('../fonts/open-sans-v35-latin-700.svg#OpenSans') format('svg');
}

@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 800;
    src: url('../fonts/open-sans-v44-latin-800.eot');
    src: url('../fonts/open-sans-v44-latin-800.eot?#iefix') format('embedded-opentype'), url('../fonts/open-sans-v44-latin-800.woff2') format('woff2'), url('../fonts/open-sans-v44-latin-800.woff') format('woff'), url('../fonts/open-sans-v44-latin-800.ttf') format('truetype'), url('../fonts/open-sans-v44-latin-800.svg#OpenSans') format('svg');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    color: #fff;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
}

#wrapper {
    max-width: 702px;
    height: 475px;
    margin: 1rem auto;
    border: 1px solid #000;
    background: url('../images/background.jpg') no-repeat;
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
    position: relative;
}

article {
    width: 386px;
    padding: 20px 30px;
}

.title {
    position: absolute;
    top: 210px;
    left: 30px
}

footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px;
    position: absolute;
    left: 30px;
    bottom: 24px;
    width: 302px;
}

p:not(:first-of-type) {
    margin-top: 10px;
}

h1 {
    font-size: 20px;
    line-height: 27px;
}

h1 span {
    display: block;
    margin-top: 27px;
    font-size: 93%;
}

h1 small {
    font-size: 15px;
}

h2 {
    font-size: 68px;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}

h2 span {
    background: #ed1c2a;
    padding: 0px 20px;
}

h2 span:nth-of-type(2) {
    font-size: 35px;
    padding: 5px 20px;
}

h3 {
    font-weight: 700;
    font-size: 25px;
    line-height: 27px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

h3 strong {
    display: block;
    font-size: 16px;
    line-height: 20px;
    background: #fff;
    padding: 8px 6px;
}

h3 span {
    display: block;
    padding: 1px 6px 7px;
    background: #ED1B24;
    color: #fff;
}

h3 a {
    color: #152338 !important;
}

img {
    max-width: 100%;
    display: block;
}

:is(h1, h2, strong) {
    font-weight: 800;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #000;
    text-decoration: none;
    white-space: nowrap;
}

@media only screen and (max-width:702px) {
    #wrapper {
        border: none;
        margin: 0;
        background: #199bd8;
        padding: 16px;
    }

    article {
        position: relative;
        padding: 16px;
    }

    p {
        hyphens: auto;
        text-wrap: pretty
    }

    p span {
        white-space: nowrap;
    }

    :is(.title, footer) {
        left: 16px
    }

    .title {
        padding-right: 20px
    }

    h2 {
        font-size: 58px
    }
}

@media only screen and (max-width:550px) {
    #wrapper {
        display: block;
        height: auto
    }

    :is(article, footer, .title) {
        width: auto;
        position: static;
    }

    header {
        display: flex;
        justify-content: center;
    }

    h2 {
        align-items: center;
    }

    footer {
        justify-content: center;
    }

    h1 {
        text-align: center;
        margin-top: 20px
    }
}