* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: "Rubik", sans-serif;
    color: white;
    overflow-x: hidden;
    background: url("image (1).png") no-repeat center center fixed;
    background-size: cover;
    min-height: 100%;
}

/* ================= HEADER AREA ================= */

.head-bg {
    position: relative;
    width: 100%;
    height: 45vh;
    z-index: 1;
}

.head-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 160px; 
    background: linear-gradient(to bottom, rgba(0,0,0,0.9) 10%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: 1; 
}

.content-wrapper {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 3;
}

/* ================= HEADER ================= */

.header {
    position: relative;
    z-index: 10;
    padding: 15px 0;
}

.header-logo {
    display: flex;
    align-items: center; 
    gap: 55px; 
    width: 100%; 
    justify-content: flex-start; 
}

.logo {
    height: 70px;
    transform: translateX(-6px);
}

/* ================= DESKTOP NAV ================= */

.nav-container-pc {
    display: flex;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 40px;
    transform: translateX(6px);
}

.nav-list a {
    position: relative;
    text-decoration: none;
    color: white;
    font-size: 1.3rem;
    font-weight: 470;
    display: inline-flex;
    align-items: center;
}

.nav-list i {
    margin-right: 10px;
}

.nav-list a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #868686;
    transition: width 0.25s ease;
}

.nav-list a:hover::after {
    width: 40%;
}

/* ================= HAMBURGER ================= */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 1000001; /* Zvýšeno pro klikatelnost na mobilu */
    position: relative;
}

.hamburger .line {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 4px;
    transition: all 0.4s ease;
}

.hamburger.active .line:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active .line:nth-child(2) { opacity: 0; }
.hamburger.active .line:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ================= MOBILE MENU ================= */

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 30, 30, 0.95);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 999999; /* Musí být nad obsahem */
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-overlay.active {
    transform: translateX(0);
}

.nav-list-mobile {
    list-style: none;
    text-align: center;
}

.nav-list-mobile li {
    margin: 25px 0;
}

.nav-link {
    font-size: 2rem;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

/* ================= FAQ CONTENT ================= */

.content {
    padding: 40px 0 60px;
    text-align: left;
    position: relative;
    z-index: 1;
    margin-top: -40vh; 
}

.faq-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
    color: #fff;
    max-width: 100%;
}

.faq-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(3px);
    z-index: -1;
}

.faq-wrap h1 {
    margin-top: 120px;
    margin-bottom: 50px;
    font-size: 3rem;
    text-transform: uppercase;
    text-align: center;
}

.faq-item {
    width: 100%;
    max-width: 800px;
    margin: 10px 0;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.faq-item:hover { transform: translateY(-8px); }

.faq-question {
    padding: 20px 25px;
    font-weight: bold;
    font-size: 1.4rem;
    cursor: pointer;
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    padding: 0 25px;
    transition: grid-template-rows 0.5s ease, padding 0.5s ease;
}

.faq-answer > div { overflow: hidden; font-size: 1.1rem; line-height: 1.5; }

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
    padding: 20px 25px;
}

.frantax-emote { width: 30px; vertical-align: middle; }

a { color: rgb(192, 61, 192); }

/* ================= MOBILE OPTIMIZACE ================= */

@media (max-width: 768px) {
    .nav-container-pc { display: none; }
    .hamburger { display: flex; }

    /* Na mobilu zrušíme extrémní záporný margin, aby FAQ bylo vidět */
    .content { margin-top: 0; }
    
    .faq-wrap h1 {
        font-size: 2rem;
        margin-top: 60px;
    }

    .header-logo {
        justify-content: space-between;
    }
}