.menu__item {
    margin-right: 20px;
    color: var(--avt-muted);
    transition: 200ms ease all;
    position: relative;
}

.menu__item:hover {
    color: var(--avt-ink);
}

.menu__item--active {
    color: var(--avt-ink);
}

.menu__item--active::after {
    content: '';
    position: absolute;
    width: 120%;
    height: 2px;
    background: var(--avt-orange);
    left: calc(0px - 10%);
    border-radius: 3px 3px 0px 0px;
    bottom: -23px;
}

/* Телефон и планшет: меню — панель под шапкой во всю ширину, с затемнением страницы под ней. */
@media screen and (max-width: 989px) {
    .menu {
        transition: max-height 300ms ease, box-shadow 300ms ease;
        max-height: 0;
        overflow: hidden;
        position: absolute;
        width: 100%;
        top: calc(100% + 10px);
        left: 0;
        background: var(--avt-surface);
        box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0);
        clip-path: inset(0 0 -100vmax 0);
        z-index: 10;
    }
    .menu--opened {
        max-height: 1000px;
        border-top: 1px solid var(--avt-line);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08), 0 0 0 100vmax rgba(20, 20, 20, 0.4);
    }
    .menu__item {
        display: flex;
        align-items: center;
        min-height: 52px;
        margin-right: 0;
        padding: 0 var(--avt-gutter);
        font-family: var(--avt-font-head);
        font-size: 16px;
        font-weight: 500;
        color: var(--avt-ink);
        border-bottom: 1px solid var(--avt-line);
        border-left: 3px solid transparent;
        transition: background-color 150ms ease;
    }
    .menu__item:last-child {
        border-bottom: 0;
    }
    .menu__item:hover {
        background: var(--avt-orange-soft);
        color: var(--avt-ink);
    }
    .menu__item--active {
        color: var(--avt-orange-ink);
        border-left-color: var(--avt-orange);
    }
    .menu__item::after,
    .menu__item--active::after {
        content: none;
    }
}
