﻿@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/open-sans-v35-latin-regular.woff2') format('woff2'), url('../fonts/open-sans-v35-latin-regular.woff') format('woff');
}

@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/open-sans-v35-latin-700.woff2') format('woff2'), url('../fonts/open-sans-v35-latin-700.woff') format('woff');
}

@font-face {
    font-family: 'Love Story Rough';
    src: url('../fonts/LoveStoryRough.woff2') format('woff2'), url('../fonts/LoveStoryRough.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Beauty';
    src: url('../fonts/Beauty.woff2') format('woff2'), url('../fonts/Beauty.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bebas Neue';
    src: url('../fonts/BebasNeueBold.woff2') format('woff2'), url('../fonts/BebasNeueBold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

:root {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
}

body {
    color: #333F46;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 0.8125rem;
    line-height: 1.125rem;
    font-weight: 400;
}

#wrapper {
    max-width: 540px;
    margin: 0.75rem auto;
    border: 1px solid #000;
    padding: 0.5rem 1.25rem;
    background: #fff url(../images/background.jpg) no-repeat;
    position: relative;
    height: 586px;
}

header {
    padding: 0;
}

header>a {
    content: "";
    position: absolute;
    top: 23%;
    right: 4%;
    width: 30%;
    height: 16%;
    z-index: 200;
}

header aside {
    display: none;
}

article {
    padding: 0;
}

footer {
    padding: 0.125rem 0 0 0;
    margin: 0 0 0 -0.125rem;
}

footer aside {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
}

footer aside figure {
    position: relative;
    z-index: 10;
}

footer aside figure>img {
    position: absolute;
    top: -4rem;
    left: -3.875rem;
}

figure {
    margin: 0;
}

p {
    margin: 0 0 0.625rem;
}

strong {
    font-weight: 700;
}

h1 {
    margin: 7rem 0 0;
    font-weight: 700;
    font-size: 1.575rem;
    line-height: 1.9375rem;
    text-align: right;
}

h1 span {
    display: block;
    font-weight: 400;
    font-size: 2.125rem;
    line-height: 1.25rem;
    font-family: 'Love Story Rough', Arial, sans-serif;
    color: #fff;
}

h2 {
    margin: 0;
    font-weight: 700;
    font-size: 5.375rem;
    line-height: 4.125rem;
    font-family: 'Bebas Neue', Arial, sans-serif;
    color: #fff;
}

h2 span {
    display: block;
    font-size: 2rem;
    line-height: 2.5625rem;
    color: #fff;
}

h2 small {
    font-size: 75%;
    position: relative;
    top: -1.375rem;
}

:is(h2 strong, h3 strong) {
    font-family: 'Beauty', Arial, sans-serif;
    font-weight: normal;
    color: #333F46;
}

h3 {
    margin: 0 0 0.0625rem;
    padding: 0 0 0 3rem;
    font-weight: 700;
    font-size: 5.625rem;
    line-height: 5.875rem;
    color: #fff;
    position: relative;
}

h3 span {
    display: block;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.75rem;
    font-family: 'Bebas Neue', Arial, sans-serif;
}

h3 span:first-of-type {
    position: absolute;
    top: 1.4375rem;
    left: 0;
}

h3 span:last-of-type {
    position: absolute;
    top: 5rem;
    left: 9.75rem;
}

h3 a {
    color: #fff !important;
}

h4 {
    margin: 3.375rem 0 4.375rem;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.75rem;
    text-align: right;
    color: #fff;
}

h5 {
    margin: 1rem 0;
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.375rem;
    color: #fff;
    text-align: right;
    font-family: 'Bebas Neue', Arial, sans-serif;
}

img {
    max-width: 100%;
    vertical-align: bottom;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #000;
    text-decoration: none;
}

@media all and (max-width: 540px) {
    #wrapper {
        min-width: 320px !important;
        padding: 0;
        margin: 0;
        border: none;
        hyphens: auto;
        background: none;
        height: auto;
    }

    header {
        position: relative;
    }

    header>a {
        display: none;
    }

    header aside {
        display: block;
    }

    article {
        padding: 0 1rem 2.5rem;
        background: #323F47;
    }

    footer {
        padding: 1.25rem 1rem 0.625rem;
        margin: 0;
        background: #8EC63F;
    }

    footer aside {
        position: static;
        display: flex;
        justify-content: right;
    }

    h1 {
        margin: 0 -1rem 0.625rem;
        padding: 0.625rem 1rem;
        background: #8EC63F;
    }

    h2 {
        font-size: 13vw;
        line-height: 1;
        position: absolute;
        top: 3%;
        left: 7%;
    }

    h2 span {
        font-size: 6.6vw;
        line-height: 1.1;
    }

    h2 small {
        top: -0.9375rem;
    }

    h4 {
        margin: 0.625rem 0 1.25rem;
    }

    a,
    footer span {
        white-space: nowrap;
    }

    footer br {
        display: inline;
    }

    br {
        display: none;
    }
}

@media all and (max-width: 424px) {
    h3 span:last-of-type {
        position: static;
    }
}