@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: 21px;
    color: #242B52;
}

#wrapper {
    margin: 1rem auto;
    max-width: 800px;
    background: #f8f9fb;
    border: solid thin #cbcbcb;
}

header {
    position: relative;
    display: flex;
    align-items: center;
}

article {
    padding: 0 0 0 24px;
}

:is(h1, h2, strong) {
    font-weight: 700;
}

h1 {
    font-size: 22px;
    margin: 0 0 6px;
    line-height: 1.2;
}

h2 {
    font-size: 16px;
    margin: 0 0 6px;
    line-height: 21px;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #242B52;
    text-decoration: none;
}

img {
    max-width: 100%;
}

:is(header img, header div img) {
    display: block;
}

header div{
    width: 100%;
}

header div{
    position: relative;
    width: 308px;
    margin: auto;
    display: block;
    background: #00943b;
}

header div a:nth-of-type(2) {
    position: absolute;
    top: 62%;
    left: 34%;
    height: 28%;
    width: 34%;
}

header div a:nth-of-type(3) {
    position: absolute;
    top: 89%;
    left: 3%;
    height: 10%;
    width: 94%;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.footer-flex-content:nth-of-type(1) {
    width: 57%;
    padding-top: 6px;
}

.footer-flex-content:nth-of-type(2) {
    width: 308px;
    background: #00943b;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 56px;
}

@media screen and (max-width: 799px) {
    #wrapper {
        border: none;
        margin: 0;
    }

    :is(h1, p) {
        hyphens: auto;
        text-wrap: pretty;
        text-align: center;
    }

    :is(p a, span) {
        white-space: nowrap;
    }

    br:not(br.mobile-block) {
        display: none;
    }

    article {
        padding: 16px;
    }

    .footer-flex {
        display: block;
    }

    .footer-flex-content {
        width: 100% !important;
    }

    .footer-flex-content:nth-of-type(2) {
        margin-top: 10px;
        padding: 10px;
    }
}

@media screen and (max-width: 460px) {
    header{
        flex-direction: column;
        align-items: center;
        flex-direction: column-reverse;
        background: #00943b;
    }
}