:root {
    --primary-blue: #2160A5; /* Barva z banneru */
    --dark-bg: #1a1a1a;
    --darker-bg: #111111;
    --text-light: #f4f4f4;
    --gray: #333333;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden; /* Zabrání vodorovnému posuvníku na mobilu */
}

/* --- NAVIGACE A LOGO --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background-color: var(--darker-bg);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--primary-blue);
}

.logo { display: block; }
.logo img { 
    max-height: 60px; /* Manuální zmenšení loga */
    width: auto; 
    display: block; 
    /* Efekt okrajů do ztracena (Vignette efekt) */
    -webkit-mask-image: radial-gradient(ellipse at center, black 90%, transparent 100%);
    mask-image: radial-gradient(ellipse at center, black 90%, transparent 100%);
}

.navbar nav { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.navbar nav a { color: #fff; text-decoration: none; text-transform: uppercase; font-size: 14px; transition: color 0.3s;}
.navbar nav a:hover { color: var(--primary-blue); }

/* --- HERO SEKCE (ÚVODNÍ FOTOGRAFIE) --- */
.hero {
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    
    /* Rozepsané vlastnosti pro jistotu zobrazení fotky */
    background-color: #111;
    background-image: linear-gradient(rgba(17, 17, 17, 0.6), rgba(17, 17, 17, 0.8)), url('logo/hero.png');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax efekt na PC */
}

.hero h1 { font-size: 3.5rem; margin-bottom: 20px; text-transform: uppercase; line-height: 1.2; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto;}

.btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--primary-blue);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border: none;
    border-radius: 8px; /* Hladší rohy */
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}
.btn:hover { 
    background-color: #164273; 
    transform: translateY(-2px);
}

/* --- OBECNÉ SEKCE --- */
.section { padding: 80px 20px; max-width: 1200px; margin: auto; text-align: center; }
.section h2 { font-size: 2.5rem; margin-bottom: 40px; color: var(--primary-blue); text-transform: uppercase; }
.dark-bg { background-color: var(--darker-bg); max-width: 100%; }

/* --- SLUŽBY --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.service-card { 
    background-color: var(--gray); 
    padding: 30px; 
    border-top: 4px solid var(--primary-blue); 
    border-radius: 12px; /* Hladší rohy */
    transition: transform 0.3s; 
}
.service-card:hover { transform: translateY(-5px); }

/* --- GALERIE --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
.gallery-item img { 
    width: 100%; 
    height: 250px; 
    object-fit: cover; 
    border: 2px solid var(--gray); 
    border-radius: 12px; /* Hladší rohy */
    transition: border-color 0.3s, transform 0.3s; 
}
.gallery-item img:hover { 
    border-color: var(--primary-blue); 
    transform: scale(1.02);
}

/* --- KONTAKT --- */
.contact-container { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 40px; 
    justify-content: center; 
    align-items: center;
    text-align: left; 
    
    /* Vytvoření ohraničeného kompaktního bloku uprostřed obrazovky */
    background-color: var(--gray);
    padding: 50px;
    border-radius: 16px;
    max-width: 900px; /* Maximální šířka, aby se neroztáhl přes celý monitor */
    margin: 0 auto; /* Vycentrování bloku na střed */
    box-shadow: 0 15px 40px rgba(0,0,0,0.6); /* Moderní stín pod blokem */
}

.contact-info { flex: 1; min-width: 280px; }
.contact-info h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--primary-blue); }
.contact-info p { margin-bottom: 10px; }
.contact-info a { color: var(--primary-blue); text-decoration: none; font-weight: bold; transition: color 0.3s; }
.contact-info a:hover { color: #fff; }

.contact-form { flex: 1.5; display: flex; flex-direction: column; min-width: 280px; width: 100%; gap: 15px; }
.contact-form input, .contact-form textarea {
    padding: 15px;
    /* Tmavší barva políček, aby vynikla na šedém pozadí karty */
    background-color: var(--dark-bg);
    border: 1px solid #444;
    border-radius: 8px; /* Hladší rohy */
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary-blue); }
#formResult { margin-top: 10px; font-weight: bold; text-align: center; }

footer { text-align: center; padding: 20px; background-color: #000; font-size: 13px; color: #888; }


/* =========================================
   PLNÁ KOMPATIBILITA S MOBILNÍMI ZAŘÍZENÍMI
   ========================================= */
@media (max-width: 768px) {
    /* Navigace a Logo */
    .navbar { flex-direction: column; padding: 15px 20px; gap: 15px; }
    .logo img { max-height: 35px; } 
    .navbar nav { gap: 10px; }
    .navbar nav a { font-size: 13px; margin-left: 5px; margin-right: 5px; }

    /* Úvodní sekce (Hero) */
    .hero {
        height: auto;
        min-height: 60vh;
        padding: 60px 20px;
        background-attachment: scroll; /* Vypnutí parallaxu na telefonech */
    }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }

    /* Mezery u sekcí */
    .section { padding: 50px 20px; }
    .section h2 { font-size: 2rem; margin-bottom: 30px; }

    /* Kontakt */
    .contact-container { 
        flex-direction: column; 
        gap: 30px; 
        text-align: center; 
        padding: 30px 20px; /* Na mobilu menší odsazení uvnitř bloku */
    }
    .contact-info { text-align: center; }
}

/* --- ANIMOVANÝ SPINNER PRO GALERII --- */
.gallery-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray);
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}