@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/roboto-v30-latin-regular.eot');
    src: local(''), url('../fonts/roboto-v30-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/roboto-v30-latin-regular.woff2') format('woff2'), url('../fonts/roboto-v30-latin-regular.woff') format('woff'), url('../fonts/roboto-v30-latin-regular.ttf') format('truetype'), url('../fonts/roboto-v30-latin-regular.svg#Roboto') format('svg');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/roboto-v30-latin-700.eot');
    src: local(''), url('../fonts/roboto-v30-latin-700.eot?#iefix') format('embedded-opentype'), url('../fonts/roboto-v30-latin-700.woff2') format('woff2'), url('../fonts/roboto-v30-latin-700.woff') format('woff'), url('../fonts/roboto-v30-latin-700.ttf') format('truetype'), url('../fonts/roboto-v30-latin-700.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: 22px;
    color: #231f20;
    font-weight: 400;
}

#wrapper {
    margin: 1rem auto;
    padding: 40px 40px 40px 40px;
    max-width: 1010px;
    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 65px;
}

.flex {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

header {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    order: 1;
}

.banner {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 30px;
}

article {
    position: relative;
    flex: 1 1 0;
}

footer {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    order: 2;
}

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;
    line-height: 15px;
}

.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: 700;
}

h1 {
    margin: 24px 0;
    font-size: 42px;
    line-height: 1.3;
    color: #0094da;
}

h1 small {
    font-size: 28px;
}

:is(h2, h4) {
    padding: 5px;
    font-size: 2.5rem;
    line-height: 2.75rem;
    color: #fff;
    margin: 0 0 9px;
    display: inline-block;
    background: #00A0E3;
}

h3 {
    font-size: 18px;
    line-height: 1.4;
    margin: 0 0 6px;
}

h4 {
    margin-bottom: 25px;
    background: #ED1D2C;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #231f20;
    text-decoration: none;
    white-space: nowrap;
}

ul {
    margin: 0 0 16px;
}

ul li {
    padding-left: 16px;
    list-style: none;
}

ul li:before {
    font-size: 26px;
    position: relative;
    float: left;
    content: "\2022";
    margin-top: -1px;
    text-indent: -16px;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

span {
    white-space: nowrap;
}

@media screen and (max-width:1009px) {
    #wrapper {
        border: none;
        margin: 0;
        padding: 1rem;
        gap: 0 16px;
    }

    header {
        right: 16px;
    }

    h1 {
        margin: 35px 0 30px;
    }

    :is(h2, h4) {
        font-size: 40px;
        line-height: 1.2;
    }

    :is(p, ul) {
        hyphens: auto;
        text-wrap: pretty;
    }

    article br {
        display: none;
    }
}

@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;
    }

    .kontakt p {
        line-height: 18px;
    }

    h1 {
        font-size: 32px;
    }

    h1 small {
        font-size: 21px;
    }

    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;
    }
}

@media screen and (max-width:374px) {
    .kontakt {
        flex-direction: column;
        align-items: center;
    }

    .kontakt p {
        text-align: center;
    }
}