/* ===== ПЕРЕМЕННЫЕ ===== */
: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 {
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.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) {
    .lang-switcher {
        margin-left: 0;
        margin-top: 0.5rem;
        justify-content: center;
    }
}