@charset "utf-8";
@font-face {
    font-display: swap;
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/roboto-condensed-v27-latin-regular.eot');
    src: url('../fonts/roboto-condensed-v27-latin-regular.eot?#iefix') format('embedded-opentype'),
        url('../fonts/roboto-condensed-v27-latin-regular.woff2') format('woff2'),
        url('../fonts/roboto-condensed-v27-latin-regular.woff') format('woff'),
        url('../fonts/roboto-condensed-v27-latin-regular.ttf') format('truetype'),
        url('../fonts/roboto-condensed-v27-latin-regular.svg#RobotoCondensed') format('svg');
}
@font-face {
    font-display: swap;
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/roboto-condensed-v27-latin-700.eot');
    src: url('../fonts/roboto-condensed-v27-latin-700.eot?#iefix') format('embedded-opentype'),
        url('../fonts/roboto-condensed-v27-latin-700.woff2') format('woff2'),
        url('../fonts/roboto-condensed-v27-latin-700.woff') format('woff'),
        url('../fonts/roboto-condensed-v27-latin-700.ttf') format('truetype'),
        url('../fonts/roboto-condensed-v27-latin-700.svg#RobotoCondensed') format('svg');
}
@font-face {
    font-family: 'DK Lemon Yellow Sun';
    src: url('../fonts/DK Lemon Yellow Sun.eot');
    src: url('../fonts/DK Lemon Yellow Sun.eot?#iefix') format('embedded-opentype'), url('../fonts/DK Lemon Yellow Sun.woff') format('woff'), url('../fonts/DK Lemon Yellow Sun.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
:root {
    font-size: 16px;
}
* {
    box-sizing: border-box;
    margin: 0;
}
html {
    min-height: 100%;
}
body {
    color: #000;
    font: 400 1em/1.3em 'Roboto Condensed', Arial, sans-serif;
}
#wrapper {
    position: relative;
    max-width: 800px;
    margin: 1rem auto;
    border: 1px solid #000;
    overflow: hidden;
    background: linear-gradient(180deg, #fff 94%, #8CC754 110%);
}
main {
    display: block;
    padding: 2rem 2rem 1rem 2.75rem;
    background: url('../images/bg.png') no-repeat;
}
strong {
    font-weight: 700;
}
h1, h2, h3, h4, h5, .font {
    font-family: 'DK Lemon Yellow Sun', cursive;
}
.font{
    text-transform: uppercase;
    font-size: 1.7em;
    line-height: 1.1;
    text-align: right;
    margin: 0.5rem 1.25rem 0 0;
}
:is(a:link, a:visited, a:hover, a:active) {
    color: inherit;
    text-decoration: none;
}
.red, h2, h4 {
    color: #ED1B2E;
}
p {
    padding-bottom: 0.5rem;
}
h1 {
    margin: 7rem 0 1rem auto;
    font-size: 2.5em;
    line-height: 1.1;
    width: 284px;
    text-align: center;
    transform: rotate(-3deg);
}
h1 span {
    font-size: 1.3rem;
}
.sub_block {
    display: block;
    line-height: 1.1;
}
h2 {
    font-size: 1.8em;
    line-height: 1;
    margin-bottom: 0.25rem;
}
h3 {
    font-size: 3.6em;
    line-height: 1.1;
    text-align: center;
    width: 365px;
    transform: rotate(4deg);
    margin: 1rem 0 6rem 1rem;
}
h4 {
    font-size: 1.6em;
    line-height: 1.3;
}
h5 {
    font-size: 1.55em;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}
ul {
    padding: 0 0 0.25rem;
    list-style: none;
}
li {
    padding: 0 0 1rem 1.25rem;
    position: relative;
}
li:before {
    content: "\01F5F8";
    font-size: 1.3rem;
    position: absolute;
    left: 0;
    top: 0;
    color: #2B954B;
    font-weight: 700;
}
img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}
header {
    padding: 0;
    display: flex;
    justify-content: space-between;
    flex-flow: row-reverse;
}
article {
    padding: 0;
    display: flex;
    justify-content: space-between;
    flex-flow: row-reverse;
}
.right {
    width: 338px;
}
.right>figure {
    display: none;
}
.box {
    position: relative;
}
.box>p {
    display: flex;
    align-items: flex-start;
    gap: 0 0.25rem;
}
.box h2 {
    margin-bottom: 0.5rem;
}
.hl {
    font-size: 1.5em;
    line-height: 1.2;
    position: absolute;
    right: 2rem;
    top: 0.25rem;
    color: #fff;
}
.flex {
    display: flex;
    gap: 0 2rem;
    margin: -7px 0 0 2rem;
}
.flex p {
    font-size: 1.25em;
    line-height: 1.2;
}
.big {
    font-size: 1.25em;
    line-height: 1.3;
}
footer {
    position: relative;
    margin: -17.5rem 0 2rem -1.5rem;
    padding: 1rem 0 0 1.5rem;
    background: url('../images/bg_w.png') no-repeat;
    width: 377px;
    height: 255px;
}
footer p{
    line-height: 1.1;
}
footer figure {
    margin: 0;
    position: absolute;
    right: 2rem;
    top: 0.5rem;
}
@media only screen and (max-width:799px) {
    #wrapper {
        border: none;
        margin: 0 auto;
        background: linear-gradient(180deg, #8CC754, #fff, #8CC754);
    }
    :is(p, li) {
        -moz-hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
    }
    p a, span {
        display: inline-block;
    }
    br:not(footer br, .flex br){
        display: none;
    }
    main{
        padding: 2rem;
        background: none;
    }
    header{
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    h1, h3{
        width: auto;
        transform: none;
        margin: 0 0 1rem;
    }
    article{
        flex-direction: column;
    }
    .right, h1{
        width: auto;
    }
    .right>figure{
        display: flex;
        justify-content: center;
        margin: 1rem auto 2rem;
    }
    .hl{
        position: static;
        background: #ED1A2E;
        padding: 0.25rem 0.5rem;
        margin-bottom: 1rem;
        width: fit-content;
    }
    .box{
        background: #fff;
        border: 2px solid #F8A51B;
        padding: 0.5rem;
        margin-bottom: 1.5rem;
    }
    footer{
        margin: 1rem auto;
    }
}

@media only screen and (max-width:480px) {
    main{
        padding: 1rem;
    }
    h1{
        font-size: 2.5em;
    }
    h3{
        font-size: 3em;
    }
    h5{
        background: #F8A51B;
        padding: 0.25rem 0.5rem;
        width: fit-content;
        margin-bottom: 0.5rem;
    }
    footer{
        background: #fff;
        padding: 0.5rem 1rem;
        width: auto;
        height: auto;
    }
    footer figure{
        position: static;
        display: flex;
        justify-content: center;
    }
    .font{
        margin: 0 0 1rem;
        text-align: left;
    }
}