:root {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 23px;
    color: #231f20;
}

#wrapper {
    margin: 1rem auto;
    max-width: 585px;
    background: #fff;
    border: solid thin #cbcbcb;
    position: relative;
}

header {
    position: relative;
}

header>a {
    position: absolute;
    bottom: 20%;
    right: 7%;
    height: 24%;
    width: 31%;
}

article {
    padding: 0 51px;
    margin: -59px 0 0;
    position: relative;
    z-index: 999;
}

article>img {
    position: absolute;
    right: 26px;
    bottom: 86px;
}

.orange {
    background: #f36f21;
    padding: 28px 32px 34px 55px;
    margin: 10px 114px 32px -51px;
}

.orange+p {
    margin: 0 0 48px;
}

footer>a {
    position: absolute;
    bottom: 20%;
    left: 7%;
    height: 56%;
    width: 19%;
}

footer img {
    display: block;
}

:is(h1, h3, strong) {
    font-weight: 700;
}

:is(h1, h3) {
    line-height: 1.2;
}

h1 {
    font-size: 20px;
    color: #fff;
}


h1 small {
    font-size: 71%;
    display: block;
}

h3 {
    font-size: 20px;
}

h3 span {
    font-size: 71%;
    display: block;
}

p {
    margin-bottom: 16px;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #231f20;
    text-decoration: none;
}

img {
    max-width: 100%;
}

footer {
    position: relative;
}

p img {
    position: relative;
    top: 4px;
}

@media screen and (max-width: 584px) {
    #wrapper {
        border: none;
        margin: 0;
    }

    article {
        margin-top: 0;
        padding: 0 16px;
    }

    .orange {
        padding: 1rem;
        margin: 16px -16px;
        text-align: center;
    }

    :is(h1, h3, p) {
        hyphens: auto;
        text-wrap: pretty;
    }

    :is(p a, p span) {
        white-space: nowrap;
    }

    br:not(br.mobile-block) {
        display: none;
    }

    article>img {
        position: static;
        width: 125px;
        margin: 1rem auto;
        display: block;
    }
}