@font-face {
    font-display: swap;
    font-family: 'Caveat Brush';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/caveat-brush-v12-latin-regular.eot');
    src: url('../fonts/caveat-brush-v12-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/caveat-brush-v12-latin-regular.woff2') format('woff2'), url('../fonts/caveat-brush-v12-latin-regular.woff') format('woff'), url('../fonts/caveat-brush-v12-latin-regular.ttf') format('truetype'), url('../fonts/caveat-brush-v12-latin-regular.svg#CaveatBrush') format('svg');
}

:root {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    color: #000;
    font-family: 'Caveat Brush', Arial, sans-serif;
    font-size: 16px;
    line-height: 23px;
    font-weight: 400;
}

#wrapper {
    max-width: 500px;
    margin: 16px auto;
    border: 1px solid #000;
    background: #1b68af;
}

header {
    padding: 28px 40px 10px;
    background: #feb817;
}

.qrcode {
    position: relative;
}

.studium {
    position: absolute;
    bottom: 156px;
    right: 28px;
    z-index: 1;
}

.flex {
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
}

.font-size {
    font-style: italic;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    font-size: 11px;
    line-height: 19px;
}

.font {
    font-size: 28px;
    line-height: 1.2;
    margin: 0 0 6px;
}

.small {
    font-size: 9px;
    line-height: 1;
    margin: 0 5px;
}

footer {
    padding: 10px 16px 28px;
}

p {
    text-align: center;
    color: #fff;
}

:is(h1, h2, h4, .font) {
    font-family: "Times New Roman", Times, serif;
    font-weight: 700;
    font-style: italic;
}

strong {
    font-weight: 700;
}

h1 {
    margin: 0 0 16px;
    font-size: 30px;
    line-height: 1.2;
    color: #fff;
    padding: 20px 40px 5px;
}

h1 span {
    display: block;
    font-size: 23px;
}

h2 {
    font-size: 22px;
    line-height: 26px;
    display: inline-block;
    padding: 6px 16px 6px 36px;
    background: #fff;
}

h3 {
    font-size: 29px;
    font-weight: 400;
    color: #feb817;
    line-height: 1;
    margin: 0 0 0 20px;
}

h4 {
    font-size: 24px;
    line-height: 1.2;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

ul {
    list-style: none;
    color: #fff;
    font-size: 29px;
    line-height: 27px;
}

li span {
    color: #feb817;
    display: block;
    margin: 4px 0 0;
}

ul li {
    padding-left: 20px;
}

li:before {
    content: '\2212';
    float: left;
    font-size: 25px;
    text-indent: -30px;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

@media all and (max-width: 498px) {
    #wrapper {
        margin: 0 auto;
        border: none;
    }

    header {
        padding: 16px;
    }

    footer {
        padding: 10px 16px 16px;
    }

    .flex {
        flex-direction: column;
        align-items: center;
        padding: 16px;
    }

    .studium {
        position: static;
        padding: 16px 16px 1px;
    }

    .font-size {
        font-size: 13px;
        line-height: 1.5;
    }

    :is(p, ul) {
        hyphens: auto;
        text-wrap: pretty;
    }

    h4 {
        text-align: center;
    }

    ul {
        padding: 0 0 16px;
    }

    ul li {
        padding-left: 20px;
    }

    li:before {
        text-indent: -20px;
    }

    span {
        white-space: nowrap;
    }
}