@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;
}

body {
    color: #000;
    font-family: 'PT Sans', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
}

#wrapper {
    max-width: 910px;
    margin: 1rem auto;
    border: 8px solid #f99d1c;
    background-color: #fff;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

header {
    width: 530px;
}

article {
    width: 350px;
    padding: 70px 30px 20px 16px;
}

.flex {
    margin: 20px 0;
}

.flex p a {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 2px;
}

.logo {
    margin-top: 40px;
    display: flex;
    justify-content: flex-end;
}

footer {
    padding: 10px 15px 4px;
    width: 100%;
    background: #f99d1c;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
}

footer p {
    font-weight: 700;
    font-size: 23px;
    line-height: 22px;
}

footer :is(h2, p, a) {
    color: #fff !important;
}

h1 {
    font-size: 24px;
    line-height: 30px;
    margin: 0 0 120px;
}

h1 span {
    font-weight: 400;
    font-size: 20px;
    margin-top: 10px;
    display: block;
}

h2 {
    font-size: 32px;
    line-height: 1;
}

h3 {
    margin: 25px 0 16px;
    font-size: 20px;
    line-height: 24px;
}

h4 {
    font-size: 20px;
    line-height: 24px;
    margin: 20px 0 0;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

:is(h1, h2, h3, h4, strong) {
    font-weight: 700;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #000;
    text-decoration: none;
    white-space: nowrap;
}

@media only screen and (max-width:908px) {
    #wrapper {
        border: none;
        margin: 0;
    }

    header {
        width: 60%;
    }

    article {
        width: 39%;
        padding: 20px 16px 20px 10px;
    }

    footer {
        padding: 16px;
    }

    :is(h3, h4) {
        font-size: 19px;
    }

    p {
        hyphens: auto;
        text-wrap: pretty;
    }
}

@media only screen and (max-width:764px) {
    #wrapper {
        display: block;
    }

    header {
        display: flex;
        justify-content: center;
    }

    :is(header, article) {
        width: auto;
        padding: 16px;
    }

    h1 {
        margin: 0 0 20px;
        text-align: center;
    }

    .logo {
        margin-top: -29px;
    }
}

@media only screen and (max-width:610px) {
    :is(h2, h3, p) {
        text-align: center;
    }

    .flex p a {
        justify-content: center;
        gap: 10px;
    }

    .logo {
        margin-top: 16px;
    }

    :is(article, footer) {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}