@charset "utf-8";
:root {
    font-size: 16px;
}
* {
    box-sizing: border-box;
    margin: 0;
}
html {
    min-height: 100%;
}
body {
    color: #6080A8;
    font: 400 1em/1.3em Arial, sans-serif;
}
#wrapper {
    position: relative;
    max-width: 800px;
    margin: 1rem auto;
    border: solid 1px #000;
    background: #fff url('../images/bg.jpg') top left no-repeat;
    overflow: hidden;
    padding: 0 3.5rem 1rem;
}
p {
    padding-bottom: 0.75rem;
}
:is(a:link, a:visited, a:hover, a:active) {
    color: inherit;
    text-decoration: none;
}
img {
    max-width: 100%;
    height: auto;
}
h1 {
    margin: 0 0 1rem 2rem;
    font-size: 1em;
    line-height: 1.3;
    width: 193px;
}

h1 span {
    font-weight: normal;
}
h1:before {
    content: url('../images/icon.jpg');
    float: left;
    margin: -1px 0 0 -2rem;
}
h2 {
    font-size: 1.75em;
    line-height: 1.3em;
    margin-bottom: 1.5rem;
}
h2 span {
    font-weight: normal;
}
h3 {
    font-size: 1em;
    line-height: 1.3em;
    margin-bottom: 1rem;
}
h4 {
    font-size: 1.875em;
    line-height: 1.3em;
    display: inline-block;
    width: fit-content;
    padding: 0 0.7rem;
    border-radius: 1.25rem;
    margin-bottom: 1rem;
    background: #FAA61A;
    color: #fff;
}
header {
    padding-bottom: 2rem;
}
header figure {
    display: none;
}
.right {
    position: absolute;
    bottom: 1rem;
    left: 24.5rem;
}
.right p {
    color: #fff;
    line-height: 1.4;
}
footer figure {
    position: absolute;
    bottom: 0.5rem;
    right: 0;
}
.slogan {
    writing-mode: vertical-rl;
    transform: rotate(-180deg);
    position: absolute;
    left: 0;
    top: 0;
    padding: 0;
    height: 100%;
    color: #fff;
    text-transform: uppercase;
    font-size: 2.0625em;
    line-height: 1.2;
    text-align: right;
}
@media only screen and (max-width:799px) {
    #wrapper {
        border: none;
        margin: 0 auto;
        background: #C3CEE0;
        padding: 1rem;
    }
    p {
        -moz-hyphens: auto;
        -o-hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
    }
    p :is(span, a) {
        display: inline-block;
    }
    br {
        display: none;
    }
    .right {
        padding: 1rem 1rem 0.5rem;
        margin: 0 -1rem;
        background: #6080A8;
        position: static;
    }
    .slogan {
        position: static;
        width: auto;
        transform: none;
        writing-mode: horizontal-tb;
        text-align: center;
    }
    header {
        display: flex;
        justify-content: center;
        padding-bottom: 1rem;
    }
    footer {
        padding: 0 1rem 1rem;
        margin: 0 -1rem;
        background: #6080A8;
    }
    footer figure {
        position: static;
        display: flex;
        justify-content: center;
        margin-top: 1rem;
    }
}
@media only screen and (max-width:480px) {
    body {
        font-size: 1em;
        line-height: 1.3;
    }
}