header .header-main-menu > .header-menu-item {
    position: relative;
}

header .header-menu-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

header .header-menu-chevron {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s ease;
}

header .header-submenu {
    position: absolute !important;
    z-index: 40;
    top: calc(100% + 14px) !important;
    left: 50% !important;
    display: grid !important;
    width: 330px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 9px !important;
    gap: 3px !important;
    border: 1px solid rgba(255, 255, 255, .14) !important;
    border-radius: 8px !important;
    background: #171717 !important;
    box-shadow: 0 18px 38px rgba(0, 0, 0, .38) !important;
    transform: translate(-50%, 8px) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

header .header-submenu::before {
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: 15px;
    content: "";
}

header .header-menu-item--has-submenu:hover > .header-menu-link .header-menu-chevron,
header .header-menu-item--has-submenu:focus-within > .header-menu-link .header-menu-chevron {
    transform: rotate(180deg);
}

header .header-menu-item--has-submenu:hover > .header-submenu,
header .header-menu-item--has-submenu:focus-within > .header-submenu {
    transform: translate(-50%, 0) !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

header .header-submenu > li {
    display: block !important;
    width: 100%;
    margin: 0 !important;
}

header .header-submenu > li > a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 7px 9px;
    border-radius: 6px;
    color: #f5f5f5;
    font-size: 14px;
    line-height: 18px;
    transition: background-color .18s ease, color .18s ease;
}

header .header-submenu > li > a:hover,
header .header-submenu > li > a:focus-visible {
    background: #2a2a2a;
    color: #ff6a2e;
    outline: none;
}

.header-submenu-icon,
.mobile-submenu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 106, 46, .35);
    border-radius: 6px;
    background: #222;
    color: #ff6a2e;
}

.header-submenu-icon svg,
.mobile-submenu-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-submenu-arrow {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .55;
    transition: transform .18s ease, opacity .18s ease;
}

header .header-submenu > li > a:hover .header-submenu-arrow,
header .header-submenu > li > a:focus-visible .header-submenu-arrow {
    transform: translateX(2px);
    opacity: 1;
}

.mobile-menu-group {
    width: 100%;
    margin-top: 5px;
}

.mobile-menu-group-title {
    display: block;
    margin-bottom: 7px;
    color: #aeb3ba;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    text-transform: uppercase;
}

.mobile-menu .mobile-submenu {
    display: grid !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 7px !important;
    gap: 3px !important;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .05);
}

.mobile-menu .mobile-submenu li {
    width: 100%;
}

.mobile-menu .mobile-submenu li a {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 6px 7px;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    line-height: 18px;
}

.mobile-menu .mobile-submenu li a:hover,
.mobile-menu .mobile-submenu li a:focus-visible {
    background: rgba(255, 255, 255, .08);
    color: #ff6a2e;
    outline: none;
}

@media (max-width: 991px) {
    header .header-submenu {
        display: none !important;
    }

    .mobile-menu {
        width: min(360px, 100vw);
        height: 100vh;
        height: 100dvh;
        overflow-y: auto;
        background-color: #0d0d0d;
        background-size: cover;
    }

    .mobile-menu .mobile-menu-list {
        align-content: stretch;
        align-items: stretch;
        width: 100%;
    }
}
