@font-face {
    font-display: swap;
    font-family: 'PT Sans';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/pt-sans-v17-latin-regular.eot');
    src: url('../fonts/pt-sans-v17-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/pt-sans-v17-latin-regular.woff2') format('woff2'), url('../fonts/pt-sans-v17-latin-regular.woff') format('woff'), url('../fonts/pt-sans-v17-latin-regular.ttf') format('truetype'), url('../fonts/pt-sans-v17-latin-regular.svg#PTSans') format('svg');
}

@font-face {
    font-display: swap;
    font-family: 'PT Sans';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/pt-sans-v17-latin-700.eot');
    src: url('../fonts/pt-sans-v17-latin-700.eot?#iefix') format('embedded-opentype'), url('../fonts/pt-sans-v17-latin-700.woff2') format('woff2'), url('../fonts/pt-sans-v17-latin-700.woff') format('woff'), url('../fonts/pt-sans-v17-latin-700.ttf') format('truetype'), url('../fonts/pt-sans-v17-latin-700.svg#PTSans') format('svg');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    color: #56585a;
    font-family: 'PT Sans', Arial, sans-serif;
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
}

#wrapper {
    max-width: 785px;
    margin: 1rem auto;
    border: 1px solid #56585a;
    padding-right: 10px;
    position: relative;
}

.content {
    background: url('../images/background.jpg') no-repeat;
    height: 567px;
}

header {
    padding: 60px 20px;
    position: relative;
}

.logo {
    position: absolute;
    top: 10px;
    right: 10px;
}

article {
    padding: 60px 20px;
}

.title {
    background: rgba(52, 49, 48, 0.83);
    padding: 10px 14px;
    width: 335px;
}

.qr-code {
    margin: 85px 0 0 -15px;
    display: flex;
    justify-content: flex-start;
}

footer {
    width: 330px;
    background: rgba(255, 255, 255, 0.8) none repeat scroll 0 0;
    border-right: 10px solid #ee1d23;
    position: absolute;
    bottom: 55px;
    right: 0;
    padding: 10px;
}

.flex {
    margin-top: 15px;
    display: flex;
    gap: 14px;
    align-items: center;
}

.flex p {
    font-size: 12px;
}

.social {
    display: flex;
    gap: 4px;
}

p:not(:first-of-type) {
    margin-top: 10px;
}

h1 {
    font-size: 21px;
    line-height: 24px;
    color: #fff;
}

h1 span {
    font-size: 13px;
    font-weight: 400
}

h2 {
    font-size: 29px;
    line-height: 1.1;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    color: #fff;
}

h2 span:first-of-type {
    background: rgba(52, 49, 48, 0.83);
}

h2 span {
    background: #ee1d23;
    padding: 5px 15px;
}

img {
    max-width: 100%;
    display: block;
}

:is(h1, h2, strong) {
    font-weight: 700;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #ee1d23;
    text-decoration: none;
    white-space: nowrap;
}

.center {
    text-align: center;
}

@media only screen and (max-width:785px) {
    #wrapper {
        border: none;
        margin: 0;
    }

    p {
        hyphens: auto;
        text-wrap: pretty
    }

    p span {
        white-space: nowrap;
    }
}

@media only screen and (max-width:530px) {
    .content {
        height: auto;
        background-size: cover;
        padding: 16px;
    }

    header {
        padding: 0
    }

    h2 {
        margin-top: 20px
    }

    .logo {
        display: flex;
        justify-content: center;
    }

    :is(.logo, footer) {
        position: static;
    }

    article {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 16px;
    }

    .title {
        width: auto;
    }

    .qr-code {
        margin-top: 20px;
    }

    footer {
        width: auto;
    }
    :is(h2,h1){text-align: center;}
}