﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

header {
    display: flex;
    position: absolute;
    flex-direction: column;
    align-items: flex-end;
    top: 8px;
    right: 8px;
    gap: 8px;
}

article {
    padding: 84px 10px 3px 12px;
}

:root {
    font-size: 16px;
}

html {
    min-height: 100%;
}

body {
    font-size: 21px;
    font-family: "Roboto", sans-serif;
    line-height: 1.2;
    font-weight: 400;
    color: #000;
}

#wrapper {
    border: solid 5px #0870af;
    max-width: 529px;
    margin: 1rem auto;
    background: #fff url(bg.png) no-repeat 0 0;
    overflow: hidden;
    position: relative;
}

h1 {
    color: #0870af;
    font-size: 28px;
    margin: 6px 0;
    line-height: 1.35;
    padding: 0 136px 10px 0;
}

h1 small {
    font-size: 63%;
    font-weight: normal;
}

h1 span:last-of-type {
    display: block;
    line-height: 24px;
}

h2 {
    color: #fff;
    position: absolute;
    transform: rotate(-15deg);
    top: 19px;
    left: 6px;
    font-size: 23px;
}

.qr {
    margin-right: 12px;
}

.margin {
    margin: 0 0 15px;
    font-size: 25px;
}

p {
    text-align: center;
}

a {
    color: #000;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    vertical-align: bottom;
    max-width: 100%;
}

@media screen and (max-width: 520px) {
    #wrapper {
        width: 100%;
        border: none;
        margin: 0;
        background: #fff;
    }

    article {
        padding: 1rem 1rem 10px;
    }

    h1 {
        hyphens: auto;
        text-align: center;
        padding: 0;
        margin: 0 0 14px;
    }

    h2 {
        margin: 0 -1rem 1rem;
        padding: 1rem;
        text-align: center;
        transform: none;
        background: #8fc352;
        position: static;
    }

    br {
        display: none;
    }

    .qr {
        margin-right: 0;
    }

    header {
        align-items: center;
        padding: 1rem 1rem 3px;
        position: static;
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
}

@media screen and (max-width: 400px) {
    header {
        flex-direction: column;
    }
}