@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: 18px;
    color: #2a1964;
}

#wrapper {
    margin: 1rem auto;
    max-width: 661px;
    background: #fff url(../images/background.jpg) no-repeat left top;
    border: solid thin #cbcbcb;
    height: 934px;
}

header {
    position: relative;
}

article {
    padding: 16px 20px 0;
    position: relative;
}

.text-center {
    text-align: center;
}

.margin-bottom {
    margin-bottom: 0;
}

.position {
    position: absolute;
    right: 20px;
    top: 176px;
}

hr {
    display: block;
    height: 2px;
    width: 341px;
    background: #2a1964;
    border: none;
}

.bottom {
    margin-bottom: 20px;
}

:is(h1, h2, strong) {
    font-weight: 700;
}

:is(h1, h2) {
    line-height: 1.2;
}

h1 {
    font-size: 25px;
    padding: 16px;
    position: absolute;
    left: 3%;
    bottom: 5%;
    background: #f3eb23;
}

h1 small {
    font-size: 74%;
    font-weight: 400;
}

h2 {
    font-size: 21px;
    margin: 0 0 15px;
    background: #2c2462;
    color: #fff;
    padding: 5px;
    transform: rotate(-4deg);
}

p {
    margin-bottom: 6px;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #2a1964;
    text-decoration: none;
}

img {
    max-width: 100%;
}

ul {
    margin: 0 0 20px 15px;
}

ul li {
    list-style: none;
    text-indent: -15px;
}

ul li:before {
    font-size: 20px;
    margin-right: 15px;
    position: relative;
    top: -1px;
    float: left;
    content: "\2022";
}

footer {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

footer>a {
    position: relative;
    top: -20px;
}

@media screen and (max-width: 660px) {
    #wrapper {
        border: none;
        margin: 0;
        background: #cdcdcd;
        height: auto;
    }

    :is(h1, h2, p, ul li) {
        hyphens: auto;
        text-wrap: pretty;
    }

    :is(p a, p span) {
        white-space: nowrap;
    }
}

@media screen and (max-width: 560px) {
    h2 {
        transform: rotate(0deg);
    }

    br:not(br.mobile-block) {
        display: none;
    }

    :is(.position, footer > a) {
        position: static;
    }

    h1 {
        font-size: 22px;
    }

    footer {
        flex-direction: column;
        align-items: center;
    }

    footer p {
        text-align: center;
    }

    hr {
        width: 100%;
    }
}

@media screen and (max-width: 465px) {
    header img {
        display: block;
    }

    h1 {
        position: static;
        width: 100%;
    }
}