@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/roboto-v30-latin-regular.eot');
    src: local(''), 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: italic;
    font-weight: 400;
    src: url('../fonts/roboto-v30-latin-italic.eot');
    src: url('../fonts/roboto-v30-latin-italic.eot?#iefix') format('embedded-opentype'), url('../fonts/roboto-v30-latin-italic.woff2') format('woff2'), url('../fonts/roboto-v30-latin-italic.woff') format('woff'), url('../fonts/roboto-v30-latin-italic.ttf') format('truetype'), url('../fonts/roboto-v30-latin-italic.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: local(''), 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: local(''), 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');
}

:root {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    color: #231f20;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 15px;
    line-height: 21px;
    font-weight: 400;
}

#wrapper {
    max-width: 870px;
    margin: 16px auto;
    border: 1px solid #231f20;
    background-color: #fff;
}

article {
    padding: 16px 45px 0;
    background: url('../images/background.jpg') center no-repeat;
    background-size: cover;
}

.flex {
    display: flex;
    justify-content: space-between;
    padding: 32px 90px 0 0;
}

.flex h2 {
    width: 26%;
}

footer {
    padding: 8px 45px;
    background: #c32426;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 12px solid #231f20;
}

footer p {
    color: #fff;
    font-size: 17px;
    line-height: 22px;
}

.justify {
    text-align: justify;
    hyphens: auto;
}

.margin {
    margin: 18px 0 2px;
}

article p {
    margin: 0 0 14px;
}

span {
    white-space: nowrap;
}

h1 {
    margin: 0 0 50px;
    font-weight: 400;
    font-size: 24px;
    line-height: 30px;
    color: #c32426;
    position: relative;
}

h1:before {
    content: '';
    width: 38px;
    height: 26px;
    position: absolute;
    left: -45px;
    background: #314f27;
    clip-path: polygon(0 0, 100% 0, 79% 100%, 0% 100%);
}

:is(h1 strong, h2) {
    font-style: italic;
}

:is(strong, h2) {
    font-weight: 700;
}

h2 {
    position: relative;
    font-size: 16px;
    margin: 0 0 14px;
}

h2:before {
    content: '';
    width: 40px;
    height: 14px;
    position: absolute;
    left: -45px;
    background: #c32426;
    clip-path: polygon(0 0, 100% 0, 84% 100%, 0% 100%);
    top: 3px;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

ul {
    margin: 0 0 60px;
    list-style: none;
}

ul li {
    padding-left: 50px;
}

li:before {
    content: '\2022';
    float: left;
    font-size: 25px;
    line-height: 1;
    text-indent: -25px;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

@media all and (max-width: 868px) {
    #wrapper {
        margin: 0 auto;
        border: none;
    }

    .justify {
        text-align: left;
    }

    :is(p, ul) {
        hyphens: auto;
        text-wrap: pretty;
    }
}

@media all and (max-width: 767px) {
    article {
        padding: 16px 20px 1px;
    }

    footer {
        padding: 10px 20px;
    }

    .flex {
        padding: 20px 0 0;
        gap: 16px;
    }

    .flex h2 {
        width: auto;
    }

    h1:before {
        width: 16px;
        height: 17px;
        left: -20px;
        clip-path: polygon(0 0, 100% 0, 74% 100%, 0% 100%);
        top: 5px;
    }

    h2:before {
        width: 16px;
        height: 12px;
        left: -20px;
        top: 4px;
        clip-path: polygon(0 0, 100% 0, 74% 100%, 0% 100%);
    }

    :is(ul, h1) {
        margin: 0 0 20px;
    }

    ul li {
        padding-left: 20px;
    }

    li:before {
        text-indent: -20px;
    }
}

@media all and (max-width: 630px) {
    :is(.flex, footer) {
        display: block;
    }

    :is(footer, .flex) p {
        text-align: center;
    }
}