﻿@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/roboto-v30-latin-regular.eot');
    src: local(''), url('../fonts/roboto-v30-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/roboto-v30-latin-regular.woff2') format('woff2'), url('../fonts/roboto-v30-latin-regular.woff') format('woff'), url('../fonts/roboto-v30-latin-regular.ttf') format('truetype'), url('../fonts/roboto-v30-latin-regular.svg#Roboto') format('svg');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/roboto-v30-latin-700.eot');
    src: local(''), url('../fonts/roboto-v30-latin-700.eot?#iefix') format('embedded-opentype'), url('../fonts/roboto-v30-latin-700.woff2') format('woff2'), url('../fonts/roboto-v30-latin-700.woff') format('woff'), url('../fonts/roboto-v30-latin-700.ttf') format('truetype'), url('../fonts/roboto-v30-latin-700.svg#Roboto') format('svg');
}

:root {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    line-height: 21px;
    font-size: 16px;
    color: #231f20;
    font-weight: 400;
    font-family: 'Roboto', Arial, sans-serif;
}

#wrapper {
    position: relative;
    max-width: 602px;
    margin: 1rem auto;
    border: 1px solid #CBCBCB;
    overflow: hidden;
    background: #FFF url(../images/background.jpg) no-repeat;
    background-color: #fff;
}

header {
    opacity: 0;
    padding: 0 0 106px;
}

article {
    margin: -110px 2rem 0 2.3125rem;
    padding: 96px 1.125rem 80px;
    background: #FFF;
    position: relative;
}

.title {
    position: absolute;
    top: -61px;
    left: -20px;
}

article p {
    margin: 0 0 6px;
}

.color {
    color: #ED1C24;
    font-size: 15px;
    line-height: 20px;
    margin-top: 15px;
}

.flexbox {
    display: flex;
    justify-content: space-between;
}

.flexbox div p {
    font-size: 0.9375em;
    line-height: 20px;
}

.flexbox div {
    width: 48%;
}

footer {
    background: #FFF200;
    padding: 8px 6px 8px 56px;
    min-height: 41px;
    border-top: 2px solid #ED1C24;
    border-bottom: 2px solid #ED1C24;
    position: relative;
    margin: -70px 0 60px;
}

:is(footer a, .font) {
    color: #ED1C24 !important;
}

.logo {
    padding: 0.125rem 0.625rem;
    position: absolute;
    top: -0.5rem;
    right: 2.5625rem;
    background: #FFF;
}

.font {
    position: absolute;
    bottom: 3px;
    font-size: 13px;
    line-height: 1.1;
    left: 314px;
}

footer:after {
    content: "";
    position: absolute;
    top: 0;
    left: 34.9375rem;
    height: 100%;
    width: 2px;
    background: #ED1C24;
}

footer:before {
    content: "";
    position: absolute;
    top: 0;
    left: 24.9375rem;
    height: 100%;
    width: 2px;
    background: #ED1C24;
}

:is(strong, h1, h2, h3) {
    font-weight: 700;
}

h1 {
    color: #ED1C24;
    line-height: 1;
    font-size: 35px;
}

h1 span {
    display: inline-block;
    padding: 0.25rem 0.625rem 1px 14px;
    background: #FFF200;
    margin-bottom: 0.125rem;
}

h1 span:nth-of-type(2) {
    font-size: 34px;
}

h1 small {
    font-size: 1rem;
    font-weight: 400;
}

h2 {
    font-size: 1.0625em;
    line-height: 1.25;
    color: #FFF;
}

h2 span {
    display: inline-block;
    padding: 0.0625rem 14px;
    margin-bottom: 0.125rem;
    background: #ED1C24;
}

h3 {
    font-size: 1.1875em;
    margin: 10px 0 4px;
    line-height: 1.25;
    color: #ED1C24;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #231f20;
    text-decoration: none;
    white-space: nowrap;
}

ul {
    margin: 0 0 12px;
    list-style: none;
}

ul li {
    padding-left: 0.6875rem;
    margin: 0 0 5px;
}

ul li:before {
    content: "\025A0";
    color: #ED1C24;
    float: left;
    font-size: 15px;
    margin-top: -1px;
    text-indent: -0.6875rem;
}

img {
    max-width: 100%;
}

@media all and (max-width:600px) {
    #wrapper {
        border: none;
        margin: 0;
        background: #fff;
    }

    header {
        opacity: 1;
        padding: 0;
    }

    article {
        margin: 0;
        padding: 16px;
    }

    :is(.title, .logo, .font) {
        position: static;
    }

    footer {
        min-height: auto;
        padding: 16px;
        margin: 0;
    }

    .logo {
        padding: 16px;
        display: flex;
        justify-content: center;
    }

    footer:after,
    footer:before {
        display: none
    }

    footer p {
        text-align: center;
        margin: 0 0 16px !important;
    }

    .font {
        font-size: 15px;
        line-height: 20px;
    }

    br:not(:is(.flexbox, .color, h2) br) {
        display: none;
    }

    h1 {
        background: #FFF200;
        padding: 8px 16px;
        line-height: 1.25;
        font-size: 29px;
    }

    h1 span {
        padding: 0;
        display: inline;
        font-size: 29px !important;
    }

    h2 {
        margin: 16px 0;
        padding: 10px 16px;
        background: #ED1C24;
    }

    h2 span {
        padding: 0 !important;
        display: inline;
    }
}

@media all and (max-width: 480px) {
    .flexbox {
        display: block;
    }

    .flexbox div {
        width: auto;
    }

    :is(.flexbox p, .color) {
        text-align: center;
    }
}