* {
    box-sizing: border-box; /* Zabrání problémům s paddingem/marginem */
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

.top-bar {
    background-color: #e8c8b1;
    padding: 1px 20px;
    text-align: center;
    font-size: 0.9em;
    line-height: 1.2;
}

.top-bar .email {
    margin-left: 20px;
}

.top-bar .email a {
    color: #333;
    text-decoration: none;
}

header {
    background-color: white;
    padding: 10px 10%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
    height: 60px;
    width: auto;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    position: relative;
}

nav li {
    position: relative;
}

nav a {
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: #e0e0e0;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -75px;
    width: 220px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 10px;
    margin: 0;
    z-index: 10;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin-bottom: 10px;
}

.dropdown-menu li:last-child {
    margin-bottom: 0;
}

.dropdown-menu a {
    display: block;
    padding: 5px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
}

.hero {
    border-radius: 0px 100px;
    background-image: url('background.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 843px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.5s;
}

.hero-content {
    max-width: 400px;
    z-index: 1;
    text-align: left;
    margin-left: -60%;
    color: white;
}

.hero h1 {
    font-size: 4em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #5b4840;
}

.hero p {
    font-size: 2em;
    margin-bottom: -40px;
    margin-left: 45px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    color: #5b4840;
}

.button {
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: inline-block;
    margin-left: 120px;
}

.button:hover {
    background-color: #e3e3e3;
    transform: scale(1.05);
}

.services {
    padding: 50px;
    text-align: center;
    margin-left: 75px;
    background-color: #ffffff;
}

.services h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #5b4840;
}

.services p {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #555;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    align-items: center;
    position: relative;
}

.service-item {
    height: 600px;
    width: 413px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Obrázky pro služby – jako v originálu */
.service-item:nth-child(1) {
    margin-top: -50px;
    background-image: url('Sluzby2.png');
}

.service-item:nth-child(2) {
    margin-top: 50px;
    background-image: url('Sluzby1.png');
}

.service-item:nth-child(3) {
    margin-top: -50px;
    background-image: url('Sluzby3.png');
}

.service-item:nth-child(4) {
    margin-top: 0px;
    background-image: url('Sluzby4.png');
}

.service-item:nth-child(5) {
    margin-top: 150px;
    background-image: url('Sluzby5.png');
}

.service-item:nth-child(6) {
    margin-top: 0px;
    background-image: url('Sluzby6.png');
}

.service-title {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 1.2em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.contacts {
    padding: 50px;
    background-color: #ffffff;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.contacts-wrapper {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.contacts-info {
    flex: 1;
    max-width: 400px;
    padding: 20px;
    padding-bottom: 95px;
    background: #e8c8b1;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contacts-info h2 {
    margin-bottom: 15px;
    color: #5b4840;
}

.contacts-info p,
.contacts-info ul {
    margin: 10px 0;
    color: #5b4840;
    font-size: 0.9em;
}

.contacts-info a {
    color: #5b4840;
    text-decoration: none;
}

.contacts-info a:hover {
    text-decoration: underline;
}

.contacts-map {
    flex: 2;
    padding: 20px;
    background: #e8c8b1;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contacts-map h3 {
    margin-bottom: 15px;
    color: #5b4840;
}

footer {
    background-color: #e8c8b1;
    padding: 1px;
    text-align: center;
    color: #5b4840;
    border-top: 1px solid #e0e0e0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* MEDIA QUERIES – ZMĚNY JEN PRO MOBIL/TABLET (max-width: 768px) */
@media (max-width: 768px) {
    .top-bar {
        font-size: 0.8em;
        padding: 5px 10px;
    }

    .top-bar .email {
        margin-left: 10px;
        display: block;
        margin-top: 5px;
    }

    header {
        padding: 10px 15px;
    }

    header .logo img {
        height: 40px;
    }

    /* Hamburger menu – skrýt nav, zobrazit ikonu */
    .hamburger {
        display: block;
        cursor: pointer;
        padding: 5px;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #333;
        margin: 5px 0;
        transition: 0.3s;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px;
    }

    nav li {
        width: 100%;
    }

    nav a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid #eee;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        background-color: #f9f9f9;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .hero {
        height: 80vh;
        border-radius: 0;
    }

    .hero-content {
        max-width: 90%;
        text-align: center;
        margin-left: 0;
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 2em;
        margin-left: 0;
    }

    .hero p {
        font-size: 1.2em;
        margin-bottom: 20px;
        margin-left: 0;
    }

    .button {
        margin-left: 0;
    }

    .services {
        padding: 30px 10px;
        margin-left: 0;
    }

    .services h2 {
        font-size: 1.8em;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        align-items: start;
    }

    .service-item {
        height: 250px;
        width: 100%;
        margin-top: 0 !important; /* Ignorovat nth-child marginy na mobilu */
    }

    .service-title {
        font-size: 1em;
        width: calc(100% - 20px);
        text-align: center;
    }

    .contacts {
        padding: 30px 10px;
    }

    .contacts-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .contacts-info,
    .contacts-map {
        max-width: 100%;
        flex: none;
        padding-bottom: 20px; /* Odstranit extra padding */
    }

    .contacts-map iframe {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5em;
    }

    .services h2 {
        font-size: 1.5em;
    }

    .service-item {
        height: 200px;
    }
}
