/* ═══════════════════════════════════════════════
   XEW.MN — Загварын хуудас
   Брэндийн өнгө: хар улаан → улаан уусгал
   (#6B0D14 → #C41E22) + зөөлөн цайвар суурь
   ═══════════════════════════════════════════════ */

/* ── 1. Өнгө, хэмжээний хувьсагчид ───────────── */
:root {
  /* Брэндийн өнгө — улаан (үндсэн) */
  --brand:        #C41E22;   /* үндсэн улаан */
  --brand-dark:   #96131A;   /* хар улаан */
  --brand-darker: #6B0D14;   /* хамгийн бараан */
  --brand-soft:   #E8574E;   /* цайвар улаан */
  --brand-tint:   #FBE6E5;   /* маш цайвар суурь */

  /* Брэндийн өнгө — алтан (хоёрдогч, логоноос авсан) */
  --gold:       #F0C368;   /* үндсэн алтан */
  --gold-light: #F9DFA4;   /* цайвар алтан */
  --gold-dark:  #C9922B;   /* бараан алтан — текстэд */
  --gold-deep:  #8A6112;   /* хамгийн бараан */
  --gold-tint:  #FDF3DF;   /* маш цайвар суурь */

  /* Суурь өнгө */
  --cream:      #FAF1EF;
  --cream-deep: #F0DCD9;
  --white:      #FFFFFF;

  /* Текст */
  --ink:   #2A1214;
  --ink-2: #6B4044;
  --ink-3: #9B7275;

  /* Тусламж */
  --danger:  #D33A2C;
  --success: #2E9E5B;
  --warning: #E0A11B;

  /* Хэлбэр */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-full: 999px;

  /* Сүүдэр */
  --sh-sm: 0 2px 8px rgba(46, 26, 17, .08);
  --sh-md: 0 8px 24px rgba(46, 26, 17, .12);
  --sh-lg: 0 24px 60px rgba(46, 26, 17, .22);

  /* Хэмжээ */
  --nav-h: 68px;
  --banner-h: 0px;
  --wrap: 1180px;
}

/* ── 2. Үндсэн тохиргоо ──────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + var(--banner-h) + 12px); }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo__text {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -.02em;
}

button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.is-hidden { display: none !important; }

/* ── 3. Хөдөлгөөнт цэг (тэмдэглэгээнд) ───────── */
@keyframes pulse {
  0%, 100% { opacity: 1;  transform: scale(1); }
  50%      { opacity: .4; transform: scale(.8); }
}

/* ── 4. Толгойн цэс ──────────────────────────── */
.nav {
  position: fixed;
  top: var(--banner-h);
  left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(251, 239, 232, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background .25s;
}

.nav.is-stuck {
  border-bottom-color: var(--cream-deep);
  box-shadow: var(--sh-sm);
  background: rgba(251, 239, 232, .95);
}

.nav__inner {
  max-width: var(--wrap);
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 26px;
}

/* Лого */
.logo { display: flex; align-items: center; gap: 9px; flex: none; }

.logo__mark {
  width: 34px; height: 34px;
  flex: none;
  border-radius: 10px;
  overflow: hidden;
  background: var(--brand-darker);
  box-shadow: 0 2px 9px rgba(107, 13, 20, .28);
}

.logo__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.logo__mark--lg { width: 44px; height: 44px; border-radius: 13px; }

.logo__text { font-size: 19px; font-weight: 900; letter-spacing: -.03em; }
.logo__dot  { color: var(--brand); }

/* Холбоосууд */
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
}

.nav__links a {
  padding: 8px 13px;
  border-radius: var(--r-full);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .18s, background .18s;
}

.nav__links a:hover { color: var(--ink); background: var(--brand-tint); }

/* Нэвтрэх товчнууд */
.nav__auth { display: flex; align-items: center; gap: 9px; flex: none; }

/* ── 5. Товчнууд ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid transparent;
  border-radius: var(--r-full);
  padding: 10px 20px;
  font-size: 14.5px;
  font-weight: 600;
  transition: transform .15s, background .18s, color .18s, border-color .18s, box-shadow .18s;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn--solid {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(196, 30, 34,.32);
}
.btn--solid:hover { background: var(--brand-dark); box-shadow: 0 6px 20px rgba(196, 30, 34,.42); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--brand-tint); }

.btn--outline {
  background: transparent;
  color: var(--brand-dark);
  border-color: var(--brand);
}
.btn--outline:hover { background: var(--brand); color: var(--white); }

.btn--lg   { padding: 14px 30px; font-size: 16px; }
.btn--full { width: 100%; padding: 13px 20px; font-size: 15.5px; }

.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--brand-dark);
  font-weight: 600;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link-btn:hover { color: var(--brand-darker); }

/* ── 6. Хэрэглэгчийн чип + унждаг цэс ────────── */
.nav__user { position: relative; flex: none; }

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--white);
  border: 1.5px solid var(--cream-deep);
  border-radius: var(--r-full);
  padding: 5px 13px 5px 5px;
  transition: border-color .18s, box-shadow .18s;
}
.user-chip:hover { border-color: var(--brand-soft); box-shadow: var(--sh-sm); }

.user-chip__avatar {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: var(--brand);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
  flex: none;
  text-transform: uppercase;
}

.user-chip__name  { font-size: 14px; font-weight: 600; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip__caret { font-size: 11px; color: var(--ink-3); transition: transform .2s; }
.user-chip[aria-expanded="true"] .user-chip__caret { transform: rotate(180deg); }

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 250px;
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  padding: 7px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}

.user-dropdown.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

.user-dropdown__head {
  padding: 11px 12px 13px;
  border-bottom: 1px solid var(--cream);
  margin-bottom: 6px;
}
.user-dropdown__name  { font-weight: 700; font-size: 14.5px; }
.user-dropdown__email { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; }

.user-dropdown__item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  background: none;
  border: 0;
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-align: left;
  transition: background .15s, color .15s;
}
.user-dropdown__item:hover:not([disabled]) { background: var(--brand-tint); color: var(--ink); }
.user-dropdown__item[disabled] { opacity: .5; cursor: default; }
.user-dropdown__item em {
  margin-left: auto;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 600;
  color: var(--ink-3);
  background: var(--cream);
  padding: 2px 7px;
  border-radius: var(--r-full);
}
.user-dropdown__item--danger { color: var(--danger); }
.user-dropdown__item--danger:hover:not([disabled]) { background: #FBE6E4; color: var(--danger); }

/* ── 7. Бургерийн товч (гар утас) ────────────── */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: 0;
  flex: none;
}
.nav__burger span {
  display: block;
  height: 2px;
  width: 21px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 8. Нүүр хэсэг (hero) ────────────────────── */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + var(--banner-h) + 70px) 22px 90px;
  overflow: hidden;
  background: var(--brand);
  color: var(--white);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(780px 470px at 76% 6%,  rgba(255,255,255,.16), transparent 60%),
    radial-gradient(620px 460px at 10% 96%, rgba(45,3,7,.55),      transparent 68%),
    linear-gradient(155deg, #D2262A 0%, #A8161C 42%, #5E0A11 100%);
}

.hero__inner {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  text-align: center;
}

.hero__kicker {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .85;
}

.hero__title {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -.035em;
}
/* Логоны алтан өнгөтэй уялдуулсан тодотгол */
.hero__title-accent {
  background: linear-gradient(100deg, var(--gold-light) 0%, var(--gold) 45%, #E8A63F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  max-width: 620px;
  margin: 22px auto 0;
  font-size: clamp(1rem, 2vw, 1.15rem);
  opacity: .93;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px;
  margin-top: 36px;
}

.hero .btn--solid {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, #E4A63C);
  color: #4A3005;
  box-shadow: 0 6px 24px rgba(45, 3, 7, .42);
}
.hero .btn--solid:hover {
  background: linear-gradient(135deg, #FFEBC4, var(--gold-light) 55%, var(--gold));
  box-shadow: 0 9px 30px rgba(45, 3, 7, .5);
}

.hero .btn--outline { color: var(--white); border-color: rgba(255,255,255,.55); }
.hero .btn--outline:hover { background: var(--white); color: var(--brand-dark); border-color: var(--white); }

.hero__stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 48px;
  margin-top: 56px;
  padding-top: 34px;
  border-top: 1px solid rgba(255,255,255,.22);
}
.hero__stat { display: flex; flex-direction: column; align-items: center; }
.hero__stat strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}
.hero__stat span { font-size: 12.5px; opacity: .8; margin-top: 5px; letter-spacing: .04em; }

/* Нэвтэрсэн хэрэглэгчийн асуулт */
.hero__lead--ask {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 500;
  opacity: 1;
}

/* Үйлчилгээний хурдан сонголт */
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, .13);
  border: 1.5px solid rgba(255, 255, 255, .3);
  color: var(--white);
  font-size: 14.5px;
  font-weight: 600;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .18s, border-color .18s, transform .18s;
}
.chip span { font-size: 16px; line-height: 1; }
.chip:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--brand-dark);
  transform: translateY(-2px);
}

/* ── 9. Модал цонх ───────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
}
.modal[hidden] { display: none; }

.modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(46, 26, 17, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn .22s ease;
}

.modal__box {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 34px 34px 26px;
  margin: auto;
  animation: popIn .26s cubic-bezier(.2, .9, .3, 1.2);
}

@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn  { from { opacity: 0; transform: translateY(16px) scale(.97); } }

.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--cream);
  border: 0;
  border-radius: 50%;
  color: var(--ink-2);
  font-size: 14px;
  transition: background .16s, color .16s, transform .16s;
}
.modal__close:hover { background: var(--brand-tint); color: var(--ink); transform: rotate(90deg); }

/* ── 11. Нэвтрэх цонхны агуулга ──────────────── */
.auth__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.auth__title { font-size: 1.55rem; text-align: center; }
.auth__sub {
  margin: 7px 0 22px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-3);
}

/* Табууд */
.auth__tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--cream);
  border-radius: var(--r-full);
  padding: 4px;
  margin-bottom: 20px;
}

.auth__tab {
  position: relative;
  z-index: 1;
  background: none;
  border: 0;
  border-radius: var(--r-full);
  padding: 9px 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: color .2s;
}
.auth__tab.is-active { color: var(--white); }

.auth__tab-slider {
  position: absolute;
  z-index: 0;
  top: 4px; left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: var(--brand);
  border-radius: var(--r-full);
  box-shadow: 0 3px 10px rgba(196, 30, 34,.35);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}
.auth__tab-slider.is-right { transform: translateX(100%); }

/* Форм */
.auth__form { display: flex; flex-direction: column; gap: 15px; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"] {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  transition: border-color .18s, background .18s, box-shadow .18s;
}

.field input::placeholder { color: var(--ink-3); }

.field input:focus {
  outline: none;
  background: var(--white);
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(196, 30, 34,.14);
}

.field.has-error input { border-color: var(--danger); background: #FDF1F0; }
.field.has-error input:focus { box-shadow: 0 0 0 4px rgba(211, 58, 44, .13); }

.field__error {
  display: none;
  font-size: 12.5px;
  color: var(--danger);
  font-weight: 500;
}
.field.has-error .field__error { display: block; }

/* Нууц үг харах товч */
.field__pass { position: relative; }
.field__pass input { padding-right: 46px; }

.field__eye {
  position: absolute;
  top: 50%; right: 6px;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: none;
  border: 0;
  border-radius: var(--r-sm);
  font-size: 15px;
  opacity: .5;
  transition: opacity .16s, background .16s;
}
.field__eye:hover { opacity: 1; background: var(--cream-deep); }
.field__eye.is-on { opacity: 1; }

/* Нууц үгийн хүч */
.strength { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.strength__bar {
  flex: 1;
  height: 5px;
  background: var(--cream-deep);
  border-radius: var(--r-full);
  overflow: hidden;
}
.strength__bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: var(--r-full);
  background: var(--danger);
  transition: width .3s, background .3s;
}
.strength small { font-size: 11.5px; font-weight: 600; color: var(--ink-3); min-width: 52px; }

/* Мөр: checkbox + холбоос */
.field__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  margin-top: -2px;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
}
.check input {
  width: 17px; height: 17px;
  accent-color: var(--brand);
  cursor: pointer;
  flex: none;
}
.check--terms { align-items: flex-start; line-height: 1.45; }
.check--terms input { margin-top: 2px; }

/* Мэдэгдэл */
.alert {
  padding: 11px 14px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 16px;
  border: 1px solid;
}
.alert[hidden] { display: none; }
.alert--error   { background: #FDF1F0; border-color: #F3C9C4; color: #A32A1F; }
.alert--success { background: #EBF8F0; border-color: #BFE6CE; color: #1F7443; }
.alert--info    { background: var(--brand-tint); border-color: #F7C8B2; color: var(--brand-darker); }

.auth__switch {
  margin: 4px 0 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-2);
}

.auth__note {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--cream);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-3);
  text-align: center;
}

/* ── 12. Мэдэгдэл (toast) ────────────────────── */
.toast-wrap {
  position: fixed;
  bottom: 22px; right: 22px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 250px;
  max-width: 340px;
  background: var(--ink);
  color: var(--cream);
  padding: 13px 17px;
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  font-size: 14px;
  font-weight: 500;
  animation: toastIn .3s cubic-bezier(.2,.9,.3,1.2);
}
.toast.is-out { animation: toastOut .25s ease forwards; }
.toast__icon { font-size: 16px; flex: none; }
.toast--success .toast__icon { color: #7BE3A6; }
.toast--error   .toast__icon { color: #FF9C90; }

@keyframes toastIn  { from { opacity: 0; transform: translateX(24px); } }
@keyframes toastOut { to   { opacity: 0; transform: translateX(24px); } }

/* ── 13. Гар утас / таблет ───────────────────── */
@media (max-width: 900px) {
  :root { --nav-h: 62px; }

  .nav__burger { display: flex; }

  .nav__links {
    position: fixed;
    top: calc(var(--nav-h) + var(--banner-h));
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--cream-deep);
    box-shadow: var(--sh-md);
    padding: 10px 16px 18px;
    transform: translateY(-130%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: 13px 14px; border-radius: var(--r-md); font-size: 15.5px; }

  /* Товч, профайл, бургерийг БАРУУН ТИЙШ шахна */
  .nav__inner { padding: 0 14px; gap: 8px; }

  .nav__auth,
  .nav__user { margin-left: auto; }

  .nav__auth { gap: 6px; }
  .nav__auth .btn--ghost { display: none; }
  .nav__auth .btn--solid { padding: 9px 15px; font-size: 13.5px; }

  .user-chip__name  { display: none; }
  .user-chip__caret { display: none; }
  .user-chip { padding: 4px; border-width: 1px; }

  /* Бургер хамгийн захад наалдана */
  .nav__burger { width: 34px; margin-right: -6px; }

  /* Лого цайвар дэвсгэр дээр тодрох */
  .logo__mark { box-shadow: 0 2px 10px rgba(107, 13, 20, .35); }
  .logo__text { font-size: 17.5px; }
}

@media (max-width: 380px) {
  .nav__inner { padding: 0 10px; gap: 6px; }
  .nav__auth .btn--solid { padding: 8px 12px; font-size: 12.5px; }
  .logo__text { font-size: 16px; }
  .logo__mark { width: 30px; height: 30px; }
}

@media (max-width: 560px) {
  .hero { padding-bottom: 66px; }
  .hero__stats { gap: 14px 30px; margin-top: 42px; }
  .modal { padding: 12px; }
  .modal__box { padding: 28px 22px 22px; border-radius: 18px; }
  .field__row { flex-direction: column; align-items: flex-start; gap: 9px; }
  .toast-wrap { left: 14px; right: 14px; bottom: 14px; }
  .toast { min-width: 0; max-width: none; }
}

/* ═══════════════════════════════════════════════
   15. Ерөнхий хэсгийн бүтэц
   ═══════════════════════════════════════════════ */
.section { padding: 84px 0; }
.section__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

.section__head { max-width: 640px; margin-bottom: 34px; }

.section__kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
}

.section__title { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }

.section__lead {
  margin: 14px 0 0;
  font-size: 15.5px;
  color: var(--ink-2);
}
.section__lead strong { color: var(--brand-dark); }

/* ═══════════════════════════════════════════════
   16. Төрлөөр шүүх товчнууд
   ═══════════════════════════════════════════════ */
.tfilter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 32px;
}

.tfilter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--white);
  border: 1.5px solid var(--cream-deep);
  border-radius: var(--r-full);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background .18s, border-color .18s, color .18s, transform .15s;
}
.tfilter:hover { border-color: var(--brand-soft); transform: translateY(-1px); }

.tfilter.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(196, 30, 34, .3);
}

.tfilter em {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--cream);
  color: var(--ink-3);
  padding: 1px 7px;
  border-radius: var(--r-full);
}
.tfilter.is-active em { background: rgba(255,255,255,.24); color: var(--white); }

/* ═══════════════════════════════════════════════
   17. Шилдэг 30 — дугаарласан жагсаалт
   ═══════════════════════════════════════════════ */
.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rank {
  display: grid;
  grid-template-columns: 52px 62px 1fr auto auto 18px;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: var(--r-md);
  padding: 12px 16px;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.rank:hover,
.rank:focus-visible {
  transform: translateX(4px);
  box-shadow: var(--sh-md);
  border-color: var(--brand-soft);
  outline: none;
}

/* Дугаар */
.rank__num {
  font-family: 'Montserrat', sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: var(--ink-3);
  text-align: center;
  letter-spacing: -.05em;
}

/* Эхний гурав — алт, мөнгө, хүрэл */
.rank--top    { box-shadow: var(--sh-sm); }
.rank--top1   { background: linear-gradient(90deg, #FFF6E0, var(--white) 42%); border-color: #F0DBA8; }
.rank--top2   { background: linear-gradient(90deg, #F4F5F7, var(--white) 42%); border-color: #DDE0E4; }
.rank--top3   { background: linear-gradient(90deg, #FBEEE2, var(--white) 42%); border-color: #EDD3BC; }
.rank--top1 .rank__num { color: #D08D06; }
.rank--top2 .rank__num { color: #8E9296; }
.rank--top3 .rank__num { color: #B0703A; }

/* Зураг */
.rank__thumb {
  width: 62px; height: 62px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  font-size: 28px;
}
.rank__thumb span { filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }

/* Мэдээлэл */
.rank__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.rank__name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.rank__meta  { font-size: 12.5px; color: var(--ink-3); }
.rank__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; }

.rank__overall {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-3);
  background: var(--cream);
  padding: 2px 8px;
  border-radius: var(--r-full);
}

/* Жижиг шошго */
.mini {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-full);
  background: var(--cream);
  color: var(--ink-3);
  white-space: nowrap;
}
.mini--open   { background: #E4F6EB; color: #1F7443; }
.mini--closed { background: #EFEAE9; color: #8A7B79; }
.mini--promo  { background: var(--brand-tint); color: var(--brand-dark); }

/* Оноо, үнэ */
.rank__score,
.rank__price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }

.rank__score b { font-size: 16px; font-weight: 800; color: var(--brand-dark); }
.rank__price b { font-size: 14px; font-weight: 700; color: var(--ink); }
.rank__score i,
.rank__price i { font-style: normal; font-size: 11px; color: var(--ink-3); }

.rank__go { font-size: 22px; color: var(--ink-3); text-align: center; }

.rank-empty {
  list-style: none;
  padding: 34px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-3);
  background: var(--white);
  border: 1px dashed var(--cream-deep);
  border-radius: var(--r-md);
}

/* ═══════════════════════════════════════════════
   18. Зэрэглэлийн тэмдэг (S / A / B / C)
   ═══════════════════════════════════════════════ */
.tier-chip {
  font-style: normal;
  font-family: 'Montserrat', sans-serif;
  font-size: 10.5px;
  font-weight: 900;
  color: var(--white);
  padding: 2px 8px;
  border-radius: 6px;
  flex: none;
}
.tier-chip--S { background: linear-gradient(135deg, #F6C744, #D08D06); color: #4A3200; }
.tier-chip--A { background: linear-gradient(135deg, #D8262B, #96131A); }
.tier-chip--B { background: linear-gradient(135deg, #BE8A6E, #8A5A44); }
.tier-chip--C { background: linear-gradient(135deg, #ADA6A3, #7C7573); }

.tier-badge {
  min-width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 900;
  color: var(--white);
}
.tier-badge--S { background: linear-gradient(135deg, #F6C744, #D08D06); color: #4A3200; }
.tier-badge--A { background: linear-gradient(135deg, #D8262B, #96131A); }
.tier-badge--B { background: linear-gradient(135deg, #BE8A6E, #8A5A44); }
.tier-badge--C { background: linear-gradient(135deg, #ADA6A3, #7C7573); }

.tier-badge--lg { min-width: 46px; height: 46px; border-radius: 13px; font-size: 24px; }

/* ═══════════════════════════════════════════════
   18b. Ойролцоох газрууд
   ═══════════════════════════════════════════════ */
.section--alt { background: linear-gradient(180deg, #F6E9E5, var(--cream)); }

.near__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.near__manual {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--ink-2);
}

#districtSelect {
  font: inherit;
  font-size: 14px;
  padding: 9px 13px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--cream-deep);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s;
}
#districtSelect:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(196, 30, 34, .13);
}

.near__status {
  flex-basis: 100%;
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
}
.near__status--ok   { color: var(--success);  font-weight: 600; }
.near__status--err  { color: var(--danger);   font-weight: 600; }
.near__status--warn { color: #B07A0B;         font-weight: 600; }
.near__status--wait { color: var(--ink-2);    font-weight: 600; }

/* Зураг + жагсаалт */
.near__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  align-items: start;
}

.near__mapwrap {
  position: sticky;
  top: calc(var(--nav-h) + var(--banner-h) + 16px);
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: var(--r-lg);
  padding: 14px;
  box-shadow: var(--sh-sm);
}

.near__map { border-radius: var(--r-md); overflow: hidden; }
.map-svg { width: 100%; height: auto; display: block; }

.map-district {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  fill: #B08F8A;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.map-pin circle {
  stroke: #FFFFFF;
  stroke-width: 2;
  cursor: pointer;
  transition: stroke .15s;
}
.map-pin--S circle { fill: #D08D06; }
.map-pin--A circle { fill: #C41E22; }
.map-pin--B circle { fill: #8A5A44; }
.map-pin--C circle { fill: #7C7573; }
.map-pin:hover circle,
.map-pin:focus circle { stroke: #2A1214; outline: none; }
.map-pin.is-top circle { stroke-width: 2.5; }
.map-pin__n {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 900;
  fill: #FFFFFF;
  pointer-events: none;
}

.map-me__dot  { fill: #1E63D6; stroke: #FFFFFF; stroke-width: 3; }
.map-me__halo { fill: rgba(30, 99, 214, .22); animation: mePulse 2.4s ease-out infinite; }

@keyframes mePulse {
  0%   { r: 10; opacity: .85; }
  100% { r: 26; opacity: 0; }
}

.near__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
}
.near__legend span { display: flex; align-items: center; gap: 5px; }

.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot--s  { background: #D08D06; }
.dot--a  { background: #C41E22; }
.dot--b  { background: #8A5A44; }
.dot--c  { background: #7C7573; }
.dot--me { background: #1E63D6; }

.near__mapnote {
  margin: 9px 0 0;
  font-size: 11px;
  color: var(--ink-3);
  text-align: center;
}

/* Ойролцоох жагсаалт */
.near__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.near-item {
  display: grid;
  grid-template-columns: 28px 46px 1fr auto;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: var(--r-md);
  padding: 9px 13px;
  cursor: pointer;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.near-item:hover,
.near-item:focus-visible {
  transform: translateX(3px);
  box-shadow: var(--sh-sm);
  border-color: var(--brand-soft);
  outline: none;
}

.near-item__pin {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 800;
}

.near-item__thumb {
  width: 46px; height: 46px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 21px;
}

.near-item__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.near-item__name {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-family: 'Montserrat', sans-serif;
  font-size: 14.5px;
  font-weight: 800;
}
.near-item__meta { font-size: 11.5px; color: var(--ink-3); }

.near-item__right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.near-item__dist  { font-size: 14px; font-weight: 800; color: var(--brand-dark); }

/* Дэлгэрэнгүй цонхны эрэмбийн тэмдэг */
.pdetail__rank {
  position: absolute;
  left: 16px; bottom: 14px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 13px;
  padding: 4px 11px;
  border-radius: var(--r-full);
}

/* ── Гар утас: жагсаалт, зураг ────────────────── */
@media (max-width: 900px) {
  .near__grid { grid-template-columns: 1fr; }
  .near__mapwrap { position: static; }
}

@media (max-width: 700px) {
  .rank {
    grid-template-columns: 38px 50px 1fr auto;
    gap: 11px;
    padding: 10px 12px;
  }
  .rank__num   { font-size: 21px; }
  .rank__thumb { width: 50px; height: 50px; font-size: 23px; }
  .rank__name  { font-size: 14.5px; }
  .rank__price { display: none; }
  .rank__go    { display: none; }
}

@media (max-width: 520px) {
  .rank { grid-template-columns: 32px 44px 1fr; }
  .rank__score { display: none; }
  .rank__thumb { width: 44px; height: 44px; font-size: 20px; }
  .near-item { grid-template-columns: 24px 38px 1fr auto; gap: 9px; }
  .near-item__thumb { width: 38px; height: 38px; font-size: 18px; }
  .near__controls .btn { width: 100%; }
  .near__manual { width: 100%; }
  #districtSelect { flex: 1; }
}


/* ═══════════════════════════════════════════════
   19. Дэлгэрэнгүй цонх
   ═══════════════════════════════════════════════ */
.modal__box--wide {
  max-width: 620px;
  max-height: 90vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal__box--wide > #placeBody {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.modal__close--float {
  z-index: 2;
  background: rgba(255,255,255,.9);
  box-shadow: var(--sh-sm);
}

.pdetail__hero {
  position: relative;
  flex: none;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.pdetail__emoji { font-size: 62px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.4)); }

.pdetail__body {
  overflow-y: auto;
  padding: 22px 28px 26px;
}

.pdetail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.pdetail__head h2 { font-size: 1.6rem; }

.pdetail__status { font-size: 12.5px; font-weight: 700; }
.pdetail__status.is-open   { color: var(--success); }
.pdetail__status.is-closed { color: var(--ink-3); }

.pdetail__meta { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-3); }

.pdetail__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 20px 0;
  padding: 15px 0;
  border-top: 1px solid var(--cream);
  border-bottom: 1px solid var(--cream);
}
.pdetail__stats div { display: flex; flex-direction: column; gap: 3px; }
.pdetail__stats strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}
.pdetail__stats span { font-size: 11px; color: var(--ink-3); }

.pdetail__tags { display: flex; flex-wrap: wrap; gap: 7px; }

.tag {
  background: var(--brand-tint);
  color: var(--brand-darker);
  border-radius: var(--r-full);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
}

.promo-box {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 18px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--brand-tint), #FFF3E4);
  border: 1px solid #F3C9C4;
  border-radius: var(--r-md);
}
.promo-box__icon {
  width: 34px; height: 34px;
  flex: none;
  display: grid; place-items: center;
  background: var(--brand);
  color: var(--white);
  border-radius: 50%;
  font-weight: 800;
  font-size: 15px;
}
.promo-box strong { display: block; font-size: 13.5px; line-height: 1.4; color: var(--brand-darker); }
.promo-box span   { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

.pdetail__h3 {
  font-size: 1rem;
  margin: 24px 0 11px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-tint);
}

.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  font-size: 14px;
  border-bottom: 1px dashed var(--cream-deep);
}
.menu-list li:last-child { border-bottom: 0; }
.menu-list li span { flex: 1; color: var(--ink-2); }
.menu-list li b { font-weight: 700; color: var(--ink); white-space: nowrap; }

.pdetail__contact p {
  display: flex;
  gap: 10px;
  margin: 0 0 9px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.pdetail__contact span { flex: none; }

.pdetail__note {
  margin: 22px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--cream);
  font-size: 11.5px;
  color: var(--ink-3);
  text-align: center;
}

/* ── Гар утас: хэсэг, дэлгэрэнгүй цонх ───────── */
@media (max-width: 820px) {
  .section { padding: 62px 0; }
  .pdetail__stats { grid-template-columns: repeat(2, 1fr); gap: 14px 10px; }
}

@media (max-width: 560px) {
  .pdetail__body { padding: 18px 20px 22px; }
  .pdetail__hero { height: 124px; }
  .tfilter { padding: 7px 13px; font-size: 13px; }
}

/* ═══════════════════════════════════════════════
   20. Шүүлтүүр (Газрууд хэсэг)
   ═══════════════════════════════════════════════ */
.filters {
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: var(--r-lg);
  padding: 18px;
  margin-bottom: 26px;
  box-shadow: var(--sh-sm);
}

/* Хайлт */
.search { position: relative; margin-bottom: 15px; }

.search__icon {
  position: absolute;
  top: 50%; left: 15px;
  transform: translateY(-50%);
  font-size: 15px;
  opacity: .55;
  pointer-events: none;
}

.search input {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 13px 44px 13px 44px;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus {
  outline: none;
  background: var(--white);
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(196, 30, 34, .13);
}
.search input::-webkit-search-cancel-button { display: none; }

.search__clear {
  position: absolute;
  top: 50%; right: 8px;
  transform: translateY(-50%);
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: var(--cream-deep);
  border: 0;
  border-radius: 50%;
  font-size: 12px;
  color: var(--ink-2);
  transition: background .16s;
}
.search__clear:hover { background: var(--brand-tint); }

/* Сонголтын мөр */
.filters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.fsel { display: flex; flex-direction: column; gap: 5px; }
.fsel > span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.fsel select {
  font: inherit;
  font-size: 14px;
  padding: 9px 12px;
  min-width: 150px;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--cream-deep);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s;
}
.fsel select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(196, 30, 34, .13);
}

/* Унтраалга */
.switch {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  padding-bottom: 9px;
  user-select: none;
}
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }

.switch__box {
  position: relative;
  width: 42px; height: 24px;
  flex: none;
  background: var(--cream-deep);
  border-radius: var(--r-full);
  transition: background .22s;
}
.switch__box::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--sh-sm);
  transition: transform .22s;
}
.switch input:checked + .switch__box { background: var(--brand); }
.switch input:checked + .switch__box::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__box { box-shadow: 0 0 0 4px rgba(196, 30, 34, .2); }

.switch__label { font-size: 14px; font-weight: 600; color: var(--ink-2); }

.filters__reset { margin-bottom: 11px; font-size: 13.5px; }

.filters__count {
  margin: 14px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--cream);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
}
.filters__count:empty { display: none; }

/* ═══════════════════════════════════════════════
   21. Газрын карт (сүлжээ)
   ═══════════════════════════════════════════════ */
.gcards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 18px;
}

.gcard {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.gcard:hover,
.gcard:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--sh-md);
  border-color: var(--brand-soft);
  outline: none;
}

.gcard__thumb {
  position: relative;
  height: 124px;
  display: grid;
  place-items: center;
}
.gcard__emoji { font-size: 46px; filter: drop-shadow(0 3px 9px rgba(0,0,0,.38)); }

.gcard__thumb .tier-badge { position: absolute; top: 9px; left: 9px; }

.gcard__rank {
  position: absolute;
  top: 9px; right: 9px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
  font-size: 11.5px;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: var(--r-full);
}

.gcard__status {
  position: absolute;
  bottom: 9px; right: 9px;
  padding: 3px 9px;
  border-radius: var(--r-full);
  font-size: 10.5px;
  font-weight: 700;
}
.gcard__status.is-open   { background: rgba(46,158,91,.92); color: #fff; }
.gcard__status.is-closed { background: rgba(0,0,0,.52);     color: #fff; }

.gcard__promo {
  position: absolute;
  bottom: 9px; left: 9px;
  background: var(--white);
  color: var(--brand-dark);
  padding: 3px 9px;
  border-radius: var(--r-full);
  font-size: 10.5px;
  font-weight: 700;
}

.gcard__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 15px 15px;
  flex: 1;
}

.gcard__name {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
}
.gcard__meta { margin: 0; font-size: 12px; color: var(--ink-3); }

.gcard__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.tag--sm { font-size: 10.5px; padding: 3px 9px; }

.gcard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid var(--cream);
}
.gcard__score { font-size: 14px; font-weight: 800; color: var(--brand-dark); }
.gcard__price { font-size: 11.5px; font-weight: 600; color: var(--ink-3); }

.gcards__empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 56px 20px;
  background: var(--white);
  border: 1px dashed var(--cream-deep);
  border-radius: var(--r-lg);
  text-align: center;
}
.gcards__empty span { font-size: 34px; opacity: .5; }
.gcards__empty strong { font-family: 'Montserrat', sans-serif; font-size: 17px; }
.gcards__empty p { margin: 0; font-size: 13.5px; color: var(--ink-3); }

/* ═══════════════════════════════════════════════
   22. Урамшуулал
   ═══════════════════════════════════════════════ */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 18px;
}

.pcard-promo {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.pcard-promo:hover,
.pcard-promo:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--sh-md);
  border-color: var(--brand-soft);
  outline: none;
}

.pcard-promo__top {
  position: relative;
  height: 96px;
  display: grid;
  place-items: center;
}
.pcard-promo__emoji { font-size: 38px; filter: drop-shadow(0 3px 9px rgba(0,0,0,.38)); }

.pcard-promo__off {
  position: absolute;
  top: 10px; right: 10px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--white);
  color: var(--brand);
  border-radius: 50%;
  font-weight: 900;
  font-size: 16px;
  box-shadow: var(--sh-sm);
}

.pcard-promo__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
  flex: 1;
}
.pcard-promo__body h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 16px;
  margin: 0;
}
.pcard-promo__meta { margin: 0; font-size: 12px; color: var(--ink-3); }

.pcard-promo__text {
  margin: 4px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
  font-weight: 500;
}

.pcard-promo__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 12px;
}

/* ═══════════════════════════════════════════════
   23. Ажлын байр
   ═══════════════════════════════════════════════ */
.jobs { display: flex; flex-direction: column; gap: 11px; }

.job {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: var(--r-md);
  padding: 14px 17px;
  transition: box-shadow .18s, border-color .18s;
}
.job:hover { box-shadow: var(--sh-sm); border-color: var(--brand-soft); }

.job__logo {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  font-size: 25px;
}

.job__main { min-width: 0; }
.job__title { font-size: 16px; margin: 0 0 3px; }
.job__where { margin: 0 0 8px; font-size: 12.5px; color: var(--ink-3); }
.job__where .link-btn { font-size: 12.5px; }
.job__tags { display: flex; flex-wrap: wrap; gap: 6px; }

.job__apply { flex: none; }

/* ═══════════════════════════════════════════════
   24. Бидний тухай (бараан дэвсгэр)
   ═══════════════════════════════════════════════ */
.section--dark {
  background:
    radial-gradient(620px 400px at 85% 0%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(160deg, #7A0F16 0%, #4E080F 55%, #2C0509 100%);
  color: #F6E6E3;
}
.section--dark .section__title  { color: var(--white); }
.section--dark .section__kicker { color: #FFB3A8; }
.section--dark .section__lead   { color: #E7C9C4; }

.section__head--center { max-width: none; text-align: center; margin-bottom: 40px; }

/* Асуудал → Шийдэл */
.ps {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 22px;
  align-items: stretch;
}

.ps__col {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-lg);
  padding: 24px 26px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.ps__col--solution { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.24); }

.ps__tag {
  display: inline-block;
  background: rgba(0,0,0,.3);
  color: #FFC7BE;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: var(--r-full);
  margin-bottom: 16px;
}
.ps__tag--ok { background: rgba(46,158,91,.28); color: #A8EBC4; }

.ps__col ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 11px; }
.ps__col li { font-size: 14.5px; line-height: 1.5; }
.ps__col li::marker { color: rgba(255,255,255,.4); }
.ps__col--solution b { color: var(--white); }

.ps__arrow {
  align-self: center;
  font-size: 30px;
  color: rgba(255,255,255,.4);
}

/* Хамрах хүрээ */
.scope { margin-top: 54px; }
.scope h3,
.team h3 {
  font-size: 1.15rem;
  color: var(--white);
  margin: 0 0 18px;
  text-align: center;
}

.scope__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 13px;
}

.scope__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--r-md);
  padding: 18px 12px;
  text-align: center;
}
.scope__icon { font-size: 27px; }
.scope__item strong { font-family: 'Montserrat', sans-serif; font-size: 14.5px; color: var(--white); }
.scope__item > span:last-child { font-size: 11.5px; color: #D9B5B0; }

/* Баг */
.team { margin-top: 54px; }

.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.team__card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--r-md);
  padding: 19px 20px;
}
.team__role {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #FFB3A8;
  margin-bottom: 3px;
}
.team__card strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}

/* Хамтран ажиллах уриалга */
.cta-box {
  margin-top: 54px;
  padding: 34px 30px;
  text-align: center;
  background:
    radial-gradient(420px 220px at 50% 0%, rgba(240, 195, 104, .2), transparent 70%),
    rgba(255, 255, 255, .07);
  border: 1px solid rgba(240, 195, 104, .3);
  border-radius: var(--r-lg);
}

.cta-box h3 {
  font-size: 1.4rem;
  color: var(--white);
  margin: 0 0 10px;
  text-align: center;
}

.cta-box p {
  max-width: 520px;
  margin: 0 auto 24px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #E7C9C4;
}

.cta-box__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.cta-box .btn--solid {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, #E4A63C);
  color: #4A3005;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .35);
}
.cta-box .btn--solid:hover {
  background: linear-gradient(135deg, #FFEBC4, var(--gold-light) 55%, var(--gold));
}

.cta-box .btn--outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, .4);
}
.cta-box .btn--outline:hover {
  background: var(--white);
  color: var(--brand-darker);
  border-color: var(--white);
}

/* ═══════════════════════════════════════════════
   25. Хөл хэсэг
   ═══════════════════════════════════════════════ */
.footer { background: var(--ink); color: #D9C6C2; }

.footer__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 52px 22px 38px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 36px;
}

.footer__brand .logo { margin-bottom: 14px; }
.footer__brand .logo__text { color: var(--white); }
.footer__brand p { margin: 0; font-size: 13.5px; line-height: 1.6; max-width: 330px; }

.footer h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-soft);
  margin: 0 0 14px;
}

.footer__links { display: flex; flex-direction: column; gap: 9px; }
.footer__links a { font-size: 13.5px; transition: color .16s; }
.footer__links a:hover { color: var(--white); }

.footer__contact p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
  font-size: 13.5px;
}
.footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: color .16s;
  word-break: break-all;
}
.footer__contact a:hover { color: var(--gold); }
.footer__contact span { flex: none; opacity: .8; }

.footer__bar {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 17px 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  max-width: var(--wrap);
  margin: 0 auto;
  font-size: 12px;
  color: #9C8480;
}

/* ── Гар утас: шүүлтүүр, тухай, footer ───────── */
@media (max-width: 900px) {
  .ps { grid-template-columns: 1fr; }
  .ps__arrow { transform: rotate(90deg); }

  .footer__inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .filters { padding: 14px; }
  .filters__row { gap: 10px; }
  .fsel { flex: 1 1 100%; }
  .fsel select { width: 100%; min-width: 0; }
  .switch { padding-bottom: 0; }
  .filters__reset { margin-bottom: 0; }

  .job { grid-template-columns: 46px 1fr; gap: 12px; padding: 13px 14px; }
  .job__logo { width: 46px; height: 46px; font-size: 21px; }
  .job__apply { grid-column: 1 / -1; width: 100%; }

  .gcards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gcard__thumb { height: 100px; }
  .gcard__emoji { font-size: 36px; }
  .gcard__body { padding: 11px 12px 12px; }
  .gcard__name { font-size: 14.5px; }
  .gcard__tags { display: none; }

  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .gcards { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   26. Хэсгийн дэвсгэр — өнгө ээлжлүүлэх
   ═══════════════════════════════════════════════ */
.section { position: relative; }

/* Цайвар — улаан, алтан гэрэлтэй */
.section--tint {
  background:
    radial-gradient(720px 360px at 88% -6%, rgba(240, 195, 104, .22), transparent 62%),
    radial-gradient(640px 340px at 3% 105%, rgba(196, 30, 34, .07), transparent 62%),
    linear-gradient(180deg, #FDF7F5 0%, var(--cream) 100%);
}

/* Алтан — урамшууллын хэсэг */
.section--gold {
  background:
    radial-gradient(700px 350px at 10% -4%, rgba(240, 195, 104, .42), transparent 62%),
    radial-gradient(520px 300px at 95% 100%, rgba(196, 30, 34, .09), transparent 60%),
    linear-gradient(180deg, #FFFAEE 0%, #FCF1DD 100%);
}

/* Ягаан улаан — ойролцоо хэсэг */
.section--alt {
  background:
    radial-gradient(620px 330px at 92% 4%, rgba(240, 195, 104, .18), transparent 60%),
    linear-gradient(180deg, #F8EBE7 0%, var(--cream) 100%);
}

/* Хэсгүүдийн хооронд нарийн зураас */
.section + .section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(1180px, 92%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 30, 34, .18), rgba(240, 195, 104, .3), transparent);
}
.section--dark::before,
.section--dark + .section::before { display: none; }

/* ═══════════════════════════════════════════════
   27. Алтан тодотголууд
   ═══════════════════════════════════════════════ */

/* Гарчгийн өмнөх зураас */
.section__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section__kicker::before {
  content: '';
  width: 24px; height: 3px;
  border-radius: 2px;
  flex: none;
  background: linear-gradient(90deg, var(--brand), var(--gold));
}
.section__head--center .section__kicker { justify-content: center; }

/* Од, оноо — алтан */
.rank__score b,
.gcard__score,
.pcard__score { color: var(--gold-dark); }

/* Нүүрний тоо — алтан */
.hero__stat strong { color: var(--gold-light); }

/* Үндсэн товч — уусгалтай */
.btn--solid {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
}
.btn--solid:hover {
  background: linear-gradient(135deg, #D5262B 0%, var(--brand-dark) 100%);
}

/* Идэвхтэй шүүлтүүр — уусгалтай */
.tfilter.is-active {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-color: var(--brand-dark);
}

/* Эхний 3 байрны алтан гэрэл */
.rank--top1 .rank__num { text-shadow: 0 2px 14px rgba(208, 141, 6, .5); }

/* Картын дээд тодотгол — hover үед */
.gcard,
.pcard-promo { position: relative; }

.gcard::after,
.pcard-promo::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .32s cubic-bezier(.2, .7, .3, 1);
  z-index: 2;
}
.gcard:hover::after,
.gcard:focus-visible::after,
.pcard-promo:hover::after,
.pcard-promo:focus-visible::after { transform: scaleX(1); }

/* Мөрийн зүүн талын өнгөт зураас */
.rank,
.job,
.near-item { position: relative; overflow: hidden; }

.rank::before,
.job::before,
.near-item::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--brand), var(--gold));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .3s cubic-bezier(.2, .7, .3, 1);
}
.rank:hover::before,
.rank:focus-visible::before,
.job:hover::before,
.near-item:hover::before,
.near-item:focus-visible::before { transform: scaleY(1); }

/* ═══════════════════════════════════════════════
   28. Гүйлтийн заагч
   ═══════════════════════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: calc(var(--banner-h) + var(--nav-h) - 3px);
  left: 0;
  width: 0;
  height: 3px;
  z-index: 55;
  background: linear-gradient(90deg, var(--brand) 0%, #E2603A 50%, var(--gold) 100%);
  box-shadow: 0 0 12px rgba(196, 30, 34, .5);
  transition: width .08s linear;
}

/* ═══════════════════════════════════════════════
   29. Гүйлгэхэд гарч ирэх
   ═══════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s cubic-bezier(.2, .7, .3, 1),
              transform .75s cubic-bezier(.2, .7, .3, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Жагсаалтын мөр, карт шатлан гарч ирэх */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.rank,
.gcard,
.pcard-promo,
.job,
.near-item {
  animation: cardIn .5s cubic-bezier(.2, .7, .3, 1) both;
  animation-delay: calc(var(--i, 0) * 38ms);
}

/* ═══════════════════════════════════════════════
   30. Дээш буцах товч
   ═══════════════════════════════════════════════ */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-darker));
  color: var(--white);
  font-size: 19px;
  box-shadow: 0 8px 24px rgba(107, 13, 20, .45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(.9);
  transition: opacity .28s, transform .28s, visibility .28s, box-shadow .2s;
}
.to-top.is-show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover  { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(107, 13, 20, .55); }

/* Мэдэгдэл дээш зөөв — товчтой давхцахгүйн тулд */
.toast-wrap { bottom: 84px; }

/* ═══════════════════════════════════════════════
   31. Идэвхтэй цэсний холбоос
   ═══════════════════════════════════════════════ */
.nav__links a { position: relative; }

.nav__links a.is-active {
  color: var(--brand-dark);
  background: var(--brand-tint);
}
.nav__links a.is-active::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 2px;
  transform: translateX(-50%);
  width: 16px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--gold));
}

/* ═══════════════════════════════════════════════
   32. Нүүрний үг солигдох
   ═══════════════════════════════════════════════ */
.rotator {
  display: inline-block;
  position: relative;
  min-width: 4.6ch;
}
.rotator::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: .04em;
  height: .075em;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold), rgba(240, 195, 104, 0));
}
.rotator.is-swap { animation: rotWord .52s cubic-bezier(.4, 0, .2, 1); }

@keyframes rotWord {
  0%   { opacity: 1; transform: translateY(0)     rotateX(0); }
  45%  { opacity: 0; transform: translateY(-.35em) rotateX(45deg); }
  55%  { opacity: 0; transform: translateY(.35em)  rotateX(-45deg); }
  100% { opacity: 1; transform: translateY(0)     rotateX(0); }
}

/* ── Гар утас ─────────────────────────────────── */
@media (max-width: 560px) {
  .to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; font-size: 17px; }
  .toast-wrap { bottom: 70px; }
}

/* ═══════════════════════════════════════════════
   33. "Шинэ" зэрэглэл (саналын босгод хүрээгүй)
   ═══════════════════════════════════════════════ */
.tier-chip--N,
.tier-badge--N { background: linear-gradient(135deg, #8FA3B8, #55687C); }
.map-pin--N circle { fill: #7E93A8; }

.rank__mine {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gold-deep);
  background: var(--gold-tint);
  border: 1px solid rgba(201, 146, 43, .35);
  padding: 2px 8px;
  border-radius: var(--r-full);
}

/* Онооны "/100", "оноо" гэсэн жижиг бичиг */
.gcard__score small,
.pdetail__stats small {
  font-size: .68em;
  font-weight: 600;
  opacity: .65;
}

/* ═══════════════════════════════════════════════
   34. Алгоритмын тайлбар
   ═══════════════════════════════════════════════ */
.algo {
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: var(--r-lg);
  margin-bottom: 26px;
  overflow: hidden;
  box-shadow: var(--sh-sm);
}

.algo__summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  transition: background .18s;
}
.algo__summary::-webkit-details-marker { display: none; }
.algo__summary:hover { background: var(--brand-tint); }

.algo__icon {
  width: 38px; height: 38px;
  flex: none;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--brand), var(--brand-darker));
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 19px;
  font-weight: 800;
}

.algo__title {
  flex: 1;
  font-family: 'Montserrat', sans-serif;
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.35;
}
.algo__title em {
  display: block;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-3);
  margin-top: 2px;
}

.algo__caret {
  font-size: 15px;
  color: var(--ink-3);
  transition: transform .25s;
  flex: none;
}
.algo[open] .algo__caret { transform: rotate(180deg); }

.algo__body {
  padding: 4px 18px 22px;
  border-top: 1px solid var(--cream);
}

.algo__lead {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}
.algo__lead b { color: var(--brand-dark); }

/* Томьёо */
.algo__formula {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
  padding: 22px 16px;
  background: linear-gradient(135deg, var(--cream), var(--gold-tint));
  border: 1px solid var(--cream-deep);
  border-radius: var(--r-md);
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 21px;
}

.algo__w   { font-weight: 700; color: var(--brand-dark); font-size: 25px; }
.algo__eq,
.algo__op  { color: var(--ink-3); }
.algo__var { font-style: italic; font-weight: 600; }

.algo__frac {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
  font-size: 16px;
}
.algo__frac b {
  font-weight: 600;
  font-style: italic;
  padding: 0 8px 2px;
  border-bottom: 1.5px solid var(--ink-2);
}
.algo__frac i { padding-top: 2px; font-style: italic; }

/* Тэмдэглэгээний жагсаалт */
.algo__legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 9px;
}
.algo__legend li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
  background: var(--cream);
  border-radius: var(--r-sm);
  padding: 8px 12px;
}
.algo__legend b {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--brand-dark);
  flex: none;
  min-width: 14px;
}
.algo__legend em {
  font-style: normal;
  font-weight: 700;
  color: var(--gold-deep);
  margin-left: auto;
  white-space: nowrap;
}

.algo__h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  margin: 24px 0 10px;
}

/* Босгын хүснэгт */
.algo__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.algo__table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0 10px 8px;
  border-bottom: 2px solid var(--cream-deep);
}
.algo__table td {
  padding: 10px;
  border-bottom: 1px solid var(--cream);
  color: var(--ink-2);
}
.algo__table td:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
}
.algo__table td b { color: var(--brand-dark); font-size: 14px; }
.algo__row-new td { color: var(--ink-3); }

.algo__why {
  margin: 22px 0 0;
  padding: 14px 16px;
  background: var(--gold-tint);
  border: 1px solid rgba(201, 146, 43, .3);
  border-radius: var(--r-md);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.algo__why b { color: var(--gold-deep); }

/* ═══════════════════════════════════════════════
   35. Үнэлгээ өгөх (дэлгэрэнгүй цонхонд)
   ═══════════════════════════════════════════════ */
.vote {
  margin-top: 20px;
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--gold-tint), #FFF9F0);
  border: 1px solid rgba(201, 146, 43, .32);
  border-radius: var(--r-md);
}

.vote__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.vote__label strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 14.5px;
  font-weight: 800;
}
.vote__label span {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}

.vote__stars { display: flex; gap: 3px; }

.star {
  background: none;
  border: 0;
  padding: 2px;
  font-size: 27px;
  line-height: 1;
  color: #DFCEC4;
  transition: transform .14s, color .14s;
}
.star:hover { transform: scale(1.18); }
.star.is-on { color: var(--gold); text-shadow: 0 2px 8px rgba(201, 146, 43, .45); }

/* Тооцооллын задаргаа */
.vote__calc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 8px;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px dashed rgba(201, 146, 43, .4);
}
.vote__calc span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 10.5px;
  color: var(--ink-3);
  font-weight: 600;
}
.vote__calc b {
  font-family: 'Montserrat', sans-serif;
  font-size: 14.5px;
  color: var(--ink);
}

.vote__note,
.vote__warn {
  margin: 13px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
}
.vote__note { color: var(--ink-3); }
.vote__note b { color: var(--brand-dark); }
.vote__warn {
  padding: 9px 12px;
  background: rgba(196, 30, 34, .07);
  border-radius: var(--r-sm);
  color: var(--brand-dark);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════
   36. B2B — Бизнес эрхлэгчдэд
   ═══════════════════════════════════════════════ */
.section--b2b {
  background:
    radial-gradient(680px 340px at 92% 0%, rgba(196, 30, 34, .1), transparent 62%),
    radial-gradient(560px 300px at 5% 100%, rgba(240, 195, 104, .3), transparent 62%),
    linear-gradient(180deg, #F6EFEA 0%, #FAF1EF 100%);
}

.b2b {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 22px;
  align-items: start;
}

.b2b__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.b2b__card {
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: var(--r-md);
  padding: 20px 18px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.b2b__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: var(--gold);
}

.b2b__icon { display: block; font-size: 27px; margin-bottom: 10px; }

.b2b__card strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 6px;
}
.b2b__card p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-3); }

/* Analytics самбар */
.b2b__panel {
  background: linear-gradient(160deg, #2A1214 0%, #4A0E14 100%);
  border-radius: var(--r-lg);
  padding: 20px;
  color: #E7CFCB;
  box-shadow: var(--sh-md);
}

.b2b__panel-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.b2b__panel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 10px #4ADE80;
  flex: none;
}
.b2b__panel-head strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: var(--white);
}
.b2b__panel-head em {
  margin-left: auto;
  font-style: normal;
  font-size: 11px;
  color: #B08F8A;
}

.b2b__kpi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}
.b2b__kpi div { display: flex; flex-direction: column; gap: 2px; }
.b2b__kpi b {
  font-family: 'Montserrat', sans-serif;
  font-size: 21px;
  font-weight: 800;
  color: var(--gold);
}
.b2b__kpi span { font-size: 10.5px; color: #B08F8A; }

.b2b__chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  height: 96px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.b2b__chart span {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--gold), var(--brand));
  border-radius: 5px 5px 2px 2px;
  position: relative;
  min-height: 8px;
  animation: barGrow .8s cubic-bezier(.2,.7,.3,1) both;
}
.b2b__chart span:nth-child(1) { animation-delay: .05s; }
.b2b__chart span:nth-child(2) { animation-delay: .1s; }
.b2b__chart span:nth-child(3) { animation-delay: .15s; }
.b2b__chart span:nth-child(4) { animation-delay: .2s; }
.b2b__chart span:nth-child(5) { animation-delay: .25s; }
.b2b__chart span:nth-child(6) { animation-delay: .3s; }
.b2b__chart span:nth-child(7) { animation-delay: .35s; }

@keyframes barGrow { from { height: 0; opacity: 0; } }

.b2b__chart i {
  position: absolute;
  bottom: -18px; left: 0; right: 0;
  text-align: center;
  font-style: normal;
  font-size: 10px;
  color: #B08F8A;
}

.b2b__panel-note {
  margin: 30px 0 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: #C4A29D;
}

/* Уриалга */
.b2b__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
  padding: 24px 28px;
  background: var(--white);
  border: 1px solid var(--gold);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.b2b__cta strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 800;
}
.b2b__cta span {
  display: block;
  font-size: 13.5px;
  color: var(--ink-3);
  margin-top: 4px;
}
.b2b__cta b { color: var(--brand-dark); }

/* ── Гар утас ─────────────────────────────────── */
@media (max-width: 980px) {
  .b2b { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .algo__formula { font-size: 17px; gap: 7px; padding: 18px 10px; }
  .algo__w { font-size: 21px; }
  .algo__body { padding: 4px 14px 18px; }
  .algo__table { font-size: 12px; }
  .algo__table td, .algo__table th { padding: 8px 5px; }

  .vote__row { flex-direction: column; align-items: flex-start; }
  .star { font-size: 30px; }

  .b2b__cta { flex-direction: column; align-items: stretch; text-align: center; }
  .b2b__cta .btn { width: 100%; }
}

/* ═══════════════════════════════════════════════
   37. Эрхийн шошго
   ═══════════════════════════════════════════════ */
.role-chip {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  background: #7E93A8;
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}
.role-chip--sm {
  margin: 0;
  padding: 1px 7px;
  font-size: 9.5px;
  font-style: normal;
}

/* ═══════════════════════════════════════════════
   38. Эрх ахиулах цонх
   ═══════════════════════════════════════════════ */
.rolebox { text-align: center; }

.rolebox__icon {
  width: 58px; height: 58px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--white);
  font-size: 27px;
  box-shadow: var(--sh-md);
}

.rolebox h2 { font-size: 1.4rem; margin-bottom: 10px; }

.rolebox__lead {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}
.rolebox__lead b { color: var(--brand-dark); }

.rolebox__list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.rolebox__list li {
  display: flex;
  gap: 9px;
  font-size: 13.5px;
  color: var(--ink-2);
  background: var(--cream);
  border-radius: var(--r-sm);
  padding: 10px 13px;
}
.rolebox__list li::before { content: '✓'; color: var(--success); font-weight: 800; flex: none; }
.rolebox__list b { color: var(--ink); }

.rolebox__demo {
  background: var(--gold-tint);
  border: 1px dashed rgba(201, 146, 43, .5);
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.rolebox__demo b { font-size: 16px; color: var(--gold-deep); letter-spacing: .1em; }

.rolebox__stat {
  background: var(--cream);
  border-radius: var(--r-md);
  padding: 18px;
  margin-bottom: 18px;
}
.rolebox__stat b {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 30px;
  color: var(--gold-dark);
}
.rolebox__stat span { font-size: 12px; color: var(--ink-3); }

/* ═══════════════════════════════════════════════
   39. Ширээ захиалах
   ═══════════════════════════════════════════════ */

/* Дэлгэрэнгүй цонх дахь захиалгын хайрцаг */
.bookbox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 15px 17px;
  background: linear-gradient(135deg, var(--brand-tint), #FFF2F1);
  border: 1px solid rgba(196, 30, 34, .22);
  border-radius: var(--r-md);
}
.bookbox__main strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 800;
}
.bookbox__main > span {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}
.bookbox__vip {
  display: inline-block;
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold-deep);
  background: var(--gold-tint);
  padding: 2px 9px;
  border-radius: var(--r-full);
}
.bookbox__vip--off { color: var(--ink-3); background: var(--cream); }

.mybook {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.mybook__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: var(--r-full);
  padding: 4px 6px 4px 12px;
  margin: 5px 6px 0 0;
  font-weight: 600;
}
.mybook__item button {
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand-dark);
  font-size: 10px;
}
.mybook__item button:hover { background: var(--brand); color: var(--white); }

/* Захиалгын цонх */
.bookhead {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 22px 26px;
  color: var(--white);
}
.bookhead__emoji { font-size: 38px; filter: drop-shadow(0 3px 8px rgba(0,0,0,.4)); }
.bookhead strong { display: block; font-family: 'Montserrat', sans-serif; font-size: 19px; }
.bookhead span   { display: block; font-size: 12.5px; opacity: .85; margin-top: 2px; }

.bookbody { padding: 20px 26px 24px; overflow-y: auto; }

.bookrow { margin-bottom: 20px; }
.bookrow h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  margin: 0 0 9px;
  color: var(--ink-2);
}

.chiprow { display: flex; flex-wrap: wrap; gap: 7px; }
.chiprow--scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 5px;
  scrollbar-width: thin;
}

.chipbtn {
  flex: none;
  background: var(--cream);
  border: 1.5px solid transparent;
  border-radius: var(--r-full);
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background .16s, color .16s, border-color .16s;
}
.chipbtn:hover { border-color: var(--brand-soft); }
.chipbtn.is-on {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

/* Ширээний сүлжээ */
.tablegrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 8px;
}

.tablebtn {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--cream);
  border: 1.5px solid var(--cream-deep);
  border-radius: var(--r-sm);
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-2);
  transition: transform .15s, background .16s, color .16s, border-color .16s;
}
.tablebtn:hover:not(:disabled) { transform: scale(1.06); border-color: var(--brand); }
.tablebtn.is-on {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(196, 30, 34, .35);
}
.tablebtn.is-busy {
  background: repeating-linear-gradient(45deg, #EFE6E4, #EFE6E4 5px, #E4D6D3 5px, #E4D6D3 10px);
  color: #B4A29E;
  cursor: not-allowed;
  border-color: transparent;
}

.tablelegend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 11px;
  font-size: 11.5px;
  color: var(--ink-3);
}
.tablelegend span { display: flex; align-items: center; gap: 6px; }
.sq {
  width: 12px; height: 12px;
  border-radius: 3px;
  background: var(--cream);
  border: 1.5px solid var(--cream-deep);
  display: inline-block;
}
.sq--on   { background: var(--brand); border-color: var(--brand); }
.sq--busy { background: #E4D6D3; border-color: transparent; }

/* Дүнгийн хураангуй */
.booksum {
  background: var(--cream);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.booksum__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.booksum__row--disc { color: var(--gold-deep); font-weight: 600; }
.booksum__row--disc em { font-style: normal; font-size: 11px; opacity: .8; }
.booksum__row--muted { color: var(--ink-3); }

.booksum__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-top: 11px;
  border-top: 1px dashed var(--cream-deep);
  font-size: 14px;
  font-weight: 700;
}
.booksum__total b {
  font-family: 'Montserrat', sans-serif;
  font-size: 21px;
  color: var(--brand-dark);
}

.booknote {
  margin: 13px 0 0;
  font-size: 11.5px;
  color: var(--ink-3);
  text-align: center;
}

/* ═══════════════════════════════════════════════
   40. Сэтгэгдэл
   ═══════════════════════════════════════════════ */
.cmt__n {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
  background: var(--cream);
  padding: 2px 9px;
  border-radius: var(--r-full);
  margin-left: 7px;
}

.cmt__gate {
  background: var(--cream);
  border: 1px dashed var(--cream-deep);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
.cmt__gate em { display: block; font-style: normal; font-size: 12px; color: var(--ink-3); margin-top: 4px; }

.cmt__form textarea {
  width: 100%;
  font: inherit;
  font-size: 14px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  resize: vertical;
}
.cmt__form textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(196, 30, 34, .13);
}

.cmt__formfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
}
.cmt__formfoot span { font-size: 11.5px; color: var(--ink-3); }

.cmt__list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }

.cmt { display: flex; gap: 11px; }

.cmt__ava {
  width: 34px; height: 34px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
}

.cmt__body { flex: 1; min-width: 0; }

.cmt__head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}
.cmt__head b { font-size: 13.5px; }
.cmt__head time { font-size: 11.5px; color: var(--ink-3); }

.cmt__del {
  margin-left: auto;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink-3);
  font-size: 10px;
}
.cmt__del:hover { background: var(--brand-tint); color: var(--brand-dark); }

.cmt__body p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  word-break: break-word;
}

.cmt__empty {
  margin: 16px 0 0;
  font-size: 13.5px;
  color: var(--ink-3);
  font-style: italic;
}

/* ═══════════════════════════════════════════════
   41. Удирдлагын самбар
   ═══════════════════════════════════════════════ */
.modal__box--xl {
  max-width: 960px;
  max-height: 92vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel { display: flex; flex-direction: column; min-height: 0; }

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 22px 26px 18px;
  background: linear-gradient(135deg, #2E6FD6, #1B4694);
  color: var(--white);
}
.panel__head--admin { background: linear-gradient(135deg, var(--brand), var(--brand-darker)); }

.panel__head h2 { font-size: 1.25rem; color: var(--white); }
.panel__head > span { font-size: 12.5px; opacity: .85; }

.panel__headright { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.panel__place {
  font-size: 12.5px;
  font-weight: 600;
  background: rgba(255,255,255,.18);
  padding: 5px 12px;
  border-radius: var(--r-full);
}

.panel__select,
.rolesel {
  font: inherit;
  font-size: 13px;
  padding: 7px 10px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--cream-deep);
  background: var(--white);
  color: var(--ink);
  max-width: 190px;
}
.panel__select { border-color: transparent; }
.rolesel:focus { outline: none; border-color: var(--brand); }
.rolesel:disabled { opacity: .45; }

.panel__tabs {
  display: flex;
  gap: 4px;
  padding: 10px 26px 0;
  background: var(--cream);
  border-bottom: 1px solid var(--cream-deep);
  overflow-x: auto;
}

.ptab {
  background: none;
  border: 0;
  border-bottom: 2.5px solid transparent;
  padding: 11px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-3);
  white-space: nowrap;
  transition: color .18s, border-color .18s;
}
.ptab:hover { color: var(--ink); }
.ptab.is-on { color: var(--brand-dark); border-bottom-color: var(--brand); }

.panel__body { padding: 20px 26px 26px; overflow-y: auto; }

.panel__kpi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.panel__kpi div {
  background: var(--cream);
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.panel__kpi b {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 21px;
  color: var(--brand-dark);
}
.panel__kpi span { font-size: 11.5px; color: var(--ink-3); }

.panel__empty {
  padding: 44px 20px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-3);
  background: var(--cream);
  border-radius: var(--r-md);
}

.panel__form { display: flex; flex-direction: column; gap: 15px; }
.panel__grid3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 13px;
}
.panel__form select,
.panel__form textarea,
.panel__form input {
  width: 100%;
  font: inherit;
  font-size: 14px;
  padding: 11px 13px;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
}
.panel__form input:focus,
.panel__form textarea:focus,
.panel__form select:focus {
  outline: none;
  background: var(--white);
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(196, 30, 34, .13);
}

.panel__form textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.55;
}

/* Маягтын хэсгийн гарчиг */
.formhead {
  margin: 22px 0 2px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand);
}
.formhead:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* Газруудыг санд хуулах анхааруулга */
.seedbox {
  background: linear-gradient(135deg, #FFF6E8 0%, #FFEBD6 100%);
  border: 1.5px solid #E8C48A;
  border-radius: var(--r-lg);
  padding: 18px 20px;
  margin-bottom: 20px;
}
.seedbox b { display: block; font-size: 15px; color: #8A5A0B; margin-bottom: 6px; }
.seedbox p { margin: 0 0 14px; font-size: 13.5px; color: #7A5A2E; line-height: 1.6; }

.btn--danger {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--brand);
}
.btn--danger:hover { background: var(--brand); color: var(--white); }

.panel__note code {
  background: var(--cream);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 12.5px;
  color: var(--brand);
}

.panel__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.panel__note {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
}

/* Хүснэгт */
.tablewrap { overflow-x: auto; }

.dtable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 560px;
}
.dtable th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0 10px 9px;
  border-bottom: 2px solid var(--cream-deep);
  white-space: nowrap;
}
.dtable td {
  padding: 10px;
  border-bottom: 1px solid var(--cream);
  color: var(--ink-2);
  vertical-align: middle;
}
.dtable td.wide { max-width: 260px; }
.dtable tr.is-off td { opacity: .45; }
.dtable .disc {
  display: block;
  font-style: normal;
  font-size: 10.5px;
  color: var(--gold-deep);
  font-weight: 700;
}

.tinybtn {
  background: var(--cream);
  border: 0;
  border-radius: var(--r-sm);
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background .16s, color .16s;
}
.tinybtn:hover { background: var(--cream-deep); }
.tinybtn--danger:hover { background: var(--brand); color: var(--white); }

/* ── Гар утас ─────────────────────────────────── */
@media (max-width: 640px) {
  .modal__box--xl { max-height: 94vh; }
  .panel__head { padding: 18px 16px 14px; }
  .panel__tabs { padding: 8px 16px 0; }
  .panel__body { padding: 16px; }
  .bookbody { padding: 16px 18px 20px; }
  .bookhead { padding: 18px; }
  .bookbox { flex-direction: column; align-items: stretch; }
  .bookbox .btn { width: 100%; }
  .tablegrid { grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); }
}

/* ═══════════════════════════════════════════════
   42. Олон хуудасны бүтэц
   ═══════════════════════════════════════════════ */

/* Хуудсын эхний хэсэг — тогтмол цэсний доор эхэлнэ */
.section--first {
  padding-top: calc(var(--nav-h) + var(--banner-h) + 54px);
}

/* Шинэ таб нээгдэхийг заасан бяцхан сум */
.navext {
  font-style: normal;
  font-size: .72em;
  opacity: .55;
  margin-left: 4px;
  vertical-align: super;
}
.nav__links a .navext { margin-left: 3px; }
.nav__links a:hover .navext { opacity: .9; }

/* ═══════════════════════════════════════════════
   43. Нүүрний хурдан холбоосууд
   ═══════════════════════════════════════════════ */
.quicknav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 16px;
}

.qcard {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: var(--r-lg);
  padding: 22px 22px 24px;
  cursor: pointer;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.qcard::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .32s cubic-bezier(.2, .7, .3, 1);
}
.qcard:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-md);
  border-color: var(--brand-soft);
}
.qcard:hover::after { transform: scaleX(1); }

.qcard__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--brand-tint), var(--gold-tint));
  font-size: 23px;
  margin-bottom: 5px;
}

.qcard strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--ink);
}
.qcard p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-3);
}

.qcard--biz .qcard__icon {
  background: linear-gradient(135deg, #DCE7FA, #C3D6F5);
}

/* ═══════════════════════════════════════════════
   44. Хаалттай хуудасны мэдэгдэл
   ═══════════════════════════════════════════════ */
.gate {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: var(--r-lg);
  padding: 46px 34px;
  box-shadow: var(--sh-sm);
}

.gate__icon {
  display: block;
  font-size: 44px;
  margin-bottom: 14px;
}

.gate h2 { font-size: 1.55rem; margin-bottom: 12px; }

.gate p {
  margin: 0 0 24px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.gate p b { color: var(--brand-dark); }

.gate__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Нүүрний товчлуур — <button> болсон тул тэгшитгэнэ */
.hero__chips .chip {
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 560px) {
  .section--first { padding-top: calc(var(--nav-h) + var(--banner-h) + 34px); }
  .gate { padding: 34px 20px; }
}

/* ── 14. Хөдөлгөөн багасгах тохиргоо ─────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
