@font-face {
    font-display: swap;
    font-family: 'PT Sans';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/pt-sans-v17-latin-regular.eot');
    src: url('../fonts/pt-sans-v17-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/pt-sans-v17-latin-regular.woff2') format('woff2'), url('../fonts/pt-sans-v17-latin-regular.woff') format('woff'), url('../fonts/pt-sans-v17-latin-regular.ttf') format('truetype'), url('../fonts/pt-sans-v17-latin-regular.svg#PTSans') format('svg');
}

@font-face {
    font-display: swap;
    font-family: 'PT Sans';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/pt-sans-v17-latin-700.eot');
    src: url('../fonts/pt-sans-v17-latin-700.eot?#iefix') format('embedded-opentype'), url('../fonts/pt-sans-v17-latin-700.woff2') format('woff2'), url('../fonts/pt-sans-v17-latin-700.woff') format('woff'), url('../fonts/pt-sans-v17-latin-700.ttf') format('truetype'), url('../fonts/pt-sans-v17-latin-700.svg#PTSans') format('svg');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    color: #fff;
    font-family: 'PT Sans', Arial, sans-serif;
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
}

#wrapper {
    max-width: 900px;
    margin: 1rem auto;
    border: 2px solid #003067;
    background-color: #003067;
}

header {
    padding: 40px 50px 0;
}

article {
    padding: 10px 117px 50px;
}

article figure {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    gap: 10px;
}

footer {
    background: #fff url('../images/background-bottom.jpg') top no-repeat;
    padding: 44px 0 0;
    position: relative;
}

footer figure {
    display: flex;
    padding: 0 50px 50px;
    justify-content: space-between;
    align-items: flex-end;
}

.circle {
    width: 121px;
    height: 121px;
    background: #f36f21;
    padding: 20px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -40px;
    right: 50px;
    font-weight: 700;
    border-radius: 100px;
    transform: scale(1) rotate(355deg) translateX(1px) skewX(1deg);
}

.circle p {
    font-size: 14px;
    line-height: 18px;
    text-align: center;
}

.sologan {
    position: absolute;
    top: 3px;
    left: 256px;
    transform: scale(1) rotate(353deg) translateX(1px) skewX(1deg);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.position {}

p:not(:first-of-type) {
    margin-top: 10px;
}

h1 {
    font-size: 15px;
    line-height: 1.1;
}

h2 {
    font-size: 32px;
    line-height: 1.1;
}

h2 span {
    color: #ff751a;
}

h3 {
    padding: 8px 10px;
    font-size: 30px;
    line-height: 1.1;
    margin-top: -1px;
}

h3:nth-of-type(2) {
    padding-right: 15px;
}

h4 {
    font-size: 24px;
    line-height: 1.2;
    padding: 3px 5px;
    margin-top: 3px;
}

h5 {
    background: #f36f21;
    font-size: 13px;
    line-height: 13px;
    padding: 5px;
    margin-top: 2px;
}

:is(h3, h4) {
    background: #0066b3;
}

:is(h1, h2, p) {
    text-align: center;
}

img {
    max-width: 100%;
    display: block;
}

:is(h1, h2, h3, h4, strong) {
    font-weight: 700;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    z-index: 999;
}

@media only screen and (max-width:900px) {
    #wrapper {
        border: none;
        margin: 0;
    }

    p {
        hyphens: auto;
        text-wrap: pretty
    }

    p span {
        white-space: nowrap;
    }

    :is(header, article, footer figure) {
        padding: 16px
    }

    footer {
        padding: 183px 16px 16px;
        margin-top: 50px;
    }

    .sologan {
        left: 43px;
    }
}

@media only screen and (max-width:705px) {
    article figure {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

@media only screen and (max-width:610px) {
    footer {
        padding: 9px 16px 16px;
    }

    :is(.sologan, .circle) {
        position: static;
    }

    .position {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
        gap: 25px;
    }
}

@media only screen and (max-width:470px) {
    footer figure {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
}

@media only screen and (max-width:420px) {
    footer {
        background: #fff none;
        padding: 16px
    }

    :is(.sologan, .circle) {
        transform: none !important
    }

    .sologan {
        display: block;
    }

    h3 {
        font-size: 22px
    }
}