@font-face {
    font-display: swap;
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/barlow-v12-latin-regular.eot');
    src: url('../fonts/barlow-v12-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/barlow-v12-latin-regular.woff2') format('woff2'), url('../fonts/barlow-v12-latin-regular.woff') format('woff'), url('../fonts/barlow-v12-latin-regular.ttf') format('truetype'), url('../fonts/barlow-v12-latin-regular.svg#Barlow') format('svg');
}

@font-face {
    font-display: swap;
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/barlow-v12-latin-700.eot');
    src: url('../fonts/barlow-v12-latin-700.eot?#iefix') format('embedded-opentype'), url('../fonts/barlow-v12-latin-700.woff2') format('woff2'), url('../fonts/barlow-v12-latin-700.woff') format('woff'), url('../fonts/barlow-v12-latin-700.ttf') format('truetype'), url('../fonts/barlow-v12-latin-700.svg#Barlow') format('svg');
}

:root {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    color: #000;
    font-family: 'Barlow', Arial, sans-serif;
    font-size: 15px;
    line-height: 21px;
    font-weight: 400;
}

#wrapper {
    max-width: 880px;
    margin: 16px auto;
    background-color: #fff;
}

header {
    border: 3px solid #cccccc;
    border-bottom: navajowhite;
}

article {
    padding: 12px 16px 0;
    border: 3px solid #cccccc;
    border-top: none;
    border-bottom: none;
}

.jus {
    text-align: justify;
}

.background {
    padding: 10px 16px;
    background: #004ea8;
    position: relative;
    border: 3px solid #cccccc;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: absolute;
    bottom: 10px;
    right: 0;
    z-index: 6;
}

p {
    margin-bottom: 17px;
}

.background .logo p {
    text-align: center;
    font-size: 24px;
    margin-right: 40px;
}

:is(.background p, h1) {
    color: #fff;
}

:is(strong, h1, h2, h3, h4) {
    font-weight: 700;
}

h1 {
    margin: 16px -16px 0;
    font-size: 28px;
    line-height: 1.3;
    background: #004ea8;
    padding: 10px 16px 12px;
    border-top: 3px solid #cccccc;
}

h2 {
    margin: 0 0 12px;
    font-size: 33px;
    line-height: 1.2;
    color: #004ea8;
}

h2 span {
    color: #feda00;
    font-size: 38px;
}

h3 {
    margin: 0 -16px 10px;
    font-size: 20px;
    line-height: 25px;
    border-top: 3px solid #cccccc;
    border-bottom: 3px solid #cccccc;
    padding: 6px 16px;
    color: #004ea8;
}

h4 {
    color: #feda00;
    font-size: 20px;
    line-height: 25px;
    margin: 18px 0 0;
}

h4+p {
    margin: 0 0 55px;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

ul {
    padding: 0 0 12px;
    list-style: none;
}

ul li {
    padding-left: 46px;
}

li:before {
    content: '\2022';
    float: left;
    font-size: 23px;
    margin-top: -1px;
    text-indent: -26px;
}

img {
    max-width: 100%;
}

.margin {
    margin: 0 250px 8px 0;
}

.kontakt p {
    text-align: center;
    color: #808080;
    margin: 5px 1rem 1rem;
    font-size: 18px;
}

@media all and (max-width: 879px) {
    #wrapper {
        margin: 0 auto;
        border: none;
    }
    :is(header, article, .background){border: none;}
    header img {
        width: 100%;
    }

    .jus {
        text-align: left;
    }

    .logo p {
        margin-right: 20px;
    }

    :is(p, ul) {
        hyphens: auto;
        text-wrap: pretty;
    }

    ul li {
        padding-left: 20px;
    }

    li:before {
        text-indent: -20px;
    }
}

@media all and (max-width: 767px) {
    .background {
        padding: 16px 16px 20px;
    }

    .logo {
        position: static;
        margin: 16px auto 0;
        gap: 12px;
    }

    .margin {
        margin: 0 0 8px;
    }

    .background .logo p {
        margin-right: 0;
    }

    :is(.background :is(h4, p), h1) {
        text-align: center;
    }

    h4+p {
        margin: 0 0 16px
    }

    h2 {
        font-size: 30px;
    }

    h2 span {
        font-size: 32px;
    }
}