:root {
    --primary-color: #0284c7;    
    --secondary-color: #0f172a; 
    --accent-color: #f59e0b;     
    --bg-color: #f8fafc;         
    --card-bg: #ffffff;         
    --text-muted: #64748b;       
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--secondary-color);
    line-height: 1.6;
    padding: 20px 10px;
}

.lang {
    display: flex;
    justify-content: center; 
    gap: 15px;
    max-width: 800px;
    margin: 0 auto 20px auto;
    padding: 0 10px;
}

.lang a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 6px 12px;
    border-radius: 20px;
    background-color: #e2e8f0;
    transition: all 0.3s ease;
}

.lang a:hover {
    background-color: #cbd5e1;
    color: var(--secondary-color);
}

.lang a.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(2, 132, 199, 0.4);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

h1 {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 10px;
}

h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0369a1;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin: 30px 0 15px 0;
    position: relative;
    padding-left: 12px;
}

h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

p {
    margin-bottom: 15px;
    color: #334155;
}

.container > p {
    font-size: 1.05rem;
    text-align: center;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

ul li {
    background-color: #f8fafc;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    border-left: 3px solid #e2e8f0;
}

ul li::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 10px;
    flex-shrink: 0;
}

h3:contains("Doplňkové") + ul li::before,
h3:nth-of-type(4) + ul li::before {
    content: "" !important;
    margin-right: 0;
}


.container > p:last-of-type {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    background-color: #fffbeb;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    border: 1px dashed #fcd34d;
    margin-top: 10px;
}

.container > p:last-child {
    background-color: #f1f5f9;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

.container > p:last-child a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}
.gallery-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 15px;
    margin: 20px 0 30px 0;
    -webkit-overflow-scrolling: touch;
}

.gallery-slider::-webkit-scrollbar {
    height: 6px;
}
.gallery-slider::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.gallery-slider a {
    flex: 0 0 85%;
    scroll-snap-align: center;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: block;
}

.gallery-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

@media (min-width: 768px) {
    .gallery-slider {
        display: grid; 
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 15px;
        overflow-x: visible;
        scroll-snap-type: none;
        padding-bottom: 0;
    }

    .gallery-slider a {
        flex: none;
        height: 160px;
    }

    .gallery-slider a:hover img {
        transform: scale(1.05);
    }
}

@media (hover: hover) {
    .gallery-item img:hover {
        transform: scale(1.05);
    }
}

@media (max-width: 600px) {
    body {
        padding: 10px 5px;
    }
    
    .container {
        padding: 20px 15px;
        border-radius: 12px;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    ul {
        grid-template-columns: 1fr;
    }
}