.ivf-header-test {
    gap: 16px;
}

.ivf-current-menu {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: auto;
    justify-content: flex-end;
}

.ivf-current-menu__primary {
    min-width: 0;
    margin-left: auto;
    justify-content: flex-end;
}

.ivf-current-menu__group {
    position: relative;
}

.ivf-current-menu__group-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    line-height: inherit;
    white-space: nowrap;
}

.ivf-current-menu__submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1500;
    min-width: 380px;
    max-width: 520px;
    max-height: 72vh;
    overflow-y: auto;
    padding: 24px 32px 28px;
    background: #292c5e;
    color: #fff;
    box-shadow: 0 18px 36px rgba(0,0,0,.16);
}

.ivf-current-menu__submenu--wide {
    min-width: 540px;
    max-width: 620px;
}

.ivf-current-menu__submenu--compact {
    min-width: 280px;
    max-width: 300px;
}

.ivf-current-menu__submenu a {
    width: 100%;
    min-width: 0;
    white-space: normal !important;
    line-height: 1.35;
    align-items: flex-start !important;
}

.ivf-current-menu__submenu a > img,
.ivf-current-menu__submenu a > svg,
.ivf-current-menu__submenu a > .svg {
    display: block !important;
    flex: 0 0 24px !important;
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    margin-left: auto;
}

.ivf-current-menu__variant-support-link {
    margin-top: 12px !important;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.14);
}

.ivf-current-menu__submenu > div:not(.text-main3) {
    margin-top: 10px;
}


.ivf-current-menu__drawer-head,
.ivf-current-menu__drawer-utilities,
.ivf-current-menu__backdrop {
    display: none;
}

.ivf-current-menu__open {
    flex: 0 0 auto;
}

.ivf-current-menu__language-external {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.ivf-current-menu__appointment {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

@media (max-width: 1599px) {
    .ivf-current-menu__open {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .ivf-current-menu__language-external {
        margin-left: auto;
        padding: 0;
    }

    .ivf-current-menu {
        position: fixed;
        z-index: 1701;
        top: 0;
        right: 0;
        width: min(520px, 100vw);
        height: 100dvh;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        overflow: hidden;
        background: #292c5e;
        color: #fff;
        transform: translateX(102%);
        transition: transform .25s ease;
        box-shadow: -20px 0 50px rgba(0,0,0,.18);
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .ivf-header-test.is-menu-open .ivf-current-menu {
        transform: translateX(0);
    }

    .ivf-current-menu__drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 78px;
        padding: 14px 24px;
        border-bottom: 1px solid rgba(255,255,255,.15);
    }

    .ivf-current-menu__drawer-head .c-header__logo {
        position: static;
        transform: none;
    }

    .ivf-current-menu__close {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .ivf-current-menu__primary {
        display: block !important;
        flex: 1 1 auto;
        width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        overflow-y: auto;
        padding: 8px 24px 22px;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .ivf-current-menu__group,
    .ivf-current-menu__primary > .c-header__nav--item {
        border-bottom: 1px solid rgba(255,255,255,.13);
    }

    .ivf-current-menu__group-button,
    .ivf-current-menu__primary > .c-header__nav--item {
        width: 100%;
        min-height: 56px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 13px 0;
        color: #fff !important;
        opacity: 1 !important;
        font-size: 17px;
        font-weight: 500;
        text-decoration: none;
        cursor: pointer;
    }

    .ivf-current-menu__group-button .ivf-current-menu__chevron {
        width: 24px;
        height: 24px;
    }

    .ivf-current-menu__group > .ivf-current-menu__submenu {
        display: none !important;
    }

    .ivf-current-menu__group.is-open > .ivf-current-menu__submenu {
        display: block !important;
    }

    .ivf-current-menu__group-button .ivf-current-menu__chevron {
        transform: none !important;
    }

    .ivf-current-menu__group.is-open > .ivf-current-menu__group-button .ivf-current-menu__chevron {
        transform: rotate(180deg) !important;
    }

    .ivf-current-menu__submenu {
        position: static !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        max-height: none;
        overflow: visible;
        padding: 8px 16px 18px !important;
        background: rgba(18, 21, 64, .38) !important;
        box-shadow: none !important;
        color: #fff !important;
    }

    .ivf-current-menu__submenu .text-main3 {
        margin-bottom: 8px;
    }

    .ivf-current-menu__submenu a {
        color: #fff !important;
        padding: 10px 0;
        opacity: 1 !important;
        font-size: 16px;
        line-height: 1.35;
    }

    .ivf-current-menu__hub-link {
        border-bottom: 1px solid rgba(255,255,255,.10);
        margin-top: 2px;
        margin-bottom: 4px;
    }

    .ivf-current-menu__drawer-head,
    .ivf-current-menu__drawer-head *,
    .ivf-current-menu__drawer-utilities,
    .ivf-current-menu__drawer-utilities * {
        opacity: 1 !important;
    }

    .ivf-current-menu__submenu > div:not(.text-main3) {
        margin-top: 4px;
    }

    .ivf-current-menu__drawer-utilities {
        display: block;
        padding: 16px 24px 22px;
        border-top: 1px solid rgba(255,255,255,.13);
    }

    .ivf-current-menu__phones {
        display: grid;
        gap: 8px;
        margin-bottom: 16px;
    }

    .ivf-current-menu__phones a {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        color: #fff;
        text-decoration: none;
        font-size: 13px;
    }

    .ivf-current-menu__backdrop {
        position: fixed;
        inset: 0;
        z-index: 1700;
        background: rgba(12,15,44,.55);
    }

    body.ivf-menu-open .ivf-current-menu__backdrop {
        display: block;
    }
}

@media (min-width: 1600px) {
    .ivf-current-menu__open {
        display: none !important;
    }

    .ivf-current-menu__submenu {
        width: auto !important;
    }

    .ivf-current-menu__submenu--wide {
        width: 560px !important;
        min-width: 560px !important;
        max-width: 620px !important;
    }

    .ivf-current-menu__submenu--compact {
        width: 290px !important;
        min-width: 290px !important;
        max-width: 290px !important;
    }

    .ivf-current-menu__drawer-head,
    .ivf-current-menu__drawer-utilities {
        display: none !important;
    }

    
}

[data-ivf-unified-header].is-drawer-mode .ivf-current-menu__group > .ivf-current-menu__submenu {
    display: none !important;
}

[data-ivf-unified-header].is-drawer-mode .ivf-current-menu__group.is-open > .ivf-current-menu__submenu {
    display: block !important;
}

[data-ivf-unified-header].is-drawer-mode .ivf-current-menu__group-button .ivf-current-menu__chevron {
    transform: none !important;
}

[data-ivf-unified-header].is-drawer-mode .ivf-current-menu__group.is-open > .ivf-current-menu__group-button .ivf-current-menu__chevron {
    transform: rotate(180deg) !important;
}

[data-ivf-unified-header].is-desktop-mode.is-keyboard-nav .ivf-current-menu__group:focus-within > .ivf-current-menu__submenu {
    display: block !important;
}

[data-ivf-unified-header].is-desktop-mode.is-keyboard-nav .ivf-current-menu__group:focus-within > .ivf-current-menu__group-button .ivf-current-menu__chevron {
    transform: rotate(180deg);
}

@media (hover: hover) and (pointer: fine) {
    [data-ivf-unified-header].is-desktop-mode .ivf-current-menu__group:hover > .ivf-current-menu__submenu {
        display: block !important;
    }

    [data-ivf-unified-header].is-desktop-mode .ivf-current-menu__group:hover > .ivf-current-menu__group-button .ivf-current-menu__chevron {
        transform: rotate(180deg);
    }
}

@media (max-width: 767px) {
    .ivf-current-menu__appointment {
        display: none !important;
    }

    .ivf-current-menu__open span {
        display: none;
    }
}
