/* Přepsání pozadí (žlutá barva letáku) */
body {
    background-color: #fbc04a !important;
}

/* =========================================
   HLAVNÍ NADPIS A ANIMACE
   ========================================= */
.sekce-slama-hero {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 60px 20px 20px 20px;
    box-sizing: border-box;
    overflow: visible;
}

.slama-hero-obsah {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    max-width: 1180px;
    width: 100%;
    gap: 60px;
}

.slama-nadpis-kontejner {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: fit-content;
    align-items: flex-start;
    position: relative;
    flex-shrink: 0;
}

.chvejici-se-text {
    height: 125px;
    width: auto;
    display: block;
    object-fit: contain;
    object-position: left center;
    will-change: transform;
    margin: 0;
}

.slama-nadpis-kontejner img:nth-child(1) {
    margin-bottom: -15px;
}

.slama-nadpis-kontejner img:nth-child(3) {
    height: 110px;
}

.slama-animace-obal {
    position: relative;
    width: 100%;
    max-width: 220px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

.balik-slamy {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    display: block;
}

.kasparek-hop {
    position: absolute;
    z-index: 1;
    width: 80%;
    bottom: 35%;
    animation: kasparek-skace 4s cubic-bezier(0.28, 0.84, 0.42, 1) infinite;
}

@keyframes kasparek-skace {
    0%, 15%, 85%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-250px);
    }
}

/* =========================================
   SEKCE PODNADPIS
   ========================================= */
.sekce-slama-podnadpis {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 20px 40px 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.kontejner-podnadpis {
    text-align: center;
    color: #ffffff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 1180px;
    width: 100%;
}

.kontejner-podnadpis h2 {
    color: #ffffff;
    font-size: 38px;
    font-weight: 900;
    letter-spacing: 1px;
    margin: 0 0 10px 0;
    line-height: 1.25;
    text-transform: uppercase;
}

/* =========================================
   SEKCE TERMÍNY A KRÁVA (TUR)
   ========================================= */
.sekce-slama-terminy {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 20px 40px 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.kontejner-terminy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1180px;
    width: 100%;
}

.slama-krava-obal {
    position: relative;
    width: 100%;
    max-width: 320px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.slama-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    display: block;
}

.krava-animace {
    position: absolute;
    z-index: 1;
    width: 50%;
    top: 5%;
    left: -15%;
    transform-origin: bottom right;
    animation: krava-vykukuje 7s ease-in-out infinite;
}

@keyframes krava-vykukuje {
    0%, 15%, 85%, 100% {
        transform: translate(80%, 50%) rotate(0deg);
    }
    30% {
        transform: translate(-20%, -15%) rotate(0deg);
    }
    38% {
        transform: translate(-20%, -15%) rotate(-12deg);
    }
    46% {
        transform: translate(-20%, -15%) rotate(8deg);
    }
    54% {
        transform: translate(-20%, -15%) rotate(-12deg);
    }
    62% {
        transform: translate(-20%, -15%) rotate(8deg);
    }
    70%, 75% {
        transform: translate(-20%, -15%) rotate(0deg);
    }
}

.terminy-texty {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #000000;
}

.terminy-texty .velky-termin {
    color: #000000;
    font-size: 38px;
    font-weight: 900;
    letter-spacing: 1px;
    margin: 0 0 8px 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.terminy-texty h2:last-of-type {
    margin-bottom: 30px;
}

.tlacitko-goout {
    display: inline-block;
    background-color: #f47216;
    color: #ffffff !important;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 8px;
    transition: transform 0.15s ease, background-color 0.15s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tlacitko-goout:hover {
    background-color: #d66110;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* =========================================
   SEKCE GALERIE FOTEK (FLEXBOX)
   ========================================= */
.sekce-slama-galerie {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 20px 40px 20px;
    box-sizing: border-box;
}

.kontejner-galerie {
    display: flex;
    flex-wrap: wrap; /* Umožní zalomení na další řádek, pokud se nevejdou */
    justify-content: center; /* Vycentruje fotky v řádku */
    gap: 20px;
    max-width: 1180px;
    width: 100%;
}

.slama-foto {
    height: 350px; /* Pevná výška - můžeš zkusit 400px, 350px je hezký kompromis */
    width: auto; /* Dopočítá si správnou šířku bez ořezání */
    max-width: 100%; /* Pojistka pro extra úzké monitory */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* =========================================
   SEKCE KUTÁLEJÍCÍ SE KOLO SLÁMY
   ========================================= */
.sekce-slama-kolo {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 20px 40px 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.kontejner-kolo {
    max-width: 1180px;
    width: 100%;
    position: relative;
    height: 180px;
}

.kolo-pohyb {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: center center;
    animation: kutaleni-kolo 6s linear infinite alternate;
}

.kolo-img {
    height: 180px;
    width: auto;
    display: block;
}

@keyframes kutaleni-kolo {
    0% {
        left: 100%;
        transform: translateX(-100%) rotate(0deg);
    }
    100% {
        left: 0%;
        transform: translateX(0%) rotate(-720deg);
    }
}

/* =========================================
   SEKCE PARK 360
   ========================================= */
.sekce-slama-park360 {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 20px 80px 20px;
    box-sizing: border-box;
}

.kontejner-park360 {
    text-align: center;
    width: 100%;
    max-width: 1180px;
}

.park360-img {
    width: 250px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* =========================================
   RESPONZIVITA PRO MOBILY A TABLETY
   ========================================= */
@media (max-width: 768px) {
    .sekce-slama-hero {
        padding: 30px 15px 15px 15px;
    }
    
    .slama-hero-obsah {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .slama-nadpis-kontejner {
        align-items: center;
        gap: 15px;
    }
    
    .chvejici-se-text {
        height: 70px;
        object-position: center;
    }

    .slama-nadpis-kontejner img:nth-child(1) { margin-bottom: -5px; }
    .slama-nadpis-kontejner img:nth-child(3) { height: 60px; }
    .slama-animace-obal { max-width: 160px; }
    
    @keyframes kasparek-skace {
        0%, 15%, 85%, 100% { transform: translateY(0); }
        50% { transform: translateY(-170px); }
    }

    .sekce-slama-podnadpis { padding: 10px 15px 30px 15px; }
    .kontejner-podnadpis h2 {
        font-size: 18px;
        letter-spacing: 0.5px;
        margin-bottom: 6px;
        line-height: 1.3;
    }

    .sekce-slama-terminy { padding: 10px 15px 30px 15px; }
    .kontejner-terminy {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .slama-krava-obal { max-width: 220px; }
    .terminy-texty .velky-termin { font-size: 22px; margin-bottom: 6px; }
    .terminy-texty h2:last-of-type { margin-bottom: 20px; }
    
    .tlacitko-goout {
        font-size: 16px;
        padding: 12px 20px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Mobilní verze galerie - fotky hezky pod sebou na celou šířku */
    .sekce-slama-galerie { padding: 10px 15px 20px 15px; }
    .kontejner-galerie {
        flex-direction: column;
        gap: 15px;
    }
    .slama-foto {
        width: 100%;
        height: auto; /* Na mobilu se výška sama dopočítá podle šířky obrazovky */
    }

    .sekce-slama-kolo { padding: 10px 15px 30px 15px; }
    .kontejner-kolo { height: 120px; }
    .kolo-img { height: 120px; }

    @keyframes kutaleni-kolo {
        0% { left: 100%; transform: translateX(-100%) rotate(0deg); }
        100% { left: 0%; transform: translateX(0%) rotate(-360deg); }
    }

    .sekce-slama-park360 { padding: 20px 15px 50px 15px; }
}

/* =========================================
   PŘEBARVENÍ HLAVIČKY A PATIČKY
   ========================================= */
.hlavni-navigace {
    background-color: #775e30 !important;
    border-bottom-color: #fbc04a !important;
}

@media (max-width: 768px) {
    .nav-menu {
        background-color: #775e30 !important;
        border-bottom-color: #fbc04a !important;
    }
}

.sekce-paticka .kopecek-svg path { fill: #775e30 !important; }
.sekce-partneri { background-color: #775e30 !important; }
.sekce-paticka .partneri-nadpis {
    color: #fbc04a !important;
    border-bottom-color: rgba(251, 192, 74, 0.3) !important;
}
