/* ============================================================
   RESET
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================================
   ОТКЛЮЧЕНИЕ ВЫДЕЛЕНИЯ ТЕКСТА
   ============================================================ */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input,
textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* ============================================================
   BASE
   ============================================================ */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    touch-action: manipulation;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #1e293b;
    background: #f5f7fa;
    min-height: 100vh;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
    overscroll-behavior-y: none;
}

body.modal-open {
    overflow: hidden;
    touch-action: none;
}

.container {
    width: 100%;
    max-width: 820px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    padding: 48px;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    padding-bottom: 24px;
    margin-bottom: 32px;
    border-bottom: 1px solid #eef0f2;
}

.logo {
    display: inline-block;
    max-width: 200px;
    text-decoration: none;
}

.logo img {
    display: block;
    width: 100%;
    height: auto;
}

/* ============================================================
   TITLE
   ============================================================ */
h1 {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: #1e293b;
    margin-bottom: 12px;
}

h1 .highlight {
    color: #2563eb;
}

.subtitle {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: #64748b;
    margin-bottom: 32px;
}

.subtitle strong {
    color: #1e293b;
    font-weight: 600;
}

/* ============================================================
   TERMS
   ============================================================ */
.terms {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #e8ecf0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 36px;
}

.term-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 88px;
    padding: 20px 12px;
    text-align: center;
    background: #ffffff;
}

.term-item .number {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.2px;
    color: #1e293b;
    white-space: nowrap;
}

.term-item .number .small {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}

.term-item .number .rub {
    font-size: 14px;
    font-weight: 600;
}

.term-item .label {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2px;
    color: #94a3b8;
    white-space: nowrap;
}

.term-item.accent {
    background: #f8faff;
}

.term-item.accent .number,
.term-item.accent .label {
    color: #2563eb;
}

/* ============================================================
   FORM
   ============================================================ */
.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 28px;
}

.form-row[data-cols="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.form-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #475569;
    margin-bottom: 8px;
}

.value-display {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.2px;
    color: #1e293b;
    margin-bottom: 12px;
    font-variant-numeric: tabular-nums;
}

.value-display small {
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
    margin-left: 2px;
}

/* ============================================================
   RANGE SLIDER
   ============================================================ */
input[type="range"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 5px;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    background: #e2e8f0;
    border-radius: 3px;
    cursor: pointer;
    touch-action: none;
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 5px;
    background: transparent;
    border: none;
    border-radius: 3px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    margin-top: -7.5px;
    background: #2563eb;
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

input[type="range"]:hover::-webkit-slider-thumb {
    transform: scale(1.1);
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.5);
}

input[type="range"]:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25),
                0 2px 8px rgba(37, 99, 235, 0.35);
}

input[type="range"]::-moz-range-track {
    height: 5px;
    background: transparent;
    border: none;
    border-radius: 3px;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #2563eb;
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

input[type="range"]:hover::-moz-range-thumb {
    transform: scale(1.1);
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.5);
}

input[type="range"]:focus-visible::-moz-range-thumb {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25),
                0 2px 8px rgba(37, 99, 235, 0.35);
}

input[type="range"]::-ms-track {
    height: 5px;
    background: transparent;
    border: none;
    color: transparent;
}

input[type="range"]::-ms-thumb {
    width: 20px;
    height: 20px;
    background: #2563eb;
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
    cursor: pointer;
}

input[type="range"]::-ms-fill-lower,
input[type="range"]::-ms-fill-upper {
    background: transparent;
    border: none;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 10px;
    font-weight: 500;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
}

/* ============================================================
   PAYMENT BLOCK
   ============================================================ */
.payment-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px 28px;
    margin: 8px 0 28px;
    background: #f8faff;
    border: 1px solid #e8edf6;
    border-radius: 12px;
}

.payment-left {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 14px;
}

.payment-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #475569;
}

.payment-amount {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: #1e293b;
    font-variant-numeric: tabular-nums;
}

.payment-amount small {
    font-size: 18px;
    font-weight: 500;
    color: #94a3b8;
    margin-left: 2px;
}

.payment-right {
    text-align: right;
}

.payment-detail {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

.payment-detail strong {
    color: #1e293b;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.payment-sub {
    margin-top: 4px;
    font-size: 12px;
    color: #94a3b8;
}

.payment-sub strong {
    color: #64748b;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ============================================================
   BUTTON
   ============================================================ */
.btn-submit {
    display: block;
    width: 100%;
    padding: 18px 30px;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1;
    color: #ffffff;
    background: #2563eb;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.btn-submit:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.btn-submit:active {
    transform: scale(0.99);
}

.btn-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #eef0f2;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.footer-link {
    display: inline-block;
    padding: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-link:hover {
    color: #2563eb;
}

.footer-link.is-active {
    color: #2563eb;
    font-weight: 600;
}

.footer-link:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 3px;
    border-radius: 2px;
}

.footer-copy {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.5;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    visibility: hidden;
    pointer-events: none;
}

.modal.is-open {
    visibility: visible;
    pointer-events: auto;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(245, 247, 250, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.18s ease-out;
    pointer-events: auto;
}

.modal.is-open .modal-overlay {
    opacity: 1;
}

.modal-positioner {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: none;
    overflow: hidden;
}

.modal-window {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 32px 28px 24px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.3);
    text-align: center;
    pointer-events: auto;

    opacity: 0;
    transform: translateY(16px) scale(0.96);
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                max-height 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.is-open .modal-window {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #1e293b;
    margin-bottom: 8px;
}

.modal-text {
    font-size: 13.5px;
    line-height: 1.5;
    color: #64748b;
    margin-bottom: 22px;
}

.modal-text strong {
    color: #1e293b;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.modal-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #475569;
}

.modal-input {
    display: block;
    width: 100%;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.2px;
    color: #1e293b;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    font-variant-numeric: tabular-nums;
}

.modal-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.modal-input:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.modal-input.is-invalid {
    border-color: #fca5a5;
    background: #fef2f2;
}

.modal-button {
    display: block;
    width: 100%;
    padding: 15px 20px;
    margin-top: 6px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: #ffffff;
    background: #2563eb;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.modal-button:hover:not(:disabled) {
    background: #1d4ed8;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.modal-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
}

.modal-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.modal-legal {
    margin-top: 14px;
    font-size: 11px;
    line-height: 1.4;
    color: #94a3b8;
}

/* ----- Success state ----- */
.modal-success {
    padding: 8px 0 4px;
}

.modal-success .modal-icon {
    font-size: 44px;
    line-height: 1;
    margin-bottom: 12px;
}

.modal-success .modal-title {
    margin-bottom: 10px;
}

.modal-success .modal-text {
    margin-bottom: 20px;
}

/* ----- Call screen ----- */
.modal-call-number {
    display: block;
    margin: 18px 0 14px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.4px;
    color: #2563eb;
    text-align: center;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.modal-call-number a {
    color: inherit;
    text-decoration: none;
    border-bottom: 2px dashed rgba(37, 99, 235, 0.4);
    padding-bottom: 2px;
    transition: border-color 0.15s ease;
}

.modal-call-number a:hover {
    border-bottom-color: #2563eb;
}

.modal-timer {
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 16px;
}

.modal-timer strong {
    color: #1e293b;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.modal-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 16px;
    background: #f8faff;
    border: 1px solid #e8edf6;
    border-radius: 10px;
    font-size: 13.5px;
    color: #475569;
}

.modal-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(37, 99, 235, 0.2);
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: modalSpin 0.8s linear infinite;
}

@keyframes modalSpin {
    to { transform: rotate(360deg); }
}

/* ----- Modal link buttons ----- */
.modal-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
}

.modal-link {
    display: inline-block;
    padding: 8px 4px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    color: #2563eb;
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(37, 99, 235, 0.3);
    text-underline-offset: 3px;
    transition: color 0.15s ease, text-decoration-color 0.15s ease, opacity 0.15s ease;
}

.modal-link:hover:not(:disabled) {
    color: #1d4ed8;
    text-decoration-color: #1d4ed8;
}

.modal-link:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 3px;
    border-radius: 4px;
}

.modal-link:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ----- Suggest (DaData) ----- */
.modal-suggest {
    position: relative;
}

.modal-suggest-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 10;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    max-height: 240px;
    overflow-y: auto;
    display: none;
}

.modal-suggest-list.is-open {
    display: block;
}

.modal-suggest-item {
    padding: 11px 14px;
    font-size: 13.5px;
    line-height: 1.4;
    color: #1e293b;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.12s ease;
}

.modal-suggest-item:last-child {
    border-bottom: none;
}

.modal-suggest-item:hover {
    background: #f8faff;
}

#profileForm .modal-input + .modal-label {
    margin-top: 4px;
}

#profileForm .modal-input {
    margin-bottom: 4px;
}

/* ----- Bank verification ----- */
.modal-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    margin: 0 0 18px;
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid #e8edf6;
    border-radius: 10px;
    text-align: left;
    font-size: 13px;
    line-height: 1.4;
}

.modal-summary dt {
    color: #94a3b8;
    font-weight: 500;
    white-space: nowrap;
}

.modal-summary dd {
    margin: 0;
    color: #1e293b;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 12px;
    line-height: 1.45;
    color: #64748b;
    font-weight: 400;
    text-transform: none;
}

.modal-checkbox span {
    text-transform: none;
    font-size: 12px;
    font-weight: 400;
    color: #64748b;
    line-height: 1.45;
}

.modal-checkbox input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: #2563eb;
    cursor: pointer;
}

.modal-warning {
    margin: 14px 0 0;
    padding: 0;
    background: transparent;
    border: none;
    font-size: 12px;
    line-height: 1.4;
    color: #94a3b8;
    text-align: center;
    text-transform: none;
    font-weight: 400;
}

.modal-warning strong {
    font-weight: 700;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}

/* ============================================================
   ПРИМЕР НОМЕРА И ЦЕНТРИРОВАНИЕ ФОРМЫ КОДА
   ============================================================ */
.modal-example {
    margin: 0 auto 18px;
    padding: 14px 18px;
    background: #f8faff;
    border: 1px solid #e8edf6;
    border-radius: 12px;
    text-align: center;
}

.modal-example-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 8px;
}

.modal-example-phone {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
    margin-bottom: 8px;
    white-space: nowrap;
}

.modal-example-prefix {
    color: #cbd5e1;
}

.modal-example-code {
    color: #2563eb;
    font-weight: 700;
}

.modal-example-hint {
    font-size: 12px;
    line-height: 1.45;
    color: #64748b;
}

.modal-example-hint strong {
    color: #1e293b;
    font-weight: 700;
}

.modal-form-center {
    align-items: center;
    text-align: center;
}

.modal-form-center .modal-label {
    text-align: center;
    width: 100%;
}

.modal-input-code {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 12px;
    padding-left: 20px;
    font-variant-numeric: tabular-nums;
    caret-color: #2563eb;
}

.modal-input-code::placeholder {
    letter-spacing: 12px;
    font-weight: 400;
    color: #cbd5e1;
}

.modal-timer-bottom {
    margin-top: 14px;
    margin-bottom: 0;
    text-align: center;
}

/* ============================================================
   PARTNER MODAL — отдельные классы, чтобы НЕ пересекаться
   с #modal (модалкой авторизации).
   ============================================================ */
.partner-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    visibility: hidden;
    pointer-events: none;
}

.partner-modal.is-open {
    visibility: visible;
    pointer-events: auto;
}

.partner-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(245, 247, 250, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.18s ease-out;
    pointer-events: auto;
}

.partner-modal.is-open .partner-modal-overlay {
    opacity: 1;
}

.partner-modal-positioner {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: none;
    overflow: hidden;
}

.partner-modal-window {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 32px 28px 24px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.3);
    text-align: center;
    pointer-events: auto;

    opacity: 0;
    transform: translateY(16px) scale(0.96);
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.partner-modal.is-open .partner-modal-window {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ============================================================
   STATUS PAGE — заявка на рассмотрении
   ============================================================ */
.status-container {
    max-width: 560px;
    margin: 0 auto;
    padding-top: 20px;
    text-align: center;
}

.status-container h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.status-container .status-subtitle {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
    font-weight: 400;
}

.spinner {
    display: inline-block;
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.progress-wrap {
    max-width: 400px;
    margin: 20px auto 0;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar .progress-fill {
    height: 100%;
    width: 0%;
    background: #2563eb;
    border-radius: 3px;
    animation: progressAnim 3s ease-in-out infinite;
}

@keyframes progressAnim {
    0%   { width: 0%; }
    50%  { width: 70%; }
    100% { width: 100%; }
}

.progress-text {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 400;
}

.info-card {
    padding: 20px 0 0 0;
    margin-top: 24px;
    border-top: 1px solid #eef0f2;
}

.info-card .info-title {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
    text-align: left;
}

.info-card .row {
    display: flex;
    justify-content: space-between;
    padding: 1px 0;
}

.info-card .label {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 600;
}

.info-card .value {
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    text-align: right;
    max-width: 60%;
}

/* ============================================================
   PROCESS ANIMATION
   ============================================================ */
.process-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    padding: 12px 0;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

.process-step .step-circle {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #94a3b8;
    background: #ffffff;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    will-change: transform, opacity;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.process-step.active .step-circle {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
}

.process-step.active .step-circle::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.35);
    animation: stepPulse 1.8s ease-out infinite;
    pointer-events: none;
    will-change: transform, opacity;
    z-index: -1;
}

.process-step.done .step-circle {
    border-color: #16a34a;
    background: #16a34a;
    color: #ffffff;
}

.process-step .step-label {
    font-size: 9px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.process-step.active .step-label {
    color: #2563eb;
    font-weight: 600;
}

.process-step.done .step-label {
    color: #16a34a;
}

.process-connector {
    width: 20px;
    height: 2px;
    background: #e2e8f0;
    position: relative;
}

.process-connector.active {
    background: #2563eb;
    animation: connectorPulse 1.5s ease-in-out infinite;
}

.process-connector.done {
    background: #16a34a;
}

@keyframes stepPulse {
    0%   { transform: scale(1);   opacity: 0.7; }
    70%  { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1.6); opacity: 0; }
}

@keyframes connectorPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.3; }
}

/* ============================================================
   ПОЯСНЕНИЕ ПОД АНИМАЦИЕЙ
   ============================================================ */
.process-note {
    margin-top: 14px;
    padding: 0;
    background: transparent;
    border: none;
    text-align: center;
}

.process-note p {
    font-size: 12.5px;
    line-height: 1.55;
    color: #94a3b8;
    margin: 0 auto;
    max-width: 480px;
}

.process-note strong {
    color: #64748b;
    font-weight: 600;
}

/* ============================================================
   АКЦЕНТ НА БАНКИ
   ============================================================ */
.banks-intro {
    position: relative;
    margin-top: 28px;
    padding: 20px 24px 22px;
    background: linear-gradient(180deg, #f8faff 0%, #eef4ff 100%);
    border: 1px solid #dbeafe;
    border-radius: 14px;
    text-align: center;
    overflow: hidden;
}

.banks-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2563eb, transparent);
    opacity: 0.5;
}

.banks-intro-arrow {
    display: inline-block;
    font-size: 22px;
    line-height: 1;
    color: #2563eb;
    margin-bottom: 8px;
    animation: banksIntroArrow 1.6s ease-in-out infinite;
    will-change: transform;
}

@keyframes banksIntroArrow {
    0%, 100% { transform: translateY(0);    opacity: 1; }
    50%      { transform: translateY(6px);  opacity: 0.55; }
}

.banks-intro p {
    font-size: 13.5px;
    line-height: 1.55;
    color: #475569;
    margin: 0;
}

.banks-intro strong {
    color: #2563eb;
    font-weight: 700;
}

/* ============================================================
   ОДОБРЕННЫЕ
   ============================================================ */
.approved-section {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eef0f2;
}

.approved-section.show {
    display: block;
    animation: approvedAppear 0.6s ease forwards;
}

@keyframes approvedAppear {
    0%   { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.approved-section .approved-title {
    font-size: 12px;
    font-weight: 500;
    color: #16a34a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    text-align: center;
}

.approved-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.approved-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    background: #f0fdf4;
    border: 1px solid #16a34a;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.3s, border-color 0.3s;
    cursor: pointer;
}

.approved-item:hover {
    background: #dcfce7;
    border-color: #15803d;
}

.approved-item .approved-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #16a34a;
    overflow: hidden;
}

.approved-item .approved-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.approved-item .approved-info {
    flex: 1;
    text-align: left;
}

.approved-item .approved-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.approved-item .approved-condition {
    font-size: 11px;
    color: #94a3b8;
}

.approved-item .approved-condition strong {
    color: #1e293b;
    font-weight: 600;
}

.approved-item .approved-status {
    font-size: 11px;
    font-weight: 700;
    color: #16a34a;
    white-space: nowrap;
    animation: approvedPulse 2s ease-in-out infinite;
    will-change: opacity;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

@keyframes approvedPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.55; }
}

/* ============================================================
   СПИСОК БАНКОВ / МФО
   ============================================================ */
.banks-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eef0f2;
}

.banks-section .banks-title {
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    text-align: center;
}

.banks-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bank-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    background: #f8fafc;
    border: 1px solid #eef0f2;
    border-radius: 10px;
    opacity: 0;
    animation: bankAppear 0.5s ease forwards;
    transition: border-color 0.5s, background 0.5s;
}

.bank-item:nth-child(1)  { animation-delay: 0.1s; }
.bank-item:nth-child(2)  { animation-delay: 0.2s; }
.bank-item:nth-child(3)  { animation-delay: 0.3s; }
.bank-item:nth-child(4)  { animation-delay: 0.4s; }
.bank-item:nth-child(5)  { animation-delay: 0.5s; }
.bank-item:nth-child(6)  { animation-delay: 0.6s; }
.bank-item:nth-child(7)  { animation-delay: 0.7s; }
.bank-item:nth-child(8)  { animation-delay: 0.8s; }
.bank-item:nth-child(9)  { animation-delay: 0.9s; }
.bank-item:nth-child(10) { animation-delay: 1.0s; }

@keyframes bankAppear {
    0%   { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.bank-item .bank-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.bank-item .bank-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bank-item .bank-info {
    flex: 1;
    text-align: left;
}

.bank-item .bank-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.bank-item .bank-condition {
    font-size: 11px;
    color: #94a3b8;
}

.bank-item .bank-condition strong {
    color: #1e293b;
    font-weight: 600;
}

.bank-item .bank-status {
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.8s;
}

.bank-item .bank-status.waiting {
    color: #f59e0b;
    animation: statusPulse 2s ease-in-out infinite;
}

.bank-item .bank-status.sent {
    color: #2563eb;
}

.bank-item .bank-status.declined {
    color: #dc2626;
}

.bank-item .bank-status.approved {
    color: #16a34a;
    font-weight: 600;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.4; }
}

/* ============================================================
   БЛОК ДЕЙСТВИЙ
   ============================================================ */
.action-block {
    margin-top: 28px;
    background: linear-gradient(165deg, #ffffff 0%, #fafcff 100%);
    border: 1px solid #e8edf4;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
}

.action-block .action-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.action-block .action-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.action-block .action-right {
    display: flex;
    align-items: center;
}

.action-block .action-vpn-warning {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: #f1f4f9;
    padding: 10px 18px;
    border-radius: 12px;
    width: 100%;
    text-align: left;
}

.action-block .action-vpn-warning .warning-title,
.action-block .action-vpn-warning .warning-text {
    text-align: left;
    width: 100%;
}

.action-block .action-vpn-warning .warning-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.action-block .action-vpn-warning .warning-text {
    font-size: 8px;
    font-weight: 400;
    color: #475569;
}

.action-block .action-vpn-warning .warning-text a {
    color: #1e293b;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: 8px;
}

.action-block .action-vpn-warning .warning-text a:hover {
    color: #0f172a;
}

.btn-exit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 32px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.35s ease;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.15);
    position: relative;
    overflow: hidden;
    min-width: 140px;
}

.btn-exit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    transition: left 0.6s;
}

.btn-exit:hover::before {
    left: 100%;
}

.btn-exit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.25);
    background: linear-gradient(135deg, #0f172a, #020617);
}

.btn-exit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.btn-exit svg {
    flex-shrink: 0;
    transition: transform 0.3s;
}

.btn-exit:hover svg {
    transform: translateX(2px);
}

.btn-refresh {
    display: inline-block;
    padding: 14px 32px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
}

.btn-refresh:hover {
    background: #1d4ed8;
    transform: scale(1.02);
}

.btn-refresh:active {
    transform: scale(0.98);
}

.btn-refresh.secondary {
    background: #e2e8f0;
    color: #475569;
}

.btn-refresh.secondary:hover {
    background: #cbd5e1;
}

.btn-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.status-pending h2 {
    color: #f59e0b;
}

/* ============================================================
   ADAPTIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
    body { padding: 24px 16px; }
    .container { padding: 32px 24px 28px; border-radius: 14px; }
    .header { padding-bottom: 20px; margin-bottom: 28px; }
    .logo { max-width: 160px; }
    h1 { font-size: 34px; letter-spacing: -0.4px; }
    .subtitle { font-size: 16px; margin-bottom: 28px; }
    .terms { grid-template-columns: repeat(2, 1fr); margin-bottom: 32px; }
    .term-item { min-height: 76px; padding: 16px 10px; }
    .term-item .number { font-size: 14px; }
    .form-row { grid-template-columns: 1fr; gap: 24px; margin-bottom: 24px; }
    .payment-block {
        flex-direction: column; align-items: stretch; text-align: center;
        gap: 12px; padding: 20px 22px; margin: 4px 0 24px;
    }
    .payment-left { justify-content: center; }
    .payment-right { text-align: center; }
    .payment-amount { font-size: 30px; }
    .footer { margin-top: 28px; padding-top: 22px; gap: 12px; }
    .status-container h2 { font-size: 24px; }
    .status-container .status-subtitle { font-size: 14px; }
    .spinner { width: 40px; height: 40px; }
    .bank-item .bank-icon,
    .approved-item .approved-icon { width: 32px; height: 32px; }
    .bank-item .bank-name,
    .approved-item .approved-name { font-size: 12px; }
    .action-block .action-inner { padding: 14px 18px; }
    .action-block .action-vpn-warning { padding: 8px 14px; }
    .action-block .action-vpn-warning .warning-title { font-size: 12px; }
    .action-block .action-vpn-warning .warning-text,
    .action-block .action-vpn-warning .warning-text a { font-size: 8px; }
    .btn-exit { font-size: 13px; padding: 8px 24px; min-width: 120px; }
}

/* ============================================================
   ADAPTIVE — 480px
   ============================================================ */
@media (max-width: 480px) {
    body { padding: 12px 10px; }
    .container { padding: 24px 16px 20px; border-radius: 12px; }
    .header { padding-bottom: 16px; margin-bottom: 22px; }
    .logo { max-width: 130px; }
    h1 { font-size: 26px; margin-bottom: 8px; }
    .subtitle { font-size: 14px; margin-bottom: 22px; }
    .terms { margin-bottom: 26px; }
    .term-item { min-height: 68px; padding: 12px 8px; }
    .term-item .number { font-size: 12px; }
    .term-item .number .small { font-size: 11px; }
    .term-item .number .rub { font-size: 11px; }
    .term-item .label { font-size: 9.5px; margin-top: 3px; }
    label { font-size: 10px; margin-bottom: 6px; }
    .value-display { font-size: 18px; margin-bottom: 10px; }
    .value-display small { font-size: 13px; }
    .form-row { gap: 20px; margin-bottom: 20px; }
    .range-labels { font-size: 9.5px; margin-top: 6px; }
    .payment-block { padding: 18px 16px; margin: 4px 0 20px; }
    .payment-label { font-size: 11px; }
    .payment-amount { font-size: 26px; }
    .payment-amount small { font-size: 16px; }
    .payment-detail { font-size: 12px; }
    .payment-sub { font-size: 11px; }
    .btn-submit { font-size: 16px; padding: 16px 20px; }
    .footer { margin-top: 24px; padding-top: 20px; gap: 10px; }
    .footer-nav { gap: 5px; }
    .footer-copy { font-size: 10px; }
    .modal-positioner { padding: 16px 12px; }
    .modal-window { max-height: calc(100vh - 32px); padding: 28px 20px 20px; border-radius: 14px; }
    .modal-title { font-size: 18px; }
    .modal-text { font-size: 13px; margin-bottom: 18px; }
    .modal-input { font-size: 16px; padding: 13px 14px; }
    .modal-button { font-size: 15px; padding: 14px 18px; }
    .modal-call-number { font-size: 22px; }
    .modal-actions { margin-top: 14px; }
    .modal-link { font-size: 12px; padding: 6px 2px; }
    .modal-summary { font-size: 12px; padding: 14px 16px; gap: 6px 12px; }
    .modal-checkbox,
    .modal-checkbox span { font-size: 11.5px; }
    .modal-warning { font-size: 11px; }
    .modal-example { padding: 12px 14px; }
    .modal-example-phone { font-size: 20px; }
    .modal-example-hint { font-size: 11.5px; }
    .modal-input-code { font-size: 24px; letter-spacing: 10px; }
    .status-container h2 { font-size: 20px; }
    .status-container .status-subtitle { font-size: 13px; margin-bottom: 20px; }
    .info-card .info-title { font-size: 12px; }
    .info-card .label { font-size: 9px; }
    .info-card .value { font-size: 10px; }
    .bank-item,
    .approved-item { padding: 8px 12px; gap: 10px; }
    .bank-item .bank-icon,
    .approved-item .approved-icon { width: 28px; height: 28px; }
    .bank-item .bank-name,
    .approved-item .approved-name { font-size: 11px; }
    .bank-item .bank-condition,
    .approved-item .approved-condition { font-size: 10px; }
    .bank-item .bank-status,
    .approved-item .approved-status { font-size: 10px; }
    .process-step .step-circle { width: 26px; height: 26px; font-size: 10px; }
    .process-connector { width: 12px; }
    .process-note,
    .banks-intro { padding: 12px 14px; }
    .process-note p,
    .banks-intro p { font-size: 11.5px; }
    .btn-refresh { font-size: 14px; padding: 12px 24px; }
    .btn-group { flex-direction: column; align-items: center; }
    .btn-group .btn-refresh { width: 100%; max-width: 280px; text-align: center; }
    .action-block .action-inner {
        flex-direction: column; align-items: stretch;
        padding: 14px 16px; gap: 10px;
    }
    .action-block .action-left { justify-content: stretch; }
    .action-block .action-right { justify-content: center; }
    .action-block .action-vpn-warning {
        padding: 8px 14px; align-items: flex-start; text-align: left;
    }
    .action-block .action-vpn-warning .warning-title { font-size: 12px; }
    .action-block .action-vpn-warning .warning-text,
    .action-block .action-vpn-warning .warning-text a { font-size: 8px; }
    .btn-exit { font-size: 13px; padding: 8px 24px; min-width: 120px; width: 100%; }
}

/* ============================================================
   ADAPTIVE — 380px
   ============================================================ */
@media (max-width: 380px) {
    .container { padding: 16px 12px 20px; }
    .status-container h2 { font-size: 18px; }
    .process-step .step-label { font-size: 7px; }
    .bank-item .bank-icon,
    .approved-item .approved-icon { width: 24px; height: 24px; }
    .bank-item .bank-name,
    .approved-item .approved-name { font-size: 10px; }
    .bank-item .bank-condition,
    .approved-item .approved-condition { font-size: 9px; }
    .action-block .action-inner { padding: 12px 12px; gap: 8px; }
    .action-block .action-vpn-warning .warning-title { font-size: 11px; }
    .action-block .action-vpn-warning .warning-text,
    .action-block .action-vpn-warning .warning-text a { font-size: 8px; }
    .btn-exit { font-size: 12px; padding: 6px 18px; min-width: 100px; }
}

/* ============================================================
   iOS — не зумить при фокусе на input
   ============================================================ */
@media screen and (-webkit-min-device-pixel-ratio: 2) {
    input, select, textarea { font-size: 16px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
    .modal-overlay,
    .modal-window,
    .partner-modal-overlay,
    .partner-modal-window { transition: none; }
    .process-step.active .step-circle::after {
        animation: none; opacity: 0.4; transform: scale(1.3);
    }
}
