/* ==========================================
   HEADER COMPONENT STYLES
   Дата: 22 ноября 2025
   ========================================== */

.site-header {
    padding: 30px 0;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

/* === LOGO === */
.logo h1 {
    font-weight: 300;
    letter-spacing: 2px;
    font-size: 24px;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #333;
}

.logo h1:hover {
    color: #000;
}

/* === NAVIGATION === */
.main-nav {
    width: 100%;
}

.nav-list {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.nav-list a {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
    padding: 5px 10px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-list a:hover {
    color: #000;
    border-bottom-color: #000;
}

.nav-list a.active {
    color: #000;
    border-bottom-color: #000;
    font-weight: 600;
}

/* === MOBILE LANGUAGE SWITCHER (hidden on desktop) === */
.mobile-lang-switch {
    display: none;
}

/* === DROPDOWN MENU === */
.dropdown {
    position: relative;
}

.dropdown > a::after {
    content: ' ▾';
    font-size: 10px;
    margin-left: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1;
    text-align: left;
    padding: 10px 0;
    margin-top: 10px;
    border-radius: 4px;
}

.dropdown-content li {
    width: 100%;
}

.dropdown-content li a {
    display: block;
    padding: 12px 20px;
    border: none !important;
    text-transform: none;
    font-size: 13px;
}

.dropdown-content li a:hover {
    background-color: #f9f9f9;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* === MOBILE MENU === */
.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .site-header {
        padding: 15px 0;
    }
    
    .header-flex {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 15px;
    }

    .logo h1 {
        margin-bottom: 0;
        font-size: 18px;
    }

    .burger {
        display: flex;
    }

    .main-nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px 0 10px 0;
    }

    .main-nav.open {
        display: block;
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-list li a {
        display: block;
        padding: 15px 20px;
        border: none !important;
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        background: #f9f9f9;
        transform: none;
    }
    
    .dropdown > a::after {
        float: right;
    }
}
