.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    background: linear-gradient(180deg, rgba(5, 29, 59, 1) 5%, rgba(14, 79, 161, 0.6) 51%, rgba(14, 79, 161, 0) 100%);
}

.header--light {
    background: linear-gradient(180deg, rgba(5, 29, 59, 1) 5%, rgba(14, 79, 161, 0.6) 51%, rgba(14, 79, 161, 0) 100%);
    border-bottom: none;
    box-shadow: none;
}

.header__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px 20px 20px;
}

.nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.nav__burger {
    text-decoration: none;
    display: none;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.nav__burger-img {
    display: block;
    height: 24px;
    width: auto;
}

.nav__list {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 32px;
    align-items: center;
    margin-right: 32px;
}

.nav__item {
    list-style: none;

}

.nav__link {
    text-decoration: none;
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 400;
    line-height: 100%;
}

.nav__link.active {
    padding: 8px 16px;
    background: #FFFFFF;
    border-radius: 24px;
    color: #0E4FA1;
}

.header--light .nav__link {
    color: #0E4FA1;
}

.header--light .nav__link.active {
    background: #1D5CAD;
    color: #FFFFFF;
}

.nav__logo {
    display: flex;
    align-items: center;
}

.nav__logo-img {
    display: block;
    height: 78px;
    width: auto;
    
}

.nav__logo-title {
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    line-height: 100%;
    display: none;
}

.header--light .nav__logo-title {
    color: #0E4FA1;
}

.nav__mobile-pages {
    display: none;
}

.nav__mobile-page-dot {
    display: inline-flex;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid #FFFFFF;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav__mobile-page-dot:hover,
.nav__mobile-page-dot:focus-visible {
    background: rgba(255, 255, 255, 0.82);
    border-color: #FFFFFF;
    transform: scale(1.08);
}

.nav__mobile-page-dot.is-active {
    background: #1D5CAD;
    border-color: #1D5CAD;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1900;
    pointer-events: none;
}

.mobile-menu.is-open {
    pointer-events: auto;
}

.mobile-menu__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.mobile-menu.is-open .mobile-menu__backdrop {
    opacity: 1;
}

.mobile-menu__panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    background: #FEFEFE;
    color: #0E4FA1;
    transform: translateY(-105%);
    transition: transform 0.35s ease;
    overflow-y: auto;
}

.mobile-menu.is-open .mobile-menu__panel {
    transform: translateY(0);
}

.mobile-menu__content {
    display: flex;
    flex-direction: column;
    padding: 40px 0;
}

.mobile-menu__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

.mobile-menu__brand {
    display: flex;
    align-items: center;
}

.mobile-menu__brand-logo {
    width: auto;
    height: 36px;
    margin-right: 4px;
}

.mobile-menu__brand-title {
    color: #0E4FA1;
    font-size: 12px;
    line-height: 100%;
    font-weight: 700;
}

.mobile-menu__nav {
    width: 100%;
}

.mobile-menu__close {
    border: none;
    background: linear-gradient(135deg, #367ad3 0%, #1D5CAD 100%);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-menu__close-icon {
    width: 20px;
    height: 20px;
}

.mobile-menu__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.mobile-menu__link {
    color: #0E4FA1;
    font-size: 16px;
    font-weight: 500;
    line-height: 100%;
    text-decoration: none;
}

.mobile-menu__link.is-active {
    font-weight: 700;
}

.mobile-menu__footer {
    margin-top: auto;
}

.mobile-menu__cta {
    width: 100%;
    border-radius: 20px;
    padding: 18px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #367ad3 0%, #1D5CAD 100%);
    color: #FFFFFF;
}

.mobile-menu__cta-icon {
    line-height: 0;
    display: inline-flex;
    margin-right: 8px;
}

.mobile-menu__cta-icon-img {
    width: 16px;
    height: 16px;
}

.mobile-menu__cta-text {
    font-size: 16px;
    font-weight: 500;
    line-height: 100%;
}

@media (max-width: 1440px) {
    .header__inner {
        max-width: 1024px;
    }

    .nav__link {
        font-size: 16px;
    }

    .nav__list {
        gap: 24px;
        margin-right: 24px;
    }

    .nav__logo-img {
        height: 56px;
    }


}


@media (max-width: 1024px) {
    .header__inner {
        max-width: 768px;
    }

    .nav__link {
        font-size: 12px;
    }

    .nav__list {
        gap: 20px;
        margin-right: 20px;
    }

    .nav__logo-img {
        height: 40px;
    }


}

@media (max-width: 768px) {
    .header__inner {
        max-width: 425px;
    }

    .nav {
        position: relative;
    }

    .nav__logo-title {
        display: none;
    }

    .nav__logo-img {
        margin-right: 0;
    }

    .nav__logo {
        margin-left: auto;
        justify-content: flex-end;
        position: relative;
        z-index: 2;
    }

    .nav__list {
        display: none;
    }

    .nav__burger {
        display: block;
        position: relative;
        z-index: 2;
    }

    .nav__mobile-pages {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        align-items: center;
        gap: 10px;
        z-index: 1;
    }

    .mobile-menu__brand-title {
        font-size: 14px;
    }

}

@media (max-width: 425px) {
    .header__inner {
        max-width: 375px;
    }

    .mobile-menu__brand-logo {
        height: 32px;
    }
    .mobile-menu__brand-title {
        font-size: 12px;
    }

    .mobile-menu__close {
        width: 40px;
        height: 40px;
    }

    .mobile-menu__close-icon {
        width: 16px;
        height: 16px;
    }

    .mobile-menu__header {
        margin-bottom: 32px;
    }

    .mobile-menu__link {
        font-size: 14px;
    }

    .mobile-menu__list {
        margin-bottom: 28px;
    }

    .mobile-menu__cta-text {
        font-size: 14px;
    }

    .mobile-menu__cta-icon-img {
        width: 14px;
        height: 14px;
    }

    .mobile-menu__cta {
        padding: 16px 12px;
    }



}

@media (max-width: 375px) {
    .header__inner {
        max-width: 320px;
    }
}
