* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 21px;
    color: #000;
}

#wrapper {
    margin: 16px auto;
    border: 3px #303290 solid;
    max-width: 833px;
    padding: 20px 50px;
    background: #FFF;
    overflow: hidden;
}

header {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 10px;
}

.kontakt {
    gap: 16px 5px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0 19px 8px;
    align-items: center;
    flex-wrap: wrap;
}

.kontakt p {
    padding-bottom: 5px !important;
    line-height: 20px;
    width: 247px;
    text-align: left;
}

figure {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1px 9px;
    align-items: center;
}

footer {
    margin: 0 44px;
    border-radius: 25px;
    border: 2px solid #b6b6b6;
    padding: 10px 16px 8px;
}

footer p {
    text-align: center !important;
    font-size: 14px;
    line-height: 18px;
}

footer small {
    font-size: 13px;
}

p:not(footer p) {
    padding-bottom: 18px;
    text-align: justify;
    hyphens: auto;
}

span {
    white-space: nowrap;
}

h1 {
    margin: 10px 0 15px;
    font-size: 24px;
    line-height: 1.3;
    text-align: center;
}

h1 span {
    white-space: normal;
    display: block;
    font-size: 21px;
}

h2 {
    font-size: 16px;
    padding-bottom: 12px;
    text-decoration: underline;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #000;
    text-decoration: none;
    white-space: nowrap;
}

ul {
    margin-bottom: 19px;
    list-style: none;
}

ul li {
    padding-left: 52px;
}

li:before {
    content: '\2212';
    float: left;
    font-size: 14px;
    text-indent: -27px;
}

img {
    max-width: 100%;
}

.link {
    color: #00f !important;
}

@media only screen and (max-width:831px) {
    #wrapper {
        border: none;
        padding: 16px;
        margin: 0;
    }

    .kontakt {
        padding: 0;
    }

    footer {
        margin: 15px 0 0;
    }

    :is(p, ul) {
        hyphens: auto;
        text-align: left !important;
        text-wrap: pretty;
    }
}

@media only screen and (max-width:705px) {
    .kontakt {
        flex-direction: column;
    }

    .kontakt p {
        text-align: center !important;
        line-height: 21px;
    }
}

@media only screen and (max-width:635px) {
    header {
        justify-content: center;
    }

    footer {
        margin: 10px 0 0;
    }

    ul li {
        padding-left: 20px;
    }

    li:before {
        text-indent: -20px;
    }
}