@font-face {
    font-family: 'Merriweather';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/merriweather-v30-latin-regular.eot');
    src: local(''), url('../fonts/merriweather-v30-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/merriweather-v30-latin-regular.woff2') format('woff2'), url('../fonts/merriweather-v30-latin-regular.woff') format('woff'), url('../fonts/merriweather-v30-latin-regular.ttf') format('truetype'), url('../fonts/merriweather-v30-latin-regular.svg#Merriweather') format('svg');
}

@font-face {
    font-family: 'Merriweather';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/merriweather-v30-latin-700.eot');
    src: local(''), url('../fonts/merriweather-v30-latin-700.eot?#iefix') format('embedded-opentype'), url('../fonts/merriweather-v30-latin-700.woff2') format('woff2'), url('../fonts/merriweather-v30-latin-700.woff') format('woff'), url('../fonts/merriweather-v30-latin-700.ttf') format('truetype'), url('../fonts/merriweather-v30-latin-700.svg#Merriweather') format('svg');
}

:root {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
}

body {
    font-family: 'Merriweather', Arial, serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 23px;
    color: #fff;
}

#wrapper {
    margin: 1rem auto;
    max-width: 910px;
    background: #fff url(../images/background.jpg) no-repeat left bottom;
    border: solid thin #cbcbcb;
    background-size: 100% 100%;
}

header {
    padding: 0 38px 30px;
}

article {
    padding: 16px 61px;
}

:is(h1, h2, h3, strong) {
    font-weight: 700;
}

:is(h1, h2, h3) {
    line-height: 1.2;
}

h1 {
    font-size: 28px;
}

h1 span {
    font-weight: 400;
    font-size: 90%;
}

h2 {
    font-size: 25px;
}

h3 {
    font-size: 71px;
    margin: 8px 0;
}

p {
    margin-bottom: 8px;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #fff;
    text-decoration: none;
}

img {
    max-width: 100%;
}

footer {
    margin: 15px 38px 35px;
    padding: 16px 26px;
    background: #cc1237;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-end;
}

.footer-flex-content:nth-of-type(2) {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

@media screen and (max-width: 909px) {
    #wrapper {
        border: none;
        margin: 0;
    }

    :is(h1, h2, h3, p) {
        hyphens: auto;
        text-wrap: pretty;
    }

    :is(p a, span) {
        white-space: nowrap;
    }

    br {
        display: none;
    }

    .footer-flex-content:nth-of-type(1) {
        width: 73%;
    }
}

@media screen and (max-width: 688px) {
    header {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    :is(header, article, footer) {
        padding: 1rem;
    }

    footer {
        margin: 1rem;
    }
}

@media screen and (max-width: 560px) {
    footer {
        flex-direction: column;
        align-items: center;
    }

    .footer-flex-content {
        width: 100% !important;
    }

    .footer-flex-content:nth-of-type(2) {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    h3 {
        font-size: 50px;
    }
}