﻿:root {
    font-size: 16px;
}

@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');
}

@font-face {
    font-family: 'Merriweather';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/merriweather-v30-latin-regular.eot');
    src: local(''), url('../fonts/merriweather-v30-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/merriweather-v30-latin-regular.woff2') format('woff2'), url('../fonts/merriweather-v30-latin-regular.woff') format('woff'), url('../fonts/merriweather-v30-latin-regular.ttf') format('truetype'), url('../fonts/merriweather-v30-latin-regular.svg#Merriweather') format('svg');
}

@font-face {
    font-family: 'Merriweather';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/merriweather-v30-latin-700.eot');
    src: local(''), url('../fonts/merriweather-v30-latin-700.eot?#iefix') format('embedded-opentype'), url('../fonts/merriweather-v30-latin-700.woff2') format('woff2'), url('../fonts/merriweather-v30-latin-700.woff') format('woff'), url('../fonts/merriweather-v30-latin-700.ttf') format('truetype'), url('../fonts/merriweather-v30-latin-700.svg#Merriweather') format('svg');
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
}

body {
    font-family: 'Merriweather', serif;
    color: #231f20;
    font-size: 13px;
    line-height: 1.125rem;
}

#wrapper {
    margin: 1rem auto;
    padding: 0.5rem 1rem 0;
    max-width: 930px;
    background-color: #e1e9f6;
    overflow: hidden;
    position: relative;
    border: solid thin #231f20;
}

article {
    width: 451px;
    overflow: hidden;
}

header {
    display: none;
}

footer {
    font-family: 'Roboto', sans-serif;
    position: absolute;
    right: 1rem;
    top: 1.25rem;
    background: #fff;
    padding: 0.9375rem;
    border: 1px solid #000;
    width: 45%;
}

p:not(p:last-child) {
    margin-bottom: 1rem;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #231f20;
    white-space: nowrap;
    text-decoration: none;
}

img {
    max-width: 100%;
    vertical-align: bottom;
}

h1 {
    margin: 9px 0 0.625rem;
    font-size: 1.75rem;
    line-height: 1.3;
    color: #0c4da2;
    font-family: 'Roboto', sans-serif;
}

h3 {
    font-size: 0.6rem;
    line-height: 1.375rem;
    margin: 0.625rem 0 0.125rem;
    position: absolute;
    left: 1.375rem;
    top: 1.625rem;
    transform: rotate(-90deg);
}

h2 {
    font-size: 27px;
    line-height: 1.2;
    margin: 1rem 0;
    text-decoration: underline;
    text-align: center;
}

.flexbox {
    display: flex;
    justify-content: space-between;
}

.flexbox p {
    line-height: 1.1875rem;
}

.flexbox section {
    width: 48%;
}

ul {
    margin: 0 0 1rem;
    list-style: none;
    font-size: 16px;
    line-height: 1.3;
}

ul li {
    padding-left: 0.625rem;
    background: url("../images/iconli.png") no-repeat left 9px;
    text-align: left;
}

footer div {
    margin: 1rem 0.625rem 0.625rem 0;
    position: relative;
}

hr {
    margin: 0;
    border: none;
    height: 2px;
    display: block;
    background: #231f20;
    width: 71%;
}

.width {
    width: 282px;
}

footer p {
    margin-bottom: 0.625rem;
}

footer div p:nth-of-type(2) {
    font-size: 120%;
    line-height: 1.2;
    margin: 0 0 0 11px;
}

article p span {
    font-size: 276%;
    position: relative;
    top: 1rem;
    left: -0.25rem;
}

em {
    font-style: normal;
    margin-left: 1.625rem;
}

footer p {
    font-size: 1rem;
}

article section:nth-of-type(1) p:nth-of-type(1) {
    text-indent: 0.125rem;
}

article section:nth-of-type(2) p {
    margin-top: 0.3125rem;
}

.flexbox section p {
    line-height: 20px;
    margin: 0 0 20px;
}

footer figure {
    position: absolute;
    right: 0;
    top: -35px;
}

.images {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0 0 14px;
}

@media screen and (max-width: 930px) {
    #wrapper {
        border: none;
        margin: 0;
        background: #e1e9f6;
        padding: 1rem 1rem 0;
    }

    :is(p, ul) {
        hyphens: auto;
        text-wrap: pretty;
    }

    em {
        margin-left: 0;
    }

    article section:nth-of-type(1) p:nth-of-type(1) {
        text-indent: 0;
    }

    article p span {
        position: static;
    }

    br:not(footer br) {
        display: none;
    }
}

@media screen and (max-width:900px) {
    #wrapper {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
    }

    header {
        display: block;
        width: 100%;
    }

    header .images {
        flex-direction: row;
    }

    header .images img {
        height: 100%;
    }

    article {
        width: 48%;
    }

    article .images {
        display: none;
    }

    article section:nth-of-type(2)>img {
        display: none;
    }

    footer {
        width: 48%;
        position: static;
    }

    .flexbox {
        display: block;
    }

    .flexbox section {
        width: 100%;
    }
}

@media screen and (max-width:840px) {
    footer figure {
        position: static;
        margin: 0 auto 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .width {
        width: 100%;
    }
}

@media screen and (max-width:767px) {
    article {
        width: 100%;
    }

    footer {
        width: 320px;
        margin: 0 auto;
    }

    footer div p:nth-of-type(2) {
        margin: 0;
    }
}

@media screen and (max-width:375px) {
    header .images {
        flex-direction: column;
    }
}