@font-face {
    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-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;
}

html {
    min-height: 100%;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 21px;
    color: #000;
    text-align: center;
}

#wrapper {
    margin: 1rem auto;
    max-width: 900px;
    background: #fff url(../images/background.jpg) no-repeat left bottom;
    border: solid thin #cbcbcb;
    position: relative;
    height: 504px;
}

header {
    position: absolute;
    left: 93px;
    top: 0;
    opacity: 0;
}

article {
    padding: 107px 15px 20px 405px;
}

strong {
    font-weight: 700;
}

h1 {
    font-size: 36px;
    line-height: 1.2;
    transform: rotate(-16deg);
    font-weight: 400;
}

h1 small {
    font-size: 20px;
    display: block;
    margin-top: 8px;
    line-height: 1.4;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #000;
    text-decoration: none;
}

img {
    max-width: 100%;
}

footer {
    padding: 16px;
    position: absolute;
    right: 0;
    bottom: 0;
}

.footer-flex {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

@media screen and (max-width: 899px) {
    #wrapper {
        border: none;
        margin: 0;
    }

    :is(h1, p) {
        hyphens: auto;
        text-wrap: pretty;
    }

    :is(p a, span) {
        white-space: nowrap;
    }

    br:not(br.mobile-block, h1 br) {
        display: none;
    }
}

@media screen and (max-width: 844px) {
    article {
        padding: 137px 15px 20px 405px;
    }

    h1 {
        font-size: 28px;
    }
}

@media screen and (max-width: 765px) {
    #wrapper {
        height: auto;
        background: #9ed18a;
    }

    header {
        position: static;
        opacity: 1;
    }

    h1 {
        transform: rotate(0deg);
    }

    article {
        padding: 1rem;
        transform: rotate(0deg);
        background: #e0d8d4;
    }

    footer {
        position: static;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}