/* Главная tenlyra.com — концепт I «Пульт» (19.10.2026). Только раскладка секций главной; цвета — токены
   из css/i.css (светлые по умолчанию). */

.w-k { font-size: 13px; color: var(--mu); display: flex; align-items: center; gap: 8px; }
.w-foot { margin-top: auto; font-size: 13px; color: var(--mu); }
.w-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.w-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.w-head b { display: block; font-size: 14px; font-weight: 600; }
.w-head small { display: block; font-size: 12px; color: var(--mu); }
.w-head .tag { margin-left: auto; }
.ava { width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid; place-items: center; font-weight: 600; font-size: 14px; background: linear-gradient(135deg, var(--teal), var(--vio)); color: #fff; }
.tag.wa { color: #0F8A43; border-color: rgba(37, 211, 102, .3); background: rgba(37, 211, 102, .08); }
.tag.ig { color: #C2185B; border-color: rgba(225, 48, 108, .3); background: rgba(225, 48, 108, .08); }
.tag.tg { color: #1479C4; border-color: rgba(42, 164, 244, .3); background: rgba(42, 164, 244, .08); }
:root[data-theme="dark"] .tag.wa { color: #7EF0A8; } :root[data-theme="dark"] .tag.ig { color: #FF9AC0; } :root[data-theme="dark"] .tag.tg { color: #8FD0FF; }
.live-dot, .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex: none; animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(62, 230, 196, .55); } 80%, 100% { box-shadow: 0 0 0 8px rgba(62, 230, 196, 0); } }

/* ===== Герой ===== */
.hero { position: relative; }
.hero-pin { position: relative; height: 100vh; height: 100svh; min-height: 680px; overflow: hidden; }
.hero-copy { position: absolute; z-index: 5; left: 50%; top: 50%; width: min(1080px, 92vw); transform: translate(-50%, -50%); text-align: center; will-change: transform, opacity; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 99px; border: 1px solid var(--line2); background: rgba(var(--fg-rgb), .04); font-size: 13px; color: var(--mu); margin-bottom: 26px; font-family: var(--fm); }
.hero h1 { font-size: clamp(42px, 6.4vw, 92px); line-height: .98; letter-spacing: -.045em; font-weight: 600; }
.hero h1 .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin: 22px auto 0; max-width: 640px; color: var(--mu); font-size: clamp(19px, 1.8vw, 24px); line-height: 1.35; letter-spacing: -.015em; }
.hero-sub .or { color: var(--tx); font-family: var(--fm); font-weight: 500; }
.hero-sub em { font-style: normal; color: var(--tx); }
.hero-copy .cta { margin-top: 34px; justify-content: center; }
.scroll-hint { margin-top: 38px; font-size: 12px; color: var(--mu2); display: inline-flex; align-items: center; gap: 10px; }
.scroll-hint i { width: 1px; height: 26px; background: linear-gradient(var(--mu), transparent); animation: drip 1.8s infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.hero-note { position: absolute; z-index: 6; left: 50%; bottom: 4px; transform: translateX(-50%); font-size: 11px; color: var(--mu2); white-space: nowrap; }

.bento { display: grid; gap: 12px; }
.hero-bento { position: absolute; z-index: 4; left: 50%; top: 82px; bottom: 24px; width: min(var(--maxw), calc(100% - 2 * var(--gut))); transform: translateX(-50%);
  grid-template-columns: 1.08fr 1fr 1fr 1fr; grid-template-rows: repeat(4, minmax(0, 1fr));
  grid-template-areas: "chat count count zero" "chat chart chart time" "chat chart chart chan" "table kaspi kaspi calc"; }
.hero-bento .w { will-change: transform, opacity; }
.w-chat { grid-area: chat; } .w-count { grid-area: count; } .w-zero { grid-area: zero; } .w-chart { grid-area: chart; } .w-time { grid-area: time; }
.w-chan { grid-area: chan; } .w-table { grid-area: table; } .w-kaspi { grid-area: kaspi; } .w-calc { grid-area: calc; }

/* чат */
.w-chat .w-in { padding: 14px; }
.chat-body { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 12px 2px 10px; overflow: hidden; mask-image: linear-gradient(transparent, #000 18%); -webkit-mask-image: linear-gradient(transparent, #000 18%); }
.msg { max-width: 86%; padding: 8px 11px; border-radius: 14px; font-size: 13px; line-height: 1.38; position: relative; }
.msg.o { align-self: flex-end; background: var(--bubble-out); color: var(--bubble-out-ink); border-bottom-right-radius: 5px; }
.msg.i { align-self: flex-start; background: var(--bubble-in); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg.sys { align-self: center; font-family: var(--fm); font-size: 11px; color: var(--teal-tx); background: rgba(62, 230, 196, .1); border: 1px solid rgba(62, 230, 196, .3); border-radius: 99px; padding: 4px 10px; }
.msg.card { display: flex; align-items: center; gap: 9px; padding: 10px; width: 78%; max-width: 260px; }
.msg.card i { width: 28px; height: 28px; border-radius: 8px; background: var(--kaspi); flex: none; }
.msg.card.file i { background: #3A3F4B; }
.msg.card b { font-size: 12.5px; display: block; } .msg.card small { font-size: 11px; opacity: .75; display: block; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 11px 13px; border-radius: 14px; background: var(--bubble-in); border: 1px solid var(--line); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--mu); animation: bob 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bob { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-foot { display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 0 6px 0 12px; border-radius: 12px; background: rgba(var(--fg-rgb), .04); border: 1px solid var(--line); font-size: 12px; color: var(--mu); font-family: var(--fm); }
.chat-foot i { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--vio), var(--pink)); }

/* счётчик-одометр */
.odo { display: flex; align-items: flex-end; font-family: var(--fm); font-size: clamp(40px, 4.4vw, 64px); font-weight: 500; letter-spacing: -.04em; line-height: 1; height: 1em; overflow: hidden; margin-top: auto; padding-top: 8px; box-sizing: content-box; position: relative; z-index: 1; }
.odo .d { display: inline-block; height: 1em; overflow: hidden; }
.odo .d span { display: flex; flex-direction: column; transition: transform .7s cubic-bezier(.2, .9, .2, 1); }
.odo .d span em { font-style: normal; height: 1em; line-height: 1; }
.w-count .w-foot { margin-top: 10px; display: flex; gap: 6px; align-items: center; position: relative; z-index: 1; }
.up { color: var(--teal-tx); opacity: 0; display: inline-block; }
.up.go { animation: up 1s ease-out; }
@keyframes up { 0% { opacity: 0; transform: translateY(6px); } 25% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-10px); } }
.spark { position: absolute; right: 20px; top: 46px; bottom: 44px; width: 46%; display: flex; align-items: flex-end; gap: 4px; mask-image: linear-gradient(90deg, transparent, #000 30%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); }
.spark i { flex: 1; border-radius: 3px 3px 1px 1px; background: linear-gradient(180deg, rgba(62, 230, 196, .9), rgba(62, 230, 196, .08)); transition: height .6s cubic-bezier(.2, .9, .2, 1); }
.spark i:last-child { background: linear-gradient(180deg, var(--vio), rgba(124, 108, 255, .3)); }

/* 0 ₸ */
.zero { margin-top: auto; font-size: clamp(54px, 5.4vw, 84px); line-height: .9; font-weight: 600; letter-spacing: -.06em; background: var(--num-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.zero span { font-size: .5em; margin-left: .08em; letter-spacing: 0; }
.w-zero .w-foot { margin-top: 8px; }
.shine { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .14) 48%, transparent 60%); transform: translateX(-100%); animation: shine 4.5s 1.5s infinite; pointer-events: none; }
@keyframes shine { 0% { transform: translateX(-100%); } 35%, 100% { transform: translateX(100%); } }

/* график */
.w-chart .w-in { padding: 18px 20px 14px; }
.chart-seg button { font-size: 12px; padding: 3px 10px; min-height: 26px; }
.chart-big { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.chart-big b { font-family: var(--fm); font-weight: 500; font-size: 34px; letter-spacing: -.04em; }
.chart-big span { font-size: 13px; color: var(--mu); }
.chart { flex: 1; min-height: 0; width: 100%; margin-top: 6px; overflow: visible; }
.ch-grid line { stroke: rgba(var(--fg-rgb), .07); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ch-line { vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(124, 108, 255, .5)); }
.ch-dot { fill: var(--vio); } .ch-ring { fill: none; stroke: var(--vio); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ring 1.8s infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3.4); opacity: 0; } }
.ch-x { display: flex; justify-content: space-between; font-size: 11px; color: var(--mu2); padding-top: 4px; }

/* 24/7 */
.gauge { position: relative; width: min(100%, 120px); aspect-ratio: 1; margin: 6px auto 0; flex: 1; min-height: 0; max-height: 116px; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.g-bg { fill: none; stroke: rgba(var(--fg-rgb), .08); stroke-width: 8; }
.g-fg { fill: none; stroke: var(--teal); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; filter: drop-shadow(0 0 6px rgba(62, 230, 196, .5)); }
.gauge b { position: absolute; inset: 0; display: grid; place-content: center; font-family: var(--fm); font-size: 24px; font-weight: 500; letter-spacing: -.04em; }
.w-time .w-foot { text-align: center; margin-top: 6px; font-size: 12px; }

/* каналы */
.toggle { width: 38px; height: 22px; border-radius: 99px; background: rgba(var(--fg-rgb), .14); position: relative; transition: background .3s; flex: none; }
.toggle i { position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(18, 19, 32, .3); transition: transform .35s cubic-bezier(.3, 1.5, .5, 1); }
.toggle.on { background: linear-gradient(90deg, var(--teal), #2BC7A6); }
.toggle.on i { transform: translateX(16px); }
.chan { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.chan li { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.chan .ic, .fi .ic { width: 18px; height: 18px; border-radius: 6px; flex: none; }
.ic.wa { background: var(--wa); } .ic.ig { background: linear-gradient(135deg, #FEDA75, #D62976 50%, #4F5BD5); } .ic.tg { background: var(--tg); } .ic.kaspi { background: var(--kaspi); }
.chan .st { margin-left: auto; font-style: normal; font-size: 11px; color: var(--teal-tx); font-family: var(--fm); }
.chan .ping { min-width: 26px; text-align: center; font-family: var(--fm); font-size: 11px; font-weight: 500; padding: 1px 6px; border-radius: 99px; background: rgba(var(--fg-rgb), .08); transition: background .3s, transform .3s, color .3s; }
.chan .ping.hit { background: var(--vio); color: #fff; transform: scale(1.18); }
.w-chan .w-foot { margin-top: auto; padding-top: 6px; font-size: 11px; }
.w-chan.off .st { color: var(--mu2); }
.w-chan.off #aiState { color: var(--amber-tx); }

/* зал */
.floor { position: relative; flex: 1; min-height: 0; margin: 10px 0 8px; border-radius: 10px; background: repeating-linear-gradient(90deg, rgba(var(--fg-rgb), .03) 0 1px, transparent 1px 14px), rgba(var(--fg-rgb), .02); border: 1px dashed rgba(var(--fg-rgb), .14); display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; place-items: center; padding: 6px; }
.t { display: block; background: rgba(var(--fg-rgb), .08); border: 1px solid rgba(var(--fg-rgb), .14); transition: background .5s, border-color .5s, box-shadow .5s, transform .5s; }
.t.r { width: 62%; height: 52%; border-radius: 6px; } .t.c { width: 34%; aspect-ratio: 1; border-radius: 50%; } .t.w { width: 70%; height: 46%; border-radius: 6px; }
.t.busy { background: rgba(var(--fg-rgb), .22); border-color: transparent; }
.t.pick { background: linear-gradient(135deg, var(--teal), var(--vio)); border-color: transparent; box-shadow: 0 0 18px rgba(124, 108, 255, .6); transform: scale(1.08); }
.w-table .w-foot { margin-top: 0; font-size: 12px; }

/* Kaspi */
.amount { font-size: 13px; color: var(--tx); padding: 3px 8px; border-radius: 7px; background: rgba(241, 70, 53, .1); border: 1px solid rgba(241, 70, 53, .3); }
.flow { position: relative; flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: center; margin-top: 10px; }
.step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.s-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 16px; background: var(--surf2); border: 1px solid var(--line2); color: var(--mu); transition: all .45s cubic-bezier(.3, 1.4, .5, 1); margin-bottom: 6px; }
.step b { font-size: 13px; font-weight: 500; color: var(--mu); transition: color .4s; }
.step small { font-size: 11px; color: var(--mu2); }
.step.on .s-ic { background: linear-gradient(135deg, #FF6A4D, var(--kaspi)); color: #fff; border-color: transparent; box-shadow: 0 0 22px rgba(241, 70, 53, .45); transform: scale(1.08); }
.step.on:nth-child(3) .s-ic { background: linear-gradient(135deg, var(--teal), #20B991); box-shadow: 0 0 22px rgba(62, 230, 196, .5); }
.step.on b { color: var(--tx); }
.rail { position: absolute; left: 16.6%; right: 16.6%; top: calc(50% - 22px); height: 2px; background: rgba(var(--fg-rgb), .08); border-radius: 2px; }
.rail-fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--kaspi), var(--teal)); border-radius: 2px; }

/* калькуляторы */
.calc-n { margin-top: auto; display: flex; align-items: baseline; gap: 8px; }
.calc-n b { font-family: var(--fm); font-size: 28px; font-weight: 500; letter-spacing: -.04em; }
.calc-n span { font-size: 12px; color: var(--mu); }
.calc-s { display: flex; align-items: baseline; justify-content: space-between; margin-top: 6px; }
.calc-s b { font-size: 18px; font-weight: 600; } .calc-s small { font-family: var(--fm); font-size: 11px; color: var(--mu); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; margin-top: 8px; cursor: pointer; --p: 41%; touch-action: pan-y; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--vio), var(--pink) var(--p), rgba(var(--fg-rgb), .12) var(--p)); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--vio), var(--pink) var(--p), rgba(var(--fg-rgb), .12) var(--p)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; margin-top: -7px; box-shadow: 0 0 0 4px rgba(124, 108, 255, .35), 0 2px 8px rgba(18, 19, 32, .3); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(124, 108, 255, .35); }

/* ===== Секции ===== */
.sec { width: min(var(--maxw), calc(100% - 2 * var(--gut))); margin: 0 auto; padding: 130px 0 0; }
.sec-head { margin-bottom: 36px; display: flex; flex-direction: column; gap: 14px; }
.sec h2 { font-size: clamp(34px, 4.4vw, 62px); line-height: 1.02; letter-spacing: -.04em; font-weight: 600; max-width: 900px; }
.sec h2 i { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec h3 { font-size: 20px; letter-spacing: -.02em; font-weight: 600; margin-bottom: 6px; }
.sec .w p { font-size: 15px; }
.sec-note { font-size: 12px; color: var(--mu2); }
.n { position: absolute; right: 20px; top: 18px; font-size: 12px; color: var(--mu2); }

/* бегущие строки */
.marquee { padding: 90px 0 0; overflow: hidden; }
.marq { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); padding: 5px 0; }
.marq-track { display: flex; gap: 10px; width: max-content; animation: marq 48s linear infinite; }
.marq.rev .marq-track { animation-direction: reverse; animation-duration: 56s; }
@keyframes marq { to { transform: translateX(-50%); } }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); font-size: 15px; color: var(--tx); white-space: nowrap; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--vio); }
.pill:nth-child(3n) i { background: var(--teal); } .pill:nth-child(3n+1) i { background: var(--pink); }

/* заявление */
.statement { padding-top: 110px; }
.fill { font-size: clamp(26px, 3.4vw, 46px); line-height: 1.22; letter-spacing: -.03em; font-weight: 500; max-width: 1100px; }
.fill .fw { display: inline; color: rgba(var(--fg-rgb), .2); transition: color .35s; background: none; border: 0; box-shadow: none; border-radius: 0; }

.fill .fw.on { color: var(--tx); }

/* цифры */
.numbers { padding-top: 70px; }
.b-num { grid-template-columns: repeat(3, 1fr); }
.b-num .w-in { padding: 26px; gap: 8px; min-height: 160px; justify-content: flex-end; }
.nb { font-size: clamp(42px, 4.6vw, 64px); font-weight: 500; letter-spacing: -.05em; line-height: 1; background: var(--num-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.b-num span { color: var(--mu); font-size: 15px; }

/* как работает */
.b-how { grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; grid-template-areas: "s1 s2" "s1 s3"; }
.b-how .s1 { grid-area: s1; } .b-how .s2 { grid-area: s2; } .b-how .s3 { grid-area: s3; }
.b-how .w-in { padding: 26px; justify-content: flex-end; min-height: 250px; }
.viz { flex: 1; display: flex; margin: 26px 0 22px; }
.v-num { flex-direction: column; align-items: center; justify-content: center; min-height: 260px; width: 100%; min-width: 0; }
.v-chips { display: flex; justify-content: space-between; gap: 8px; width: min(420px, 100%); }
.v-num .tag { font-size: 13px; padding: 7px 12px; flex: 1 1 0; min-width: 0; text-align: center; overflow: hidden; text-overflow: ellipsis; }
.v-wires { width: min(280px, 66%); height: 70px; overflow: visible; }
.v-wires path { fill: none; stroke: rgba(var(--fg-rgb), .14); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.v-wires path.flow { stroke: var(--vio); stroke-dasharray: 10 90; stroke-dashoffset: 100; animation: wire 2.2s linear infinite; }
.v-wires path.flow:nth-of-type(5) { animation-delay: .6s; } .v-wires path.flow:nth-of-type(6) { animation-delay: 1.2s; }
@keyframes wire { to { stroke-dashoffset: 0; } }
.num-chip { margin-top: 10px; font-size: 20px; padding: 14px 20px; border-radius: 14px; background: var(--surf); border: 1px solid var(--line2); box-shadow: 0 0 0 6px rgba(124, 108, 255, .06), 0 0 50px -10px rgba(124, 108, 255, .45); }
.v-train { flex-direction: column; gap: 9px; justify-content: center; }
.v-train .ln { display: flex; align-items: center; gap: 12px; font-size: 12px; }
.v-train .ln b { width: 92px; font-weight: 500; color: var(--mu); }
.v-train .ln i { flex: 1; height: 6px; border-radius: 6px; background: rgba(var(--fg-rgb), .07); position: relative; overflow: hidden; }
.v-train .ln i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--vio), var(--pink)); transform: scaleX(var(--k, 0)); transform-origin: left; transition: transform 1.4s cubic-bezier(.2, .8, .2, 1); }
.v-inbox { flex-direction: column; gap: 7px; justify-content: center; }
.v-inbox .row { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 8px 10px; border-radius: 10px; background: rgba(var(--fg-rgb), .03); border: 1px solid var(--line); }
.v-inbox .row i { width: 20px; height: 20px; border-radius: 50%; }
.a1 { background: linear-gradient(135deg, #FFB547, #FF5FA2); } .a2 { background: linear-gradient(135deg, var(--teal), var(--tg)); } .a3 { background: linear-gradient(135deg, var(--vio), var(--pink)); }
.v-inbox .row em { margin-left: auto; font-style: normal; font-family: var(--fm); font-size: 11px; color: var(--mu); padding: 1px 7px; border-radius: 6px; background: rgba(var(--fg-rgb), .06); }
.v-inbox .row.on { border-color: rgba(124, 108, 255, .5); background: rgba(124, 108, 255, .08); }
.v-inbox .row.on em { color: #fff; background: var(--vio); }

/* ниши */
.b-niche { grid-template-columns: repeat(3, 1fr); }
.niche { display: block; transition: transform .3s var(--ease); }
.niche:hover { transform: translateY(-3px); }
.niche .w-in { padding: 22px; gap: 14px; min-height: 230px; }
.niche .tag { align-self: flex-start; }
.niche .mini { display: flex; flex-direction: column; gap: 6px; flex: 1; justify-content: center; }
.niche .mini p { max-width: 86%; padding: 7px 10px; border-radius: 12px; font-size: 13px !important; line-height: 1.35; }
.niche .mini .o { align-self: flex-end; background: var(--bubble-out); color: var(--bubble-out-ink); border-bottom-right-radius: 4px; }
.niche .mini .i { align-self: flex-start; background: var(--bubble-in); color: var(--tx); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.niche h3 { font-size: 17px; margin: 0; }
.niche-all { margin-top: 20px; }

/* кейс */
.b-case { grid-template-columns: repeat(3, 1fr) 1.1fr; grid-template-areas: "big big big feed" "f1 f2 f3 feed"; }
.c-big { grid-area: big; } .c-feed { grid-area: feed; }
.b-case .c-f:nth-of-type(3) { grid-area: f1; } .b-case .c-f:nth-of-type(4) { grid-area: f2; } .b-case .c-f:nth-of-type(5) { grid-area: f3; }
.c-big .w-in { padding: 28px; min-height: 400px; }
.bignum { position: relative; z-index: 1; font-size: clamp(64px, 10vw, 150px); font-weight: 500; letter-spacing: -.06em; line-height: 1; margin-top: 10px; background: var(--num-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bignum .dash { opacity: .5; margin: 0 .04em; }
.big-cap { position: relative; z-index: 1; margin-top: 14px; max-width: 520px; font-size: 17px !important; }
.bars { position: absolute; right: 28px; bottom: 28px; top: 90px; width: 34%; display: flex; align-items: flex-end; gap: 5px; }
.bars i { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--vio), rgba(124, 108, 255, .15)); transform-origin: bottom; }
.c-f .w-in { padding: 22px; gap: 4px; }
.c-f b { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.c-f p { font-size: 14px !important; }
.f-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(124, 108, 255, .12); border: 1px solid rgba(124, 108, 255, .3); color: var(--vio-tx); margin-bottom: 18px; font-size: 15px; }
.c-feed .w-in { padding: 18px 16px 0; }
.feed-win { flex: 1 1 0; position: relative; overflow: hidden; margin-top: 12px; min-height: 380px; mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent); }
.feed-col { position: absolute; left: 0; right: 0; top: 0; display: flex; flex-direction: column; gap: 8px; will-change: transform; }
.fi { display: flex; gap: 10px; padding: 10px; border-radius: 12px; background: var(--bubble-in); border: 1px solid var(--line); font-size: 12.5px; }
.fi b { font-weight: 500; display: block; font-size: 12.5px; } .fi span { color: var(--mu); display: block; font-size: 12px; line-height: 1.35; }
.fi time { margin-left: auto; font-family: var(--fm); font-size: 10px; color: var(--mu2); flex: none; }

/* демо */
.b-demo { grid-template-columns: 1fr 1.7fr; }
.d-side .w-in { padding: 24px; gap: 16px; }
.tabs { display: flex; flex-direction: column; gap: 6px; }
.tab { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid transparent; transition: background .25s, border-color .25s; }
.tab span { font-weight: 500; font-size: 15px; } .tab small { font-size: 12px; color: var(--mu); font-family: var(--fm); }
.tab:hover { background: rgba(var(--fg-rgb), .04); }
.tab.on { background: rgba(124, 108, 255, .09); border-color: rgba(124, 108, 255, .45); box-shadow: 0 0 30px -12px rgba(124, 108, 255, .6); }
.d-note { margin-top: auto; font-size: 14px !important; }
.d-win .w-in { padding: 16px; background: radial-gradient(ellipse 60% 50% at 80% 100%, rgba(124, 108, 255, .1), transparent 70%); }
.d-win .w-head .tag { margin-left: auto; }
.chat-body.tall { height: 460px; flex: none; }
.chat-body.tall .msg { max-width: 64%; font-size: 14px; padding: 10px 13px; }
.replay { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line2); color: var(--mu); transition: transform .5s, color .2s; flex: none; }
.replay:hover { color: var(--tx); transform: rotate(-180deg); }

/* тариф */
.b-price { grid-template-columns: repeat(3, 1fr); }
.p-t .w-in { padding: 26px; gap: 8px; min-height: 180px; justify-content: flex-end; }
.p-big { font-size: clamp(48px, 5vw, 72px); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.p-t span { color: var(--mu); font-size: 15px; }
.p-t.accent { background: linear-gradient(160deg, rgba(124, 108, 255, .2), rgba(255, 95, 162, .07) 60%, rgba(var(--fg-rgb), .02)); border-color: rgba(124, 108, 255, .4); }
.p-t.accent .p-big { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.p-calc { grid-column: 1 / 3; }
.p-calc .w-in { padding: 28px; }
.calc-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.calc-top .r { text-align: right; } .calc-top .r .w-k { justify-content: flex-end; }
.cN, .cS { display: block; font-size: clamp(36px, 4vw, 56px); font-weight: 500; letter-spacing: -.05em; line-height: 1.1; margin-top: 4px; }
.cS { background: var(--num-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.p-calc input[type=range] { margin-top: 22px; height: 28px; }
.p-calc input[type=range]::-webkit-slider-runnable-track { height: 6px; }
.p-calc input[type=range]::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -9px; }
.calc-seg { margin-top: 14px; }
.calc-foot { margin-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.fine { font-size: 14px !important; max-width: 420px; }
.p-inc .w-in { padding: 26px; }
.price-includes-title { font-size: 18px !important; }
.price-includes-title span { color: var(--teal-tx); }
.price-includes-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 14px; font-size: 14px; color: var(--mu); }
.price-includes-list li { position: relative; padding-left: 24px; }
.price-includes-list li::before { content: ''; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 4px; background: linear-gradient(135deg, var(--teal), var(--vio)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.2l2.6 2.6L11 4.4' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.2l2.6 2.6L11 4.4' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.price-foot { margin-top: 18px; font-size: 13px; color: var(--mu); }
.price-foot a { color: var(--link); }

/* характеристики */
.spec-card .w-in { padding: 8px 28px; }
.spec div { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.spec div:last-child { border-bottom: 0; }
.spec dt { font-family: var(--fm); font-size: 13px; color: var(--mu); padding-top: 2px; }
.spec dd { font-size: 16px; }

/* ещё */
.b-more { grid-template-columns: repeat(3, 1fr); grid-template-areas: "m1 m2 m2" "m3 m4 m4"; }
.m1 { grid-area: m1; } .m2 { grid-area: m2; } .m3 { grid-area: m3; } .m4 { grid-area: m4; }
.m .w-in { padding: 26px; min-height: 240px; gap: 4px; }
.m2 .w-in, .m4 .w-in { overflow: hidden; }
.m-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(var(--fg-rgb), .05); border: 1px solid var(--line2); margin-bottom: auto; font-size: 16px; color: var(--vio-tx); }
.m h3 { margin-top: 30px; }
.m p { max-width: 380px; position: relative; z-index: 1; }
.mini-site { position: absolute; right: 26px; top: 26px; width: 38%; height: 62%; border-radius: 12px; border: 1px solid var(--line2); background: var(--surf); padding: 26px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.mini-site::before { content: ''; position: absolute; left: 12px; top: 10px; width: 30px; height: 6px; background: radial-gradient(circle at 3px 3px, #FF5F57 3px, transparent 3.5px), radial-gradient(circle at 15px 3px, #FEBC2E 3px, transparent 3.5px), radial-gradient(circle at 27px 3px, #28C840 3px, transparent 3.5px); }
.mini-site i { display: block; border-radius: 6px; background: rgba(var(--fg-rgb), .06); }
.mini-site i:nth-child(1) { height: 40%; background: linear-gradient(135deg, rgba(124, 108, 255, .4), rgba(255, 95, 162, .25)); }
.mini-site i:nth-child(2) { height: 10%; width: 70%; } .mini-site i:nth-child(3) { height: 10%; width: 45%; }
.mini-phone { position: absolute; right: 40px; top: 22px; bottom: -40px; width: 150px; border-radius: 26px; border: 1px solid var(--line2); background: var(--surf); padding: 30px 12px 12px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 0 60px -20px rgba(124, 108, 255, .5); }
.mini-phone i { display: block; border-radius: 8px; background: rgba(var(--fg-rgb), .06); }
.mini-phone .mp-top { position: absolute; top: 10px; left: 50%; width: 46px; height: 12px; margin-left: -23px; border-radius: 99px; background: #12131A; }
.mini-phone .mp-card { height: 70px; background: linear-gradient(135deg, rgba(62, 230, 196, .35), rgba(124, 108, 255, .35)); }
.mini-phone .mp-row { height: 12px; } .mini-phone .mp-row.s { width: 60%; }
.mini-phone .mp-btn { height: 26px; margin-top: 6px; background: rgba(124, 108, 255, .5); }
.more-cta { margin-top: 20px; }

/* вопросы */
.faq-list details.w { padding: 0; }

/* финал */
.final { padding-bottom: 80px; }
@property --a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.final-card { position: relative; border-radius: 28px; padding: 1px; background: conic-gradient(from var(--a), rgba(var(--fg-rgb), .08) 0deg, var(--vio) 60deg, var(--pink) 110deg, rgba(var(--fg-rgb), .08) 170deg, rgba(var(--fg-rgb), .08) 360deg); animation: spin 6s linear infinite; }
@keyframes spin { to { --a: 360deg; } }
.final-in { position: relative; border-radius: 27px; padding: 100px 40px; text-align: center; background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(124, 108, 255, .22), transparent 70%), radial-gradient(ellipse 50% 60% at 50% 120%, rgba(255, 95, 162, .12), transparent 70%), var(--surf); overflow: hidden; }
.final-in::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, #000, transparent 80%); -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, #000, transparent 80%); }
.final-in > * { position: relative; }
.final h2 { margin: 16px auto 0; font-size: clamp(40px, 6vw, 88px); }
.final .cta { margin-top: 40px; }

/* ===== Адаптив ===== */
@media (max-width: 860px) {
  .hero-pin { height: auto; min-height: 0; overflow: visible; padding: 104px 0 0; }
  .hero-copy { position: relative; left: auto; top: auto; transform: none; width: auto; padding: 0 var(--gut); }
  .hero h1 { font-size: clamp(38px, 11vw, 56px); }
  .hero-sub { font-size: 18px; }
  .hero-copy .cta { flex-direction: column; align-items: stretch; }
  .btn { min-height: 52px; }
  .scroll-hint { display: none; }
  .hero-note { position: static; transform: none; display: block; text-align: center; white-space: normal; margin: 12px var(--gut) 0; }
  .hero-bento { position: relative; left: auto; top: auto; bottom: auto; transform: none; width: calc(100% - 2 * var(--gut)); margin: 40px auto 0;
    grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: auto;
    grid-template-areas: "chat chat" "count zero" "chart chart" "time table" "chan chan" "kaspi kaspi" "calc calc"; gap: 10px; }
  .w-chat .w-in { height: 380px; }
  .w-count .w-in, .w-zero .w-in, .w-time .w-in, .w-table .w-in { min-height: 170px; }
  .w-in { padding: 16px; }
  .odo { font-size: 40px; }
  .zero { font-size: 60px; }
  .w-chart .w-in { height: 300px; }
  .w-kaspi .w-in { min-height: 170px; }
  .gauge { max-height: 100px; width: 100px; }
  .floor { min-height: 90px; }
  .spark, .hide-m, .mini-site, .mini-phone { display: none; }
  .sec { padding-top: 90px; }
  .sec-head { margin-bottom: 26px; }
  .b-num, .b-how, .b-case, .b-demo, .b-price, .b-more, .b-niche { grid-template-columns: 1fr; grid-template-areas: none; grid-template-rows: none; }
  .b-how > *, .b-more > *, .b-case > * { grid-area: auto !important; }
  .b-num .w-in { min-height: 0; }
  .b-how .w-in { min-height: 0; padding: 22px; }
  .v-num { min-height: 190px; }
  .v-num .tag { font-size: 11px; padding: 6px 4px; }
  .num-chip { font-size: 15px; padding: 10px 12px; }
  .v-wires { height: 50px; }
  .niche .w-in { min-height: 0; }
  .c-big .w-in { min-height: 0; padding: 22px; }
  .bars { position: relative; right: auto; bottom: auto; top: auto; width: 100%; height: 80px; margin-top: 22px; }
  .feed-win { min-height: 300px; height: 300px; }
  .c-f .w-in { padding: 14px 16px; display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; align-items: center; }
  .c-f .f-ic { margin: 0; grid-row: span 2; } .c-f b { font-size: 16px; }
  .tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; border-color: var(--line); }
  .d-side .w-in { padding: 20px; overflow: hidden; }
  .chat-body.tall { height: 400px; }
  .chat-body.tall .msg { max-width: 84%; font-size: 13.5px; }
  .d-win .w-head .tag { display: none; }
  .b-price { grid-template-columns: 1fr 1fr; }
  .p-t.accent, .p-calc, .p-inc { grid-column: 1 / -1; }
  .p-t .w-in { min-height: 130px; padding: 20px; }
  .p-calc .w-in, .p-inc .w-in { padding: 22px; }
  .calc-foot .btn { width: 100%; }
  .spec-card .w-in { padding: 4px 20px; }
  .spec div { grid-template-columns: 1fr; gap: 4px; }
  .m .w-in { min-height: 0; padding: 22px; }
  .m h3 { margin-top: 22px; }
  .final-in { padding: 64px 20px; }
  .final .cta { flex-direction: column; align-items: stretch; }
  .marquee { padding-top: 70px; }
  .pill { font-size: 13px; padding: 8px 12px; }
}
@media (min-width: 861px) and (max-width: 1100px) { .b-niche { grid-template-columns: 1fr 1fr; } }
@media (min-width: 861px) {
  .rm .hero-pin { height: auto; min-height: 0; overflow: visible; padding-top: 150px; }
  .rm .hero-copy { position: relative; left: auto; top: auto; transform: none; margin: 0 auto; }
  .rm .scroll-hint { display: none; }
  .rm .hero-bento { position: relative; top: auto; bottom: auto; left: auto; transform: none; margin: 70px auto 0; height: 780px; }
  .rm .hero-note { position: static; transform: none; text-align: center; margin-top: 12px; }
}
/* ниши на телефоне — свайп-лента, а не девять карточек столбиком */
@media (max-width: 860px) {
  .b-niche { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) 6px; gap: 10px; }
  .b-niche::-webkit-scrollbar { display: none; }
  .b-niche > .niche { flex: 0 0 78%; scroll-snap-align: start; }
}
