@font-face {
    font-display: swap;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/montserrat-v26-latin-regular.eot');
    src: url('../fonts/montserrat-v26-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/montserrat-v26-latin-regular.woff2') format('woff2'), url('../fonts/montserrat-v26-latin-regular.woff') format('woff'), url('../fonts/montserrat-v26-latin-regular.ttf') format('truetype'), url('../fonts/montserrat-v26-latin-regular.svg#Montserrat') format('svg');
}

@font-face {
    font-display: swap;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/montserrat-v26-latin-500.eot');
    src: url('../fonts/montserrat-v26-latin-500.eot?#iefix') format('embedded-opentype'), url('../fonts/montserrat-v26-latin-500.woff2') format('woff2'), url('../fonts/montserrat-v26-latin-500.woff') format('woff'), url('../fonts/montserrat-v26-latin-500.ttf') format('truetype'), url('../fonts/montserrat-v26-latin-500.svg#Montserrat') format('svg');
}

:root {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    color: #000;
    line-height: 1.375rem;
    font-size: 1rem;
    font-weight: 400;
}

#wrapper {
    position: relative;
    max-width: 900px;
    margin: 1rem auto;
    border: 1px solid #000;
    overflow: hidden;
    background-color: #fff;
}

article {
    padding: 26px 4rem;
}

footer {
    padding: 0 4rem 4rem;
}

:is(strong, h1, h2) {
    font-weight: 500;
}

h1 {
    margin: 1rem 0;
    font-size: 29px;
    line-height: 1.3;
    color: #e30613;
}

h2 {
    font-size: 32px;
    margin: 1rem 0;
    color: #e30613;
    line-height: 1.2;
}

p {
    margin: 0 0 20px;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #3a6483;
    white-space: nowrap;
    text-decoration: none;
}

a[href^="tel:"] {
    color: #000 !important;
}

img {
    max-width: 100%;
}

ul {
    margin: 0 0 20px;
    list-style: none;
}

ul li {
    padding-left: 1.25rem;
}

ul li:before {
    content: "\25A0";
    float: left;
    color: #E30613;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    text-indent: -1.25rem;
    margin: -1px 0 0;
}

.logo {
    display: flex;
    justify-content: flex-end;
    margin: 1rem;
}

@keyframes slidy {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        opacity: 1;
    }

    60% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

:is(.slider, .slider img:nth-of-type(1)) {
    position: relative;
}

.slider img {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    max-width: 100%;
    animation: slidy 10s linear 0s infinite normal forwards;
    vertical-align: bottom;
}

.slider img:nth-child(2) {
    animation-delay: 5s;
}

.avata {
    background: #e9ebec;
    width: 300px;
}

.avata div {
    padding: 10px 1rem;
}

.flexbox {
    display: flex;
    gap: 20px;
}

.background {
    background: #e9ebec;
    padding: 1rem 4rem;
    margin: 0 -4rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.background p {
    margin-bottom: 0;
    line-height: 28px;
}

.button {
    height: auto;
}

.apply {
    background: #7391a0;
    position: relative;
    width: 235px;
    display: flex;
    justify-content: center;
    padding: 17px 58px 16px 10px;
    transition: color .3s ease;
    color: #FFF !important;
}

.apply:hover {
    background: #3A6483;
}

.apply:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 20%;
    height: 100%;
    background: #3A6483;
}

.apply:after {
    content: "\2794";
    position: absolute;
    top: 18px;
    right: -3px;
    width: 17%;
    height: 100%;
    color: #FFF;
    font-size: 27px;
}

@media all and (max-width:899px) {
    #wrapper {
        margin: 0 auto;
        border: none;
    }

    :is(p, ul) {
        hyphens: auto;
        text-wrap: pretty;
    }

    article {
        padding: 1rem 1rem 0;
    }

    footer {
        padding: 1rem;
    }

    span {
        white-space: nowrap;
    }

    br:not(footer br) {
        display: none;
    }
}

@media all and (max-width:620px) {
    .background {
        justify-content: space-around;
    }

    .background p {
        text-align: center;
    }
}

@media all and (max-width:425px) {
    .flexbox {
        flex-direction: column;
    }
}