:root {
    --hm-t: .22s;
    --hm-top: 110px;
    --hm-nav: 70px;
    --hm-total: calc(var(--hm-top) + var(--hm-nav))
}

.hero-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 6000
}

.hero-menu__bar {
    background: transparent;
    transition: background var(--hm-t) ease, box-shadow var(--hm-t) ease
}

.hero-menu__bar--active {
    background: var(--hero_nav_background_color, #ffffff);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
}

.hero-menu__stack {
    display: flex;
    flex-direction: column
}

.hero-menu__row {
    width: 100%
}

.hero-menu__inner {
    max-width: 1170px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.hero-menu__nav {
    height: var(--hm-nav);
    display: flex;
    align-items: center;
    border-top: 1px solid var(--hero_nav_border_color, rgba(47, 56, 104, 0.23));
    border-bottom: 1px solid var(--hero_nav_border_color, rgba(47, 56, 104, 0.23));
    position: relative;
    z-index: 6060
}

.hero-menu__nav .hero-menu__inner {
    justify-content: center
}

.hero-menu__top {
    height: var(--hm-top);
    display: flex;
    align-items: center;
    color: var(--hero_nav_contact_text_color, #ffffff);
    transition: opacity var(--hm-t) ease, transform var(--hm-t) ease, height var(--hm-t) ease, margin var(--hm-t) ease, padding var(--hm-t) ease;
    will-change: opacity, transform, height
}

.hero-menu__top .hero-menu__brand {
    order: 2
}

.hero-menu__top .hero-menu__contact {
    order: 1
}

.hero-menu__top .hero-menu__contact--left {
    order: 1;
    align-items: flex-start;
    text-align: left;
}

.hero-menu__top .hero-menu__contact--right {
    order: 3;
    align-items: flex-end;
    text-align: right;
}

@media (min-width:1025px) {
    .hero-menu__bar--active .hero-menu__top {
        height: 0;
        opacity: 0;
        transform: translateY(-10px);
        margin: 0;
        padding: 0;
        overflow: hidden
    }
}

.hero-menu__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none
}

.hero-menu__brand-img {
    max-height: 60px;
    width: auto;
    display: block
}

.hero-menu__contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 15px;
    font-weight: 600;
    color: var(--hero_nav_contact_text_color, #ffffff)
}

.hero-menu__contact a {
    font-size: 17px;
    font-weight: 700;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color .18s ease, border-color .18s ease
}

.hero-menu__contact a:hover {
    text-decoration: none;
    color: var(--hero_nav_text_hover_color)
}

.hero-menu__toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 6061
}

.hero-menu__toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--hero_nav_text_color, #ffffff);
    transition: background var(--hm-t) ease
}

.hero-menu__list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0
}

.hero-menu__item {
    position: relative;
    margin-bottom: 0 !important
}

.hero-menu__link {
    display: inline-block;
    padding: 10px 6px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--hero_nav_text_color, #ffffff);
    transition: color var(--hm-t) ease, opacity .18s ease
}

.hero-menu__link--drop {
    display: flex;
    align-items: center
}

.hero-menu__item--phone .hero-menu__link {
    border: 1px solid var(--hero_nav_border_color, rgba(255, 255, 255, .7));
    border-radius: 999px;
    padding: 8px 14px;
    transition: border-color var(--hm-t) ease, background var(--hm-t) ease, color var(--hm-t) ease
}

.hero-menu__link--drop::after {
    content: "";
    display: inline-block;
    margin-left: 6px;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px)
}

.hero-menu__sub {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    min-width: 220px;
    background: var(--hero_nav_background_color, rgba(255, 255, 255, .98));
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
    padding: 8px;
    list-style: none;
    margin: 0;
    z-index: 6100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--hm-t) ease, transform var(--hm-t) ease, visibility 0s linear var(--hm-t)
}

.hero-menu__sub::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px
}

.hero-menu__sub a {
    display: block;
    padding: 10px 12px;
    color: var(--hero_nav_text_color, #000000);
    text-decoration: none;
    border-radius: 6px;
    transition: background .12s ease
}

.hero-menu__sub a:hover {
    background: rgba(0, 0, 0, .06);
    color: var(--hero_nav_text_hover_color)
}

.hero-menu__item--open>.hero-menu__sub {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: .02s
}

.hero-menu__sub-parent {
    display: none
}

.hero-menu__bar--active .hero-menu__link {
    color: var(--hero_nav_text_color)
}

.hero-menu__bar--active .hero-menu__link:hover {
    color: var(--hero_nav_text_hover_color)
}

.hero-menu__bar--active .hero-menu__toggle-bar {
    background: var(--hero_nav_text_color, #000000)
}

.hero-menu__bar--active .hero-menu__contact {
    color: var(--hero_nav_contact_text_color)
}

.hero-menu__bar--active .hero-menu__contact a {
    color: var(--hero_nav_contact_text_color)
}

.hero-menu__bar--active .hero-menu__contact a:hover {
    color: var(--hero_nav_text_hover_color)
}

.hero-menu__bar--active .hero-menu__item--phone .hero-menu__link {
    border-color: var(--hero_nav_border_color)
}

@media (min-width:1025px) {
    .hero-menu__item:hover>.hero-menu__sub {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition-delay: .02s
    }
}

@media (max-width:1024px) {
    .hero-menu {
        --hm-total: var(--hm-nav)
    }

    .hero-menu__toggle {
        display: block
    }

    .hero-menu__top {
        display: flex
    }

    .hero-menu__contact {
        display: none
    }

    .hero-menu__top .hero-menu__inner {
        justify-content: center
    }

    .hero-menu__brand {
        margin: 0 auto
    }

    .hero-menu__list {
        position: absolute;
        top: calc(var(--hm-total) - 1px);
        left: 0;
        right: 0;
        background: var(--hero_nav_background_color, #ffffff);
        padding: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        display: none;
        z-index: 6050
    }

    .hero-menu__list--open {
        display: flex
    }

    .hero-menu__link {
        color: var(--hero_nav_text_color);
        padding: 12px 10px
    }

    .hero-menu__sub {
        position: static;
        box-shadow: none;
        background: transparent;
        padding: 6px;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--hm-t) ease
    }

    .hero-menu__item--open>.hero-menu__sub {
        max-height: 800px
    }

    .hero-menu__item--phone .hero-menu__link {
        border-color: var(--hero_nav_border_color);
        color: var(--hero_nav_contact_text_color);
        text-align: center
    }

    .hero-menu__sub-parent {
        display: block
    }
}
