/* header */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    font-size: var(--text-lg);
}

.header__inner {
    background: rgb(var(--bg));
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(6px, 2vw, 16px) 22px;
    border-radius: 0 0 25px 25px;
    box-shadow: 2px 6px 8px rgba(0, 0, 0, 0.5);
}

.header__logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(90deg, rgb(var(--accent-green)), rgb(var(--accent-blue)));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header__logo img {
    border: 2px solid rgb(var(--accent-green));
    border-radius: 50%;
    padding: 6px;
}

.header__menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.header__nav {
    position: static;
    transform: none;
    box-shadow: none;
    transition: none;
}

.header__nav-list {
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.header__nav-link {
    color: rgb(var(--muted));
    text-decoration: none;
    transition: color .2s;
}

@media (max-width: 768px) {

    /* Кнопка меню */
    .header__menu-btn {
        display: block;
        justify-content: center;
        z-index: 102;
        background: none;
        border: none;
        cursor: pointer;
    }

    .header__menu-btn img {
        width: 32px;
        height: 32px;
    }

    /* Шторка меню */
    .header__nav {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 260px;
        background: rgb(var(--bg));
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.2);
        transform: translateX(-100%);
        transition: transform 0.35s ease;
        z-index: 101;
        border-radius: 0 20px 20px 0;
    }

    .header__nav.open {
        transform: translateX(0);
    }

    /* Контент меню */
    .header__nav-list {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 80px 24px;
        list-style: none;
        margin: 0;
    }

    .header__nav-link {
        font-size: var(--text-lg);
        color: rgb(var(--fg));
        text-decoration: none;
        font-weight: var(--fw-medium);
    }

    .header__nav-link:hover {
        background: linear-gradient(90deg, rgb(var(--accent-green)), rgb(var(--accent-blue)));
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .header__brand-name {
        display: none;
    }
}

@media (hover: hover) and (pointer: fine) {

    .header__nav-link:hover {
        background: linear-gradient(90deg, rgb(var(--accent-green)), rgb(var(--accent-blue)));
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}