﻿@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/roboto-v32-latin-regular.eot');
    src: url('../fonts/roboto-v32-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/roboto-v32-latin-regular.woff2') format('woff2'), url('../fonts/roboto-v32-latin-regular.woff') format('woff'), url('../fonts/roboto-v32-latin-regular.ttf') format('truetype'), url('../fonts/roboto-v32-latin-regular.svg#Roboto') format('svg');
}

@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/roboto-v32-latin-700.eot');
    src: url('../fonts/roboto-v32-latin-700.eot?#iefix') format('embedded-opentype'), url('../fonts/roboto-v32-latin-700.woff2') format('woff2'), url('../fonts/roboto-v32-latin-700.woff') format('woff'), url('../fonts/roboto-v32-latin-700.ttf') format('truetype'), url('../fonts/roboto-v32-latin-700.svg#Roboto') format('svg');
}

:root {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    color: #004576;
    line-height: 1.25rem;
    font-size: 1rem;
    font-weight: 400;
}

#wrapper {
    position: relative;
    max-width: 600px;
    margin: 1rem auto;
    border: 1px solid #000;
    overflow: hidden;
    background: #fff url(../images/background.jpg) no-repeat;
    height: 598px;
}

header img {
    opacity: 0;
}

.text p {
    position: absolute;
    top: 206px;
    left: 18px;
    text-align: center;
    width: 200px;
    font-weight: bold;
    line-height: 1.3;
}

article {
    padding: 0 30px;
}

.font {
    font-size: 21px;
    line-height: 26px;
    color: #FFF;
}

footer {
    padding: 21px 41px 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer p {
    margin: 0;
}

:is(strong, h1) {
    font-weight: 700;
}

h1 {
    margin: 3.75rem 0 12px;
    font-size: 30px;
    line-height: 31px;
    color: #ffff00;
}

p {
    margin: 0 0 1rem;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #004576;
    white-space: nowrap;
    text-decoration: none;
}

img {
    max-width: 100%;
}

@media all and (max-width:599px) {
    #wrapper {
        margin: 0 auto;
        border: none;
        background: #FFF url(../images/background-mobile.jpg) no-repeat;
        background-size: cover;
        height: auto;
    }

    :is(p, h1) {
        hyphens: auto;
        text-wrap: pretty;
    }

    header img {
        opacity: 1;
        vertical-align: bottom;
    }

    .text p {
        position: static;
        margin: 0;
    }

    .text {
        display: flex;
        align-items: center;
        background: #FEF200;
        justify-content: center;
        height: 160px;
        border-radius: 50%;
        width: 160px;
        position: absolute;
        top: 120px;
        font-size: 3.275vw;
        left: 1rem;
    }

    br:not(footer br, .text p br) {
        display: none;
    }

    article {
        padding: 0 1rem;
    }

    footer {
        padding: 0;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .kontakt {
        background: #FEF200;
        padding: 1rem;
    }

    .logo {
        margin: 1rem auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

@media all and (max-width:480px) {
    .text {
        position: static;
        width: auto;
        height: auto;
        border-radius: 0;
        padding: 1rem;
        margin: 0 -1rem;
        font-size: 1rem;
    }

    .text br {
        display: none;
    }

    h1 {
        margin-top: 1rem
    }

    .kontakt {
        width: 100%;
    }
}