/* ═══════════════════════════════════════════════════════════════
   HSPIM Design System — Ipsos-inspired editorial style
   Nielsen-style utility bar · Khanbank-style mega menu
   ═══════════════════════════════════════════════════════════════ */

:root {
  --navy: #0D1240;
  --navy-2: #151B55;
  --brand: #10069F;
  --blue: #2E5BFF;
  --blue-dark: #1E3FB8;
  --sky: #EBF0FF;
  --teal: #00B2A9;
  --gold: #F5A623;
  --ink: #14162E;
  --muted: #5A5F73;
  --line: #E4E6EF;
  --bg: #FFFFFF;
  --bg-soft: #F6F7FB;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(13,18,64,.07);
  --shadow-md: 0 8px 30px rgba(13,18,64,.10);
  --shadow-lg: 0 20px 60px rgba(13,18,64,.16);
  --font-head: 'Manrope', 'Inter', 'Noto Sans', system-ui, sans-serif;
  --font-body: 'Inter', 'Noto Sans', system-ui, sans-serif;
  --topbar-h: 40px;
  --nav-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--blue); color: #fff; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ── Typography ── */
h1,h2,h3,h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.15; color: var(--navy); letter-spacing: -.01em; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.kicker::before { content: ''; width: 28px; height: 3px; background: var(--blue); border-radius: 2px; }
.section-title { font-size: clamp(28px, 4vw, 42px); margin-bottom: 12px; }
.section-sub { color: var(--muted); font-size: 17px; max-width: 640px; }
.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); }

/* ═══════════ INTRO OVERLAY ═══════════ */
#intro {
  position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(120% 120% at 20% 10%, #1A2270 0%, var(--navy) 55%, #070A28 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity .7s ease, visibility .7s;
}
#intro.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-logo { width: 120px; height: 120px; margin-bottom: 28px; }
.intro-pulse { stroke-dasharray: 320; stroke-dashoffset: 320; animation: introDraw 1.6s ease forwards .2s; }
@keyframes introDraw { to { stroke-dashoffset: 0; } }
.intro-name {
  font-family: var(--font-head); font-weight: 800; color: #fff;
  font-size: clamp(20px, 3.4vw, 34px); text-align: center; letter-spacing: .02em;
  opacity: 0; transform: translateY(14px); animation: introUp .8s ease forwards .9s;
  padding: 0 20px;
}
.intro-tag {
  color: #9FB0FF; font-size: 14px; letter-spacing: .22em; text-transform: uppercase;
  margin-top: 12px; opacity: 0; animation: introUp .8s ease forwards 1.3s;
}
@keyframes introUp { to { opacity: 1; transform: translateY(0); } }
.intro-bar { width: 220px; height: 3px; background: rgba(255,255,255,.15); border-radius: 2px; margin-top: 36px; overflow: hidden; }
.intro-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--teal)); animation: introFill 1.9s ease forwards .3s; }
@keyframes introFill { to { width: 100%; } }
.intro-skip {
  position: absolute; bottom: 34px; right: 40px; background: none; border: 1px solid rgba(255,255,255,.3);
  color: #C8D2FF; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 18px; border-radius: 30px; transition: .3s;
}
.intro-skip:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ═══════════ NIELSEN-STYLE TOP UTILITY BAR ═══════════ */
.topbar {
  background: var(--navy); color: #C4CCE8; font-size: 13px;
  height: var(--topbar-h); position: relative; z-index: 1200;
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 22px; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; color: #C4CCE8; transition: color .25s; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 14px; height: 14px; flex: none; }

/* Системүүд dropdown */
.sys-dd { position: relative; }
.sys-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  color: #fff; font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  padding: 5px 14px; border-radius: 30px; transition: .25s;
}
.sys-btn:hover, .sys-dd.open .sys-btn { background: var(--blue); border-color: var(--blue); }
.sys-btn .car { transition: transform .25s; }
.sys-dd.open .car { transform: rotate(180deg); }
.sys-menu {
  position: absolute; top: calc(100% + 10px); right: 0; width: 300px;
  background: #fff; color: var(--ink); border-radius: 14px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .28s;
}
.sys-dd.open .sys-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sys-menu a {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px;
  color: var(--ink); font-size: 14px; font-weight: 600; transition: background .2s;
}
.sys-menu a:hover { background: var(--sky); color: var(--brand); }
.sys-menu .ic {
  width: 36px; height: 36px; border-radius: 9px; background: var(--sky);
  display: flex; align-items: center; justify-content: center; color: var(--brand); flex: none;
}
.sys-menu .ic svg { width: 18px; height: 18px; }
.sys-menu small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }

.user-chip {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18); border-radius: 30px; padding: 4px 6px 4px 12px;
  color: #fff; font-size: 12.5px; font-weight: 600;
}
.uc-dot { width: 7px; height: 7px; border-radius: 50%; background: #00E0D0; box-shadow: 0 0 6px #00E0D0; }
.uc-out {
  background: rgba(255,255,255,.12); border: none; color: #fff; width: 24px; height: 24px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: .2s;
}
.uc-out:hover { background: #D03B3B; }
.uc-login {
  display: inline-flex; align-items: center; gap: 7px; color: #fff !important; font-weight: 600;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: 30px; padding: 5px 14px; font-size: 12.5px; transition: .25s;
}
.uc-login:hover { background: var(--teal); border-color: var(--teal); }

.lang-sw { display: flex; gap: 4px; }
.lang-sw a {
  padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700;
  border: 1px solid transparent; letter-spacing: .06em;
}
.lang-sw a.on { background: #fff; color: var(--navy); }
.lang-sw a:not(.on):hover { border-color: rgba(255,255,255,.35); color: #fff; }

/* ═══════════ MAIN NAV ═══════════ */
.mainnav {
  position: sticky; top: 0; z-index: 1100; background: #fff;
  border-bottom: 1px solid var(--line); height: var(--nav-h);
  transition: box-shadow .3s;
}
.mainnav.scrolled { box-shadow: var(--shadow-md); }
.mainnav-in { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { width: 46px; height: 46px; flex: none; }
.brand-name { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 15px; line-height: 1.25; max-width: 240px; }
.brand-name small { display: block; color: var(--muted); font-weight: 600; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; height: 100%; }
.nav-links > li { height: 100%; display: flex; align-items: center; }
.nav-links > li > a {
  display: flex; align-items: center; gap: 6px; padding: 10px 15px;
  font-size: 14.5px; font-weight: 600; color: var(--ink); border-radius: 8px;
  transition: color .2s, background .2s; position: relative; white-space: nowrap;
}
.nav-links > li > a:hover, .nav-links > li.active > a { color: var(--brand); background: var(--sky); }
.nav-links .car { width: 10px; height: 10px; transition: transform .25s; }
.nav-links li.has-mega:hover .car { transform: rotate(180deg); }

.nav-cta {
  background: var(--brand); color: #fff !important; font-weight: 700;
  padding: 11px 22px !important; border-radius: 30px !important;
  transition: .25s !important;
}
.nav-cta:hover { background: var(--blue) !important; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(46,91,255,.35); }

/* ═══════════ KHANBANK-STYLE MEGA MENU ═══════════ */
.mega {
  position: absolute; left: 0; right: 0; top: var(--nav-h);
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(13,18,64,.14);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .28s ease, transform .28s ease, visibility .28s;
  pointer-events: none;
}
li.has-mega:hover .mega, li.has-mega:focus-within .mega {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
}
.mega-in { display: grid; grid-template-columns: 1fr 1fr 380px; gap: 40px; padding: 40px 24px 44px; max-width: 1240px; margin: 0 auto; }
.mega-col h5 {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.mega-link {
  display: flex; gap: 14px; padding: 12px; border-radius: 12px; transition: background .2s;
  align-items: flex-start;
}
.mega-link:hover { background: var(--bg-soft); }
.mega-link .ic {
  width: 42px; height: 42px; flex: none; border-radius: 10px; background: var(--sky);
  color: var(--brand); display: flex; align-items: center; justify-content: center;
  transition: .25s;
}
.mega-link:hover .ic { background: var(--brand); color: #fff; }
.mega-link .ic svg { width: 20px; height: 20px; }
.mega-link b { display: block; font-size: 14.5px; color: var(--navy); font-weight: 700; }
.mega-link span { font-size: 13px; color: var(--muted); line-height: 1.45; display: block; margin-top: 2px; }
.mega-feat {
  border-radius: 16px; overflow: hidden; position: relative; min-height: 240px;
  display: flex; align-items: flex-end; background: var(--navy);
}
.mega-feat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.mega-feat .ov {
  position: relative; padding: 24px; color: #fff; width: 100%;
  background: linear-gradient(0deg, rgba(13,18,64,.92) 0%, rgba(13,18,64,.25) 70%, transparent 100%);
}
.mega-feat .ov b { font-family: var(--font-head); font-size: 18px; display: block; margin-bottom: 6px; }
.mega-feat .ov span { font-size: 13px; color: #C8D2FF; }
.mega-feat .go {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
  font-size: 13px; font-weight: 700; color: #fff; background: var(--blue);
  padding: 8px 18px; border-radius: 30px; transition: .25s;
}
.mega-feat .go:hover { background: var(--teal); }

/* Burger */
.burger { display: none; background: none; border: none; width: 44px; height: 44px; position: relative; z-index: 1300; }
.burger span { display: block; width: 24px; height: 2.5px; background: var(--navy); margin: 5px auto; border-radius: 2px; transition: .3s; }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ═══════════ HERO (Ipsos style) ═══════════ */
.hero { position: relative; background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); overflow: hidden; }
.hero-in {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center;
  padding: 80px 0 90px;
}
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--brand); position: relative; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 540px; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px;
  padding: 15px 30px; border-radius: 34px; transition: .28s; border: 2px solid transparent;
}
.btn svg { width: 17px; height: 17px; transition: transform .25s; }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--blue); box-shadow: 0 12px 30px rgba(46,91,255,.35); transform: translateY(-2px); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--sky); transform: translateY(-2px); }

.hero-visual { position: relative; }
.hero-visual .main-img {
  border-radius: 20px; box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3;
  object-fit: cover; position: relative; z-index: 2;
}
.hero-visual::before {
  content: ''; position: absolute; right: -40px; top: -40px; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(46,91,255,.18), transparent 65%); border-radius: 50%;
}
.hero-card {
  position: absolute; z-index: 3; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 16px 20px; display: flex; align-items: center; gap: 14px;
  animation: floatY 5s ease-in-out infinite;
}
.hero-card.c1 { bottom: -24px; left: -30px; }
.hero-card.c2 { top: -20px; right: -14px; animation-delay: 2.2s; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-card .num { font-family: var(--font-head); font-weight: 800; font-size: 26px; color: var(--brand); }
.hero-card .lbl { font-size: 12.5px; color: var(--muted); max-width: 130px; line-height: 1.35; }
.hero-card .ic {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--sky); color: var(--brand); flex: none;
}

/* ═══════════ STATS BAND ═══════════ */
.stats-band { background: var(--navy); color: #fff; padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat { text-align: center; padding: 0 10px; }
.stat b { font-family: var(--font-head); font-size: clamp(34px, 4vw, 52px); font-weight: 800; display: block; color: #fff; }
.stat b i { font-style: normal; color: var(--teal); }
.stat span { color: #A9B4E0; font-size: 14.5px; }

/* ═══════════ CARDS ═══════════ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .3s; display: flex; flex-direction: column; height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-img { aspect-ratio: 16/10; overflow: hidden; background: var(--sky); position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 18.5px; margin-bottom: 10px; line-height: 1.35; }
.card h3 a:hover { color: var(--brand); }
.card p { color: var(--muted); font-size: 14.5px; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.chip {
  display: inline-block; background: var(--sky); color: var(--brand); font-size: 11.5px;
  font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 30px;
}
.chip.teal { background: #E0F5F4; color: #00847D; }
.chip.gold { background: #FDF2DC; color: #A96D00; }
.card-link {
  display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 700;
  font-size: 14px; margin-top: 16px; transition: gap .25s;
}
.card-link:hover { gap: 13px; }
.card-link svg { width: 16px; height: 16px; }

/* Focus area tiles */
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.focus {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px 26px;
  transition: .3s; position: relative; overflow: hidden;
}
.focus::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--blue), var(--teal)); opacity: 0; transition: .3s;
}
.focus:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.focus:hover::after { opacity: 1; }
.focus .ic {
  width: 52px; height: 52px; border-radius: 13px; background: var(--sky); color: var(--brand);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px; transition: .3s;
}
.focus:hover .ic { background: var(--brand); color: #fff; }
.focus .ic svg { width: 24px; height: 24px; }
.focus h3 { font-size: 17px; margin-bottom: 8px; }
.focus p { color: var(--muted); font-size: 14px; }

/* ═══════════ DASHBOARD PROMO ═══════════ */
.dash-promo {
  background: linear-gradient(115deg, var(--navy) 30%, #1B2670 75%, var(--brand) 100%);
  color: #fff; border-radius: 24px; padding: 60px; display: grid;
  grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; overflow: hidden; position: relative;
}
.dash-promo::before {
  content: ''; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(0,178,169,.25), transparent 65%); border-radius: 50%;
}
.dash-promo .kicker { color: var(--teal); }
.dash-promo .kicker::before { background: var(--teal); }
.dash-promo h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; }
.dash-promo p { color: #B9C3EA; font-size: 16px; margin-bottom: 30px; max-width: 460px; }
.dash-promo-visual img { border-radius: 14px; box-shadow: var(--shadow-lg); }

/* Partners */
.partners-row { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.partner {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 30px;
  font-weight: 700; color: var(--navy); font-size: 14.5px; transition: .3s;
  display: flex; align-items: center; gap: 10px;
}
.partner:hover { border-color: var(--blue); color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ═══════════ PAGE HERO (inner pages) ═══════════ */
.page-hero {
  background: linear-gradient(115deg, var(--navy) 40%, #1B2670 80%, var(--brand) 110%);
  color: #fff; padding: 72px 0 64px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; right: -100px; bottom: -140px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(46,91,255,.3), transparent 65%); border-radius: 50%;
}
.page-hero .kicker { color: var(--teal); }
.page-hero .kicker::before { background: var(--teal); }
.page-hero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 48px); max-width: 800px; }
.page-hero p { color: #B9C3EA; font-size: 17px; margin-top: 14px; max-width: 640px; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: #8E9AD0; margin-bottom: 22px; position: relative; z-index: 2; }
.crumbs a:hover { color: #fff; }

/* ═══════════ FORMS ═══════════ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 14.5px; color: var(--ink); background: #fff; transition: .25s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(46,91,255,.12);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 13.5px; padding: 12px 16px; border-radius: 10px; margin-top: 14px; display: none; }
.form-note.ok { display: block; background: #E7F6EC; color: #0A6B2D; }
.form-note.err { display: block; background: #FCE9E9; color: #B42323; }

/* ═══════════ ARTICLE ═══════════ */
.article { max-width: 780px; margin: 0 auto; }
.article-hero-img { border-radius: 18px; overflow: hidden; margin: -60px auto 40px; position: relative; z-index: 5; box-shadow: var(--shadow-lg); max-width: 900px; }
.article-hero-img img { width: 100%; max-height: 480px; object-fit: cover; }
.article-body { font-size: 17px; color: #2A2D45; }
.article-body p { margin-bottom: 20px; }

/* ═══════════ FOOTER ═══════════ */
footer { background: var(--navy); color: #A9B4E0; margin-top: 0; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding: 70px 0 50px; }
.footer-main h5 { color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 20px; font-family: var(--font-head); }
.footer-main a { display: block; padding: 6px 0; font-size: 14.5px; transition: color .2s, padding-left .2s; }
.footer-main a:hover { color: #fff; padding-left: 5px; }
.footer-about p { font-size: 14.5px; margin: 18px 0 22px; line-height: 1.7; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; transition: .25s; padding: 0;
}
.socials a:hover { background: var(--blue); color: #fff; transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }
.footer-contact li { display: flex; gap: 12px; padding: 7px 0; font-size: 14.5px; list-style: none; }
.footer-contact svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--teal); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; font-size: 13.5px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ═══════════ БҮТЭН ЗУРАГ (blur-fill contain) ═══════════ */
.img-fit { position: relative; overflow: hidden; }
.img-fit .img-fit-bg {
  position: absolute; inset: -12%; background-size: cover; background-position: center;
  filter: blur(22px) saturate(1.15) brightness(.92); transform: scale(1.1); opacity: .8;
}
.img-fit > img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain !important; }
.card:hover .img-fit > img { transform: scale(1.03); }
.article-hero-img.img-fit img { max-height: 560px; }
.hero-visual .img-fit { border-radius: 20px; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }

/* ═══════════ САНАЛ АСУУЛГА ═══════════ */
.sv-card { position: relative; }
.sv-card .status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.sv-meta { display: flex; gap: 18px; font-size: 13px; color: var(--muted); margin: 10px 0 4px; flex-wrap: wrap; }
.sv-meta b { color: var(--navy); }

.sv-progress-wrap { position: sticky; top: var(--nav-h); z-index: 50; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 0; }
.sv-progress-in { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--muted); }
.sv-progress { flex: 1; height: 8px; background: var(--sky); border-radius: 6px; overflow: hidden; }
.sv-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--teal)); border-radius: 6px; transition: width .4s ease; }

.q-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 32px;
  margin-bottom: 22px; transition: .3s; position: relative;
}
.q-card.answered { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,178,169,.1); }
.q-card .q-num {
  position: absolute; top: -14px; left: 26px; background: var(--brand); color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: 13px;
  width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(16,6,159,.3);
}
.q-card.answered .q-num { background: var(--teal); box-shadow: 0 6px 16px rgba(0,178,169,.3); }
.q-card h3 { font-size: 18px; margin-bottom: 4px; padding-right: 60px; }
.q-card .q-tag { font-size: 12px; color: var(--muted); margin-bottom: 18px; display: block; }

.opt {
  display: flex; align-items: center; gap: 14px; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 14px 18px; margin-bottom: 10px; cursor: pointer; transition: .22s; font-size: 15px;
  background: #fff; user-select: none;
}
.opt:hover { border-color: var(--blue); background: var(--sky); }
.opt.on { border-color: var(--brand); background: var(--sky); font-weight: 600; color: var(--brand); }
.opt .box {
  width: 22px; height: 22px; border: 2px solid #C4C9DC; flex: none; display: flex;
  align-items: center; justify-content: center; transition: .2s; color: #fff; font-size: 13px;
}
.opt .box.radio { border-radius: 50%; }
.opt .box.check { border-radius: 6px; }
.opt.on .box { background: var(--brand); border-color: var(--brand); }
.opt input { display: none; }

.rate-row { display: flex; gap: 10px; flex-wrap: wrap; }
.rate-btn {
  width: 58px; height: 58px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: 19px; color: var(--muted); transition: .22s;
}
.rate-btn:hover { border-color: var(--blue); color: var(--brand); transform: translateY(-3px); }
.rate-btn.on { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(16,6,159,.3); transform: translateY(-3px); }
.rate-lbls { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 8px; max-width: 330px; }

.sv-done {
  text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 60px 40px; box-shadow: var(--shadow-md);
}
.sv-done .big-ic {
  width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), #00E0D0); display: flex; align-items: center; justify-content: center;
  color: #fff; animation: pop .5s cubic-bezier(.2,1.6,.5,1);
}
@keyframes pop { from { transform: scale(.3); opacity: 0; } }

/* Үр дүнгийн bar-ууд */
.res-q { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px 30px; margin-bottom: 20px; }
.res-q h3 { font-size: 17px; margin-bottom: 16px; }
.res-bar { margin-bottom: 12px; }
.res-bar .lbl { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 5px; }
.res-bar .lbl b { color: var(--navy); font-variant-numeric: tabular-nums; }
.res-track { height: 26px; background: var(--bg-soft); border-radius: 7px; overflow: hidden; }
.res-track i {
  display: block; height: 100%; width: 0; border-radius: 7px 4px 4px 7px;
  background: var(--res-color, #2a78d6); transition: width .8s cubic-bezier(.2,.8,.3,1);
  min-width: 2px;
}
.avg-badge {
  display: inline-flex; align-items: baseline; gap: 8px; background: var(--sky); border-radius: 12px;
  padding: 10px 18px; margin-bottom: 16px;
}
.avg-badge b { font-family: var(--font-head); font-size: 30px; color: var(--brand); }
.avg-badge span { font-size: 13px; color: var(--muted); }

/* ═══════════ ДИНАМИК ВИДЖЕТ GRID ═══════════ */
.wgrid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.wgrid .w-quarter { grid-column: span 3; }
.wgrid .w-third { grid-column: span 4; }
.wgrid .w-half { grid-column: span 6; }
.wgrid .w-full { grid-column: span 12; }
@media (max-width: 1000px) {
  .wgrid .w-quarter, .wgrid .w-third { grid-column: span 6; }
  .wgrid .w-half, .wgrid .w-full { grid-column: span 12; }
}
@media (max-width: 560px) { .wgrid .w-quarter, .wgrid .w-third { grid-column: span 12; } }

/* ═══════════ ХАЙЛТ ═══════════ */
.search-btn {
  background: var(--bg-soft); border: 1.5px solid var(--line); width: 42px; height: 42px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--navy); transition: .25s;
}
.search-btn svg { width: 17px; height: 17px; }
.search-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: rotate(90deg); }

.search-overlay {
  position: fixed; inset: 0; z-index: 2000; background: rgba(13,18,64,.66);
  backdrop-filter: blur(8px); display: flex; justify-content: center; align-items: flex-start;
  padding: 10vh 20px 40px; opacity: 0; visibility: hidden; transition: .3s;
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-panel {
  width: 680px; max-width: 100%; background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.4);
  transform: translateY(-24px) scale(.97); transition: transform .35s cubic-bezier(.2,1.2,.4,1);
  display: flex; flex-direction: column; max-height: 74vh;
}
.search-overlay.open .search-panel { transform: translateY(0) scale(1); }
.search-input-row { display: flex; align-items: center; gap: 14px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.search-input-row .s-ic { color: var(--brand); display: flex; }
.search-input-row .s-ic svg { width: 21px; height: 21px; }
.search-input-row input { flex: 1; border: none; outline: none; font-family: inherit; font-size: 18px; color: var(--ink); }
.search-close {
  background: var(--bg-soft); border: none; width: 34px; height: 34px; border-radius: 50%;
  color: var(--muted); font-size: 14px; transition: .2s;
}
.search-close:hover { background: #FCE9E9; color: #B42323; transform: rotate(90deg); }
.search-results { overflow-y: auto; padding: 12px; }
.s-hint { text-align: center; color: var(--muted); font-size: 14px; padding: 26px 0; }
.s-group { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 12px 12px 6px; }
.s-item {
  display: flex; gap: 14px; padding: 11px 12px; border-radius: 12px; transition: background .2s;
  align-items: center; animation: sIn .3s ease both;
}
@keyframes sIn { from { opacity: 0; transform: translateY(8px); } }
.s-item:hover { background: var(--sky); }
.s-item .s-img { width: 60px; height: 44px; border-radius: 9px; overflow: hidden; background: var(--sky); flex: none; position: relative; }
.s-item .s-img img { width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 1; }
.s-item b { display: block; font-size: 14.5px; color: var(--navy); line-height: 1.35; }
.s-item small { color: var(--muted); font-size: 12.5px; display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.s-item .s-meta { margin-left: auto; flex: none; font-size: 11.5px; color: var(--muted); }

/* ═══════════ SCROLL PROGRESS ═══════════ */
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--teal)); border-radius: 2px; transition: width .1s linear; }

/* ═══════════ HERO BLOBS / АНИМЕЙШН ═══════════ */
.hero-blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; animation: blobFloat 14s ease-in-out infinite; }
.blob.b1 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(46,91,255,.35), transparent 70%); top: -120px; right: -80px; }
.blob.b2 { width: 340px; height: 340px; background: radial-gradient(circle, rgba(0,178,169,.28), transparent 70%); bottom: -100px; left: -60px; animation-delay: 5s; }
.blob.b3 { width: 240px; height: 240px; background: radial-gradient(circle, rgba(16,6,159,.22), transparent 70%); top: 40%; left: 42%; animation-delay: 9s; }
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(36px, -30px) scale(1.08); }
  66% { transform: translate(-24px, 24px) scale(.94); }
}

/* Гарчгийн gradient гялбаа */
.hero h1 em {
  background: linear-gradient(100deg, var(--brand) 20%, var(--blue) 45%, var(--teal) 60%, var(--brand) 80%);
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: textShine 5.5s linear infinite;
}
@keyframes textShine { to { background-position: 220% center; } }

/* Товчны гялбаа sweep */
.btn-primary, .nav-cta, .btn-white { position: relative; overflow: hidden; }
.btn-primary::before, .nav-cta::before, .btn-white::before {
  content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn-white::before { background: linear-gradient(100deg, transparent, rgba(16,6,159,.12), transparent); }
.btn-primary:hover::before, .nav-cta:hover::before, .btn-white:hover::before { left: 130%; }

/* Мега цэсийн items stagger */
li.has-mega .mega-link, li.has-mega .mega-feat {
  opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .35s ease, background .2s;
}
li.has-mega:hover .mega-link, li.has-mega:focus-within .mega-link,
li.has-mega:hover .mega-feat, li.has-mega:focus-within .mega-feat { opacity: 1; transform: translateY(0); }
li.has-mega:hover .mega-col:nth-child(1) .mega-link:nth-child(2) { transition-delay: .05s; }
li.has-mega:hover .mega-col:nth-child(1) .mega-link:nth-child(3) { transition-delay: .1s; }
li.has-mega:hover .mega-col:nth-child(1) .mega-link:nth-child(4) { transition-delay: .15s; }
li.has-mega:hover .mega-col:nth-child(2) .mega-link:nth-child(2) { transition-delay: .12s; }
li.has-mega:hover .mega-col:nth-child(2) .mega-link:nth-child(3) { transition-delay: .17s; }
li.has-mega:hover .mega-col:nth-child(2) .mega-link:nth-child(4) { transition-delay: .22s; }
li.has-mega:hover .mega-feat { transition-delay: .18s; }

/* Хамтрагчдын marquee */
.partners-marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.partners-track { display: flex; gap: 18px; width: max-content; animation: marquee 26s linear infinite; padding: 4px 0; }
.partners-marquee:hover .partners-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Page hero-гийн амьсгалах цэг */
.page-hero::after { animation: blobFloat 16s ease-in-out infinite; }

/* ═══════════ REVEAL ANIMATION ═══════════ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Хөдөлгөөн багасгах тохиргоог хүндэтгэх */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1080px) {
  .mega-in { grid-template-columns: 1fr 1fr; }
  .mega-feat { display: none; }
  .hero-in { grid-template-columns: 1fr; gap: 46px; }
  .grid-3, .focus-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .dash-promo { grid-template-columns: 1fr; padding: 44px 32px; }
}
@media (max-width: 820px) {
  .burger { display: block; }
  .nav-links {
    position: fixed; inset: 0; top: 0; background: #fff; flex-direction: column;
    justify-content: flex-start; padding: 110px 28px 40px; gap: 4px; height: 100vh;
    transform: translateX(100%); transition: transform .35s ease; overflow-y: auto; z-index: 1250;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links > li { width: 100%; height: auto; }
  .nav-links > li > a { width: 100%; padding: 15px 14px; font-size: 16px; justify-content: space-between; }
  .mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; display: none; pointer-events: auto; }
  li.has-mega.open .mega { display: block; }
  li.has-mega .mega-link, li.has-mega .mega-feat { opacity: 1; transform: none; }
  .search-btn { width: 100%; border-radius: 12px; height: 48px; }
  .mega-in { grid-template-columns: 1fr; padding: 6px 10px 14px; gap: 16px; }
  .topbar-left span.hide-m { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .form-grid { grid-template-columns: 1fr; }
  .hero-card.c1 { left: 4px; } .hero-card.c2 { right: 4px; }
  .section { padding: 60px 0; }
}
@media (max-width: 560px) {
  .grid-3, .focus-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; }
  .brand-name { font-size: 12.5px; max-width: 180px; }
  .stats-grid { gap: 20px; }
}
