@font-face {
    font-display: swap;
    font-family: 'Inter Tight';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/inter-tight-v8-latin-regular.eot');
    src: url('../fonts/inter-tight-v8-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/inter-tight-v8-latin-regular.woff2') format('woff2'), url('../fonts/inter-tight-v8-latin-regular.woff') format('woff'), url('../fonts/inter-tight-v8-latin-regular.ttf') format('truetype'), url('../fonts/inter-tight-v8-latin-regular.svg#InterTight') format('svg');
}

@font-face {
    font-display: swap;
    font-family: 'Inter Tight';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/inter-tight-v8-latin-700.eot');
    src: url('../fonts/inter-tight-v8-latin-700.eot?#iefix') format('embedded-opentype'), url('../fonts/inter-tight-v8-latin-700.woff2') format('woff2'), url('../fonts/inter-tight-v8-latin-700.woff') format('woff'), url('../fonts/inter-tight-v8-latin-700.ttf') format('truetype'), url('../fonts/inter-tight-v8-latin-700.svg#InterTight') format('svg');
}

@font-face {
    font-display: swap;
    font-family: 'Inter Tight';
    font-style: normal;
    font-weight: 900;
    src: url('../fonts/inter-tight-v8-latin-900.eot');
    src: url('../fonts/inter-tight-v8-latin-900.eot?#iefix') format('embedded-opentype'), url('../fonts/inter-tight-v8-latin-900.woff2') format('woff2'), url('../fonts/inter-tight-v8-latin-900.woff') format('woff'), url('../fonts/inter-tight-v8-latin-900.ttf') format('truetype'), url('../fonts/inter-tight-v8-latin-900.svg#InterTight') format('svg');
}

:root {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    color: #fff;
    font-family: 'Inter Tight', Arial, sans-serif;
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
}

#wrapper {
    max-width: 700px;
    margin: 16px auto;
    border: 1px solid #000;
    background: url('../images/background.jpg') no-repeat bottom center;
    position: relative;
}

header {
    position: relative;
}

.logo {
    position: absolute;
    top: 45px;
    right: 45px;
    z-index: 1;
}

.mobile {
    display: none;
}

article {
    position: absolute;
    top: 170px;
    right: 46px;
    z-index: 1;
}

footer {
    padding: 15px 45px 35px;
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
    align-items: flex-end;
}

:is(p, h1, h2) {
    text-align: right;
}

:is(strong, h2) {
    font-weight: 700;
}

h1 {
    font-weight: 400;
    font-size: 27px;
    line-height: 1.3;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
}

h2 {
    margin: 0 0 16px;
    font-size: 21px;
    line-height: 28px;
}

h2 span {
    color: #d9b65a;
}

h3 {
    margin: 66px 0 0 232px;
    font-weight: 900;
    font-size: 40px;
    line-height: 1;
    color: #d9b55b;
    display: inline-block;
    padding: 12px 20px;
    background: #fff;
    border-radius: 18px;
}

h4 {
    font-size: 40px;
    line-height: 1.2;
    font-weight: 900;
    background: url('../images/background.png') no-repeat;
    width: 504px;
    height: 122px;
    text-align: center;
    padding: 8px 0 0;
    position: relative;
    top: -8px;
    right: -15px;
}

h4 span {
    transform: rotate(2deg);
    display: inline-block;
}

h4 span:nth-of-type(1) {
    margin: 0 0 0 160px;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #d9b65a;
    text-decoration: none;
    white-space: nowrap;
}

img {
    max-width: 100%;
}

@media all and (max-width: 699px) {
    #wrapper {
        margin: 0 auto;
        border: none;
    }

    .logo {
        right: 16px;
        top: 30px;
    }

    article {
        right: 20px;
        top: 150px;
    }

    footer {
        padding: 16px;
    }

    h4 {
        right: 0;
    }

    h3 {
        margin-top: 50px;
    }
}

@media all and (max-width: 610px) {
    #wrapper {
        background: #332c22;
    }

    .logo {
        top: 16px;
        width: 200px;
    }

    article {
        position: static;
        padding: 16px;
    }

    .desktop {
        display: none;
    }

    .mobile {
        display: block;
    }

    footer {
        background: url('../images/background.jpg') no-repeat;
        background-size: cover;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    :is(h1, h2, p) {
        text-align: center;
    }

    h3 {
        margin: 16px auto;
        width: 223px;
        display: block;
    }

    h4 {
        background: #d9b55b;
        width: auto;
        height: auto;
        position: static;
        padding: 10px 16px;
        border-radius: 16px;
    }

    h4 span {
        display: inline;
        margin: 0 !important;
        transform: none;
    }

    br:not(h4 br) {
        display: none;
    }
}

@media all and (max-width: 374px) {
    h4 {
        font-size: 34px;
    }
}