@font-face {
    font-display: swap;
    font-family: 'Jost';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/jost-v15-latin-regular.eot');
    src: url('../fonts/jost-v15-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/jost-v15-latin-regular.woff2') format('woff2'), url('../fonts/jost-v15-latin-regular.woff') format('woff'), url('../fonts/jost-v15-latin-regular.ttf') format('truetype'), url('../fonts/jost-v15-latin-regular.svg#Jost') format('svg');
}

@font-face {
    font-display: swap;
    font-family: 'Jost';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/jost-v15-latin-700.eot');
    src: url('../fonts/jost-v15-latin-700.eot?#iefix') format('embedded-opentype'), url('../fonts/jost-v15-latin-700.woff2') format('woff2'), url('../fonts/jost-v15-latin-700.woff') format('woff'), url('../fonts/jost-v15-latin-700.ttf') format('truetype'), url('../fonts/jost-v15-latin-700.svg#Jost') format('svg');
}

:root {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    color: #000;
    font-family: 'Jost', Arial, sans-serif;
    font-size: 16px;
    line-height: 21px;
    font-weight: 400;
}

#wrapper {
    max-width: 498px;
    margin: 16px auto;
    border: 4px solid #bd1c1d;
    padding: 14px 16px;
    background-color: #fff;
}

header {
    padding: 0 0 13px;
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
    align-items: center;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: 8px 0 0;
}

footer p {
    font-size: 14px;
    line-height: 18px;
}

footer>div {
    display: flex;
    gap: 12px;
}

footer>div>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.margin {
    margin: 8px 0 10px;
}

:is(strong, h1, h2) {
    font-weight: 700;
}

h1 {
    margin: 0 -16px 6px;
    padding: 6px 16px;
    font-size: 24px;
    line-height: 1.3;
    background: #bd1c1d;
    color: #fff;
}

h1 span {
    font-weight: 400;
}

h1 small {
    display: block;
    font-weight: 400;
    font-size: 21px;
    font-style: italic;
    margin: 2px 0 0;
}

h3 {
    font-size: 21px;
    line-height: 1.2;
    font-weight: 700;
    width: 50%;
}

h2 {
    font-size: 17px;
    line-height: 1.3;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #000;
    text-decoration: none;
    white-space: nowrap;
}

ul {
    padding: 0 0 7px;
    list-style: none;
}

ul li {
    padding-left: 16px;
}

li:before {
    content: '\2022';
    float: left;
    margin-top: -2px;
    font-size: 34px;
    line-height: 1;
    text-indent: -16px;
    font-weight: 700;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

@media all and (max-width: 497px) {
    #wrapper {
        margin: 0 auto;
        padding: 1rem;
        border: none;
    }

    header {
        padding: 0 0 10px;
    }

    :is(p, ul) {
        hyphens: auto;
        text-wrap: pretty;
    }

    h1 {
        margin: 0 -16px 10px;
        padding: 10px 16px;
    }

    span {
        white-space: nowrap;
    }

    br:not(footer br) {
        display: none;
    }
}

@media all and (max-width: 480px) {
    :is(header, footer) {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    h3 {
        width: auto;
    }

    footer {
        margin: 16px 0 0;
    }

    footer p {
        text-align: center;
    }
}