@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=PT+Serif:wght@400;700&display=swap");
:root {
  --navy: #252e61;
  --navy-dark: #161c45;
  --accent: #00a3e0;
  --gold: #d1ab67;
  --ink: #1d2340;
  --muted: #5d6585;
  --line: #e3e6ef;
  --soft: #f4f6fb;
  --white: #ffffff;
  --radius: 6px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Толгой ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { height: 40px; width: auto; }
.brand-text { line-height: 1.15; white-space: nowrap; }
.brand img { flex: none; }
.brand-text strong { display: block; font-size: 15px; letter-spacing: .03em; }
.brand-text span { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.nav { margin-left: auto; padding-left: 20px; display: flex; gap: 20px; align-items: center; }
.nav a { white-space: nowrap; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.nav a:hover { color: var(--accent); }
.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--navy); color: var(--white) !important;
  padding: 11px 22px; border-radius: var(--radius);
  font: 600 14px/1.2 inherit; font-family: inherit; text-decoration: none; letter-spacing: .03em;
  transition: background .15s;
}
.btn:hover { background: var(--accent); }
.btn-outline { background: transparent; color: var(--white) !important; border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy) !important; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; font-size: 26px; color: var(--navy); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white);
  background: #02040f url(../img/hero.jpg) center bottom / cover no-repeat;
  min-height: 560px; display: flex; align-items: center;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,14,40,.85) 0%, rgba(10,14,40,.45) 60%, rgba(10,14,40,.2) 100%); }
.hero .wrap { position: relative; width: 100%; }
.hero .eyebrow { font-size: 13px; letter-spacing: .25em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.1; margin: 14px 0 18px; font-weight: 300; max-width: 860px; }
.hero h1 strong { font-weight: 700; }
.hero p { max-width: 560px; font-size: 18px; color: #dfe4f5; margin: 0 0 30px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .tagline { font-style: italic; color: var(--gold); margin-top: 34px; font-size: 15px; }

/* ---------- Тоон үзүүлэлт ---------- */
.stats { background: var(--navy); color: var(--white); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding-top: 34px; padding-bottom: 34px; }
.stats .num { font-size: 40px; font-weight: 300; line-height: 1; }
.stats .lbl { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #b7bfe0; margin-top: 8px; }

/* ---------- Хэсгүүд ---------- */
section { padding: 84px 0; }
section.alt { background: var(--soft); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head .eyebrow { color: var(--accent); font-size: 12px; letter-spacing: .25em; text-transform: uppercase; font-weight: 700; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 300; color: var(--navy); margin: 8px 0 14px; line-height: 1.2; }
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }

.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.facts { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts li span:first-child { color: var(--muted); }
.facts li span:last-child { font-weight: 600; text-align: right; }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 28px; }
.value { border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; }
.value strong { display: block; color: var(--navy); }
.value span { font-size: 14px; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 14px 34px rgba(37,46,97,.12); transform: translateY(-3px); }
.card .icon { width: 46px; height: 46px; border-radius: 50%; background: var(--soft); color: var(--navy); display: grid; place-items: center; font-size: 22px; margin-bottom: 18px; }
.card h3 { margin: 0 0 10px; color: var(--navy); font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Тусгай зөвшөөрөл ---------- */
.licenses { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.license { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.license .thumb { height: 220px; overflow: hidden; background: #eef0f6; border-bottom: 1px solid var(--line); cursor: zoom-in; }
.license .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .3s; }
.license:hover .thumb img { transform: scale(1.04); }
.license .body { padding: 22px 22px 26px; flex: 1; }
.license .tag { display: inline-block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--white); background: var(--navy); padding: 3px 9px; border-radius: 3px; }
.license .tag.frc { background: var(--accent); }
.license h3 { margin: 12px 0 8px; font-size: 17px; color: var(--navy); line-height: 1.35; }
.license p { margin: 0; color: var(--muted); font-size: 14px; }
.license .year { font-size: 34px; font-weight: 300; color: var(--navy); line-height: 1; margin-top: 14px; }

/* ---------- Туршлага ---------- */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 86px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 70px 1fr; gap: 40px; padding: 0 0 30px; position: relative; }
.timeline .yr { font-size: 22px; font-weight: 700; color: var(--navy); text-align: right; }
.timeline li::after { content: ""; position: absolute; left: 80px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 3px solid var(--accent); }
.deal { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.deal h4 { margin: 0 0 4px; color: var(--navy); font-size: 17px; }
.deal .terms { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.deal .terms span { font-size: 12px; background: var(--soft); color: var(--navy); padding: 3px 10px; border-radius: 20px; font-weight: 600; }
.deal p { margin: 0; color: var(--muted); font-size: 14px; }
.deal .src { font-size: 12px; margin-top: 6px; }
.deal .src a { color: var(--accent); }
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; }
.mini-list { list-style: none; padding: 0; margin: 0; }
.mini-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.mini-list li strong { color: var(--navy); display: block; }
.mini-list li span { color: var(--muted); font-size: 14px; }
.mini-list .yr { color: var(--accent); font-weight: 700; font-size: 13px; }
h3.col-title { color: var(--navy); font-weight: 600; margin: 0 0 18px; font-size: 20px; }

/* ---------- Харилцагчид ---------- */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.logos div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); height: 86px; display: grid; place-items: center; padding: 10px; }
.logos img { max-height: 62px; width: auto; filter: grayscale(100%); opacity: .75; transition: filter .2s, opacity .2s; }
.logos div:hover img { filter: none; opacity: 1; }

/* ---------- Портал CTA ---------- */
.cta { background: linear-gradient(120deg, var(--navy) 0%, #1a5f8f 100%); color: var(--white); padding: 70px 0; }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta h2 { margin: 0 0 8px; font-weight: 300; font-size: 32px; }
.cta p { margin: 0; color: #d5dcf2; max-width: 620px; }
.steps { display: flex; gap: 22px; margin-top: 22px; flex-wrap: wrap; }
.steps span { font-size: 14px; color: #e8ecfa; }
.steps b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); margin-right: 8px; font-size: 13px; }

/* ---------- Холбоо барих ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.contact-item h4 { margin: 0 0 6px; color: var(--navy); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.contact-item p { margin: 0; color: var(--ink); }

/* ---------- Хөл ---------- */
.site-footer { background: var(--navy-dark); color: #aeb5d4; padding: 46px 0 30px; font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.site-footer img { height: 44px; width: auto; background: #fff; padding: 6px 12px; border-radius: 4px; margin-bottom: 14px; }
.site-footer a { color: #d9def2; text-decoration: none; }
.site-footer .legal { width: 100%; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; margin-top: 18px; font-size: 12px; }

/* ---------- Зураг томруулах ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(8,10,30,.88); display: none; place-items: center; z-index: 100; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 92vh; width: auto; box-shadow: 0 10px 50px rgba(0,0,0,.5); background: #fff; }

/* ---------- Портал ---------- */
.portal-body { background: var(--soft); min-height: 100vh; }
.auth-box { max-width: 420px; margin: 70px auto; background: var(--white); border-radius: 10px; box-shadow: 0 18px 50px rgba(37,46,97,.12); padding: 40px 36px; }
.auth-box h1 { font-weight: 300; color: var(--navy); margin: 0 0 6px; font-size: 28px; }
.auth-box p.sub { color: var(--muted); margin: 0 0 26px; font-size: 14px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.field label .req { color: #d0342c; margin-left: 2px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.field input[type=text], .field input[type=password], .field input[type=email], .field input[type=tel], .field input[type=number], .field input[type=date], .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #cfd4e3; border-radius: var(--radius);
  font: inherit; font-size: 15px; background: var(--white); color: var(--ink);
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid rgba(0,163,224,.35); border-color: var(--accent); }
.choice { display: flex; gap: 20px; flex-wrap: wrap; }
.choice label { font-weight: 400; display: flex; align-items: center; gap: 6px; margin: 0; }
.alert { padding: 12px 14px; border-radius: var(--radius); font-size: 14px; margin-bottom: 18px; display: none; }
.alert.show { display: block; }
.alert.err { background: #fdecea; color: #8f1d15; border: 1px solid #f5c2bd; }
.alert.ok { background: #e7f6ee; color: #145c34; border: 1px solid #b9e3c9; }
.btn-block { width: 100%; padding: 14px; font-size: 15px; }

.portal-top { background: var(--white); border-bottom: 1px solid var(--line); }
.portal-top .wrap { display: flex; align-items: center; height: 70px; gap: 16px; }
.portal-top .who { margin-left: auto; font-size: 14px; color: var(--muted); }
.portal-top .who strong { color: var(--navy); }
.portal-top button { background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 7px 14px; cursor: pointer; font: inherit; font-size: 13px; color: var(--ink); }
.portal-main { max-width: 900px; margin: 0 auto; padding: 40px 24px 80px; }
.portal-main h1 { font-weight: 300; color: var(--navy); font-size: 32px; margin: 0 0 8px; }
.portal-main .intro { color: var(--muted); margin: 0 0 30px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 28px 30px 12px; margin-bottom: 22px; }
.panel h2 { font-size: 18px; color: var(--navy); margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.drop { border: 2px dashed #cfd4e3; border-radius: var(--radius); padding: 16px; background: var(--soft); }
.drop input { font-size: 14px; }
.submit-bar { position: sticky; bottom: 0; background: rgba(244,246,251,.96); padding: 16px 0; display: flex; gap: 16px; align-items: center; border-top: 1px solid var(--line); }
.submit-bar .btn { padding: 14px 34px; font-size: 15px; }
.progress { font-size: 13px; color: var(--muted); }
.done-box { text-align: center; padding: 60px 30px; }
.done-box .check { width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 50%; background: #e7f6ee; color: #1b7a45; display: grid; place-items: center; font-size: 38px; }

/* ---------- Дэлгэцийн хэмжээ ---------- */
@media (max-width: 1599px) {
  .site-header .brand-text span { display: none; }
}
@media (max-width: 960px) {
  .about-grid, .split { grid-template-columns: 1fr; gap: 36px; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); gap: 26px; }
}
@media (max-width: 1180px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); padding: 8px 24px 18px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; text-align: center; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  section { padding: 60px 0; }
  .hero { min-height: 480px; }
  .brand-text span { display: none; }
  .timeline::before { left: 8px; }
  .timeline li { grid-template-columns: 1fr; gap: 8px; padding-left: 32px; }
  .timeline li::after { left: 2px; }
  .timeline .yr { text-align: left; }
  .values { grid-template-columns: 1fr; }
  .auth-box { margin: 30px 16px; padding: 30px 22px; }
  .panel { padding: 22px 18px 8px; }
  .portal-main { padding: 28px 16px 80px; }
  .portal-top .who span { display: none; }
}

/* Дэд хуудасны толгой, идэвхтэй цэс, нүүрийн холбоос картууд */
.page-hero { position: relative; color: var(--white); background: #02040f url(../img/hero.jpg) center 70% / cover no-repeat; padding: 70px 0 56px; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,14,40,.9) 0%, rgba(10,14,40,.55) 100%); }
.page-hero .wrap { position: relative; }
.page-hero h1 { margin: 8px 0 0; font-weight: 300; font-size: clamp(30px, 4vw, 44px); }
.page-hero .crumbs { font-size: 13px; color: #c9d0ea; letter-spacing: .04em; }
.page-hero .crumbs a { color: var(--accent); text-decoration: none; }
.nav a.active { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 4px; }
a.card-link { display: block; text-decoration: none; color: inherit; }
a.card-link:hover { box-shadow: 0 14px 34px rgba(37,46,97,.12); transform: translateY(-3px); }
a.card-link .more { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 600; font-size: 14px; }
.chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-grid span { background: var(--soft); color: var(--navy); padding: 8px 16px; border-radius: 24px; font-weight: 600; font-size: 14px; }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.job-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; max-width: 900px; }
.job-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.job-form .hp { position: absolute; left: -9999px; }
@media (max-width: 700px) { .job-grid { grid-template-columns: 1fr; } .job-form { padding: 20px; } }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px !important; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 6px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.pw-toggle:hover { color: var(--navy); }
.file-list { list-style: none; padding: 0; margin: 8px 0 0; }
.file-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 12px; background: #eef7ee; border: 1px solid #cfe8d2; border-radius: var(--radius); margin-bottom: 6px; font-size: 14px; }
.file-list small { color: var(--muted); }
.file-list .link-btn { background: none; border: 0; color: #b3261e; font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; padding: 0; }
.draft-note { font-size: 14px; color: #145c34; background: #e7f6ee; border: 1px solid #b9e3c9; border-radius: var(--radius); padding: 10px 14px; }
.draft-status { font-size: 13px; color: var(--muted); }

/* Албан хэв маягийн гарчиг: PT Serif (монгол кирилл Ө, Ү үсгийг бүрэн дэмждэг) */
h1, h2, .hero h1, .section-head h2, .page-hero h1, .cta h2, .auth-box h1, .portal-main h1, .stats .num, .license .year {
  font-family: "PT Serif", Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.005em;
}
h3, h4, .card h3, h3.col-title { font-family: "Inter", "Segoe UI", Arial, sans-serif; font-weight: 600; }
body { font-feature-settings: "cv11", "ss01"; }

/* ---------- Нүүрний бөмбөрцөг ---------- */
.hero { overflow: hidden; }
.hero-globe { position: absolute; right: max(2vw, calc((100vw - var(--wrap)) / 2 - 40px)); top: 50%; transform: translateY(-50%); width: min(470px, 40vw); margin: 0; opacity: 0; transition: opacity 1.2s ease; z-index: 1; }
.hero-globe.ready { opacity: 1; }
.hero-globe canvas { display: block; cursor: grab; touch-action: pan-y; }
.hero-globe canvas:active { cursor: grabbing; }
.hero-globe figcaption { text-align: center; font-size: 13px; color: #cfd6ef; margin-top: 6px; line-height: 1.6; }
.hero-globe figcaption b { color: var(--gold); font-weight: 600; }
.mn-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); vertical-align: middle; }
.hero .wrap { z-index: 2; }
.hero .wrap > * { max-width: 560px; }
@media (max-width: 960px) {
  .hero { flex-direction: column; align-items: stretch; padding-bottom: 30px; }
  .hero .wrap { padding-top: 60px; }
  .hero-globe { position: relative; right: auto; top: auto; transform: none; width: min(420px, 88vw); margin: 10px auto 0; }
}

/* ---------- Мэдээ, мэдээлэл ---------- */
@media (min-width: 1181px) { .nav { gap: 16px; padding-left: 14px; } }
@media (min-width: 1181px) and (max-width: 1440px) { .nav { gap: 12px; } .nav a { font-size: 13px; letter-spacing: 0; } .nav a.btn { padding-left: 16px; padding-right: 16px; } }
.news-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.news-tabs a { padding: 8px 18px; border: 1px solid var(--line); border-radius: 24px; text-decoration: none; color: var(--navy); font-weight: 600; font-size: 14px; background: var(--white); }
.news-tabs a.on, .news-tabs a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.news-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.news-card { display: flex; flex-direction: column; }
.news-card h3 { font-size: 18px; line-height: 1.35; margin: 10px 0 8px; }
.news-card p { flex: 1; }
.news-thumb { margin: -30px -30px 16px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--soft); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-decoration: none; background: #e6f6fc; color: #00739f; }
.tag-news { background: #f7efdf; color: #8a6420; }
.pager { display: flex; gap: 6px; margin-top: 30px; }
.pager a { min-width: 38px; text-align: center; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--navy); font-weight: 600; }
.pager a.on { background: var(--navy); color: var(--white); }
.article { max-width: 780px; }
.article .lead { font-size: 19px; line-height: 1.6; color: var(--ink); margin: 18px 0 24px; }
.article-img { width: 100%; border-radius: var(--radius); margin-bottom: 24px; }
.article-body { font-size: 16.5px; line-height: 1.75; color: #2b3150; }
.article-body h2 { font-size: 26px; margin: 36px 0 12px; color: var(--navy); }
.article-body h3 { font-size: 18px; margin: 28px 0 10px; color: var(--navy); }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: #0079a8; }
.article-body blockquote { margin: 26px 0; padding: 16px 20px; border-left: 4px solid var(--gold); background: var(--soft); border-radius: 0 var(--radius) var(--radius) 0; }
.article-share { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.article-share a { color: var(--navy); font-weight: 600; }
.related-title { margin-top: 56px; }

/* Толгойн хэсэг: 8 цэс багтаахын тулд өргөн, дэд гарчиг 2 мөр */
.site-header .wrap { max-width: 1440px; }
.site-header .brand-text span { display: block; white-space: normal; max-width: 300px; margin-top: 3px; line-height: 1.3; }
@media (max-width: 1599px) { .site-header .brand-text span { display: none; } }

/* ---------- Гэрээт ажлын захидал (портал) ---------- */
.eng-letter { max-height: 60vh; overflow-y: auto; line-height: 1.7; font-size: 15px; }
.eng-letter h2 { font-size: 20px; } .eng-letter h3 { font-size: 16px; }
.eng-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 700px) { .eng-grid { grid-template-columns: 1fr; } }
.eng-agree { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 18px; font-weight: 600; line-height: 1.5; }
.eng-agree input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.eng-ok { font-size: 14px; color: #145c34; }

/* Албан хэрэг хөтлөлтийн журмын дагуу урт бичвэрийг хоёр талд тэгшилнэ */
main p, main li, .eng-letter p, .eng-letter li, .article-body p, .article-body li {
  text-align: justify; text-justify: inter-word;
}
.done-box p, .stats p, .news-meta, .submit-bar p { text-align: center; }
/* Нарийн картад тэгшлэхэд үгийн хооронд том зай гардаг тул зүүн талд нь үлдээнэ */
.card p, .card li, .news-card p, .chip-grid span, .value span { text-align: left; }

/* ---------- Баримт бүрдүүлэлт (портал) ---------- */
.portal-wide { max-width: 1040px; }
.portal-tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin-bottom: 22px; flex-wrap: wrap; }
.portal-tabs a { padding: 10px 16px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.portal-tabs a.on { color: var(--navy); border-bottom-color: var(--accent); }
.cl-summary { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 16px; position: sticky; top: 0; z-index: 5; }
.cl-bar { height: 10px; background: var(--soft); border-radius: 6px; overflow: hidden; }
.cl-bar span { display: block; height: 100%; background: linear-gradient(90deg, #1b9e5a, #2ecc71); transition: width .4s; }
.cl-pct { margin: 8px 0 6px; font-size: 15px; } .cl-pct small { color: var(--muted); }
.cl-counts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.cl-counts span::before { content: "●"; margin-right: 4px; color: #c9cfdf; }
.cl-counts .st-done::before { color: #1b9e5a; } .cl-counts .st-part::before { color: #e0a800; } .cl-counts .st-miss::before { color: #c0392b; } .cl-counts .st-na::before { color: #8a90a8; }
.cl-notes summary, .cl-group summary { cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.cl-notes summary::before, .cl-group summary::before { content: "▸"; margin-right: 8px; transition: transform .2s; }
.cl-notes[open] summary::before, .cl-group[open] summary::before { transform: rotate(90deg); }
.cl-group summary > span:first-child { flex: 1; }
.cl-notes ol { margin: 12px 0 0; padding-left: 20px; font-size: 14px; }
.cl-gcount { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.cl-filter { display: flex; gap: 6px; margin: 4px 0 14px; flex-wrap: wrap; }
.cl-filter button { border: 1px solid var(--line); background: var(--white); border-radius: 20px; padding: 6px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--navy); }
.cl-filter button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.cl-sub { font-size: 14px; color: var(--accent); margin: 18px 0 6px; text-transform: none; }
.cl-item { border-top: 1px solid var(--line); padding: 14px 0 12px 12px; border-left: 4px solid transparent; margin-left: -12px; }
.cl-item.st-done { border-left-color: #1b9e5a; } .cl-item.st-part { border-left-color: #e0a800; } .cl-item.st-miss { border-left-color: #c0392b; } .cl-item.st-na { border-left-color: #b9bfd3; }
.cl-head { display: grid; grid-template-columns: 56px 1fr 210px; gap: 10px; align-items: start; }
.cl-no { font-weight: 700; color: var(--navy); font-size: 14px; padding-top: 2px; }
.cl-name { font-size: 14.5px; line-height: 1.5; text-align: left; }
.cl-ft { display: inline-block; font-size: 11px; background: var(--soft); color: var(--muted); padding: 1px 7px; border-radius: 8px; white-space: nowrap; }
.cl-tpl { font-size: 13px; font-weight: 600; color: #0079a8; }
.cl-status { width: 100%; padding: 7px 8px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; font-size: 13.5px; background: #fff; }
.cl-body { margin-left: 66px; }
.cl-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 6px 0; font-size: 13px; color: var(--muted); }
.cl-upload { cursor: pointer; color: var(--navy); font-weight: 600; font-size: 13.5px; border: 1px dashed #b9c1dc; padding: 5px 12px; border-radius: var(--radius); }
.cl-upload:hover { border-color: var(--accent); color: var(--accent); }
.cl-msg { color: #1b7a45; font-weight: 600; }
.cl-comment { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: 7px 10px; font: inherit; font-size: 13.5px; resize: vertical; min-height: 36px; }
.cl-note { margin-top: 8px; background: #fff8e6; border: 1px solid #f1dfae; border-radius: var(--radius); padding: 8px 12px; font-size: 13.5px; text-align: left; }
.cl-types { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cl-type { text-align: left; font: inherit; cursor: pointer; border: 1px solid var(--line); }
.cl-type:hover { border-color: var(--accent); }
@media (max-width: 700px) {
  .cl-head { grid-template-columns: 44px 1fr; } .cl-status { grid-column: 1 / -1; } .cl-body { margin-left: 0; }
}
.cl-notes summary { justify-content: flex-start; }
@media (max-width: 560px) {
  .portal-top .wrap { gap: 10px; }
  .portal-top .brand-text strong { font-size: 12.5px; }
  .portal-top .who { font-size: 12px; min-width: 0; overflow-wrap: anywhere; }
  .portal-top .who span { display: none; }
  .portal-top #logout { padding: 6px 10px; }
  .portal-main h1 { font-size: 26px; }
}

/* ---------- Аудитын гэрээ ---------- */
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
@media (max-width: 700px) { .grid2 { grid-template-columns: 1fr; } }
.ct-steps { display: flex; list-style: none; padding: 0; margin: 0 0 14px; gap: 6px; counter-reset: s; flex-wrap: wrap; }
.ct-steps li { flex: 1; min-width: 140px; padding: 10px 12px; border-radius: var(--radius); background: var(--soft); color: var(--muted); font-weight: 600; font-size: 14px; counter-increment: s; }
.ct-steps li::before { content: counter(s) ". "; }
.ct-steps li.on { background: var(--navy); color: #fff; }
.ct-steps li.done { background: #e7f6ee; color: #145c34; }
.ct-steps li.done::before { content: "✓ "; }
.ct-status { font-size: 14px; color: var(--muted); }
.ct-options { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 800px) { .ct-options { grid-template-columns: 1fr; } }
.ct-opt { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-align: left; }
.ct-opt h3 { margin-top: 0; font-size: 17px; color: var(--navy); }
.ct-opt li, .ct-opt p { text-align: left; }
.ct-up { cursor: pointer; }
.ct-msg { margin-left: 10px; font-size: 13px; color: var(--muted); }
.ct-note { background: #fff4d6; color: #7a5a00; padding: 10px 12px; border-radius: var(--radius); font-size: 14px; }
.ct-wait { border-left: 4px solid #e0a800; }
.ct-done { border-left: 4px solid #1b9e5a; }
.ct-preview summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.ct-paper { font-family: "Times New Roman", serif; font-size: 16px; line-height: 1.5; max-height: 70vh; overflow: auto; padding: 18px 22px; background: #fff; border: 1px solid var(--line); margin-top: 12px; }
.ct-paper h2, .ct-paper h3 { text-align: center; font-size: 17px; }
.ct-paper td p { text-align: left; }
.ct-opt .btn-outline { color: var(--navy) !important; border-color: var(--navy); }
.ct-opt .btn { font-size: 14px; }
.ct-paper h3 { font-family: "Times New Roman", serif; }

/* ---------- Туршлага: салбараар ---------- */
.exp-tabs { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 22px; align-items: start; }
.exp-cats { display: flex; flex-direction: column; gap: 8px; }
.exp-cat { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.exp-cat:hover { border-color: var(--navy); }
.exp-cat .n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--soft); color: var(--navy); display: grid; place-items: center; font-size: 13px; }
.exp-cat .t { flex: 1; }
.exp-cat .c { flex: none; font-size: 12px; color: var(--muted); background: var(--soft); border-radius: 10px; padding: 2px 8px; }
.exp-cat.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.exp-cat.on .n { background: var(--accent); color: #fff; }
.exp-cat.on .c { background: rgba(255,255,255,.18); color: #fff; }
.exp-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 14px; }
.exp-tabs.js .exp-panel { margin-bottom: 0; }
.exp-panel h3 { margin: 0 0 4px; color: var(--navy); }
.exp-panel > p { color: var(--muted); margin: 0 0 14px; text-align: left; }
.exp-panel ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; }
.exp-panel ul li { text-align: left; padding: 9px 12px 9px 30px; position: relative; background: var(--soft); border-radius: var(--radius); font-size: 15px; }
.exp-panel ul li::before { content: ""; position: absolute; left: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--accent); }
@media (max-width: 800px) {
  .exp-tabs { grid-template-columns: 1fr; }
  .exp-tabs.js .exp-panel { position: static; scroll-margin-top: 80px; }
  .exp-panel { padding: 18px; }
  .exp-panel ul { grid-template-columns: 1fr; }
}
@media (max-width: 800px) { .exp-cat { scroll-margin-top: 80px; } .exp-cats .exp-panel { margin: 0 0 6px; } }
.exp-panel .deal h4, .exp-panel .deal p { text-align: left; }
@media (max-width: 800px) { .exp-panel .timeline .deal { padding: 14px; } }
.eng-step { font-size: 20px; margin: 26px 0 12px; }

/* Үйлчилгээний зорилго */
fieldset.svc { border: 1px solid #dfe3ee; border-radius: 6px; padding: 14px 16px 4px; margin: 0 0 18px; background: #f8f9fc; min-width: 0; }
fieldset.svc legend { font-weight: 600; padding: 0 6px; }
.svc-list { display: grid; gap: 6px; margin-bottom: 14px; }
.svc-list label { font-weight: 400; display: flex; align-items: flex-start; gap: 8px; margin: 0; }
.svc-list input { margin-top: 4px; }
.svc-line { font-size: 14px; color: #3a4166; background: #f1f4fb; border-left: 4px solid #00a3e0; padding: 8px 12px; margin: 0 0 14px; }
.svc-line .link-btn, .svc-line button { background: none; border: 0; color: #0072bc; cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }
.svc-tag { color: #0b5a8a; }

.fb-link { display: inline-flex; align-items: center; gap: 5px; }
.fb-link .fb-ico { vertical-align: -3px; }

/* ---------- Сайтын чат ---------- */
.shc { position: fixed; right: 18px; bottom: 18px; z-index: 900; font-size: 14px; }
.shc-fab { display: inline-flex; align-items: center; gap: 8px; background: var(--navy); color: var(--white); border: 0; border-radius: 26px; padding: 12px 18px; font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 6px 20px rgba(22,28,69,.28); position: relative; }
.shc-fab:hover { background: var(--navy-dark); }
.shc.open .shc-fab span { display: none; }
.shc-dot { position: absolute; top: 4px; right: 6px; width: 11px; height: 11px; border-radius: 50%; background: #e5484d; border: 2px solid var(--white); }
.shc-panel { position: absolute; right: 0; bottom: 60px; width: 360px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 100px); background: var(--white); border-radius: 12px; box-shadow: 0 14px 44px rgba(22,28,69,.3); display: flex; flex-direction: column; overflow: hidden; }
.shc-panel[hidden] { display: none; }
.shc-head { background: var(--navy); color: var(--white); padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.shc-head small { display: block; opacity: .8; font-size: 12px; margin-top: 2px; }
.shc-x { background: none; border: 0; color: var(--white); font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.shc-body { flex: 1; overflow-y: auto; padding: 14px; background: var(--soft); display: flex; flex-direction: column; gap: 8px; }
.shc-m { max-width: 82%; padding: 8px 11px; border-radius: 12px; white-space: pre-wrap; word-wrap: break-word; line-height: 1.45; }
.shc-m small { display: block; font-size: 11px; opacity: .7; margin-top: 3px; }
.shc-m.me { align-self: flex-end; background: var(--navy); color: var(--white); border-bottom-right-radius: 3px; }
.shc-m.staff { align-self: flex-start; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 3px; }
.shc-wait { font-size: 12px; color: var(--muted); text-align: center; margin: 6px 0 0; }
.shc-start { padding: 14px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; flex: 1; }
.shc-intro { margin: 0 0 4px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.shc-start input, .shc-start textarea, .shc-send textarea { font: inherit; font-size: 14px; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--radius); width: 100%; resize: vertical; }
.shc-start button { background: var(--navy); color: var(--white); border: 0; border-radius: var(--radius); padding: 10px; font: inherit; font-weight: 600; cursor: pointer; }
.shc-start button:disabled, .shc-send button:disabled { opacity: .6; }
.shc-note { color: var(--muted); font-size: 11px; }
.shc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.shc-send { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.shc-send[hidden], .shc-start[hidden], .shc-body[hidden] { display: none; }
.shc-send textarea { resize: none; }
.shc-send button { background: var(--navy); color: var(--white); border: 0; border-radius: var(--radius); width: 44px; font-size: 18px; cursor: pointer; }
.shc-err { color: #b3261e; font-size: 12px; padding: 0 12px; }
.shc-err:empty { display: none; }
.shc-new { background: none; border: 0; color: var(--muted); font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; padding: 4px 0 8px; }
@media (max-width: 520px) { .shc { right: 12px; bottom: 12px; } .shc-fab span { display: none; } .shc-fab { padding: 13px; } .shc-panel { position: fixed; right: 8px; left: 8px; width: auto; max-width: none; bottom: 76px; height: auto; top: 70px; max-height: none; } }
@media print { .shc { display: none; } }
.shc-start > * { flex-shrink: 0; }
.q-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.q-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.q-steps li.ok { background: #f1faf5; border-color: #cfe9da; }
.q-steps .mark { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--muted); font-weight: 700; }
.q-steps li.ok .mark { background: #1b9e5a; color: #fff; }
.q-steps small { color: var(--muted); }

/* Түгээмэл асуулт (FAQ) */
.faq-wrap { max-width: 920px; }
.faq-lead { font-size: 16px; color: var(--ink); margin: 0 0 8px; }
.faq-group { font-size: 22px; color: var(--navy); margin: 36px 0 12px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 10px; }
.faq-item summary { cursor: pointer; list-style: none; display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+"; font-weight: 700; color: var(--accent); font-size: 20px; line-height: 1.2; flex: none; width: 16px; }
.faq-item[open] summary::before { content: "–"; }
.faq-item summary h3 { margin: 0; font-size: 16px; line-height: 1.45; color: var(--navy); font-weight: 600; }
.faq-a { padding: 0 20px 18px 48px; line-height: 1.65; }
.faq-a ul, .faq-a ol { margin: 8px 0; padding-left: 20px; }
.faq-a li { margin: 4px 0; }
.faq-more { margin-top: 20px; }
@media (max-width: 560px) { .faq-a { padding-left: 20px; } .faq-item summary { padding: 14px 16px; } }
.q-upload { margin-top: 8px; } .q-upload .drop { padding: 8px 10px; }

/* Асуулга: бүлэг бүлгээр бөглөх цэс */
.qwrap { display: grid; grid-template-columns: 270px 1fr; gap: 22px; align-items: start; }
.qnav { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.qnav-g { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 10px 6px 4px; }
.qnav-g:first-child { margin-top: 2px; }
.qnav-i { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; text-align: left; background: none; border: 0; border-radius: 6px; padding: 7px 8px; font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; }
.qnav-i:hover { background: var(--soft); }
.qnav-i.on { background: var(--navy); color: #fff; }
.qnav-i.bad { color: #b42318; font-weight: 600; }
.qnav-i.on.bad { background: #b42318; color: #fff; }
.qnav-n { flex: none; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: #fdecea; color: #b42318; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.qnav-i.on .qnav-n { background: #fff; }
.qnav-ok { color: #1b9e5a; font-weight: 700; }
.qnav-i.on .qnav-ok { color: #9ff0c4; }
.qleft { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.qpager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 18px; font-size: 13px; color: var(--muted); }
.btn-ghost { background: #fff; color: var(--navy) !important; border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--soft); }
.btn[disabled] { opacity: .45; cursor: default; }
.field.missing > label, .field.missing .consent-title { color: #b42318; }
.field.missing { background: #fff5f4; border-left: 3px solid #d0342c; padding: 8px 10px 8px 12px; border-radius: 6px; margin-left: -15px; }
.field.missing input[type=text], .field.missing textarea, .field.missing input[type=number], .field.missing input[type=date], .field.missing select { border-color: #d0342c; }
.field.q-sub { margin-left: 22px; padding-left: 14px; border-left: 3px solid #cfd8ef; }
.field.q-sub.missing { margin-left: 22px; border-left-color: #d0342c; }
.q-consent { border: 1px solid #cfd8ef; background: #f7f9fe; border-radius: var(--radius); padding: 14px 16px; }
.q-consent .consent-title { font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.q-consent .consent-text p { font-size: 13.5px; line-height: 1.55; text-align: justify; margin: 0 0 8px; }
.q-consent .consent-agree { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; margin-top: 6px; }
@media (max-width: 860px) { .qwrap { grid-template-columns: 1fr; } .qnav { position: static; max-height: 260px; } .field.missing { margin-left: 0; } }

.ct-docs h2{font-size:20px;margin-bottom:8px}.ct-doclist{width:100%;border-collapse:collapse}.ct-doclist td{padding:10px 8px;border-bottom:1px solid #e3e7f1;vertical-align:middle}.ct-doclist td:last-child{text-align:right;white-space:nowrap}.ok-badge{background:#e7f6ee;color:#145c34;border-radius:12px;padding:2px 10px;font-size:13px;font-weight:600}.wait-badge{background:#fff4d6;color:#7a5a00;border-radius:12px;padding:2px 10px;font-size:13px;font-weight:600}
