* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
}

body {
    font-family: "Roboto", Arial, sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.3;
    color: #fff;
}

#wrapper {
    max-width: 766px;
    margin: 16px auto;
    border: 1px solid #000;
    background: #fff url(background.jpg) no-repeat;
    background-size: cover;
    overflow: hidden;
    padding: 30px 50px;
    position: relative;
    background-position: center;
}

.qrcode {
    display: flex;
    align-items: flex-start;
    column-gap: 19px;
    margin: 29px 0;
}

.qrcode div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

header {
    position: absolute;
    top: 4%;
    right: 6%;
    z-index: 1;
}

article {
    position: relative;
}

.text {
    position: absolute;
    top: 35%;
    right: 2%;
}

footer p {
    font-weight: 300;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

footer {
    display: flex;
    justify-content: space-between;
}

p {
    margin-bottom: 20px;
}

strong {
    font-weight: 700;
}

h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
}

h2 {
    padding: 8px 16px;
    font-size: 21px;
    font-weight: 700;
    background: #fff;
    color: #640A0F;
    display: inline-block;
    margin: 0 0 13px 43px;
}


:is(a:link, a:visited, a:hover, a:active) {
    color: #fff;
    white-space: nowrap;
    text-decoration: none;
}


img {
    max-width: 100%;
    vertical-align: middle;
}

.nobr {
    white-space: nowrap;
}

@media (max-width: 765px) {
    #wrapper {
        margin: 0;
        padding: 16px;
        border: none;
    }

    p {
        hyphens: auto;
    }


}

@media (max-width: 639px) {
    br:not(.br br) {
        display: none;
    }

    header {
        position: static;
        display: flex;
        justify-content: center;
        margin-bottom: 10px;
    }

    .qrcode {
        justify-content: center;
    }

    footer {
        justify-content: space-around;
        gap: 10px;
        flex-wrap: wrap;
    }

    .text {
        position: static;
        display: flex;
        justify-content: center;
        margin: 15px 0;
    }

    h1 {
        text-align: center;
    }
}

@media (max-width: 379px) {
    h2 {
        margin-left: 0;
        font-size: 20px;
    }
}