/* Блок «Так это выглядит»: большая интерактивная демонстрация (три шага в одном телефоне) и три дополнительных экрана */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: center; margin-top: 48px; }
.demo-steps { display: grid; gap: 14px; }
.demo-step { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center; text-align: left; width: 100%; padding: 20px 22px; border-radius: 26px; border: 1px solid var(--card-line); background: var(--card-bg); color: var(--card-fg);
  font: inherit; cursor: pointer; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.demo-step:hover { transform: translateY(-2px); }
.demo-step .n { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font: 400 22px/1 var(--f-head); color: var(--card-fg); background: color-mix(in srgb, var(--teal) 22%, transparent); transition: background .25s ease, color .25s ease; }
.demo-step b { display: block; font: 400 20px/1.2 var(--f-head); text-transform: uppercase; letter-spacing: .02em; }
.demo-step small { display: block; margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--card-muted); }
.demo-step[aria-pressed="true"] { border-color: var(--pink); box-shadow: 0 16px 36px rgba(253,71,143,.2); }
.demo-step[aria-pressed="true"] .n { background: var(--pink); color: #fff; }
.demo-step .bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--pink); transform: scaleX(0); transform-origin: left; }
.demo-step[aria-pressed="true"].run .bar { animation: dbar var(--dur, 8s) linear forwards; }
@keyframes dbar { to { transform: scaleX(1); } }
.demo-hint { margin: 4px 0 0; font-size: 14px; color: var(--txt-muted); }
.demo-stage { display: grid; place-items: center; padding: 28px 0; border-radius: 44px; background: radial-gradient(70% 60% at 30% 20%, rgba(253,71,143,.28), transparent 70%), radial-gradient(70% 60% at 80% 85%, rgba(56,179,206,.34), transparent 70%), rgba(255,255,255,.35); }
.dphone { position: relative; width: 300px; padding: 12px; border-radius: 52px; background: #0b0a10; box-shadow: 0 30px 60px rgba(42,38,53,.35), inset 0 0 0 2px #2b2833; }
.dphone::before { content: ""; position: absolute; z-index: 5; top: 20px; left: 50%; width: 82px; height: 24px; margin-left: -41px; border-radius: 99px; background: #000; }
.dscr { position: relative; height: auto; aspect-ratio: 375 / 874; border-radius: 42px; overflow: hidden; background: #FDF5F1; color: #2A2635; font: 500 13px/1.35 var(--f-text); text-align: left; }
.dstatus { position: absolute; z-index: 4; top: 0; left: 0; right: 0; height: 46px; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 26px 6px; font: 600 12px/1 var(--f-text); }
.dslide { position: absolute; inset: 0; padding: 54px 16px 16px; opacity: 0; transform: translateX(24px); pointer-events: none; transition: opacity .45s ease, transform .45s ease; }
.dslide.active { opacity: 1; transform: none; }
.dslide h4 { margin: 0 0 10px; font: 400 22px/1.15 var(--f-head); }
.dlabel { margin: 12px 0 5px; font-size: 11px; color: #6A6577; font-weight: 600; }
.dinput { min-height: 40px; padding: 11px 12px; border-radius: 14px; background: #fff; border: 1.5px solid #EADFD8; font-weight: 600; font-size: 14px; }
.dinput .caret { display: inline-block; width: 1.5px; height: 15px; background: #FD478F; margin-left: 1px; vertical-align: -3px; animation: dcaret .8s steps(2) infinite; }
@keyframes dcaret { 50% { opacity: 0; } }
.dgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dchip { padding: 9px 4px; border-radius: 12px; background: #fff; border: 1.5px solid #EADFD8; text-align: center; font-size: 11px; font-weight: 600; transition: all .3s ease; }
.dchip.sel { background: #38B3CE; border-color: #38B3CE; color: #fff; }
.dbtn { margin-top: 14px; padding: 13px; border-radius: 999px; text-align: center; font: 400 14px/1 var(--f-head); background: #FD478F; color: #fff; box-shadow: 0 8px 18px rgba(253,71,143,.4); transition: transform .2s ease; }
.dbtn.press, .p2 .dbtn.save { transform: scale(.94); }
.dbtn.alt { background: #fff; color: #2A2635; border: 1.5px solid #EADFD8; box-shadow: none; }
.dcard { display: flex; gap: 10px; align-items: center; margin-top: 10px; padding: 10px; border-radius: 16px; background: #fff; border-left: 4px solid #FD478F; box-shadow: 0 6px 14px rgba(42,38,53,.07); }
.dcard .ph { width: 40px; height: 40px; border-radius: 12px; background: #FDF5F1; display: grid; place-items: center; font-size: 22px; flex: none; }
.dcard b { display: block; font-size: 13px; line-height: 1.25; } .dcard small { font: 400 11px/1.2 'Space Mono', monospace; color: #1b8aa3; }
.dcard.y { border-left-color: #F2B544; } .dcard.g { border-left-color: #52C28A; }
.dcard .tag { margin-left: auto; padding: 5px 9px; border-radius: 999px; font-size: 10px; font-weight: 700; background: #FD478F; color: #fff; white-space: nowrap; transition: background .3s ease; }
.dcard .tag.mine { background: #38B3CE; }
.dnew { opacity: 0; transform: translateY(18px) scale(.96); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.9,.3,1.2); }
.dtoast { position: absolute; left: 16px; right: 16px; bottom: 22px; padding: 12px 14px; border-radius: 16px; background: #2A2635; color: #fff; font-weight: 600; font-size: 12.5px; text-align: center; opacity: 0; transform: translateY(16px); transition: all .4s ease; }
.dpush { position: absolute; z-index: 6; left: 10px; right: 10px; top: 50px; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 20px; background: rgba(42,38,53,.94); color: #fff; box-shadow: 0 14px 30px rgba(0,0,0,.3); opacity: 0; transform: translateY(-26px); transition: all .5s cubic-bezier(.2,.9,.3,1.2); }
.dpush i { font-style: normal; font-size: 22px; } .dpush b { display: block; font-size: 12px; } .dpush span { font-size: 11.5px; color: #d8d3e4; line-height: 1.3; }
.dqr { margin: 10px auto 0; width: 170px; height: 170px; padding: 12px; border-radius: 20px; background: #fff; box-shadow: 0 8px 18px rgba(42,38,53,.1); transform: scale(.7); opacity: 0; transition: all .5s cubic-bezier(.2,.9,.3,1.3); }
.dqr svg { display: block; width: 100%; height: 100%; }
.dlink { margin-top: 12px; padding: 11px 12px; border-radius: 14px; background: #fff; border: 1.5px solid #EADFD8; font: 400 11px/1.3 'Space Mono', monospace; text-align: center; transition: all .3s ease; }
.dlink small { display: block; margin-top: 3px; font: 500 10.5px/1.2 var(--f-text); color: #6A6577; }
.dlink.hot { border-color: #38B3CE; background: #E8F7FB; }
.dwho { display: flex; gap: 10px; align-items: center; margin-bottom: 4px; } .dav { width: 44px; height: 44px; border-radius: 50%; background: #B36BD0; color: #fff; display: grid; place-items: center; font: 400 18px/1 var(--f-head); flex: none; }
.dwho h4 { margin: 0; } .dwho small { color: #6A6577; font-size: 11.5px; }
.dnote { margin-top: 12px; padding: 11px 12px; border-radius: 14px; background: #E8F7FB; color: #17697d; font-size: 12px; line-height: 1.4; font-weight: 600; opacity: 0; transform: translateY(10px); transition: all .4s ease; }
/* состояния шагов: классы добавляет demo.js по времени */
.s1 .dchip.c1 { } .p1 .dchip.pc, .p1 .dchip.uc { background: #38B3CE; border-color: #38B3CE; color: #fff; }
.p3 .dtoast, .q2 .dtoast { opacity: 1; transform: none; }
.p3 .dnew { opacity: 1; transform: none; }
.q1 .dqr { transform: none; opacity: 1; }
.q4 .dpush, .f4 .dpush { opacity: 1; transform: none; }
.q3 .dbtn.share { transform: scale(.94); }
.f3 .dnote { opacity: 1; transform: none; }
.dstep0-extra { opacity: 0; transition: opacity .4s ease; } .p3 .dstep0-extra { opacity: 1; }
.dhide { transition: opacity .4s ease, transform .4s ease; } .p3 .dhide { opacity: .25; transform: scale(.98); }
.demo-more { margin: 64px 0 0; text-align: center; font: 400 15px/1.3 var(--f-head); text-transform: uppercase; letter-spacing: .08em; color: var(--txt-muted); }
.shots.three { grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
@media (max-width: 1000px) { .demo { grid-template-columns: 1fr; gap: 28px; } .demo-stage { order: -1; } .demo-steps { grid-template-columns: repeat(3, 1fr); } .demo-step { grid-template-columns: 1fr; text-align: center; padding: 16px 12px; gap: 10px; justify-items: center; } .demo-step small { display: none; } .demo-step b { font-size: 14px; } .demo-cur { display: block !important; } }
@media (max-width: 760px) { .shots.three { grid-template-columns: 1fr; } .demo-stage { border-radius: 32px; padding: 20px 0; } .dphone { width: 280px; } .dscr { height: auto; } .demo-step .n { width: 40px; height: 40px; font-size: 18px; } }
.demo-cur { display: none; margin: 4px 0 0; text-align: center; font-size: 16px; line-height: 1.5; color: var(--txt-muted); }
@media (prefers-reduced-motion: reduce) { .dslide, .dnew, .dtoast, .dpush, .dqr, .dnote { transition: none; } .demo-step.run .bar { animation: none; } }
.q2 .dlink { border-color: #38B3CE; background: #E8F7FB; }
.f2 .dcard .tag { transform: scale(.88); }
.dnewlist { position: absolute; left: 16px; right: 16px; top: 54px; bottom: 16px; padding-top: 0; opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.9,.3,1.2); pointer-events: none; background: #FDF5F1; }
.p3 .dnewlist { opacity: 1; transform: none; }
.dnewlist .dcard.fresh { animation: dglow 1.6s ease 1; }
@keyframes dglow { 0% { box-shadow: 0 0 0 0 rgba(253,71,143,.6); } 60% { box-shadow: 0 0 0 10px rgba(253,71,143,0); } }
.dcard > div:not(.ph) { flex: 1; min-width: 0; } .dcard .tag { font-size: 9.5px; padding: 5px 8px; flex: none; margin-left: 0; }
.dcard b { font-size: 12.5px; }
.dslide[data-slide="2"] .dpush { top: auto; bottom: 16px; transform: translateY(26px); } .dslide[data-slide="2"].f4 .dpush { transform: none; }
.demo > * { min-width: 0; }
@media (max-width: 1000px) { .demo-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .demo-hint { text-align: center; } }
@media (max-width: 760px) { .demo-step { padding: 14px 4px 16px; } .demo-step b { font-size: 10.5px; line-height: 1.2; letter-spacing: 0; } }
/* чат: добавление подарка из Telegram-бота и из сообщества ВКонтакте */
.demo-steps { grid-template-columns: 1fr; }
.dchat { padding: 0; }
.cscene { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; transition: opacity .5s ease; }
.cscene.tg { opacity: 1; } .dchat.vk .cscene.tg { opacity: 0; } .dchat.vk .cscene.vk { opacity: 1; }
.chead { display: flex; gap: 10px; align-items: center; padding: 50px 14px 10px; color: #fff; background: #2AABEE; } .vk .chead { background: #0077FF; }
.cav { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 18px; flex: none; }
.chead b { display: block; font: 700 14px/1.2 var(--f-text); } .chead small { font-size: 11px; opacity: .85; }
.cplat { margin-left: auto; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.22); font-size: 10.5px; font-weight: 700; }
.cbody { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; background: #E3EAF0; } .cscene.vk .cbody { background: #EDEEF0; }
.msg { max-width: 82%; padding: 9px 12px; border-radius: 16px; font-size: 12.5px; line-height: 1.35; opacity: 0; transform: translateY(12px) scale(.96); transition: all .45s cubic-bezier(.2,.9,.3,1.2); }
.msg.me { align-self: flex-end; background: #EFFDDE; border-bottom-right-radius: 4px; color: #1d2a1a; font-weight: 500; word-break: break-all; } .cscene.vk .msg.me { background: #CCE4FF; color: #10233d; }
.msg.bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.msg.bot b { display: block; margin-top: 4px; font-size: 13.5px; } .msg.bot small { display: block; margin-top: 3px; font-size: 11px; color: #5b6b78; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 11px 13px; border-radius: 16px; background: #fff; opacity: 0; transition: opacity .25s ease; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa6b2; animation: dtype 1s ease-in-out infinite; } .typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dtype { 50% { transform: translateY(-4px); opacity: .5; } }
.a1 .m1, .a3 .m2, .b1 .m3, .b3 .m4 { opacity: 1; transform: none; } .a2:not(.a3) .t1, .b2:not(.b3) .t2 { opacity: 1; }
.cinput { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px 16px; background: #fff; color: #9aa6b2; font-size: 12.5px; } .cinput span { flex: 1; padding: 9px 12px; border-radius: 18px; background: #F1F3F5; } .cinput i { font-style: normal; color: #2AABEE; font-size: 16px; } .vk .cinput i { color: #0077FF; }
/* тема и вид списка */
.dapp { background: #FDF5F1; transition: background .6s ease, color .6s ease; }
.dtop { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; } .dtop h4 { margin: 0; }
.dicons { display: flex; gap: 8px; } .ib { width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: 0 4px 10px rgba(42,38,53,.1); display: grid; place-items: center; font-style: normal; position: relative; transition: background .6s ease, transform .3s ease; }
.ib b { position: absolute; font-weight: 400; font-size: 16px; transition: opacity .35s ease; } .ib .moon, .ib .grd { opacity: 0; } .d1 .ib .sun, .t2 .ib .lst { opacity: 0; } .d1 .ib .moon, .t2 .ib .grd { opacity: 1; }
.d1 .ib.th, .t2 .ib.vw { transform: scale(1.12); box-shadow: 0 0 0 2px #FD478F, 0 4px 10px rgba(42,38,53,.1); }
.dlist { display: grid; grid-template-columns: 1fr; gap: 0; transition: opacity .25s ease; } .dlist.swap { opacity: 0; }
.dapp .dcard { transition: background .6s ease, color .6s ease; } .dapp.d1 { background: #2A2635; color: #fff; } .d1 .dcard { background: #3A3548; color: #fff; } .d1 .dcard small { color: #6fd0e6; } .d1 .ib { background: #3A3548; color: #fff; }
.t2 .dlist { grid-template-columns: 1fr 1fr; gap: 10px; } .t2 .dcard { flex-direction: column; align-items: flex-start; margin-top: 0; border-left: 0; border-top: 4px solid #FD478F; padding: 8px; } .t2 .dcard.g { border-top-color: #52C28A; } .t2 .dcard.y { border-top-color: #F2B544; }
.t2 .dcard .ph { width: 100%; height: 70px; font-size: 38px; }
.dsegs { position: absolute; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 8px; }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 999px; background: rgba(42,38,53,.1); font-size: 11.5px; font-weight: 700; text-align: center; } .d1 .seg2 { background: rgba(255,255,255,.14); }
.seg2 span { padding: 8px 4px; border-radius: 999px; transition: background .4s ease, color .4s ease; }
.sth .s1, .svw .s1 { background: #FD478F; color: #fff; } .d1 .sth .s1 { background: transparent; color: inherit; } .d1 .sth .s2 { background: #FD478F; color: #fff; } .t2 .svw .s1 { background: transparent; color: inherit; } .t2 .svw .s2 { background: #FD478F; color: #fff; }
.dscr.dk .dstatus { color: #fff; } .dscr { transition: background .6s ease; } .dscr.dk { background: #2A2635; }
@media (max-width: 1000px) { .demo-steps { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)) !important; } }
/* ——— настоящие экраны приложения вместо рисованных ——— */
.dshots { padding: 0; }
.dshot { position: absolute; left: 0; top: 7.15%; width: 100%; height: 92.85%; object-fit: fill; opacity: 0; transition: opacity .55s ease; }
.dshots .i0, .dchat .res { } .dshots .i0 { opacity: 1; }
.s-a .i1, .st1 .i1, .st2 .i2, .st3 .i3, .dchat.shown .res, .dshots.sw .i1 { opacity: 1; }
.dres { position: absolute; z-index: 3; left: 50%; bottom: 84px; transform: translate(-50%, 14px); padding: 9px 14px; border-radius: 999px; background: rgba(42,38,53,.92); color: #fff; font-weight: 700; font-size: 11.5px; white-space: nowrap; opacity: 0; transition: all .5s ease; }
.dchat.shown .dres { opacity: 1; transform: translate(-50%, 0); }
.cav img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; } .cav img.mono { width: 66%; height: auto; object-fit: contain; border-radius: 0; }
.cscene { z-index: 1; } .dchat .res { z-index: 2; pointer-events: none; }
.tap { position: absolute; z-index: 4; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%; border: 2px solid #FD478F; background: rgba(253,71,143,.28); opacity: 0; pointer-events: none; }
.tap.go { animation: dtap .8s ease-out forwards; }
@keyframes dtap { 0% { opacity: 0; transform: scale(.3); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.5); } }
.dpush .pic { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.dpush.bottom { top: auto; bottom: 18px; transform: translateY(26px); } .dshots.f4 .dpush.bottom { opacity: 1; transform: none; }
.dshots .dpush { z-index: 6; } .dshots .dtoast { z-index: 6; bottom: 96px; }
.dshots.q4 .dpush:not(.bottom) { opacity: 1; transform: none; } .dshots.q5 .dpush:not(.bottom) { opacity: 0; transform: translateY(-26px); }
.dshots.q2 .dtoast { opacity: 1; transform: none; } .dshots.q3 .dtoast { opacity: 0; }
.dlab { position: absolute; z-index: 5; left: 50%; top: 56px; transform: translate(-50%, -10px); padding: 7px 14px; border-radius: 999px; background: rgba(42,38,53,.92); color: #fff; font-weight: 700; font-size: 11.5px; opacity: 0; transition: all .4s ease; white-space: nowrap; }
.dlab.show { opacity: 1; transform: translate(-50%, 0); }
/* ——— расположение и декорации ——— */
.demo { align-items: stretch; margin-top: 34px; gap: 48px; grid-template-columns: minmax(0, 1fr) 380px; }
.demo > div:first-child { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.demo-steps { flex: 1; grid-template-rows: repeat(var(--n, 4), 1fr); align-content: stretch; }
.demo-step { align-content: center; }
.demo-stage { position: relative; background: none; padding: 8px 0; min-height: 650px; }
.ddisc { position: absolute; width: 400px; height: 400px; border-radius: 50%; background: var(--teal); opacity: .92; left: 50%; top: 50%; margin: -170px 0 0 -200px; }
.demo-stage .badge { right: -26px; top: -4px; z-index: 7; } .demo-stage .booked { left: auto; right: -34px; bottom: 70px; top: auto; z-index: 7; }
.demo-stage .dphone { z-index: 3; }
@media (max-width: 1000px) { .demo-stage { min-height: 0; padding: 18px 0 28px; } .ddisc { width: 330px; height: 330px; margin: -150px 0 0 -165px; } .demo-stage .badge { right: 6%; top: 8px; width: 96px; height: 96px; } .demo-stage .badge b { font-size: 11px; } .demo-stage .badge em { font-size: 14px; } .demo-stage .booked { right: 4%; bottom: 36px; font-size: 11px; } .demo > div:first-child { justify-content: flex-start; } }

.dphone { z-index: 3; } @media (max-width: 760px) { .dscr { height: auto !important; } }

/* Telegram-бот как в настоящем Telegram (тёмная тема) */
.cscene.tgd { background: #0e1621 radial-gradient(circle at 20% 15%, rgba(255,255,255,.04) 0 2px, transparent 3px) 0 0 / 34px 34px; color: #fff; }
.tghead { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 48px 12px 8px; }
.tgback { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; font-size: 22px; line-height: 1; padding-bottom: 3px; }
.tgpill { flex: 1; max-width: 150px; text-align: center; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.1); } .tgpill b { display: block; font: 700 13px/1.2 var(--f-text); } .tgpill small { font-size: 10.5px; opacity: .6; }
.tghead .cav { width: 32px; height: 32px; border: 2px solid #fff; }
.tgbody { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 8px 10px 8px; overflow: hidden; }
.tm { max-width: 88%; padding: 8px 11px; border-radius: 14px; font-size: 11.5px; line-height: 1.35; max-height: 0; padding-block: 0; opacity: 0; overflow: hidden; transform: translateY(8px); transition: max-height .5s ease, opacity .4s ease, transform .4s ease, padding .4s ease; }
.tm.bot { align-self: flex-start; background: #212d3b; border-bottom-left-radius: 4px; } .tm.me { align-self: flex-end; background: #2b5278; border-bottom-right-radius: 4px; word-break: break-all; }
.tm b { display: block; margin-top: 2px; font-size: 12px; } .tm small { display: block; margin-top: 3px; font-size: 10px; opacity: .7; }
.tbtn { display: block; margin-top: 6px; padding: 7px; border-radius: 9px; background: rgba(255,255,255,.1); text-align: center; font-size: 11px; font-weight: 600; }
.tm.k0 { max-height: 200px; padding-block: 8px; opacity: 1; transform: none; }
.a_k1 .k1, .a_k2 .k2, .a_k3 .k3, .a_k5 .k5 { max-height: 200px; padding-block: 8px; opacity: 1; transform: none; }
.ttyping { align-self: flex-start; display: flex; gap: 4px; padding: 0 13px; border-radius: 14px; background: #212d3b; max-height: 0; opacity: 0; overflow: hidden; transition: all .3s ease; } .ttyping i { width: 6px; height: 6px; border-radius: 50%; background: #8b98a5; animation: dtype 1s ease-in-out infinite; } .ttyping i:nth-child(2) { animation-delay: .15s; } .ttyping i:nth-child(3) { animation-delay: .3s; }
.a_k4:not(.a_k5) .ttyping { max-height: 30px; padding-block: 11px; opacity: 1; }
.tgbar { position: relative; padding: 8px 10px 16px; min-height: 66px; }
.tgstart { position: absolute; left: 10px; right: 10px; bottom: 16px; height: 40px; border-radius: 999px; background: #2AABEE; text-align: center; line-height: 40px; font: 700 14px/40px var(--f-text); transition: opacity .3s ease, transform .3s ease; }
.tginput { display: flex; gap: 8px; align-items: center; opacity: 0; transition: opacity .4s ease; } .tgfield { flex: 1; padding: 9px 12px; border-radius: 18px; background: rgba(255,255,255,.1); font-size: 11.5px; color: #8b98a5; }
.tgapp { padding: 8px 12px; border-radius: 999px; background: #2AABEE; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.a_k1 .tgstart { opacity: 0; transform: scale(.94); pointer-events: none; } .a_k1 .tginput { opacity: 1; }
.a_kb .tgapp { animation: dpulse 1.1s ease-in-out infinite; }
@keyframes dpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(42,171,238,.7); } 50% { box-shadow: 0 0 0 9px rgba(42,171,238,0); transform: scale(1.06); } }
.tgbar { display: flex; flex-direction: column; justify-content: flex-end; }
.tgtip { order: -1; align-self: flex-start; max-width: 210px; max-height: 0; margin: 0; padding: 0 11px; border-radius: 12px; background: #2b3a4a; font-size: 10.5px; line-height: 1.35; opacity: 0; overflow: hidden; transition: all .45s ease; } .a_kb .tgtip { max-height: 90px; padding: 8px 11px; margin-bottom: 8px; opacity: 1; }
.a_kb .k0, .a_kb .k1, .a_kb .k2 { max-height: 0; padding-block: 0; opacity: 0; margin: -3px 0; }
.tgd .tap { z-index: 5; }
.dchat.app .res, .dchat.shown .res { opacity: 1; } .dres.d1, .dres.d2 { opacity: 0; } .dchat.app .dres.d1, .dchat.shown .dres.d2 { opacity: 1; transform: translate(-50%, 0); }

/* чат сообщества ВКонтакте как в настоящем ВК */
.cscene.vkd { background: #93b4ec linear-gradient(165deg, #8cadeb, #aacbf2) ; color: #1d2330; }
.vkhead { display: flex; align-items: center; gap: 9px; padding: 48px 12px 8px; background: #fff; }
.vkback { position: relative; font-size: 30px; line-height: 1; color: #2688EB; padding: 0 8px 4px 2px; } .vkback i { position: absolute; left: 6px; top: -4px; min-width: 19px; height: 15px; padding: 0 4px; border-radius: 9px; background: #2688EB; color: #fff; font: 700 9.5px/15px var(--f-text); text-align: center; font-style: normal; }
.vkhead .cav { width: 34px; height: 34px; background: #fff; border: 1px solid #e3e6ee; } .vkhead b { display: block; font: 700 13.5px/1.2 var(--f-text); } .vkhead small { font-size: 10.5px; color: #818c99; }
.vkbody { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 8px 10px; overflow: hidden; background: radial-gradient(circle at 25% 20%, rgba(255,255,255,.14) 0 2px, transparent 3px) 0 0 / 30px 30px; }
.vm { max-width: 90%; padding: 7px 10px; border-radius: 15px; font-size: 11.5px; line-height: 1.35; max-height: 0; padding-block: 0; opacity: 0; overflow: hidden; transform: translateY(8px); transition: max-height .5s ease, opacity .4s ease, transform .4s ease, padding .4s ease; }
.vm.bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; } .vm.me { align-self: flex-end; background: #d6e9fc; border-bottom-right-radius: 4px; }
.vm em { display: block; font-style: normal; color: #2688EB; font-size: 10.5px; margin-bottom: 1px; } .vm small { float: right; margin: 4px 0 0 8px; font-size: 9px; color: #99a2ad; }
.vbtn { display: block; clear: both; margin-top: 6px; padding: 8px; border-radius: 10px; background: #eef1f5; text-align: center; font-size: 11px; font-weight: 700; }
.vbtns { display: flex; clear: both; gap: 6px; margin-top: 6px; } .vbtns .vbtn { flex: 1; margin: 0; } .vbtn.yes { background: #dff3e5; color: #1a7f3c; } .vbtn.no { background: #fbe4e4; color: #c0392b; }
.vm.v0 { max-height: 120px; padding-block: 7px; opacity: 1; transform: none; }
.b_v1 .v1, .b_v2 .v2, .b_v3 .v3, .b_v4 .v4, .b_v5 .v5, .b_v6 .v6 { max-height: 220px; padding-block: 7px; opacity: 1; transform: none; }
.b_v3 .v0, .b_v3 .v1, .b_v5 .v2 { max-height: 0; padding-block: 0; opacity: 0; margin: -3px 0; }
.vtyping { align-self: flex-start; display: flex; gap: 4px; padding: 0 13px; border-radius: 14px; background: #fff; max-height: 0; opacity: 0; overflow: hidden; transition: all .3s ease; } .vtyping i { width: 6px; height: 6px; border-radius: 50%; background: #99a2ad; animation: dtype 1s ease-in-out infinite; } .vtyping i:nth-child(2) { animation-delay: .15s; } .vtyping i:nth-child(3) { animation-delay: .3s; }
.b_v35:not(.b_v4) .vtyping { max-height: 30px; padding-block: 11px; opacity: 1; }
.vkbar { display: flex; flex-direction: column; gap: 8px; padding: 8px 10px 16px; background: #fff; }
.vkinput { display: flex; align-items: center; gap: 8px; color: #818c99; font-size: 11.5px; } .vkinput b { color: #2688EB; font-size: 22px; font-weight: 400; } .vkinput span { flex: 1; padding: 8px 12px; border-radius: 18px; background: #f2f3f5; } .vkinput i { font-style: normal; color: #2688EB; font-size: 15px; }
.vkstart { order: 2; padding: 11px; border-radius: 12px; background: #2688EB; color: #fff; text-align: center; font: 700 13px/1 var(--f-text); max-height: 44px; transition: all .35s ease; }
.b_v1 .vkstart { max-height: 0; padding-block: 0; opacity: 0; margin-top: -8px; }
.vkd .tap { z-index: 5; }

/* на телефоне и планшете — одна колонка (правило стоит последним, иначе его перебивает двухколоночная сетка выше) */
@media (max-width: 1000px) { .demo { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 26px; } .demo-stage { min-height: 0; padding: 18px 0 30px; } .demo > div:first-child { display: block; } .demo-steps { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)) !important; grid-template-rows: none; gap: 6px; } .demo-step { padding: 12px 4px 14px; } .demo-step b { font-size: 11px; line-height: 1.2; letter-spacing: 0; overflow-wrap: anywhere; } .demo-step .n { width: 38px; height: 38px; font-size: 17px; } }
@media (max-width: 380px) { .demo-step b { font-size: 10px; } }

.dlab { top: auto; bottom: 88px; transform: translate(-50%, 10px); } .dlab.show { transform: translate(-50%, 0); }

@media (max-width: 430px) { .demo-step b { font-size: 9.5px; overflow-wrap: normal; } .demo-step { padding-inline: 2px; } }
/* ВК: у каждого сообщения от сообщества виден его аватар */
.vrow { display: flex; align-items: flex-end; gap: 6px; max-height: 0; padding: 0; opacity: 0; overflow: hidden; transform: translateY(8px); transition: max-height .5s ease, opacity .4s ease, transform .4s ease; }
.vrow.me { justify-content: flex-end; } .vrow.bot { justify-content: flex-start; }
.vrow .vm { max-height: none; opacity: 1; transform: none; overflow: visible; padding: 7px 10px; }
.vrow .vm small { float: right; margin: 4px 0 0 8px; }
.vav { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 1px solid #e3e6ee; display: grid; place-items: center; flex: none; margin-bottom: 1px; } .vav img { width: 68%; height: auto; display: block; }
.vrow.v0 { max-height: 140px; opacity: 1; transform: none; }
.b_v1 .v1, .b_v2 .v2, .b_v3 .v3, .b_v4 .v4, .b_v5 .v5, .b_v6 .v6 { max-height: 240px; padding-block: 0; opacity: 1; transform: none; }
.b_v3 .v0, .b_v3 .v1, .b_v5 .v2 { max-height: 0; opacity: 0; margin: -3px 0; }
.vrow.vtyping { background: none; } .vtyping .vm { display: flex; gap: 4px; padding: 11px 13px; } .vtyping i { width: 6px; height: 6px; border-radius: 50%; background: #99a2ad; animation: dtype 1s ease-in-out infinite; }
.b_v35:not(.b_v4) .vtyping { max-height: 44px; opacity: 1; transform: none; }
/* подсветка карточки шага: просит нажать на неё после показа всех шагов */
.demo-step.nudge { animation: dnudge 1.5s ease-in-out; border-color: var(--pink); }
@keyframes dnudge { 0% { box-shadow: 0 0 0 0 rgba(253,71,143,.55); transform: translateY(0); } 30% { box-shadow: 0 0 0 10px rgba(253,71,143,0); transform: translateY(-4px); } 55% { transform: translateY(0); } 70% { box-shadow: 0 0 0 0 rgba(253,71,143,.45); transform: translateY(-3px); } 100% { box-shadow: 0 0 0 12px rgba(253,71,143,0); transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .demo-step.nudge { animation: none; box-shadow: 0 0 0 3px rgba(253,71,143,.5); } }
@media (max-width: 1000px) { .demo-step { align-content: start; align-items: start; } }
.vrow.bot .vm { background: #fff; border-radius: 15px 15px 15px 4px; max-width: 86%; } .vrow.me .vm { background: #d6e9fc; border-radius: 15px 15px 4px 15px; max-width: 86%; }
.vrow.vtyping .vm { border-radius: 15px; }
.vm em { font-family: var(--f-text); font-style: normal; font-weight: 600; }
/* ВК: отступы как в оригинале — имя отдельной строкой, воздух вокруг текста */
.vrow.bot .vm { padding: 9px 12px 8px; line-height: 1.38; }
.vrow.me .vm { padding: 8px 12px; }
.vm em { display: block; margin: 0 0 4px; line-height: 1.25; font-size: 10.5px; }
.vm small { margin-top: 5px; }
.vbtn { margin-top: 8px; padding: 9px 8px; position: relative; } .vbtn.open i { position: absolute; right: 8px; top: 5px; font-style: normal; font-size: 10px; }
.vbtns { margin-top: 8px; }
.vrow { gap: 7px; }
