@charset "utf-8";

@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Jost';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/jost-v18-latin-regular.eot');
    /* IE9 Compat Modes */
    src: url('../fonts/jost-v18-latin-regular.eot?#iefix') format('embedded-opentype'),
        /* IE6-IE8 */
        url('../fonts/jost-v18-latin-regular.woff2') format('woff2'),
        /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
        url('../fonts/jost-v18-latin-regular.woff') format('woff'),
        /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+, iOS 5+ */
        url('../fonts/jost-v18-latin-regular.ttf') format('truetype'),
        /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
        url('../fonts/jost-v18-latin-regular.svg#Jost') format('svg');
    /* Legacy iOS */
}

@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Jost';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/jost-v18-latin-700.eot');
    /* IE9 Compat Modes */
    src: url('../fonts/jost-v18-latin-700.eot?#iefix') format('embedded-opentype'),
        /* IE6-IE8 */
        url('../fonts/jost-v18-latin-700.woff2') format('woff2'),
        /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
        url('../fonts/jost-v18-latin-700.woff') format('woff'),
        /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+, iOS 5+ */
        url('../fonts/jost-v18-latin-700.ttf') format('truetype'),
        /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
        url('../fonts/jost-v18-latin-700.svg#Jost') format('svg');
    /* Legacy iOS */
}

:root {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
}

html {
    min-height: 100%;
}

body {
    font: 700 1.250em/1.2em 'Jost', Calibri, sans-serif;
    color: #000;
}

#wrapper {
    position: relative;
    margin: 1rem auto;
    overflow: hidden;
    max-width: 495px;
    border: solid 1px #000;
    background: #AFD585;
    padding: 1rem;
}

p {
    padding-bottom: 0.4rem;
    font-family: Garamond, Arial, serif;
}

h1 {
    margin: 0.2rem 0 0.3rem;
    padding: 10px 0 10px;
    font-size: 1.55em;
    line-height: 1.4;
    color: #F1645C;
    background: url('../images/bg.jpg') no-repeat center top;
}

h1 small {
    font-size: 0.6em;
    background: #DEECCA;
    padding: 0.2rem;
    position: absolute;
    right: 9rem;
    bottom: 8rem;
    border-radius: 15px;
    color: #000;
}

h3 {
    font-size: 1.375em;
    line-height: 1;
}

h2 {
    font-size: 1em;
    line-height: 1.3;
    padding: 1rem 0 0;
}

h4 span {
    background: #fff;
    border-radius: 0 0 5px 5px;
    font-size: 1.375em;
    line-height: 1.3;
    padding: 0 0.5rem 0.5rem;
}

h3 span {
    background: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    color: #F16058;
}

h1 span:last-of-type {
    display: block;
    color: #000;
    font-size: 0.7em;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
h4 {
    text-align: center;
    text-transform: uppercase;
}

header {
    padding: 0 1rem 0.5rem 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.big {
    font-size: 1.7em;
    line-height: 1.1;
}

footer p,
.big {
    font-size: 1.375em;
    line-height: 1.1;
}

img {
    max-width: 100%;
    height: auto;
}

@media only screen and (max-width:494px) {
    body {
        font-size: 1em;
        line-height: 1.3;
    }

    #wrapper {
        border: none;
        margin: 0 auto;
    }

    p :is(a, span) {
        display: inline-block;
    }

    h1 small {
        position: static;
    }

    h1 {
        background: #fff;
        border-radius: 15px;
        padding: 0.5rem;
    }

    br {
        display: none;
    }

    header {
        padding: 0 0 0.5rem;
    }
}