:root {
    --nav-h: 72px;
}

.neuro-header-component,
.neuro-header-component * {
    box-sizing: border-box;
}

.neuro-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .91);
    border-bottom: 1px solid rgba(13, 37, 104, .075);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    backdrop-filter: blur(18px) saturate(1.15);
    transition: box-shadow .25s, background .25s;
}

.neuro-header.is-scrolled {
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 8px 32px rgba(13, 37, 104, .09);
}

.neuro-header__inner {
    width: 100%;
    max-width: 1600px;
    height: var(--nav-h);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    font-family: 'Inter', sans-serif;
}

.neuro-header__logo {
    display: flex;
    align-items: center;
    color: #0d1b33;
    text-decoration: none;
    white-space: nowrap;
}

.neuro-header__logo:hover,
.neuro-header__logo:visited {
    color: #0d1b33;
    text-decoration: none;
}

.neuro-header__logo-text {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.neuro-header__logo-text span {
    color: #2f6fed;
}

.neuro-header__links {
    display: flex;
    flex: 1;
    gap: 2px;
    margin-left: 10px;
}

.neuro-header__about {
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    background: transparent;
    font-family: inherit;
}

.neuro-header__links a,
.neuro-header__links .neuro-header__about {
    position: relative;
    padding: 9px 14px;
    border: 0;
    border-radius: 9px;
    color: #4a5773;
    background: transparent;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.6;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color .24s, background .24s;
}

.neuro-header__links a::after,
.neuro-header__links .neuro-header__about::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: #2f6fed;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .28s;
}

.neuro-header__links a:hover,
.neuro-header__links .neuro-header__about:hover {
    color: #2158d1;
    background: #eaf2ff;
    text-decoration: none;
}

.neuro-header__links a:hover::after,
.neuro-header__links .neuro-header__about:hover::after {
    transform: scaleX(1);
}

.neuro-header__points {
    display: flex;
    align-items: baseline;
    gap: 4px;
    color: #4a5773;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.neuro-header__points .header__span {
    color: #0d1b33;
    font-size: 18px;
}

.neuro-header__login {
    min-height: 42px;
    padding: 10px 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 11px;
    background: #2f6fed;
    color: #fff;
    box-shadow: 0 8px 22px rgba(47, 111, 237, .23), inset 0 1px 0 rgba(255, 255, 255, .22);
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .22s, box-shadow .22s, transform .22s;
}

.neuro-header__login svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.neuro-header__login:hover,
.neuro-header__login:visited {
    color: #fff;
    text-decoration: none;
}

.neuro-header__login:hover {
    background: #2158d1;
    box-shadow: 0 8px 22px rgba(47, 111, 237, .4);
    transform: translateY(-1px);
}

.neuro-header__hamburger {
    display: none;
    margin-left: auto;
    padding: 6px;
    flex-direction: column;
    gap: 5px;
    border: 0;
    background: transparent;
    color: #0d1b33;
    cursor: pointer;
}

.neuro-header__hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transition: transform .3s, opacity .3s;
}

.neuro-header__hamburger[aria-expanded='true'] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.neuro-header__hamburger[aria-expanded='true'] span:nth-child(2) {
    opacity: 0;
}

.neuro-header__hamburger[aria-expanded='true'] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.neuro-header__mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    z-index: 999;
    padding: 10px 20px 22px;
    flex-direction: column;
    border-bottom: 1px solid rgba(13, 37, 104, .10);
    background: rgba(255, 255, 255, .97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(13, 37, 104, .1);
    font-family: 'Inter', sans-serif;
}

.neuro-header__mobile-menu.is-open {
    display: flex;
}

.neuro-header__mobile-menu > a:not(.neuro-header__login),
.neuro-header__mobile-menu > .neuro-header__mobile-about {
    width: 100%;
    padding: 13px 4px;
    border-bottom: 1px solid rgba(13, 37, 104, .10);
    color: #4a5773;
    background: transparent;
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.6;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: color .2s;
}

.neuro-header__mobile-menu > a:not(.neuro-header__login):hover,
.neuro-header__mobile-menu > .neuro-header__mobile-about:hover {
    color: #2158d1;
}

.neuro-about-popup {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background: rgba(8, 26, 77, .58);
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
    transition: opacity .3s ease, visibility 0s linear .3s;
}

.neuro-about-popup.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0s;
}

.neuro-about-popup__box {
    position: relative;
    width: 100%;
    max-width: 660px;
    max-height: 88vh;
    padding: 42px 44px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, .68);
    border-radius: 24px;
    color: #4a5773;
    background: #fff;
    box-shadow: 0 36px 100px rgba(8, 26, 77, .32), inset 0 1px 0 rgba(255, 255, 255, .95);
    font-family: 'Inter', sans-serif;
    transform: translateY(20px) scale(.97);
    transition: transform .3s ease;
}

.neuro-about-popup.is-open .neuro-about-popup__box {
    transform: translateY(0) scale(1);
}

.neuro-about-popup__close {
    position: sticky;
    z-index: 5;
    top: -20px;
    float: right;
    width: 34px;
    height: 34px;
    margin: -28px -26px 0 16px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    color: #4a5773;
    background: #eaf2ff;
    cursor: pointer;
    transition: color .2s, background .2s;
}

.neuro-about-popup__close:hover {
    color: #fff;
    background: #2f6fed;
}

.neuro-about-popup__close svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.neuro-about-popup__icon {
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #2f6fed, #1a46ab);
}

.neuro-about-popup__icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.neuro-about-popup__title {
    margin-bottom: 16px;
    color: #0d1b33;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.025em;
}

.neuro-about-popup__text {
    color: #4a5773;
    font-size: 15px;
    line-height: 1.78;
}

.neuro-about-popup__text p {
    margin: 0 0 12px;
}

.neuro-about-popup__text a {
    color: #2158d1;
}

.neuro-about-popup__section {
    margin: 22px 0 12px;
    color: #2158d1;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.neuro-about-popup__rule {
    margin: 18px 0;
    border: 0;
    border-top: 1px solid rgba(13, 37, 104, .10);
}

.neuro-header__mobile-login {
    margin-top: 16px;
}

/* Common bottom-right slot for an individual advertising token. */
.tag {
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    box-sizing: border-box;
    font-size: 14px;
    padding-top: 15px;
}

.tag--internal {
    width: 100%;
    max-width: none;
    min-height: 72px;
    margin: 0;
    padding: 15px max(40px, calc((100% - 1440px) / 2)) 32px;
}

.tag--serial,
.tag--notes {
    background: #f5f9ff;
}

.tag--smart {

}

.tag--cards {
    /*background: #eef6ff;*/
}

@media (max-width: 980px) {
    .neuro-header__links,
    .neuro-header__inner > .neuro-header__login {
        display: none;
    }

    .neuro-header__hamburger {
        display: flex;
    }
}

@media (max-width: 768px) {
    .neuro-header__inner {
        padding: 0 18px;
    }

    .tag {
        /*width: calc(100% - 36px);*/
        /*min-height: 56px;*/
        /*padding: 12px 0 18px;*/
    }

    .tag--internal {
        width: 100%;
        min-height: 56px;
        padding: 12px 18px 24px;
    }
}

@media (max-width: 580px) {
    :root {
        --nav-h: 68px;
    }

    .neuro-header__logo-text {
        font-size: 17px;
    }

    .neuro-header__inner {
        gap: 16px;
    }

    .neuro-header__points {
        margin-left: auto;
        font-size: 13px;
    }

    .neuro-header__points .header__span {
        font-size: 17px;
    }

    .neuro-header__hamburger {
        margin-left: 0;
    }

    .neuro-about-popup__box {
        padding: 26px 20px;
        border-radius: 20px;
    }

    .neuro-about-popup__close {
        width: 28px;
        height: 28px;
        margin: -12px -12px 0 16px;
        border-radius: 8px;
    }

    .neuro-about-popup__close svg {
        width: 12px;
        height: 12px;
    }

    .neuro-about-popup__title {
        padding-right: 24px;
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .neuro-header-component *,
    .neuro-header-component *::before,
    .neuro-header-component *::after {
        transition-duration: .01ms !important;
    }
}
