@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');
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    color: #231f20;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5em;
    font-weight: 400;
}

#wrapper {
    max-width: 952px;
    margin: 16px auto;
    border: 1px solid #ccc;
    padding: 0 195px 0 146px;
    background-color: #fff;
    position: relative;
}

header {
    margin: 0 -202px 0 -146px;
    border-top: 48px solid #f8981c;
}

.logo {
    padding: 24px 176px 16px 146px;
}

.flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.flex-ul {
    display: flex;
    gap: 19px
}

.margin {
    margin: 0 6px;
}

article {
    padding: 0 0 86px;
}

article p:last-of-type {
    margin: 0 -42px 0 0;
}

.color {
    color: #bf2e1a;
}

footer {
    margin: 0 -202px 0 -146px;
    padding: 0 160px 32px 146px;
    background: #bf2e1a;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

figure {
    margin: -70px 0 0;
}

p {
    margin: 0 0 4px;
}

strong {
    font-weight: 700;
}

h1 {
    margin: 16px 0;
    font-weight: 700;
    font-size: 27px;
    line-height: 32px;
    color: #bf2e1a;
    flex: 1 1 0;
}

h1 span {
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #231f20;
}

h2 {
    margin: 16px 0;
    padding: 16px;
    font-weight: 700;
    font-size: 31px;
    line-height: 36px;
    background: #bf2e1a;
    color: #fff;
    text-align: center;
}

h3 {
    margin: 48px 0 22px;
    padding: 6px 20px 6px 90px;
    font-weight: 700;
    font-size: 24px;
    line-height: 28px;
    background: #f8981c;
    display: inline-block;
    color: #fff;
    position: relative;
}

h3 img {
    position: absolute;
    left: 8px;
    top: -24px;
}

h4 {
    font-size: 22px;
    color: #bf2e1a;
    padding: 15px 0 10px;
}

h4+p {
    font-weight: 700;
    display: flex;
    gap: 10px
}

h5 {
    margin: 16px 0 0;
    font-weight: 700;
    font-size: 28px;
    line-height: 32px;
    color: #fff;
}

ul {
    list-style: none;
}

ul li {
    padding-left: 20px;
    margin: 0 0 4px;
}

li:before {
    content: '\2022';
    color: #bf2e1a;
    float: left;
    font-size: 48px;
    text-indent: -20px;
}

img {
    max-width: 100%;
    vertical-align: bottom;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: inherit;
    text-decoration: none;
}

.pad {
    padding-right: 66px;
}

@media all and (max-width: 950px) {
    #wrapper {
        padding: 0 16px;
        margin: 0;
        border: none;
    }

    header {
        margin: 0 -16px;
        border-top: 16px solid #f8981c;
    }

    .logo {
        padding: 16px;
    }

    article p:last-of-type {
        margin: 0;
    }

    footer {
        padding: 0 16px 16px;
        margin: 0 -16px 0;
    }

    :is(p, ul) {
        hyphens: auto;
        text-wrap: pretty;
    }

    :is(a, span) {
        white-space: nowrap;
    }

    br:not(.br br, footer br) {
        display: none;
    }

    h4+p {
        flex-wrap: wrap;
    }
}

@media all and (max-width: 767px) {
    .flex {
        display: block;
    }

    h3 {
        font-size: 20px
    }

    .flex-ul {
        display: block;
    }
}