@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: #fff;
    font-family: 'Lato', Arial, sans-serif;
    font-size: 17px;
    line-height: 22px;
    font-weight: 400;
}

#wrapper {
    max-width: 582px;
    margin: 1rem auto;
    border: 1px solid #000;
    background: url('../images/background.jpg') no-repeat;
    height: 339px;
    position: relative;
}

.logo {
    position: absolute;
    top: 30px;
    right: 30px;
}

article {
    padding: 41px 35px 0;
}

footer {
    position: absolute;
    bottom: 35px;
    right: 26px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    align-items: flex-end;
}

footer p {
    color: #1a376f;
    font-size: 13px;
    line-height: 17px;
}

.font {
    font-size: 15px;
    font-weight: 700;
}

.font small {
    display: block;
    font-size: 13px;
}

p {
    margin-top: 17px;
}

h1 {
    font-size: 21px;
    line-height: 24px;
    font-weight: 400;
    padding: 19px 0 0;
}

h2 {
    font-size: 23px;
    line-height: 1.2;
    padding-bottom: 11px;
}

img {
    max-width: 100%;
    display: block;
}

:is(h2, strong) {
    font-weight: 700;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

@media only screen and (max-width:582px) {
    #wrapper {
        border: none;
        margin: 0;
        background: url('../images/background-mobile.jpg') no-repeat;
        height: auto;
        background-size: cover;
        padding: 16px;
    }

    .logo {
        display: flex;
        justify-content: flex-start;
    }

    :is(.logo, footer) {
        position: static;
    }

    article {
        padding: 16px 0
    }

    footer {
        background: #fff;
        padding: 16px
    }

    p {
        hyphens: auto;
        text-wrap: pretty
    }

    p span {
        white-space: nowrap;
    }
}