/* CliXoft: демо Telegram-бота. Сторінка в кольорах бізнесу (змінні в index.html), чат у світлій темі Telegram. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: default; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-family: var(--font-h); font-weight: var(--hw, 700); letter-spacing: var(--hls, -.02em); }
p { margin: 0; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg .f { fill: currentColor; stroke: none; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 16px; }

/* honesty plate + header */
.honest { background: var(--ink); color: rgba(255, 255, 255, .86); font-size: 12.5px; line-height: 1.4; text-align: center; padding: 7px 16px; }
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 54px; }
.cxb { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink); white-space: nowrap; }
.cxb i { width: 26px; height: 26px; border-radius: 8px; background: #111827; color: #fff; display: grid; place-items: center; font-style: normal; font: 800 13px/1 system-ui, sans-serif; }
.cxb span { color: var(--muted); font-weight: 500; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: var(--rb, 999px); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; border: 1.5px solid transparent; transition: background .2s, border-color .2s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn-p { background: var(--acc); color: var(--on-acc, #fff); }
.btn-p:hover { background: var(--acc2); }
.btn-o { border-color: var(--line2); background: var(--card); color: var(--ink); }
.btn-o:hover { border-color: var(--acc); }
.btn-s { height: 38px; padding: 0 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }

/* stage */
.stage { padding: 20px 0 40px; background: var(--stage-bg, var(--bg)); }
.stage-in { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.intro { display: flex; flex-direction: column; gap: 14px; }
.biz { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.biz-l { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; overflow: hidden; flex: none; }
.biz-l svg { width: 36px; height: 36px; }
.biz small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.eyebrow { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--acc); font-weight: 700; }
.intro h1 { font-size: 30px; }
.lead { color: var(--ink2); font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: var(--acc-soft); color: var(--acc-ink, var(--acc)); font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.chip svg { width: 16px; height: 16px; }
.howto { border: 1px solid var(--line); background: var(--card); border-radius: var(--r); padding: 16px; display: grid; gap: 10px; }
.howto b { font-size: 14px; }
.howto ol { margin: 0; padding-left: 20px; color: var(--ink2); font-size: 14px; display: grid; gap: 4px; }
.tries { display: flex; flex-wrap: wrap; gap: 6px; }
.try { padding: 6px 11px; border-radius: 999px; border: 1px dashed var(--line2); font-size: 13px; color: var(--ink2); background: var(--bg); }
.try:hover { border-color: var(--acc); color: var(--acc); }
.restart { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; color: var(--acc); }
.restart svg { width: 17px; height: 17px; }
.tries-m { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; width: 100%; max-width: 420px; font-size: 13px; color: var(--muted); }
.tries-m > span { width: 100%; }
.phone-col { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.phone-cap { height: 26px; display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 420px; font-size: 13px; color: var(--muted); gap: 10px; }

/* phone frame */
.phone { width: 100%; max-width: 420px; height: 640px; border-radius: 22px; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 18px 50px rgba(20, 30, 40, .18); border: 1px solid rgba(0, 0, 0, .08); background: #fff; position: relative; }
.tg { position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden; background: #fff; font: 400 15px/1.36 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; color: #000; -webkit-font-smoothing: antialiased; }
.tg svg { width: 22px; height: 22px; }
.tg-sb { display: none; }

/* telegram header */
.tg-hd { flex: none; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 8px 0 6px; background: #fff; border-bottom: 1px solid #e7e8ea; position: relative; z-index: 3; }
.tg-back { color: #3390ec; display: grid; place-items: center; width: 30px; height: 40px; }
.tg-back svg { width: 24px; height: 24px; stroke-width: 2.2; }
.tg-av { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; }
.tg-av svg { width: 40px; height: 40px; }
.tg-av.sm, .tg-av.sm svg { width: 30px; height: 30px; }
.tg-ti { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tg-ti b { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.tg-st { font-size: 13.5px; color: #707579; line-height: 1.25; display: flex; align-items: flex-end; gap: 1px; }
.tg-st.on { color: #3390ec; }
.dots { display: inline-flex; gap: 2px; margin: 0 0 4px 2px; }
.dots i { width: 3.5px; height: 3.5px; border-radius: 50%; background: currentColor; animation: dt 1.2s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dt { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
.tg-more { width: 40px; height: 40px; display: grid; place-items: center; color: #707579; border-radius: 50%; }
.tg-more:hover { background: #f1f1f1; }

/* chat body: default light wallpaper */
.tg-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; position: relative;
  background-color: #c7d7a6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='%23395a2a' stroke-opacity='.13' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 30l26-11-6 26-7-6-5 6v-8l11-11-13 9z'/%3E%3Cpath d='M150 24c-5-6-14-1-10 6l10 10 10-10c4-7-5-12-10-6z'/%3E%3Ccircle cx='96' cy='70' r='9'/%3E%3Cpath d='M180 92l4 9 10 1-7 7 2 10-9-5-9 5 2-10-7-7 10-1z'/%3E%3Cpath d='M30 120c8-10 22-10 30 0M34 128h22'/%3E%3Crect x='112' y='132' width='26' height='19' rx='5'/%3E%3Cpath d='M112 139h26'/%3E%3Cpath d='M70 182c0-8 12-8 12 0s12 8 12 0'/%3E%3Ccircle cx='176' cy='176' r='4'/%3E%3Ccircle cx='190' cy='186' r='2.5'/%3E%3Cpath d='M16 196l10-10 8 8 12-14'/%3E%3Cpath d='M100 14v12M94 20h12'/%3E%3Cpath d='M200 140c-6 0-6 10 0 10s6 10 0 10'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(120% 80% at 0% 0%, #dfe5b6 0%, rgba(223, 229, 182, 0) 60%), radial-gradient(110% 90% at 100% 100%, #8fbb87 0%, rgba(143, 187, 135, 0) 65%), linear-gradient(160deg, #d4dca8, #a9c88f 55%, #c6d69e);
  background-size: 220px 220px, 100% 100%, 100% 100%, 100% 100%; background-attachment: local, scroll, scroll, scroll; }
.tg-msgs { display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 12px; min-height: 100%; justify-content: flex-end; }

/* start screen */
.tg-intro { flex: 1; display: grid; place-items: center; padding: 10px; }
.tg-intro-c { background: rgba(255, 255, 255, .94); border-radius: 16px; max-width: 290px; overflow: hidden; box-shadow: 0 1px 2px rgba(16, 35, 47, .15); font-size: 14.5px; }
.tg-intro-c img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.tg-intro-c b { display: block; padding: 12px 14px 4px; font-size: 15px; }
.tg-intro-c p { padding: 0 14px 14px; color: #222; }

/* bubbles */
.m { display: flex; flex-direction: column; max-width: 86%; position: relative; }
.m.in { align-self: flex-start; }
.m.out { align-self: flex-end; max-width: 80%; }
.m.new { animation: pop .22s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.m.wk, .m.wm, .m.wide { width: 86%; }
.m.wv { width: 270px; max-width: 86%; }
.m.out.wm { width: 72%; }
.m.wc { width: 230px; }
.bb { position: relative; background: #fff; border-radius: 15px; padding: 6px 10px 7px 11px; box-shadow: 0 1px 2px rgba(16, 35, 47, .14); overflow-wrap: anywhere; word-break: normal; }
.m.out .bb { background: #eeffde; }
.m.tail.in .bb { border-bottom-left-radius: 4px; }
.m.tail.out .bb { border-bottom-right-radius: 4px; }
.m.tail.in .bb::before, .m.tail.out .bb::before { content: ''; position: absolute; bottom: 0; width: 9px; height: 17px; background: inherit; }
.m.tail.in .bb::before { left: -8px; clip-path: path('M9 0 V17 H0 C4 15 8 11 9 5 Z'); }
.m.tail.out .bb::before { right: -8px; clip-path: path('M0 0 V17 H9 C5 15 1 11 0 5 Z'); }
.m.wm .bb, .m.wv .bb { padding: 0; overflow: visible; }
.m.wm .bb > :first-child { border-top-left-radius: 15px; border-top-right-radius: 15px; }
.tx { padding: 0; line-height: 1.37; }
.m.wm .tx, .m.wv .tx { padding: 7px 11px 7px; }
.tx b { font-weight: 600; }
.tx i { font-style: italic; }
.tx code { font: 13.5px/1.3 ui-monospace, Consolas, monospace; background: rgba(0, 0, 0, .06); padding: 1px 4px; border-radius: 4px; }
.tx a { color: #3390ec; text-decoration: none; }
.tx .q { display: block; border-left: 3px solid #3390ec; background: rgba(51, 144, 236, .08); border-radius: 4px; padding: 3px 8px; margin: 4px 0; }
.m.out .tx .q { border-color: #4fae4e; background: rgba(79, 174, 78, .1); }
.tx .li { display: block; }
.tx .mu { color: #707579; font-size: 13.5px; }
.sp { display: inline-block; width: 40px; height: 1px; vertical-align: baseline; }
.m.out .sp { width: 58px; }
.mt { position: absolute; right: 9px; bottom: 4px; font-size: 12px; color: #a0acb6; display: inline-flex; align-items: center; gap: 2px; line-height: 1; white-space: nowrap; pointer-events: none; }
.m.out .mt { color: #4fae4e; }
.mt.ov { background: rgba(0, 0, 0, .38); color: #fff !important; border-radius: 9px; padding: 3px 6px; right: 7px; bottom: 7px; }
.ck { display: inline-flex; }
.ck svg { width: 17px; height: 12px; stroke-width: 1.6; }
.ph { width: 100%; object-fit: cover; background: #e9ece6; cursor: zoom-in; }
.m.wm .bb > .ph:last-of-type:not(:only-of-type) { }
.m.wm .bb > :last-child.mt.ov ~ * { }
.alb { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; overflow: hidden; border-radius: 15px 15px 0 0; }
.alb img { width: 100%; aspect-ratio: 4/5; object-fit: cover; cursor: zoom-in; background: #e9ece6; }
.alb.n3 img:first-child { grid-row: span 2; aspect-ratio: auto; height: 100%; }
.m.wm .bb > .alb:only-child, .m.wm .bb > .ph:nth-last-child(2):first-child, .m.wm .bb > .alb:nth-last-child(2):first-child { border-radius: 15px; }
.m.wm .bb > .loc:nth-last-child(2):first-child { border-radius: 15px; overflow: hidden; }
.m.tail.in.wm .bb > .ph:nth-last-child(2):first-child, .m.tail.in.wm .bb > .alb:nth-last-child(2):first-child { border-bottom-left-radius: 4px; }
.m.tail.out.wm .bb > .loc:nth-last-child(2):first-child { border-bottom-right-radius: 4px; }
.loc { overflow: hidden; border-radius: 15px 15px 0 0; }
.loc img { width: 100%; aspect-ratio: 5/3; object-fit: cover; }
.ven { padding: 7px 11px 20px; display: flex; flex-direction: column; }
.ven b { font-weight: 600; }
.ven span { color: #707579; font-size: 14px; }
.inv { padding: 8px 11px 22px; }
.inv b { font-weight: 600; display: block; }
.inv p { font-size: 14.5px; margin-top: 2px; }
.inv-s { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.inv-s b { font-size: 16px; display: inline; }
.inv-s small { font-size: 11px; color: #707579; letter-spacing: .03em; }
.m.wk:not(.wm) .bb { }
.voice { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; }
.m.wv .bb { padding-bottom: 6px; }
.vplay { width: 44px; height: 44px; border-radius: 50%; background: #3390ec; color: #fff; display: grid; place-items: center; flex: none; }
.m.out .vplay { background: #4fae4e; }
.vplay svg { width: 22px; height: 22px; }
.vw { flex: 1; min-width: 0; }
.vbars { display: flex; align-items: flex-end; gap: 2px; height: 22px; overflow: hidden; }
.vbars i { width: 2.5px; border-radius: 2px; background: #b8d5f3; flex: none; }
.vbars i.pl { background: #3390ec; }
.vmeta { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: #3390ec; margin-top: 3px; }
.vdot { width: 6px; height: 6px; border-radius: 50%; background: #3390ec; }
.vtr { width: 32px; height: 30px; border-radius: 9px; background: #e3effc; color: #3390ec; font-size: 12px; font-weight: 700; flex: none; margin-right: 34px; }
.vtr.on { background: #3390ec; color: #fff; }
.vtext { padding: 0 11px 18px; font-size: 14.5px; }
.ct { display: flex; align-items: center; gap: 10px; padding: 8px 11px 20px; }
.ct-av { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #7bc862, #4fae4e); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 18px; flex: none; }
.ct b { display: block; font-weight: 600; color: #3a8e26; }
.ct span { font-size: 14px; }

/* inline keyboard */
.ikb { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.ikr { display: flex; gap: 4px; }
.ib { flex: 1 1 0; min-width: 0; min-height: 38px; padding: 6px 8px; border-radius: 9px; background: rgba(28, 52, 24, .36); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font-size: 14px; font-weight: 600; line-height: 1.2; position: relative; transition: background .15s; text-shadow: 0 1px 1px rgba(0, 0, 0, .12); overflow-wrap: anywhere; }
.ib:hover { background: rgba(28, 52, 24, .48); }
.ib:active { background: rgba(28, 52, 24, .58); }
.ib.url svg { position: absolute; top: 4px; right: 4px; width: 9px; height: 9px; stroke-width: 1.8; }
.ib svg { width: 15px; height: 15px; vertical-align: -3px; margin-left: 3px; }
.m.used .ib { opacity: .55; }
.m.used .ib.on { opacity: 1; background: rgba(28, 52, 24, .55); }
.m.used .ib.on::after { content: ' ✓'; }
.m.paid .ibpay { opacity: 1; }

/* service pill */
.svc { align-self: center; margin: 6px 0; }
.svc span { display: inline-block; padding: 3px 10px; border-radius: 12px; background: rgba(28, 52, 24, .34); color: #fff; font-size: 13.5px; font-weight: 500; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* input bar */
.tg-bar { flex: none; background: #fff; border-top: 1px solid #e7e8ea; position: relative; z-index: 3; }
.tg-startb { width: 100%; height: 52px; color: #3390ec; font-weight: 600; font-size: 15.5px; letter-spacing: .04em; animation: glow 2.2s infinite; }
.tg-startb:hover { background: #f4f8fd; }
@keyframes glow { 0%, 100% { background: #fff; } 50% { background: #eef5fd; } }
.tg-in { display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 8px; min-height: 52px; }
.tg-menu { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px 0 7px; border-radius: 16px; background: #3390ec; color: #fff; font-size: 14px; font-weight: 600; flex: none; }
.tg-menu svg { width: 18px; height: 18px; stroke-width: 2.2; }
.tg-tx { flex: 1; min-width: 0; border: 0; outline: 0; height: 38px; padding: 0 6px; font-size: 15.5px; background: transparent; }
.tg-tx::placeholder { color: #a2acb4; }
.tg-in > button:not(.tg-menu) { width: 38px; height: 38px; display: grid; place-items: center; color: #8a949d; border-radius: 50%; flex: none; }
.tg-kbt.on { color: #3390ec !important; }
.tg-send.go { color: #3390ec !important; }
.tg-send.go svg { width: 26px; height: 26px; }

/* reply keyboard */
.tg-kb { flex: none; background: #eceef1; padding: 6px 6px 8px; display: flex; flex-direction: column; gap: 6px; max-height: 40%; overflow-y: auto; position: relative; z-index: 3; }
.kbr { display: flex; gap: 6px; }
.kb { flex: 1 1 0; min-width: 0; min-height: 42px; padding: 6px 8px; background: #fff; border-radius: 8px; box-shadow: 0 1px 0 rgba(0, 0, 0, .18); font-size: 14.5px; color: #000; display: inline-flex; align-items: center; justify-content: center; gap: 6px; line-height: 1.2; overflow-wrap: anywhere; }
.kb:active { background: #e1e4e8; }
.kb svg { width: 18px; height: 18px; color: #3390ec; }

/* command list */
.tg-cmds { position: absolute; left: 6px; right: 6px; bottom: 58px; z-index: 6; background: #fff; border-radius: 12px; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); padding: 4px 0; max-height: 60%; overflow-y: auto; }
.tg-cmds button { display: grid; grid-template-columns: 30px auto 1fr; align-items: center; gap: 10px; width: 100%; padding: 7px 12px; text-align: left; }
.tg-cmds button:hover { background: #f4f4f5; }
.tg-cmds b { font-weight: 600; font-size: 14.5px; }
.tg-cmds small { color: #707579; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* toast, overlays */
.tg-toast { position: absolute; left: 50%; top: 66px; transform: translateX(-50%); z-index: 9; width: max-content; max-width: 86%; background: rgba(32, 36, 40, .86); color: #fff; font-size: 14px; padding: 9px 14px; border-radius: 10px; text-align: center; line-height: 1.3; }
.tg-toast.go { animation: tin .2s ease-out; }
@keyframes tin { from { opacity: 0; transform: translate(-50%, -6px); } to { opacity: 1; transform: translate(-50%, 0); } }
.tg-ov { position: absolute; inset: 0; z-index: 10; display: flex; align-items: flex-end; justify-content: center; }
.tg-ov.dim { background: rgba(0, 0, 0, .38); animation: fade .2s; }
.tg-ov.dark { background: rgba(0, 0, 0, .9); align-items: center; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.zoom { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 30px 10px; cursor: zoom-out; }
.zoom img { max-height: 100%; object-fit: contain; border-radius: 6px; }
.zoom .pay-x { position: absolute; top: 12px; right: 12px; color: #fff; }
.dlg { margin: auto 22px; background: #fff; border-radius: 14px; padding: 18px 18px 8px; box-shadow: 0 10px 40px rgba(0, 0, 0, .25); align-self: center; font-size: 14.5px; }
.dlg b { font-size: 16px; font-weight: 600; display: block; margin-bottom: 6px; }
.dlg p { color: #333; }
.dlg-n { margin-top: 8px; font-weight: 600; }
.dlg-n small { font-weight: 400; color: #707579; }
.dlg-b { display: flex; justify-content: flex-end; gap: 6px; margin-top: 10px; }
.dlg-b button { padding: 9px 12px; color: #3390ec; font-weight: 600; border-radius: 8px; }
.dlg-b button:hover { background: #eef5fd; }
.pay { width: 100%; background: #fff; border-radius: 16px 16px 0 0; padding: 6px 16px 16px; animation: up .25s ease-out; max-height: 92%; overflow-y: auto; font-size: 14.5px; }
@keyframes up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.pay-hd { display: flex; align-items: center; gap: 8px; height: 48px; }
.pay-hd b { font-size: 17px; font-weight: 600; flex: 1; }
.pay-x { width: 36px; height: 36px; display: grid; place-items: center; color: #707579; border-radius: 50%; }
.pay-test { font-size: 11.5px; font-weight: 600; color: #b26b00; background: #fff2d9; padding: 3px 8px; border-radius: 8px; text-transform: uppercase; letter-spacing: .04em; }
.pay-it { display: flex; gap: 12px; align-items: center; padding: 6px 0 12px; border-bottom: 1px solid #eee; }
.pay-it img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; }
.pay-it b { font-weight: 600; display: block; }
.pay-it small { color: #707579; font-size: 13.5px; display: block; line-height: 1.3; }
.pay-ln { padding: 8px 0; display: grid; gap: 4px; color: #444; }
.pay-ln div, .pay-tot { display: flex; justify-content: space-between; gap: 10px; }
.pay-tot { border-top: 1px solid #eee; padding: 10px 0; font-size: 16px; }
.pay-tot b { font-weight: 700; }
.pay-card { background: #f4f5f7; border-radius: 12px; padding: 10px 12px; }
.pay-card small { color: #707579; font-size: 12.5px; }
.pay-card div { display: flex; align-items: center; gap: 8px; margin-top: 2px; font-weight: 600; flex-wrap: wrap; }
.pay-card em { font-style: normal; font-weight: 500; font-size: 12px; color: #b26b00; }
.pay-note { display: flex; gap: 8px; font-size: 12.5px; color: #707579; margin: 10px 0 12px; line-height: 1.35; }
.pay-note svg { width: 16px; height: 16px; margin-top: 1px; }
.pay-go { width: 100%; height: 48px; border-radius: 10px; background: #3390ec; color: #fff; font-weight: 600; font-size: 15.5px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.pay-go.ok { background: #4fae4e; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

/* manager panel */
.mgr { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 14px; min-width: 0; box-shadow: var(--sh); }
.mgr.ping .mg-hd .live i { animation: ping .9s ease-out; }
.mg-hd { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.mg-hd h2 { font-size: 20px; }
.mg-hd p { font-size: 13.5px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #1f8a4c; background: #e6f5ec; padding: 4px 9px; border-radius: 999px; flex: none; text-transform: uppercase; letter-spacing: .04em; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #1fa45a; box-shadow: 0 0 0 0 rgba(31, 164, 90, .5); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(31, 164, 90, .6); } 100% { box-shadow: 0 0 0 9px rgba(31, 164, 90, 0); } }
.crm { border: 1px solid var(--line); border-radius: calc(var(--r) - 4px); padding: 12px; display: grid; gap: 10px; background: var(--card); }
.crm-hd { display: flex; align-items: center; gap: 10px; }
.crm-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--acc-soft); color: var(--acc-ink, var(--acc)); display: grid; place-items: center; flex: none; }
.crm-hd small { display: block; font-size: 12px; color: var(--muted); line-height: 1.2; }
.crm-hd b { font-size: 15px; }
.crm-hd > div { flex: 1; min-width: 0; }
.crm-st { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: #f1f2f4; color: #5b6470; white-space: nowrap; }
.crm-st.s0, .crm-st.s1 { background: #e8f1fe; color: #1d5fbf; }
.crm-st.s2 { background: #fff3dc; color: #95600a; }
.crm-st.s3, .crm-st.fin { background: #e4f5ea; color: #1b7a43; }
.crm-stg { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.crm-stg li { display: flex; flex-direction: column; gap: 5px; font-size: 11px; color: var(--muted); line-height: 1.2; min-width: 0; }
.crm-stg li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-stg li i { height: 4px; border-radius: 3px; background: var(--line); }
.crm-stg li.done i { background: var(--acc); opacity: .55; }
.crm-stg li.cur i { background: var(--acc); }
.crm-stg li.cur { color: var(--ink); font-weight: 600; }
.crm-f { margin: 0; display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.crm-f > div { background: var(--card); padding: 4px 10px; min-width: 0; transition: background .6s; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.crm-f > div.w { grid-column: 1 / -1; }
.crm-f dt { font-size: 12px; color: var(--muted); line-height: 1.3; }
.crm-f dd { margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; color: var(--ink); }
.crm-f dd:empty::before { content: ''; display: inline-block; width: 16px; height: 2px; border-radius: 2px; background: var(--line2); vertical-align: middle; }
.crm-f > div.fl { animation: fl 1.4s ease-out; }
@keyframes fl { 0% { background: var(--flash, #fff4c9); } 100% { background: var(--card); } }
.crm-act, .tm-k { display: flex; gap: 8px; }
.mbtn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: 10px; border: 1.5px solid var(--line2); font-weight: 700; font-size: 14px; background: var(--card); color: var(--ink); }
.mbtn svg { width: 17px; height: 17px; }
.mbtn.ok { background: var(--acc); border-color: var(--acc); color: var(--on-acc, #fff); }
.mbtn:disabled { opacity: .5; }
.mbtn.ok:disabled { opacity: .7; }
.team { border: 1px solid var(--line); border-radius: calc(var(--r) - 4px); overflow: hidden; display: flex; flex-direction: column; min-height: 0; flex: 1; }
.team-hd { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid #e7e8ea; background: #fff; }
.team-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; flex: none; overflow: hidden; }
.team-av svg { width: 34px; height: 34px; }
.team-hd b { display: block; font-size: 14.5px; font-weight: 600; color: #000; line-height: 1.25; }
.team-hd small { font-size: 12.5px; color: #707579; }
.team-feed { background: #e9eef2; padding: 10px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; min-height: 150px; max-height: 330px; font: 14px/1.35 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; color: #000; flex: 1; }
.team-empty { color: #707579; font-size: 13.5px; text-align: center; margin: auto 0; }
.tm { display: flex; flex-direction: column; gap: 4px; max-width: 94%; animation: pop .25s ease-out; }
.tm.me { align-self: flex-end; }
.tm-b { background: #fff; border-radius: 12px; padding: 6px 10px 7px; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); position: relative; }
.tm.me .tm-b { background: #eeffde; }
.tm-n { display: block; font-size: 13px; font-weight: 600; color: #3390ec; }
.tm.me .tm-n { color: #3a8e26; }
.tm-b img { width: 100%; max-width: 220px; aspect-ratio: 4/5; object-fit: cover; border-radius: 8px; margin: 4px 0; }
.tm-b .k { color: #707579; }
.tm-t { display: block; text-align: right; font-size: 11.5px; color: #a0acb6; margin-top: 2px; }
.tm .mbtn { height: 34px; font-size: 13px; border-radius: 8px; }
.tm.sys { align-self: center; }
.tm.sys { max-width: 100%; }
.tm.sys span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; line-height: 1.3; background: rgba(0, 0, 0, .09); color: #34404b; padding: 4px 10px; border-radius: 10px; text-align: center; }
.tm.sys svg { width: 14px; height: 14px; flex: none; }

/* sections */
.sec { padding: 56px 0; }
.sec.alt { background: var(--paper); }
.sec-h { max-width: 720px; margin-bottom: 26px; }
.sec-h h2 { font-size: 28px; }
.sec-h p { color: var(--ink2); margin-top: 8px; }
.feat { display: grid; gap: 12px; grid-template-columns: 1fr; }
.fi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 8px; align-content: start; }
.fi-i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-ink, var(--acc)); }
.fi h3 { font-size: 17px; font-family: var(--font); letter-spacing: -.01em; }
.fi p { color: var(--ink2); font-size: 15px; }
.flow { display: grid; gap: 14px; grid-template-columns: 1fr; align-items: center; }
.fl-n { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 4px; position: relative; }
.fl-n b { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.fl-n b svg { color: var(--acc); }
.fl-n p { color: var(--ink2); font-size: 14px; }
.fl-n.main { background: var(--acc); border-color: var(--acc); color: var(--on-acc, #fff); }
.fl-n.main p { color: inherit; opacity: .85; }
.fl-n.main b svg { color: inherit; }
.fl-ar { display: grid; place-items: center; color: var(--muted); }
.fl-ar svg { width: 26px; height: 26px; transform: rotate(90deg); }
.fl-out { display: grid; gap: 10px; }
.fl-out .fl-n { padding: 12px 14px; }
.ba { display: grid; gap: 14px; grid-template-columns: 1fr; }
.ba-c { border-radius: var(--r); padding: 20px; border: 1px solid var(--line); background: var(--card); }
.ba-c h3 { font-size: 19px; margin-bottom: 12px; font-family: var(--font); display: flex; align-items: center; gap: 8px; }
.ba-c ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ba-c li { display: flex; gap: 10px; color: var(--ink2); font-size: 15px; }
.ba-c li svg { width: 18px; height: 18px; margin-top: 3px; }
.ba-c.was li svg { color: #b14a3c; }
.ba-c.now { border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }
.ba-c.now li svg { color: #1f8a4c; }
.cta { padding: 56px 0 64px; }
.cta-in { background: var(--acc); color: var(--on-acc, #fff); border-radius: calc(var(--r) + 6px); padding: 32px 22px; display: grid; gap: 16px; justify-items: start; }
.cta-in h2 { font-size: 28px; color: inherit; }
.cta-in p { opacity: .9; max-width: 640px; }
.cta-in .btn { background: var(--on-acc, #fff); color: var(--acc); }
.cta-in .btn:hover { opacity: .92; }
.foot { border-top: 1px solid var(--line); padding: 22px 0 30px; font-size: 13.5px; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.foot a { color: var(--ink); font-weight: 600; }

@media (min-width: 640px) {
  .feat { grid-template-columns: 1fr 1fr; }
  .ba { grid-template-columns: 1fr 1fr; }
  .fl-out { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 760px) {
  .tries-m { display: none; }
  .stage-in { grid-template-columns: 400px minmax(0, 1fr); align-items: start; }
  .intro { grid-column: 1 / -1; }
  .phone { height: 720px; }
  .mgr { height: 762px; overflow: hidden; }
  .crm { flex: none; }
  .team-feed { max-height: none; min-height: 0; }
  .intro h1 { font-size: 34px; }
}
@media (min-width: 1000px) {
  .feat { grid-template-columns: repeat(3, 1fr); }
  .flow { grid-template-columns: 1fr auto 1fr auto 1.4fr; }
  .fl-ar svg { transform: none; }
  .cta-in { grid-template-columns: 1fr auto; align-items: center; padding: 40px; }
  .sec-h h2, .cta-in h2 { font-size: 34px; }
}
@media (min-width: 1200px) {
  .stage { padding: 22px 0 30px; }
  .stage-in { grid-template-columns: minmax(0, 1fr) 384px minmax(0, 1.08fr); gap: 32px; --ph: clamp(620px, calc(100vh - 166px), 780px); }
  .intro { grid-column: auto; padding-top: 10px; }
  .phone-col { gap: 8px; }
  .phone { width: 384px; max-width: none; height: var(--ph); border-radius: 50px; padding: 10px; background: #15171a; border: 0; box-shadow: inset 0 0 0 2px #3a3d43, 0 30px 60px rgba(20, 25, 35, .28); }
  .phone .tg { border-radius: 40px; }
  .tg-sb { display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 26px 0 30px; font: 600 14px/1 -apple-system, 'Segoe UI', sans-serif; background: #fff; flex: none; position: relative; }
  .tg-isl { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); width: 96px; height: 26px; border-radius: 14px; background: #000; }
  .tg-sbi { display: inline-flex; gap: 6px; align-items: center; }
  .tg-sbi svg { width: 18px; height: 12px; }
  .tg-sbi svg:last-child { width: 26px; height: 13px; stroke-width: 1.3; }
  .tg-bar, .tg-kb { padding-bottom: 6px; }
  .mgr { height: calc(var(--ph) + 34px); }
  .phone-cap { max-width: 384px; }
  .intro h1 { font-size: 36px; }
}
@media (max-width: 759px) {
  .top { position: static; }
  .intro .howto { display: none; }
  .top-in .btn { padding: 0 12px; }
  .cxb span { display: none; }
  .phone { height: 620px; }
  .intro h1 { font-size: 28px; }
  .tg-hd { height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
