/* =========================================================
   UkraineType Navigation v2
   Shared product navigation
   ========================================================= */

/*
 * This layer intentionally overrides the legacy
 * full-site header lock. Scope is restricted to ut-v2.
 */

body.ut-v2 .utNav {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;

    height: auto !important;
    min-height: 68px !important;

    border-bottom:
        1px solid rgba(13, 38, 68, .09) !important;

    background:
        rgba(255, 255, 255, .91) !important;

    box-shadow:
        0 1px 0 rgba(255, 255, 255, .72),
        0 8px 32px rgba(11, 30, 56, .035) !important;

    backdrop-filter:
        blur(18px)
        saturate(145%);

    -webkit-backdrop-filter:
        blur(18px)
        saturate(145%);
}


body.ut-v2 .utNav > .shell {
    width:
        min(
            1280px,
            calc(100% - 48px)
        ) !important;

    max-width: none !important;

    height: auto !important;
    min-height: 68px !important;

    margin-inline: auto !important;
    padding: 0 !important;
}


body.ut-v2 .utNavInner {
    min-height: 68px !important;
    height: auto !important;

    display: grid !important;

    grid-template-columns:
        208px
        minmax(0, 1fr)
        auto !important;

    align-items: center !important;

    gap: 26px !important;
}


/* =========================================================
   Brand
   ========================================================= */

body.ut-v2 .utBrand {
    min-width: 0 !important;

    display: grid !important;

    grid-template-columns:
        32px
        minmax(0, 1fr);

    grid-template-rows:
        auto
        auto;

    column-gap: 10px !important;
    row-gap: 1px !important;

    align-items: center !important;

    color: #0c2037 !important;
    text-decoration: none !important;
}


body.ut-v2 .utBrand::before {
    content: "";

    grid-column: 1;
    grid-row: 1 / 3;

    width: 32px;
    height: 32px;

    border-radius: 9px;

    background:
        linear-gradient(
            180deg,
            #0864d8 0 50%,
            #ffd84d 50% 100%
        );

    box-shadow:
        0 6px 18px rgba(7, 91, 199, .15);
}


body.ut-v2 .utBrand strong {
    grid-column: 2;
    grid-row: 1;

    margin: 0 !important;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif !important;

    font-size: 18px !important;
    line-height: 1.05 !important;

    font-weight: 790 !important;

    letter-spacing: -.045em !important;

    color: #0c2037 !important;
}


body.ut-v2 .utBrand small {
    grid-column: 2;
    grid-row: 2;

    margin: 0 !important;

    overflow: hidden;

    color: #718197 !important;

    font-size: 8px !important;
    line-height: 1.15 !important;

    font-weight: 700 !important;

    letter-spacing: .055em !important;

    white-space: nowrap !important;

    text-overflow: ellipsis;
}


/* =========================================================
   Desktop navigation
   ========================================================= */

body.ut-v2 .utNavLinks {
    min-width: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 2px !important;

    margin: 0 !important;
}


body.ut-v2 .utNavLinks a {
    position: relative !important;

    min-height: 38px;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    padding: 0 11px !important;

    border-radius: 9px;

    color: #516276 !important;

    font-size: 11.5px !important;
    line-height: 1 !important;

    font-weight: 650 !important;

    letter-spacing: -.012em !important;

    white-space: nowrap !important;

    text-decoration: none !important;

    transition:
        color .18s ease,
        background-color .18s ease,
        transform .18s ease !important;
}


body.ut-v2 .utNavLinks a::after {
    content: none !important;
}


body.ut-v2 .utNavLinks a:hover {
    color: #0c2037 !important;

    background:
        rgba(7, 91, 199, .055) !important;
}


body.ut-v2 .utNavLinks a:active {
    transform: translateY(1px);
}


body.ut-v2 .utNavLinks a.active {
    color: #075bc7 !important;

    background:
        rgba(7, 91, 199, .075) !important;
}


/* =========================================================
   Right-side tools
   ========================================================= */

body.ut-v2 .utNavTools {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;

    gap: 8px !important;
}


body.ut-v2 .utLanguage {
    min-height: 38px !important;
    height: 38px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 6px !important;

    padding: 0 10px !important;

    border:
        1px solid rgba(14, 42, 74, .10);

    border-radius: 10px;

    background:
        rgba(255, 255, 255, .64);

    color: #42566e !important;

    font-size: 10.5px !important;
    font-weight: 720 !important;

    line-height: 1 !important;

    white-space: nowrap !important;

    text-decoration: none !important;

    transition:
        color .18s ease,
        border-color .18s ease,
        background-color .18s ease,
        box-shadow .18s ease !important;
}


body.ut-v2 .utLanguage svg {
    width: 15px !important;
    height: 15px !important;

    fill: none !important;

    stroke: currentColor !important;
    stroke-width: 1.55 !important;

    stroke-linecap: round;
    stroke-linejoin: round;
}


body.ut-v2 .utLanguage:hover {
    border-color:
        rgba(7, 91, 199, .18);

    background: #fff;

    color: #075bc7 !important;

    box-shadow:
        0 8px 22px rgba(11, 30, 56, .065);
}


body.ut-v2 .utNavCta {
    min-height: 40px !important;
    height: 40px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 8px !important;

    padding: 0 15px !important;

    border:
        1px solid #075bc7 !important;

    border-radius: 11px !important;

    background:
        linear-gradient(
            135deg,
            #0864d8,
            #064fae
        ) !important;

    color: #fff !important;

    font-size: 11px !important;
    line-height: 1 !important;

    font-weight: 760 !important;

    letter-spacing: -.01em !important;

    white-space: nowrap !important;

    text-decoration: none !important;

    box-shadow:
        0 10px 24px rgba(7, 91, 199, .18) !important;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        filter .18s ease !important;
}


body.ut-v2 .utNavCta:hover {
    border-color: #064fae !important;

    background:
        linear-gradient(
            135deg,
            #075bc7,
            #044696
        ) !important;

    transform: translateY(-1px) !important;

    box-shadow:
        0 14px 30px rgba(7, 91, 199, .23) !important;

    filter: saturate(1.04);
}


body.ut-v2 .utNavCta span {
    display: inline-block;

    transition:
        transform .18s ease !important;
}


body.ut-v2 .utNavCta:hover span {
    transform: translateX(2px);
}


/* =========================================================
   Mobile menu
   ========================================================= */

body.ut-v2 .utMobileMenu {
    position: relative;

    display: none !important;
}


body.ut-v2 .utMobileMenu > summary {
    width: 42px;
    height: 42px;

    display: grid;
    align-content: center;
    justify-items: center;

    gap: 4px;

    padding: 0;

    border:
        1px solid rgba(14, 42, 74, .11);

    border-radius: 11px;

    background:
        rgba(255, 255, 255, .76);

    cursor: pointer;

    list-style: none;

    transition:
        border-color .18s ease,
        background-color .18s ease,
        box-shadow .18s ease;
}


body.ut-v2 .utMobileMenu > summary::-webkit-details-marker {
    display: none;
}


body.ut-v2 .utMobileMenu > summary::marker {
    content: "";
}


body.ut-v2 .utMobileMenu > summary span {
    width: 17px;
    height: 1.5px;

    display: block;

    border-radius: 999px;

    background: #263e58;

    transition:
        transform .2s ease,
        opacity .18s ease;
}


body.ut-v2 .utMobileMenu > summary:hover {
    border-color:
        rgba(7, 91, 199, .20);

    background: #fff;

    box-shadow:
        0 8px 22px rgba(11, 30, 56, .065);
}


body.ut-v2 .utMobileMenu[open] > summary span:nth-child(1) {
    transform:
        translateY(5.5px)
        rotate(45deg);
}


body.ut-v2 .utMobileMenu[open] > summary span:nth-child(2) {
    opacity: 0;
}


body.ut-v2 .utMobileMenu[open] > summary span:nth-child(3) {
    transform:
        translateY(-5.5px)
        rotate(-45deg);
}


body.ut-v2 .utMobileMenuPanel {
    position: absolute;

    top: calc(100% + 10px);
    right: 0;

    z-index: 1010;

    width:
        min(
            360px,
            calc(100vw - 28px)
        );

    padding: 8px;

    border:
        1px solid rgba(14, 42, 74, .11);

    border-radius: 16px;

    background:
        rgba(255, 255, 255, .97);

    box-shadow:
        0 24px 64px rgba(8, 27, 52, .15);

    backdrop-filter: blur(20px);

    -webkit-backdrop-filter: blur(20px);

    transform-origin: top right;
}


body.ut-v2 .utMobileMenu[open] .utMobileMenuPanel {
    animation:
        utNavPanelIn
        .18s
        ease-out
        both;
}


body.ut-v2 .utMobileMenuPanel a {
    min-height: 44px;

    display: flex;
    align-items: center;

    padding: 0 12px;

    border-radius: 9px;

    color: #334a63 !important;

    font-size: 13px;
    line-height: 1.2;

    font-weight: 650;

    text-decoration: none;

    transition:
        color .16s ease,
        background-color .16s ease;
}


body.ut-v2 .utMobileMenuPanel a:hover {
    background:
        rgba(7, 91, 199, .06);

    color: #075bc7 !important;
}


@keyframes utNavPanelIn {
    from {
        opacity: 0;

        transform:
            translateY(-5px)
            scale(.985);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* =========================================================
   Compact desktop / tablet
   ========================================================= */

@media (max-width: 1120px) {

    body.ut-v2 .utNav > .shell {
        width:
            calc(100% - 36px) !important;
    }

    body.ut-v2 .utNavInner {
        grid-template-columns:
            190px
            minmax(0, 1fr)
            auto !important;

        gap: 15px !important;
    }

    body.ut-v2 .utNavLinks a {
        padding-inline: 8px !important;

        font-size: 10.5px !important;
    }

    body.ut-v2 .utLanguage {
        padding-inline: 8px !important;
    }

    body.ut-v2 .utNavCta {
        padding-inline: 12px !important;

        font-size: 10px !important;
    }
}


@media (max-width: 980px) {

    body.ut-v2 .utNavInner {
        grid-template-columns:
            minmax(0, 1fr)
            auto
            auto !important;
    }

    body.ut-v2 .utNavLinks {
        display: none !important;
    }

    body.ut-v2 .utMobileMenu {
        display: block !important;
    }
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 820px) {

    body.ut-v2 .utNav {
        min-height: 66px !important;
    }

    body.ut-v2 .utNav > .shell {
        width:
            calc(100% - 26px) !important;

        min-height: 66px !important;
    }

    body.ut-v2 .utNavInner {
        min-height: 66px !important;

        grid-template-columns:
            minmax(0, 1fr)
            auto !important;

        gap: 12px !important;
    }

    body.ut-v2 .utNavTools {
        display: none !important;
    }

    body.ut-v2 .utBrand strong {
        font-size: 17px !important;
    }

    body.ut-v2 .utBrand small {
        font-size: 7.5px !important;
    }
}


@media (max-width: 460px) {

    body.ut-v2 .utNav > .shell {
        width:
            calc(100% - 20px) !important;
    }

    body.ut-v2 .utBrand {
        grid-template-columns:
            29px
            minmax(0, 1fr);
    }

    body.ut-v2 .utBrand::before {
        width: 29px;
        height: 29px;

        border-radius: 8px;
    }

    body.ut-v2 .utBrand strong {
        font-size: 16px !important;
    }

    body.ut-v2 .utBrand small {
        display: none;
    }

    body.ut-v2 .utMobileMenuPanel {
        right: -2px;

        width:
            min(
                340px,
                calc(100vw - 20px)
            );
    }
}


/* =========================================================
   Accessibility
   ========================================================= */

body.ut-v2 .utNav :where(
    a,
    summary
):focus-visible {
    outline:
        3px solid rgba(7, 91, 199, .24);

    outline-offset: 3px;
}


@media (prefers-reduced-motion: reduce) {

    body.ut-v2 .utNav *,
    body.ut-v2 .utNav *::before,
    body.ut-v2 .utNav *::after {
        animation-duration:
            .01ms !important;

        transition-duration:
            .01ms !important;
    }
}


/* =========================================================
   Desktop Visual QA Refinement
   ========================================================= */

@media (min-width: 981px) {

    body.ut-v2 .utNav {
        min-height: 72px !important;
    }

    body.ut-v2 .utNav > .shell,
    body.ut-v2 .utNavInner {
        min-height: 72px !important;
    }

    body.ut-v2 .utNavInner {
        grid-template-columns:
            218px
            minmax(0, 1fr)
            auto !important;

        gap: 28px !important;
    }

    body.ut-v2 .utBrand {
        grid-template-columns:
            34px
            minmax(0, 1fr) !important;

        column-gap: 11px !important;
    }

    body.ut-v2 .utBrand::before {
        width: 34px !important;
        height: 34px !important;
    }

    body.ut-v2 .utBrand strong {
        font-size: 19px !important;
        letter-spacing: -.04em !important;
    }

    body.ut-v2 .utBrand small {
        font-size: 8.5px !important;
        letter-spacing: .045em !important;
    }

    body.ut-v2 .utNavLinks {
        gap: 3px !important;
    }

    body.ut-v2 .utNavLinks a {
        min-height: 40px !important;

        padding:
            0
            12px !important;

        font-size: 12px !important;
        font-weight: 660 !important;
    }

    body.ut-v2 .utLanguage {
        min-height: 40px !important;
        height: 40px !important;

        font-size: 11px !important;
    }

    body.ut-v2 .utNavCta {
        min-height: 42px !important;
        height: 42px !important;

        padding:
            0
            16px !important;

        font-size: 11.5px !important;
    }
}


@media (min-width: 981px) and (max-width: 1120px) {

    body.ut-v2 .utNavInner {
        grid-template-columns:
            190px
            minmax(0, 1fr)
            auto !important;

        gap: 15px !important;
    }

    body.ut-v2 .utNavLinks a {
        padding:
            0
            8px !important;

        font-size: 10.8px !important;
    }

    body.ut-v2 .utNavCta {
        padding:
            0
            12px !important;

        font-size: 10.5px !important;
    }
}

