@charset "utf-8";
:root {
    font-size: 16px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    color: #000;
    font: 1em/1.4 "Arial", sans-serif;
}
img {
    max-width: 100%;
    height: auto;
}
#wrapper {
    position: relative;
    max-width: 800px;
    margin: 1rem auto;
    overflow: hidden;
    background: #fff;
    border: solid 0.0625rem #000;
    padding: 1rem;
}

h1 {
    font-size: 1.75rem;
    line-height: 1.3;
    color: #fff;
    margin-bottom: 1rem;
}

h1 span {
    font-size: 1.25rem;
}

h2 {
    font-size: 1.125rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: inherit;
    text-decoration: none;
}

a.link {
    color: rgb(36, 108, 125);
    text-decoration: underline;
}
a.link2 {
    color: rgb(14, 184, 214);
        text-decoration: underline;
}

p {
    margin: 0 0 1rem;
}

ul {
    margin: 0 0 1rem 1.2rem
}

.title {
    background-color: #003056;
    padding: 1rem;
}

.details {
    display: flex;
    flex-wrap: wrap;
    gap: 0 2rem;
}

.details :is(i,p) {
    color: #fff;
}

.benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.benefits div {
    width: 10rem;
}

.grey {
    background-color: #dddddd;
    padding: 1rem;
    margin: 2rem 0;
}

.grey p {
    font-weight: 700;
    color: #003056;
    margin: 0;
}

.flex {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 2rem 0;
}

.flex section {
    width: 50%;
}

.kontakt {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: center;
    margin: 1rem 0;
}

footer {
    background-color: #dddddd;
    padding: 1rem;
}

.flex2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.flex2 img {
    width: 50%;
    margin: 1rem;
}

@media only screen and (max-width: 799px) {
    #wrapper {
        border: none;
        margin: 0 auto;
        padding: 1rem;
    }
    p,
    ul {
        -moz-hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
    }
    h1 {
        font-size: 1.5rem;
        text-align: center;
    }

    h2 {
        font-size: 1rem;
    }

    .flex {
        flex-direction: column;
    }
    .flex section {
        width: 100%;
    }

    .benefits {
        gap: 0 1rem;
    }

    .benefits div {
        width: 30%;
    }


    .kontakt {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .flex2 {
        flex-direction: column-reverse;
    }
}
@media only screen and (max-width: 700px) {
    .benefits div {
        width: 100%;
    }
}