.top-menu {
    grid-area: top-menu;
    padding: 0 40px;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 2;
    position: relative;
    background: #EDE4EF;
}

.header-grid > .top-menu .top-menu-item:not(:first-child) {
    display: none;
}

.top-menu-item {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 15px;
}

.top-menu-item:nth-child(2) {
    padding-left: 0;
}

.top-menu-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.top-menu-link {
    color: rgba(0, 0, 0, 0.6);
    font-size: 12px;
    font-weight: 300;
    text-decoration: none;
    text-wrap: nowrap;
}

.top-menu-item-hide {
    display: none;
}

.child-top-menu-block {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 24px;
    left: -10px;
    width: 300px;
    padding: 5px 10px;
    background: #EDE4EF;
}

.child-menu-link {
    color: rgba(0, 0, 0, 0.6);
    font-size: 12px;
    font-weight: 300;
    text-decoration: none;
    padding: 8px 0;
}

.hidden-top-menu-block {
    position: relative;
    height: 100%;
}

.ellipses {
    color: rgba(0, 0, 0, 0.6);
    width: 30px;
    text-align: center;
    cursor: pointer;
    height: 100%;
}

.hidden-top-menu-items {
    position: absolute;
    background: #EDE4EF;
    max-height: 0;
    transition: max-height 1s;
    overflow: hidden;
}

.hidden-top-menu-block:hover .hidden-top-menu-items {
    max-height: 200px;
}

.hidden-top-menu-block:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.hidden-top-menu-block .top-menu-item {
    padding: 15px 10px;
    cursor: pointer;
}

.hidden-top-menu-block .top-menu-item:not(:first-child) {
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

@media (max-width: 780px) {
    .ellipses {
        display: none;
    }

    .top-menu {
        flex-direction: column;
        align-items: unset;
        gap: unset;
        height: unset;
        background: white;
        margin: 10px 20px;
        width: unset;
        padding: unset;
    }

    .header-grid > .top-menu {
        display: none;
    }

    .top-menu-item {
        padding: 0;
        flex-direction: column;
    }

    .top-menu-item:hover {
        background-color: unset;
    }

    .top-menu-item-hide {
        display: initial;
    }

    .mob-menu-block .top-menu-link {
        display: flex;
        justify-content: space-between;
        align-items: center;

        height: 40px;
        color: black;
        font-weight: 400;
        font-size: 14px;
        border-bottom: 1px solid #F2F2F2;
        width: 100%;
        text-wrap: auto;
    }

    .mob-menu-block .child-top-menu-block {
        position: unset;
        display: flex;
        width: 100%;
        filter: unset;
        padding: 0 5px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 1s;
        box-shadow: unset;
        background: unset;
    }

    .mob-menu-block .top-menu-item.open .child-top-menu-block {
        max-height: 800px;
    }

    .child-top-menu-link {
        font-weight: 400;
        font-size: 14px;
        padding: 10px 0;
        border-bottom: 1px solid #F2F2F2;
        color: var(--gray3-text-color);
    }
}
