@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/roboto-v30-latin-300.eot');
    src: url('../fonts/roboto-v30-latin-300.eot?#iefix') format('embedded-opentype'), url('../fonts/roboto-v30-latin-300.woff2') format('woff2'), url('../fonts/roboto-v30-latin-300.woff') format('woff'), url('../fonts/roboto-v30-latin-300.ttf') format('truetype'), url('../fonts/roboto-v30-latin-300.svg#Roboto') format('svg');
}

@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/roboto-v30-latin-500.eot');
    src: local(''), url('../fonts/roboto-v30-latin-500.eot?#iefix') format('embedded-opentype'), url('../fonts/roboto-v30-latin-500.woff2') format('woff2'), url('../fonts/roboto-v30-latin-500.woff') format('woff'), url('../fonts/roboto-v30-latin-500.ttf') format('truetype'), url('../fonts/roboto-v30-latin-500.svg#Roboto') format('svg');
}

@font-face {
    font-display: swap;
    font-family: 'Exo 2';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/exo-2-v21-latin-700.eot');
    src: url('../fonts/exo-2-v21-latin-700.eot?#iefix') format('embedded-opentype'), url('../fonts/exo-2-v21-latin-700.woff2') format('woff2'), url('../fonts/exo-2-v21-latin-700.woff') format('woff'), url('../fonts/exo-2-v21-latin-700.ttf') format('truetype'), url('../fonts/exo-2-v21-latin-700.svg#Exo2') format('svg');
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.3;
    color: #003568;
    font-weight: 300;
}

#wrapper {
    margin: 1rem auto;
    padding: 40px;
    max-width: 980px;
    background: #fff;
    overflow: hidden;
    position: relative;
    border: solid thin #cbcbcb;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0 20px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.75);
}

.flex {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

header {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 23px;
    order: 1;
}

.banner {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

article {
    position: relative;
    flex: 1 1 0;
}

footer {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    order: 2;
    margin: 0px 0 0;
}

footer>p {
    flex: 1 1 0;
    margin: 0 !important;
}

.kontakt {
    width: 312px;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.social {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.social div {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.color {
    color: #00a1e4;
}

.kontakt p {
    font-size: 13px;
}

.kontakt p:nth-of-type(1) {
    margin-bottom: 12px !important;
}

p:not(:last-child) {
    margin: 0 0 16px;
}

:is(h2, h1, h4) {
    font-family: 'Exo 2', Arial, sans-serif;
}

:is(h1, h2, h3, h4, strong) {
    font-weight: 500;
}

h1 {
    margin: 0 0 20px;
    font-size: 40px;
    line-height: 1.1;
    color: #0094da;
}

h1 span {
    font-size: 32px;
}

:is(h2, h4) {
    padding: 5px 10px;
    font-size: 37px;
    color: #fff;
    margin: 0 0 9px;
    display: inline-block;
    background: #00A0E3;
}

h3 {
    font-size: 17px;
    margin: 0 0 13px;
}

h4 {
    margin-bottom: 20px;
    background: #ED1D2C;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #003568;
    text-decoration: none;
    white-space: nowrap;
}

ul {
    margin: 0 0 16px;
}

ul li {
    padding-left: 20px;
    list-style: none;
}

ul li:before {
    position: relative;
    float: left;
    content: "\2022";
    margin-top: -3px;
    line-height: 1;
    text-indent: -20px;
    font-size: 24px;
    font-family: Arial, sans-serif;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

span {
    white-space: nowrap;
}

@media screen and (max-width:979px) {
    #wrapper {
        border: none;
        margin: 0;
        padding: 1rem;
        gap: 0 16px;
    }

    header {
        right: 16px;
    }

    :is(h2, h4) {
        font-size: 40px;
        line-height: 1.2;
    }

    :is(p, ul) {
        hyphens: auto;
        text-wrap: pretty;
    }
}

@media screen and (max-width:874px) {
    header {
        order: 0;
        align-items: center;
    }

    .banner {
        position: static;
        flex-direction: row;
        gap: 0;
        margin: 0 0 16px;
    }

    footer {
        margin: 0;
    }

    h1 {
        font-size: 36px;
    }

    h3 {
        font-size: 18px;
    }

    ul {
        margin: 0 0 1.25rem;
    }
}

@media screen and (max-width:767px) {
    footer {
        flex-direction: column;
    }

    .kontakt {
        width: 100%;
    }
}

@media screen and (max-width:480px) {
    :is(h2, h4) {
        font-size: 32px;
        padding: 5px 10px;
    }

    .banner {
        flex-direction: row;
        margin-bottom: 15px;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    :is(.banner span img, .banner span) {
        width: 100%;
    }
}

@media screen and (max-width:374px) {
    .kontakt {
        flex-direction: column;
        align-items: center;
    }

    .kontakt p {
        text-align: center;
    }
}