﻿@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/roboto-v30-latin-regular.eot');
    src: 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-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/roboto-v30-latin-700.eot');
    src: 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 {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.2;
    color: #242021;
    font-weight: 400;
}

#wrapper {
    max-width: 945px;
    margin: 1rem auto;
    padding: 10px 1rem 3px;
    border: 2px solid #344EA0;
    position: relative;
}

#wrapper:before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    border: 1px solid #344EA0;
    width: calc(100% - 6px);
    height: calc(100% - 6px);
}

:is(header, article, footer) {
    position: relative;
    z-index: 9;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.flex {
    flex: 1 1 0;
}

h4 {
    color: #20409A;
    font-size: 15px;
    line-height: 1.2;
    margin: 0.375rem 0;
}

h1 {
    font-size: 23px;
    margin: 0.5625rem -1rem 0.75rem;
    line-height: 1.1;
    background: url("../images/background.jpg") no-repeat;
    color: #fff;
    padding: 5px 1rem;
}

h2 {
    font-size: 20px;
    margin: 0 0 0.375rem;
    line-height: 1.5;
    text-align: center;
}

h3 {
    font-size: 15px;
    margin: 0.375rem 0;
    line-height: 1.25rem;
}

:is(h1, h2, h3, h4, strong) {
    font-weight: 700;
}

img {
    max-width: 100%;
    vertical-align: bottom;
}

p {
    margin-bottom: 0.375rem;
    text-align: justify;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #242021;
    text-decoration: none;
    white-space: nowrap;
}

ul {
    margin: 0 0 0.375rem;
    list-style: none;
}

ul li {
    padding-left: 0.75rem;
}

li:before {
    text-indent: -0.75rem;
    content: "\2022";
    color: #242021;
    float: left;
    margin: -1px 0 0 0;
    font-size: 13px;
    font-family: Arial, Helvetica, sans-serif;
}

@media screen and (max-width:945px) {
    #wrapper {
        border: none;
        margin: 0 auto;
    }

    #wrapper:before {
        display: none;
    }

    :is(h1, p, ul) {
        hyphens: auto;
        text-align: left;
    }
}

@media screen and (max-width:767px) {
    footer {
        flex-direction: column;
        justify-content: center;
    }

    footer section {
        width: 100%;
    }

    h1 {
        font-size: 20px;
    }
}