@charset "utf-8";

:root {
    font-size: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: #333;
    font-family: "Arial", sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    background: #fff;
}

img {
    max-width: 100%;
    height: auto;
}

#wrapper {
	position: relative;
	max-width: 50rem;
	margin: 1rem auto;
	overflow: hidden;
        border: 1px solid #cbcbcb;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: inherit;
    text-decoration: none;
}

a.link {
    color: #285596;
}

h1 {
    font-size: 1.625rem;
    color: #285596;
    margin-bottom: 0.75rem;
}

h2 {
    font-size: 1.2rem;
    color: #285596;
    margin: 1rem 0 0.5rem;
}

h3 {
    font-size: 1.2rem;
}

h4 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

ul {
    margin: 0.5rem 0 1rem 0;
    list-style-type: none;
}

ul li {
    background: url(../images/arrow.png) no-repeat left top;
    padding: 0 0 0 1.5rem;
}


header {
    padding: 1rem;
}

article {
    padding: 1rem 2rem 0;
}

.flex {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.flex section {
    width: 50%;
}

.center {
    text-align: center;
}

.benefits {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    justify-content: center;
}
.benefits .box {
    width: 132px;
}
.benefits h2 {
    line-height: 1.;
}
.benefits p {
    font-size: 13px;
}

.kontakt {
    text-align: center;
    width: 12rem
}

.flex2 {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.button {
    display: flex;
    justify-content: start;
    text-align: center;
}

a.apply {
    background-color: #285596;
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

footer {
    padding: 1rem 2rem;
}

.button2 {
    display: flex;
    justify-content: center;
    text-align: center;
}

a.apply2 {
    background-color: #285596;
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 1rem;
     width: 100%
}

.img {
    display: flex;
    justify-content: end;
}

@media only screen and (max-width: 49.938rem) {
    #wrapper {
        border: none;
        margin: 0 auto;
    }

    p,
    ul {
        -moz-hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
    }
}

@media only screen and (max-width: 48rem) {
    header {
        padding: 1rem;
    }
    
    article {
        padding: 1rem;
    }

    .flex {
        flex-direction: column;
        gap: 0;
    }
    .flex section {
        width: 100%;
    }
    
    footer {
        padding: 1rem;
    }

    .flex2 {
        flex-direction: column;
    }
}
@media only screen and (max-width: 40rem) {
    
    .benefits {
        flex-direction: column;
    }
    .benefits .box {
        width: 100%
    }
    .benefits p {
        text-align: left;
    }
    .benefits h2 {
        text-align: left;
        margin: 0 0 0.5rem 0;
    }

    .img {
        justify-content: center;
    }

    h1 {
        font-size: 1.5rem;
    }
}



