.nx-cfg {
    padding-bottom: 7rem;
}
.nx-cfg__hero {
    padding: 1.5rem 0 0.75rem;
}
.nx-cfg__kicker {
    margin: 0 0 0.4rem;
    color: var(--nx-brand);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.78rem;
}
.nx-cfg__hero h1 {
    margin: 0 0 0.6rem;
    font-family: var(--nx-display);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}
.nx-cfg__shell {
    background: #0b2158;
    color: #fff;
    border-radius: 22px;
    padding: 1.4rem 1rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 18px 40px rgba(11, 33, 88, 0.22);
    scroll-margin-top: calc(var(--nx-header, 4.5rem) + 0.75rem);
}
body:has(.nx-cfg) .nx-wa {
    display: none;
}
.nx-cfg__steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0 0.4rem 1.4rem;
}
.nx-cfg__crumb {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 650;
    min-width: 0;
    cursor: pointer;
}
.nx-cfg__crumb:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.15rem;
    inset-inline-start: calc(50% + 1.15rem);
    width: calc(100% - 2.3rem);
    border-top: 2px dotted rgba(255, 255, 255, 0.32);
}
.nx-cfg__crumb.is-done:not(:last-child)::after {
    border-top-style: solid;
    border-color: #5aa7ff;
}
.nx-cfg__num {
    position: relative;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.55);
    background: #fff;
    color: #0b2158;
    font-size: 0.85rem;
    font-weight: 800;
    z-index: 1;
    overflow: hidden;
}
.nx-cfg__ok {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: scale(0.4);
}
.nx-cfg__crumb.is-on .nx-cfg__num {
    background: #3d8bfd;
    border-color: #3d8bfd;
    color: #fff;
    animation: nx-cfg-pulse 1.6s var(--nx-ease) infinite;
}
.nx-cfg__crumb.is-done .nx-cfg__num {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}
.nx-cfg__crumb.is-done .nx-cfg__n {
    opacity: 0;
}
.nx-cfg__crumb.is-done .nx-cfg__ok {
    opacity: 1;
    transform: scale(1);
    transition: opacity 280ms var(--nx-ease), transform 280ms var(--nx-ease);
}
.nx-cfg__crumb.is-on,
.nx-cfg__crumb.is-done {
    color: #fff;
}
.nx-cfg__crumb strong {
    font-size: 0.78rem;
    line-height: 1.2;
}
.nx-cfg__crumb small {
    display: none;
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.62);
    max-width: 9rem;
}
.nx-cfg__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    background: var(--nx-surface);
    color: var(--nx-ink);
    border-radius: 18px 18px 22px 22px;
    padding: 1.1rem 1rem 1rem;
}
.nx-cfg__form {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}
.nx-cfg__summary {
    background: #f5f8fd;
    border: 1px solid #e4ebf5;
    border-radius: 14px;
    box-shadow: none;
    padding: 1rem;
}
.nx-cfg__ref {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    padding: 0.75rem;
    margin-bottom: 0.7rem;
    border: 1px solid #d9e4f5;
    border-radius: 12px;
    background: #eef4ff;
}
.nx-cfg__ref img {
    width: 96px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--nx-bg);
}
.nx-cfg__ref-kicker,
.nx-cfg__ref-ok {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: #3d8bfd;
}
.nx-cfg__ref-name {
    margin: 0.15rem 0;
    font-weight: 700;
}
.nx-cfg__ref-note {
    margin: 0.2rem 0 0;
    color: var(--nx-muted);
    font-size: 0.82rem;
}
.nx-cfg__ref-change {
    grid-column: 1 / -1;
    justify-self: start;
    min-height: 36px;
    padding-inline: 0.85rem;
    font-size: 0.82rem;
    border-radius: 8px;
}
.nx-cfg__hint {
    margin: 0 0 1rem;
    color: var(--nx-muted);
    font-size: 0.88rem;
}
.nx-cfg__intro {
    text-align: center;
    margin: 0.2rem 0 1.1rem;
}
.nx-cfg__desk {
    display: inline-grid;
    place-items: center;
    color: #9db0cc;
    margin-bottom: 0.35rem;
}
.nx-cfg__heading {
    margin: 0;
    font-family: var(--nx-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: #7b8ba3;
}
.nx-cfg__panel {
    scroll-margin-top: calc(var(--nx-header, 4.5rem) + 0.75rem);
}
.nx-cfg__panel h3,
.nx-cfg__summary h2 {
    margin: 0 0 0.7rem;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7c94;
}
.nx-cfg__lead {
    margin: 0 0 1rem;
    color: var(--nx-muted);
    text-align: center;
}
.nx-cfg__box {
    background: #f4f7fb;
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 0.9rem;
}
.nx-cfg .nx-field {
    position: relative;
    display: block;
    gap: 0;
    padding-top: 0.42rem;
}
.nx-cfg .nx-field > span:first-child {
    position: absolute;
    z-index: 2;
    top: 0;
    inset-inline-start: 0.65rem;
    max-width: calc(100% - 1.2rem);
    padding: 0 0.28rem;
    overflow: hidden;
    background: #fff;
    font-size: 0.72rem;
    font-weight: 650;
    line-height: 1;
    color: #8aa0b8;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.nx-cfg .nx-field:focus-within > span:first-child {
    color: #3d8bfd;
}
.nx-cfg .nx-req,
.nx-cfg .nx-field:focus-within > span:first-child .nx-req {
    color: #dc2626;
    font-style: normal;
    font-weight: 800;
}
.nx-cfg .nx-field input,
.nx-cfg .nx-field select,
.nx-cfg .nx-phone,
.nx-cfg .nx-flag-input {
    width: 100%;
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid #d5deea;
    background: #fff;
    min-height: 46px;
}
.nx-cfg__fields > .nx-field {
    min-width: 0;
}
.nx-cfg .nx-field--phone {
    grid-column: 1 / -1;
}
.nx-cfg .nx-phone {
    display: flex;
    align-items: center;
    min-width: 0;
    padding-inline: 0.45rem;
}
.nx-cfg .nx-field .nx-phone select,
.nx-cfg .nx-field .nx-phone input {
    width: auto;
    min-width: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    min-height: 42px;
}
.nx-cfg .nx-field .nx-phone select {
    flex: 0 0 6.2rem;
}
.nx-cfg .nx-field .nx-phone input[name="phone_national"] {
    flex: 1 1 auto;
}
.nx-cfg .nx-field input:focus,
.nx-cfg .nx-field select:focus,
.nx-cfg .nx-field:focus-within .nx-phone {
    border-color: #3d8bfd;
    box-shadow: 0 0 0 3px rgba(61, 139, 253, 0.16);
    outline: 0;
}
.nx-cfg__panel .nx-cfg__grid,
.nx-cfg__panel .nx-cfg__checks,
.nx-cfg__panel .nx-cfg__plans,
.nx-cfg__panel .nx-cfg__review {
    background: #f4f7fb;
    border-radius: 14px;
    padding: 0.85rem;
}
.nx-cfg__fields {
    display: grid;
    gap: 0.85rem;
}
.nx-cfg__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
}
.nx-cfg__card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 0.75rem;
    row-gap: 0.15rem;
    width: 100%;
    text-align: start;
    padding: 0.9rem;
    border: 1px solid #d5deea;
    border-radius: 10px;
    background: #fff;
    color: inherit;
    font: inherit;
    cursor: pointer;
    transition: border-color var(--nx-fast) var(--nx-ease), background var(--nx-fast) var(--nx-ease), box-shadow var(--nx-fast) var(--nx-ease);
}
.nx-cfg__card .nx-glyph {
    grid-row: 1 / span 2;
    align-self: center;
}
.nx-cfg__card strong {
    font-size: 1rem;
}
.nx-cfg__card span {
    color: var(--nx-muted);
    font-size: 0.84rem;
}
.nx-cfg__card:hover,
.nx-cfg__card:focus-visible {
    border-color: #3d8bfd;
    background: #eef4ff;
}
.nx-cfg__card.is-on {
    border-color: #3d8bfd;
    background: #eef4ff;
    box-shadow: 0 0 0 1px #3d8bfd;
}
.nx-cfg__checks {
    display: grid;
    gap: 0.55rem;
}
.nx-cfg__check,
.nx-cfg__plan {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.55rem 0.7rem;
    align-items: start;
    padding: 0.8rem;
    border: 1px solid #d5deea;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}
.nx-cfg__check.is-on,
.nx-cfg__plan.is-on {
    border-color: #3d8bfd;
    background: #eef4ff;
}
.nx-cfg__check small,
.nx-cfg__plan small {
    display: block;
    color: var(--nx-muted);
    margin-top: 0.15rem;
}
.nx-cfg__plus,
.nx-cfg__price {
    font-weight: 700;
    color: #3d8bfd;
    white-space: nowrap;
}
.nx-cfg__badge {
    display: inline-block;
    margin-inline-start: 0.35rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: #ffe8a3;
    color: #7a4d00;
    font-size: 0.68rem;
    font-weight: 800;
    vertical-align: middle;
}
.nx-cfg__plans {
    display: grid;
    gap: 0.6rem;
}
.nx-cfg__review {
    display: grid;
    gap: 0.7rem;
    margin-bottom: 1rem;
}
.nx-cfg__block {
    border: 1px solid #d5deea;
    border-radius: 10px;
    padding: 0.8rem;
    background: #fff;
}
.nx-cfg__block h3 {
    margin: 0 0 0.35rem;
    font-size: 0.92rem;
    letter-spacing: 0;
    text-transform: none;
}
.nx-cfg__block p {
    margin: 0;
    color: var(--nx-ink-soft);
}
.nx-cfg__edit {
    margin-top: 0.45rem;
    min-height: 34px;
    padding-inline: 0.7rem;
    font-size: 0.8rem;
    border-radius: 8px;
}
.nx-cfg__error {
    color: var(--nx-danger);
    font-weight: 650;
}
.nx-cfg__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-top: 0.6rem;
    padding-top: 0.9rem;
    border-top: 1px solid #e4ebf5;
}
.nx-cfg__help {
    flex: 1 1 11rem;
    min-width: min(100%, 11rem);
}
.nx-cfg__help-title {
    margin: 0;
    font-weight: 800;
    color: #0b2158;
}
.nx-cfg__help-note {
    margin: 0.2rem 0 0.55rem;
    max-width: 16rem;
    color: var(--nx-muted);
    font-size: 0.82rem;
}
.nx-cfg__chip--tel {
    margin-top: 0.15rem;
}
.nx-cfg__help-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.nx-cfg__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 40px;
    padding: 0.35rem 0.8rem;
    border: 1px solid #d5deea;
    border-radius: 10px;
    background: #fff;
    color: #1f3b6e;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
}
.nx-cfg__chip:hover,
.nx-cfg__chip:focus-visible {
    border-color: #3d8bfd;
    color: #0b2158;
    background: #eef4ff;
}
.nx-cfg__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    align-items: center;
    margin-inline-start: auto;
}
.nx-cfg__back {
    margin-inline-end: auto;
    border-radius: 8px;
}
.nx-cfg__go,
button.nx-btn.nx-cfg__go {
    background: #4aa3ff;
    color: #fff;
    border-color: #4aa3ff;
    border-radius: 8px;
    min-width: 10.5rem;
    min-height: 46px;
    padding-inline: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.nx-cfg__go:hover,
.nx-cfg__go:focus-visible,
button.nx-btn.nx-cfg__go:hover,
button.nx-btn.nx-cfg__go:focus-visible {
    background: #2f8ef0;
    color: #fff;
    border-color: #2f8ef0;
}
.nx-cfg__side {
    display: none;
}
.nx-cfg__summary dl {
    margin: 0 0 1rem;
}
.nx-cfg__summary dt {
    margin-top: 0.7rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--nx-muted);
}
.nx-cfg__summary dd {
    margin: 0.2rem 0 0;
}
.nx-cfg__total-label {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--nx-muted);
}
.nx-cfg__total {
    margin: 0.2rem 0 0;
    font-family: var(--nx-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: #0b2158;
}
.nx-cfg--done {
    padding-bottom: 6rem;
}
.nx-cfg__done {
    max-width: 36rem;
    margin: 0.4rem auto 3rem;
    padding: 2.2rem 1.3rem 1.8rem;
    text-align: center;
    background: var(--nx-surface);
    border: 1px solid var(--nx-line);
    border-radius: 22px;
    box-shadow: var(--nx-shadow);
}
.nx-cfg__done h1 {
    margin: 0 0 0.7rem;
    font-family: var(--nx-display);
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    line-height: 1.25;
}
.nx-cfg__done .nx-lead {
    margin: 0 auto 1rem;
    max-width: 32rem;
}
.nx-cfg__tick {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.8rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--nx-success-bg);
    color: var(--nx-success);
    font-size: 1.4rem;
    font-weight: 800;
}
.nx-cfg__code {
    font-size: 1.05rem;
}
.nx-cfg__done-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.2rem;
}
.nx-cfg__side.is-open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 60;
    padding: 4.5rem 1rem 6rem;
    background: rgba(11, 33, 88, 0.45);
}
.nx-cfg__side.is-open .nx-cfg__summary {
    max-height: min(70vh, 32rem);
    overflow: auto;
    background: var(--nx-surface);
}
html.js .nx-cfg [data-animate] {
    opacity: 0;
    transform: translateY(10px);
}
html.js .nx-cfg [data-animate].is-in {
    opacity: 1;
    transform: none;
    transition: opacity 420ms var(--nx-ease), transform 420ms var(--nx-ease);
}
.nx-cfg__card:nth-child(2) { transition-delay: 40ms; }
.nx-cfg__card:nth-child(3) { transition-delay: 80ms; }
.nx-cfg__card:nth-child(4) { transition-delay: 120ms; }
.nx-cfg__card:nth-child(5) { transition-delay: 160ms; }
.nx-cfg__card:nth-child(6) { transition-delay: 200ms; }
.nx-cfg__card:nth-child(7) { transition-delay: 240ms; }
.nx-cfg__card:nth-child(8) { transition-delay: 280ms; }
@keyframes nx-cfg-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(61, 139, 253, 0.45); }
    50% { box-shadow: 0 0 0 8px rgba(61, 139, 253, 0); }
}
@media (min-width: 700px) {
    .nx-cfg__grid,
    .nx-cfg__grid--types,
    .nx-cfg__fields {
        grid-template-columns: 1fr 1fr;
    }
    .nx-cfg__ref {
        grid-template-columns: 96px minmax(0, 1fr) auto;
        align-items: center;
    }
    .nx-cfg__ref-change {
        grid-column: auto;
        justify-self: end;
    }
    .nx-cfg__crumb small {
        display: block;
    }
}
@media (min-width: 992px) {
    .nx-cfg {
        padding-bottom: 2rem;
    }
    .nx-cfg__shell {
        padding: 1.6rem 1.2rem 0;
    }
    .nx-cfg__layout {
        grid-template-columns: minmax(0, 1.6fr) minmax(16rem, 0.85fr);
        padding: 1.4rem 1.2rem 1.2rem;
    }
    .nx-cfg__box .nx-cfg__fields {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
    .nx-cfg__side {
        display: block;
        position: sticky;
        top: calc(var(--nx-header) + 1rem);
    }
    .nx-cfg__estimate {
        display: none !important;
    }
    .nx-cfg__foot {
        flex-wrap: nowrap;
        align-items: center;
    }
    .nx-cfg__help {
        flex: 0 1 15rem;
    }
}
@media (max-width: 991.98px) {
    .nx-cfg {
        padding-bottom: 8.5rem;
    }
    .nx-cfg__crumb small,
    .nx-cfg__crumb strong {
        display: none;
    }
    .nx-cfg__nav {
        justify-content: flex-end;
        padding-top: 0.35rem;
    }
    .nx-cfg__go,
    button.nx-btn.nx-cfg__go {
        min-width: 0;
        flex: 1 1 auto;
        max-width: 16rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .nx-cfg__card,
    html.js .nx-cfg [data-animate],
    html.js .nx-cfg [data-animate].is-in,
    .nx-cfg__crumb.is-on .nx-cfg__num,
    .nx-cfg__crumb.is-done .nx-cfg__ok {
        animation: none;
        transition: none;
        transform: none;
        opacity: 1;
    }
}
[data-theme="dark"] .nx-cfg__shell {
    background: #071536;
}
[data-theme="dark"] .nx-cfg__layout,
[data-theme="dark"] .nx-cfg__card,
[data-theme="dark"] .nx-cfg__check,
[data-theme="dark"] .nx-cfg__plan,
[data-theme="dark"] .nx-cfg__chip,
[data-theme="dark"] .nx-cfg .nx-field input,
[data-theme="dark"] .nx-cfg .nx-field select {
    background: var(--nx-surface);
    color: var(--nx-ink);
}
[data-theme="dark"] .nx-cfg__box,
[data-theme="dark"] .nx-cfg__summary,
[data-theme="dark"] .nx-cfg__panel .nx-cfg__grid,
[data-theme="dark"] .nx-cfg__panel .nx-cfg__checks,
[data-theme="dark"] .nx-cfg__panel .nx-cfg__plans,
[data-theme="dark"] .nx-cfg__panel .nx-cfg__review {
    background: var(--nx-bg-elevated);
}
[data-theme="dark"] .nx-cfg .nx-field > span:first-child {
    background: var(--nx-surface);
    color: var(--nx-muted);
}
[data-theme="dark"] .nx-cfg__help-title,
[data-theme="dark"] .nx-cfg__total,
[data-theme="dark"] .nx-cfg__heading {
    color: var(--nx-ink);
}
