/* стили base */
:root {
    --primary-color: #7a7aff;
    --danger-color: #ff4a4a;
    --bg-dark: #0f0f1f;
}

body {
    background: var(--bg-dark);
    color: #e0e0ff;
    font-family: Rajdhani, sans-serif;
}

/* Шапка */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgb(15 15 31 / 0.95);
    border-bottom: 2px solid #2f2f4f;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-brand .brand-link {
    font-family: Orbitron, sans-serif;
    font-size: 1.5rem;
    color: #7a7aff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.header-brand .brand-link:hover {
    color: #a0a0ff;
    text-shadow: 0 0 15px rgb(122 122 255 / 0.5);
}

.header-nav {
    display: flex;
    gap: 1.5rem;
}

.header-nav .nav-link {
    color: #7a7aff;
    text-decoration: none;
    font-family: Orbitron, sans-serif;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.header-nav .nav-link:hover {
    background: #2f2f4f;
    color: #a0a0ff;
    transform: translateY(-2px);
}

.language-dropdown {
    position: relative;
    margin-left: 15px;
    cursor: pointer;
    width: 50px;
}

.current-flag {
    display: flex;
    align-items: center;
    padding: 5px;
    border-radius: 5px;
    background: #1a1a2e;
    border: 1px solid #7a7aff;
    box-shadow: 0 0 8px rgb(122 122 255 / 0.3);
    transition: all 0.3s ease;
}

.current-flag:hover {
    background: #2a2a3e;
}

.current-flag .flag-icon {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    object-fit: cover;
}

.dropdown-arrow {
    margin-left: 5px;
    font-size: 0.7rem;
    color: #7a7aff;
}

.flags-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 120px;
    background: #1a1a2e;
    border: 1px solid #7a7aff;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgb(0 0 0 / 0.3);
    z-index: 1000;
    display: none;
    overflow: hidden;
    margin-top: 5px;
}

.flag-option {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    transition: all 0.2s ease;
}

.flag-option:hover {
    background: #2a2a3e;
}

.flag-option .flag-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.flag-option span {
    font-size: 0.9rem;
    color: #e0e0ff;
    font-family: Rajdhani, sans-serif;
}

/* Мобильная адаптация */
@media (width <= 768px) {
    .language-dropdown {
        width: 40px;
    }
    
    .current-flag .flag-icon {
        width: 22px;
        height: 22px;
    }
    
    .flags-dropdown {
        width: 110px;
    }
}

@media (width <= 480px) {
    .language-dropdown {
        width: 35px;
        margin-left: 8px;
    }
    
    .current-flag .flag-icon {
        width: 20px;
        height: 20px;
    }
    
    .flags-dropdown {
        width: 100px;
    }
    
    .flag-option {
        padding: 6px 8px;
    }
    
    .flag-option span {
        font-size: 0.8rem;
    }
}

/* Футер */

.mini-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgb(26 26 26 / 0.9);
    color: #aaa;
    padding: 8px 0;
    font-family: Rajdhani, sans-serif;
    font-size: 0.85rem;
    border-top: 1px solid #333;
    z-index: 100;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-version, .footer-contacts {
    padding: 0 10px;
    letter-spacing: 0.5px;
}


/* Мобильная адаптация */
@media (width <= 768px) {
    :root {
        --header-height: 60px;
        --footer-height: 36px;
    }
    
    .header {
        padding: 0.5rem 1rem;
    }
    
    .header-brand .brand-link {
        font-size: 1.1rem;
    }
    
    .header-nav {
        gap: 0.4rem;
    }
    
    .header-nav .nav-link {
        font-size: 0.82rem;
        padding: 0.3rem 0.6rem;
    }
    
    .content {
        padding: 15px;
        padding-top: calc(var(--header-height) + 15px);
        padding-bottom: calc(var(--footer-height) + 15px);
    }
    
    .mini-footer {
        font-size: 0.7rem;
        padding: 4px 0;
    }
    
    .footer-content {
        padding: 0 10px;
    }

    .language-switcher {
        width: 28px;
        height: 28px;
        margin-left: 10px;
    }
}

@media (width <= 480px) {
    :root {
        --header-height: 50px;
        --footer-height: 32px;
    }
    
    .header {
        padding: 0.4rem 0.8rem;
    }
    
    .header-brand .brand-link {
        font-size: 1rem;
    }
    
    .header-nav .nav-link {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .content {
        padding: 10px;
        padding-top: calc(var(--header-height) + 10px);
        padding-bottom: calc(var(--footer-height) + 10px);
    }
    
    .mini-footer {
        font-size: 0.65rem;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }
    
    .footer-version, .footer-contacts {
        padding: 0;
    }

    .language-switcher {
        width: 24px;
        height: 24px;
        margin-left: 8px;
    }
    
    .flag-icon {
        width: 22px;
        height: 15px;
    }
}

