:root {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
}

body {
    font-family: 'Jost', Arial, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    color: #000;
}

#wrapper {
    margin: 1rem auto;
    max-width: 940px;
    background: #fff url(background.jpg) no-repeat left top;
    border: solid thin #cbcbcb;
    padding: 93px 90px;
    height: 1304px;
    position: relative;
}

.flex-box{
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.flex-box-content:nth-of-type(1){
    width: 47%;
}

.flex-box-content:nth-of-type(2){
    width: 49%;
}

.color{
    color: #e5007d !important;
}

.text-center{
    text-align: center;
}

.justify{
    text-align: justify;
    hyphens: auto;
}

.margin-bottom{
    margin-bottom: 0;
}

:is(h1, h2, strong){
    font-weight: 700;
}

:is(h1, h2) {
    line-height: 1;
}

h1 {
    font-size: 36px;
    margin: 0 0 57px;
}

h2 {
    font-size: 20px;
    margin: 0 0 10px;
    font-weight: 400;
}

p {
    margin-bottom: 14px;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #000;
    text-decoration: none;
}

img {
    max-width: 100%;
}

ul {
    margin: 0 0 15px 15px;
}

ul li {
    list-style: none;
    text-indent: -15px;
}

ul li:before {
    font-size: 28px;
    margin-right: 15px;
    position: relative;
    top: 3px;
    float: left;
    content: "\2022";
}

.left{
    margin-left: 37px;
}

.left-bottom{
    margin-left: -8px;
}

footer {margin: 50px 0 0;font-size: 106%;}

.socical{
    display: flex;
    gap: 5px;
    align-items: center;
}

.footer-flex{
    display: flex;
    gap: 10px;
}

.footer-flex-content:nth-of-type(1){
    width: 36%;
    display: flex;
    gap: 19px;
}

.footer-flex-content:nth-of-type(2){
    width: 41%;
    border-left: 1px solid #000;
    padding-left: 14px;
}

footer > a{
    position: absolute;
    right: 53px;
    bottom: 11px;
}

@media screen and (max-width: 939px) {
    #wrapper {
        border: none;
        margin: 0;
        height: auto;
        background: #fff;
    }

    :is(.left, .left-bottom){
        margin-left: 0 !important;
    }

    :is(h1, h2, p, ul li) {
        hyphens: auto;
        text-wrap: pretty;
    }

    h1{
        background: #ffed00;
        padding: 16px;
        border: 10px solid #e5007d;
        margin-bottom: 20px;
    }

    :is(p a, span) {
        white-space: nowrap;
    }

    br:not(br.mobile-block) {
        display: none;
    }
}

@media screen and (max-width: 850px) {
    #wrapper{
        padding: 20px;
    }

    footer{
        margin-top: 16px;
    }

    footer > a{
        position: static;
        display: block;
        margin: 16px auto;
        width: 126px;
    }
}

@media screen and (max-width: 700px) {
    .flex-box{
        display: block;
    }

    h1{
        font-size: 30px;
    }

    .flex-box-content{
        width: 100% !important;
    }

    .footer-flex{
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .footer-flex-content{
        width: auto !important;
    }
}