/* "Орчид Ассуранс" Аудит ХХК — платформын хэв маяг.
   Прототайпын өнгө, зай, бүрэлдэхүүнийг нэг файлд. */

/* Брэндийн өнгө нь "Цахим хуудасны контент" танилцуулгаас (Burgundy — corporate,
   Gold — accent, white / warm neutral) авсан эх утгууд. */

:root {
  --navy: #74142b;          /* burgundy — үндсэн корпорэйт өнгө */
  --navy-700: #4e0c1e;      /* гүн burgundy */
  --gold: #b88f38;          /* алтан — онцлох өнгө */
  --gold-ink: #8a6a2b;      /* алтан текст (бичвэрт тод харагдана) */
  --gold-50: #f6efe1;
  --ink: #312d2b;
  --muted: #968c87;
  --line: #e6dad5;
  --bg: #f8f5f0;            /* warm neutral */
  --white: #fff;
  --bad: #b3261e;
  --bad-bg: #fdecea;
  --warn: #8a5b00;
  --warn-bg: #fff6e0;
  --ok: #1a6b3c;
  --ok-bg: #e8f5ec;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(13, 43, 69, .08), 0 4px 12px rgba(13, 43, 69, .05);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.6 "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy-700); }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.25; font-weight: 600; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; }
p { margin: 0 0 .75rem; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- бүрхүүл */

.topbar {
  display: flex; align-items: center; gap: 1rem;
  background: var(--navy); color: #fff; padding: .7rem 1.25rem;
}
.topbar .brand { font-weight: 600; letter-spacing: .02em; }
.topbar .brand small { display: block; font-size: .72rem; opacity: .7; font-weight: 400; }
.topbar .spacer { flex: 1; }
.topbar .who { font-size: .85rem; opacity: .9; text-align: right; }
.topbar .who b { display: block; font-weight: 600; }
.topbar a { color: #dce6f0; text-decoration: none; font-size: .85rem; }
.topbar a:hover { color: #fff; }

.shell { display: flex; min-height: calc(100vh - 54px); align-items: stretch; }

.sidebar {
  width: 232px; flex: 0 0 232px; background: #fff; border-right: 1px solid var(--line);
  padding: 1rem .6rem;
}
.sidebar .group { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin: 1rem .65rem .35rem; }
.sidebar a {
  display: flex; justify-content: space-between; align-items: center; gap: .4rem;
  padding: .45rem .65rem; border-radius: var(--radius); color: var(--ink);
  text-decoration: none; font-size: .9rem;
}
.sidebar a:hover { background: var(--bg); }
.sidebar a.on { background: var(--navy); color: #fff; }
.sidebar .count {
  background: var(--bad); color: #fff; border-radius: 999px;
  font-size: .7rem; padding: 0 .4rem; min-width: 1.2rem; text-align: center;
}
.sidebar a.on .count { background: rgba(255,255,255,.25); }

.content { flex: 1; padding: 1.25rem 1.5rem 3rem; min-width: 0; }
.crumb { font-size: .78rem; color: var(--muted); margin-bottom: .35rem; }
.head { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center;
  justify-content: space-between; margin-bottom: 1rem; }

/* ---------------------------------------------------------------- хэсгүүд */

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1rem 1.1rem; margin-bottom: 1rem;
}
.card > h2, .card > h3 { margin-top: 0; }
.grid { display: grid; gap: 1rem; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid.pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .grid.pair { grid-template-columns: 1fr; } }
.grid.c5 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .8rem .9rem; }
.stat .n { font-size: 1.6rem; font-weight: 600; }
.stat .label { font-size: .78rem; color: var(--muted); }
.stat.alert { border-left: 3px solid var(--bad); }
.stat.alert .n { color: var(--bad); }
.stat.warn { border-left: 3px solid var(--warn); }
.stat.warn .n { color: var(--warn); }

table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line);
  vertical-align: top; }
th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); font-weight: 600; background: #fafbfc; }
tbody tr:hover { background: #fafbfc; }
tr.row-bad { background: var(--bad-bg); }
tr.row-warn { background: var(--warn-bg); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.tag { display: inline-block; font-size: .72rem; padding: .1rem .45rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; white-space: nowrap; }
.tag.bad { background: var(--bad-bg); border-color: #f3c7c3; color: var(--bad); }
.tag.warn { background: var(--warn-bg); border-color: #f0dca8; color: var(--warn); }
.tag.ok { background: var(--ok-bg); border-color: #bfe0cb; color: var(--ok); }
.tag.navy { background: #eaf0f6; border-color: #cfdbe7; color: var(--navy); }

.alertbox { border-radius: var(--radius); border: 1px solid var(--line);
  padding: .6rem .8rem; margin-bottom: .5rem; font-size: .88rem; }
.alertbox.bad { background: var(--bad-bg); border-color: #f3c7c3; }
.alertbox.warn { background: var(--warn-bg); border-color: #f0dca8; }
.alertbox.ok { background: var(--ok-bg); border-color: #bfe0cb; }
.alertbox .t { display: block; font-weight: 600; }
.alertbox .d { display: block; color: var(--muted); }

.check { border-top: 1px solid var(--line); padding: .55rem 0; }
.check:first-child { border-top: 0; }
.check .t { display: block; font-weight: 600; }
.check .d { display: block; }
.check .law { display: block; font-size: .75rem; color: var(--muted); }

/* ---------------------------------------------------------------- формууд */

label, .flabel { display: block; font-size: .8rem; color: var(--muted); margin-bottom: .2rem; }
.input, input[type=text], input[type=date], input[type=number], input[type=email],
input[type=url], input[type=password], select, textarea {
  width: 100%; padding: .45rem .55rem; border: 1px solid #cbd5e0;
  border-radius: var(--radius); font: inherit; background: #fff; color: var(--ink);
}
textarea { resize: vertical; }
.field { margin-bottom: .75rem; }
.field .help { font-size: .76rem; color: var(--muted); }
.field .err { font-size: .78rem; color: var(--bad); }
.fields { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.inline { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.inline label { margin: 0; }
ul.radio { list-style: none; margin: 0; padding: 0; display: flex; gap: .75rem; }
ul.radio li label { display: inline-flex; gap: .25rem; align-items: center; color: var(--ink); }
input[type=checkbox], input[type=radio] { width: auto; }

.btn {
  display: inline-block; padding: .45rem .9rem; border-radius: var(--radius);
  border: 1px solid var(--navy); background: var(--navy); color: #fff;
  font: inherit; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--navy-700); }
.btn.ghost { background: #fff; color: var(--navy); }
.btn.ghost:hover { background: var(--bg); }
.btn.gold { background: var(--gold); border-color: var(--gold); }
.btn.sm { padding: .25rem .6rem; font-size: .82rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.msg { padding: .6rem .8rem; border-radius: var(--radius); margin-bottom: .6rem; font-size: .9rem; }
.msg.success { background: var(--ok-bg); border: 1px solid #bfe0cb; }
.msg.error { background: var(--bad-bg); border: 1px solid #f3c7c3; }
.msg.info, .msg.warning { background: var(--warn-bg); border: 1px solid #f0dca8; }

/* табууд, визард */
.tabs { display: flex; flex-wrap: wrap; gap: .25rem; border-bottom: 1px solid var(--line);
  margin-bottom: 1rem; }
.tabs a { padding: .45rem .8rem; text-decoration: none; color: var(--muted);
  border-bottom: 2px solid transparent; font-size: .9rem; }
.tabs a.on { color: var(--navy); border-bottom-color: var(--gold); font-weight: 600; }

.steps { display: flex; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.steps .s { display: flex; align-items: center; gap: .4rem; font-size: .85rem;
  color: var(--muted); padding: .35rem .7rem; border: 1px solid var(--line);
  border-radius: 999px; background: #fff; }
.steps .s .n { width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--line);
  color: var(--ink); display: grid; place-items: center; font-size: .75rem; }
.steps .s.on { border-color: var(--navy); color: var(--navy); font-weight: 600; }
.steps .s.on .n { background: var(--navy); color: #fff; }
.steps .s.done .n { background: var(--ok); color: #fff; }

.kv { display: grid; grid-template-columns: minmax(130px, 32%) 1fr; gap: .3rem .8rem;
  font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.right { text-align: right; }
.mono { font-family: "Cascadia Mono", Consolas, monospace; font-size: .85rem; }

/* ---------------------------------------------------------------- нийтийн хуудас */

.site-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .7rem 2rem; background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-nav .logo img { display: block; height: 42px; width: auto; }
.site-nav .links { display: flex; align-items: center; gap: 1.3rem;
  margin-left: auto; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: .88rem; }
.site-nav a:hover { color: var(--navy); }
.site-nav .cta { background: var(--navy); color: #fff; padding: .4rem .9rem;
  border-radius: var(--radius); }
.site-nav .cta:hover { background: var(--navy-700); color: #fff; }
.site-nav .lang { border: 1px solid var(--line); border-radius: var(--radius);
  padding: .25rem .55rem; font-size: .78rem; letter-spacing: .04em;
  color: var(--muted); }
.site-nav .lang:hover { border-color: var(--gold); color: var(--gold-ink); }
.site-nav .quiet { color: var(--muted); font-size: .8rem; }

.hero {
  position: relative; overflow: hidden; color: #fff; padding: 4.5rem 2rem 4rem;
  background:
    radial-gradient(120% 140% at 85% 0%, rgba(184,143,56,.28) 0%, rgba(184,143,56,0) 55%),
    linear-gradient(150deg, var(--navy) 0%, var(--navy-700) 100%);
}
.hero .wrap { max-width: 1080px; margin: 0 auto; position: relative; z-index: 1; }
.hero .eyebrow { color: var(--gold); font-size: .75rem; letter-spacing: .18em;
  text-transform: uppercase; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.12; max-width: 17ch;
  margin: .75rem 0 .4rem; font-weight: 600; }
.hero h1 .gold { color: var(--gold); display: block; }
.hero .tagline { color: rgba(255,255,255,.62); font-size: .92rem; font-style: italic;
  letter-spacing: .02em; margin-bottom: 1.1rem; }
.hero p.text { max-width: 56ch; color: rgba(255,255,255,.88); font-size: 1.02rem; }
.hero .rule { width: 56px; height: 2px; background: var(--gold); margin: 1.4rem 0; }

.statband { background: var(--navy-700); color: #fff; padding: 1.6rem 2rem; }
.statband .wrap { max-width: 1080px; margin: 0 auto;
  display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.statband .n { font-size: 2.3rem; font-weight: 600; color: var(--gold);
  line-height: 1; display: inline-block; }
.statband .unit { color: rgba(255,255,255,.75); font-size: .9rem; margin-left: .3rem; }
.statband .label { color: rgba(255,255,255,.72); font-size: .84rem; margin-top: .3rem; }

.section { padding: 3.2rem 2rem; }
.section.alt { background: var(--white); }
.section.ink { background: var(--navy); color: #fff; }
.section.ink .lead, .section.ink .muted { color: rgba(255,255,255,.75); }
.section.ink .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14);
  box-shadow: none; color: #fff; }
.section .wrap { max-width: 1080px; margin: 0 auto; }
.section h2 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); }
.label {
  display: block; color: var(--gold-ink); font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; margin-bottom: .45rem;
}
.section.ink .label { color: var(--gold); }
.lead { color: var(--muted); max-width: 64ch; font-size: 1rem; }

.pill { display: inline-block; background: var(--gold-50); color: var(--gold-ink);
  border: 1px solid #e8d7b4; border-radius: 999px; padding: .2rem .7rem; font-size: .76rem; }

/* ORCHID арга зүйн сүлжээ */
.method { display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.method .step { display: flex; gap: .9rem; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem; }
.section.ink .method .step { background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.14); }
.method .letter {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.25rem; font-weight: 600;
  color: var(--gold); border: 1px solid var(--gold);
}
.method .t { font-weight: 600; display: block; }
.method .en { display: block; font-size: .78rem; color: var(--gold-ink);
  letter-spacing: .04em; }
.section.ink .method .en { color: var(--gold); }
.method .d { display: block; font-size: .87rem; color: var(--muted); margin-top: .3rem; }
.section.ink .method .d { color: rgba(255,255,255,.72); }

/* Үйлчилгээний карт */
.svc { border-top: 2px solid var(--gold); }
.svc h3 { margin-bottom: .35rem; }

/* Үүсгэн байгуулагчид */
.founder { background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.founder .top { background: var(--navy); color: #fff; padding: 1rem 1.1rem; }
.founder .area { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); }
.founder .name { font-size: 1.15rem; font-weight: 600; margin-top: .35rem; }
.founder .role { font-size: .88rem; color: rgba(255,255,255,.82); }
.founder .cred { font-size: .78rem; color: rgba(255,255,255,.62); margin-top: .15rem; }
.founder ul { margin: 0; padding: 1rem 1.1rem 1.1rem 2.1rem; font-size: .89rem; }
.founder li { margin-bottom: .35rem; }

.strip { background: var(--gold-50); border-top: 1px solid #e8d7b4;
  border-bottom: 1px solid #e8d7b4; padding: .9rem 2rem; text-align: center;
  color: var(--gold-ink); font-size: .78rem; letter-spacing: .12em; }

.site-foot { background: var(--navy-700); color: rgba(255,255,255,.72);
  padding: 2.5rem 2rem 1.5rem; font-size: .86rem; }
.site-foot .wrap { max-width: 1080px; margin: 0 auto;
  display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-foot img { height: 40px; width: auto; display: block; margin-bottom: .6rem; }
.site-foot b { color: #fff; display: block; margin-bottom: .4rem; }
.site-foot a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-foot a:hover { color: var(--gold); }
.site-foot .tagline { color: var(--gold); font-style: italic; }
.site-foot .bottom { max-width: 1080px; margin: 1.6rem auto 0; padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.14); font-size: .78rem;
  color: rgba(255,255,255,.55);
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; }

@media (max-width: 860px) {
  .shell { flex-direction: column; }
  .sidebar { width: auto; flex: none; border-right: 0; border-bottom: 1px solid var(--line);
    display: flex; flex-wrap: wrap; gap: .25rem; }
  .sidebar .group { width: 100%; margin: .35rem .65rem .1rem; }
  .content { padding: 1rem; }
  .kv { grid-template-columns: 1fr; }
  .site-nav { padding: .7rem 1rem; gap: .75rem; }
  .site-nav .links { gap: .8rem; }
  .hero { padding: 3rem 1rem 2.5rem; }
  .statband, .section, .strip { padding-left: 1rem; padding-right: 1rem; }
  .site-foot { padding: 2rem 1rem 1.25rem; }
}
