/* === RESET / BASE === */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: #020617; /* фикс белого скролла */
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: #e2e8f0;
    line-height: 1.5;

    background: linear-gradient(
        180deg,
        #020617 0%,
        #03071c 50%,
        #020617 100%
    );
}


/* === BACKGROUND LAYERS === */

body::before {
    content: "";
    position: fixed;
    inset: 0;

    background: linear-gradient(
        140deg,
        rgba(147,108,232,0.10) 0%,
        transparent 40%,
        transparent 60%,
        rgba(255,3,26,0.08) 100%
    );

    pointer-events: none;
    z-index: 0;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;

    background: radial-gradient(
        circle at center,
        transparent 60%,
        rgba(0,0,0,0.55) 100%
    );

    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}


/* === TYPOGRAPHY === */

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;
    color: #f1f5f9;
}

p {
    margin: 0;
    color: #cbd5f5;
}


/* ===========================
   NAVBAR (СТАБИЛЬНЫЙ)
=========================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;

    backdrop-filter: blur(10px);
    background: rgba(2, 6, 23, 0.6);
    border-bottom: 1px solid rgba(147,108,232,0.15);
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

/* центр */
.navbar-brand {
    justify-self: center;

    font-size: 17px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #e2e8f0;
}

/* справа */
.lang-switcher {
    justify-self: end;
}


/* ===========================
   LANGUAGE SWITCHER
=========================== */

.lang-switcher form {
    display: flex;
    align-items: center;

    background: rgba(255,255,255,0.06);
    border-radius: 999px;
    padding: 3px;
}

.lang-switcher button {
    border: none;
    background: transparent;

    color: #9ca3af;
    font-size: 12px;
    font-weight: 600;

    padding: 6px 14px;
    border-radius: 999px;

    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-switcher button:hover {
    color: #fff;
}

.lang-switcher button.active {
    background: #886ce4;
    color: #fff;
}

.lang-switcher button:focus,
.lang-switcher button:active,
.lang-switcher button:focus-visible {
    outline: none;
    box-shadow: none;
}


/* ===========================
   SCROLLBAR (ЧИСТЫЙ)
=========================== */

/* Chrome / Edge / Safari */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #886ce4;
    border-radius: 999px;
}

/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: #886ce4 transparent;
}