/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
    --primary: #5865F2;
    --secondary: #404EED;
    --text: #2C2F33;
    --light: #F2F3F5;
    --success: #43B581;
    --warning: #F04747;
}

/* ===== СБРОС ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: #fff;
}

/* ===== НАВИГАЦИЯ ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(44, 47, 51, 0.98);
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.navbar-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.5),
                0 0 20px rgba(88, 101, 242, 0.4);
}
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: white !important;
}

.navbar-logo span {
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}
.navbar-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.navbar-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s;
    white-space: nowrap;
}

.navbar-links a:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

.navbar-links a.active {
    color: white;
    background: var(--primary);
}

.navbar-links .highlight {
    background: var(--primary);
    color: white;
}

.navbar-links .highlight:hover {
    background: var(--secondary);
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.2rem 0.6rem;
}

/* ===== FOOTER ===== */
footer {
    margin-top: 3rem;
    padding: 2rem;
    border-top: 2px solid #e0e2ff;
    text-align: center;
    color: #888;
}

footer a {
    color: #666;
    text-decoration: none;
}

footer a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.footer-links a {
    font-size: 0.9rem;
    transition: color 0.3s;
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn:hover {
    transform: scale(1.05);
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .navbar-toggle {
        display: block;
    }

    .navbar-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(44, 47, 51, 0.98);
        flex-direction: column;
        padding: 1rem;
        gap: 0.3rem;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }

    .navbar-links.open {
        display: flex;
    }

    .navbar-links a {
        width: 100%;
        text-align: center;
        padding: 0.8rem;
    }

    .container {
        padding: 0 1rem;
    }
}

/* ===== ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКОВ ===== */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    padding: 4px;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 32px;
    padding: 0 12px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.7);
    position: relative;
}

.lang-btn:hover {
    color: white;
    background: rgba(255,255,255,0.15);
}

.lang-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.4);
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .navbar-logo-img {
        width: 28px;
        height: 28px;
    }

    .navbar-logo span {
        font-size: 1.1rem;
    }
}

/* ===== ВЫПАДАЮЩЕЕ МЕНЮ "ЕЩЁ" ===== */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-toggle {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.8);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active {
    color: white;
    background: rgba(255,255,255,0.1);
}

.nav-dropdown-toggle .arrow {
    display: inline-block;
    transition: transform 0.3s;
    font-size: 0.7rem;
}

.nav-dropdown-toggle.active .arrow {
    transform: rotate(180deg);
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: rgba(44, 47, 51, 0.98);
    backdrop-filter: blur(10px);
    min-width: 240px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    padding: 0.5rem;
    z-index: 1001;
}


.nav-dropdown-content.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-dropdown-content a {
    display: block;
    padding: 0.6rem 1rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.nav-dropdown-content a:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

/* ===== КНОПКА "ПРИГЛАСИТЬ" В НАВИГАЦИИ ===== */
.nav-invite-btn {
    background: linear-gradient(135deg, #43B581, #3ca374) !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(67, 181, 129, 0.3);
}

.nav-invite-btn:hover {
    background: linear-gradient(135deg, #3ca374, #2f8a5f) !important;
    box-shadow: 0 4px 15px rgba(67, 181, 129, 0.5);
    transform: translateY(-1px);
}