body > header {
    margin-top: 12.812rem;
}

.top-navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #FFF;
    z-index: 999;
    box-shadow: 0 10px 30px rgb(172 189 216 / 16%);
    transition: background-color .3s, box-shadow .3s ease-in-out;
    will-change: box-shadow, background-color;
}

.top-navigation__landing-page {
    position: static;
    z-index: 1;
}

.top-navigation.mega-menu--open {
    background-color: transparent;
    box-shadow: 0 10px 30px rgb(172 189 216 / 0%);
}

.top-navigation.dropdown--open {
    background-color: #F7F7F7;
}

.top-navigation--container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    max-width: calc(1724px + 4.8rem);
    left: 50%;
    padding: 4rem 2.4rem;
    transform: translateX(-50%);
    transition: padding .3s ease-in-out;
    will-change: padding;
}

.top-navigation--fixed .top-navigation--container {
    padding: 2.4rem;
}

.top-navigation--back-icon {
    display: none;
    position: absolute;
    top: 5.5rem;
    left: 3.2rem;
    opacity: 0;
    pointer-events: none;
    transition: all .3s ease-in-out;
    will-change: opacity, top;
}

.top-navigation--back-icon img {
    transform: rotate(90deg);
    pointer-events: none;
}

.top-navigation--logo img {
    height: auto;
    width: 182px;
    margin-right: 12.8rem;
}

.top-navigation--middle {
    position: relative;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
}

.top-navigation--links {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    list-style-type: none;
    list-style-image: none !important;
}

.top-navigation--links li {
    white-space: nowrap;
    transition: opacity .3s ease-in-out;
    will-change: opacity;
}

.top-navigation--links > li.has-children > .sub-menu {
    position: absolute;
    top: calc(100% + 1.4rem);
    left: -3.2rem;
    background-color: #fff;
    visibility: hidden;
    width: 100%;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    padding-left: 6.4rem;
    padding-top: 6.95rem;
    padding-bottom: 2.8rem;
    display: flex;
    flex-wrap: wrap;
    box-shadow: 0 2rem 2rem rgba(172, 189, 216, 0.16);
}

.top-navigation--links > li.has-children:hover > .sub-menu {
    visibility: visible;
    opacity: 1;
}

.top-navigation--links > li {
    margin-right: 4.4rem;
}

.top-navigation--links li a,
.top-navigation--links > li.has-children {
    display: inline-block;
    font-size: 1.5rem;
    line-height: 2.3rem;
    font-weight: 500;
    color: #001E59;
    cursor: pointer;
}

.top-navigation--links li.has-children:hover,
.top-navigation--links li a:hover {
    text-decoration: none;
    color: #008ED4;
    font-weight: 500;
}

.top-navigation--links > li.has-children > span {
    position: relative;
}

.top-navigation--links > li.has-children .sub-menu {
    list-style: none !important;
    list-style-image: none !important;
}

.top-navigation--links > li.has-children > span::before {
    content: '';
    position: absolute;
    top: -1rem;
    left: 50%;
    z-index: -1;
    transform: translateX(-50%);
    background-color: #fff;
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    width: calc(100% + 6.4rem);
    height: calc(100% + 4.89rem);
}

.top-navigation--links > li.has-children:hover > span::before {
    visibility: visible;
    opacity: 1;
}

.top-navigation--links > li.has-children > .sub-menu > li {
    width: 17.2rem;
    margin-right: 6.4rem;
    margin-bottom: 4.8rem;
}

.top-navigation--links > li.has-children > .sub-menu > li > span,
.top-navigation--links > li.has-children > .sub-menu > li > a {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 2.3rem;
    color: #001E59;
}

.top-navigation--links > li.has-children > .sub-menu > li > span {
    cursor: default;
}

.top-navigation--links > li.has-children > .sub-menu .sub-menu {
    padding: 0;
    margin-top: 3.5rem;
}

.top-navigation--links > li.has-children > .sub-menu .sub-menu li:not(:last-child) {
    margin-bottom: 3.2rem;
}

.top-navigation--links > li.has-children > .sub-menu .sub-menu li a {
    font-size: 1.4rem;
    font-weight: 400;
}

.top-navigation--controls {
    display: inline-flex;
    align-items: center;
    margin: 0 14.3rem 0 auto;
}

.top-navigation--controls button:hover,
.top-navigation--controls button:focus,
.top-navigation--controls button:active,
.top-navigation--controls button {
    padding: 0;
    background-color: transparent;
    margin-right: 4.4rem;
    border: none;
}

.top-navigation--controls a:first-of-type {
    margin-right: 4.4rem;
}

.top-navigation--controls li.lang-item {
    list-style: none;
    margin-right: 1.7rem;
}

.top-navigation--controls li.lang-item a {
    text-transform: uppercase;
    color: #001E59;
    font-size: 1.4rem;
    line-height: 1.9rem;
    font-weight: 400;
    margin: 0;
}

.top-navigation--controls li.current-lang a {
    font-weight: 700;
    color: #008ED4;
}

.top-navigation--menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    cursor: pointer;
    min-width: 10rem;
}

.top-navigation--menu-btn > * {
    pointer-events: none;
}

.top-navigation--menu-btn.mega-menu--close-icon .top-navigation--menu-btn__icon::before {
    background: url('../images/grandmetric_close_icon.svg') no-repeat center center / contain;
}

.top-navigation--menu-btn.mega-menu--close-icon:hover .top-navigation--menu-btn__icon::before {
    background: url('../images/grandmetric_close_icon--inverted.svg') no-repeat center center / contain;
}

.top-navigation--menu-btn span {
    display: inline-block;
    font-size: 1.4rem;
    line-height: 0;
    font-weight: 700;
    color: #001E59;
    margin-right: 0.8rem;
    opacity: 1;
    transition: opacity .3s ease-in-out;
    will-change: opacity;
}

.top-navigation--menu-btn__icon {
    position: relative;
    width: 2.4rem;
    height: 2.4rem;
    transition: opacity .3s ease-in-out 150ms;
    will-change: opacity;
}

.top-navigation--menu-btn__icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: url('../images/grandmetric_menu_icon.svg') no-repeat center center / contain;
    transform: translate(-50%, -50%);
}

.top-navigation--menu-btn:hover .top-navigation--menu-btn__icon::before {
    background: url('../images/grandmetric_menu_icon--inverted.svg') no-repeat center center / contain;
}

.top-navigation--cta-button-mobile {
    display: none;
}

.top-navigation.mega-menu--open .top-navigation--logo,
.top-navigation.mega-menu--open .top-navigation--links > *,
.top-navigation.mega-menu--open .top-navigation--controls > *,
.top-navigation.mega-menu--open .top-navigation--cta-button-mobile {
    opacity: 0;
    pointer-events: none;
}

.top-navigation.mega-menu--open .top-navigation--back-icon {
    opacity: 1;
    pointer-events: all;
    cursor: pointer;
}


/* MEDIA QUERIES */
@media only screen and (max-width: 1900px) {
    .top-navigation--logo img {
        margin-right: 4.4rem;
    }

    .top-navigation--controls {
        margin: 0 0 0 auto;
    }
}

@media only screen and (max-width: 1139.9px) {

    .top-navigation--links,
    .top-navigation--controls li.lang-item,
    .top-navigation--controls a {
        display: none !important;
    }

    .top-navigation--controls button:hover,
    .top-navigation--controls button:focus,
    .top-navigation--controls button:active,
    .top-navigation--controls button {
        margin-right: 0;
    }

    .top-navigation--menu-btn.mega-menu--close-icon .top-navigation--menu-btn__icon::before,
    .top-navigation--menu-btn.mega-menu--close-icon:hover .top-navigation--menu-btn__icon::before {
        background: url('../images/grandmetric_close_icon--white.svg') no-repeat center center / contain;
    }

    .top-navigation--menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 4.8rem;
        height: 4.8rem;
        border-radius: 50%;
        background-color: #008ED4;
        min-width: unset;
    }

    .top-navigation--menu-btn span {
        display: none;
    }

    .top-navigation--menu-btn__icon::before,
    .top-navigation--menu-btn:hover .top-navigation--menu-btn__icon::before {
        background: url('../images/grandmetric_menu_icon---white.svg') no-repeat center center / contain;
    }

    .top-navigation--cta-button-mobile {
        display: inline-block;
        margin-right: 2.4rem
    }
}

@media only screen and (max-width: 1740px) {
    .top-navigation--controls {
        justify-content: flex-end;
    }

    .top-navigation--controls .cta-button {
        margin-right: 22px !important;
    }
}

@media only screen and (min-width: 1200px) and (max-width: 1240px) {
    .top-navigation--controls > a:not(.cta-button),
    .top-navigation--controls button {
        display: none !important;
    }
}

@media only screen and (min-width: 1200px) and (max-width: 1340px) {
    .top-navigation--controls > a:not(.cta-button),
    .top-navigation--controls button {
        margin-right: 2.2rem !important;
    }

    .top-navigation--menu-btn {
        min-width: fit-content;
    }
}

@media only screen and (max-width: 1199.9px) {
    .top-navigation--controls a:not(.cta-button),
    .top-navigation--controls button,
    .top-navigation--controls li {
        display: none !important;
    }

    .top-navigation--controls .cta-button {
        margin-right: 0 !important;
    }
}

@media only screen and (max-width: 1139.9px) {
    .top-navigation--back-icon {
        display: inherit;
    }

    .top-navigation--fixed .top-navigation--back-icon {
        top: 4.2rem;
    }

    .top-navigation--menu-btn.mega-menu--close-icon {
        background-color: transparent;
    }

    .top-navigation--menu-btn.mega-menu--close-icon .top-navigation--menu-btn__icon::before {
        background: url('../images/grandmetric_close_icon.svg') no-repeat center center / contain;
    }

    .top-navigation--menu-btn.mega-menu--close-icon:hover .top-navigation--menu-btn__icon::before {
        background: url('../images/grandmetric_close_icon--inverted.svg') no-repeat center center / contain;
    }
}

@media only screen and (max-width: 992px) {

    body > header {
        margin-top: 9.6rem;
    }

    .top-navigation--container {
        padding-top: 2.4rem;
        padding-bottom: 2.4rem;
    }

    .top-navigation--back-icon {
        top: 4.2rem;
    }

    .top-navigation--logo img {
        width: 100%;
        max-width: 16.5rem;
        margin-right: 1.6rem;
    }
}

@media only screen and (max-width: 768px) {
    .top-navigation--container {
        padding-left: 0;
        padding-right: 0;
    }

    .top-navigation--back-icon {
        left: 3rem;
    }

    .top-navigation--fixed .top-navigation--container {
        padding: 2.4rem 0;
    }
}

@media only screen and (max-width: 640px) {

    body > header {
        margin-top: 9.6rem;
    }

    .top-navigation--container {
        flex-wrap: wrap;
        padding-top: 2.4rem;
        padding-bottom: 2.4rem;
    }

    .top-navigation--fixed .top-navigation--container {
        padding: 2.4rem 0 1rem 0;
    }

    .top-navigation--logo {
        order: 1;
    }

    .top-navigation--middle {
        order: 2;
    }

    .top-navigation--menu-btn {
        order: 3;
    }

    .top-navigation--cta-button-mobile__container {
        display: flex;
        align-items: center;
        justify-content: center;
        order: 4;
        flex-basis: 100%;
    }

    .top-navigation--cta-button-mobile {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        max-width: fit-content;
        margin: 1rem 2.4rem 0 2.4rem;
    }
}

@media only screen and (max-width: 340px) {
    .top-navigation--logo img {
        max-width: 14rem;
    }
}