:root {
    color-scheme: only light;
    --aa-ink: #17243d;
    --aa-muted: #607087;
    --aa-blue: #1658dc;
    --aa-blue-hover: #1049bd;
    --aa-line: #dce3ee;
    --aa-soft: #f2f5fa;
    --aa-page: #f5f7fb;
    --aa-error: #ae2836;
    --aa-success: #176044;
}

* { box-sizing: border-box; }
html { min-width: 280px; min-height: 100%; background: var(--aa-page); scrollbar-color: #a8b6cb var(--aa-page); }
.aa-body { min-height: 100vh; min-height: 100svh; margin: 0; display: flex; flex-direction: column; color: var(--aa-ink); background: var(--aa-page); font: 16px/1.45 'Segoe UI', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; }
a { color: var(--aa-blue); text-underline-offset: 3px; }
a:hover { color: var(--aa-blue-hover); }
button:focus-visible, a:focus-visible { outline: 3px solid var(--aa-blue); outline-offset: 4px; }
[hidden] { display: none !important; }
::selection { color: #10264e; background: #d5e5ff; }

.aa-skip-link { position: fixed; top: 8px; left: 12px; z-index: 10; padding: 12px 16px; border-radius: 8px; color: #fff; background: var(--aa-blue); transform: translateY(-160%); }
.aa-skip-link:focus { transform: none; color: #fff; }
.aa-header { width: 100%; max-width: 1440px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 28px 48px; gap: 16px; }
.aa-brand { display: inline-flex; align-items: center; min-height: 44px; flex: 0 1 auto; color: var(--aa-blue); }
.aa-brand .logo > svg { width: 194px !important; max-width: 100%; }
.aa-brand .logo-work { fill: currentColor; }
.aa-home-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--aa-muted); text-decoration: none; font-size: 13px; white-space: nowrap; }
.aa-home-link:hover { text-decoration: underline; }
.aa-main { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 26px 24px 38px; outline: none; }
.aa-panel { width: 100%; max-width: 448px; background: #fff; border: 1px solid #e0e6ef; border-radius: 22px; padding: 30px 35px 28px; box-shadow: 0 12px 38px #142b5010, 0 2px 5px #142b5003; }
.aa-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: #f0f3f8; gap: 4px; margin-bottom: 29px; }
.aa-tabs a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 8px; border-radius: 8px; color: #5e6d84; text-decoration: none; font-size: 14px; font-weight: 650; transition: background .15s, color .15s; }
.aa-tabs a[aria-current='page'] { color: var(--aa-ink); background: #fff; box-shadow: 0 1px 5px #192d5012; }
.aa-tabs a:hover:not([aria-current='page']) { color: var(--aa-ink); background: #e7ecf4; }
.aa-panel h1 { font-size: 28px; line-height: 1.18; letter-spacing: -.85px; margin: 0 0 10px; font-weight: 700; overflow-wrap: anywhere; text-wrap: balance; }
.aa-intro { color: var(--aa-muted); margin: 0 0 26px; font-size: 14px; line-height: 1.55; }
.aa-form { margin: 0; }
.aa-field { margin-bottom: 19px; }
.aa-field > label, .aa-label-row { display: block; margin-bottom: 8px; }
.aa-field label { font-size: 16px; font-weight: 600; }
.aa-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; }
.aa-label-row a { display: inline-flex; align-items: center; justify-content: flex-end; min-height: 44px; margin: -8px 0; font-size: 13px; font-weight: 600; text-decoration: none; }
.aa-label-row a:hover { text-decoration: underline; }
.aa-field input { appearance: none; background: #fff; border: 1px solid #cbd5e4; border-radius: 10px; color: var(--aa-ink); min-height: 52px; padding: 12px 14px; width: 100%; min-width: 0; font-size: 16px; line-height: 1.5; caret-color: var(--aa-blue); transition: border-color .15s, box-shadow .15s; }
.aa-field input::placeholder { color: #66758a; opacity: 1; }
.aa-field input:hover { border-color: #a1b1c9; }
.aa-field input:focus { outline: none; border-color: var(--aa-blue); box-shadow: 0 0 0 4px #1658dc22; }
.aa-field input[aria-invalid='true'] { border-color: var(--aa-error); }
.aa-field input[aria-invalid='true']:focus { box-shadow: 0 0 0 4px #ae283615; }
.aa-input-wrap { position: relative; }
.aa-input-wrap.aa-has-reveal input { padding-right: 55px; }
.aa-reveal { position: absolute; right: 5px; top: 4px; min-width: 44px; min-height: 44px; display: grid; place-items: center; color: #63748d; border: 0; border-radius: 7px; background: transparent; }
.aa-reveal:hover { color: var(--aa-blue); background: var(--aa-soft); }
.aa-reveal svg { width: 20px; height: 20px; }
.aa-reveal[aria-pressed='true'] .aa-eye-slash { display: none; }
.aa-field-error { font-size: 13px; color: var(--aa-error); margin: 7px 0 0; line-height: 1.4; }
.aa-field-hint { margin: 9px 0 0; color: var(--aa-muted); font-size: 12px; line-height: 1.5; }
.aa-requirements { display: flex; flex-wrap: wrap; gap: 5px 13px; list-style: none; padding: 0; margin: 9px 0 0; color: var(--aa-muted); font-size: 12px; }
.aa-requirements li::before { content: '·'; font-weight: 800; display: inline-block; width: 10px; }
.aa-requirements li.is-met { color: var(--aa-success); }
.aa-requirements li.is-met::before { content: '✓'; font-size: 11px; width: 14px; }
.aa-consent-field { margin: 2px 0 20px; }
.aa-consent { display: flex; align-items: flex-start; gap: 11px; min-height: 44px; cursor: pointer; color: #58677e; font-size: 13px; line-height: 1.55; font-weight: 400; }
.aa-consent input { appearance: auto; width: 20px; height: 20px; min-height: 20px; margin: 2px 0 0; padding: 0; flex: 0 0 20px; accent-color: var(--aa-blue); cursor: pointer; }
.aa-consent input:focus-visible { outline: 3px solid var(--aa-blue); outline-offset: 3px; }
.aa-consent input[aria-invalid='true'] { outline: 2px solid var(--aa-error); outline-offset: 3px; }
.aa-consent a { color: #164faf; text-underline-offset: 2px; }
.aa-consent-field .aa-field-error { margin-left: 31px; }
.aa-button { width: 100%; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--aa-line); border-radius: 10px; font-weight: 650; padding: 12px 18px; line-height: 1.4; text-decoration: none; text-align: center; transition: background .15s, transform .15s; }
.aa-button-primary { color: #fff; background: var(--aa-blue); border-color: var(--aa-blue); box-shadow: 0 3px 8px #1658dc18; }
.aa-button-primary:hover { color: #fff; background: var(--aa-blue-hover); border-color: var(--aa-blue-hover); }
.aa-button-primary:active { transform: translateY(1px); }
.aa-button-primary:disabled { background: #416dbd; border-color: #416dbd; }
.aa-button-primary[aria-busy='true']::before { content: ''; width: 17px; height: 17px; flex: 0 0 17px; border: 2px solid #ffffff66; border-top-color: #fff; border-radius: 50%; animation: aa-spin .8s linear infinite; }
.aa-button-secondary { color: var(--aa-blue); background: #fff; }
.aa-button-secondary:hover { background: #f4f7fd; border-color: #bdcce1; }
.aa-divider { display: flex; align-items: center; gap: 13px; margin: 23px 0 17px; color: #65748a; font-size: 12px; }
.aa-divider::before, .aa-divider::after { content: ''; height: 1px; background: #e5eaf2; flex: 1; }
.aa-providers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.aa-provider { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 0; min-height: 50px; padding: 10px 12px; border: 1px solid var(--aa-line); border-radius: 10px; background: #fff; font-size: 14px; font-weight: 650; color: #27344b; text-decoration: none; text-align: center; transition: background .15s, border-color .15s; }
.aa-provider:hover { color: #27344b; background: #f8faff; border-color: #bdcce1; }
.aa-provider-icon { width: 25px; height: 25px; flex: 0 0 auto; }
.aa-provider-icon-yandex { border-radius: 50%; overflow: hidden; }
.aa-provider-sber { grid-column: 1 / -1; min-height: 48px; color: #68778b; background: #f6f8fb; border-color: #e9edf4; gap: 8px; }
.aa-provider-sber:disabled { opacity: 1; }
.aa-provider-sber:hover { color: #68778b; background: #f6f8fb; border-color: #e9edf4; }
.aa-soon { font-size: 10px; font-weight: 600; line-height: 1; color: #586a82; background: #e8edf5; padding: 5px 7px; border-radius: 5px; margin-left: 3px; }
.aa-message, .aa-info { border: 1px solid #d6e4f8; background: #f2f7ff; border-radius: 10px; padding: 13px 14px; margin: 0 0 20px; color: #314b73; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.aa-message-success { color: var(--aa-success); background: #edf8f2; border-color: #cae6d7; }
.aa-message-error { color: var(--aa-error); background: #fff3f3; border-color: #f0c8cd; }
.aa-message-title { margin: 0 0 4px; font-weight: 650; }
.aa-message ul { margin: 0; padding-left: 20px; }
.aa-info p { margin: 0; }
.aa-info p + p { margin-top: 12px; }
.aa-actions { display: grid; gap: 12px; }
.aa-text-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; text-align: center; font-size: 14px; }
.aa-back-link { width: 100%; max-width: 448px; display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 8px; gap: 7px; color: var(--aa-muted); font-size: 14px; text-decoration: none; }
.aa-back-link:hover { text-decoration: underline; }
.aa-note { color: var(--aa-muted); font-size: 13px; line-height: 1.55; margin: 18px 0 0; overflow-wrap: anywhere; }
.aa-note-center { text-align: center; }
.aa-platform-note { width: 100%; max-width: 448px; margin: 18px 0 0; color: var(--aa-muted); font-size: 12px; line-height: 1.55; text-align: center; }
.aa-platform-note a { display: inline-flex; align-items: center; min-height: 44px; }
.aa-symbol { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; color: var(--aa-blue); background: #eef4ff; border-radius: 12px; }
.aa-symbol svg { width: 25px; height: 25px; }
.aa-symbol-neutral { color: #607087; background: var(--aa-soft); }
.aa-account-email { display: grid; gap: 4px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--aa-line); overflow-wrap: anywhere; }
.aa-account-email span { font-size: 13px; color: var(--aa-muted); }
.aa-account-email strong { font-weight: 600; }
.aa-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 18px; padding: 0 24px 20px; text-align: center; color: var(--aa-muted); font-size: 11px; }
.aa-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--aa-muted); }
@keyframes aa-spin { to { transform: rotate(360deg); } }
@media (min-width: 1100px) and (min-height: 900px) { .aa-main { padding-bottom: 70px; } }
@media (max-width: 540px) {
    .aa-header { padding: 22px 24px; }
    .aa-main { padding: 14px 16px 28px; justify-content: flex-start; }
    .aa-panel { padding: 26px 24px 24px; border-radius: 18px; }
    .aa-panel h1 { font-size: 26px; }
    .aa-tabs { margin-bottom: 26px; }
    .aa-brand .logo > svg { width: 172px !important; }
}
@media (max-width: 360px) {
    .aa-header { padding: 20px 18px; gap: 8px; }
    .aa-brand .logo > svg { width: 153px !important; }
    .aa-home-link { font-size: 12px; }
    .aa-main { padding-inline: 12px; }
    .aa-panel { padding: 23px 19px; }
    .aa-panel h1 { font-size: 24px; }
    .aa-provider { padding-inline: 8px; font-size: 13px; gap: 7px; }
    .aa-intro { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media (forced-colors: active) {
    .aa-tabs a[aria-current='page'] { outline: 1px solid Highlight; }
    .aa-provider, .aa-button { border-color: ButtonText; }
    .aa-provider-sber { color: GrayText; border-color: GrayText; }
}
