/* Octobank · удалённое открытие счёта (демо). Раскладка и палитра повторяют прототип банка
   (octobank-account.micros-it.uz, 10.2026): Inter, синяя кнопка действия, серо-голубой фон, три колонки.
   Помощник — плавающий виджет поверх страницы. */
:root {
  --bg: #d5dae3; --card: #fff; --soft: #f5f7fb; --soft-2: #f2f4fa; --input: #f2f4fa;
  --navy: #364867; --navy-2: #2d3d58; --navy-3: #223449;
  --blue: #1446d0; --blue-2: #1852e7; --blue-3: #123daf; --blue-soft: #eaf0ff;
  --text: #1a1a1a; --muted: #475569; --faint: #9da4ae; --line: #dde3ec; --line-2: #cbd5e1;
  --accent: #f0864a; --accent-soft: #fff1e7; --ok: #19a974; --ok-soft: #e6f7ef; --warn: #e0a106; --warn-soft: #fff6dc; --bad: #ff1604; --bad-soft: #ffecea;
  --r: 16px; --r-sm: 10px; --shadow: 0 1px 2px rgba(31, 43, 66, .04), 0 6px 20px rgba(31, 43, 66, .06);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sky: var(--blue-soft); --steel: #82a3b8; --line-sky: #e8ecf2;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue-2); }
[hidden] { display: none !important; }

/* ---------- шапка ---------- */
.o-top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.o-top-in { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 9px 16px; }
.o-logo { display: inline-flex; align-items: center; background: var(--navy); border-radius: 8px; padding: 6px 12px; flex: none; }
.o-logo img { height: 18px; display: block; }
.o-nav { display: flex; gap: 14px; margin-left: 10px; }
.o-nav a { display: inline-flex; align-items: center; gap: 6px; color: var(--text); text-decoration: none; font-size: 13px; font-weight: 500; }
.o-nav a svg { width: 16px; height: 16px; color: var(--blue-2); }
.o-top-sp { flex: 1; }
.o-lang { display: inline-flex; align-items: center; gap: 2px; padding: 4px 6px; border-radius: 8px; }
.o-lang svg { width: 18px; height: 18px; color: var(--blue-2); margin-right: 4px; }
.o-lang button { border: 0; background: transparent; padding: 4px 7px; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; }
.o-lang button[aria-pressed="true"] { color: var(--text); background: var(--soft); font-weight: 600; }
.o-tbtn { border: 0; background: var(--navy); color: #fff; padding: 9px 14px; border-radius: 8px; font-weight: 500; font-size: 13px; cursor: pointer; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.o-tbtn:hover { background: var(--navy-2); }
.o-top-demo { display: inline-flex; gap: 2px; margin-left: 6px; padding-left: 10px; border-left: 1px solid var(--line); }
.o-ibtn { width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--faint); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.o-ibtn svg { width: 17px; height: 17px; }
.o-ibtn:hover { background: var(--soft); color: var(--navy); }

/* ---------- раскладка ---------- */
.o-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 56px 16px 64px; display: grid; grid-template-columns: 216px minmax(0, 1fr) 216px; gap: 16px; align-items: start; flex: 1; }
.o-steps, .o-card, .o-side-card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }

/* шаги слева: как в прототипе — номер в кружке, название и подпись, линия между шагами */
.o-steps { padding: 18px 16px 10px; position: sticky; top: 72px; }
.o-steps h3 { margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--text); }
.o-steps ol { list-style: none; margin: 0; padding: 0; }
.o-step { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 0 0 18px; position: relative; color: var(--faint); font-size: 13px; line-height: 1.3; }
.o-step::before { content: ''; position: absolute; left: 10px; top: 24px; bottom: 2px; width: 1px; background: var(--line-2); }
.o-step:last-child::before { display: none; }
.o-step:last-child { padding-bottom: 6px; }
.o-step i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 500; border: 1px solid var(--line-2); color: var(--faint); background: #fff; position: relative; z-index: 1; }
.o-step b { display: block; font-weight: 500; color: var(--faint); }
.o-step small { display: block; font-size: 11px; color: var(--faint); margin-top: 1px; }
.o-step.done i { border-color: var(--blue-2); color: var(--blue-2); }
.o-step.done b { color: var(--text); }
.o-step.done::before { background: var(--blue-2); opacity: .5; }
.o-step.cur i { background: var(--blue); border-color: var(--blue); color: #fff; }
.o-step.cur b { color: var(--blue-2); font-weight: 600; }
.o-step.cur small { color: var(--muted); }
.o-step.help i::after { content: ''; position: absolute; right: -4px; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; }

/* карточка в центре */
.o-card { padding: 24px 24px 22px; min-height: 420px; display: flex; flex-direction: column; }
.o-card-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.o-card-top .o-k { font-size: 11px; font-weight: 500; color: var(--faint); margin-bottom: 2px; }
.o-card-top .o-k:empty { display: none; }
.o-card h1 { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 600; color: var(--text); }
.o-card .o-lead { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.o-later { margin-left: auto; flex: none; }
.o-body { flex: 1; animation: oin .3s ease; }
@keyframes oin { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.o-actions { display: flex; gap: 10px; align-items: center; margin-top: 22px; flex-wrap: wrap; justify-content: flex-end; }
.o-actions .o-sp { flex: 1; }

.btn { border: 0; border-radius: var(--r-sm); padding: 10px 16px; font-weight: 500; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .15s, transform .1s; line-height: 1.3; }
.btn:active { transform: translateY(1px); }
.btn-p { background: var(--blue); color: #fff; }
.btn-p:hover { background: var(--blue-2); }
.btn-p:disabled { background: #a9bbe9; cursor: not-allowed; }
.btn-s { background: var(--soft); color: var(--text); }
.btn-s:hover { background: #e9edf5; }
.btn-g { background: transparent; color: var(--blue-2); padding: 8px 10px; }
.btn-g:hover { background: var(--soft); }
.btn-sm { padding: 7px 11px; font-size: 12px; border-radius: 8px; }
.btn-o { background: #fff; color: var(--navy); border: 2px solid var(--navy); padding: 8px 14px; }
.btn-o:hover { background: var(--navy); color: #fff; }

/* поля */
.o-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.o-grid .w2 { grid-column: 1 / -1; }
.o-sec { margin: 20px 0 10px; font-size: 14px; font-weight: 600; color: var(--text); }
.o-sec:first-child { margin-top: 0; }
.o-f { display: flex; flex-direction: column; gap: 6px; position: relative; border-radius: 12px; transition: box-shadow .3s, background .3s; }
.o-f > label, .o-f > .o-l { font-size: 12px; font-weight: 500; color: var(--text); display: flex; gap: 6px; align-items: center; }
.o-f > label .req { color: var(--bad); }
.o-f .o-src { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--ok); background: var(--ok-soft); border-radius: 6px; padding: 1px 7px; white-space: nowrap; }
.o-f .o-src.myid { color: #5b4bd6; background: #efedff; }
.o-in { border: 1px solid transparent; border-radius: var(--r-sm); padding: 11px 14px; background: var(--input); outline: none; width: 100%; transition: border-color .15s, box-shadow .15s, background .15s; font-size: 14px; }
.o-in::placeholder { color: #98a2b3; }
.o-in:focus { border-color: var(--blue-2); background: #fff; box-shadow: 0 0 0 3px rgba(24, 82, 231, .15); }
.o-in[readonly] { background: #f3f4f6; color: var(--muted); }
.o-in.bad { border-color: var(--bad); }
textarea.o-in { min-height: 80px; resize: vertical; }
select.o-in { appearance: none; background: var(--input) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23475569' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; }
.o-hint { font-size: 12px; color: var(--muted); }
.o-err { font-size: 12px; color: var(--bad); }
.o-f.hl { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--accent); background: var(--accent-soft); animation: hlp 1.4s ease 2; }
@keyframes hlp { 50% { box-shadow: 0 0 0 4px #fff, 0 0 0 10px rgba(240, 134, 74, .35); } }
.o-f.o-filling { animation: fillin 1.6s cubic-bezier(.2, .7, .2, 1); }
.o-f.o-filling .o-in, .o-f.o-filling .o-seg button[aria-pressed="true"], .o-f.o-filling .o-choice button[aria-pressed="true"] { animation: fillglow 1.6s ease; }
@keyframes fillin { 0% { background: linear-gradient(90deg, rgba(240, 134, 74, 0) 0%, rgba(240, 134, 74, .22) 50%, rgba(240, 134, 74, 0) 100%) -200% 0 / 200% 100% no-repeat; box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(240, 134, 74, .6); } 100% { background: linear-gradient(90deg, rgba(240, 134, 74, 0) 0%, rgba(240, 134, 74, .22) 50%, rgba(240, 134, 74, 0) 100%) 200% 0 / 200% 100% no-repeat; box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(240, 134, 74, 0); } }
@keyframes fillglow { 0% { border-color: var(--accent); box-shadow: 0 0 0 6px rgba(240, 134, 74, .25); } 100% { box-shadow: 0 0 0 0 rgba(240, 134, 74, 0); } }
.o-f.o-byai > label:first-child::after { content: '✦ со слов'; white-space: nowrap; display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 1px 8px; border-radius: 10px; vertical-align: 1px; }
html[lang="uz"] .o-f.o-byai > label:first-child::after { content: '✦ so\'zlaringizdan'; }
@media (prefers-reduced-motion: reduce) { .o-f.o-filling, .o-f.o-filling .o-in { animation: none; } }
.o-chk { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; padding: 4px 0; cursor: pointer; font-size: 12px; color: var(--muted); line-height: 1.4; }
.o-chk input { width: 18px; height: 18px; accent-color: var(--blue); margin: 0; border-radius: 4px; }
.o-chk small { display: block; color: var(--faint); font-size: 11px; margin-top: 2px; }
.o-chk.box { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; font-size: 13px; color: var(--text); }
.o-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.o-seg button { border: 1px solid var(--line-2); background: #fff; border-radius: var(--r-sm); padding: 9px 13px; cursor: pointer; font-weight: 500; font-size: 13px; color: var(--text); }
.o-seg button[aria-pressed="true"] { border-color: var(--blue-2); background: var(--blue-soft); color: var(--blue-3); }
/* вкладки «Для ООО / Для ИП» */
.o-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--soft); border-radius: var(--r-sm); padding: 3px; margin-bottom: 14px; }
.o-tabs button { border: 0; background: transparent; padding: 9px; border-radius: 8px; font-weight: 500; font-size: 13px; color: var(--muted); cursor: pointer; }
.o-tabs button[aria-pressed="true"] { background: #fff; color: var(--blue-2); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.o-radio { display: grid; gap: 8px; }
.o-radio button { display: flex; gap: 10px; align-items: center; text-align: left; border: 0; background: transparent; padding: 4px 0; cursor: pointer; font-size: 13px; color: var(--text); }
.o-radio button::before { content: ''; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--faint); flex: none; background: #fff; transition: border-color .15s, box-shadow .15s; }
.o-radio button[aria-pressed="true"]::before { border-color: var(--blue); box-shadow: inset 0 0 0 5px var(--blue); }
.o-radio.row { display: flex; gap: 18px; flex-wrap: wrap; }

/* плитки, карточки, статусы */
.o-info { display: flex; gap: 8px; align-items: flex-start; font-size: 11px; color: var(--muted); margin-bottom: 14px; line-height: 1.4; }
.o-info .ic { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--blue-2); color: var(--blue-2); display: grid; place-items: center; font-size: 10px; font-weight: 700; margin-top: 1px; }
.o-req { display: grid; gap: 10px; }
.o-req-card { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; background: #5a6a8a; color: #fff; border-radius: 12px; padding: 14px 16px; }
.o-req-card .ic { width: 34px; height: 34px; border-radius: 8px; background: #fff; color: var(--blue-2); display: grid; place-items: center; }
.o-req-card .ic svg { width: 18px; height: 18px; }
.o-req-card b { display: block; font-size: 14px; font-weight: 600; }
.o-req-card p { margin: 2px 0 0; font-size: 12px; color: rgba(255, 255, 255, .85); }
.o-req-card a { color: #bcd0ff; font-size: 12px; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; }
.o-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.o-tile { background: var(--soft); border-radius: 12px; padding: 16px; }
.o-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.o-choice button { text-align: left; border: 1px solid var(--line-2); background: #fff; border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.o-choice button b { display: block; font-size: 15px; color: var(--text); font-weight: 600; }
.o-choice button span { font-size: 12px; color: var(--muted); }
.o-choice button[aria-pressed="true"] { border-color: var(--blue-2); background: var(--blue-soft); }
.o-choice button a { font-size: 12px; display: block; margin-top: 6px; }
.o-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--blue-soft); color: var(--navy-3); font-size: 13px; align-items: flex-start; }
.o-note.warn { background: var(--warn-soft); color: #6d5200; }
.o-note.bad { background: var(--bad-soft); color: #8c1d20; }
.o-note.ok { background: var(--ok-soft); color: #0b6b48; }
.o-note .ic { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: currentColor; margin-top: 1px; }
.o-note .ic span { color: #fff; }
.o-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.o-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; }
.o-row .st { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); color: var(--faint); font-weight: 600; }
.o-row.ok .st { background: var(--ok-soft); color: var(--ok); }
.o-row.run .st { background: var(--blue-soft); color: var(--blue-2); }
.o-row.bad .st { background: var(--bad-soft); color: var(--bad); }
.o-row b { display: block; font-size: 13px; color: var(--text); font-weight: 500; }
.o-row small { color: var(--muted); font-size: 12px; }
.spin { width: 16px; height: 16px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.o-tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--blue-soft); color: var(--blue-3); white-space: nowrap; }
.o-tag.ok { background: var(--ok-soft); color: var(--ok); }
.o-tag.acc { background: var(--accent-soft); color: #b4561f; }
.o-tag.grey { background: var(--soft); color: var(--muted); }

/* SMS: шесть клеток */
.o-otp { display: flex; gap: 10px; }
.o-otp input { width: 44px; height: 48px; text-align: center; font-size: 20px; font-weight: 500; border: 1px solid transparent; border-radius: var(--r-sm); background: var(--input); outline: none; }
.o-otp input:focus { border-color: var(--blue-2); background: #fff; box-shadow: 0 0 0 3px rgba(24, 82, 231, .15); }
.o-otp.bad input { border-color: var(--bad); }

/* QR, видео, подпись */
.o-qr { display: flex; gap: 24px; align-items: center; }
.o-qr-side { flex: none; width: 170px; }
.o-qr-frame { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--line-sky); border-radius: 16px; }
.o-qr-box { width: 136px; height: 136px; position: relative; display: grid; place-items: center; }
.o-qr-box canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.o-qr-box .o-qr-logo { position: absolute; width: 34px; height: 34px; border-radius: 8px; background: var(--navy); display: grid; place-items: center; }
.o-qr-box .o-qr-logo img { width: 24px; }
.o-qr-timer { font-size: 12px; color: var(--text); }
.o-qr-timer b { color: var(--blue-2); font-weight: 400; }
.o-steps-mini { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.o-steps-mini li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: start; }
.o-steps-mini li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--soft); color: var(--text); display: grid; place-items: center; font-size: 15px; }
.o-steps-mini b { display: block; font-size: 13px; font-weight: 500; }
.o-steps-mini small { display: block; font-size: 12px; color: var(--muted); }
.o-video { display: flex; gap: 24px; align-items: flex-start; }
.o-cam-wrap { flex: none; width: 242px; }
.o-cam { height: 281px; background: var(--navy); border-radius: 12px; position: relative; overflow: hidden; display: grid; place-items: center; color: #c7d2e4; font-size: 12px; }
.o-cam video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.o-cam .corner { position: absolute; width: 24px; height: 24px; border: 2px solid #fff; }
.o-cam .corner.tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.o-cam .corner.tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; border-top-right-radius: 6px; }
.o-cam .corner.bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; border-bottom-left-radius: 6px; }
.o-cam .corner.br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }
.o-cam .rec { position: absolute; left: 8px; top: 8px; background: #000; color: #fff; font-size: 11px; font-weight: 500; padding: 3px 10px; border-radius: 20px; display: inline-flex; gap: 6px; align-items: center; }
.o-cam .rec::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fb2c36; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.o-rec-btn { width: 64px; height: 64px; border-radius: 50%; border: 2px solid rgba(24, 82, 231, .4); background: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; margin: 12px auto 0; }
.o-rec-btn span { width: 48px; height: 48px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; color: #fff; }
.o-rec-btn span i { width: 16px; height: 16px; border-radius: 3px; background: #fff; display: block; }
.o-rec-btn:disabled { opacity: .5; cursor: default; }
.o-rules { list-style: none; padding: 12px 0 0; margin: 0; display: grid; gap: 12px; counter-reset: r; }
.o-rules li { counter-increment: r; display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: start; font-size: 13px; }
.o-rules li::before { content: counter(r); width: 30px; height: 30px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-size: 16px; }
.o-drop { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.o-drop.ok { border-color: #bfe8d6; background: #f6fcf9; }
.o-drop b { display: block; font-size: 13px; color: var(--text); font-weight: 500; }
.o-drop small { color: var(--muted); font-size: 12px; }
.o-drop .ok-mark { color: var(--ok); font-weight: 700; margin-right: 6px; }
.o-person { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 12px; }
.o-person-h { display: flex; gap: 10px; align-items: center; }
.o-person-h .av { width: 36px; height: 36px; border-radius: 10px; background: var(--blue-soft); color: var(--blue-2); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.o-person-h b { color: var(--text); font-size: 13px; }
.o-person-h small { color: var(--muted); display: block; font-size: 12px; }
.o-doc { border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; padding: 14px 16px; max-height: 230px; overflow: auto; font-size: 13px; }
.o-doc dl { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; margin: 0; }
.o-doc dt { color: var(--muted); }
.o-doc dd { margin: 0; color: var(--text); font-weight: 500; }
.o-sign-doc { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; }
.o-sign-doc b { display: block; font-size: 13px; font-weight: 500; }
.o-sign-doc small { color: var(--muted); font-size: 12px; }
.o-sign-doc.ok { border-color: #bfe8d6; background: #f6fcf9; }
.o-sign-doc.lock { opacity: .55; }
.o-cert { display: grid; grid-template-columns: 50px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid #d6dce1; border-radius: 8px; cursor: pointer; background: #fcfcfd; text-align: left; transition: border-color .15s, transform .15s, box-shadow .15s; }
.o-cert:hover { border-color: var(--blue-2); transform: translateY(-2px); box-shadow: 0 2px 6px rgba(0, 0, 0, .1); }
.o-cert[aria-pressed="true"] { border-color: var(--blue-2); box-shadow: inset 0 0 0 1px #4089ff; }
.o-cert .ic { width: 50px; height: 50px; display: grid; place-items: center; color: rgba(10, 29, 49, .55); }
.o-cert[aria-pressed="true"] .ic { color: var(--blue-2); }
.o-cert .ic svg { width: 36px; height: 36px; }
.o-cert b { display: block; font-size: 14px; color: #051243; text-transform: uppercase; font-weight: 600; }
.o-cert[aria-pressed="true"] b { color: var(--blue-2); }
.o-cert small { color: #6b7684; font-size: 11px; display: block; }
.o-result { text-align: center; padding: 10px 0; }
.o-result .big { width: 84px; height: 84px; border-radius: 50%; margin: 6px auto 14px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); font-size: 40px; animation: pop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.o-result h2 { margin: 0; font-size: 18px; font-weight: 600; }
.o-result p { margin: 6px auto 0; color: var(--muted); max-width: 420px; white-space: pre-line; font-size: 13px; }
.o-timeline { list-style: none; padding: 0; margin: 18px auto 0; max-width: 460px; text-align: left; display: grid; gap: 0; }
.o-timeline li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding-bottom: 14px; position: relative; }
.o-timeline li::before { content: ''; position: absolute; left: 12px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.o-timeline li:last-child::before { display: none; }
.o-timeline i { width: 26px; height: 26px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 600; color: var(--faint); }
.o-timeline li.ok i { background: var(--ok); color: #fff; }
.o-timeline li.run i { background: var(--blue); color: #fff; }
.o-timeline b { color: var(--text); display: block; font-size: 13px; font-weight: 500; }
.o-timeline small { color: var(--muted); font-size: 12px; }

/* правая колонка: как у банка */
.o-side { position: sticky; top: 72px; display: grid; gap: 16px; }
.o-side-card { padding: 16px; }
.o-side-card h4 { margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.o-side-row { display: flex; gap: 10px; align-items: flex-start; }
.o-side-row svg { width: 24px; height: 24px; color: var(--blue-2); flex: none; }
.o-side-row small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.o-side-row a { color: var(--text); text-decoration: none; font-size: 14px; }
.o-side-ask { width: 100%; justify-content: center; margin-top: 12px; }
.o-side-ask svg { width: 16px; height: 16px; }
.o-benefits { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.o-benefits li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; font-size: 12px; color: var(--text); line-height: 1.35; }
.o-benefits li::before { content: '✓'; color: var(--blue-2); font-weight: 700; }
.o-side-img { width: 100%; height: auto; border-radius: 10px; display: block; }

/* подвал */
.o-foot { background: #fff; border-top: 1px solid var(--line); padding: 26px 16px 18px; }
.o-foot-in { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; align-items: start; }
.o-social { display: flex; gap: 6px; margin-top: 10px; }
.o-social a { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; }
.o-social a svg { width: 12px; height: 12px; }
.o-foot-links { display: grid; gap: 10px; font-size: 13px; }
.o-foot-links a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.o-foot-links a svg { width: 16px; height: 16px; color: var(--text); }
.o-foot-lic { text-align: center; font-size: 11px; color: var(--muted); margin: 22px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- помощник: плавающий виджет ---------- */
.o-fab { position: fixed; right: 22px; bottom: 22px; z-index: 40; border: 0; border-radius: 30px; background: var(--navy); color: #fff; padding: 12px 18px 12px 14px; font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px rgba(31, 43, 66, .35); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: transform .15s; }
.o-fab:hover { transform: translateY(-2px); }
.o-fab .badge { background: var(--accent); border-radius: 10px; font-size: 11px; padding: 1px 7px; }
.o-fab.pulse { animation: fabp 1.2s ease-out 3; }
@keyframes fabp { 0% { box-shadow: 0 10px 30px rgba(31, 43, 66, .35), 0 0 0 0 rgba(240, 134, 74, .7); } 100% { box-shadow: 0 10px 30px rgba(31, 43, 66, .35), 0 0 0 18px rgba(240, 134, 74, 0); } }
.o-bot { position: fixed; right: 22px; bottom: 22px; width: 390px; height: min(680px, calc(100vh - 44px)); z-index: 45; background: #fff; border-radius: 20px; box-shadow: 0 24px 70px rgba(15, 23, 38, .3); display: flex; flex-direction: column; overflow: hidden; transform: translateY(24px) scale(.97); opacity: 0; pointer-events: none; transition: transform .25s ease, opacity .2s ease; }
.o-bot.open { transform: none; opacity: 1; pointer-events: auto; }
.o-bot-h { background: linear-gradient(135deg, var(--navy) 0%, #4a5f86 100%); color: #fff; padding: 12px 14px; display: flex; gap: 12px; align-items: center; position: relative; }
.o-ava { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; flex: none; position: relative; }
.o-ava svg { width: 22px; height: 22px; }
.o-ava::after { content: ''; position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; background: #3ddc97; border: 2px solid var(--navy); }
.o-bot-h > div:nth-child(2) { min-width: 0; }
.o-bot-h b { display: block; font-size: 14px; white-space: nowrap; }
.o-bot-h small { opacity: .8; font-size: 12px; white-space: nowrap; display: block; overflow: hidden; text-overflow: ellipsis; }
.o-bot-h .o-sp { flex: 1; }
.o-bot-h .o-x { border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.o-bot-h .o-x svg { width: 16px; height: 16px; }
.o-ctx { margin: 10px 12px 0; background: var(--blue-soft); border-radius: 10px; padding: 7px 12px; font-size: 12px; color: var(--navy-3); display: flex; gap: 8px; align-items: center; }
.o-ctx .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-2); box-shadow: 0 0 0 0 rgba(24, 82, 231, .5); animation: ping 2s infinite; flex: none; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(24, 82, 231, 0); } 100% { box-shadow: 0 0 0 0 rgba(24, 82, 231, 0); } }
.o-ctx b { font-weight: 600; }
.o-ctx .o-idle { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--muted); }
.o-msgs { flex: 1; overflow-y: auto; padding: 12px 12px 6px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.o-m { max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: 13px; line-height: 1.5; animation: oin .25s ease; overflow-wrap: anywhere; }
.o-m p { margin: 0 0 6px; } .o-m p:last-child { margin: 0; }
.o-m ul { margin: 4px 0; padding-left: 18px; }
.o-m.bot { background: var(--soft); color: var(--text); border-bottom-left-radius: 6px; align-self: flex-start; }
.o-m.bot.idle { background: var(--accent-soft); border: 1px solid #ffd9bf; }
.o-m.user { background: var(--blue); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.o-m.sys { align-self: center; background: transparent; color: var(--faint); font-size: 12px; padding: 2px 8px; text-align: center; }
.o-m .via { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; opacity: .6; margin-bottom: 2px; font-weight: 600; }
.o-m.typing { display: inline-flex; gap: 4px; padding: 13px 14px; }
.o-m.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--steel); animation: dots 1.2s infinite; }
.o-m.typing i:nth-child(2) { animation-delay: .15s; } .o-m.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.o-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 12px 8px; }
.o-chip { border: 1px solid var(--line-2); background: #fff; color: var(--blue-2); border-radius: 20px; padding: 6px 12px; font-size: 12px; cursor: pointer; font-weight: 500; text-align: left; transition: background .15s, border-color .15s; }
.o-chip:hover { background: var(--blue-soft); border-color: var(--blue-2); }
.o-chip.acc { border-color: #ffc9a6; color: #b4561f; }
.o-in-row { border-top: 1px solid var(--line); padding: 10px 12px 12px; display: flex; gap: 8px; align-items: flex-end; }
.o-in-row textarea { flex: 1; border: 1px solid transparent; background: var(--input); border-radius: 12px; padding: 10px 12px; resize: none; max-height: 120px; min-height: 42px; outline: none; font-size: 13px; }
.o-in-row textarea:focus { border-color: var(--blue-2); background: #fff; }
.o-ib { width: 42px; height: 42px; border-radius: 12px; border: 0; display: grid; place-items: center; cursor: pointer; flex: none; transition: background .15s, transform .1s; }
.o-ib svg { width: 20px; height: 20px; }
.o-send { background: var(--blue); color: #fff; }
.o-send:disabled { background: #c5cfde; }
.o-mic { background: var(--blue-soft); color: var(--blue-2); position: relative; }
.o-mic.on { background: var(--accent); color: #fff; }
.o-mic.on::before { content: ''; position: absolute; inset: -5px; border-radius: 16px; border: 2px solid var(--accent); opacity: calc(.2 + var(--lvl, 0) * .8); transform: scale(calc(1 + var(--lvl, 0) * .18)); transition: transform .08s, opacity .08s; }
.o-voice { display: flex; align-items: center; gap: 10px; margin: 0 12px 8px; padding: 8px 12px; background: var(--accent-soft); border-radius: 10px; font-size: 12px; color: #8a4316; }
.o-voice .bars { display: inline-flex; gap: 3px; align-items: center; height: 18px; }
.o-voice .bars i { width: 3px; border-radius: 2px; background: var(--accent); height: 30%; transition: height .1s; }
.o-voice .o-sp { flex: 1; }
.o-voice.call { background: #e6f7ef; color: #0b6b48; }
.o-voice.call .bars i { background: #19a974; }
.o-callbtn { border: 0; background: #19a974; color: #fff; border-radius: 8px; padding: 7px 9px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12px; cursor: pointer; margin-right: 6px; box-shadow: 0 4px 12px rgba(25, 169, 116, .35); }
.o-callbtn:hover { background: #16965f; }
.o-callbtn svg { width: 14px; height: 14px; }
.o-callbtn span { display: none; }
/* при открытом виджете на широком экране страница сдвигается влево, чтобы он ничего не закрывал */
@media (min-width: 1100px) { body.bot-open .o-wrap { max-width: 1560px; padding-right: 428px; } }

/* ---------- модальные окна и панель ведущего ---------- */
.o-modal { position: fixed; inset: 0; background: rgba(15, 23, 38, .45); z-index: 60; display: grid; place-items: center; padding: 16px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.o-dialog { background: #fff; border-radius: 16px; padding: 24px; width: min(560px, 100%); box-shadow: 0 30px 80px rgba(15, 23, 38, .35); animation: oin .25s; max-height: calc(100vh - 32px); overflow: auto; }
.o-dialog h2 { margin: 0 0 6px; font-size: 18px; color: var(--text); font-weight: 600; }
.o-dialog p { color: var(--muted); margin: 0 0 14px; font-size: 13px; }
.o-dialog .o-actions { border: 0; padding: 0; margin-top: 18px; justify-content: flex-end; }
.o-panel { position: fixed; right: 16px; top: 64px; z-index: 50; width: 340px; background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(15, 23, 38, .25); padding: 18px; max-height: calc(100vh - 80px); overflow: auto; animation: oin .2s; }
.o-panel h3 { margin: 0 0 4px; font-size: 15px; color: var(--text); font-weight: 600; }
.o-panel h4 { margin: 16px 0 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.o-panel .o-seg button { padding: 6px 10px; font-size: 12px; }
.o-panel .o-chk { padding: 6px 0; font-size: 13px; color: var(--text); }
.o-panel p { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.o-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy-3); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13px; z-index: 70; animation: oin .2s; }

/* входящий звонок от Octobank */
.o-modal-call { background: rgba(15, 23, 38, .55); backdrop-filter: blur(6px); }
.o-modal-call .o-dialog { width: min(360px, 100%); text-align: center; background: linear-gradient(160deg, #2b3a55, #374867 55%, #4a5f86); color: #fff; padding: 34px 26px 26px; }
.o-call h2 { color: #fff; font-size: 24px; margin: 16px 0 4px; }
.o-call p { color: rgba(255, 255, 255, .8); margin: 0; }
.o-call .o-hint { color: rgba(255, 255, 255, .6); margin-top: 8px; }
.o-call-ava { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; background: rgba(255, 255, 255, .12); animation: callp 1.6s ease-out infinite; }
.o-call-ava img { width: 66px; }
@keyframes callp { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .45); } 100% { box-shadow: 0 0 0 26px rgba(255, 255, 255, 0); } }
.o-call-btns { display: flex; justify-content: space-around; margin-top: 30px; }
.o-call-b { border: 0; background: transparent; color: #fff; display: grid; justify-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: 13px; }
.o-call-b svg { width: 62px; height: 62px; padding: 17px; border-radius: 50%; box-sizing: border-box; }
.o-call-b.no svg { background: #e5484d; }
.o-call-b.yes svg { background: #19a974; animation: shake 1.2s ease-in-out infinite; }
@keyframes shake { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-14deg); } 80% { transform: rotate(14deg); } 90% { transform: rotate(-8deg); } }

@media (max-width: 1100px) {
  .o-wrap { grid-template-columns: 200px minmax(0, 1fr); }
  .o-side { display: none; }
}
@media (max-width: 760px) {
  .o-wrap { grid-template-columns: minmax(0, 1fr); padding: 16px 12px 90px; }
  .o-steps { display: none; }
  .o-card { padding: 18px 16px; min-height: 0; }
  .o-grid, .o-choice, .o-tiles { grid-template-columns: minmax(0, 1fr); }
  .o-qr, .o-video { flex-direction: column; align-items: stretch; }
  .o-qr-side, .o-cam-wrap { width: 100%; }
  .o-doc dl { grid-template-columns: 1fr; }
  .o-foot-in { grid-template-columns: 1fr; }
  .o-bot { inset: auto 0 0 0; width: auto; height: min(80vh, 640px); border-radius: 20px 20px 0 0; transform: translateY(105%); }
  .o-bot.open { transform: none; }
  .o-fab { right: 14px; bottom: 14px; }
  .o-hide-m { display: none !important; }
  .o-top-in { gap: 8px; }
  .o-lang button { padding: 4px 5px; font-size: 12px; }
  .o-panel { left: 16px; right: 16px; width: auto; }
  .o-otp { gap: 6px; } .o-otp input { width: 40px; }
}

/* шапка страницы аналитики (octo-stats.html) */
.o-crumbs { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; margin-left: 6px; }
.o-crumbs small { color: var(--muted); font-size: 12px; }
.o-crumbs b { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
