/* M-POS.ORG — нүүр хуудас */
:root {
  --dark: #060B19;
  --navy: #0B132B;
  --card-d: #111A33;
  --ink: #0F172A;
  --text: #334155;
  --muted: #64748B;
  --bg: #F8FAFC;
  --line: #E2E8F0;
  --blue: #2563EB;
  --cyan: #06B6D4;
  --green: #10B981;
  --indigo: #4F46E5;
  --err: #DC2626;
  --grad: linear-gradient(90deg, #2563EB, #06B6D4 55%, #10B981);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--blue); color: #fff; }
svg { display: block; }
a { color: var(--blue); }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 8px; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .9em; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.c-blue { color: var(--blue); } .c-cyan { color: #22D3EE; } .c-green { color: #34D399; } .c-cyan-d { color: #0891B2; }

/* ---------- Харанхуй хэсгүүд ---------- */
.dark { background-color: var(--dark); color: #CBD5E1; position: relative; overflow: hidden;
  background-image: radial-gradient(rgba(56, 189, 248, .12) 1px, transparent 1px); background-size: 28px 28px; }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.light-grid { background-color: #fff; background-image: radial-gradient(rgba(15, 23, 42, .06) 1px, transparent 1px); background-size: 24px 24px; }
.orb { position: absolute; width: 420px; height: 420px; border-radius: 50%; filter: blur(120px); pointer-events: none; }
.orb-a { top: 60px; left: 18%; background: rgba(37, 99, 235, .22); }
.orb-b { bottom: 0; right: 18%; background: rgba(16, 185, 129, .16); }
.orb-c { top: 10%; right: 10%; background: rgba(6, 182, 212, .16); }
.glass { background: rgba(17, 26, 51, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .12); border-radius: 24px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.grad-text { background: linear-gradient(90deg, #60A5FA, #67E8F9 50%, #34D399); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); color: #67E8F9; font-size: 13px; font-weight: 600; }
.pill-cyan { background: rgba(6, 182, 212, .15); border-color: rgba(34, 211, 238, .3); }
.dot-green { width: 8px; height: 8px; border-radius: 50%; background: #34D399; display: inline-block; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: #34D399; display: inline-block; margin-right: 6px; box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.muted-s { color: #94A3B8; font-size: 13px; }

/* ---------- Товч ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 14px; border: 0; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, opacity .15s; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 12px 28px -10px rgba(6, 182, 212, .55); }
.btn-grad:hover { transform: translateY(-1px); box-shadow: 0 16px 32px -10px rgba(6, 182, 212, .7); }
.btn-glass { background: rgba(255, 255, 255, .06); color: #E2E8F0; border: 1px solid rgba(255, 255, 255, .16); }
.btn-glass:hover { background: rgba(255, 255, 255, .12); }
.btn-green { background: #059669; color: #fff; }
.btn-green:hover { background: #10B981; }
.btn-ghost-d { background: #F1F5F9; color: var(--ink); }
.btn-ghost-d:hover { background: #E2E8F0; }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 12px; }
.btn-lg { padding: 15px 26px; font-size: 16px; border-radius: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Толгой ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 40; background: rgba(6, 11, 25, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.top-in { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark { width: 42px; height: 42px; flex: none; }
.logo-text { display: flex; flex-direction: column; }
.logo-word { color: #fff; font-weight: 700; font-size: 20px; letter-spacing: .04em; }
.logo-word b { color: #22D3EE; font-size: 13px; margin-left: 1px; }
.logo-sub { color: #94A3B8; font-size: 11px; letter-spacing: .08em; margin-top: -2px; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: 16px; }
.nav > a { color: #CBD5E1; text-decoration: none; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; }
.nav > a:hover { color: #fff; }
.nav-mobile-act { display: none; }
.top-act { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.link-login { color: #E2E8F0; font-weight: 600; font-size: 14px; text-decoration: none; padding: 8px 12px; border-radius: 10px; }
.link-login:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 8px; border-radius: 10px; cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; stroke: #CBD5E1; stroke-width: 2; stroke-linecap: round; fill: none; }

/* ---------- Hero ---------- */
.hero { padding: 150px 0 110px; }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 700; line-height: 1.1; margin-top: 22px; max-width: 14ch; }
.lead { margin-top: 22px; font-size: 18px; color: #CBD5E1; max-width: 54ch; line-height: 1.65; }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.facts { margin: 36px 0 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 520px; }
.facts dt { color: #fff; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.facts dd { margin: 2px 0 0; color: #94A3B8; font-size: 13px; }

.hero-visual { position: relative; }
.terminal { padding: 22px; }
.term-bar { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.dots { display: flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #F43F5E; }
.dots i:nth-child(2) { background: #FBBF24; } .dots i:nth-child(3) { background: #10B981; }
.term-name { font-size: 12px; color: #94A3B8; font-weight: 500; }
.tag-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; background: rgba(16, 185, 129, .15); color: #34D399; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.term-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.big-num { color: #fff; font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; }
.seg { display: flex; background: rgba(15, 23, 42, .9); padding: 4px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); }
.seg-btn { background: none; border: 0; color: #94A3B8; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.seg-btn:hover { color: #fff; }
.seg-btn.is-on { background: var(--blue); color: #fff; }
.chart-card { background: rgba(15, 23, 42, .7); border: 1px solid rgba(255, 255, 255, .05); border-radius: 18px; padding: 16px; margin-bottom: 14px; }
.chart-top { display: flex; justify-content: space-between; font-size: 12px; color: #94A3B8; margin-bottom: 10px; }
.chart-top .c-green { font-weight: 600; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 104px; align-items: end; }
.bars > div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.bars i { width: 100%; border-radius: 6px 6px 0 0; background: rgba(59, 130, 246, .55); transition: height .5s ease; }
.bars i.peak { background: linear-gradient(0deg, #2563EB, #34D399); }
.bars span { font-size: 10px; color: #64748B; }
.term-split { display: grid; grid-template-columns: 7fr 5fr; gap: 12px; }
.mini-card { background: rgba(15, 23, 42, .7); border: 1px solid rgba(255, 255, 255, .05); border-radius: 18px; padding: 14px; display: grid; gap: 8px; }
.mini-title { font-size: 12px; font-weight: 600; color: #CBD5E1; }
.tx { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .05); border-radius: 12px; padding: 8px; font-size: 12px; }
.tx-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; flex: none; }
.tx-ic.q { background: rgba(59, 130, 246, .2); color: #60A5FA; } .tx-ic.b { background: rgba(16, 185, 129, .2); color: #34D399; }
.tx-t { color: #fff; font-weight: 500; display: flex; flex-direction: column; line-height: 1.25; }
.tx-t small { color: #94A3B8; font-size: 10px; font-weight: 400; }
.tx-a { margin-left: auto; color: #34D399; font-weight: 700; }
.qr-card { background: linear-gradient(135deg, rgba(37, 99, 235, .25), rgba(6, 182, 212, .15)); border: 1px solid rgba(34, 211, 238, .25); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2px; }
.qr-box { background: #fff; padding: 8px; border-radius: 12px; margin-bottom: 6px; }
.qr-box svg { width: 54px; height: 54px; fill: #0F172A; }
.qr-card b { color: #fff; font-size: 12px; } .qr-card small { color: #67E8F9; font-size: 11px; }
.float-card { position: absolute; left: -28px; bottom: -52px; display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .95); border-radius: 18px; padding: 12px 16px; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .45); }
.fc-ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(16, 185, 129, .15); display: grid; place-items: center; }
.fc-ic svg { width: 24px; height: 24px; fill: none; stroke: #059669; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.float-card b { display: block; color: var(--ink); font-size: 13px; }
.float-card small { color: var(--muted); font-size: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .float-card { animation: float 6s ease-in-out infinite; }
  @keyframes float { 50% { transform: translateY(-10px); } }
}

/* ---------- Гарчиг ---------- */
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 52px; display: grid; gap: 14px; justify-items: center; }
.eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #EFF6FF; color: var(--blue); font-size: 13px; font-weight: 700; }
section h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; }
.sec-lead { color: var(--muted); font-size: 18px; }
.on-dark .sec-lead { color: #CBD5E1; }

/* ---------- Боломжууд ---------- */
.features { padding: 110px 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 30px; transition: box-shadow .25s, border-color .25s, transform .25s; }
.card:hover { box-shadow: 0 24px 48px -24px rgba(15, 23, 42, .25); border-color: rgba(37, 99, 235, .3); transform: translateY(-3px); }
.card h3 { font-size: 19px; font-weight: 700; margin: 22px 0 10px; }
.card p { font-size: 15px; color: var(--muted); line-height: 1.65; }
.card-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; border: 1px solid; }
.card-ic svg { width: 32px; height: 32px; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ic-blue { background: linear-gradient(135deg, rgba(59, 130, 246, .1), rgba(6, 182, 212, .1)); border-color: rgba(59, 130, 246, .2); }
.ic-cyan { background: linear-gradient(135deg, rgba(6, 182, 212, .1), rgba(16, 185, 129, .1)); border-color: rgba(6, 182, 212, .2); }
.ic-green { background: linear-gradient(135deg, rgba(16, 185, 129, .1), rgba(20, 184, 166, .1)); border-color: rgba(16, 185, 129, .2); }
.ic-indigo { background: linear-gradient(135deg, rgba(79, 70, 229, .1), rgba(59, 130, 246, .1)); border-color: rgba(79, 70, 229, .2); }
.ic-purple { background: linear-gradient(135deg, rgba(124, 58, 237, .1), rgba(79, 70, 229, .1)); border-color: rgba(124, 58, 237, .2); }

/* ---------- Ажиллах хэлбэр ---------- */
.modes { padding: 100px 0; background: #F1F5F9; border-block: 1px solid var(--line); }
.modes .eyebrow { background: #ECFEFF; }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 32px; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 16px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-weight: 700; font-size: 15px; cursor: pointer; }
.tab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tab:hover { color: var(--ink); }
.tab.is-on { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 12px 24px -12px rgba(11, 19, 43, .6); }
.tab.is-on svg { stroke: #22D3EE; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 40px; display: grid; grid-template-columns: 7fr 5fr; gap: 36px; align-items: center; box-shadow: 0 24px 48px -32px rgba(15, 23, 42, .3); }
.chip { display: inline-block; padding: 4px 12px; border-radius: 8px; background: #EFF6FF; color: var(--blue); font-size: 13px; font-weight: 700; }
.panel h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; margin: 14px 0 12px; }
.panel-copy > p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: center; font-weight: 500; color: var(--text); font-size: 15px; }
.checks li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #D1FAE5; color: #059669; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.panel-card { background: linear-gradient(135deg, var(--navy), #0F172A); border-radius: 20px; padding: 24px; color: #CBD5E1; }
.pc-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .1); color: #22D3EE; font-weight: 700; font-size: 14px; }
.pc-tag { background: rgba(255, 255, 255, .1); color: #E2E8F0; font-size: 12px; padding: 3px 10px; border-radius: 6px; font-weight: 500; }
.pc-rows { list-style: none; margin: 0; padding: 0; }
.pc-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 14px; }
.pc-rows li:last-child { border-bottom: 0; }
.pc-rows b { color: #34D399; } .pc-rows b.no { color: #64748B; }

/* ---------- Демо касс ---------- */
.demo { padding: 110px 0; }
.pos { max-width: 1040px; margin: 0 auto; overflow: hidden; padding: 0; }
.pos-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 24px; background: rgba(15, 23, 42, .9); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.pos-bar > span { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 14px; letter-spacing: .02em; }
.btn-clear { background: none; border: 1px solid rgba(244, 63, 94, .35); color: #FDA4AF; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 10px; cursor: pointer; }
.btn-clear:hover { background: rgba(244, 63, 94, .15); }
.pos-grid { display: grid; grid-template-columns: 7fr 5fr; }
.pos-products { padding: 24px; border-right: 1px solid rgba(255, 255, 255, .1); }
.pos-label { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; color: #CBD5E1; margin-bottom: 14px; }
.pos-label .c-cyan { font-weight: 500; font-size: 12px; }
.count { background: rgba(37, 99, 235, .3); color: #67E8F9; padding: 2px 10px; border-radius: 999px; font-size: 12px; }
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.prod { text-align: left; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; padding: 14px; cursor: pointer; color: #fff; transition: background .15s, border-color .15s, transform .1s; }
.prod:hover { background: rgba(37, 99, 235, .22); border-color: rgba(34, 211, 238, .5); }
.prod:active { transform: scale(.97); }
.prod-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 10px; font-size: 18px; font-weight: 700; }
.prod b { display: block; font-size: 14px; font-weight: 600; }
.prod small { color: #94A3B8; font-size: 12px; font-family: var(--mono); }
.pos-cart { padding: 24px; background: rgba(15, 23, 42, .6); display: flex; flex-direction: column; }
.cart-list { flex: 1; min-height: 180px; max-height: 260px; overflow-y: auto; display: grid; align-content: start; gap: 8px; margin-bottom: 14px; padding-right: 4px; }
.cart-empty { color: #94A3B8; font-size: 13px; text-align: center; padding: 40px 0; }
.ci { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .05); border-radius: 14px; padding: 10px 12px; }
.ci b { display: block; color: #fff; font-size: 13px; font-weight: 600; }
.ci small { color: #94A3B8; font-size: 11px; font-family: var(--mono); }
.ci-r { display: flex; align-items: center; gap: 6px; }
.ci-sum { color: #67E8F9; font-weight: 700; font-size: 13px; margin-right: 4px; font-family: var(--mono); }
.qty-b { width: 26px; height: 26px; border-radius: 8px; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font-weight: 700; cursor: pointer; }
.qty-b:hover { background: rgba(255, 255, 255, .2); }
.cart-foot { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 14px; display: grid; gap: 8px; }
.row-s, .row-t { display: flex; justify-content: space-between; align-items: center; }
.row-s { font-size: 12px; color: #94A3B8; font-family: var(--mono); }
.row-t span:first-child { color: #E2E8F0; font-weight: 600; font-size: 14px; }
.row-t span:last-child { color: #34D399; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.pay-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }

/* ---------- Алхам ---------- */
.start { padding: 110px 0; background: #fff; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 70px 24px 26px; background: var(--bg); border: 1px solid var(--line); border-radius: 22px; }
.steps li::before { content: counter(s); position: absolute; top: 22px; left: 24px; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; }
.steps h3 { font-size: 18px; font-weight: 700; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ---------- Туршилтын хүсэлт ---------- */
.trial { padding: 110px 0; }
.trial-in { position: relative; z-index: 1; display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.trial-copy h2 { margin-top: 18px; }
.trial-copy > p:not(.pill) { margin-top: 18px; color: #CBD5E1; font-size: 17px; max-width: 42ch; }
.trial-copy a { color: #fff; font-weight: 700; }
.form { background: #fff; color: var(--ink); border-radius: 24px; padding: 32px; display: grid; gap: 16px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6); }
.f-row { display: grid; gap: 6px; min-width: 0; }
.f-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label, .form legend { font-weight: 700; font-size: 13px; color: #334155; }
.opt { color: var(--muted); font-weight: 400; }
.form input:not([type=radio]), .form select, .form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #F8FAFC; font-size: 15px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.form textarea { resize: vertical; }
.form [aria-invalid=true] { border-color: var(--err); }
.f-radio { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.f-radio legend { margin-bottom: 8px; width: 100%; }
.f-radio label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; cursor: pointer; }
.f-radio input { accent-color: var(--blue); width: 18px; height: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.f-msg { min-height: 1.4em; font-size: 14px; font-weight: 600; }
.f-msg.ok { color: #059669; } .f-msg.err { color: var(--err); }

/* ---------- Холбоо барих ---------- */
.contact { padding: 90px 0; background: var(--bg); }
.contact-in { display: grid; grid-template-columns: .8fr 2fr; gap: 40px; align-items: center; }
.contact h2 { margin-top: 12px; }
.contact-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.c-item { display: grid; gap: 4px; text-align: left; padding: 22px 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.c-item:hover { border-color: rgba(37, 99, 235, .4); box-shadow: 0 16px 32px -20px rgba(15, 23, 42, .3); }
.c-label { color: var(--muted); font-size: 13px; }
.c-value { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }

/* ---------- Хөл ---------- */
.foot { padding: 64px 0 100px; border-top: 1px solid rgba(255, 255, 255, .08); background-image: none; }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.foot-brand p { margin-top: 14px; color: #94A3B8; font-size: 14px; max-width: 40ch; }
.foot-h { color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.foot ul a, .link-btn { color: #94A3B8; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-size: 14px; }
.foot ul a:hover, .link-btn:hover { color: #22D3EE; }
.foot-bottom { padding-top: 24px; color: #64748B; font-size: 13px; }

/* ---------- Демо баримтын цонх ---------- */
.modal { border: 0; padding: 0; border-radius: 24px; max-width: 420px; width: calc(100% - 32px); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .5); }
.modal::backdrop { background: rgba(2, 6, 23, .75); backdrop-filter: blur(4px); }
.modal-in { padding: 30px; display: grid; gap: 12px; text-align: center; color: var(--text); }
.modal h3 { font-size: 22px; }
.ok-ic { width: 60px; height: 60px; border-radius: 50%; background: #D1FAE5; display: grid; place-items: center; margin: 0 auto; }
.ok-ic svg { width: 32px; height: 32px; fill: none; stroke: #059669; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.muted-d { color: var(--muted); font-size: 14px; }
.muted-d b { color: var(--ink); }
.rm-receipt { text-align: left; background: #F8FAFC; border: 1px dashed #CBD5E1; border-radius: 16px; padding: 16px; font-family: var(--mono); font-size: 12px; display: grid; gap: 6px; }
.rm-h, .rm-row, .rm-it { display: flex; justify-content: space-between; gap: 10px; }
.rm-h { font-weight: 700; color: var(--ink); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.rm-it { color: var(--text); }
.rm-total { font-weight: 700; color: var(--ink); font-size: 14px; padding-top: 8px; border-top: 1px solid var(--line); }
.rm-note { color: var(--muted); font-family: var(--font); font-size: 12px; margin-top: 4px; }
.modal-btns { display: grid; gap: 10px; margin-top: 6px; }

/* ---------- Чат ---------- */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 50; }
.chat-fab { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border: 0; border-radius: 999px; cursor: pointer; background: var(--grad); color: #fff; font-weight: 700; box-shadow: 0 14px 30px -10px rgba(6, 182, 212, .7); }
.chat-fab svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.chat-badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #fff; color: var(--blue); font-size: 13px; display: grid; place-items: center; }
.chat-badge[hidden] { display: none; }
.chat-panel { position: absolute; right: 0; bottom: 70px; width: min(370px, calc(100vw - 32px)); height: min(540px, calc(100vh - 110px)); background: #fff; border-radius: 22px; box-shadow: 0 30px 60px -16px rgba(2, 6, 23, .5); display: flex; flex-direction: column; overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px; background: var(--navy); color: #fff; }
.chat-title { font-weight: 700; font-size: 16px; }
.chat-sub { color: #94A3B8; font-size: 13px; margin-top: 2px; }
.chat-x { background: none; border: 0; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; padding: 0 4px; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: #F8FAFC; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 16px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg time { display: block; font-size: 11px; opacity: .65; margin-top: 3px; }
.msg.me { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.msg.them { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.sys { align-self: center; background: none; color: var(--muted); font-size: 13px; text-align: center; }
.chat-start { padding: 10px 12px 0; border-top: 1px solid var(--line); }
.chat-start[hidden] { display: none; }
.chat-start input { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.chat-start .f-two { gap: 8px; }
.chat-send { display: flex; gap: 8px; padding: 10px 12px 12px; align-items: flex-end; }
.chat-send textarea { flex: 1; resize: none; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; max-height: 120px; font-size: 14px; line-height: 1.4; }
.chat-send textarea:focus, .chat-start input:focus { outline: none; border-color: var(--blue); }
.chat-send button { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--grad); cursor: pointer; display: grid; place-items: center; }
.chat-send button svg { width: 20px; height: 20px; fill: #fff; }
.chat-send button[disabled] { opacity: .5; }

/* ---------- Дэлгэцийн хэмжээ ---------- */
@media (max-width: 1020px) {
  .hero-in, .trial-in, .contact-in, .panel { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .hero h1 { max-width: none; }
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .pos-grid { grid-template-columns: 1fr; }
  .pos-products { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .float-card { left: 12px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .top-act { display: none; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; margin: 0; padding: 12px 20px 22px; background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .nav.is-open { display: flex; }
  .nav > a { padding: 10px 12px; border-radius: 12px; font-size: 16px; }
  .nav > a:hover { background: rgba(255, 255, 255, .05); }
  .nav-mobile-act { display: grid; gap: 10px; padding-top: 12px; margin-top: 6px; border-top: 1px solid rgba(255, 255, 255, .1); }
}
@media (max-width: 640px) {
  .hero { padding: 108px 0 80px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .cards, .steps, .f-two, .contact-list, .checks { grid-template-columns: 1fr; }
  .term-split { grid-template-columns: 1fr; }
  .float-card { display: none; }
  .prod-grid { grid-template-columns: 1fr 1fr; }
  .panel, .form { padding: 22px; }
  .features, .modes, .demo, .start, .trial { padding: 80px 0; }
  .chat-fab span:not(.chat-badge) { display: none; }
  .chat-fab { padding: 15px; }
  .foot-in { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot-live { animation: none; }
  .bars i { transition: none; }
}
