@font-face {
    font-display: swap;
    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-display: swap;
    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 {
    color: #fff;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 15px;
    line-height: 21px;
    font-weight: 400;
}

#wrapper {
    max-width: 920px;
    margin: 16px auto;
    border: 1px solid #000;
    padding: 40px 40px 8px;
    background: url('../images/background.jpg') no-repeat;
}

header {
    padding: 0 0 40px;
    flex-direction: row-reverse;
}

:is(header, footer p, .flex) {
    display: flex;
    justify-content: space-between;
}

figure {
    display: none;
}

.flex {
    align-items: flex-end;
    padding: 66px 0 36px;
}

:is(strong, h1, h2) {
    font-weight: 700;
}

h1 {
    margin: 0 0 26px;
    font-size: 44px;
    line-height: 1.1;
}

h2 {
    font-size: 32px;
    line-height: 1.1;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #fff;
    text-decoration: none;
    word-break: break-all;
}

ul {
    font-size: 16px;
    list-style: none;
}

ul li {
    padding-left: 16px;
    position: relative;
}

li:before {
    content: '\2022';
    position: absolute;
    font-size: 25px;
    text-indent: -16px;
}

img {
    max-width: 100%;
}

@media all and (max-width: 919px) {
    #wrapper {
        margin: 0 auto;
        border: none;
        background: rgb(144, 210, 190);
        background: -moz-linear-gradient(-45deg, rgb(144, 210, 190) 0%, rgb(95, 189, 162) 50%, rgb(61, 161, 132) 100%);
        background: -webkit-linear-gradient(-45deg, rgb(144, 210, 190) 0%, rgb(95, 189, 162) 50%, rgb(61, 161, 132) 100%);
        background: linear-gradient(135deg, rgb(144, 210, 190) 0%, rgb(95, 189, 162) 50%, rgb(61, 161, 132) 100%);
        padding: 16px 16px 0;
    }

    figure {
        display: flex;
        justify-content: flex-end;
        margin: 0 -16px 0 0;
    }

    header {
        padding: 0 0 20px;
    }

    .flex {
        padding: 16px 0;
    }

    footer {
        margin: 0 -16px;
    }

    footer p span {
        background: #00a65e;
        padding: 10px 16px;
        width: 20%;
        display: flex;
        align-items: center;
        text-align: center;
        justify-content: center;
    }

    footer p span:nth-of-type(2) {
        background: #0098ca;
        padding: 10px 16px;
    }

    footer p span:nth-of-type(3) {
        background: #007dc6;
        padding: 10px 16px;
    }

    footer p span:nth-of-type(4) {
        background: #f47920;
        padding: 10px 16px;
    }

    footer p span:nth-of-type(5) {
        background: #7fc241;
        padding: 10px 16px;
    }

    :is(p, ul) {
        hyphens: auto;
        text-wrap: pretty;
    }

    h1 br {
        display: none;
    }
}

@media all and (max-width: 820px) {
    .flex {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    article :is(h1, ul, h2, p) {
        text-align: center;
    }
}

@media all and (max-width: 767px) {
    header {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    footer p {
        flex-wrap: wrap;
        justify-content: center;
    }

    footer p span {
        width: 33.33%;
    }

    footer p :is(span:nth-of-type(4), span:nth-of-type(5)) {
        width: 50%;
    }
}

@media all and (max-width: 480px) {
    footer p span {
        width: 50%;
    }

    footer p :is(span:nth-of-type(3), span:nth-of-type(4), span:nth-of-type(5)) {
        width: 100%;
    }
}