:root {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@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');
}

body {
    color: #000;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    line-height: 1.25rem;
    font-weight: 400;
}

#wrapper {
    max-width: 970px;
    margin: 1rem auto;
    border: 1px solid #000;
    padding: 0 5rem;
    background: #fff;
    overflow: hidden;
}

header {
    display: flex;
    padding: 0 0 3rem;
    justify-content: space-between;
    align-items: flex-end;
}

.image {
    display: flex;
    justify-content: space-between;
    margin: 0 -5rem 35px 0;
    align-items: center;
    flex-direction: row-reverse;
}

.flex_box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.item {
    width: 48.5%;
}

.benefits {
    display: flex;
    gap: 22px;
    align-items: center;
    flex-wrap: wrap;
    background: #e7e7e8;
    border-radius: 2.8125rem;
    padding: 0.9375rem 2.1875rem;
    justify-content: space-between;
}

.box {
    display: flex;
    gap: 0.625rem;
    align-items: center;
}

.kontakt {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 2rem 0 3rem;
}

.kontakt img {
    max-width: 129px;
}

.kontakt p:nth-of-type(1) {
    margin: 0 0 0.75rem;
    font-size: 1.125rem;
    line-height: 1.375rem;
}

footer {
    padding: 0 0 2.625rem 1.5625rem;
    position: relative;
}

footer::before {
    content: "";
    width: 0.4375rem;
    height: 100%;
    border-radius: 0.625rem;
    background: #ed1c24;
    position: absolute;
    z-index: 3;
    left: 0;
    top: 0;
}

span {
    white-space: nowrap;
}

:is(.color, h3, h4) {
    color: #ed1c24 !important;
}

:is(strong, h1, h3, h4) {
    font-weight: 700;
}

h1 {
    margin: 0 0 1.25rem;
    font-size: 2.625rem;
    line-height: 1.25;
}

h2 {
    margin: 0 0 1.25rem;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.5rem;
    padding-left: 1.5625rem;
    position: relative;
}

h2::before {
    content: "";
    width: 0.4375rem;
    height: 100%;
    border-radius: 0.625rem;
    background: #ed1c24;
    position: absolute;
    z-index: 3;
    left: 0;
    top: 0;
}

h3 {
    font-size: 2.8125rem;
    line-height: 3.25rem;
}

h4 {
    font-size: 1.3125rem;
    line-height: 1.5625rem;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #000;
    text-decoration: none;
    white-space: nowrap;
}

ul {
    padding: 0.625rem 0 2.5rem;
    list-style: none;
}

ul li {
    position: relative;
    padding: 0 0 5px 1rem;
}

li:before {
    content: "";
    width: 0.3125rem;
    height: 0.3125rem;
    border-radius: 50%;
    background: #ed1c24;
    position: absolute;
    z-index: 3;
    left: 0;
    top: 0.4375rem;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

@media all and (max-width:969px) {
    #wrapper {
        margin: 0;
        border: none;
        padding: 0 1rem;
    }

    .image {
        margin-right: -1rem;
    }

    .item {
        width: 48%;
    }

    .benefits {
        gap: 1rem;
    }

    :is(ul, p) {
        hyphens: auto;
        text-wrap: pretty;
    }

    :is(h1, h2) br {
        display: none;
    }
}

@media all and (max-width:880px) {
    .image img {
        max-width: 380px;
    }

    h3 {
        font-size: 42px;
    }
}

@media all and (max-width:767px) {
    .image {
        flex-direction: column;
        align-items: flex-end;
    }

    .image img {
        max-width: 100%;
    }

    :is(h1, h3) {
        text-align: center;
    }

    h3 {
        padding: 20px 16px 0 0;
    }

    h3 br {
        display: none;
    }

    :is(.item, h3) {
        width: 100%;
    }

    ul {
        padding-bottom: 1.25rem;
    }
}

@media all and (max-width:575px) {
    header {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .kontakt {
        flex-direction: column;
        gap: 16px;
        margin: 1.875rem 0;
    }
}