body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Hlavní firemní barva */
:root {
    --main-color: #03a5fc;
}

/* Plynulé posouvání k anchor sekcím a odsazení kvůli fixnímu headeru */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
    /* odsazení pro fixní menu */
}

.text-center {
    text-align: center;
}

a {
    transition: .3s;
}
a:hover {
    color: var(--main-color);;
}

/* Navigační lišta */
.navbar {
    background: var(--main-color);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1199px;
    margin: 0 auto;
    padding: 1em 1em;
}

.navbar .brand {
    font-size: 1.2em;
    font-weight: bold;
    color: white;
}
.navbar .brand a {
    color: white;
    text-decoration: none;
}

.navbar .nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar .nav-links li {
    margin-left: 1.5em;
}

.navbar .nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1em;
}

.navbar .nav-links a:hover {
    text-decoration: underline;
}

/* Mobilní menu (hamburger) */
#menu-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    font-size: 1.5em;
    cursor: pointer;
    user-select: none;
}

/* Responsive úpravy pro mobilní zobrazení navigace */
@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
    }

    .navbar .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 0.5em 0;
        background: var(--main-color);
    }

    .navbar .nav-links li {
        margin: 0.5em 0;
        text-align: center;
    }

    .navbar .nav-links li:first-child {
        margin-top: 1em;
    }

    .navbar .nav-links li:last-child {
        margin-bottom: 1em;
    }

    .nav-toggle-label {
        display: block;
        color: #fff;
    }

    /* Zobrazení menu po kliknutí na hamburger (checkbox hack) */
    #menu-toggle:checked+.nav-links {
        display: flex;
    }
}

/* Obecné nastavení sekcí */
section {
    padding: 3em 1em;
    max-width: 1200px;
    margin: 0 auto;
}
section.fw {
    max-width: 100%;
}
section:nth-of-type(2) {
    padding-top: 6em;
}

section h2 {
    margin-top: 0;
    color: var(--main-color);
    text-align: center;
    margin-bottom: 1em;
}

/* Úvodní sekce */
#intro {
    background: #f4f4f4;
    padding: 6em 1em;
    text-align: center;
}

#intro h1 {
    color: var(--main-color);
    font-size: 2em;
    margin: 0 0 0.5em;
}

#intro p {
    font-size: 1.1em;
    margin-bottom: 1em;
}

#intro .cta-button {
    display: inline-block;
    padding: 0.75em 1.5em;
    background: var(--main-color);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 1em;
}

.contant-btns h3 {
    margin: 0;
}

#intro .cta-button:hover {
    background: #0294e0;
    /* o něco tmavší při hover */
}
.hero {
    position: relative;
    width: 100%;
    min-height: 70vh;           
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #111;            
  }
  
  .hero-slideshow {
    position: absolute;
    inset: 0;
  }
  
  .hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    will-change: opacity;
  }
  .hero-slide.is-active {
    opacity: 1;
  }
  
  .hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(4px) brightness(0.8);  /* blur + mírné ztmavení pro čitelnost textu */
    transform: scale(1.06);
  }
  
  /* Obsah v popředí (ostrý) */
  .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 1rem;
    color: #fff;
    background-color: #0292e044;
    border-radius: 8px;
    max-width: 900px;
  }
  .hero-content h1 {
    margin: 0 0 0.4em;
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: #fff !important;
  }
  .hero-content p {
    margin: 0 auto 1rem;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    line-height: 1.6;
    max-width: 60ch;
    color: #f3f6f9;
  }
  
  /* CTA v barvě značky */
  .cta-button {
    display: inline-block;
    padding: 0.75em 1.5em;
    background: #03a5fc;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
  }
  .cta-button:hover { background: #0294e0; }
  
  /* Pauza na hover – kurzor indikace */
  .hero:hover { cursor: default; }
  
  /* Pokud uživatel preferuje omezit animace */
  @media (prefers-reduced-motion: reduce) {
    .hero-slide { transition: none; }
  }
  

/* Sekce služeb (obsah) */
#services ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#services li {
    background: #e8f5ff;
    /* velmi světlá modrá */
    border: 1px solid #bce0fd;
    border-radius: 5px;
    padding: 1em;
    margin: 0.5em;
    max-width: fit-content;
    box-sizing: border-box;
    text-align: center;
    transition: .3s;
}
#services li * {
    margin: 0;
}
#services li:hover {
    background: #d7ecff;
}

/* Sekce certifikátu */
#certificate img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border: 2px solid #ccc;
    border-radius: 5px;
}

#certificate p {
    text-align: center;
    margin-top: 0.5em;
    font-style: italic;
}

/* Sekce kontakt + mapa */
#contact-area .contact-details {
    flex: 1;
    padding: 1em;
}

#contact-area .map-container {
    flex: 1;
    padding: 1em;
}

#contact-area .map-container .map-placeholder {
    background: #e0e0e0;
    border: 2px dashed #aaa;
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 1.1em;
}

#contact-area .contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

#contact-area .contact-info li {
    margin-bottom: 0.5em;
    font-size: 1.1em;
}

/* Flex box pro kontakt/mapu */
#contact-area .container-flex {
    display: flex;
    flex-wrap: wrap;
}

/* Na mobilu sloupce pod sebe */
@media(max-width: 600px) {
    #contact-area .container-flex {
        flex-direction: column;
    }

    #contact-area .map-container,
    #contact-area .contact-details {
        padding: 0;
    }

    #contact-area .map-container {
        margin-top: 1em;
    }
}

/* Slider (ukázky prací) */
/* Slider – FLEX track, žádné absolute; sekce drží výšku */
.slideshow-container {
    --ratio: 16/9;            /* můžeš změnit např. na 3/2 nebo 4/3 */
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    aspect-ratio: var(--ratio);      /* drží stabilní výšku bez skákání */
    border-radius: 8px;
    background: #f2f2f2;      /* fallback, než se načtou obrázky */
  }
  
  .slides-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease-in-out;   /* přechod zleva doprava */
    will-change: transform;
  }
  
  .slide {
    flex: 0 0 100%;
    height: 100%;
  }
  
  .slide .image {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* vyplní plochu slideru, ořízne okraje dle poměru */
    display: block;
  }
  
  /* Šipky */
  .prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.9em 0.8em;
    color: #fff;
    font-weight: 700;
    font-size: 1.4em;
    border: 0;
    border-radius: 4px;
    background: rgba(0,0,0,0.45);
    user-select: none;
  }
  .prev { left: 10px; }
  .next { right: 10px; }
  .prev:hover, .next:hover { background: rgba(0,0,0,0.75); }
  
  /* Tečky */
  .dots {
    text-align: center;
    margin-top: 10px;
  }
  .dots .dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    border: 0;
    display: inline-block;
  }
  .dots .dot.active, .dots .dot:hover {
    background-color: #717171;
  }
  
  /* Mobil – můžeš snížit poměr, ať slider není moc vysoký */
  @media (max-width: 600px) {
    .slideshow-container { --ratio: 4/3; }
  }
  
/* Patička */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1em 0;
}

footer a {
    color: #fff;
    margin: 0 0.5em;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}