@font-face {
    font-display: swap;
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/lato-v23-latin-regular.eot');
    src: url('../fonts/lato-v23-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/lato-v23-latin-regular.woff2') format('woff2'), url('../fonts/lato-v23-latin-regular.woff') format('woff'), url('../fonts/lato-v23-latin-regular.ttf') format('truetype'), url('../fonts/lato-v23-latin-regular.svg#Lato') format('svg');
}

@font-face {
    font-display: swap;
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/lato-v23-latin-700.eot');
    src: url('../fonts/lato-v23-latin-700.eot?#iefix') format('embedded-opentype'), url('../fonts/lato-v23-latin-700.woff2') format('woff2'), url('../fonts/lato-v23-latin-700.woff') format('woff'), url('../fonts/lato-v23-latin-700.ttf') format('truetype'), url('../fonts/lato-v23-latin-700.svg#Lato') format('svg');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    color: #000;
    font-family: 'Lato', Arial, sans-serif;
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
}

#wrapper {
    max-width: 652px;
    margin: 1rem auto;
    border: 1px solid #000;
    background-color: #fff;
}

.logo {
    background: url('../images/background-top.jpg') bottom repeat-x;
    padding: 10px 0 44px 20px;
    display: flex;
    justify-content: flex-end;
}

article {
    padding: 20px 50px;
}

footer {
    padding: 0 50px 50px;
}

p:not(:first-of-type) {
    margin-top: 20px;
}

h1 {
    font-size: 24px;
    line-height: 1.2;
    margin: 20px 0 0;
    color: #B5152B;
}

h1 small {
    display: block;
    font-size: 19px;
    margin-top: 10px;
}

:is(p, h1) {
    text-align: center;
}

img {
    max-width: 100%;
    display: block;
}

:is(h1, strong) {
    font-weight: 700;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #000;
    text-decoration: none;
    white-space: nowrap;
}

.link {
    text-decoration: underline !important;
    color: #57a3c7 !important
}

@media only screen and (max-width:652px) {
    #wrapper {
        border: none;
        margin: 0;
    }

    p {
        hyphens: auto;
        text-wrap: pretty
    }

    :is(p, h1) span {
        white-space: nowrap;
    }

    :is(article, footer) {
        padding: 16px
    }
}

@media only screen and (max-width:400px) {
    h1 {
        font-size: 19px;
    }

    h1 small {
        font-size: 16px
    }
}