@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: 20px;
    color: #fff;
}

#wrapper {
    margin: 1rem auto;
    max-width: 980px;
    background: #fff url('../images/background.jpg') no-repeat left top;
    border: solid thin #cbcbcb;
    height: 622px;
    padding: 28px 30px 20px;
}

header img {
    display: none;
}

article {
    padding: 93px 0 0 542px;
}

footer {
    padding: 36px 0 0 542px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flex-box {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.flex-box-content:nth-of-type(1) {
    width: 53%;
}

.flex-box-content:nth-of-type(2) {
    width: 45%;
}

.qrcode {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.margin {
    position: relative;
    top: -20px;
}

.font {
    line-height: 1.05;
}

:is(h1, h2, strong) {
    font-weight: 700;
}

h1 {
    font-size: 17px;
    line-height: 1.2;
    margin: 0 0 20px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
}

h1 small {
    font-size: 66%;
    display: block;
    line-height: 1.5;
}

h2 {
    line-height: 1.2;
    font-size: 42px;
    text-align: center;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #000;
    text-decoration: none;
}

img {
    max-width: 100%;
}


@media screen and (max-width: 979px) {
    #wrapper {
        border: none;
        margin: 0;
        padding: 16px;
    }

    :is(h1, h2, p) {
        hyphens: auto;
        text-wrap: pretty;
    }

    h2 {
        font-size: 40px;
    }

    p a {
        white-space: nowrap;
    }

    footer {
        padding-top: 20px;
    }
}

@media screen and (max-width: 945px) {
    :is(body, h1) {
        font-size: 20px;
        line-height: 1.2;
    }

    #wrapper {
        height: auto;
        padding: 0;
        background: #ddd url('../images/mobile.jpg') repeat left top;
    }

    header img {
        display: block;
    }

    .margin {
        position: static;
    }

    h1 small {
        font-size: 80%;
    }

    h2 {
        padding: 16px 16px 0;
        background: #555b7b;
    }

    article {
        padding: 20px 16px 0;
    }

    .flex-box {
        justify-content: center;
        gap: 30px;
    }

    .flex-box-content {
        width: auto !important;
    }

    .qrcode {
        margin: 0 0 16px;
    }

    footer {
        padding: 0 16px 10px;
        align-items: center;
    }
}

@media screen and (max-width: 480px) {
    .flex-box {
        display: block;
    }

    h1 {
        justify-content: center;
    }

    h2 {
        font-size: 28px;
    }

    .qrcode {
        align-items: center;
        gap: 10px;
    }

    p {
        text-align: center;
    }

    h1 br {
        display: none;
    }
}

@media screen and (max-width: 400px) {
    h1 {
        flex-direction: column;
        text-align: center;
    }
}