@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/open-sans-v35-latin-regular.eot');
    src: url('../fonts/open-sans-v35-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/open-sans-v35-latin-regular.woff2') format('woff2'), url('../fonts/open-sans-v35-latin-regular.woff') format('woff'), url('../fonts/open-sans-v35-latin-regular.ttf') format('truetype'), url('../fonts/open-sans-v35-latin-regular.svg#OpenSans') format('svg');
}

@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/open-sans-v35-latin-700.eot');
    src: url('../fonts/open-sans-v35-latin-700.eot?#iefix') format('embedded-opentype'), url('../fonts/open-sans-v35-latin-700.woff2') format('woff2'), url('../fonts/open-sans-v35-latin-700.woff') format('woff'), url('../fonts/open-sans-v35-latin-700.ttf') format('truetype'), url('../fonts/open-sans-v35-latin-700.svg#OpenSans') format('svg');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    color: #000;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
}

#wrapper {
    max-width: 522px;
    margin: 1rem auto;
    border: 1px solid #000;
    background-color: #fff;
    position: relative;
}

article {
    width: 245px;
    position: absolute;
    bottom: 239px;
    left: 20px;
    transform: skew(0deg, -4deg);
}

article p {
    color: #005493;
    font-size: 18px;
    line-height: 23px;
}

footer {
    padding: 13px;
    background: #00406e url('../images/line.jpg') top no-repeat;
    position: relative;
}

.logo {
    display: flex;
    justify-content: flex-end;
}

.apply {
    width: 160px;
    height: 160px;
    border-radius: 100px;
    background: #82c342;
    position: absolute;
    bottom: 10px;
    left: 40px;
    transform: scale(1) rotate(349deg) translateX(1px) skewX(1deg);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.apply :is(h1, h4) {
    text-align: center;
    color: #fff;
}

p:not(:first-of-type) {
    margin-top: 10px;
}

h1 {
    font-size: 17px;
    line-height: 21px;
    font-weight: 400;
    border-top: 1px solid #fff;
    padding-top: 4px;
    margin: 10px 22px 0;
}

h2 {
    font-size: 19px;
    line-height: 25px;
    color: #ed174f;
}

h4 {
    font-size: 25px;
    line-height: 1.2;
}

img {
    max-width: 100%;
    display: block;
}

:is(h4, h2, 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:522px) {
    #wrapper {
        border: none;
        margin: 0;
    }

    p {
        hyphens: auto;
        text-wrap: pretty
    }

    p span {
        white-space: nowrap;
    }

    br:not(footer br) {
        display: none;
    }
}

@media only screen and (max-width:490px) {
    article {
        background: #c3deef;
        padding: 16px;
        width: auto;
        position: static;
        transform: none
    }

    footer {
        padding: 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .apply {
        position: static;
    }
}

@media only screen and (max-width:490px) {
    footer {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .apply {
        position: static;
    }
}