/* ------------------------------
   ZÁKLADNÍ NASTAVENÍ
--------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Arial", sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3 {
    font-weight: 700;
    color: #222;
}

section {
    padding: 60px 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ------------------------------
   LOADER
--------------------------------*/
#loader {
    position: fixed;
    inset: 0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ddd;
    border-top-color: #444;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ------------------------------
   TOP BAR
--------------------------------*/
.topbar {
    background: #222;
    color: #fff;
    padding: 8px 20px;
    display: flex;
    gap: 20px;
    font-size: 14px;
    justify-content: center;
}

/* ------------------------------
   MENU
--------------------------------*/
.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: white;
    z-index: 3000; /* musí být pod sticky logem */
}


.menu .logo img {
    height: 60px;
}

.nav {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav li a {
    font-size: 16px;
    font-weight: 600;
    padding: 8px;
    transition: 0.2s;
}

.nav li a:hover {
    color: #0077cc;
}

.mobile-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* ------------------------------
   HERO
--------------------------------*/
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.hero-left iframe {
    width: 100%;
    max-width: 600px;
    height: 340px;
    border: none;
}

.hero-right h1 {
    font-size: 48px;
    line-height: 1.2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ------------------------------
   IKONY (USP)
--------------------------------*/
.icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.icons img {
    width: 120px;
    margin: 0 auto 15px;
}

/* ------------------------------
   PROHLÍDKA
--------------------------------*/
.prohlidka img {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 10px;
}

/* ------------------------------
   SLUŽBY
--------------------------------*/
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 35px;
    text-align: center;
}

.services-grid img {
    width: 120px;
    margin: 0 auto 10px;
}

/* ------------------------------
   STATISTIKY
--------------------------------*/
.stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    text-align: center;
}

.stats .stat {
    font-size: 20px;
}

.stats .count {
    font-size: 48px;
    font-weight: bold;
    color: #0077cc;
}

/* ------------------------------
   CENÍK
--------------------------------*/
.cenik img {
    max-width: 900px;
    margin: 20px auto;
    border-radius: 10px;
    
}

.btn {
    display: inline-block;
    background: #0077cc;
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    margin-top: 20px;
    font-weight: bold;
    transition: 0.2s;
}

.btn:hover {
    background: #005fa3;
}

/* ------------------------------
   REFERENCE
--------------------------------*/
.reference .ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ref {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fafafa;
}

.stars {
    font-size: 22px;
    color: #ffcc00;
}

/* ------------------------------
   PRO FIRMY / PRO TURISTY
--------------------------------*/
.firms, .tourists {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.firms img, .tourists img {
    max-width: 500px;
    border-radius: 10px;
}

/* ------------------------------
   FOOTER
--------------------------------*/
.footer {
    background: #222;
    color: white;
    padding: 50px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.footer img {
    width: 160px;
    margin-top: 10px;
}

.footer h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
}



/* ------------------------------
   ANIMACE
--------------------------------*/
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
}

.zoom-in {
    opacity: 0;
    transform: scale(0.8);
    animation: zoomIn 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1.0s; }
.delay-6 { animation-delay: 1.2s; }
.delay-7 { animation-delay: 1.4s; }
.delay-8 { animation-delay: 1.6s; }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ------------------------------
   RESPONSIVITA
--------------------------------*/
@media (max-width: 768px) {

    .nav {
        display: none;
        flex-direction: column;
        background: white;
        padding: 20px;
        border-top: 1px solid #eee;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-right h1 {
        font-size: 36px;

    }

    .stats {
        flex-direction: column;
        gap: 20px;
    }
}

/* ------------------------------
   STICKY LOGO (zobrazuje se při scrollu)
--------------------------------*/
.sticky-logo {
    position: fixed;
    left: 20px;
    top: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 5000;
}

.sticky-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.menu.scrolled + .sticky-logo,
.sticky-logo.scrolled {
    opacity: 1;
}

.gallery {
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    display: block;
}

.gallery-item img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Střídání modrého pozadí jako v původním webu */
.bg-blue {
    background: #f0f7ff; /* jemná Divi modrá */
}

.reference {
    padding: 80px 0;
    text-align: center;
}

.ref-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 50px;
    letter-spacing: 1px;
}

.ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.ref-card {
    background: #fff;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ref-portrait {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin-bottom: 20px;
}

.stars {
    font-size: 22px;
    color: #ffcc00;
    margin-bottom: 15px;
}

.ref-text {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.ref-author {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}