/* senta.mn landing. Tokens first; everything below references them. */
@font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/inter-cyrillic-ext-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/inter-cyrillic-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/inter-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --bg: #ffffff;
  --ink: #14122B;
  --muted: #6B6A80;
  --text: #45445E;
  --accent: #694CF2;
  --accent-dark: #5338E0;
  --accent-ink: #ffffff;
  --field: #F4F2FF;
  --field-2: #E6E1FF;
  --ok: #137A43;
  --ok-bg: #E3F6EC;
  --wait: #9A5B00;
  --wait-bg: #FFF1DB;

  --font: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --step-small: 0.875rem;
  --step-body: 1.0625rem;
  --step-lead: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  --step-head: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
  --step-display: clamp(2.2rem, 1.5rem + 3.5vw, 4.5rem);

  --margin: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 8vw, 7rem);
  --radius: 24px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms; --t-hover: 180ms; --t-reveal: 800ms;
}

/* reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
img, svg, canvas { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 5rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* type */
h1 { font-size: var(--step-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.022em; text-wrap: balance; }
h2 { font-size: var(--step-head); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; text-wrap: pretty; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; }
p { text-wrap: pretty; color: var(--text); max-width: 56ch; }
p + p { margin-top: 0.8em; }
.lead { font-size: var(--step-lead); line-height: 1.55; }
.field-ink p, .field-accent p, [data-ui] p { color: inherit; }

/* layout */
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--margin); }
.field { background: var(--field); }
.field-ink { background: var(--ink); color: #fff; }
.field-accent { background: var(--accent); color: var(--accent-ink); }
section { padding-block: var(--section); }

/* controls */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.5rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.button:hover { background: var(--accent-dark); }
.button:active { transform: scale(0.97); }
.button-sm { min-height: 2.6rem; padding: 0 1.1rem; font-size: var(--step-small); }
.button-ghost { background: var(--field-2); color: var(--accent-dark); }
.button-ghost:hover { background: #D9D2FF; }
.button-light { background: #fff; color: var(--accent-dark); }
.button-light:hover { background: var(--field); }
.button-outline { background: rgba(255,255,255,0.16); color: #fff; }
.button-outline:hover { background: rgba(255,255,255,0.26); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: var(--bg); }
.nav-in { display: flex; align-items: center; gap: 2rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; text-decoration: none; }
.nav-links { display: flex; gap: 1.75rem; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 0.9375rem; padding: 0.4rem 0; transition: color var(--t-hover) ease; }
.nav-links a:hover { color: var(--accent-dark); }
.nav .button { margin-left: 0.5rem; }

/* hero */
.hero { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero-copy { text-align: center; }
.hero-copy h1 { max-width: 920px; margin-inline: auto; }
.hero-copy .lead { max-width: 600px; margin: 1.5rem auto 0; }
.hero-copy .actions { justify-content: center; margin-top: 2.25rem; }
.hero-media { position: relative; margin-top: clamp(2.5rem, 5vw, 4rem); }
.hero-stage { position: relative; background: var(--field); border-radius: var(--radius); padding: 3.5rem 0 0 3.5rem; overflow: hidden; }
.hero .phone { position: absolute; right: clamp(1rem, 4vw, 3.5rem); bottom: 2.5rem; width: 300px; }

/* console fragment */
.console { display: grid; grid-template-columns: 200px 1fr; background: #fff; border-radius: 16px 0 0 0; overflow: hidden; font-size: 13px; line-height: 1.35; color: var(--ink); min-height: 660px; }
[data-ui] .c-side { background: #FAF9FF; padding: 18px 14px; border-right: 1px solid #ECEAF6; }
[data-ui] .c-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; margin-bottom: 18px; }
[data-ui] .c-side ul { list-style: none; padding: 0; margin: 0; }
[data-ui] .c-side li { padding: 8px 10px; border-radius: 8px; color: #4B4A63; }
[data-ui] .c-side li.on { background: var(--field-2); color: var(--accent-dark); font-weight: 600; }
[data-ui] .c-main { padding: 18px 22px; min-width: 0; }
[data-ui] .c-top { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; margin-bottom: 16px; }
[data-ui] .c-date { margin-left: auto; color: var(--muted); font-weight: 400; font-size: 13px; }
[data-ui] .c-av { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; display: grid; place-items: center; }
[data-ui] .c-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
[data-ui] .c-kpi { border: 1px solid #ECEAF6; border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; }
[data-ui] .k-l { color: var(--muted); font-size: 12px; }
[data-ui] .k-v { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
[data-ui] .k-s { font-size: 12px; color: var(--muted); }
[data-ui] .c-table { border: 1px solid #ECEAF6; border-radius: 12px; overflow: hidden; }
[data-ui] .c-th, [data-ui] .c-tr { display: grid; grid-template-columns: 1.3fr 1fr 0.9fr; gap: 10px; padding: 10px 14px; align-items: center; }
[data-ui] .c-th { background: #FAF9FF; font-size: 12px; color: var(--muted); font-weight: 600; }
[data-ui] .c-tr + .c-tr { border-top: 1px solid #F1F0F8; }
[data-ui] .st { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; width: max-content; }
[data-ui] .st.ok { background: var(--ok-bg); color: var(--ok); }
[data-ui] .st.wait { background: var(--wait-bg); color: var(--wait); }
[data-ui] .st.done { background: #EEEEF2; color: #55546A; }

/* phone fragment */
.phone { background: #fff; border: 6px solid var(--ink); border-radius: 30px; padding: 12px 16px 16px; font-size: 13px; line-height: 1.35; color: var(--ink); }
[data-ui] .p-bar { display: flex; justify-content: center; font-size: 12px; color: var(--muted); padding: 2px 0 10px; }
[data-ui] .p-title { font-size: 16px; font-weight: 700; line-height: 1.25; margin: 0 0 6px; letter-spacing: 0; }
[data-ui] .p-meta { font-size: 12px; color: var(--muted); margin: 0 0 10px; }
[data-ui] .p-text { padding-left: 16px; margin: 0 0 12px; font-size: 12.5px; }
[data-ui] .p-text li + li { margin-top: 4px; }
[data-ui] .p-sig-l { font-size: 12px; color: var(--muted); }
[data-ui] .p-pad { position: relative; height: 72px; background: var(--field); border-radius: 10px; margin: 6px 0 10px; overflow: hidden; touch-action: none; }
[data-ui] .p-auto { position: absolute; inset: 0; width: 100%; height: 100%; }
[data-ui] .p-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
[data-ui] .p-btn { width: 100%; min-height: 42px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: 14px; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
[data-ui] .p-btn:hover { background: var(--accent-dark); }
[data-ui] .p-btn:active { transform: scale(0.97); }
[data-ui] .p-btn:disabled { background: var(--ok); cursor: default; }
[data-ui] .p-status { font-size: 12px; color: var(--muted); text-align: center; margin: 8px 0 0; }
[data-ui] .p-status.is-done { color: var(--ok); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-ui] .p-auto path { stroke-dasharray: 620; stroke-dashoffset: 620; animation: sign 1.8s var(--ease-out) 1.3s forwards; }
}
@keyframes sign { to { stroke-dashoffset: 0; } }

/* what changes */
.changes h2 { max-width: 22ch; }
.changes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.changes article h3 { margin-bottom: 0.5rem; }
.changes article p { font-size: 1rem; }
.mini { background: #fff; border-radius: 20px; padding: 18px 20px; margin-bottom: 1.5rem; min-height: 210px; font-size: 13px; line-height: 1.4; color: var(--ink); }
[data-ui] .m-h { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
[data-ui] .m-h b { color: var(--ink); }
[data-ui] .m-row { display: grid; grid-template-columns: 26px 1fr auto auto; gap: 8px; align-items: center; padding: 6px 0; }
[data-ui] .m-row em { font-style: normal; font-size: 11px; color: var(--accent-dark); background: var(--field-2); padding: 2px 8px; border-radius: 999px; }
[data-ui] .m-row u { text-decoration: none; color: var(--muted); font-size: 11px; }
[data-ui] .m-row.off { opacity: 0.6; }
[data-ui] .m-row.off em { background: #EEEEF2; color: #55546A; }
[data-ui] .m-av { width: 26px; height: 26px; border-radius: 50%; background: var(--field-2); color: var(--accent-dark); font-size: 10px; font-weight: 700; display: grid; place-items: center; font-style: normal; }
[data-ui] .m-step { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; padding: 7px 0; }
[data-ui] .m-step i, [data-ui] .pm-step i { width: 12px; height: 12px; border-radius: 50%; background: #D9D7E6; }
[data-ui] .m-step.done i, [data-ui] .pm-step.done i { background: var(--ok); }
[data-ui] .m-step.now i, [data-ui] .pm-step.now i { background: var(--accent); animation: pulse 1.4s ease-in-out infinite; }
[data-ui] .m-step u { text-decoration: none; color: var(--muted); font-size: 11px; }
[data-ui] .m-chart { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; align-items: end; height: 100px; margin-bottom: 22px; }
[data-ui] .m-chart div { position: relative; height: var(--v); background: var(--field-2); border-radius: 6px 6px 2px 2px; }
[data-ui] .m-chart .cur { background: var(--accent); }
[data-ui] .m-chart b { position: absolute; top: 100%; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--muted); font-weight: 500; padding-top: 4px; }
[data-ui] .m-dl { display: inline-block; margin-top: 4px; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 600; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.45); } }

/* split rows */
.split-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-copy h2 { margin-bottom: 1rem; }
.panel { background: var(--field); border-radius: var(--radius); padding: clamp(1.25rem, 3.5vw, 2.75rem); }
.panel-ink { background: var(--ink); }
.kiosk { background: #fff; border-radius: 16px; padding: 16px 18px; font-size: 13.5px; line-height: 1.35; color: var(--ink); }
[data-ui] .k-h { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; margin-bottom: 6px; }
[data-ui] .k-h b { color: var(--accent-dark); }
[data-ui] .k-row { display: grid; grid-template-columns: 28px 1fr auto auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid #F1F0F8; }
[data-ui] .k-row em { font-style: normal; font-size: 12px; color: var(--accent-dark); background: var(--field-2); padding: 2px 9px; border-radius: 999px; }
[data-ui] .k-row u { text-decoration: none; color: var(--muted); font-size: 12px; }
[data-ui] .k-row.off { opacity: 0.6; }
[data-ui] .k-row.off em { background: #EEEEF2; color: #55546A; }
.permit { background: #fff; border-radius: 16px; padding: 18px 20px; font-size: 13.5px; line-height: 1.35; color: var(--ink); }
[data-ui] .pm-h { display: grid; gap: 2px; margin-bottom: 10px; }
[data-ui] .pm-h span { font-size: 12px; color: var(--muted); }
[data-ui] .pm-h b { font-size: 16px; }
[data-ui] .pm-sec { font-size: 12px; font-weight: 600; color: var(--muted); margin: 12px 0 2px; }
[data-ui] .pm-step { display: grid; grid-template-columns: 14px 1fr 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid #F1F0F8; }
[data-ui] .pm-step em { font-style: normal; color: var(--muted); }
[data-ui] .pm-step u { text-decoration: none; font-size: 12px; color: var(--muted); }
[data-ui] .pm-step.now u { color: var(--accent-dark); font-weight: 600; }

/* photo band */
.photo-band { position: relative; padding-block: clamp(4rem, 8vw, 7rem); overflow: hidden; }
.photo-band > .shutter { position: absolute; inset: 0; }
.photo-band > .shutter img { width: 100%; height: 100%; object-fit: cover; }
.band-in { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.band-copy { background: #fff; border-radius: var(--radius); padding: clamp(1.5rem, 3.5vw, 2.75rem); }
.band-copy h2 { margin-bottom: 0.75rem; }
.obs { background: #fff; border-radius: 20px; overflow: hidden; max-width: 380px; justify-self: end; font-size: 13.5px; line-height: 1.35; color: var(--ink); }
[data-ui] .o-img { width: 100%; height: 180px; object-fit: cover; }
[data-ui] .o-body { padding: 16px 18px 18px; display: grid; gap: 6px; justify-items: start; }
[data-ui] .o-tag { background: #FDE8E8; color: #A11C1C; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
[data-ui] .o-body b { font-size: 16px; }
[data-ui] .o-loc { color: var(--muted); font-size: 12.5px; }
[data-ui] .o-asg { display: flex; align-items: center; gap: 8px; }
[data-ui] .o-chat { background: var(--field); border-radius: 12px 12px 12px 4px; padding: 8px 12px; font-size: 13px; }

/* modules */
.modules-in { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.modules-pic { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; position: sticky; top: 6rem; }
.modules-pic img { width: 100%; height: 100%; object-fit: cover; }
.modules-list h2 { margin-bottom: 2rem; }
.modules-list dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem; }
.modules-list dt { font-weight: 600; margin-bottom: 0.2rem; }
.modules-list dd { font-size: 1rem; color: var(--text); }

/* who */
.who-in { display: grid; grid-template-columns: 2fr 3fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 3rem; }
.who-grid h3 { margin-bottom: 0.5rem; }

/* how */
.how-in { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.flow { display: grid; grid-template-columns: 1fr 20px 1.2fr 20px 1fr; gap: 10px; align-items: center; margin: 2.25rem 0; }
.f-box { background: rgba(255,255,255,0.09); border-radius: 16px; padding: 16px; font-weight: 600; font-size: 15px; display: grid; gap: 4px; }
.f-box small { font-weight: 400; color: rgba(255,255,255,0.78); font-size: 13px; line-height: 1.35; }
.f-core { background: var(--accent); }
.f-arrow { width: 0; height: 0; border: 8px solid transparent; border-left-color: rgba(255,255,255,0.6); border-right-width: 0; justify-self: center; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; }
.facts dt { font-weight: 600; margin-bottom: 0.2rem; }
.facts dd { color: rgba(255,255,255,0.8); font-size: 1rem; }
.how-pic { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.how-pic img { width: 100%; height: 100%; object-fit: cover; }

/* cta */
.cta-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.cta p { margin-top: 0.75rem; max-width: 46ch; color: rgba(255,255,255,0.9); }
.cta .actions { justify-content: flex-end; }

/* footer */
.foot { padding: 4rem 0 2.5rem; }
.foot-mark { font-size: clamp(4.5rem, 13vw, 11rem); font-weight: 800; letter-spacing: -0.05em; line-height: 0.9; color: var(--field-2); }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 2rem; margin-top: 2.5rem; }
.foot h3 { font-size: 1rem; margin-bottom: 0.6rem; }
.foot a { display: block; text-decoration: none; padding: 0.2rem 0; color: var(--text); font-size: 1rem; }
.foot a:hover { color: var(--accent-dark); }
.foot-cols p { font-size: 1rem; color: var(--text); }
.foot-bottom { margin-top: 3rem; display: grid; gap: 0.5rem; font-size: var(--step-small); color: var(--muted); }
.foot-bottom p { color: var(--muted); max-width: none; font-size: var(--step-small); }
.foot-bottom a { display: inline; padding: 0; color: var(--muted); font-size: inherit; text-decoration: underline; text-decoration-color: #D6D3EA; text-underline-offset: 0.18em; }
.foot-bottom a:hover { color: var(--accent-dark); text-decoration-color: currentColor; }

/* motion (content stays visible without JavaScript) */
.shutter { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: ad-rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .shutter[data-reveal] { opacity: 1; transform: none; }
  .js .shutter[data-reveal] img { transform: scale(1.08); transition: transform 1600ms var(--ease-soft); }
  .js .shutter[data-reveal].is-in img { transform: none; }
}
@keyframes ad-rise { to { opacity: 1; transform: none; } }

/* responsive */
@media (max-width: 1000px) {
  .hero-stage { padding: 2rem; }
  .console { grid-template-columns: 1fr; min-height: 0; border-radius: 16px; }
  [data-ui] .c-side { display: none; }
  .hero .phone { position: static; width: 300px; margin: 2rem auto 0; }
  .changes-grid { gap: 1.5rem; }
  .who-in { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-in { gap: 1rem; }
  .nav .button { margin-left: auto; }
  .changes-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .changes article { max-width: 560px; }
  .split-in, .band-in, .modules-in, .how-in, .cta-in { grid-template-columns: 1fr; }
  .split-rev .split-copy { order: -1; }
  .obs { justify-self: start; }
  .modules-pic { aspect-ratio: 16 / 10; position: static; }
  .how-pic { aspect-ratio: 16 / 10; }
  .cta .actions { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .hero-stage { padding: 1.25rem; background: var(--field); }
  .console { display: none; }
  .hero .phone { position: static; width: 100%; max-width: 340px; margin: 0 auto; }
  .flow { grid-template-columns: 1fr; }
  .f-arrow { transform: rotate(90deg); }
  .facts { grid-template-columns: 1fr; }
  .modules-list dl { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .who-grid { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr; }
  .hero-copy .actions .button { width: 100%; }
}
