@font-face {
    font-display: swap;
    font-family: 'Merriweather';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/merriweather-v30-latin-300.eot');
    src: url('../fonts/merriweather-v30-latin-300.eot?#iefix') format('embedded-opentype'), url('../fonts/merriweather-v30-latin-300.woff2') format('woff2'), url('../fonts/merriweather-v30-latin-300.woff') format('woff'), url('../fonts/merriweather-v30-latin-300.ttf') format('truetype'), url('../fonts/merriweather-v30-latin-300.svg#Merriweather') format('svg');
}

@font-face {
    font-display: swap;
    font-family: 'Merriweather';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/merriweather-v30-latin-700.eot');
    src: 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');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    color: #000;
    font-family: 'Merriweather', Arial, sans-serif;
    font-size: 13px;
    line-height: 23px;
    font-weight: 400;
}

#wrapper {
    max-width: 802px;
    margin: 1rem auto;
    border: 1px solid #6c9fb6;
    background-color: #fff;
}

header section {
    background: #635f76;
    padding: 0 25px 16px 40px;
    margin-right: 40px;
}

header section p {
    color: #fff;
    margin-top: -39px !important;
}

article {
    padding: 10px 40px 20px 25px;
}

article section {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

article section:nth-of-type(2) h2 {
    left: -42px;
}

footer {
    padding: 0 25px 30px;
    background: url(../images/background_bottom.jpg) bottom no-repeat;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

footer p {
    width: 58%;
    font-size: 11px;
    line-height: 18px;
}

p span {
    white-space: nowrap;
}

p:not(:first-of-type) {
    margin-top: 10px;
}

h1 {
    font-size: 32px;
    line-height: 1.3;
    color: #fff;
    margin: 3px 0 0;
}

h1 small {
    font-size: 14px;
    font-weight: 400;
    display: block;
    margin-top: 6px;
}

h2 {
    font-size: 17px;
    line-height: 22px;
    color: #81839f;
    -ms-transform: rotate(-90deg);
    -webkit-transform: rotate(-90deg);
    transform: rotate(-90deg);
    position: relative;
    text-wrap: nowrap;
    position: absolute;
    top: 70px;
    left: -65px;
    display: inline-block;
}

ul {
    list-style: none;
    padding: 20px 35px;
    border: 1px solid #000;
}

ul li {
    padding-left: 19px;
}

li:before {
    content: "\2022";
    color: #000;
    float: left;
    font-size: 18px;
    text-indent: -19px;
}

img {
    max-width: 100%;
    display: block;
}

:is(h1, strong) {
    font-weight: 700;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #000;
    text-decoration: none;
    white-space: nowrap;
}

@media only screen and (max-width:800px) {
    #wrapper {
        border: none;
        hyphens: auto;
        margin: 0;
    }

    :is(header section, article) {
        padding: 16px;
        margin-right: 0;
    }

    h1 {
        font-size: 35px;
    }

    footer {
        padding: 10px 16px 35px;
        gap: 20px;
    }

    footer p {
        flex: 1 1 0;
        width: auto;
    }

    br {
        display: none;
    }

    :is(p, ul) {
        hyphens: auto;
        text-wrap: pretty
    }

    :is(p, ul) span {
        white-space: nowrap;
    }
}

@media only screen and (max-width:650px) {
    footer {
        flex-direction: column;
        align-items: center;
        gap: 15px
    }

    footer p {
        width: auto;
        text-align: center;
    }
}

@media only screen and (max-width:608px) {
    h1 {
        font-size: 26px
    }

    header section p {
        margin-top: 0 !important;
    }

    article section {
        padding-left: 0;
    }

    h2 {
        position: static;
        -ms-transform: none;
        -webkit-transform: none;
        transform: none;
        padding: 15px 0;
    }

    ul {
        padding: 16px;
    }
}

@media only screen and (max-width:466px) {
    a:not(a[href^="tel:"]) {
        white-space: normal !important;
    }
}