/* onlinehr.mn — 2026-10. Токен нь вэб аппын Elera системээс (online-hr-front-v1.1/tailwind.config.js) */
:root {
  --canvas: #E6E6E2;
  --shell: #F6F6F4;
  --card: #FFFFFF;
  --ink: #1B1B1B;
  --muted: #6B6B66;
  --line: #E2E2DD;
  --charcoal: #2B2B2B;
  --charcoal-hover: #111111;
  --accent: #9BE39B;
  --accent-ink: #173D1F;
  --accent-soft: #E8F7E8;
  --warn: #8A5A00;
  --warn-soft: #FFF1D6;
  --on-dark-muted: #BDBDB7;
  --f-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: ui-monospace, "SF Mono", Consolas, monospace;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--shell);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 112px); }
.section-head { display: grid; gap: 14px; max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.eyebrow { font-size: 12px; letter-spacing: .09em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(34px, 4.6vw, 52px); line-height: 1.02; letter-spacing: -.01em; }
.lead { color: var(--muted); font-size: 17px; max-width: 58ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 12px 22px; font: 600 15px/1.2 var(--f-body);
  text-decoration: none; white-space: nowrap; border: 0; cursor: pointer;
  transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn-dark { background: var(--charcoal); color: #fff; }
.btn-dark:hover { background: var(--charcoal-hover); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px #CFCFC9; }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #8AD88A; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--shell) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,.35); }
.nav { display: flex; align-items: center; gap: 24px; height: 68px; transition: height .2s ease; }
.site-header.scrolled .nav { height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.01em; flex-shrink: 0; }
.brand img { width: 30px; height: 30px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-right: auto; font-size: 14.5px; }
.nav-links > a {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px;
  text-decoration: none; color: var(--muted); font-weight: 500;
  transition: color .15s ease, background-color .15s ease;
}
.nav-links > a:hover { color: var(--ink); background: rgba(0,0,0,.045); }
.nav-links > a[aria-current] { color: var(--ink); background: #fff; box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(0,0,0,.04); }
.nav-badge {
  font-size: 10.5px; font-weight: 600; line-height: 1; letter-spacing: .02em;
  padding: 4px 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink);
}
.nav-menu-cta { display: none; }
.nav-cta { display: flex; gap: 8px; }
.nav-cta .btn-dark span { transition: transform .15s ease; }
.nav-cta .btn-dark:hover span { transform: translateX(2px); }
.nav-toggle {
  display: none; width: 42px; height: 42px; margin-left: 4px; border: 0; border-radius: 12px;
  background: transparent; cursor: pointer; position: relative; flex-shrink: 0;
}
.nav-toggle:hover { background: rgba(0,0,0,.05); }
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .2s ease, top .2s ease;
}
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 24px; }
.nav-open .nav-toggle span:first-child { top: 20px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 20px; transform: rotate(-45deg); }

/* Компьютер: цэс яг голд — лого | цэс | товч (хоёр талын өргөнөөс үл хамаарна) */
@media (min-width: 861px) {
  .nav { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .brand { justify-self: start; }
  .nav-links { justify-self: center; margin-right: 0; }
  .nav-cta { justify-self: end; }
}
@media (max-width: 1000px) { .nav-cta .btn-ghost { display: none; } }
@media (max-width: 860px) {
  .nav-cta { margin-left: auto; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 8px);
    flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 10px;
    background: var(--card); border-radius: 20px; box-shadow: 0 0 0 1px var(--line), 0 24px 48px -20px rgba(0,0,0,.3);
    font-size: 16px;
    opacity: 0; transform: translateY(-6px); visibility: hidden; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  }
  .nav-open .nav-links { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .nav-links > a { padding: 13px 14px; border-radius: 12px; justify-content: space-between; color: var(--ink); }
  .nav-links > a[aria-current] { box-shadow: none; background: var(--shell); }
  .nav-open .nav-cta { visibility: hidden; }
  .nav-menu-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
}
@media (max-width: 420px) { .nav-cta { display: none; } .nav-toggle { margin-left: auto; } }

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.tag { justify-self: start; display: inline-flex; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; }
.hero h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(46px, 7vw, 80px); line-height: .98; letter-spacing: -.015em; }
.hero h1 em { font-style: italic; background: linear-gradient(transparent 60%, var(--accent) 60%, var(--accent) 90%, transparent 90%); padding-inline: 4px; }
.hero .lead { font-size: 18px; max-width: 46ch; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; gap: 8px 20px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.trust b { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Hero visual */
.vis { position: relative; padding-bottom: 40px; }
.dash { background: var(--card); border-radius: 22px; padding: 22px; display: grid; gap: 16px; box-shadow: 0 1px 0 var(--line), 0 30px 60px -36px rgba(0,0,0,.45); }
.dash-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; }
.dash-h b { font-weight: 600; }
.dash-h span { color: var(--muted); font-size: 12.5px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { background: var(--shell); border-radius: 12px; padding: 12px; display: grid; gap: 2px; }
.kpi b { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.1; }
.kpi span { font-size: 12px; color: var(--muted); }
.kpi.hi { background: var(--accent-soft); }
.kpi.hi b { color: var(--accent-ink); }
.bars { display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: 6px; height: 86px; }
.bars i { display: block; background: #DCDCD6; border-radius: 5px 5px 2px 2px; }
.bars i.pk { background: var(--charcoal); }
.bars-x { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); font-family: var(--f-mono); margin-top: 6px; }
.req { display: flex; align-items: center; gap: 12px; font-size: 13.5px; padding-top: 14px; border-top: 1px solid var(--line); }
.av { width: 30px; height: 30px; border-radius: 50%; background: #E3DCCF; color: #5A4A2A; display: grid; place-items: center; font-size: 11.5px; font-weight: 600; flex: none; }
.req .grow { flex: 1; min-width: 0; }
.req small { display: block; color: var(--muted); font-size: 12px; }
.chip { font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); white-space: nowrap; }
.phone-toast { position: absolute; right: -8px; bottom: 0; width: 196px; background: var(--charcoal); color: #fff; border-radius: 18px; padding: 14px 15px; display: grid; gap: 4px; box-shadow: 0 18px 34px -16px rgba(0,0,0,.55); font-size: 12.5px; }
.phone-toast b { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; }
.phone-toast span { color: var(--on-dark-muted); }
.ok { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-weight: 600; }
.ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
@media (max-width: 520px) { .phone-toast { position: relative; right: auto; width: auto; margin-top: 12px; } .vis { padding-bottom: 0; } .kpi b { font-size: 22px; } }

/* Flow */
.flow-sec { background: var(--canvas); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: fl; }
.step { background: var(--card); border-radius: 18px; padding: 22px; display: grid; gap: 8px; align-content: start; counter-increment: fl; }
.step::before { content: counter(fl, decimal-leading-zero); font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.step h3 { font-size: 17px; font-weight: 600; }
.step p { font-size: 14.5px; color: var(--muted); }
.step.last { background: var(--charcoal); color: #fff; }
.step.last p, .step.last::before { color: var(--on-dark-muted); }
@media (max-width: 900px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .flow { grid-template-columns: 1fr; } }

/* Modules */
.mods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.mod { background: var(--card); padding: 24px; display: grid; gap: 6px; align-content: start; }
.mod h3 { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.mod h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.mod p { font-size: 14.5px; color: var(--muted); }
@media (max-width: 860px) { .mods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .mods { grid-template-columns: 1fr; } }

/* App */
.app-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.app-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.app-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 16px; }
.app-list .ic { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; }
.app-list .ic svg { width: 20px; height: 20px; }
.app-list h3 { font-size: 16.5px; font-weight: 600; }
.app-list p { font-size: 14.5px; color: var(--muted); }
.device { justify-self: center; width: min(300px, 100%); background: var(--charcoal); border-radius: 40px; padding: 12px; box-shadow: 0 40px 70px -40px rgba(0,0,0,.6); }
.screen { background: var(--shell); border-radius: 30px; padding: 22px 16px 18px; display: grid; gap: 12px; }
.screen-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.screen h4 { margin: 0; font-size: 18px; font-weight: 600; }
.clock { background: var(--card); border-radius: 18px; padding: 18px; display: grid; gap: 4px; justify-items: center; text-align: center; }
.clock b { font-size: 40px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.clock span { font-size: 12.5px; color: var(--muted); }
.clock .btn { margin-top: 10px; width: 100%; color: #fff; }
.mini { background: var(--card); border-radius: 14px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; }
.mini small { display: block; color: var(--muted); font-size: 11.5px; }
.mini .st { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap; }
@media (max-width: 860px) { .app-grid { grid-template-columns: 1fr; } .device { order: -1; } }

/* Pricing */
.price-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.price-head .section-head { margin-bottom: 0; }
.toggle { display: inline-flex; background: var(--canvas); border-radius: 999px; padding: 4px; }
.toggle button { border: 0; background: transparent; font: 600 14px/1 var(--f-body); color: var(--muted); padding: 10px 18px; border-radius: 999px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.toggle small { color: var(--accent-ink); font-weight: 600; margin-left: 4px; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tier { background: var(--card); border-radius: 22px; padding: 28px; display: grid; gap: 18px; align-content: start; border: 1px solid var(--line); }
.tier h3 { font-size: 18px; font-weight: 600; }
.price { font-size: 42px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.price small { font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.tier ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 14.5px; }
.tier li { display: flex; gap: 10px; }
.tier li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%23173D1F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.tier .btn { justify-self: start; }
.price-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; font-size: 16.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 24px; font-weight: 400; color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--muted); font-size: 15px; max-width: 62ch; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* Contact band */
.band { background: var(--charcoal); color: #fff; border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.band .h2 { color: #fff; }
.band .lead { color: var(--on-dark-muted); margin-top: 14px; }
.contacts { display: grid; gap: 12px; }
.contact { display: flex; align-items: center; gap: 16px; background: #3A3A38; border-radius: 16px; padding: 16px 18px; text-decoration: none; color: #fff; transition: background-color .15s ease; min-width: 0; }
.contact:hover { background: #444441; }
.contact .ic { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.contact .ic svg { width: 20px; height: 20px; }
.contact span { display: grid; font-size: 18px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.contact small { font-size: 12.5px; color: var(--on-dark-muted); font-weight: 500; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { padding-block: 48px 56px; font-size: 14px; color: var(--muted); }
.foot { display: flex; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 32px; }
.foot nav { display: flex; gap: 10px 24px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* Legal pages */
.legal { padding-block: clamp(40px, 7vw, 80px) clamp(56px, 8vw, 96px); }
.legal-head { display: grid; gap: 12px; margin-bottom: 40px; }
.legal-body { max-width: 72ch; display: grid; gap: 14px; font-size: 15.5px; }
.legal-body h2 { font-size: 20px; font-weight: 600; margin-top: 18px; }
.legal-body p { color: #3E3E3A; }

/* Үнэгүй хэрэгслүүд (#tools, /tools/) */
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tool { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: grid; gap: 10px; align-content: start; text-decoration: none; color: var(--ink); transition: border-color .15s ease, transform .15s ease; }
.tool:hover { border-color: var(--ink); transform: translateY(-2px); }
.tool .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 4px; }
.tool .ic svg { width: 22px; height: 22px; }
.tool h3 { font-size: 19px; font-weight: 600; }
.tool p { font-size: 15px; color: var(--muted); }
.tool .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.tool .chips span { font-size: 12.5px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--shell); border: 1px solid var(--line); color: var(--muted); }
.tool .go { font-weight: 600; font-size: 14.5px; margin-top: 4px; }
@media (max-width: 760px) { .tools { grid-template-columns: 1fr; } }
.tools-page main { padding-block: clamp(40px, 7vw, 80px) clamp(56px, 8vw, 96px); }
