@font-face {
    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-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;
}

html {
    min-height: 100%;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #000;
}

#wrapper {
    margin: 1rem auto;
    max-width: 910px;
    background: #fff url(../images/background.jpg) no-repeat left top;
    border: solid thin #cbcbcb;
    height: 1279px;
}

article {
    padding: 0 25px 16px;
}

.flex-box {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.flex-box-content {
    width: 48%;
}

.text-center {
    width: 616px;
    margin-top: -15px;
}

.text-center :is(p, h2) {
    text-align: center;
}

.margin-bottom {
    margin-bottom: 0;
}

.button {
    width: 170px;
    height: 37px;
    line-height: 37px;
    display: block;
    border: none;
    background: #000;
    color: #fff !important;
    margin: 16px auto;
    text-align: center;
}

.big {
    font-size: 24px;
    line-height: 1.2;
}

:is(h1, h2, h3, h4, h5, strong) {
    font-weight: 700;
}

:is(h1, h2, h3) {
    line-height: 1.2;
}

h1 {
    font-size: 28px;
    margin: 42px 0 63px;
}

h2 {
    font-size: 31px;
    margin: 2px 0;
}

h3 {
    font-size: 20px;
    text-align: center;
}

h4 {
    font-size: 30px;
    margin: 0 0 6px;
    text-align: center;
    line-height: 1.2;
    text-decoration: underline;
}

h5 {
    font-size: 20px;
    margin: 0 0 6px;
    text-align: center;
    line-height: 1.35;
}

p {
    margin-bottom: 16px;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #000;
    text-decoration: none;
}

img {
    max-width: 100%;
}

ul {
    margin: 0 0 10px;
}

ul li {
    list-style: none;
    text-indent: -15px;
    margin-bottom: 25px;
}

ul li:before {
    font-size: 41px;
    margin-right: 17px;
    position: relative;
    top: 0px;
    float: left;
    content: "\2022";
    color: #fdcd50;
    text-indent: -2px;
}

footer {
    padding: 16px 25px;
    position: relative;
}

footer .text-center {
    width: 100%;
}

.position a {
    position: absolute;
}

.position a:nth-of-type(1) {
    left: 149px;
    top: 2px;
}

.position a:nth-of-type(2) {
    right: 111px;
    top: -52px;
}

.buttom {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

.buttom a {
    color: #fff !important;
    background: #fdcd50;
    border: 2px solid #fdcd50;
    border-radius: 20px;
    display: inline-block;
    padding: 8px 20px;
}

.buttom a:hover {
    background: #fff;
    color: #000 !important;
}

@media screen and (max-width: 909px) {
    #wrapper {
        border: none;
        margin: 0;
        background: #96cff0;
        height: auto;
    }

    article {
        padding: 0 16px 16px;
    }

    .position a:nth-of-type(1) {
        left: 120px;
    }

    .position a:nth-of-type(2) {
        right: 90px;
    }

    .text-center {
        width: 100% !important;
        margin: 0;
    }

    :is(h1, h2, h3, h4, h5, p, ul li) {
        hyphens: auto;
        text-wrap: pretty;
    }

    h1 {
        background: #fdcd50;
        padding: 20px 10px;
        text-align: center;
        margin: 1rem 0;
    }

    :is(p a, span) {
        white-space: nowrap;
    }

    br:not(br.mobile-block) {
        display: none;
    }
}

@media screen and (max-width: 830px) {
    .position a:nth-of-type(1) {
        left: 20px;
    }

    .position a:nth-of-type(2) {
        right: 20px;
    }
}

@media screen and (max-width: 642px) {
    .flex-box {
        display: block;
    }

    .flex-box-content {
        width: 100% !important;
    }

    .position a:nth-of-type(1) {
        display: none;
    }

    .position a:nth-of-type(2) {
        position: static;
        width: 106px;
        display: block;
        margin: 1rem auto;
    }
}