@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: #212529;
    font-family: "Arial", sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

#wrapper {
    position: relative;
    max-width: 43.125rem;
    margin: 1rem auto;
    overflow: hidden;
    background: #f4f4f3;
    border: 4px solid #74787b;
    padding: 1.25rem;
}

:is(a:link, a:visited, a:active) {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

a:hover {
    text-decoration: underline;
}

article p {
    padding-bottom: 1rem;
}

hr {
    border-style: none;
    border-top: 3px solid #d0d2d0;
    margin: 1rem 0;
}

h1 {
    font-size: 1.75rem;
    line-height: 1.3;
    padding-top: 1.25rem;
}

h2 {
    font-size: 1.1rem;
}

h2::before {
    content: url("../images/quadrat.jpg");
    margin-right: 5px;
}

ul {
    padding: 0 0 1rem 2.5rem;
}

.apply {
    display: flex;
    justify-content: center;
    color: #314e57;
    font-size: 0.875rem;
    padding: 2rem 0;
}

.apply a::before {
    content: url("../images/icon_check.png");
    margin-right: .5rem;
    position: relative;
    top: 3px;
}

.social {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: .5rem .75rem;
    margin-top: .35rem;
}

.social a {
    font-size: 1.75rem;
    line-height: 0;
}

.logo {
    margin: .35rem 3rem 0;
}

footer {
    display: flex;
    align-items: start;
    gap: 1rem 2rem;
    background-color: #2a8991;
    padding: 1.25rem;
    margin: 0 -1.25rem -1.25rem;
}

footer p {
    max-width: 14rem;
}

footer p span {
    color: rgb(116, 120, 123);
}

@media only screen and (max-width: 43.063rem) {

    #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:40rem) {
    footer {
        flex-direction: column;
        align-items: center;
    }

    footer p {
        max-width: none;
        text-align: center;
    }

    .social {
        display: flex;
    }
}

@media only screen and (max-width: 30rem) {
    ul {
        padding-left: 1rem;
    }

    h1 {
        font-size: 1.6rem;
    }

    .apply {
        padding: 1rem 0 2rem;
    }
}