body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    color: #333;
    /* Přidaný padding-top, aby obsah nebyl překrytý fixní navigací */
    padding-top: 50px;
}

.hero {
    background: url('hero-bg.jpg') no-repeat center center/cover;
    height: 100vh;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
/* Hero - mobilní úpravy */
@media (max-width: 768px) {
    .hero {
        height: 60vh;
        background-position: top center;
    }
}
.hero {
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll; /* zajistí lepší chování na iOS */
}
/* Opravená navigace - všechny prvky v jedné řadě */
.nav {
    background-color: #222;
    padding: 0;
    height: 50px;
}

.nav.fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.nav-menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center; /* Vertikální centrování */
    height: 100%;
}

.nav-menu li {
    margin: 0 15px 0 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    padding: 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-menu li a:hover {
    color: #ddd;
}

/* Styl pro ikony sociálních sítí - na stejné úrovni jako menu */
.social-icons {
    display: flex;
    align-items: center;
    height: 100%;
}

.social-icons a {
    color: white;
    margin-left: 15px;
    font-size: 18px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.social-icons a:hover {
    color: #ccc;
}

/* Přepracovaný layout pro mobilní zařízení */
@media (max-width: 768px) {
    .nav {
        height: auto;
    }
    
    .nav-container {
        width: 100%;
        flex-direction: row; /* Zachovat horizontální rozložení */
        flex-wrap: wrap; /* Povolit zalomení na menších obrazovkách */
        padding: 10px 20px;
    }
    
    .nav-menu {
        order: 1; /* Menu první */
        margin-right: auto; /* Posunout menu doleva */
        flex-wrap: wrap; /* Povolit zalomení položek menu */
    }
    
    .social-icons {
        order: 2; /* Ikony druhé */
        margin-left: auto; /* Posunout ikony doprava */
    }
}

main {
    padding: 40px 20px;
    max-width: 1000px;
    margin: auto;
}

.services-grid {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.services-grid div {
    text-align: center;
}

.services-grid img {
    width: 50px;
    height: 50px;
}

.cta {
    background-color: #eee;
    text-align: center;
    padding: 30px;
    margin: 40px 0;
}

.cta .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #000;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
}

footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 20px;
}

/* Styly pro kontaktní osoby */
.team-contacts {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.contact-person {
    margin: 0 20px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    min-width: 200px;
}

.contact-person h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.contact-person a {
    color: #fff;
    text-decoration: underline;
}

/* Sociální sítě v patičce */
.footer-social {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.social-links a {
    color: white;
    margin: 0 15px;
    font-size: 24px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ccc;
}
