@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/montserrat-v25-latin-regular.eot');
    src: local(''), url('../fonts/montserrat-v25-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/montserrat-v25-latin-regular.woff2') format('woff2'), url('../fonts/montserrat-v25-latin-regular.woff') format('woff'), url('../fonts/montserrat-v25-latin-regular.ttf') format('truetype'), url('../fonts/montserrat-v25-latin-regular.svg#Montserrat') format('svg');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/montserrat-v25-latin-700.eot');
    src: local(''), url('../fonts/montserrat-v25-latin-700.eot?#iefix') format('embedded-opentype'), url('../fonts/montserrat-v25-latin-700.woff2') format('woff2'), url('../fonts/montserrat-v25-latin-700.woff') format('woff'), url('../fonts/montserrat-v25-latin-700.ttf') format('truetype'), url('../fonts/montserrat-v25-latin-700.svg#Montserrat') format('svg');
}

:root {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.125rem;
    color: #231f20;
}

#wrapper {
    margin: 1rem auto;
    max-width: 1000px;
    background: #fff;
    border: solid thin #000;
    padding: 2.25rem;
    position: relative;
    height: 502px;
}

header img {
    position: absolute;
    right: 0;
    top: 0;
}

.button {
    width: 199px;
    height: 37px;
    line-height: 2.3125rem;
    display: block;
    border: none;
    background: #930c14;
    color: #fff !important;
    text-align: center;
    font-weight: 700;
}

.margin-bottom {
    margin-bottom: 0 !important;
}

:is(h1, p) {
    position: relative;
    z-index: 999;
}

h1 {
    font-size: 1.4375rem;
    margin: 0 0 0.75rem;
    line-height: 1.2;
    color: #930c14;
    font-weight: 700;
    display: inline-block;
}

p {
    margin-bottom: 1rem;
    font-size: 0.6875rem;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #231f20;
    text-decoration: none;
    font-weight: 700;
}

img {
    max-width: 100%;
}

footer {
    display: flex;
    gap: 25px;
    align-items: center;
}

footer img {
    position: relative;
    top: 4px;
}

@media screen and (max-width: 999px) {
    #wrapper {
        border: none;
        margin: 0;
    }

    article {
        width: 45%;
    }

    :is(h1, p) {
        hyphens: auto;
        text-wrap: pretty;
    }

    :is(p a, span) {
        white-space: nowrap;
    }

    br {
        display: none;
    }
}

@media screen and (max-width: 882px) {
    footer {
        flex-direction: column;
        align-items: center;
        width: 45%;
        gap: 10px;
    }
}

@media screen and (max-width: 766px) {
    #wrapper {
        height: auto;
    }

    header {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 1rem;
    }

    header img {
        position: static;
    }

    h1{
        text-align: center;
    }

    :is(article, footer) {
        width: 100%;
    }

    footer {
        flex-direction: initial;
        gap: 30px;
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    #wrapper {
        padding: 1rem;
    }

    footer {
        flex-direction: column;
        gap: 10px;
    }
}