/* “Санхүүч-Аудит” ХХК — вэбсайтын загвар
   Брэнд: компанийн танилцуулгын гүн хөх, оюу ногоон, логоны гурван өнгийн зураас.
   Алтлаг өнгийг зөвхөн албан ёсны баримт (зөвшөөрөл, хууль тогтоомж) тэмдэглэхэд ашиглана. */

:root {
  --navy: #16264a;
  --navy-2: #1e3361;
  --navy-ink: #101c38;
  --teal: #2fb3bb;
  --teal-ink: #127c84;
  --teal-light: #60d3da;
  --blue: #5b7ed8;
  --green: #8dc63f;
  --red: #d8263e;
  --gold: #9a7a2e;
  --gold-line: #d8c48f;
  --gold-soft: #faf6ea;
  --bg: #ffffff;
  --tint: #f2f5fa;
  --tint-2: #e8edf6;
  --line: #dde3ee;
  --text: #1b2539;
  --muted: #56637c;
  --on-dark: #ffffff;
  --on-dark-muted: #c3cde2;

  --f-head: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Golos Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --gutter: 24px;
  --section: clamp(48px, 7vw, 88px);
  --shadow: 0 1px 2px rgb(22 38 74 / .05), 0 10px 30px -18px rgb(22 38 74 / .35);
  color-scheme: light;
}

/* ---------- Үндэс ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
@media (max-width: 640px) { body { font-size: 16px; } }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--teal-ink); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--f-head); color: var(--navy); line-height: 1.2; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.15rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: var(--gutter); }
.container.narrow, .narrow { max-width: 780px; }
@media (max-width: 640px) { :root { --gutter: 16px; } }

.section { padding-block: var(--section); }
.section-tint { background: var(--tint); }
.section-navy { background: var(--navy); color: var(--on-dark); }
.section-navy h2, .section-navy h3 { color: var(--on-dark); }
.section-head { display: grid; gap: 10px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 760px; }
.section-head-row { display: flex; justify-content: space-between; align-items: end; gap: 16px 32px; flex-wrap: wrap; max-width: none; }
.h-section { font-size: 1.35rem; margin-bottom: 24px; }
.h-small { font-size: 1.05rem; margin-bottom: 14px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-head); font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--teal-ink);
}
.eyebrow-on-dark { color: var(--teal-light); }
.tribar { display: inline-flex; gap: 4px; flex: none; }
.tribar i { display: block; width: 16px; height: 4px; border-radius: 2px; background: var(--blue); }
.tribar i:nth-child(2) { background: var(--green); }
.tribar i:nth-child(3) { background: var(--red); }
.accent { color: var(--teal-light); }

/* ---------- Товчлуур, холбоос ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 22px; border-radius: var(--radius-sm);
  font-family: var(--f-head); font-weight: 700; font-size: .95rem; line-height: 1.2;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-sm { min-height: 38px; padding: 7px 14px; font-size: .86rem; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.hero .btn-primary, .section-navy .btn-primary, .page-hero .btn-primary, .contact-band .btn-primary { background: var(--teal-light); color: var(--navy); }
.hero .btn-primary:hover, .section-navy .btn-primary:hover, .page-hero .btn-primary:hover, .contact-band .btn-primary:hover { background: #8fe2e7; color: var(--navy); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-light { border-color: rgb(255 255 255 / .45); color: #fff; background: transparent; }
.btn-outline-light:hover { border-color: #fff; background: rgb(255 255 255 / .08); color: #fff; }
.link-more { font-family: var(--f-head); font-weight: 700; font-size: .92rem; color: var(--navy); text-decoration: none; white-space: nowrap; }
.link-more::after { content: " →"; color: var(--teal-ink); }
.link-more:hover { color: var(--teal-ink); }
.link-small { font-size: .9rem; font-weight: 500; background: none; border: 0; padding: 0; cursor: pointer; color: var(--teal-ink); text-decoration: underline; text-underline-offset: 3px; font-family: inherit; }

/* ---------- Толгой хэсэг ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / .97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); flex: none; min-width: 0; }
.brand-logo { height: 40px; width: auto; flex: none; }
.brand-tile { display: inline-grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 5px 8px; }
.brand-tile img { height: 38px; width: auto; }
.brand-tile-lg img { height: 56px; }
.brand-text { display: grid; line-height: 1.15; }
.brand-name { font-family: var(--f-head); font-weight: 800; font-size: 1.08rem; letter-spacing: -.01em; white-space: nowrap; }
.brand-sub { font-size: .74rem; color: var(--muted); letter-spacing: .02em; white-space: nowrap; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 2px; }
.site-nav a { display: block; padding: 10px 9px; border-radius: 8px; font-family: var(--f-head); font-weight: 600; font-size: .9rem; color: var(--text); text-decoration: none; white-space: nowrap; }
.site-nav a:hover { color: var(--teal-ink); background: var(--tint); }
.site-nav a[aria-current="page"] { color: var(--navy); background: var(--tint-2); }
.site-nav a.nav-cta { background: var(--navy); color: #fff; margin-left: 6px; padding-inline: 16px; }
.site-nav a.nav-cta:hover, .site-nav a.nav-cta[aria-current="page"] { background: var(--navy-2); color: #fff; }
.nav-toggle { display: none; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font: 600 .9rem var(--f-head); color: var(--navy); cursor: pointer; }
.nav-toggle-bars { display: grid; gap: 4px; }
.nav-toggle-bars i { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 1px; }

@media (min-width: 1280px) { .site-nav .nav-home { display: none; } }
@media (max-width: 1279px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; padding: 8px var(--gutter) 16px; }
  .nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: 12px 12px; font-size: 1rem; }
  .site-nav a.nav-cta { margin: 8px 0 0; text-align: center; }
}
@media (max-width: 480px) { .brand-sub { display: none; } .brand-logo { height: 34px; } }
@media (max-width: 380px) { .brand { gap: 8px; } .brand-logo { height: 28px; } .brand-name { font-size: .9rem; } .nav-toggle { padding: 9px 10px; } .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* ---------- Нүүрний баннер ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgb(96 211 218 / .14), transparent 45%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy) 55%, var(--navy-2) 100%);
  color: var(--on-dark);
  padding-block: clamp(56px, 8vw, 104px);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 18px; justify-items: start; min-width: 0; }
.hero-title { color: #fff; font-weight: 800; font-size: clamp(1.25rem, 6.6vw, 2.75rem); letter-spacing: -.02em; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.hero-tagline { font-family: var(--f-head); font-weight: 600; font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: #e6ecf8; max-width: 34ch; }
.hero-lead { color: var(--on-dark-muted); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.badge-member { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 7px 14px; border: 1px solid rgb(96 211 218 / .5); border-radius: 999px; color: var(--teal-light); text-decoration: none; font: 600 .85rem var(--f-head); }
.badge-member:hover { color: #fff; border-color: #fff; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid rgb(255 255 255 / .14); border-radius: var(--radius); background: rgb(255 255 255 / .03); }
.hero-stats .stat { padding: clamp(18px, 2.4vw, 28px); min-width: 0; }
.hero-stats .stat:nth-child(odd) { border-right: 1px solid rgb(255 255 255 / .14); }
.hero-stats .stat:nth-child(-n+2) { border-bottom: 1px solid rgb(255 255 255 / .14); }
.stat-value { font-family: var(--f-head); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; letter-spacing: -.02em; color: var(--teal-light); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-label { margin-top: 8px; font-size: .92rem; color: var(--on-dark-muted); line-height: 1.45; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 380px) { .hero-stats .stat-value { font-size: 1.7rem; } }

/* ---------- Дотоод хуудасны толгой ---------- */
.page-hero { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: var(--on-dark); padding-block: clamp(44px, 6vw, 76px); }
.page-hero .container { display: grid; gap: 14px; justify-items: start; }
.page-hero h1 { color: #fff; font-weight: 800; font-size: clamp(1.9rem, 4.2vw, 2.9rem); max-width: 22ch; }
.page-hero-intro { color: var(--on-dark-muted); max-width: 64ch; font-size: 1.04rem; }

/* ---------- Үйлчилгээ (нүүр) ---------- */
.service-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.service-group { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.service-group-title { padding: 16px 22px; color: #fff; font-size: 1.02rem; background: var(--navy); }
.service-group-advisory .service-group-title { background: var(--teal-ink); }
.service-list { list-style: none; }
.service-list li + li { border-top: 1px solid var(--line); }
.service-list a { display: grid; gap: 4px; padding: 18px 22px; text-decoration: none; color: var(--text); }
.service-list a:hover { background: var(--tint); }
.service-name { font-family: var(--f-head); font-weight: 700; color: var(--navy); }
.service-name::after { content: "\00a0→"; color: var(--teal-ink); }
.service-items { font-size: .92rem; color: var(--muted); }
@media (max-width: 820px) { .service-groups { grid-template-columns: 1fr; } }

/* ---------- Үнэ цэнийн гинж ---------- */
.value-chain { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: none; }
.value-step { position: relative; display: grid; gap: 10px; align-content: start; padding: 26px; border: 1px solid rgb(255 255 255 / .14); border-radius: var(--radius); background: rgb(255 255 255 / .03); }
.value-step.is-core { border-color: var(--teal-light); background: rgb(96 211 218 / .08); }
.value-step + .value-step::before { content: ""; position: absolute; left: -32px; top: 50%; width: 24px; height: 2px; background: var(--teal-light); }
.value-step + .value-step::after { content: ""; position: absolute; left: -14px; top: calc(50% - 5px); border: 6px solid transparent; border-left-color: var(--teal-light); border-right: 0; }
.value-num { font-family: var(--f-head); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-light); }
.value-step p:last-child { color: var(--on-dark-muted); font-size: .95rem; }
.value-result { margin-top: 28px; padding: 16px 20px; border-radius: var(--radius-sm); background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .12); color: #e6ecf8; }
.value-result strong { color: var(--teal-light); font-family: var(--f-head); }
@media (max-width: 860px) {
  .value-chain { grid-template-columns: 1fr; gap: 32px; }
  .value-step + .value-step::before { left: 50%; top: -26px; width: 2px; height: 20px; }
  .value-step + .value-step::after { left: calc(50% - 5px); top: -12px; border: 6px solid transparent; border-top-color: var(--teal-light); border-bottom: 0; }
}

/* ---------- Ялгарал ---------- */
.diff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.diff { display: grid; gap: 8px; padding: 26px 28px 28px 0; border-bottom: 1px solid var(--line); }
.diff:nth-child(even) { padding-left: 28px; padding-right: 0; border-left: 1px solid var(--line); }
.diff h3 { display: flex; align-items: center; gap: 10px; }
.diff h3::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--teal); flex: none; }
.diff p { color: var(--muted); }
@media (max-width: 760px) {
  .diff-grid { grid-template-columns: 1fr; }
  .diff, .diff:nth-child(even) { padding: 22px 0; border-left: 0; }
}

/* ---------- Карт, чип ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.card { display: grid; gap: 10px; align-content: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; min-width: 0; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: #b9c4d8; box-shadow: var(--shadow); }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: .84rem; color: var(--muted); }
.card-title { font-size: 1.1rem; line-height: 1.35; }
.card-title a { color: var(--navy); text-decoration: none; }
.card-title a:hover { color: var(--teal-ink); }
.card-title a::after { content: ""; }
.card-text { color: var(--muted); font-size: .95rem; }
.card-foot { display: flex; flex-wrap: wrap; gap: 6px; }
.card-foot:empty { display: none; }
.flag { font-size: .76rem; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.flag-legal { background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold-line); }
.flag-video { background: var(--tint); color: var(--navy); border: 1px solid var(--line); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 38px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text); font: 600 .86rem var(--f-head); text-decoration: none; cursor: pointer; line-height: 1.25; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip-sm { min-height: 0; padding: 2px 10px; border-radius: 6px; font-size: .76rem; background: var(--tint); border-color: transparent; color: var(--navy); }
a.chip-sm:hover { background: var(--tint-2); }

.filter-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px 24px; margin-bottom: 18px; }
.filter-bar .chips { flex: 1 1 520px; }
.search { position: relative; display: flex; align-items: center; flex: 0 1 300px; min-width: min(100%, 240px); color: var(--muted); }
.search svg { position: absolute; left: 14px; pointer-events: none; }
.search input { width: 100%; min-height: 44px; padding: 10px 14px 10px 42px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: 16px; color: var(--text); background: #fff; }
.search input:focus { border-color: var(--teal); outline: 3px solid rgb(47 179 187 / .25); outline-offset: 0; }
@media (max-width: 640px) { .search { flex: 1 1 100%; } }
.result-count { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.empty-state { color: var(--muted); }
.empty-state-box { display: grid; gap: 8px; padding: 32px; border: 1px dashed #c3ccdc; border-radius: var(--radius); background: var(--tint); }
.empty-title { font-family: var(--f-head); font-weight: 700; color: var(--navy); }

/* ---------- Видео ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.video-card { display: grid; align-content: start; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; min-width: 0; }
.video-body { display: grid; gap: 8px; padding: 18px 20px 20px; }
.video-title { font-size: 1.04rem; line-height: 1.35; }
.yt { position: relative; aspect-ratio: 16 / 9; background: #0d1426; max-width: 100%; overflow: hidden; }
.yt-btn { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.yt-btn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yt-play { position: relative; filter: drop-shadow(0 4px 12px rgb(0 0 0 / .35)); transition: transform .15s; }
.yt-btn:hover .yt-play { transform: scale(1.08); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.article-video .yt { border-radius: var(--radius); }

/* ---------- Цагийн хэлхээс ---------- */
.timeline { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; right: 7px; top: 7px; height: 2px; background: var(--line); }
.timeline-item { position: relative; display: grid; gap: 6px; padding-top: 30px; }
.timeline-dot { position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); }
.timeline-item.is-latest .timeline-dot { border-color: var(--teal); background: var(--teal); }
.timeline-year { font-family: var(--f-head); font-weight: 800; font-size: 1.5rem; color: var(--navy); line-height: 1; }
.timeline-text { color: var(--muted); font-size: .95rem; }
@media (max-width: 820px) {
  .timeline { grid-template-columns: 1fr; gap: 22px; padding-left: 30px; }
  .timeline::before { left: 7px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; }
  .timeline-item { padding-top: 0; }
  .timeline-dot { left: -30px; top: 4px; }
}

/* ---------- Эрхэм зорилго, зарчим ---------- */
.mission { display: grid; gap: 22px; }
.mission-quote { margin: 0; max-width: 34em; }
.mission-quote p { font-family: var(--f-head); font-weight: 700; font-size: clamp(1.25rem, 2.6vw, 1.9rem); line-height: 1.4; color: #fff; }
.mission-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.mission-tags li { padding: 7px 14px; border: 1px solid rgb(96 211 218 / .45); border-radius: 999px; color: var(--teal-light); font: 600 .85rem var(--f-head); }
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.principle { display: grid; gap: 10px; align-content: start; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.principle h3::before { content: ""; display: block; width: 32px; height: 32px; margin-bottom: 14px; border-radius: 8px; background: var(--tint-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.4 3 2.9 6-6.3' fill='none' stroke='%2316264a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.principle p { color: var(--muted); font-size: .95rem; }
@media (max-width: 1000px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }

/* ---------- Баг, харилцагч ---------- */
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 64px); }
.two-col > * { min-width: 0; }
.team h2, .clients h2 { margin: 8px 0 24px; }
.team-body { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 32px; }
.donut { position: relative; margin: 0; width: 180px; height: 180px; flex: none; }
.donut svg { display: block; }
.donut figcaption { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-total { font-family: var(--f-head); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--navy); }
.donut-label { font-size: .88rem; color: var(--muted); }
.team-list { list-style: none; display: grid; gap: 14px; flex: 1 1 240px; }
.team-list li { display: grid; grid-template-columns: 12px 36px 1fr; align-items: center; gap: 10px; }
.swatch { width: 12px; height: 12px; border-radius: 3px; }
.team-count { font-family: var(--f-head); font-weight: 800; font-size: 1.5rem; color: var(--navy); text-align: center; }
.team-role { display: grid; line-height: 1.35; }
.team-role span { font-size: .88rem; color: var(--muted); }
.bar-chart { margin: 0; }
.bar-chart svg { width: 100%; height: auto; display: block; font-family: var(--f-body); }
.client-notes { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.client-notes li { display: grid; gap: 2px; padding-top: 12px; border-top: 2px solid var(--navy); }
.client-notes li:first-child { border-top-color: var(--teal); }
.client-notes strong { font-family: var(--f-head); font-size: 1.5rem; color: var(--navy); line-height: 1.1; }
.client-notes span { font-size: .85rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Зөвшөөрөл ---------- */
.trust { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.trust-copy { display: grid; gap: 12px; justify-items: start; }
.trust-copy h2 { margin-bottom: 6px; }
.cred-list { list-style: none; display: grid; gap: 14px; width: 100%; }
.cred-list li { display: grid; gap: 2px; padding: 14px 16px 14px 48px; border: 1px solid var(--gold-line); border-radius: var(--radius-sm); background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='10' r='6' fill='none' stroke='%239a7a2e' stroke-width='1.8'/%3E%3Cpath d='m9 15-1.5 6L12 19l4.5 2L15 15' fill='none' stroke='%239a7a2e' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") 14px 15px / 22px no-repeat; }
.cred-title { font-family: var(--f-head); font-weight: 700; color: var(--navy); }
.cred-detail { font-size: .9rem; color: var(--muted); }
.trust-figures { display: grid; gap: 18px; }
.trust-figures > div { padding: 22px 24px; border-radius: var(--radius); background: var(--navy); }
.trust-figures .stat-label { color: var(--on-dark-muted); }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr; } .trust-figures { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .trust-figures { grid-template-columns: 1fr; } }

.creds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; align-items: start; }
.cred-card { display: grid; gap: 18px; padding: 22px; border: 1px solid var(--gold-line); border-radius: var(--radius); background: var(--gold-soft); }
.cred-card.has-image { grid-template-columns: 150px minmax(0, 1fr); align-items: start; }
.cred-image { position: relative; display: block; border: 1px solid var(--gold-line); border-radius: 6px; overflow: hidden; background: #fff; }
.cred-image img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.cred-zoom { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 6px; font-size: .74rem; text-align: center; background: rgb(22 38 74 / .85); color: #fff; }
.cred-body { display: grid; gap: 6px; align-content: start; }
.cred-issuer { color: var(--gold); font-weight: 600; font-size: .92rem; }
@media (max-width: 460px) { .cred-card.has-image { grid-template-columns: 1fr; } .cred-image { max-width: 220px; } }

/* ---------- Үйлчилгээний хуудас ---------- */
.org { display: grid; justify-items: center; gap: 0; }
.org-root { position: relative; padding: 14px 28px; border-radius: var(--radius-sm); background: var(--navy); color: #fff; font: 700 1rem var(--f-head); text-align: center; }
.org-root::after { content: ""; position: absolute; left: 50%; bottom: -24px; width: 2px; height: 24px; background: #b9c4d8; }
.org-branches { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; width: 100%; margin-top: 48px; }
.org-branches::before { content: ""; position: absolute; top: -24px; left: 25%; right: 25%; height: 2px; background: #b9c4d8; }
.org-branch { position: relative; display: grid; gap: 14px; justify-items: center; }
.org-branch::before { content: ""; position: absolute; top: -24px; left: 50%; width: 2px; height: 24px; background: #b9c4d8; }
.org-group { display: grid; place-items: center; min-height: 52px; width: 100%; max-width: 360px; padding: 12px 18px; border-radius: var(--radius-sm); background: var(--navy-2); color: #fff; font: 700 .95rem var(--f-head); text-align: center; text-decoration: none; }
.org-branch-advisory .org-group { background: var(--teal-ink); }
.org-group:hover { color: #fff; filter: brightness(1.1); }
.org-leaves { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; width: 100%; }
.org-leaves a { display: block; height: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--navy); font: 600 .9rem var(--f-head); line-height: 1.35; text-decoration: none; }
.org-leaves a:hover { border-color: var(--teal); }
@media (max-width: 760px) {
  .org-branches { grid-template-columns: 1fr; margin-top: 24px; gap: 28px; }
  .org-branches::before, .org-branch::before, .org-root::after { display: none; }
}
.service-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.service-block { display: grid; gap: 16px; align-content: start; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; scroll-margin-top: 96px; }
.service-block-head { display: grid; gap: 8px; }
.service-block h3 { font-size: 1.2rem; }
.service-summary { color: var(--muted); }
.check-list { list-style: none; display: grid; gap: 8px; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--tint-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.4 3 2.9 6-6.3' fill='none' stroke='%23127c84' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.check-list-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
@media (max-width: 520px) { .check-list-2col { grid-template-columns: 1fr; } }
.service-detail { padding-top: 14px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.focus-box { margin-top: 28px; padding: 26px 28px; border-radius: var(--radius); background: var(--navy); color: var(--on-dark); display: grid; gap: 14px; }
.focus-box h3 { color: #fff; }
.focus-box ul { list-style: none; display: grid; gap: 10px; }
.focus-box li { position: relative; padding-left: 22px; color: #e1e8f5; }
.focus-box li::before { content: ""; position: absolute; left: 0; top: .6em; width: 9px; height: 9px; border-radius: 2px; background: var(--teal-light); }
.service-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.service-chips a { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); font: 600 .92rem var(--f-head); text-decoration: none; }
.service-chips a:hover { border-color: var(--teal); }

/* ---------- Нийтлэл ---------- */
.article-hero { background: var(--tint); padding-block: clamp(36px, 5vw, 60px) clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.article-hero .container { display: grid; gap: 14px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--muted); }
.crumbs a { color: var(--teal-ink); }
.article-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .92rem; }
.article-lead { font-size: 1.12rem; color: #33405a; }
.draft-flag { justify-self: start; padding: 4px 10px; border-radius: 4px; background: #fde8eb; color: #a3182b; font-weight: 600; font-size: .85rem; }
.article-main { display: grid; gap: 32px; padding-block: clamp(32px, 5vw, 52px) var(--section); }
.legal-box { display: grid; gap: 10px; padding: 20px 22px; border: 1px solid var(--gold-line); border-radius: var(--radius); background: var(--gold-soft); }
.legal-label { font-family: var(--f-head); font-weight: 700; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.legal-name { font-family: var(--f-head); font-weight: 700; color: var(--navy); }
.legal-name a { color: var(--navy); }
.legal-dates { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
.legal-dates dt { font-size: .82rem; color: var(--muted); }
.legal-dates dd { margin: 0; font-weight: 600; }
.legal-stale { padding: 10px 12px; border-radius: 6px; background: #fff3cd; color: #6b4e00; font-size: .9rem; }
.prose { font-size: 1.04rem; line-height: 1.75; min-width: 0; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: 1.45rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.18rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--teal); color: #33405a; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--tint); font-family: var(--f-head); font-size: .88rem; }
.prose img { border-radius: var(--radius-sm); }
.prose code { font-size: .92em; background: var(--tint); padding: 2px 5px; border-radius: 4px; }
.prose pre { overflow-x: auto; background: var(--tint); padding: 14px; border-radius: var(--radius-sm); }
.service-detail.prose { font-size: .95rem; line-height: 1.6; }
.sources ol { padding-left: 1.3em; display: grid; gap: 6px; }
.source-host { font-size: .82rem; color: var(--muted); }
.disclaimer { padding-top: 20px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }

/* ---------- Материал ---------- */
.materials { list-style: none; display: grid; gap: 14px; }
.material { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.material-icon { display: grid; place-items: center; width: 56px; height: 64px; border-radius: 8px; background: var(--tint-2); color: var(--navy); font: 800 .78rem var(--f-head); letter-spacing: .04em; }
.material-body { display: grid; gap: 4px; }
.material-body h3 { font-size: 1.05rem; }
.material-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
@media (max-width: 620px) { .material { grid-template-columns: 48px minmax(0, 1fr); } .material-icon { width: 48px; height: 56px; } .material-actions { grid-column: 1 / -1; justify-content: flex-start; } }
.calendar-feature, .app-feature { display: grid; gap: 14px; align-content: start; }
.calendar-feature h2, .app-feature h2 { margin-bottom: 4px; }
.app-qr { margin: 6px 0 0; max-width: 460px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.app-links { display: flex; flex-wrap: wrap; gap: 10px; }
.app-links:empty { display: none; }

/* ---------- Холбоо барих ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.contact-card { display: grid; gap: 8px; align-content: start; justify-items: start; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.contact-label { font-family: var(--f-head); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-ink); }
.contact-value { font-family: var(--f-head); font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.contact-value a { color: var(--navy); }
.contact-band { background: var(--navy); color: var(--on-dark); padding-block: clamp(44px, 6vw, 68px); }
.contact-band-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 56px; align-items: center; }
.contact-band-title { margin-top: 12px; font-family: var(--f-head); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.25; color: #fff; }
.contact-band-list { list-style: none; display: grid; gap: 12px; }
.contact-band-list li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 12px 16px; border-radius: var(--radius-sm); background: rgb(255 255 255 / .06); color: #e6ecf8; overflow-wrap: anywhere; }
.contact-band-list a { color: #fff; }
.contact-band-list a:hover { color: var(--teal-light); }
.cb-label { font-family: var(--f-head); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-light); padding-top: 2px; }
@media (max-width: 860px) { .contact-band-inner { grid-template-columns: 1fr; } }
@media (max-width: 400px) { .contact-band-list li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Хөл хэсэг ---------- */
.site-footer { background: var(--navy-ink); color: var(--on-dark-muted); font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, 1.2fr) minmax(0, 1.2fr); gap: 36px; padding-block: 56px 40px; }
.footer-brand { display: grid; gap: 12px; justify-items: start; align-content: start; }
.footer-logo { height: 60px; width: auto; }
.footer-name { font-family: var(--f-head); font-weight: 800; color: #fff; font-size: 1.05rem; white-space: nowrap; }
.footer-tagline { max-width: 30ch; }
.footer-badge { padding: 5px 12px; border: 1px solid rgb(96 211 218 / .45); border-radius: 999px; color: var(--teal-light); font: 600 .8rem var(--f-head); text-decoration: none; }
.footer-h { font-family: var(--f-head); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--teal-light); text-decoration: underline; }
.site-footer address { font-style: normal; display: grid; gap: 10px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-block: 20px 28px; border-top: 1px solid rgb(255 255 255 / .1); font-size: .84rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

.notfound .container { display: grid; gap: 16px; justify-items: start; }
.notfound h1 { font-size: clamp(2rem, 5vw, 3rem); }

/* ---------- Харилцагчид ---------- */
.section-intro { color: var(--muted); max-width: 66ch; }
.client-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.client-group { display: grid; gap: 12px; align-content: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.client-group h3 { font-size: 1rem; padding-bottom: 10px; border-bottom: 2px solid var(--navy); }
.client-group ul { list-style: none; display: grid; gap: 8px; }
.client-group li { font-size: .95rem; line-height: 1.4; }
.client-wall { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.client-wall li { display: flex; align-items: center; min-height: 72px; padding: 14px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--f-head); font-weight: 600; font-size: .92rem; color: var(--navy); line-height: 1.35; }

/* ---------- Ня-Бо апп зураг ---------- */
.app-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 460px; margin-top: 6px; }
.app-shot { margin: 0; display: grid; gap: 8px; }
.app-shot img { width: 100%; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.app-shot figcaption { font-size: .84rem; color: var(--muted); line-height: 1.4; }

/* ---------- Материалын нүүр зураг, календарийн зураг ---------- */
.material.has-cover { grid-template-columns: 150px minmax(0, 1fr) auto; }
.material-cover { width: 150px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
@media (max-width: 620px) { .material.has-cover { grid-template-columns: 1fr; } .material-cover { width: 100%; max-width: 320px; } }
.cal-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.cal-photo { margin: 0; display: grid; gap: 8px; align-content: start; }
.cal-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.cal-photo figcaption { font-size: .84rem; color: var(--muted); }

/* ---------- Үнийн санал авах ---------- */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.quote-layout > .quote-form, .quote-layout > .quote-done { grid-column: 1; grid-row: 1; }
.quote-aside { grid-column: 2; grid-row: 1; position: sticky; top: 100px; display: grid; gap: 18px; padding: 24px; border-radius: var(--radius); background: var(--tint); }
.quote-steps { list-style: none; counter-reset: q; display: grid; gap: 14px; }
.quote-steps li { counter-increment: q; position: relative; display: grid; gap: 2px; padding-left: 40px; }
.quote-steps li::before { content: counter(q); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 700 .85rem var(--f-head); }
.quote-steps strong { font-family: var(--f-head); color: var(--navy); }
.quote-steps span { font-size: .9rem; color: var(--muted); }
.quote-contact { display: grid; gap: 6px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 600; }
.quote-contact a { color: var(--navy); }
@media (max-width: 900px) {
  .quote-layout { grid-template-columns: 1fr; }
  .quote-aside { grid-column: 1; grid-row: auto; position: static; }
}
.quote-form { display: grid; gap: 22px; min-width: 0; }
.q-group { margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; display: grid; gap: 16px; min-width: 0; }
.q-group legend { display: flex; align-items: center; gap: 10px; padding: 0 6px; margin-left: -6px; font: 700 1.05rem var(--f-head); color: var(--navy); }
.q-step { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--teal-light); color: var(--navy); font-size: .85rem; }
.q-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.q-span2 { grid-column: 1 / -1; }
@media (max-width: 600px) { .q-grid { grid-template-columns: 1fr; } .q-group { padding: 18px; } }
.q-field { display: grid; gap: 6px; min-width: 0; }
.q-field > span { font-size: .9rem; font-weight: 600; color: var(--text); }
.q-field b, .q-check b { color: var(--red); font-weight: 700; }
.q-field input, .q-field select, .q-field textarea { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid #c9d1df; border-radius: var(--radius-sm); font: inherit; font-size: 16px; color: var(--text); background: #fff; }
.q-field textarea { resize: vertical; line-height: 1.5; }
.q-field input:focus, .q-field select:focus, .q-field textarea:focus { border-color: var(--teal); outline: 3px solid rgb(47 179 187 / .25); outline-offset: 0; }
.q-field.is-invalid input, .q-field.is-invalid select { border-color: var(--red); background: #fff6f7; }
.q-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 600px) { .q-checks { grid-template-columns: 1fr; } }
.q-check { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; line-height: 1.4; }
.q-check:hover { border-color: var(--teal); }
.q-check input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: var(--navy); }
.q-check:has(input:checked) { border-color: var(--navy); background: var(--tint); }
.q-check-line { border: 0; padding: 4px 0; }
.q-check-line:has(input:checked) { background: none; }
.q-check.is-invalid { color: var(--red); }
.q-hint { font-size: .92rem; color: var(--muted); }
.q-error { color: var(--red); font-size: .9rem; font-weight: 600; }
.q-error-box { padding: 12px 16px; border-radius: var(--radius-sm); background: #fdecee; border: 1px solid #f3c2c8; }
.q-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.q-note { font-size: .88rem; color: var(--muted); }
.q-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.quote-done { display: grid; gap: 14px; justify-items: start; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.quote-done:focus { outline: none; }
.quote-done h2 { font-size: 1.8rem; }
.contact-band-cta { margin-top: 20px; }
.q-legal { display: grid; gap: 8px; padding: 18px 20px; border: 1px solid var(--gold-line); border-radius: var(--radius-sm); background: var(--gold-soft); font-size: .94rem; }
.q-legal-title { font-family: var(--f-head); font-weight: 700; color: var(--navy); }
.q-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .q-grid-3 { grid-template-columns: 1fr; } }

/* Байршлын газрын зураг */
.map-wrap { margin-top: 2rem; border: 1px solid var(--line, #dde3ee); border-radius: 14px; overflow: hidden; background: #eef2f8; box-shadow: 0 10px 30px -18px rgba(12, 35, 80, .35); }
.map-frame { display: block; width: 100%; height: 420px; border: 0; }
.map-caption { margin-top: .75rem; font-size: .95rem; color: var(--muted, #5a6780); }
.map-caption a { font-weight: 600; }
@media (max-width: 760px) { .map-frame { height: 320px; } }

/* Үнийн санал: товч маягт */
.q-sublabel { margin: 1.1rem 0 .55rem; font-size: .9rem; font-weight: 600; color: var(--text); }
.q-sublabel b, .q-field b { color: #c0392b; }
.q-more { margin: 1rem 0 .25rem; }
.q-more summary { cursor: pointer; font-size: .92rem; font-weight: 600; color: var(--muted); }
.q-more summary:hover { color: var(--text); }
.q-more[open] summary { margin-bottom: .6rem; }
.q-more textarea { width: 100%; }

/* Зөвлөгөө, мэдээлэл — дэд цэс */
.site-nav .has-sub { position: relative; }
.site-nav .has-sub > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-caret { opacity: .6; transition: transform .15s ease; }
.site-nav .sub-nav { list-style: none; display: block; margin: 0; padding: 6px; }
.site-nav .sub-nav a { font-size: .92rem; padding: 9px 12px; }
@media (min-width: 1280px) {
  .site-nav .sub-nav { position: absolute; top: calc(100% + 4px); left: 0; min-width: 190px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s ease, transform .15s ease, visibility .15s; z-index: 60; }
  .site-nav .has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }
  .site-nav .has-sub:hover .sub-nav, .site-nav .has-sub:focus-within .sub-nav { opacity: 1; visibility: visible; transform: none; }
  .site-nav .has-sub:hover .nav-caret, .site-nav .has-sub:focus-within .nav-caret { transform: rotate(180deg); }
}
@media (max-width: 1279px) {
  .site-nav .sub-nav { padding: 0 0 4px 14px; margin-left: 12px; border-left: 2px solid var(--line); }
  .site-nav .sub-nav a { font-size: .95rem; padding: 9px 12px; color: var(--muted); }
  .site-nav .has-sub > a { display: flex; }
  .nav-caret { display: none; }
}

/* ---------- Хэл сонгох (МН | EN) ---------- */
.site-header .header-inner { max-width: 1300px; }
.header-tools { display: flex; align-items: center; gap: 10px; flex: none; order: 3; }
.lang-switch { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: #fff; }
.lang-switch a, .lang-switch .lang-current { display: inline-block; min-width: 34px; padding: 5px 9px; border-radius: 999px; font: 700 .78rem/1 var(--f-head); letter-spacing: .03em; text-align: center; text-decoration: none; }
.lang-switch a { color: var(--muted); }
.lang-switch a:hover { color: var(--navy); background: var(--tint); }
.lang-switch .lang-current { background: var(--navy); color: #fff; }
@media (min-width: 1280px) {
  .site-nav { margin-left: auto; }
  .header-inner { gap: 14px; }
}
@media (min-width: 1280px) and (max-width: 1360px) {
  .site-nav a { padding-inline: 7px; font-size: .86rem; }
  .site-nav a.nav-cta { padding-inline: 13px; margin-left: 4px; }
}
@media (max-width: 1279px) {
  .header-tools { margin-left: auto; }
}
@media (max-width: 480px) {
  .header-inner { gap: 10px; }
  .brand-name { font-size: .98rem; }
  .header-tools { gap: 6px; }
  .lang-switch { padding: 0; border: 0; }
  .lang-switch .lang-current { display: none; }
  .lang-switch a { border: 1px solid var(--line); padding: 9px 9px; min-width: 40px; border-radius: 8px; color: var(--navy); font-size: .82rem; }
  .nav-toggle { padding: 9px 11px; }
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
.site-nav .nav-lang { display: none; }
@media (max-width: 380px) {
  .brand-name { font-size: .9rem; }
}
@media (max-width: 360px) {
  .header-tools .lang-switch { display: none; }
  .site-nav .nav-lang { display: block; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 6px; }
}

/* Имэйл хаягийн анхааруулга */
.q-attn { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; padding: 11px 14px; border: 1px solid var(--gold-line); border-radius: var(--radius-sm); background: var(--gold-soft); font-size: .92rem; line-height: 1.5; color: var(--text); }
.q-attn svg { flex: none; margin-top: 2px; color: var(--gold); }
.q-attn strong { color: var(--navy); }

/* ---------- Хэрэгцээт холбоос ---------- */
.link-groups { display: grid; gap: 36px; }
.link-group .h-small { margin-bottom: 14px; }
.link-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 960px) { .link-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .link-cards { grid-template-columns: 1fr; } }
.link-card { display: grid; gap: 6px; height: 100%; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; text-decoration: none; color: var(--text); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.link-card:hover { border-color: var(--teal-ink); box-shadow: var(--shadow); transform: translateY(-1px); }
.link-card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--f-head); font-weight: 700; color: var(--navy); }
.link-card-title svg { flex: none; color: var(--teal-ink); }
.link-card-text { font-size: .92rem; color: var(--muted); }
.link-card-host { font-size: .82rem; color: var(--teal-ink); font-weight: 600; }
.link-note { font-size: .88rem; color: var(--muted); }
.materials-more { margin-top: 16px; }

/* ---------- Цалингийн тооцоолуур ---------- */
.calc-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .calc-layout { grid-template-columns: 1fr; } }
.calc-form { display: grid; gap: 20px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.calc-field { display: grid; gap: 8px; }
.calc-label { font-family: var(--f-head); font-weight: 700; font-size: .92rem; color: var(--navy); }
.calc-hint { font-size: .85rem; color: var(--muted); }
.calc-input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; font: 600 1.05rem var(--f-body, inherit); color: var(--text); background: #fff; }
#calc-amount { font-size: 1.35rem; font-family: var(--f-head); }
.calc-input:focus { outline: 2px solid var(--teal-light); outline-offset: 1px; border-color: var(--teal-ink); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--tint); }
.seg-opt { flex: 1 1 auto; position: relative; }
.seg-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg-opt span { display: block; text-align: center; padding: 9px 12px; border-radius: 9px; font: 700 .9rem var(--f-head); color: var(--muted); cursor: pointer; }
.seg-opt input:checked + span { background: var(--navy); color: #fff; }
.seg-opt input:focus-visible + span { outline: 2px solid var(--teal-light); outline-offset: 1px; }
.calc-yearnote { font-size: .88rem; color: var(--muted); padding: 10px 12px; border-radius: 10px; background: var(--gold-soft); border: 1px solid var(--gold-line); }
.calc-result { position: sticky; top: 96px; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (max-width: 900px) { .calc-result { position: static; } }
.calc-net { padding: 18px 20px; border-radius: 12px; background: var(--navy); color: #fff; margin-bottom: 18px; }
.calc-net-label { font-size: .88rem; opacity: .8; }
.calc-net-value { font: 800 clamp(1.8rem, 6vw, 2.4rem)/1.15 var(--f-head); color: var(--teal-light); margin: 4px 0 12px; }
.calc-bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: rgb(255 255 255 / .15); }
.calc-bar span { display: block; height: 100%; transition: width .2s ease; }
.bar-net { background: var(--teal-light); } .bar-ss { background: #7f9be0; } .bar-pit { background: #e2b45a; }
.calc-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0 0; padding: 0; font-size: .8rem; opacity: .9; }
.calc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.calc-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.calc-table th { text-align: left; font-weight: 500; color: var(--text); padding: 9px 0; border-bottom: 1px solid var(--line); }
.calc-table td { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; padding: 9px 0 9px 12px; border-bottom: 1px solid var(--line); }
.calc-table tr.sub th, .calc-table tr.sub td { color: var(--muted); font-size: .86rem; font-weight: 500; }
.calc-table tr.total th, .calc-table tr.total td { font-family: var(--f-head); font-weight: 800; color: var(--navy); border-bottom: 0; padding-top: 12px; }
.calc-h { margin: 22px 0 6px; }
.calc-warn { margin-top: 14px; font-size: .88rem; padding: 10px 12px; border-radius: 10px; background: #fbebeb; color: #8a2a2a; }
.calc-notes { margin-top: 32px; padding: 22px 24px; border-radius: var(--radius); background: var(--tint); }
.calc-notes ul { margin: 10px 0 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: .92rem; }
.calc-disclaimer { margin-top: 12px; font-size: .88rem; color: var(--muted); }

/* Хажуугийн «Тооцоолуур» товч */
.calc-tab { position: fixed; z-index: 40; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; background: var(--teal-ink, #127c84); color: #fff; font: 700 .9rem var(--f-head); box-shadow: 0 8px 24px -10px rgba(12, 35, 80, .55); }
.calc-tab:hover { background: var(--navy); color: #fff; }
.calc-tab svg { flex: none; }
@media (min-width: 900px) {
  .calc-tab { right: 0; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; padding: 16px 10px; border-radius: 12px 0 0 12px; }
  .calc-tab svg { transform: rotate(90deg); }
}
@media (max-width: 899px) {
  .calc-tab { right: 16px; bottom: 16px; width: 54px; height: 54px; justify-content: center; border-radius: 50%; }
  .calc-tab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
.nav-open .calc-tab, .page-calc .calc-tab { display: none; }
.calc-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.calc-switch a { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font: 700 .9rem var(--f-head); color: var(--navy); text-decoration: none; background: #fff; }
.calc-switch a:hover { border-color: var(--teal-ink); color: var(--teal-ink); }
.calc-switch a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.calc-net-sub { font-size: .9rem; opacity: .85; }
.calc-cta { margin-top: 16px; }
.calc-ref { max-width: 460px; margin-top: 10px; background: #fff; }
.calc-ref th, .calc-ref td { padding: 8px 12px; text-align: left; }
.calc-ref td + td, .calc-ref th + th { text-align: right; }

/* Ээлжийн амралтын тооцоолуур */
.calc-group { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 18px; }
.calc-group + .calc-group { padding-top: 20px; border-top: 1px solid var(--line); }
.calc-group legend { float: left; width: 100%; padding: 0; margin: 0; font: 800 .78rem var(--f-head); letter-spacing: .06em; text-transform: uppercase; color: var(--teal-ink); }
.calc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-unit { position: relative; display: block; }
.calc-unit .calc-input { padding-right: 48px; }
.calc-unit span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: .9rem; font-weight: 600; color: var(--muted); pointer-events: none; }
.calc-check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; line-height: 1.45; cursor: pointer; }
.calc-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--navy); }
.calc-result .calc-yearnote { margin-top: 14px; }
.calc-ref-wrap { overflow-x: auto; }
.calc-ref-3 { max-width: 700px; }
.calc-ref td:first-child { white-space: normal; }
.calc-ref-m { display: block; color: var(--muted); font-size: .85em; font-weight: 500; }
@media (max-width: 600px) { .calc-ref th, .calc-ref td { padding: 8px 6px; } .calc-ref thead th { font-size: .82rem; } }
.calc-ref tr.is-current td { background: var(--gold-soft); }
.calc-ref td.is-cell { color: var(--navy); font-weight: 800; }
.calc-ref-src { margin-top: 8px; font-size: .85rem; color: var(--muted); }
.calc-notes li strong { color: var(--navy); }

/* Тэтгэмжийн тооцоолуур */
.calc-months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 600px) { .calc-months { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.calc-month { display: grid; gap: 4px; }
.calc-month span { font-size: .78rem; font-weight: 600; color: var(--muted); }
.calc-month .calc-input { min-height: 42px; padding: 8px 10px; font-size: .95rem; }
.calc-th-main { display: block; }
.calc-th-sub { display: block; font-size: .8rem; font-weight: 500; color: var(--muted); margin-top: 2px; }
.calc-table tr.total .calc-th-sub { font-family: var(--f-body, inherit); font-weight: 500; }
input[type="date"].calc-input { font-family: var(--f-head); }
@media (max-width: 600px) { .calc-switch { gap: 6px; } .calc-switch a { padding: 7px 12px; font-size: .82rem; } }
.footer-note { opacity: .7; font-size: .8rem; }
.calc-alert { margin: -6px 0 22px; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--gold-line); border-left: 4px solid var(--gold); background: var(--gold-soft); font-size: .9rem; color: var(--text); }
.calc-alert strong { color: var(--navy); }
.q-sub-hint { font-weight: 500; color: var(--muted); font-size: .88em; }
