@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: 'Roboto';
    font-style: italic;
    font-weight: 700;
    src: url('../fonts/roboto-v30-latin-700italic.eot');
    src: local(''), url('../fonts/roboto-v30-latin-700italic.eot?#iefix') format('embedded-opentype'), url('../fonts/roboto-v30-latin-700italic.woff2') format('woff2'), url('../fonts/roboto-v30-latin-700italic.woff') format('woff'), url('../fonts/roboto-v30-latin-700italic.ttf') format('truetype'), url('../fonts/roboto-v30-latin-700italic.svg#Roboto') format('svg');
}

:root {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 23px;
    color: #fff;
}

#wrapper {
    margin: 1rem auto;
    max-width: 900px;
    background: #fff url(../images/background.jpg) no-repeat left bottom;
    border: solid thin #bdc9e7;
    position: relative;
    height: 499px;
}

header {
    position: absolute;
    right: 0;
    top: 0;
    opacity: 0;
}

article {
    padding: 30px 26px 0;
}

.flex-box {
    display: flex;
    gap: 18px;
}

.flex-box div {
    width: 53%;
}

.color {
    color: #a6a8ab !important;
    transform: rotate(-90deg);
    font-size: 14px;
    margin: 0 -25px 0-16px;
}

footer {
    padding: 0 10px 0 30px;
}

footer p {
    color: #0068b5;
}

.flex {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-end;
    margin: -6px 0 0;
}

.media {
    display: flex;
    align-items: center;
    position: relative;
    top: 6px;
}

.media div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.span {
    color: #f47221;
    font-size: 26px;
    position: relative;
    top: 4px;
    margin: 0 6px;
    line-height: 0;
}

:is(h1, h2, h3, strong) {
    font-weight: 700;
}

h1 {
    font-size: 18px;
    line-height: 1.2;
    margin: 16px 0;
}

h1 span {
    font-weight: 400;
}

h1:before {
    font-size: 15px;
    position: relative;
    top: -1px;
    float: left;
    content: "\25A0";
    color: #f47221;
    margin-right: 8px;
}

h2 {
    font-size: 46px;
    margin: 0 0 18px 30px;
    font-style: italic;
    line-height: 1.05;
}

h3 {
    position: absolute;
    bottom: 90px;
    right: 80px;
    z-index: 1;
    transform: rotate(-6deg);
    font-size: 23px;
    line-height: 1.2;
    font-style: italic;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

img {
    max-width: 100%;
}

@media screen and (max-width: 899px) {
    #wrapper {
        border: none;
        margin: 0;
        height: auto;
        background: #0068b5;
    }

    header {
        opacity: 1;
    }

    article {
        padding: 1rem 18rem 0 1rem;
    }

    .flex-box div {
        width: 79%;
    }

    :is(p, ul) {
        hyphens: auto;
        text-wrap: pretty;
    }

    h2 {
        margin: 0 0 18px 16px;
    }

    h3 {
        background: #f47221;
        padding: 10px 66px 10px 16px;
        bottom: 110px;
        transform: rotate(0deg);
        right: 0;
    }

    footer {
        background: #fff;
        padding: 1rem;
    }
}

@media screen and (max-width: 767px) {
    header {
        position: static;
        display: flex;
    }

    :is(article, footer) {
        padding: 1rem;
    }

    :is(.flex, header) {
        align-items: center;
    }

    :is(h2, footer p, h3) {
        text-align: center;
    }

    article br {
        display: none;
    }

    h3 {
        position: static;
        padding: 10px 16px;
    }

    :is(.media, .flex, header) {
        flex-direction: column;
    }

    .media div {
        flex-direction: row;
        gap: 10px;
    }

    .color {
        transform: none;
        margin: 0;
    }
}

@media screen and (max-width: 390px) {
    .flex-box {
        flex-direction: column;
        align-items: center;
    }

    .flex-box div {
        width: 100%;
    }
}