:root {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    color: #231f20;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 23px;
}

#wrapper {
    max-width: 800px;
    margin: 16px auto;
    border: 1px solid #000;
    text-align: center;
    background-color: #fff;
}

header {
    padding: 6px 10px 6px 60px;
    background: #f79941;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
}

article {
    padding: 0 216px 0 0;
    position: relative;
}

footer {
    padding: 8px 110px 8px 16px;
    background: #f79437;
}

.border {
    border-right: 2px solid #305f82;
    padding: 10px 144px 10px 0;
}

.right {
    background: #f4f5f0;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 99;
    padding: 16px;
    width: 210px;
    height: 100%;
}

.qrcode {
    margin: 26px 0;
}

.images {
    position: absolute;
    bottom: 35px;
    left: 321px;
}

figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background: #305f82;
    padding: 8px;
    position: absolute;
    border-radius: 12px;
    top: 22px;
    right: 226px;
    z-index: 99;
}

footer p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px 31px;
    flex-wrap: wrap;
}

hr {
    border: 0;
    border-bottom: 4px dotted #4b4b4d;
    margin: 0 0 0 10px;
}

:is(strong, h1, h4, h6) {
    font-weight: 700;
}

h1 {
    margin: 0 0 16px;
    font-size: 22px;
    line-height: 28px;
	color: #4b4b4d;
}

h1 span {
    font-weight: 400;
}

h2 {
    font-weight: 900;
    font-size: 45px;
    line-height: 1;
    color: #4b4b4d;
    font-style: italic;
}

h3 {
    margin: 0 0 10px;
    font-weight: 900;
    font-size: 52px;
    line-height: 1;
    color: #305f82;
    border: 2px solid #231f20;
    padding: 0 36px 0 16px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 20px;
}

h4 {
    background: #f4f5f0;
    margin: 6px 0;
    font-size: 28px;
    line-height: 1.25;
    color: #305f82;
    padding: 22px 16px;
}

h4 small {
    display: block;
    font-size: 22px;
}

h5 {
    margin: 12px 0 5px 16px;
    font-weight: 400;
    font-size: 18px;
}

h6 {
    margin: 40px 0 16px;
    font-size: 22px;
    line-height: 26px;
    color: #4b4b4d;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

ul {
    color: #4b4b4d;
    list-style: none;
}

ul li {
    padding-left: 20px;
    position: relative;
    z-index: 999;
    margin: 0 0 2px;
}

li:before {
    content: '\2022';
    position: absolute;
    margin-top: 0;
    font-size: 30px;
    text-indent: -22px;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

@media all and (max-width: 798px) {
    #wrapper {
        margin: 0 auto;
        border: none;
    }

    :is(header, footer) {
        padding: 16px;
    }

    article {
        padding: 16px 16px 0;
    }

    figure {
        position: static;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        margin: 0 -16px;
        border-radius: 0;
        padding: 16px;
    }

    .border {
        padding: 0;
        border-right: 0;
    }

    .images {
        position: static;
        margin: 0 0 20px;
    }

    hr {
        margin: 0 -16px;
    }

    :is(p, ul) {
        hyphens: auto;
        text-wrap: pretty;
    }

    .right {
        position: static;
        width: auto;
        margin: 0 -16px;
    }

    h4 {
        line-height: 1.3;
        margin: 6px -16px;
    }

    h6 {
        margin: 0 0 16px;
    }

    ul {
        padding: 0 0 16px;
    }

    ul li {
        padding-left: 20px;
    }

    li:before {
        text-indent: -20px;
    }

    br {
        display: none;
    }
}

@media all and (max-width: 600px) {
    header {
        flex-direction: column;
        gap: 16px;
    }

    figure img {
        max-width: 30%;
    }
}