.header {
    height: 104px;
    display: flex;
    align-items: center;
}

.header__logo {
    margin-right: 72px;
}

.header__nav {
    display: flex;
    gap: 32px;
}

.header__nav-item {
    font-weight: 500;
    font-size: 14px;
    line-height: 171%;
    color: #000;

    text-decoration: none;
}

.header__btns {
    margin-left: auto;
    display: flex;
    gap: 12px;
}

.mobile-menu-toggle,
.mobile-menu {
    display: none;
}

.header__avatar-btn {
    background: #949494;
    background-image: url('/img/avatar-default.png');
    background-size: cover;
    background-position: center;
    border: 0.75px solid rgba(0, 0, 0, 0.08);
    border-radius: 9999px;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.header__avatar-wrapper {
    margin-left: 16px;
    position: relative;
}

.header__avatar-menu {
    border: 1px solid #e2e5eb;
    border-radius: 8px;
    padding: 4px;
    width: 266px;
    position: absolute;
    top: 48px;
    right: 0;
    box-shadow: 0 6px 12px 0 rgba(0, 0, 0, 0.1);
    background: #fff;
}

.header__avatar-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px;
    padding: 8px 10px;
    width: 100%;
    height: 40px;
    font-weight: 500;
    font-size: 14px;
    line-height: 143%;
    color: #000;
    font-family: "Inter", serif;
    transition: 0.5s ease;
}

.header__avatar-menu-item:hover {
    background: #f7f8fb;
    color: #3259e8;
    transition: 0.5s ease;
}

.header__socials {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-left: auto;
}

.header__socials svg {
    color: #3259e8;
}

@media (max-width: 1274px) {
    .header__nav {
        display: none;
    }

    .header > .header__socials {
        display: none;
    }

    .menu-actions .header__socials {
        margin-right: auto;
    }

    .header__btns {
        display: none;
    }

    .mobile-menu {
        max-width: 375px;
        width: 100%;
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        height: 100%;
        background-color: #fff;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .mobile-menu.open {
        right: 0; /* Показываем меню */
    }

    .menu-close {
        width: 40px;
        height: 40px;
        border: none;
        cursor: pointer;
        display: block;
        margin-left: auto;

        background-image: url("/img/mobile-menu-close.svg");
        background-repeat: no-repeat;
        background-position: center;
    }

    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
        border: none;
        cursor: pointer;
        margin-left: auto;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-toggle svg {
        fill: #717680;
        min-width: 32px;
        min-height: 22px;
    }

    .mobile-menu__header {
        min-height: 88px;
        padding: 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 24px;
        background-image: url(/img/mobile-decor-line.svg);
        background-position: top;
        background-repeat: no-repeat;
        background-size: 100%;
    }

    .mobile-menu__links {
        padding: 0 16px;
        display: flex;
        flex-direction: column;
        gap: 24px;
        margin-bottom: 48px;
    }

    .mobile-menu__links li {
        list-style: none;
    }

    .mobile-menu__links a {
        font-weight: 500;
        font-size: 18px;
        line-height: 156%;
        color: #000;
    }

    .menu-actions {
        padding: 0 16px;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
}


@media (max-width: 800px) {
    .header__avatar-btn {
        display: none;
    }
}