/* Альфа-Управление: вход и интро стенда (статика, без сборки портала).
   CSP сервера запрещает встроенные стили и скрипты — всё здесь и в .js.
   Цвета — брендбук Альфа Бизнес (docs/design-alfa/README.md); интро —
   палитра носителей Альфа-Конфы (макеты банка, слайды 9–11). */
@font-face { font-family: 'Golos Text'; font-weight: 400; font-display: swap;
  src: url('/fonts/golos-text/golos-text-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-weight: 400; font-display: swap;
  src: url('/fonts/golos-text/golos-text-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'Golos Text'; font-weight: 500; font-display: swap;
  src: url('/fonts/golos-text/golos-text-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-weight: 500; font-display: swap;
  src: url('/fonts/golos-text/golos-text-500-latin.woff2') format('woff2'); }
@font-face { font-family: 'Golos Text'; font-weight: 700; font-display: swap;
  src: url('/fonts/golos-text/golos-text-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-weight: 700; font-display: swap;
  src: url('/fonts/golos-text/golos-text-700-latin.woff2') format('woff2'); }
@font-face { font-family: 'Golos Text'; font-weight: 800; font-display: swap;
  src: url('/fonts/golos-text/golos-text-800-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-weight: 800; font-display: swap;
  src: url('/fonts/golos-text/golos-text-800-latin.woff2') format('woff2'); }
@font-face { font-family: 'Golos Text'; font-weight: 400 800; font-display: swap;
  src: url('/fonts/golos-text/golos-text-500-latin-ext.woff2') format('woff2');
  unicode-range: U+20A0-20AB, U+20AD-20C0; }

:root {
  --red: #EF3124; --red-hover: #d82a1e; --ink: #0f0f0f; --ink-2: rgba(15,15,15,.6);
  --bg: #F4F4F2; --line: #e4e4e0; --tint: #F2F2EF;
  --tq: #02FFC4; --gr: #30E301; --honey-bg: #fdeedd; --honey-text: #8a4b00;
  --salad: #7FD36A;
  --blue: #00CE3B; --orange: #8743CB;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: 'Golos Text', Arial, sans-serif; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

/* ---------- Вход ---------- */
.auth { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-hero { background: var(--red); color: #fff; padding: 56px 64px 0; display: flex; flex-direction: column;
  position: relative; overflow: hidden; min-height: 100vh; }
.auth-hero .logo { width: min(440px, 80%); height: auto; display: block; }
.auth-hero h1 { font-size: clamp(30px, 3.1vw, 48px); line-height: 1.12; font-weight: 700; letter-spacing: -.015em;
  margin-top: 56px; max-width: 15em; }
.auth-hero ul { list-style: none; margin-top: 36px; display: grid; gap: 18px; max-width: 30em; position: relative; z-index: 1; }
.auth-hero li { font-size: 19px; line-height: 1.38; padding-left: 40px; position: relative; }
.auth-hero li b { display: block; font-size: 21px; font-weight: 700; margin-bottom: 2px; }
.auth-hero li::before { content: ''; position: absolute; left: 0; top: 5px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; }
.auth-hero li::after { content: ''; position: absolute; left: 7px; top: 10px; width: 6px; height: 10px;
  border: solid var(--red); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.steps { margin-top: auto; height: 132px; position: relative; margin-left: -64px; margin-right: -64px; }
.steps i { position: absolute; display: block; }
.steps .s1 { left: 0; width: 34%; bottom: 0; height: 64px; background: var(--gr); }
.steps .s1b { left: 0; width: 34%; bottom: 64px; height: 30px; background: #000; }
.steps .s1c { left: 0; width: 34%; bottom: 94px; height: 24px; background: var(--tq); }
.steps .s2 { left: 34%; width: 33%; bottom: 0; height: 80px; background: var(--gr); }
.steps .s2b { left: 34%; width: 33%; bottom: 80px; height: 30px; background: #000; }
.steps .s2c { left: 34%; width: 33%; bottom: 110px; height: 22px; background: var(--tq); }
.steps .s3 { left: 67%; width: 33%; bottom: 0; height: 52px; background: var(--gr); }
.steps .s3b { left: 67%; width: 33%; bottom: 52px; height: 30px; background: #000; }
.steps .s3c { left: 67%; width: 33%; bottom: 82px; height: 50px; background: var(--tq); }

.auth-side { display: flex; align-items: center; justify-content: center; padding: 48px 32px; }
.card { width: 100%; max-width: 460px; background: #fff; border-radius: 24px; padding: 40px 40px 32px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.06); }
.card .logo-sm { width: 230px; height: auto; display: block; margin-bottom: 28px; }
.card h2 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.card .lead { color: var(--ink-2); font-size: 16px; line-height: 1.45; margin-top: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 56px;
  border-radius: 999px; border: 0; cursor: pointer; font-size: 17px; font-weight: 600; text-decoration: none;
  transition: background-color .15s ease; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hover); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2b2b2b; }
.btn-grey { background: var(--tint); color: var(--ink); }
.btn-grey:hover { background: #e7e7e2; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn .a-mark { width: 26px; height: 26px; border-radius: 7px; background: #fff; display: inline-flex;
  align-items: center; justify-content: center; }
.btn .a-mark img { width: 22px; height: 22px; display: block; }
.alfa-id { margin-top: 28px; }
.alfa-id small { display: block; text-align: center; color: var(--ink-2); font-size: 13.5px; margin-top: 10px; }
.note { margin-top: 12px; background: var(--honey-bg); color: var(--honey-text); border-radius: 14px; padding: 12px 14px;
  font-size: 14.5px; line-height: 1.4; }
.or { display: flex; align-items: center; gap: 14px; color: var(--ink-2); font-size: 14px; margin: 26px 0 18px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 6px; }
.field input { width: 100%; height: 54px; border-radius: 14px; border: 1px solid transparent; background: var(--tint);
  padding: 0 16px; font-size: 17px; outline: none; transition: border-color .15s, background .15s; }
.field input:focus { border-color: var(--ink); background: #fff; }
.consent { margin: 4px 0 14px; display: grid; gap: 10px; font-size: 14px; line-height: 1.4; }
.consent label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--red); flex: none; }
.error { min-height: 22px; color: #6F5FCF; font-size: 14.5px; margin: 6px 0 10px; }
.foot { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-2); font-size: 13.5px; }
.foot a { text-decoration: none; border-bottom: 1px solid rgba(15,15,15,.2); }
.signed { text-align: left; }
.signed p { margin: 10px 0 22px; color: var(--ink-2); line-height: 1.45; }
.signed .btn + .btn { margin-top: 10px; }

/* Вход в рабочий сервис — одна карточка на фоне Альфа-Бизнес Онлайн. */
.auth.plain { grid-template-columns: minmax(0, 1fr); background: #f3f4f5; }
.auth.plain .auth-side { min-height: 100vh; }
.auth.plain .card { box-shadow: none; }
.auth.plain .btn-red { border-radius: 12px; }
.auth.plain .btn-dark, .auth.plain .btn-grey { border-radius: 12px; }
/* Приглашение /alfa/invite/: форма сразу под приветствием. */
.invite-form { margin-top: 24px; }

@media (max-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-hero { min-height: 0; padding: 32px 24px 0; }
  .auth-hero h1 { margin-top: 28px; font-size: 26px; }
  .auth-hero ul { display: none; }
  .steps { height: 72px; margin: 28px -24px 0; transform: scaleY(.55); transform-origin: bottom; }
  .auth-side { padding: 24px 16px 40px; }
  .card { padding: 28px 22px 24px; }
}

/* ---------- Интро стенда ---------- */
.intro { min-height: 100vh; background: var(--red); color: #fff; position: relative; overflow: hidden;
  user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.intro .bg { position: absolute; inset: 0; pointer-events: none; }
.intro .bg i { position: absolute; display: block; }
/* Полосы Альфа-Конфы прижаты к низу; высота — от высоты окна с пределами,
   экран оставляет под ними место (--stripes), чтобы текст не наезжал. */
.intro { --t: clamp(16px, 4.2vh, 46px); --k: clamp(18px, 4.6vh, 50px); --stripes: calc(var(--t) + var(--k) + clamp(26px, 8.5vh, 92px)); }
.bg .col { position: absolute; bottom: 0; width: 33.4%; display: flex; flex-direction: column; }
.bg .col i { position: static; display: block; }
.bg .ca { left: 0; } .bg .cb { left: 33.3%; } .bg .cc { left: 66.6%; }
.bg .t { height: var(--t); background: var(--tq); }
.bg .k { height: var(--k); background: #000; }
.bg .ca .g { height: clamp(14px, 4.5vh, 48px); background: var(--gr); }
.bg .cb .g { height: clamp(20px, 6.5vh, 70px); background: var(--gr); }
.bg .cc .g { height: clamp(26px, 8.5vh, 92px); background: var(--gr); }
.screen { position: relative; z-index: 1; min-height: 100vh; padding: 4.4vh 3.8vw calc(var(--stripes) + 3vh); display: flex; flex-direction: column; }
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.top .logo { width: min(62vw, 1140px, 105vh); height: auto; display: block; }
.top .logo.small { width: min(40vw, 640px, 70vh); }
.bank { width: clamp(130px, min(17vw, 30vh), 330px); height: auto; display: block; flex: none; }
.desc { font-size: clamp(20px, min(2.6vw, 4.6vh), 50px); font-weight: 500; line-height: 1.16; margin-top: 2.2vh; max-width: 24em; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6vw; margin-top: 3.6vh; }
.tile { background: #fff; color: var(--ink); border-radius: 24px; padding: 3vh 1.8vw; display: flex; flex-direction: column;
  min-height: min(40vh, 460px); }
.tile h3 { font-size: clamp(18px, min(1.95vw, 3.4vh), 37px); font-weight: 800; letter-spacing: -.015em; line-height: 1.12; }
.tile .x { margin-top: 2vh; background: var(--bg); border-radius: 18px; padding: 2.2vh 1.3vw; flex: 1; display: flex;
  flex-direction: column; font-size: clamp(13px, min(1.3vw, 2.3vh), 25px); line-height: 1.32; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.chip { display: inline-block; border-radius: 99px; padding: .2em .75em; font-size: .9em; background: #e9e9e5; white-space: nowrap; }
.chip.low { background: var(--honey-bg); color: var(--honey-text); }
.chip.ok { background: #eaf7f0; color: #0f8a50; }
.bar { height: 14px; border-radius: 9px; background: #e0e0db; margin: 1.8vh 0 1vh; overflow: hidden; }
.bar i { display: block; height: 100%; width: 24%; background: var(--orange); border-radius: 9px; }
/* Мягкий салатовый (постановка банка 27.11.2026: вместо травянисто-зелёного,
   один оттенок у полосы, линии и столбиков маржи). */
.bar.ok i { width: 78%; background: var(--salad); }
.good { color: #0f8a50; font-weight: 600; margin-top: .6em; }
/* Контурная галочка в круге вместо текстового «✓» (постановка банка 27.11.2026). */
.good { display: flex; align-items: center; gap: .4em; }
.good::before { content: ""; flex: none; width: 1.15em; height: 1.15em; background: url('/alfa/icon-check-circle.svg') center / contain no-repeat; }
/* Сумма — как маржа в третьей карточке: серая подпись, под ней значение жирным, без переноса. */
.sum-l { margin-top: .5em; }
.sum-v { font-size: 1.15em; white-space: nowrap; }
.mrow { display: grid; grid-template-columns: minmax(0, 1fr) 30% auto; align-items: center; gap: 10px; margin-top: .55em; }
.mrow span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow i { display: block; height: 12px; border-radius: 9px; background: var(--salad); }
.mrow i.m1 { width: 100%; } .mrow i.m2 { width: 83%; } .mrow i.m3 { width: 67%; }
.mrow b { min-width: 3.2em; text-align: right; }
.mut { color: var(--ink-2); font-size: .92em; }
.mini { margin-top: auto; align-self: flex-start; background: var(--red); color: #fff; border-radius: 99px;
  padding: .55em 1.15em; font-weight: 600; }
.big { font-size: clamp(20px, min(2.4vw, 4.2vh), 46px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.big.r { color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.chart { width: 100%; height: auto; display: block; }
.cta { position: absolute; left: 3.8vw; bottom: 3.6vh; z-index: 2; background: #fff; color: var(--ink); border: 0;
  border-radius: 99px; padding: 2.2vh 2.8vw; font-size: clamp(20px, min(2.2vw, 3.8vh), 42px); font-weight: 800; letter-spacing: -.01em;
  cursor: pointer; }
.fine { position: absolute; right: 3.8vw; bottom: 3vh; z-index: 2; font-size: clamp(13px, 1.15vw, 22px); color: #000; }
.tap { position: absolute; inset: 0; z-index: 1; cursor: pointer; background: transparent; border: 0; }

/* вопросы */
.q-head { display: flex; align-items: center; gap: 18px; margin-top: 4.5vh; font-size: clamp(16px, 1.3vw, 24px); font-weight: 600; }
.dots { display: flex; gap: 8px; }
.dots i { width: 44px; height: 8px; border-radius: 9px; background: rgba(255,255,255,.35); display: block; }
.dots i.on { background: #fff; }
.q-title { font-size: clamp(26px, min(3.6vw, 6.4vh), 68px); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; margin-top: 2.4vh;
  max-width: 18em; }
.answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4vw; margin-top: 3.6vh; max-width: 1500px; }
.answer { background: #fff; color: var(--ink); border: 0; border-radius: 22px; min-height: min(15vh, 160px); padding: 2vh 2vw; text-align: left;
  font-size: clamp(18px, min(1.9vw, 3.4vh), 36px); font-weight: 700; line-height: 1.18; cursor: pointer; display: flex; flex-direction: column;
  justify-content: center; gap: 6px; transition: transform .08s ease, box-shadow .15s; }
.answer small { font-size: .58em; font-weight: 400; color: var(--ink-2); line-height: 1.3; }
.answer:active { transform: scale(.985); }
.answer.picked { box-shadow: 0 0 0 6px #000 inset; }
.back { position: absolute; left: 3.8vw; bottom: 3.6vh; z-index: 2; background: transparent; color: #fff; border: 2px solid #fff;
  border-radius: 99px; padding: 1.4vh 2vw; font-size: clamp(16px, 1.3vw, 26px); font-weight: 600; cursor: pointer; }

/* итог */
.res { margin-top: 3.6vh; max-width: 1500px; }
.kicker { display: inline-block; background: #fff; color: var(--red); border-radius: 99px; padding: .45em 1em;
  font-size: clamp(15px, min(1.35vw, 2.4vh), 26px); font-weight: 700; }
.kicker.part { background: #000; color: #fff; }
.res h2 { font-size: clamp(28px, min(4vw, 7vh), 76px); font-weight: 800; letter-spacing: -.025em; line-height: 1.05; margin-top: 2.6vh; max-width: 16em; }
.res p { font-size: clamp(17px, min(1.9vw, 3.3vh), 36px); line-height: 1.3; margin-top: 2vh; max-width: 30em; }
.res p.start { font-weight: 600; }
.res-actions { display: flex; gap: 1.2vw; margin-top: 3.4vh; align-items: center; flex-wrap: wrap; }
.go { background: #fff; color: var(--ink); border: 0; border-radius: 99px; padding: 2.2vh 3vw; font-size: clamp(19px, min(2.2vw, 3.8vh), 42px);
  font-weight: 800; letter-spacing: -.01em; cursor: pointer; text-decoration: none; display: inline-block; }
.again { background: transparent; color: #fff; border: 2px solid #fff; border-radius: 99px; padding: 1.8vh 2.2vw;
  font-size: clamp(16px, min(1.5vw, 2.7vh), 28px); font-weight: 600; cursor: pointer; }
.hint { font-size: clamp(13px, min(1.15vw, 2.1vh), 22px); line-height: 1.3; opacity: .92; }

@media (max-width: 900px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 0; }
  .answers { grid-template-columns: minmax(0, 1fr); }
  .screen { padding-bottom: calc(var(--stripes) + 90px); }
  .top .logo { width: 70vw; }
}

/* Окно «Согласие на обработку персональных данных» (27.11.2026) — по образцу
   форм Альфа-Банка: белая карточка со скруглением 24 px, заголовок 30/36,
   крестик справа, один абзац 16/24; на телефоне — лист снизу. */
.consent a { color: var(--ink); text-decoration-color: rgba(15,15,15,.35); text-underline-offset: 3px; }
.consent-modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(15,15,15,.6); }
.consent-modal[hidden] { display: none; }
.consent-dialog { width: min(760px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; background: #fff;
  border-radius: 24px; padding: 28px 32px 32px; outline: none; box-shadow: 0 24px 64px rgba(0,0,0,.18); }
.consent-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.consent-head h2 { font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -.01em; }
.consent-x { flex: none; width: 40px; height: 40px; margin: -2px -6px 0 0; border: 0; border-radius: 12px; background: none;
  font-size: 34px; line-height: 1; color: var(--ink); cursor: pointer; }
.consent-x:hover { background: var(--tint); }
.consent-text { font-size: 16px; line-height: 24px; color: rgba(3,3,6,.88); }
.consent-ed { margin-top: 16px; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.consent-text a, .consent-ed a { color: var(--ink); text-decoration-color: rgba(15,15,15,.35); text-underline-offset: 3px; }
body.modal-open { overflow: hidden; }
@media (max-width: 560px) {
  .consent-modal { padding: 0; align-items: flex-end; }
  .consent-dialog { border-radius: 24px 24px 0 0; padding: 22px 20px 28px; max-height: 92vh; }
  .consent-head h2 { font-size: 24px; line-height: 30px; }
}
