:root {
    font-size: 16px;
}

@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: 500;
    src: url('../fonts/roboto-v30-latin-500.eot');
    src: local(''), url('../fonts/roboto-v30-latin-500.eot?#iefix') format('embedded-opentype'), url('../fonts/roboto-v30-latin-500.woff2') format('woff2'), url('../fonts/roboto-v30-latin-500.woff') format('woff'), url('../fonts/roboto-v30-latin-500.ttf') format('truetype'), url('../fonts/roboto-v30-latin-500.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');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 16px;
    line-height: 22px;
    color: #231f20;
    font-weight: 400;
}

#wrapper {
    margin: 1rem auto;
    border: 3px #231f20 solid;
    max-width: 610px;
    position: relative;
    background: #FFFFFF;
}

header {
    padding: 0.5625rem 0 0;
    background: url('../images/line.jpg') no-repeat;
    background-size: 100%;
}

article {
    padding: 0 35px;
}

.banner {
    position: relative;
    margin: 0 -35px 4.4375rem;
}

.font p {
    font-weight: 500;
}

.text-center {
    text-align: center;
    border-bottom: 1px solid #231f20;
    border-top: 1px solid #231f20;
    padding: 10px 0;
    margin: 20px -8px 12px;
}

footer {
    padding: 0 1.875rem 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.nowrap {
    white-space: nowrap;
}

p {
    margin-bottom: 8px;
}

:is(strong, h1, h2, h3, h4) {
    font-weight: 700;
}

h1 {
    font-size: 36px;
    position: absolute;
    bottom: -3.4375rem;
    left: 1.875rem;
    right: 1.875rem;
    padding: 1.75rem 1rem;
    text-align: center;
    background: #4a5eab;
    color: #fff;
    line-height: 1.15;
}

h1 small {
    display: block;
    font-weight: 400;
    font-size: 1.125rem;
    margin: 1.25rem 0 0;
}

h2 {
    font-size: 22px;
    line-height: 28px;
    margin: 0 0 8px;
    position: relative;
    display: inline-block;
}

h2 span {
    position: relative;
    z-index: 9;
}

h2:after {
    content: '';
    background: #cde2ea;
    height: 14px;
    position: absolute;
    bottom: 0px;
    left: -5px;
    right: -5px;
    border-radius: 10px;
}

h3 {
    font-size: 43px;
    line-height: 1.2;
    margin: 0.75rem 1.875rem 1rem;
}

h3 span {
    position: relative;
    display: inline-block;
    margin: 0 0.625rem 0 0;
}

h3 strong {
    position: relative;
    z-index: 9;
}

h3 span:before {
    content: '';
    display: block;
    position: absolute;
    height: 32%;
    left: -6px;
    bottom: 5px;
    right: -6px;
    background: #999cce;
    border-radius: 20px;
}

h3 span:nth-child(1):before {
    background: #b4b7dc;
}

h4 {
    font-size: 1.3125rem;
    line-height: 1.3;
    background: #4a5eab;
    color: #fff;
    padding: 0.75rem 0.625rem 0.3125rem;
    display: inline-block;
    position: absolute;
    left: 1.875rem;
    bottom: 8rem;
}

h4 span {
    font-weight: 400;
    font-size: 87%;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #231f20;
    text-decoration: none;
    white-space: nowrap;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

@media only screen and (max-width:609px) {
    #wrapper {
        border: none;
        margin: 0;
    }

    article {
        padding: 0 1rem;
    }

    .banner {
        margin: 0 -1rem 1rem;
    }

    .text-center {
        margin: 16px 0;
        padding: 14px 0;
    }

    footer {
        padding: 0 1rem 1rem;
    }

    p {
        hyphens: auto;
        text-wrap: pretty;
    }

    h1 {
        left: 1rem;
        bottom: 0.625rem;
        right: 1rem;
    }

    h1 br {
        display: none;
    }

    h4 {
        left: 1rem;
        bottom: 12rem;
    }
}

@media only screen and (max-width:560px) {
    h3 {
        font-size: 9.5vw;
        text-align: center;
        margin: 1rem;
        line-height: 1;
    }

    h3 span {
        margin: 0 0.4375rem 0.625rem;
    }
}

@media only screen and (max-width:510px) {
    footer {
        flex-direction: column;
    }

    h1 {
        font-size: 1.75rem;
        padding: 1rem;
        position: static;
    }

    h1 small {
        font-size: 1.125rem;
    }

    h4 {
        padding: 1rem 1rem 4px;
        width: 100%;
        text-align: center;
        position: static;
    }
}