@font-face {
    font-family: 'Jost';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/jost-v14-latin-700.eot');
    src: local(''), url('../fonts/jost-v14-latin-700.eot?#iefix') format('embedded-opentype'), url('../fonts/jost-v14-latin-700.woff2') format('woff2'), url('../fonts/jost-v14-latin-700.woff') format('woff'), url('../fonts/jost-v14-latin-700.ttf') format('truetype'), url('../fonts/jost-v14-latin-700.svg#Jost') format('svg');
}

:root {
    font-size: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Jost', Arial, sans-serif;
    line-height: 20px;
    font-size: 16px;
    color: #231F20;
    font-weight: 700;
}

#wrapper {
    margin: 1rem auto;
    border: 2px #714E84 solid;
    max-width: 615px;
    position: relative;
    background: #FFFFFF url(../images/background.jpg) 0 0 no-repeat;
    overflow: hidden;
    height: 694px;
}

header {
    padding: 0 0 23px 40px;
}

.moblie {
    display: none;
}

article {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

footer {
    position: absolute;
    bottom: 5%;
    right: 9.5%;
}

footer div {
    transform: rotate(-90deg);
    position: absolute;
    bottom: 86%;
    right: -145px;
    z-index: 10;
}

footer div p {
    font-size: 0.875rem;
}

:is(h1, h2, h3, h4) {
    font-weight: 700;
    line-height: 1;
}

h1 {
    margin: 73px 0 0 49px;
    font-size: 31px;
    color: #fff;
}

h1 span {
    display: block;
    font-size: 14px;
    line-height: 18px;
}

:is(h2, h3) {
    padding: 4px 16px;
}

h2 {
    font-size: 56px;
    margin: 0 0 6px 53px;
    background: #7AC5D0;
    color: #fff;
}

h2:nth-of-type(1) {
    padding-left: 30px;
    margin: 0 0 6px;
}

h3 {
    background: #F7E932;
    margin: 0 0 6px 77px;
    font-size: 36px;
    color: #714E84;
}

h3:nth-of-type(1) {
    margin-left: 82px;
}

h3:nth-of-type(2) {
    margin-left: 77px;
}

h3:nth-of-type(3) {
    margin-left: 20px;
}

h4 {
    color: #65496d;
    font-size: 26px;
    margin-top: 2px;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #231F20;
    text-decoration: none;
    white-space: nowrap;
}

img {
    max-width: 100%;
    vertical-align: top;
}

@media only screen and (max-width:614px) {
    #wrapper {
        border: none;
        margin: 0;
    }

    header {
        padding-left: 16px;
    }

    footer {
        right: 11%;
    }

    :is(p, h1) {
        hyphens: auto;
    }
}

@media only screen and (max-width:560px) {
    #wrapper {
        background: rgb(162, 85, 131);
        background: -moz-linear-gradient(left, rgb(162, 85, 131) 0%, rgb(210, 69, 116) 50%, rgb(207, 70, 116) 100%);
        background: -webkit-linear-gradient(left, rgb(162, 85, 131) 0%, rgb(210, 69, 116) 50%, rgb(207, 70, 116) 100%);
        background: linear-gradient(to right, rgb(162, 85, 131) 0%, rgb(210, 69, 116) 50%, rgb(207, 70, 116) 100%);
        height: auto;
    }

    header {
        padding: 0 0 20px;
    }

    .logo {
        display: none;
    }

    .moblie {
        display: block;
    }

    article {
        align-items: center;
        padding: 0 100px 0 16px;
    }

    footer {
        right: 13%;
    }

    h1 {
        text-align: center;
        margin: 16px 0 20px;
    }

    :is(h2, h3) {
        margin-left: 0 !important;
    }
}

@media only screen and (max-width:480px) {
    article {
        padding: 0 16px;
    }

    footer {
        position: static;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 16px 16px;
        gap: 16px;
    }

    footer div {
        position: static;
        transform: none;
    }

    footer :is(h4, p) {
        text-align: center;
        line-height: 1.3;
    }
}