* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

:root {
    --orange: #ff8c00;
    --yellow: #f6ff00e4;
    --green: #2e8b57;
}

.hero {
    height: 100vh;
    background: url("../img/hero.jpg") center/cover no-repeat;
    position: relative;
}

.hero-overlay {
    background: linear-gradient(rgba(255,140,0,0.2), rgba(255,140,0,0.9));
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.logo {
    width: 400px;
    margin-bottom: 20px;
}

.btn {
    margin-top: 20px;
    padding: 12px 30px;
    background: var(--yellow);
    color: black;
    text-decoration: none;
    border-radius: 30px;
}

.section {
    padding: 60px 20px;
    text-align: center;
}



footer {
    background: #aeb1af;
    color: white;
    padding: 30px;
    text-align: center;
}

.sponsors img {
    height: 40px;
    margin: 10px;
}

/* Mobil */
@media (max-width: 768px) {
    .cards {
        flex-direction: column;
    }
}

form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
}

form input, form textarea {
    margin: 10px 0;
    padding: 12px;
}

.menu-button {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 36px;
    background: var(--orange);
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.overlay-menu {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, var(--orange), var(--yellow));
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0);
    transition: 0.3s ease;
    z-index: 1999;
}

.overlay-menu.active {
    transform: scale(1);
}

.overlay-menu ul {
    list-style: none;
    text-align: center;
}

.overlay-menu li {
    margin: 20px 0;
}

.overlay-menu a {
    font-size: 36px;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.overlay-menu a:hover {
    color: var(--yellow);
}

.close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}


.overlay-menu a {
    transition: transform 0.2s;
}

.overlay-menu a:hover {
    transform: scale(1.1);
}

.hero-text {
    max-width: 50%;
    margin: 20px auto;
}

.hero-text p {
    text-align: justify;
    font-size: 18px;
    line-height: 1.6;
}

/* Mobil */
@media (max-width: 768px) {
    .hero-text {
        max-width: 100%;
        padding: 0 20px;
    }

    .hero-text p {
        font-size: 16px;
    }
}
/* Mobil – víc místa dole v hero */
@media (max-width: 768px) {
    .hero-overlay {
        padding-bottom: 60px;
    }
}

.cards {
    display: flex;
    width: 100%;
}

.card {
    position: relative;
    flex: 1;
    aspect-ratio: 4 / 3; /* poměr 4:3 */
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0; /* hranaté rohy */
    background-size: cover;  /* obrázek vyplní kartu */
    background-position: center;
    background-repeat: no-repeat;
}

.card h3 {
    position: relative;
    z-index: 2;
    font-size: 24px;
    text-align: center;
}

/* Overlay */
.card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-size: 200% 200%;
    animation: gradientMove 6s infinite alternate;
    transition: background 0.5s ease;
}

/* Gradient overlay pro každou kartu */
.card1 .card-overlay {
    background: linear-gradient(135deg, rgba(255,140,0,0.2), rgba(255,204,0,0.9));
}
.card2 .card-overlay {
    background: linear-gradient(135deg, rgba(46,139,87,0.2), rgba(173,255,47,0.9));
}
.card3 .card-overlay {
    background: linear-gradient(135deg, rgba(255,69,0,0.2), rgba(255,165,0,0.9));
}

/* Hover efekt – overlay ztmavne */
.card1:hover .card-overlay {
    background: linear-gradient(135deg, rgba(255,140,0,0.2), rgba(255,204,0,0.9));
}
.card2:hover .card-overlay {
    background: linear-gradient(135deg, rgba(46,139,87,0.2), rgba(173,255,47,0.9));
}
.card3:hover .card-overlay {
    background: linear-gradient(135deg, rgba(255,69,0,0.2), rgba(255,165,0,0.9));
}

/* Animace gradientu */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Mobil – karty po sobě */
@media (max-width: 768px) {
    .cards {
        flex-direction: column;
    }

    .card {
        width: 100%;
        aspect-ratio: auto;
        height: 200px;
    }
}
