:root {
    font-size: 16px;
}

* {
    margin: 0px;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 24px;
    font-size: 16px;
    color: #fff;
    font-weight: 400;
}

#wrapper {
    margin: 12px auto;
    border: 1px #007bac solid;
    max-width: 750px;
    position: relative;
    background: #fff url(background.jpg) no-repeat 0 146px;
}

header {
    padding: 25px 45px 30px;
    display: flex;
    justify-content: space-between;
}

header p,
header p a {
    color: #231f20 !important;
}

header p {
    text-align: right;
    line-height: 1.2;
    font-size: 15px;
}

header div {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    align-items: flex-end;
}

article {
    padding: 28px 20px 0 45px;
}

footer {
    padding: 10px 48px 58px;
    font-size: 16px;
}

.margin {
    margin: 3px 0 5px;
}

.margin-bottom {
    margin-bottom: 8px;
}

h1 {
    font-size: 30px;
    line-height: 1.4;
    font-weight: 700;
    margin: 14px 0 14px;
}

h1 small {
    font-size: 17px;
    line-height: 21px;
    font-weight: 400;
}


h2 {
    font-size: 27px;
    line-height: 1.38;
}

h2 small {
    font-size: 17px;
    line-height: 21px;
    font-weight: 400;
}
:is(a:link, a:visited, a:hover, a:active) {
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

strong {
    font-weight: 700;
}

img {
    max-width: 100%;
    vertical-align: bottom;
}

p span {
    white-space: nowrap;
}

@media only screen and (max-width: 750px) {
    #wrapper {
        border: none;
        hyphens: auto;
        margin: 0 auto;
        background: #0085bc;
    }

    header {
        padding: 16px;
        background: #fff;
    }

    article {
        padding: 20px 16px 10px;
    }

    footer {
        padding: 1px 16px 16px;
    }

    body {
        font-size: 16px;
    }

    h1 {
        font-size: 23px;
    }

    h1:before {
        margin-top: -8px;
    }
}

@media only screen and (max-width: 585px) {
    header {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

