:root {
    --prototype-navy: #164361;
    --prototype-light-blue: #8fb6d4;
    --prototype-sea-green: #93bebb;
    --prototype-grey: #cccccc;
    --prototype-ink: #102f43;
    --prototype-header-height: 80px;
}

body.prototype-nav-open {
    overflow: hidden;
}

.main-container {
    padding-top: var(--prototype-header-height);
}

.header.prototype-header {
    display: block;
    height: var(--prototype-header-height);
    min-height: var(--prototype-header-height);
    padding: 0;
    border-bottom: 0;
    overflow: visible;
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(22, 67, 97, 0.16);
}

.prototype-header-container {
    width: min(100% - 48px, 1760px);
    max-width: none;
    margin: 0 auto;
}

.prototype-brand-group {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
    margin-right: auto;
}

.header .iso-badge.prototype-certification-badge {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    width: max-content;
    max-width: 100%;
    margin: 0 0 0 14px;
    padding: 5px 11px 5px 10px;
    border: 1px solid rgba(22, 67, 97, 0.16);
    border-radius: 999px;
    background: #ffffff;
    color: var(--prototype-navy);
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: visible;
}

.header .iso-badge.prototype-certification-badge svg {
    flex: 0 0 auto;
    margin: 0 6px 0 0;
}

.prototype-main-row {
    height: 80px;
    display: flex;
    align-items: center;
    background: #ffffff;
}

.prototype-main-row .header-containter {
    height: 100%;
}

.header_logo.prototype-header-logo {
    flex: 0 0 auto;
    width: clamp(250px, 18vw, 300px);
    margin-right: 0;
    padding-right: 0;
}

.prototype-header-logo img,
.prototype-header-logo svg {
    display: block;
    width: 100%;
    height: auto;
}

.header_nav.prototype-header-nav {
    margin-left: 24px;
    height: 100%;
}

.prototype-nav-list {
    height: 100%;
    gap: 14px;
}

.header_nav .prototype-nav-list > li + li {
    margin-left: 0;
}

.prototype-nav-item,
.prototype-language-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.header_nav .prototype-nav-item > a,
.prototype-nav-trigger {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--prototype-navy);
    font-family: "Avenir Next", sans-serif;
    font-size: clamp(13px, 1vw, 15px);
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
}

.header_nav .prototype-nav-item > a::after,
.prototype-nav-trigger::after {
    display: none;
}

.prototype-nav-label {
    position: relative;
    display: inline-block;
    padding-bottom: 9px;
    margin-bottom: -9px;
}

.prototype-nav-label::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--prototype-navy);
    opacity: 0;
    transition: width 180ms ease, opacity 180ms ease;
}

.header_nav .prototype-nav-item > a:hover,
.prototype-nav-trigger:hover,
.prototype-nav-group.is-open .prototype-nav-trigger,
.prototype-nav-group.is-active .prototype-nav-trigger {
    color: #426f67;
}

.header_nav .prototype-nav-item > a:hover .prototype-nav-label::after,
.header_nav .prototype-nav-item > a.active:not(.prototype-samples-cta) .prototype-nav-label::after,
.prototype-nav-group.is-open .prototype-nav-label::after,
.prototype-nav-group.is-active .prototype-nav-label::after {
    width: 100%;
    opacity: 1;
    background: currentColor;
}

.prototype-nav-trigger:focus-visible,
.header_nav .prototype-nav-item > a:focus-visible,
.prototype-nav-panel a:focus-visible,
.prototype-mobile-nav-btn:focus-visible {
    outline: 2px solid var(--prototype-light-blue);
    outline-offset: 4px;
    border-radius: 4px;
}

.prototype-nav-chevron {
    margin-left: 6px;
    transition: transform 180ms ease;
}

.prototype-nav-group.is-open .prototype-nav-chevron {
    transform: rotate(180deg);
}

.prototype-panel-shell {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 5;
    min-width: 214px;
    padding-top: 12px;
    transform: translate(-50%, -5px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 180ms ease, opacity 160ms ease, visibility 0s linear 180ms;
}

.prototype-nav-group.is-open .prototype-panel-shell {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s, 0s, 0s;
}

.prototype-nav-panel {
    min-width: 214px;
    padding: 7px;
    border: 1px solid rgba(22, 67, 97, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.985);
    box-shadow: 0 18px 42px rgba(16, 47, 67, 0.16), 0 2px 6px rgba(16, 47, 67, 0.06);
}

.prototype-nav-panel-kernels {
    display: grid;
    grid-template-columns: 1fr;
    min-width: 214px;
}

.prototype-nav-panel a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border-radius: 7px;
    color: var(--prototype-navy);
    font-size: 14px;
    font-weight: 500;
    transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.prototype-submenu-link-content {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
}

.prototype-nav-panel a:hover,
.prototype-nav-panel a.active {
    background: #f1f5f6;
    color: #426f67;
}

.prototype-nav-panel a:hover svg {
    transform: translateX(2px);
}

.prototype-nav-panel a svg {
    flex: 0 0 auto;
    transition: transform 150ms ease;
}

.header_nav .prototype-nav-item > a.prototype-samples-cta,
.header_nav .prototype-nav-item > a.prototype-samples-cta.active {
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid var(--prototype-navy);
    border-radius: 999px;
    background: var(--prototype-navy);
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(22, 67, 97, 0.15);
    transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.header_nav .prototype-nav-item > a.prototype-samples-cta::after {
    display: none;
}

.header_nav .prototype-nav-item > a.prototype-samples-cta:hover,
.header_nav .prototype-nav-item > a.prototype-samples-cta.active {
    color: #ffffff;
    background: #245b7f;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(22, 67, 97, 0.21);
}

.prototype-language-item {
    padding-left: 1px;
}

.prototype-language-item .select-languages {
    min-width: 64px;
}

.prototype-language-item .choices {
    margin: 0;
}

.prototype-language-item .choices__inner {
    min-height: 38px;
    padding-top: 7px;
    padding-bottom: 2px;
}

.prototype-language-item .select-languages .choices__list--dropdown,
.prototype-language-item .select-languages .choices__list[aria-expanded] {
    right: 0;
    left: auto;
    width: 126px;
    min-width: 126px;
}

.prototype-language-item .select-languages .choices__list--dropdown .choices__item,
.prototype-language-item .select-languages .choices__list[aria-expanded] .choices__item {
    padding: 9px 10px;
    font-size: 14px;
    white-space: nowrap;
    word-break: normal;
}

@media (min-width: 1241px) {
    .header .iso-badge.prototype-certification-badge {
        font-weight: 400;
    }

    .prototype-panel-shell > .prototype-nav-panel.prototype-nav-panel-kernels {
        display: grid;
        width: max-content;
        min-width: 188px;
        max-width: none;
        margin-inline: auto;
    }

    .prototype-panel-shell > .prototype-nav-panel.prototype-nav-panel-company {
        display: grid;
        width: max-content;
        min-width: 176px;
        max-width: none;
        margin-inline: auto;
    }

    .prototype-nav-panel-kernels a,
    .prototype-nav-panel-company a {
        width: auto;
        justify-content: center;
        text-align: center;
    }

    .prototype-nav-panel-kernels .prototype-submenu-link-content,
    .prototype-nav-panel-company .prototype-submenu-link-content {
        justify-content: center;
        gap: 7px;
        width: auto;
    }

    .prototype-nav-panel-kernels .prototype-submenu-link-content > span,
    .prototype-nav-panel-company .prototype-submenu-link-content > span,
    .prototype-nav-panel-export .prototype-submenu-link-content > span {
        white-space: nowrap;
    }

    .prototype-panel-shell > .prototype-nav-panel.prototype-nav-panel-export {
        display: grid;
        width: max-content;
        min-width: 264px;
        max-width: none;
        margin-inline: auto;
    }

    .prototype-nav-panel-export a {
        width: auto;
        justify-content: center;
        text-align: center;
    }

    .prototype-nav-panel-export .prototype-submenu-link-content {
        justify-content: center;
        gap: 7px;
        width: auto;
    }
}

.prototype-mobile-nav-btn,
.prototype-nav-backdrop {
    display: none;
}

.prototype-page-shell {
    min-height: calc(100vh - var(--prototype-header-height));
    display: grid;
    place-items: center;
    padding: 80px 24px;
    color: var(--prototype-navy);
    background:
        radial-gradient(circle at 15% 15%, rgba(143, 182, 212, 0.18), transparent 28%),
        radial-gradient(circle at 85% 80%, rgba(147, 190, 187, 0.16), transparent 30%),
        #ffffff;
}

.prototype-page-shell-inner {
    width: min(100%, 720px);
    text-align: center;
}

.prototype-page-kicker {
    display: inline-block;
    margin-bottom: 18px;
    color: #547e79;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.prototype-page-shell h1 {
    margin: 0;
    color: var(--prototype-navy);
    font-size: clamp(46px, 7vw, 88px);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 1;
}

.prototype-page-shell p {
    max-width: 620px;
    margin: 26px auto 0;
    color: #526b7a;
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.65;
}

@media (max-width: 1240px) {
    :root {
        --prototype-header-height: 104px;
    }

    .prototype-header-container {
        width: min(100% - 30px, 1760px);
    }

    .prototype-main-row {
        height: 104px;
    }

    .prototype-brand-group {
        width: min(calc(100% - 58px), 320px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 7px;
    }

    .header_logo.prototype-header-logo {
        width: min(78vw, 300px);
        padding-right: 0;
    }

    .header .iso-badge.prototype-certification-badge {
        align-self: flex-start;
        width: max-content;
        max-width: 100%;
        margin: 0;
        padding: 4px 8px 4px 7px;
        border-radius: 12px;
        font-size: 9.5px;
        line-height: 1.2;
        white-space: normal;
    }

    .header .iso-badge.prototype-certification-badge svg {
        width: 12px;
        height: 9px;
        margin-right: 4px;
    }

    .mobile-nav-btn.prototype-mobile-nav-btn {
        display: flex;
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        margin-left: 14px;
        border: 0;
        padding: 0;
        background: transparent;
        cursor: pointer;
        position: relative;
        z-index: 8;
    }

    .mobile-nav-btn.prototype-mobile-nav-btn span {
        position: absolute;
        left: 9px;
        width: 26px;
        height: 3px;
        margin: 0;
        border-radius: 4px;
        background: var(--prototype-navy);
        transition: top 150ms ease, transform 150ms ease, opacity 120ms ease;
    }

    .mobile-nav-btn.prototype-mobile-nav-btn span:nth-child(1) {
        top: 13px;
    }

    .mobile-nav-btn.prototype-mobile-nav-btn span:nth-child(2) {
        top: 20.5px;
    }

    .mobile-nav-btn.prototype-mobile-nav-btn span:nth-child(3) {
        top: 28px;
    }

    .mobile-nav-btn.prototype-mobile-nav-btn.active span:nth-child(1) {
        top: 20.5px;
        transform: rotate(45deg);
    }

    .mobile-nav-btn.prototype-mobile-nav-btn.active span:nth-child(2) {
        opacity: 0;
        transform: none;
    }

    .mobile-nav-btn.prototype-mobile-nav-btn.active span:nth-child(3) {
        top: 20.5px;
        transform: rotate(-45deg);
    }

    .header_nav.prototype-header-nav {
        position: fixed;
        top: var(--prototype-header-height);
        left: auto;
        right: 0;
        bottom: 0;
        z-index: 7;
        width: min(430px, 92vw);
        height: auto;
        padding: 18px 20px 30px;
        overflow-y: auto;
        border: 0;
        border-left: 1px solid rgba(22, 67, 97, 0.1);
        background: #ffffff;
        transform: translateX(100%);
        opacity: 1;
        visibility: hidden;
        transition: transform 260ms cubic-bezier(.22, .8, .24, 1), visibility 260ms ease;
        box-shadow: -18px 0 45px rgba(16, 47, 67, 0.14);
    }

    .header_nav.prototype-header-nav.active {
        transform: translateX(0);
        visibility: visible;
    }

    .prototype-nav-list {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .prototype-nav-item,
    .prototype-language-item {
        height: auto;
        min-height: 54px;
        display: block;
        border-bottom: 1px solid rgba(22, 67, 97, 0.1);
    }

    .header_nav .prototype-nav-item > a,
    .prototype-nav-trigger {
        width: 100%;
        min-height: 54px;
        font-size: 17px;
    }

    .header_nav .prototype-nav-item > a {
        justify-content: flex-start;
    }

    .prototype-nav-trigger {
        justify-content: center;
        gap: 7px;
        text-align: center;
    }

    .prototype-nav-chevron {
        width: 8px;
        height: 5px;
        margin-left: 0;
    }

    .prototype-nav-label::after {
        display: none;
    }

    .prototype-panel-shell {
        position: static;
        min-width: 0;
        max-height: 0;
        padding: 0;
        overflow: hidden;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: max-height 250ms ease;
    }

    .prototype-nav-group.is-open .prototype-panel-shell {
        max-height: 380px;
        transform: none;
    }

    .prototype-nav-panel,
    .prototype-nav-panel-kernels {
        min-width: 0;
        display: block;
        padding: 0 14px 10px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .prototype-nav-panel a {
        min-height: 46px;
        justify-content: center;
        padding: 9px 10px;
        font-size: 14.5px;
        text-align: center;
    }

    .prototype-submenu-link-content {
        justify-content: center;
        gap: 7px;
        width: auto;
    }

    .prototype-nav-group.is-open {
        padding-bottom: 4px;
    }

    .prototype-samples-item {
        padding: 16px 0 8px;
        border-bottom: 0;
    }

    .header_nav .prototype-nav-item > a.prototype-samples-cta,
    .header_nav .prototype-nav-item > a.prototype-samples-cta.active {
        min-height: 48px;
        justify-content: center;
    }

    .prototype-language-item {
        padding-top: 14px;
        border-bottom: 0;
    }

    .prototype-language-item .select-languages {
        width: 74px;
    }

    .prototype-nav-backdrop {
        display: block;
        position: fixed;
        inset: var(--prototype-header-height) 0 0;
        z-index: 6;
        width: 100%;
        border: 0;
        padding: 0;
        background: rgba(9, 30, 43, 0.35);
        cursor: default;
        animation: prototype-backdrop-in 180ms ease both;
    }
}

@media (max-width: 575px) {
    .prototype-header-container {
        width: calc(100% - 24px);
    }

    .prototype-brand-group {
        width: calc(100% - 56px);
    }

    .header_logo.prototype-header-logo {
        width: min(78vw, 300px);
    }

    .header_nav.prototype-header-nav {
        width: min(360px, 94vw);
        padding-inline: 18px;
    }

    .prototype-page-shell {
        padding: 64px 22px;
    }
}

@media (max-width: 360px) {
    .header_logo.prototype-header-logo {
        width: min(76vw, calc(100vw - 88px));
    }

    .header .iso-badge.prototype-certification-badge {
        padding: 3px 6px 3px 5px;
        font-size: 8.5px;
    }

    .header .iso-badge.prototype-certification-badge svg {
        width: 10px;
        height: 8px;
        margin-right: 3px;
    }

    .mobile-nav-btn.prototype-mobile-nav-btn {
        margin-left: 10px;
    }
}

@keyframes prototype-backdrop-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .prototype-panel-shell,
    .prototype-nav-chevron,
    .header_nav.prototype-header-nav,
    .prototype-nav-panel a,
    .prototype-samples-cta {
        transition: none;
    }
}
