:root {
    --tmave-modra: #1e3c72;
    --svetle-modra: #2a5298;
    --oranzova: #ff4b2b;       
    --seda-pozadi: #f8f9fa;
    --text-hlavni: #333;
    --text-sedy: #666;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--seda-pozadi);
    color: var(--text-hlavni);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; display: block; }
* { box-sizing: border-box; }

.obal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

header {
    background: linear-gradient(90deg, var(--tmave-modra), var(--svetle-modra));
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); 
    position: sticky; 
    top: 0;
    z-index: 1000;
}

.hlavicka-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.6rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

.navigace { display: flex; height: 100%; }

.navigace > li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.navigace > li > a {
    padding: 0 20px;
    color: white;
    font-weight: 500;
    transition: background 0.3s;
    height: 100%;
    display: flex;
    align-items: center;
}

.navigace > li > a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.podmenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
        opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
}

.podmenu li { border-bottom: 1px solid #eee; }

.podmenu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    transition: 0.2s;
}

.podmenu a:hover {
    background-color: #f1f1f1;
    color: var(--tmave-modra);
    padding-left: 25px; 
}

.navigace > li:hover .podmenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-tlacitko { display: none; }
.hamburger { display: none; font-size: 24px; cursor: pointer; color: white; }

main { padding: 40px 0; flex: 1; }

h1 { color: var(--tmave-modra); margin-bottom: 20px; }
h2 { text-align: center; margin: 40px 0 20px; color: #333; }

.galerie, .mrizka {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.karta {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.karta img {
    width: 100%;
    height: auto;         
    object-fit: cover;    
    border-bottom: 1px solid #eee;
}

.galerie .karta img, 
.mrizka .karta img {
    height: 250px;       
    object-fit: contain;  
    padding: 15px;       
    background-color: #fff;
}

.karta:hover img {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}
.obsah-karty { padding: 25px; flex: 1; display: flex; flex-direction: column; }

.karta h3 { margin: 0 0 15px; font-size: 1.3rem; }
.popis { font-size: 0.95rem; color: var(--text-sedy); margin-bottom: 20px; flex: 1; }
.cena { font-size: 1.3rem; font-weight: bold; color: var(--tmave-modra); margin-bottom: 15px; }

.tlacitko {
    display: inline-block;
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-align: center;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tlacitko:hover { transform: scale(1.05); box-shadow: 0 5px 15px rgba(255, 75, 43, 0.4); }
.tlacitko-detail { background: var(--tmave-modra); }
.tlacitko-seda { background: #999; }

input, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    background: #fdfdfd;
}

input:focus, textarea:focus {
    border-color: var(--tmave-modra);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

label { font-weight: 600; font-size: 0.9rem; margin-bottom: 5px; display: block; color: #444; }

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
th, td { padding: 15px; text-align: left; border-bottom: 1px solid #eee; }
th { background-color: #f1f1f1; font-weight: bold; }


footer {
    background-color: #1a1a1a;
    color: #b0b0b0;
    padding-top: 60px;
    padding-bottom: 20px;
    margin-top: auto;
    border-top: 4px solid var(--oranzova);
}

.paticka-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.sloupec h3 {
    color: white;
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sloupec ul li { margin-bottom: 12px; }
.sloupec a { color: #b0b0b0; transition: color 0.3s; }
.sloupec a:hover { color: var(--oranzova); text-decoration: none; }

.tlacitko-zpet {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7); 
    border: 1px solid rgba(255, 255, 255, 0.3); 
    padding: 5px 12px;
    border-radius: 4px;
    margin-right: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tlacitko-zpet:hover {
    color: #fff;
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

@media (max-width: 768px) {
    .tlacitko-zpet {
        padding: 4px 8px;
        font-size: 0.8rem;
        margin-right: 10px;
    }
}


@media (max-width: 768px) {
    .hamburger { display: block; }
    
    .navigace {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--tmave-modra);
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    .navigace > li { width: 100%; justify-content: center; height: auto; }
    .navigace > li > a { padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.1); width: 100%; justify-content: center; }
    
    .menu-tlacitko:checked ~ .navigace { display: flex; }

    .podmenu { 
        position: static; 
        opacity: 1; 
        visibility: visible; 
        transform: none; 
        display: none; 
        text-align: center; 
        background: rgba(0,0,0,0.1); 
        box-shadow: none; 
        color: white;
    }
    .podmenu a { color: white; }
    .navigace > li:hover .podmenu { display: block; }
    
    .mrizka { grid-template-columns: 1fr; }
}


.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.lightbox img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

.lightbox-zavrit {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

@keyframes zoomIn {
    from { transform: scale(0.7); }
    to { transform: scale(1); }
}

.tlacitko {
    border-radius: 30px;
}