@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/roboto-v30-latin-regular.eot');
    src: local(''), 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-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/roboto-v30-latin-700.eot');
    src: local(''), 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');
}

:root {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 23px;
    color: #fff;
}

#wrapper {
    margin: 1rem auto;
    max-width: 644px;
    background: #fff url(../images/background.jpg) no-repeat left top;
    border: solid thin #000;
    padding: 25px;
    height: 929px;
}

header p {
    font-size: 15px;
}

article {
    position: relative;
}

.position {
    position: absolute;
    left: 316px;
    top: 136px;
    width: 286px;
}

.text-center {
    text-align: center;
}

.color {
    color: #000;
}

.justify {
    text-align: justify;
    hyphens: auto;
}

.margin-bottom {
    margin-bottom: 0;
}

strong {
    font-weight: 700;
}

:is(h1, h2) {
    line-height: 1.2;
}

h1 {
    font-size: 16px;
    margin: 0 0 5px;
    font-weight: 400;
}

h1+p {
    font-size: 15px;
    line-height: 24px;
}

h1+p span {
    margin-left: 38px;
    display: inline-block;
    width: 180px;
    text-indent: -10px;
}

h2 {
    font-size: 23px;
    margin: 0 0 5px;
    font-weight: 400;
}

p {
    margin-bottom: 10px;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #fff;
    text-decoration: none;
}

img {
    max-width: 100%;
}

article>a {
    position: absolute;
    bottom: -410px;
    left: 160px;
    opacity: 0;
}

footer {
    margin: 574px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer p {
    font-weight: 700;
    font-size: 114%;
}

@media screen and (max-width: 643px) {
    #wrapper {
        border: none;
        margin: 0;
        background: #fff url(../images/mobile.jpg) no-repeat left top;
        height: auto;
        background-size: 100% 100%;
    }

    :is(h1, h2, p) {
        hyphens: auto;
        text-wrap: pretty;
    }

    .justify {
        text-align: left;
    }

    :is(p a, span) {
        white-space: nowrap;
    }

    br:not(br.mobile-block) {
        display: none;
    }

    .position {
        background: #fff;
        padding: 20px;
        width: 100%;
        margin-bottom: 10px;
    }

    :is(.position, article>a) {
        position: static;
    }

    article>a {
        opacity: 1;
        width: 260px;
        margin: 10px auto;
        display: block;
    }

    span.normal {
        white-space: normal;
        margin: 0;
        display: inline;
    }

    footer {
        margin-top: 0;
    }
}