/* ── Header ──────────────────────────────────────────────────────────────── */
.nml-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    border-bottom: 1px solid transparent;
    box-shadow: 0 2px 8px transparent;
    z-index: 1000;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.nml-header.active {
    background: #FFFFFF;
    border-bottom: 1px solid #D5DAFA;
    box-shadow: 0 2px 8px rgba(56, 56, 56, 0.2);
    z-index: 1000;
}

.nml-header.active .nml-nav__link:hover{
    background: #162F6F14 !important;
    color: #0B101F !important;
}

.nml-header__inner {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nml-header .container {
    max-width: calc(1328px + var(--container-px) * 2);
}

/* ── Logo ────────────────────────────────────────────────────────────────── */
.nml-header__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nml-header__logo img {
    width: auto;
    height: 32px;
}

/* Default logo visible on transparent header, dark logo hidden */
.nml-header__logo-default { display: block; }
.nml-header__logo-dark    { display: none; }

/* On scroll (active state) — swap to dark logo */
.nml-header.active .nml-header__logo-default { display: none; }
.nml-header.active .nml-header__logo-dark    { display: block; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nml-nav {
    flex: 1;
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 6px;
}

.nml-nav__item {
    padding: 16px 0;
    position: static;
}

.nml-nav__link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 7px 12px;
    background: transparent;
    border: 1.5px solid transparent;
    border-radius: 8px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    color: #FFFFFF;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s;
}

.nml-nav__link:hover,
.nml-nav__item--active > .nml-nav__link {
    color: #FFFFFF !important;
    background: #FFFFFF1A !important;
    border: 1.5px solid #ffffff00;
}

.nml-nav__link.selected,
.nml-nav__item--mega.is-open > .nml-nav__link {
    background: #FFFFFF;
    border: 1.5px solid #889CF1;
    color: #0B101F;
}

.nml-nav__item--active > .nml-nav__link.selected:hover,
.nml-nav__link.selected:hover {
    background: #FFFFFF1A !important;
    color: #FFFFFF !important;
    border: 1.5px solid #889cf100;
}

.new-updates-menu-link .nml-nav__link {
    background: #FF417114;
    border: 1px solid var(--color-accent);
    backdrop-filter: blur(4px);
    position: relative;
    gap: 8px;
}

.new-updates-menu-link .nml-nav__link:hover{
    background: #FF41711F!important;
}

.new-updates-menu-link .nml-nav__link::before{
    content: "";
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
}

.nml-nav__chevron {
    flex-shrink: 0;
    transition: transform 0.25s;
}

.nml-nav__item--mega.is-open > .nml-nav__link .nml-nav__chevron {
    transform: rotate(180deg);
}

.nml-header.active .nml-nav__link {
    background: #FFFFFF !important;
    color: #0B101F !important;
}

.nml-header.active .nml-nav__link:hover {
      background: #162F6F14 !important;
    color: #0B101F !important;
}

.nml-header.active .nml-header__burger span{
    background: #162F6F;
}

/* ── Right side ──────────────────────────────────────────────────────────── */
.nml-header__actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* Language switcher */
.nml-header__lang-wrap {
    position: relative;
}

.nml-header__lang-wrap.is-open {

}

.nml-header__lang-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 7px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s;
}

.nml-header__lang-btn:hover {
    background: #FFFFFF1A;
}

.nml-header__lang-wrap.is-open .nml-header__lang-btn {
    background: #FFFFFF;
    border: 1.5px solid #889CF1;
    border-radius: 8px;
}

.nml-header__lang-wrap .nml-header__lang-btn svg {
    transition: all 0.3s;
}

.nml-header__lang-wrap.is-open .nml-header__lang-btn svg {
    filter: invert(1);
}

.nml-header.active .nml-header__lang-wrap .nml-header__lang-btn:hover {
    background: #162F6F14;
}

.nml-header.active .nml-header__lang-wrap.is-open .nml-header__lang-btn {
    background: #FFFFFF;
    border: 1.5px solid #889CF1;
    border-radius: 8px;
}

.nml-header.active .nml-header__lang-btn svg {
    filter: brightness(0);
}

/* Dropdown */
.nml-lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: -162px;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    padding: 8px 0;
    background: #FFFFFF;
    border: 1px solid #EEF0FD;
    box-shadow: 0 2px 4px rgba(76, 131, 243, 0.24);
    border-radius: 8px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 1010;
    overflow: hidden;
}

.nml-header__lang-wrap.is-open .nml-lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nml-lang-dropdown__item {
    width: 100%;
}

.nml-lang-dropdown__item a {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border-radius: 0;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: #0B101F;
    text-decoration: none;
    transition: all 0.3s;
}

.nml-lang-dropdown__item a:hover {
    background: rgba(22, 47, 111, 0.08);
}

.nml-lang-dropdown__item.is-current a {
    background: rgba(22, 47, 111, 0.08);
}

.nml-lang-dropdown__check {
    flex-shrink: 0;
}

/* CTA button */
.nml-header__btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 9px 20px;
    background: #FFFFFF;
    border: 1px solid #D5DAFA;
    border-radius: 8px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    color: #162F6F;
    text-decoration: none;
    transition: all 0.3s;
}

.nml-header__btn:hover {
    background: #FFFFFF80;
    border: 1px solid #D5DAFA;
}

.nml-header__btn:active {
    background: #FFFFFFCC;
    border: 1px solid #D5DAFA;
}

.nml-header.active .nml-header__btn {
    background: #162F6F;
    border: 1px solid #162F6F;
    color: #FFFFFF;
}

.nml-header.active .nml-header__btn:hover {
    background: #0F204D;
    border: 1px solid #040F2D;
}

.nml-header.active .nml-header__btn:active {
    background: #040F2D;
    border: 1px solid #040F2D;
}

/* ── Mega menu ───────────────────────────────────────────────────────────── */
.nml-mega {
    position: fixed;
    left: 50%;
    top: 72px;
    width: calc(100% - 48px);
    max-width: 1208px;
    background: #fff;
    border: 1.5px solid var(--color-line-blue);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(-8px);
    transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
    z-index: 999;
    overflow: hidden;
    box-shadow: 0px 6px 12px 0px #0D0D0D33;
}

.nml-nav__item--mega.is-open > .nml-mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* ── Mega overlay (blur everything behind header + mega) ─────────────────── */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: #06080BB8;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s, visibility 0.22s;
}

body.nml-mega-open::before {
    opacity: 1;
    visibility: visible;
}

.nml-mega__inner {
    display: grid;
    grid-template-columns: 200px 1fr 280px;
    gap: 0;
    min-height: 320px;
}

/* Column headings ("Menu" / "Services") */
.nml-mega__col-title {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
}

/* Left — categories */
.nml-mega__col--left {
    border-right: 1px solid var(--color-line);
    padding: 24px 16px 24px 0;
}

.nml-mega__cats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nml-mega__service-item > a:hover .nml-mega__service-icon img{
    filter: invert(1);
}

/* Класс категории продублирован на её .nml-mega__panel — отсюда достаём услуги */
.nml-mega__panel.country-menu-list .nml-mega__service-item > a:hover .nml-mega__service-icon img{
    filter: invert(0);
}

.nml-mega__cats > li > a {
    display: block;
    padding: 12px 8px;
    background: #FFFFFF;
    border: 1px solid transparent;
    box-shadow: 0 1px 2px transparent;
    border-radius: 8px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    color: #0B101F;
    text-decoration: none;
    transition: all 0.3s;
}

.nml-mega__cats > li:hover > a,
.nml-mega__cats > li.is-active > a {
    color: var(--color-primary, #162F6F);
}

.nml-mega__cats > li.is-active > a {
    background: #FFFFFF;
    border: 1px solid #D5DAFA;
    box-shadow: 0 1px 2px rgba(76, 131, 243, 0.2);
    border-radius: 8px;
}

/* Center — services */
.nml-mega__col--center {
    padding: 24px 32px;
    position: relative;
}

/* Each category panel */
.nml-mega__panel {
    display: none;
}

.nml-mega__panel.is-visible {
    display: block;
}

.nml-mega__services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-content: start;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nml-mega__service-item > a {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 8px;
    background: #FFFFFF;
    border: 1px solid #D5DAFA;
    border-radius: 8px;
    text-decoration: none;
    position: relative;
    transition: all 0.3s;
}

.nml-mega__service-item.nml-mega__top > a {
    border: none;
}

.nml-mega__service-item.nml-mega__top > a::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(99.77deg, #D5DAFA 7.83%, #D5DAFA 97.19%);
    -webkit-mask:
            linear-gradient(#fff 0 0) content-box,
            linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: all;
}

.nml-mega__service-item.nml-mega__top > a:hover::before{
        background: linear-gradient(99.77deg, #162F6F 7.83%, #162F6F97 .19%);
}

.nml-mega__service-item.nml-mega__top > a::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(99.77deg, #162F6F 7.83%, #FF4171 97.19%);
    -webkit-mask:
            linear-gradient(#fff 0 0) content-box,
            linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.nml-mega__service-item > a:hover {
    background: rgba(22, 47, 111, 0.04);
    border: 1px solid #889CF1;
}

.nml-mega__service-item.nml-mega__top > a:hover {
    border: none;
}

.nml-mega__service-icon {
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px;
    width: 36px;
    height: 36px;
    background: #F5F6FA;
    border: 1px solid #D5DAFA;
    border-radius: 8px;
    transition: all 0.3s;
}

.nml-mega__service-item > a:hover .nml-mega__service-icon {
    background: #162F6F;
    border: 1px solid #162F6F;
    border-radius: 8px;
}

.nml-mega__service-item.nml-mega__top > a:hover .nml-mega__service-icon {
    background: linear-gradient(151.52deg, #162F6F 5.12%, #FF4171 171.1%);
    border-radius: 8px;
}

.nml-mega__service-icon img,
.nml-mega__service-icon svg {
    display: block;
    width: 18px;
    height: 18px;
    transition: all 0.3s;
}



.nml-mega__service-item.nml-mega__top > a:hover .nml-mega__service-icon img,
.nml-mega__service-item.nml-mega__top > a:hover .nml-mega__service-icon svg {
    filter: invert(1);
}

.nml-mega__service-text {
    display: flex;
    flex-direction: column;
}

.nml-mega__service-title {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    color: #0B101F;
}

.nml-mega__service-desc {
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
    color: #303D60;
}

/* TOP badge */
.nml-mega__top-badge {
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    padding: 3px 6px;
    background: rgba(255, 65, 113, 0.04);
    border: 1px solid #FF4171;
    border-radius: 4px;
    font-size: 12px;
    line-height: 85%;
    font-weight: 700;
    color: #FF4171;
}

/* Right — promo */
.nml-mega__col--right {
    border-left: 1px solid var(--color-line);
    padding: 24px 0 24px 32px;
}

.nml-mega__promo {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nml-mega__promo--empty {
    display: none;
}

.nml-mega__promo-img {
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
}

.nml-mega__promo-img img {
    display: block;
    width: 100%;
    height: 129px;
    object-fit: contain;
}

.nml-mega__promo-title {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
    color: #0B101F;
}

.nml-mega__promo-desc {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    color: #303D60;
}

.nml-mega__promo-btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 4px;
    max-width: max-content;
    padding: 8px 24px;
    background: #162F6F;
    border: 1px solid #0F204D;
    border-radius: 8px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.3s;
}

.nml-mega__promo-btn:hover {
    background: #0F204D;
}

.nml-mega__promo-btn:active {
    background: #040F2D;
}

/* ── Mobile burger ───────────────────────────────────────────────────────── */
.nml-header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
}

.nml-header__burger span {
    display: block;
    width: 28px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

.nml-header__burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nml-header__burger.is-active span:nth-child(2) { opacity: 0; }
.nml-header__burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav overlay ──────────────────────────────────────────────────── */
.nml-mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 1001;
    visibility: hidden;
    pointer-events: none;
}

.nml-mobile-nav.is-open {
    visibility: visible;
    pointer-events: auto;
}

/* ── Screens container — slides horizontally ─────────────────────────────── */
.nml-mob__screen {
    position: absolute;
    inset: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.nml-mob__screen--root {
    transform: translateX(-100%);
}

.nml-mob__screen.is-active {
    transform: translateX(0);
}

.nml-mob__screen--root.is-active {
    transform: translateX(0);
}

/* ── Header row (logo/back + close) ─────────────────────────────────────── */
.nml-mob__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-line-light, #EEF0FD);
    flex-shrink: 0;
}

.nml-mob__logo img {
    height: 32px;
    width: auto;
    display: block;
}

.nml-header__logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.nml-mob__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--color-text-primary, #0B101F);
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.18s;
    flex-shrink: 0;
}

.nml-mob__close:hover { background: var(--color-bg-secondary, #F5F6FA); }

.nml-mob__back {
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-primary, #0B101F);
    cursor: pointer;
    padding: 0;
    line-height: 24px;
}

/* ── Root list ───────────────────────────────────────────────────────────── */
.nml-mob__list {
    list-style: none;
    margin: 0;
    padding: 24px 20px;
    flex: 1;
}

.nml-mob__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: bold;

    color: var(--color-text-primary, #0B101F);
    text-decoration: none;
    cursor: pointer;
    text-align: left;
    line-height: 24px;
    transition: background 0.15s;
}

.nml-mob__row:hover { background: var(--color-bg-secondary, #F5F6FA); }

.nml-mob__row svg { 
    flex-shrink: 0;
    color: var(--color-text-primary);
}



.nml-mob__item.new-updates-menu-link .nml-mob__row {
    background: #FF417114;
    border: 1px solid var(--color-accent);
    backdrop-filter: blur(4px);
    position: relative;
    gap: 8px;
    border-radius: 8px;
    display: flex;
    justify-content: flex-start;
}

.nml-mob__item.new-updates-menu-link .nml-mob__row::before{
    content: "";
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
}

.nml-mob__item.new-updates-menu-link .nml-mob__row:hover{
    background: #FF41711F!important;
}



/* Language row */
.nml-mob__item--lang .nml-mob__row {
    border-top: 1px solid var(--color-line-light, #EEF0FD);
    margin-top: 8px;
}

.nml-mob__lang-current {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text-secondary, #303D60);
    /* полное название длиннее слага — не даём ему переноситься */
    white-space: nowrap;
}

.nml-mob__lang-chevron {
    transition: transform 0.25s;
}

.nml-mob__item--lang.is-open .nml-mob__lang-chevron {
    transform: rotate(180deg);
}

/* Список языков — раскрывается под строкой, а не отдельным экраном */
.nml-mob__lang-list {
    display: none;
    list-style: none;
    margin: 0;
    padding: 4px 0 8px;
}

.nml-mob__item--lang.is-open .nml-mob__lang-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nml-mob__lang-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 12px;
    padding: 12px 8px;
    border-radius: 12px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    color: var(--color-text-primary, #0B101F);
    text-decoration: none;
    transition: background 0.15s;
}

.nml-mob__lang-item > a:hover {
    background: rgba(22, 47, 111, 0.04);
}

.nml-mob__lang-item.is-current > a {
    background: rgba(22, 47, 111, 0.08);
}

.nml-mob__lang-check {
    flex-shrink: 0;
}

/* ── Footer CTA ──────────────────────────────────────────────────────────── */
.nml-mob__footer {
    padding: 0 20px 32px;
    flex-shrink: 0;
}

.nml-mob__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    background: #162F6F;
    color: #fff;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.nml-mob__cta:hover { background: #0E1A3D; }

/* ── Submenu screen body ─────────────────────────────────────────────────── */
.nml-mob__submenu-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 0 32px;
}

/* Category accordion */
.nml-mob__cat { border-bottom: 1px solid var(--color-line-light, #EEF0FD); }

.nml-mob__cat-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-primary, #0B101F);
    cursor: pointer;
    text-align: left;
    line-height: 24px;
    margin-bottom: 16px;
}

.nml-mob__cat-trigger svg {
    flex-shrink: 0;
    color: var(--color-text-secondary, #303D60);
    transition: transform 0.22s;
}

.nml-mob__cat.is-open .nml-mob__cat-trigger svg {
    transform: rotate(180deg);
}

/* Services list */
.nml-mob__services {
    list-style: none;
    margin: 0;
    padding: 0 0 8px;
    display: none;
}

.nml-mob__cat.is-open .nml-mob__services { 
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 20px;
}

.nml-mob__service > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    text-decoration: none;
    transition: background 0.15s;
    border-radius: 0;
    border: 1px solid #D5DAFA;
    border-radius: 8px;
}

.nml-mob__service > a:hover { background: var(--color-bg-secondary, #F5F6FA); }

.nml-mob__service-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-secondary, #F5F6FA);
    border-radius: 8px;
}

.nml-mob__service-icon img,
.nml-mob__service-icon svg { width: 20px; height: 20px; display: block; }

.nml-mob__service-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 2px;
}

.nml-mob__service-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary, #0B101F);
    line-height: 22px;
}

.nml-mob__service-desc {
    font-size: 12px;
    line-height: 16px;
    color: var(--color-text-secondary, #303D60);
}

/* TOP item — градиентная рамка, как в десктопном мега-меню */
.nml-mob__service.is-top > a {
    background: transparent;
    /* обычную рамку убираем — её роль играет градиент в ::before */
    border: none;
    /* без position ::before спозиционируется по чужому контейнеру */
    position: relative;
}

.nml-mob__service.is-top > a::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(99.77deg, #162F6F 7.83%, #FF4171 97.19%);
    -webkit-mask:
            linear-gradient(#fff 0 0) content-box,
            linear-gradient(#fff 0 0);
    mask:
            linear-gradient(#fff 0 0) content-box,
            linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ── Promo block in submenu ──────────────────────────────────────────────── */
.nml-mob__promo {
    margin: 20px 16px 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-bg-secondary, #F5F6FA);
    padding: 16px;
    border: 1px solid var(--lines-default, #D5DAFA);
}

.nml-mob__promo-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px 10px 0 0;
    margin-bottom: 14px;
}

.nml-mob__promo-title {
    margin: 0 0 6px;
    padding: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-primary, #0B101F);
    line-height: 22px;
}

.nml-mob__promo-desc {
    margin: 0 0 14px;
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: var(--color-text-secondary, #303D60);
}

.nml-mob__promo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 12px 20px;
    background: #162F6F;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.nml-mob__promo-btn:hover { background: #0E1A3D; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .nml-nav,
    .nml-header__lang-wrap,
    .nml-header__btn {
        display: none;
    }

    .nml-header__burger {
        display: flex;
    }
    .nml-header__inner {
        padding: 9px 0;
    }
    .nml-header__logo img {
        height: 26px;
    }
}

@media (min-width: 1025px) {
    .nml-mobile-nav,
    .nml-mob__screen {
        display: none !important;
    }
}

/* ── Dark-text variant (per-page setting) ─────────────────────────────────── */
/* Applied when header_text_color = 'dark' (light/white hero background)      */

.nml-header--dark-text .nml-nav__link {
    color: #0B101F;
}

.nml-header--dark-text .nml-nav__item--active .nml-nav__link {
    color: #0B101F!important;
}

.nml-header--dark-text .nml-nav__link:hover {
    color: #0B101F;
    background: #162F6F14;
}

.nml-header--dark-text .nml-nav__item--mega.is-open > .nml-nav__link {
    background: #FFFFFF;
    border-color: #889CF1;
    color: #0B101F;
}

/* Logo swap: show dark logo by default when header is dark-text */
.nml-header--dark-text .nml-header__logo-default { display: none; }
.nml-header--dark-text .nml-header__logo-dark    { display: block; }

/* Language icon */
.nml-header--dark-text .nml-header__lang-btn svg path {
    stroke: #0B101F;
}

.nml-header--dark-text .nml-header__lang-btn:hover svg path {
    stroke: #162F6F;
}

/* Burger */
.nml-header--dark-text .nml-header__burger span {
    background: #0B101F;
}

/* Once scrolled (active) — already handled by .active rules, no change needed */
