@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/roboto-v30-latin-regular.eot');
    src: local(''), url('../fonts/roboto-v30-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/roboto-v30-latin-regular.woff2') format('woff2'), url('../fonts/roboto-v30-latin-regular.woff') format('woff'), url('../fonts/roboto-v30-latin-regular.ttf') format('truetype'), url('../fonts/roboto-v30-latin-regular.svg#Roboto') format('svg');
}

@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/roboto-v30-latin-700.eot');
    src: local(''), url('../fonts/roboto-v30-latin-700.eot?#iefix') format('embedded-opentype'), url('../fonts/roboto-v30-latin-700.woff2') format('woff2'), url('../fonts/roboto-v30-latin-700.woff') format('woff'), url('../fonts/roboto-v30-latin-700.ttf') format('truetype'), url('../fonts/roboto-v30-latin-700.svg#Roboto') format('svg');
}

:root {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    color: #1c9174;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 18px;
    line-height: 24px;
    font-weight: 400;
}

#wrapper {
    max-width: 566px;
    margin: 16px auto;
    border: 2px solid #f386a3;
    background: url('../images/background.jpg') top left no-repeat;
    position: relative;
}

header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 14px 0 0 16px;
}

.logo {
    margin: 0 0 0 -16px;
}

article {
    position: absolute;
    top: 10px;
    right: 4px;
    z-index: 999;
}

article p span {
    display: block;
    text-align: right;
    margin: 0 0 1.6px;
}

figure {
    display: none;
}

footer {
    padding: 10px 16px;
}

span {
    white-space: nowrap;
}

h1 {
    margin: 0 8px 12px 0;
    font-weight: 400;
    font-size: 34px;
    line-height: 1;
    text-align: right;
    color: #fff;
}

h1 strong {
    font-weight: 700;
}

h1 :is(span, strong) {
    display: block;
    font-size: 24px;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #1c9174;
    text-decoration: none;
    white-space: nowrap;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

@media all and (max-width: 565px) {
    #wrapper {
        margin: 0 auto;
        border: none;
        background: #f386a3;
    }

    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        padding: 16px 16px 0;
        gap: 16px;
    }

    .logo {
        margin: 0;
    }

    article {
        position: static;
        padding: 1px 16px 16px;
    }

    article p span {
        background: #fff;
        border-radius: 20px;
        display: inline-block;
        padding: 2px 14px;
        margin: 0 0 8px;
    }

    figure {
        display: block;
        display: flex;
        justify-content: center;
    }

    footer {
        background: #fff;
        padding: 16px;
    }

    :is(p, h1) {
        hyphens: auto;
        text-align: center;
        text-wrap: pretty;
    }

    h1 {
        margin: 16px 0 26px;
    }

    h1 strong {
        margin: 0 0 6px;
    }

    h1 span {
        display: inline;
    }
}