/* no-recolor — Страницы входа типа «Нео» (templates/basic/user/auth/neo/*): вход, регистрация, восстановление пароля, 2FA,
   подтверждение почты. Подключается после neo-landing.css (токены --nl-*, кнопки .nl-btn, язык .nl-lang/.nl-dd, тема, плашки
   котировок .nl-chip/.nl-live и живая линия .nl-chart — оттуда). Раскладка: ПК — слева шапка + карточка формы + короткий подвал,
   справа «липкая» визуальная половина (фото, котировки, слоган); до 1100px — только колонка с формой.
   Анимации — только transform/opacity; «уменьшение движения» гасит их общим правилом neo-landing.css (.nl-body *).
   Старые WebView: без inset/:is/color-mix; у clamp() — запасное значение перед ним. */

.na-body { min-height: 100vh; }
.na-body .d-none { display: none !important; }
.na-sr { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------- каркас ---------------- */
.na-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.na-col { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 100vh; overflow-x: hidden; overflow-x: clip; } /* свечение карточки не даёт горизонтальной прокрутки */
.na-col__bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.na-col__bg .nl-blob--a { width: 760px; height: 760px; right: -380px; top: -360px; }
.na-col__bg .nl-blob--b { width: 620px; height: 620px; left: -320px; bottom: -320px; }
.na-col__grid {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0; opacity: .55;
    background-image: linear-gradient(rgba(var(--nl-t1-rgb), .04) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--nl-t1-rgb), .04) 1px, transparent 1px);
    background-size: 56px 56px; background-position: center top;
    -webkit-mask-image: radial-gradient(60% 55% at 50% 42%, #000 0%, transparent 78%); mask-image: radial-gradient(60% 55% at 50% 42%, #000 0%, transparent 78%);
}

/* шапка: логотип → главная, язык, тема, одна кнопка */
.na-head {
    position: relative; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    min-height: 76px; padding: 0 40px; padding-top: env(safe-area-inset-top, 0px); padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
    padding-left: calc(40px + env(safe-area-inset-left, 0px));
}
.na-logo { flex: 0 1 auto; min-width: 0; }
.na-logo .nl-logo__name { min-width: 0; }
.na-head__tools { display: flex; align-items: center; gap: 8px; flex: none; }
.na-head__cta { max-width: 220px; }
.na-head__cta span { overflow: hidden; text-overflow: ellipsis; }
/* список языков (380px) — от правого края кнопок шапки, а не от кнопки языка: в узкой левой половине (ПК 1100–1280,
   длинная кнопка de/uz) он уходил за левый край колонки и обрезался вместе с флагами; до 640px — свой fixed-список ниже */
@media (min-width: 641px) {
    .na-head__tools { position: relative; }
    .na-head .nl-lang { position: static; }
}

/* место под карточку: по центру колонки (ПК); на телефоне — сразу под шапкой */
.na-main { position: relative; z-index: 2; flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 40px 40px; }

.na-foot { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; padding: 0 40px 28px; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
.na-foot p { max-width: 640px; margin: 0 auto; text-align: center; font-size: 12px; line-height: 1.6; color: var(--nl-t3); }
.na-foot .na-foot__copy { color: var(--nl-t2); font-weight: 500; }

/* ---------------- карточка ---------------- */
.na-card {
    position: relative; width: 100%; max-width: 460px; border-radius: 30px; padding: 1px; background: var(--nl-card-border);
    box-shadow: 0 24px 48px -30px rgba(0, 0, 0, .7);
}
html.nl-light .na-card { box-shadow: 0 24px 48px -30px rgba(30, 24, 70, .35); }
/* фиолетовое свечение вокруг карточки — градиентом, а не тенью с размытием 100+px: такая тень на части устройств
   рисуется «квадратами» (видно в светлой теме) */
.na-card::after {
    content: ""; position: absolute; z-index: -1; left: -60px; right: -60px; top: -40px; bottom: -90px; pointer-events: none;
    background: radial-gradient(closest-side, rgba(124, 92, 255, .22), rgba(124, 92, 255, 0));
}
.na-card--wide { max-width: 580px; }
.na-card__in {
    position: relative; display: flex; flex-direction: column; gap: 20px; border-radius: 29px; padding: 36px 40px 32px;
    background: var(--nl-card-fill); overflow: hidden; isolation: isolate;
}
/* мягкий свет в углу карточки */
.na-card__in::before {
    content: ""; position: absolute; z-index: -1; top: -180px; right: -160px; width: 420px; height: 420px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, rgba(166, 126, 251, .2), rgba(166, 126, 251, 0));
}
/* появление: CSS, без JS — карточка видна, даже если скрипты не загрузились */
.na-card { animation: naCardIn .8s cubic-bezier(.2, .8, .2, 1) both; }
.na-card__in > * { animation: naUp .7s cubic-bezier(.2, .8, .2, 1) both; }
.na-card__in > :nth-child(2) { animation-delay: .06s; }
.na-card__in > :nth-child(3) { animation-delay: .12s; }
.na-card__in > :nth-child(4) { animation-delay: .18s; }
.na-card__in > :nth-child(5) { animation-delay: .24s; }
.na-card__in > :nth-child(n+6) { animation-delay: .3s; }
@keyframes naCardIn { from { opacity: 0; transform: translate3d(0, 28px, 0) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes naUp { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }

/* значок страницы */
.na-badge {
    display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; width: 54px; height: 54px; border-radius: 17px; color: #fff;
    background-image: var(--nl-grad); background-color: #7C5CFF;
    box-shadow: 0 16px 34px -14px rgba(124, 92, 255, .95), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.na-badge svg { width: 26px; height: 26px; }
.na-badge--muted { color: var(--nl-t2); background: var(--nl-glass); background-image: none; box-shadow: inset 0 0 0 1px var(--nl-glass-line); }
.na-card__head { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.na-title { margin: 0; font-size: 30px; font-weight: 700; line-height: 1.12; letter-spacing: -.03em; color: var(--nl-t1); overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.na-sub { margin: 0; font-size: 15px; line-height: 1.6; color: var(--nl-t2); overflow-wrap: break-word; }
.na-sub__mail { color: var(--nl-t1); font-weight: 600; word-break: break-word; overflow-wrap: anywhere; }

/* ---------------- шаги восстановления ---------------- */
.na-steps { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.na-steps__item { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 0 1 auto; font-size: 12.5px; font-weight: 600; color: var(--nl-t3); }
.na-steps__item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.na-steps__item i {
    display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; border-radius: 50%;
    font-style: normal; font-size: 12px; font-weight: 700; color: var(--nl-t2); box-shadow: inset 0 0 0 1.5px var(--nl-line-2);
}
.na-steps__item i svg { width: 14px; height: 14px; }
.na-steps__item.is-on { color: var(--nl-t1); }
.na-steps__item.is-on i { color: #fff; background-image: var(--nl-grad); background-color: #7C5CFF; box-shadow: 0 8px 18px -8px rgba(124, 92, 255, .95); }
.na-steps__item.is-done { color: var(--nl-t2); }
.na-steps__item.is-done i { color: var(--nl-acc); background: rgba(166, 126, 251, .14); box-shadow: inset 0 0 0 1.5px rgba(166, 126, 251, .55); }
html.nl-light .na-steps__item.is-done i { color: #6A47F0; }
.na-steps__line { flex: 1 1 16px; min-width: 12px; height: 2px; border-radius: 2px; background: var(--nl-line-2); }
.na-steps__line.is-done { background-image: var(--nl-grad); }

/* ---------------- сообщения ---------------- */
.na-alert {
    display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5;
    overflow-wrap: break-word; box-shadow: inset 0 0 0 1px currentColor;
}
.na-alert > span { min-width: 0; }
.na-alert__ic { display: inline-flex; flex: none; margin-top: 1px; }
.na-alert__ic svg { width: 18px; height: 18px; }
.na-alert--error { color: #FF9A9D; background: rgba(242, 85, 90, .1); box-shadow: inset 0 0 0 1px rgba(242, 85, 90, .32); }
.na-alert--success { color: #6EE7A0; background: rgba(34, 197, 94, .1); box-shadow: inset 0 0 0 1px rgba(34, 197, 94, .3); }
.na-alert--info, .na-alert--warning { color: #C9B2FF; background: rgba(166, 126, 251, .12); box-shadow: inset 0 0 0 1px rgba(166, 126, 251, .32); }
html.nl-light .na-alert--error { color: #B4232A; background: rgba(217, 58, 63, .1); }
html.nl-light .na-alert--success { color: #0F7A35; background: rgba(18, 147, 63, .1); }
html.nl-light .na-alert--info, html.nl-light .na-alert--warning { color: #5B3FD0; }

/* ---------------- форма ---------------- */
.na-form { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.na-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.na-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 14px; }
/* в половине ширины подсказка помельче (подпись над полем есть) — длинные «Введите фамилию» / «Saisissez votre nom» целиком */
.na-pair .na-input::placeholder { font-size: 14px; }
.na-label { display: block; margin: 0; font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--nl-t2); }
.na-control { position: relative; }
.na-control__ic {
    position: absolute; left: 16px; top: 50%; z-index: 1; display: inline-flex; width: 20px; height: 20px; margin-top: -10px;
    color: var(--nl-t3); pointer-events: none; transition: color .25s ease;
}
.na-control__ic svg { width: 20px; height: 20px; }
.na-control:focus-within .na-control__ic { color: var(--nl-acc); }
.na-input {
    display: block; width: 100%; height: 54px; margin: 0; padding: 0 16px 0 48px; border-radius: 15px;
    border: 1px solid var(--nl-line-2); background: rgba(var(--nl-t1-rgb), .035); color: var(--nl-t1);
    font: 500 15px/1.2 var(--nl-font); letter-spacing: -.005em; outline: none;
    -webkit-appearance: none; appearance: none; box-shadow: none; text-overflow: ellipsis;
    transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
html.nl-light .na-input { background: rgba(255, 255, 255, .5); }
.na-input::placeholder { color: var(--nl-t3); opacity: 1; }
/* наведение — только там, где есть мышь: на телефоне «залипшая» подсветка после тапа выглядит как фокус */
@media (hover: hover) { .na-input:hover { border-color: rgba(166, 126, 251, .45); } }
.na-input:focus { border-color: var(--nl-acc); background: rgba(var(--nl-t1-rgb), .055); box-shadow: 0 0 0 4px rgba(166, 126, 251, .2); }
html.nl-light .na-input:focus { background: rgba(255, 255, 255, .75); }
.na-input[readonly]:not(:focus) { cursor: text; }
.na-input--eye { padding-right: 54px; }
/* автозаполнение браузера: без жёлто-голубой заливки, в цветах темы */
.na-input:-webkit-autofill { -webkit-text-fill-color: var(--nl-t1); caret-color: var(--nl-t1); -webkit-box-shadow: 0 0 0 1000px #17161F inset; transition: background-color 99999s ease 0s; }
html.nl-light .na-input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #E4E3EA inset; }
.na-input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px #17161F inset, 0 0 0 4px rgba(166, 126, 251, .2); }
html.nl-light .na-input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px #E4E3EA inset, 0 0 0 4px rgba(166, 126, 251, .2); }
/* ошибка у поля */
.na-field.is-bad .na-input { border-color: var(--nl-down); box-shadow: 0 0 0 4px rgba(242, 85, 90, .14); }
.na-field.is-bad .na-control__ic { color: var(--nl-down); }
.na-err { display: block; margin: 0; font-size: 13px; line-height: 1.45; font-weight: 500; color: #FF8D91; overflow-wrap: break-word; }
html.nl-light .na-err { color: #C42B31; }
#error-message.na-err:not(.show) { display: none; }

/* показать пароль */
.na-eye {
    position: absolute; right: 6px; top: 50%; z-index: 2; display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; margin-top: -21px; border-radius: 11px; color: var(--nl-t3); background: transparent;
    transition: color .2s ease, background-color .2s ease;
}
.na-eye:hover { color: var(--nl-t1); background: var(--nl-glass); }
.na-eye svg { width: 20px; height: 20px; }
.na-eye__on, .na-eye__off { display: inline-flex; }
.na-eye__off, .na-eye.is-on .na-eye__on { display: none; }
.na-eye.is-on .na-eye__off { display: inline-flex; }
.na-eye.is-on { color: var(--nl-acc); }

/* надёжность пароля: полоска из пяти делений + прежний текст */
.na-meter { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; height: 4px; }
.na-meter i { border-radius: 4px; background: var(--nl-line-2); transition: background-color .3s ease; }
.na-meter[data-level="1"] i:nth-child(-n+1), .na-meter[data-level="2"] i:nth-child(-n+2) { background: #F2555A; }
.na-meter[data-level="3"] i:nth-child(-n+3) { background: #F5B83D; }
.na-meter[data-level="4"] i:nth-child(-n+4), .na-meter[data-level="5"] i { background: #22C55E; }
.na-meter:not([data-level]), .na-meter[data-level="0"] { display: none; }
.password-strength { font-size: 12.5px; line-height: 1.45; color: var(--nl-t3); }
.password-strength:empty { display: none; }
.password-strength.weak { color: #FF8D91; }
.password-strength.medium { color: #F5B83D; }
.password-strength.strong { color: #4ADE80; }
html.nl-light .password-strength.weak { color: #C42B31; }
html.nl-light .password-strength.medium { color: #A15C00; }
html.nl-light .password-strength.strong { color: #0F7A35; }

/* «Запомнить меня» + «Забыли пароль?» */
.na-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; }
.na-check { display: inline-flex; align-items: center; gap: 10px; min-height: 28px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--nl-t2); -webkit-user-select: none; user-select: none; }
.na-check input {
    -webkit-appearance: none; appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border-radius: 6px; cursor: pointer;
    border: 1.5px solid var(--nl-line-2); background: rgba(var(--nl-t1-rgb), .04) no-repeat center; background-size: 14px 14px;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.na-check input:hover { border-color: var(--nl-acc); }
.na-check input:checked {
    border-color: #7C5CFF; background-color: #7C5CFF;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.3 4.3L19 7.2'/%3E%3C/svg%3E");
    box-shadow: 0 6px 14px -6px rgba(124, 92, 255, .9);
}
.na-check input:focus-visible { outline: 2px solid var(--nl-acc); outline-offset: 2px; }

.na-link { color: #B394FF; font-weight: 600; text-decoration: none; transition: color .2s ease; }
.na-link:hover { color: #D2C0FF; text-decoration: underline; text-underline-offset: 3px; }
html.nl-light .na-link { color: #6A47F0; }
html.nl-light .na-link:hover { color: #4F2FD6; }
.na-link i { display: inline-flex; vertical-align: -3px; margin-right: 6px; }
.na-link i svg { width: 16px; height: 16px; }

/* кнопка отправки — градиентная кнопка главной во всю ширину */
.na-submit { width: 100%; height: 56px; padding: 0 24px; border-radius: 16px; font-size: 15.5px; white-space: normal; text-align: center; }
.na-submit svg { width: 20px; height: 20px; }
.na-submit:disabled, .na-submit.is-busy, .na-submit.is-loading { cursor: default; transform: none !important; }
.na-submit:disabled { opacity: .6; box-shadow: none; }
.na-submit.is-busy:disabled, .na-submit.is-loading { opacity: .85; }
.na-spin {
    display: inline-block; flex: none; width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: naSpin .7s linear infinite;
}
@keyframes naSpin { to { transform: rotate(360deg); } }

/* нижняя ссылка карточки */
.na-alt { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; padding-top: 20px; border-top: 1px solid var(--nl-line); text-align: center; font-size: 14.5px; line-height: 1.5; color: var(--nl-t2); }
.na-alt--stack { flex-direction: column; gap: 6px; }
.na-alt p { margin: 0; }

/* соцвход (partials.social_login) и капча (partials.captcha) — те же классы, что на прежних страницах */
.na-form .form-group { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.na-form .form--control-wrapper a {
    display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 18px; border-radius: 15px;
    font-weight: 600; font-size: 14.5px; color: var(--nl-t1); background: var(--nl-glass); box-shadow: inset 0 0 0 1px var(--nl-glass-line);
    transition: background-color .25s ease, transform .3s ease;
}
.na-form .form--control-wrapper a:hover { background: var(--nl-glass-2); transform: translateY(-1px); }
.na-form .google-icon { display: inline-flex; }
.na-form .google-icon svg { width: 22px; height: 22px; }
.na-form .auth-devide { display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--nl-t3); }
.na-form .auth-devide::before, .na-form .auth-devide::after { content: ""; flex: 1; height: 1px; background: var(--nl-line-2); }
.na-form .form--label, .na-form .form-label { display: block; margin: 0; font-size: 13px; font-weight: 600; color: var(--nl-t2); }
.na-form .form--control { display: block; width: 100%; height: 54px; margin: 0; padding: 0 16px; border-radius: 15px; border: 1px solid var(--nl-line-2); background: rgba(var(--nl-t1-rgb), .035); color: var(--nl-t1); font: 500 15px/1.2 var(--nl-font); outline: none; }
.na-form .form--control:focus { border-color: var(--nl-acc); box-shadow: 0 0 0 4px rgba(166, 126, 251, .2); }
.na-form .mb-2, .na-form .mb-3 { margin: 0; }

/* ---------------- код из письма: шесть ячеек (.code-input) ---------------- */
.na-cells { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.na-cells .code-input {
    display: block; width: 100%; min-width: 0; height: 62px; margin: 0; padding: 0; border-radius: 15px; text-align: center;
    border: 1.5px solid var(--nl-line-2); background: rgba(var(--nl-t1-rgb), .035); color: var(--nl-t1); caret-color: var(--nl-acc);
    font: 700 26px/1 var(--nl-font); font-variant-numeric: tabular-nums; outline: none; -webkit-appearance: none; appearance: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease, transform .25s cubic-bezier(.2, .8, .2, 1);
}
html.nl-light .na-cells .code-input { background: rgba(255, 255, 255, .5); }
.na-cells .code-input:focus { border-color: var(--nl-acc); box-shadow: 0 0 0 4px rgba(166, 126, 251, .2); transform: translateY(-2px); }
.na-cells .code-input.filled { border-color: rgba(166, 126, 251, .7); background: rgba(166, 126, 251, .12); }
.na-cells .code-input.error { border-color: var(--nl-down); background: rgba(242, 85, 90, .08); animation: naShake .4s ease-in-out; }
@keyframes naShake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.error-text.na-err { display: none; text-align: center; }
.error-text.na-err.show { display: block; }

/* ---------------- 2FA и подтверждение почты: одно поле + шесть ячеек (partials.verification_code) ---------------- */
.na-otp { position: relative; }
.na-otp .form-label { display: none; }
.na-otp .verification-code { position: relative; height: 62px; }
.na-otp #verification-code {
    position: absolute; top: 0; left: 0; z-index: 2; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 15px;
    background: transparent; color: transparent; -webkit-text-fill-color: transparent; caret-color: transparent; text-indent: -9999px;
    font-size: 16px; outline: none; box-shadow: none; overflow: hidden; -webkit-appearance: none; appearance: none; cursor: text;
}
.na-otp #verification-code::selection { background: transparent; }
.na-otp #verification-code:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px transparent inset; }
.na-otp .boxes { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; pointer-events: none; }
.na-otp .boxes span {
    position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; height: 62px; border-radius: 15px;
    border: 1.5px solid var(--nl-line-2); background: rgba(var(--nl-t1-rgb), .035); color: var(--nl-t1);
    font: 700 26px/1 var(--nl-font); font-variant-numeric: tabular-nums;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease, transform .25s cubic-bezier(.2, .8, .2, 1);
}
html.nl-light .na-otp .boxes span { background: rgba(255, 255, 255, .5); }
.na-otp .verification-code.is-focus .boxes span { border-color: rgba(166, 126, 251, .35); }
.na-otp .boxes span.is-filled { border-color: rgba(166, 126, 251, .7); background: rgba(166, 126, 251, .12); }
.na-otp .boxes span.cursor-active { border-color: var(--nl-acc); box-shadow: 0 0 0 4px rgba(166, 126, 251, .2); transform: translateY(-2px); }
.na-otp .boxes span.cursor-active::after { content: ""; position: absolute; left: 50%; top: 50%; width: 2px; height: 28px; margin: -14px 0 0 -1px; border-radius: 2px; background: var(--nl-acc); animation: naCaret 1s steps(1) infinite; }
@keyframes naCaret { 50% { opacity: 0; } }
.na-otp .verification-code.error-state .boxes span { border-color: var(--nl-down); background: rgba(242, 85, 90, .08); animation: naShake .4s ease-in-out; }

/* ---------------- визуальная половина (ПК) ---------------- */
.na-visual { position: -webkit-sticky; position: sticky; top: 0; align-self: start; height: 100vh; padding: 16px 16px 16px 0; z-index: 1; }
.na-visual__in {
    position: relative; height: 100%; min-height: 560px; border-radius: 32px; overflow: hidden; isolation: isolate; background: #0B0A13;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px -40px rgba(0, 0, 0, .8);
    /* светлая тема: половина остаётся «тёмным островом» (как цифры на фото у «О нас») */
    --nl-up: #22C55E; --nl-down: #F2555A;
}
.na-visual__photo { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -2; display: block; }
.na-visual__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; opacity: .9; }
html.nl-anim .na-visual__photo img { animation: naZoom 26s ease-in-out infinite alternate; }
@keyframes naZoom { from { transform: scale(1.02); } to { transform: scale(1.1) translate3d(-1.5%, 1%, 0); } }
.na-visual__in::after {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -1; pointer-events: none;
    background:
        linear-gradient(180deg, rgba(9, 8, 17, .5) 0%, rgba(9, 8, 17, .12) 30%, rgba(9, 8, 17, .35) 55%, rgba(9, 8, 17, .9) 82%, rgba(9, 8, 17, .97) 100%),
        radial-gradient(70% 50% at 30% 40%, rgba(124, 92, 255, .22), rgba(124, 92, 255, 0));
}
.na-visual__blob.nl-blob--a { z-index: -1; width: 640px; height: 640px; right: -240px; top: -260px; }
.na-visual__grid {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -1; opacity: .7; pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(60% 50% at 50% 34%, #000 0%, transparent 80%); mask-image: radial-gradient(60% 50% at 50% 34%, #000 0%, transparent 80%);
}
/* котировки: те же плашки, что на главной (.nl-chip / .nl-live), — своя расстановка */
.na-stage.nl-stage { position: absolute; top: 7%; left: 7%; right: 7%; height: 50%; perspective: none; }
/* живая карточка — по центру; плашки — по углам, не заходя на неё (сверху справа, над ней слева, снизу справа) */
.na-stage .nl-chip--1 { top: 0; right: 2%; left: auto; bottom: auto; }
.na-stage .nl-chip--2 { top: 14%; left: 0; right: auto; bottom: auto; }
.na-stage .nl-chip--3 { bottom: 0; right: 10%; left: auto; top: auto; }
.na-stage .na-live { top: 50%; left: 50%; right: auto; margin: -90px 0 0 -150px; }
.na-stage .na-live .nl-live__in { width: 300px; padding: 16px 18px 14px; }
.na-stage .na-live .nl-live__px { font-size: 24px; }
.na-stage .na-live .nl-chart { height: 96px; }
html.nl-light .na-visual .nl-chip__in, html.nl-light .na-visual .nl-live__in {
    background: rgba(28, 26, 40, .62); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 24px 48px -20px rgba(0, 0, 0, .7);
}
/* слоган внизу */
.na-visual__copy { position: absolute; left: 44px; right: 44px; bottom: 40px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; color: #fff; }
.na-visual__title { margin: 0; max-width: 560px; font-size: 38px; font-size: clamp(30px, 2.7vw, 46px); font-weight: 700; line-height: 1.06; letter-spacing: -.035em; color: #fff; overflow-wrap: break-word; }
.na-visual__lead { max-width: 500px; margin: 0; font-size: 15.5px; line-height: 1.6; color: rgba(255, 255, 255, .72); }
.na-visual__trust { display: flex; flex-wrap: wrap; gap: 8px; }
.na-visual__trust span {
    display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 14px 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 600;
    color: rgba(255, 255, 255, .88); background: rgba(242, 242, 255, .09); box-shadow: inset 0 0 0 1px rgba(242, 242, 255, .15);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.na-visual__trust i { display: inline-flex; color: #C9B2FF; }
.na-visual__trust i svg { width: 18px; height: 18px; }
html.nl-anim .na-visual__copy > * { animation: naUp .9s cubic-bezier(.2, .8, .2, 1) both; }
html.nl-anim .na-visual__copy > :nth-child(2) { animation-delay: .1s; }
html.nl-anim .na-visual__copy > :nth-child(3) { animation-delay: .2s; }
html.nl-anim .na-visual__copy > :nth-child(4) { animation-delay: .3s; }

/* невысокий экран ПК: плашки компактнее, слоган меньше */
@media (min-width: 1100px) and (max-height: 760px) {
    .na-stage.nl-stage { top: 5%; height: 46%; }
    .na-stage .na-live { margin-top: -88px; }
    .na-stage .nl-chip--2 { display: none; }
    .na-stage .na-live .nl-chart { height: 70px; }
    .na-visual__title { font-size: 32px; }
    .na-visual__lead { display: none; }
}

/* ---------------- планшет и телефон: одна колонка, без визуальной половины ---------------- */
@media (max-width: 1099px) {
    .na-page { display: block; }
    .na-visual { display: none; }
    .na-col { min-height: 100vh; }
    .na-main { justify-content: flex-start; padding-top: 32px; }
}
@media (max-width: 768px) {
    .na-head { min-height: 64px; padding-left: calc(20px + env(safe-area-inset-left, 0px)); padding-right: calc(20px + env(safe-area-inset-right, 0px)); }
    /* на главной язык и тема на телефоне спрятаны в боковое меню — здесь меню нет, они в шапке */
    .na-head .nl-lang { display: block; }
    .na-head .nl-theme { display: inline-flex; }
    .na-main { padding: 12px 20px 28px; }
    .na-foot { padding-left: 20px; padding-right: 20px; }
    /* шрифт полей 16px — iOS (и на iPad) не увеличивает страницу при фокусе */
    .na-input, .na-form .form--control { font-size: 16px; }
}
@media (max-width: 640px) {
    .na-head__tools { gap: 6px; }
    .na-head .nl-icon-btn { height: 40px; min-width: 40px; }
    .na-head .nl-lang__code { display: none; }
    .na-head .nl-lang__btn { padding: 0 8px 0 10px; }
    .na-head__cta.nl-btn--md { height: 40px; padding: 0 14px; font-size: 13.5px; max-width: 150px; }
    /* язык: список на всю ширину экрана под шапкой */
    .na-head .nl-dd { position: fixed; top: calc(64px + env(safe-area-inset-top, 0px)); left: 12px; right: 12px; width: auto; max-height: 70vh; transform-origin: top center; }
    .na-main { padding: 6px 16px 24px; }
    .na-foot { padding-left: 16px; padding-right: 16px; }
    .na-card { border-radius: 26px; }
    .na-card__in { gap: 18px; padding: 26px 20px 22px; border-radius: 25px; }
    .na-badge { width: 48px; height: 48px; border-radius: 15px; }
    .na-badge svg { width: 23px; height: 23px; }
    .na-title { font-size: 25px; }
    .na-sub { font-size: 14.5px; }
    .na-form { gap: 16px; }
    .na-input { height: 52px; }
    .na-cells { gap: 7px; }
    .na-cells .code-input { height: 56px; font-size: 23px; border-radius: 13px; }
    .na-otp .verification-code { height: 56px; }
    .na-otp .boxes { gap: 7px; }
    .na-otp .boxes span { height: 56px; font-size: 23px; border-radius: 13px; }
    .na-submit { height: 54px; }
    .na-alt { padding-top: 18px; font-size: 14px; }
    .na-steps__item:not(.is-on) span { display: none; }
}
/* Имя и Фамилия рядом — только когда подсказки помещаются целиком; на телефоне (до 560px) поля друг под другом:
   в половине ширины «Введите фамилию» обрезалась. Кнопка над клавиатурой — neo-auth.js. */
@media (max-width: 560px) {
    .na-pair { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
    .na-logo .nl-logo__name { display: none; }
}
@media (max-width: 360px) {
    .na-card__in { padding: 22px 16px 20px; }
    .na-title { font-size: 23px; }
    .na-cells, .na-otp .boxes { gap: 5px; }
}
/* кнопка отправки не прячется под клавиатурой при прокрутке к полю */
.na-form .na-submit { scroll-margin-bottom: 24px; }
.na-input, .code-input { scroll-margin-top: 90px; scroll-margin-bottom: 110px; }

/* ============ ПК: единый фон на весь экран, карточка формы — по центру (заказчик 08.10.2026: «2 экрана имеют 2 разных фона —
   центрировать окно входа, чтобы оно эти 2 фона в себя брало и соединяло: ощущение одного целого») ============
   Визуальная половина становится общим фоном страницы (fixed, во всю ширину, без рамки): слева темнее — под слоганом, к правому краю
   светлее — под котировками; стеклянная карточка по центру пропускает обе части фона. Телефон и планшет (< 1100px) — как были. */
@media (min-width: 1100px) {
    .na-page { display: block; position: relative; }
    .na-col { z-index: 1; min-height: 100vh; overflow: visible; }
    .na-col__bg { display: none; }
    .na-visual { position: fixed; top: 0; left: 0; right: 0; bottom: auto; width: 100%; height: 100vh; padding: 0; z-index: 0; }
    .na-visual__in { height: 100%; min-height: 0; border-radius: 0; box-shadow: none; }
    .na-visual__photo img { object-position: 62% 50%; }
    .na-visual__in::after {
        background:
            linear-gradient(90deg, rgba(9, 8, 17, .93) 0%, rgba(9, 8, 17, .8) 26%, rgba(9, 8, 17, .46) 52%, rgba(9, 8, 17, .26) 78%, rgba(9, 8, 17, .38) 100%),
            linear-gradient(180deg, rgba(9, 8, 17, .5) 0%, rgba(9, 8, 17, 0) 20%, rgba(9, 8, 17, 0) 68%, rgba(9, 8, 17, .78) 100%);
    }
    .na-visual__grid { -webkit-mask-image: radial-gradient(46% 52% at 50% 46%, #000 0%, transparent 80%); mask-image: radial-gradient(46% 52% at 50% 46%, #000 0%, transparent 80%); }
    .na-main { padding: 8px 40px 28px; }
    .na-foot p { max-width: 520px; }
    /* карточка — стекло поверх стыка тёмной и фиолетовой частей */
    .na-card__in {
        background: rgba(13, 12, 21, .56);
        -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%);
    }
    .na-card::after { left: -90px; right: -90px; top: -60px; bottom: -110px; background: radial-gradient(closest-side, rgba(124, 92, 255, .3), rgba(124, 92, 255, 0)); }
    /* котировки — справа от карточки, слоган — слева */
    .na-stage.nl-stage { top: 13%; left: calc(50% + 270px); right: 3%; height: 60%; }
    .na-stage .nl-chip--2 { top: 16%; left: 0; }
    .na-visual__copy { left: 56px; right: auto; bottom: 112px; width: calc(50% - 330px); max-width: 520px; }
    .na-visual__title { font-size: 34px; font-size: clamp(26px, 2.4vw, 42px); }
    /* светлая тема — тоже цельная: светлый фон с теми же волнами, светлые плашки, тёмный текст */
    html.nl-light .na-visual.nl-dark-scope {
        --nl-t1: #22232F; --nl-t1-rgb: 34, 35, 47;
        --nl-t2: rgba(34, 35, 47, .74); --nl-t3: rgba(34, 35, 47, .54); --nl-t4: rgba(34, 35, 47, .3);
        --nl-line: rgba(34, 35, 47, .1); --nl-line-2: rgba(34, 35, 47, .17);
        --nl-glass: rgba(255, 255, 255, .34); --nl-glass-2: rgba(255, 255, 255, .55); --nl-glass-line: rgba(255, 255, 255, .55);
        --nl-grad-text: linear-gradient(100deg, #7C4FE8 0%, #6A47F0 45%, #3E6CE6 100%);
    }
    html.nl-light .na-visual__in { background: #CFCFD2; --nl-up: #12933F; --nl-down: #D93A3F; }
    html.nl-light .na-visual__photo img { opacity: .62; }
    html.nl-light .na-visual__in::after {
        background:
            linear-gradient(90deg, rgba(207, 207, 210, .96) 0%, rgba(207, 207, 210, .86) 26%, rgba(207, 207, 210, .55) 52%, rgba(207, 207, 210, .34) 78%, rgba(207, 207, 210, .45) 100%),
            linear-gradient(180deg, rgba(207, 207, 210, .55) 0%, rgba(207, 207, 210, 0) 20%, rgba(207, 207, 210, 0) 68%, rgba(207, 207, 210, .85) 100%);
    }
    html.nl-light .na-visual__grid { opacity: .35; }
    html.nl-light .na-visual .nl-chip__in, html.nl-light .na-visual .nl-live__in {
        background: rgba(255, 255, 255, .6); color: #22232F; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .75), 0 24px 48px -24px rgba(40, 30, 90, .45);
    }
    html.nl-light .na-card__in { background: rgba(236, 236, 241, .62); }
    html.nl-light .na-visual__title { color: #22232F; }
    html.nl-light .na-visual__lead { color: rgba(34, 35, 47, .74); }
    html.nl-light .na-visual__trust span { color: #22232F; background: rgba(255, 255, 255, .45); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .75); }
    html.nl-light .na-visual__trust i { color: #6A47F0; }
}
/* узкий ПК: справа места мало — только живая карточка и ETH; слева — только заголовок слогана */
@media (min-width: 1100px) and (max-width: 1359px) {
    .na-stage .nl-chip--2, .na-stage .nl-chip--3 { display: none; }
    .na-visual__lead, .na-visual__trust { display: none; }
    .na-stage .na-live .nl-live__in { width: 260px; }
    .na-stage .na-live { margin-left: -130px; }
}
/* ============ ПК: регистрация компактно, без прокрутки (заказчик 08.10.2026: «окно регистрации меньше, чтобы не было скролла») ============
   Почта и телефон, пароль и подтверждение — попарно в строку (поля те же, только раскладка), поля и отступы ниже; значок над заголовком —
   слева от заголовка. Без :has (старый браузер) — поля по одному в строку, как раньше. */
@media (min-width: 1100px) {
    .na-card--wide { max-width: 640px; }
    .na-card--wide .na-card__in { gap: 16px; padding: 28px 34px 24px; }
    .na-card--wide .na-badge { position: absolute; top: 28px; right: 34px; width: 44px; height: 44px; border-radius: 14px; }
    .na-card--wide .na-badge svg { width: 22px; height: 22px; }
    .na-card--wide .na-title { font-size: 26px; padding-right: 60px; }
    .na-card--wide .na-sub { font-size: 14px; margin-top: -4px; }
    .na-card--wide .na-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
    .na-card--wide .na-form > * { grid-column: 1 / -1; }
    .na-card--wide .na-form > .na-field:has(#na-email), .na-card--wide .na-form > .na-field:has(#na-mobile),
    .na-card--wide .na-form > .na-field:has(#password), .na-card--wide .na-form > .na-field:has(#password_confirmation) { grid-column: auto; }
    .na-card--wide .na-pair { gap: 14px; }
    .na-card--wide .na-field { gap: 6px; }
    .na-card--wide .na-input { height: 46px; border-radius: 13px; font-size: 14.5px; }
    .na-card--wide .na-submit { height: 50px; margin-top: 4px; }
    .na-card--wide .na-alt { padding-top: 14px; font-size: 14px; }
    /* широкая карточка: плашки и слоган отодвинуты от неё */
    .na-body:has(.na-card--wide) .na-stage.nl-stage { left: calc(50% + 350px); }
    .na-body:has(.na-card--wide) .na-visual__copy { width: calc(50% - 400px); }
    .na-body:has(.na-card--wide) .na-stage .nl-chip--2 { display: none; }
}
@media (min-width: 1100px) and (max-width: 1499px) {
    .na-body:has(.na-card--wide) .na-visual__copy, .na-body:has(.na-card--wide) .na-stage .nl-chip--3 { display: none; }
    .na-body:has(.na-card--wide) .na-stage .na-live { display: none; }
}

/* ============ установка приложения (neo-install.blade.php): шаги, кнопка APK, примечание для iPhone — без прокрутки ============ */
.na-card--app { max-width: 520px; }
.na-card--app .na-card__in { gap: 16px; padding: 30px 34px 26px; }
.na-badge--app svg { width: 28px; height: 28px; }
.na-appsteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.na-appsteps li {
    display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border-radius: 16px;
    background: rgba(var(--nl-t1-rgb), .04); box-shadow: inset 0 0 0 1px var(--nl-line);
}
.na-appsteps__n {
    display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; font-size: 14px; font-weight: 700; color: #fff;
    background-image: var(--nl-grad); background-color: #7C5CFF; box-shadow: 0 10px 22px -12px rgba(124, 92, 255, .9);
}
.na-appsteps__tx { min-width: 0; }
.na-appsteps__tx b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.35; color: var(--nl-t1); overflow-wrap: break-word; }
.na-appsteps__tx span { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.5; color: var(--nl-t2); overflow-wrap: break-word; }
.na-appdl { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; }
.na-appdl svg { width: 20px; height: 20px; flex: none; }
.na-apphint { margin: -6px 0 0; font-size: 12px; line-height: 1.5; text-align: center; color: var(--nl-t3); }
.na-appios {
    display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 10px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.5; color: var(--nl-t2);
    background: rgba(var(--nl-t1-rgb), .035);
}
.na-appios svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--nl-acc); }
@media (max-width: 640px) {
    .na-card--app .na-card__in { gap: 12px; padding: 20px 18px 18px; }
    .na-card--app .na-sub, .na-card--app .na-badge--app { display: none; }
    .na-card--app .na-title { font-size: 24px; }
    .na-appsteps { gap: 8px; }
    .na-appsteps li { padding: 10px 12px; gap: 10px; grid-template-columns: 28px minmax(0, 1fr); }
    .na-appsteps__n { width: 28px; height: 28px; font-size: 13px; }
    .na-appsteps__tx b { font-size: 14px; }
    .na-appsteps__tx span { font-size: 12px; line-height: 1.45; }
}
/* ПК: шаги — в один ряд из трёх колонок, значок справа от заголовка — карточка помещается на экран без прокрутки */
@media (min-width: 1100px) {
    .na-card--wide.na-card--app { max-width: 680px; }
    .na-card--app .na-card__in { gap: 16px; padding: 28px 32px 24px; }
    .na-card--app .na-badge { position: absolute; top: 26px; right: 32px; width: 46px; height: 46px; border-radius: 14px; }
    .na-card--app .na-title { font-size: 26px; padding-right: 64px; }
    .na-appsteps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .na-appsteps li { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px; align-content: start; }
    .na-appsteps__tx span { font-size: 12px; }
}
@media (min-width: 1100px) and (max-height: 820px) {
    .na-card--app .na-apphint { display: none; }
    .na-appsteps__tx span { line-height: 1.4; }
}
/* шапка карточки — по центру: значок над заголовком, заголовок и подзаголовок по центру (заказчик 08.10.2026: «центрируй иконки»);
   поля формы — как были, по левому краю. Перекрывает «значок справа от заголовка» у регистрации и установки приложения. */
.na-card .na-badge { align-self: center; }
.na-card__head { text-align: center; }
.na-card .na-title, .na-card .na-sub { margin-left: auto; margin-right: auto; }
@media (min-width: 1100px) {
    .na-card--wide .na-badge, .na-card--app .na-badge { position: relative; top: auto; right: auto; width: 46px; height: 46px; border-radius: 14px; }
    .na-card--wide .na-title, .na-card--app .na-title { padding-right: 0; }
    .na-card--wide .na-card__in { gap: 14px; }
}
@media (min-width: 1100px) and (max-height: 820px) { .na-card--app .na-badge { display: none; } }
/* телефон: на странице установки — без длинного предупреждения о рисках в подвале (торговли тут нет) и без подсказки под кнопкой: всё на один экран */
@media (max-width: 640px) {
    .na-body:has(.na-card--app) .na-foot p:not(.na-foot__copy) { display: none; }
    .na-card--app .na-apphint { display: none; }
}
