@charset "utf-8";
@font-face {
    font-family: 'Roboto Slab';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/roboto-slab-v24-latin-500.eot');
    src: local(''),
        url('../fonts/roboto-slab-v24-latin-500.eot?#iefix') format('embedded-opentype'),
        url('../fonts/roboto-slab-v24-latin-500.woff2') format('woff2'),
        url('../fonts/roboto-slab-v24-latin-500.woff') format('woff'),
        url('../fonts/roboto-slab-v24-latin-500.ttf') format('truetype'),
        url('../fonts/roboto-slab-v24-latin-500.svg#RobotoSlab') format('svg');
}
@font-face {
    font-family: 'Roboto Slab';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/roboto-slab-v24-latin-700.eot');
    src: local(''),
        url('../fonts/roboto-slab-v24-latin-700.eot?#iefix') format('embedded-opentype'),
        url('../fonts/roboto-slab-v24-latin-700.woff2') format('woff2'),
        url('../fonts/roboto-slab-v24-latin-700.woff') format('woff'),
        url('../fonts/roboto-slab-v24-latin-700.ttf') format('truetype'),
        url('../fonts/roboto-slab-v24-latin-700.svg#RobotoSlab') format('svg');
}
:root {
    font-size: 16px;
}
* {
    box-sizing: border-box;
    margin: 0;
}
html {
    min-height: 100%;
}
body {
    color: #000;
    font: 500 1.125em/1.4em 'Roboto Slab', Arial, sans-serif;
}
#wrapper {
    position: relative;
    max-width: 520px;
    margin: 1rem auto;
    border: 1px solid #000;
    background: #fff url('../images/bg.jpg') no-repeat;
    overflow: hidden;
    padding: 2rem 0.5rem 2rem 2rem;
    height: 736px;
}
:is(h1, h2, strong) {
    font-weight: 700;
}
:is(a:link, a:visited, a:hover, a:active) {
    color: inherit;
    text-decoration: none;
}
h1 {
    margin: 0;
    font-size: 2.5em;
    line-height: 1;
    color: #2C4767;
}
h1 span {
    font-size: 1.5rem;
    margin-top: 0.5rem;
    display: block;
    color: #BE3030;
    font-family: Calibri, Arial, sans-serif;
}
h2 {
    font-size: 1.25em;
    line-height: 1.3;
    color: #E42731;
    margin-bottom: 0.5rem;
}
img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}
.flex {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.flex p, footer p {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
}
.left {
    width: 212px;
}
.right {
    width: 260px;
}
.custom img {
    margin-top: 5px;
}
header figure {
    opacity: 0;
    margin: 0 -0.5rem 0 -2rem;
}
article {
    position: relative;
    margin-top: -2rem;
}
footer p {
    font-size: 1.125em;
    line-height: 1.4;
}
figure {
    margin: 0;
}
@media only screen and (max-width:519px) {
    #wrapper {
        border: none;
        margin: 0 auto;
        background: #FFFFFF;
        padding: 1rem;
    }
    p {
        -moz-hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
    }
    p a, span {
        display: inline-block;
    }
    h1 {
        text-align: center;
    }
    header {
        background: #FDFDFF;
        margin: -1rem -1rem 0;
    }
    header figure {
        margin: 1rem -1rem;
        opacity: 1;
    }
    article {
        margin-top: 0;
    }
    .flex {
        flex-direction: column;
    }
    .left, .right {
        width: auto;
    }
}
@media only screen and (max-width:400px) {
    body {
        font-size: 1em;
        line-height: 1.5;
    }
}