/* ================================================================
   Зөвлөх боломж төв — v2 "editorial modern" давхарга
   ----------------------------------------------------------------
   style.css дээр нэмэгдэж ачаалагдана. Зорилго:
     · Бичвэрийг багасгаж, график / дүрс / цагийн шугам болгох
     · Орчин үеийн давхаргат карт, зөөлөн гэрэлтэлт
     · #F6F8FC суурь, #085080 ганц accent — хэвээр
   ================================================================ */

:root {
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --ink-2: #2b3d57;
  --glow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 18px 40px -18px rgba(10, 35, 66, 0.28);
  --glow-lg: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 34px 70px -30px rgba(10, 35, 66, 0.4);
  --hair: rgba(10, 35, 66, 0.08);
}

/* ---------------- Туслах ---------------- */

.ico {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------- Hero v2 ---------------- */

.hero {
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(8, 80, 128, 0.10), transparent 62%),
    radial-gradient(760px 420px at 4% 104%, rgba(8, 80, 128, 0.07), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--light) 100%);
  border-bottom: none;
  padding: clamp(46px, 5.6vw, 82px) 0 clamp(40px, 4.6vw, 64px);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(10, 35, 66, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 35, 66, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(760px 460px at 76% 18%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(760px 460px at 76% 18%, #000 0%, transparent 78%);
  pointer-events: none;
}

.hero::after {
  border: none;
  background: radial-gradient(circle at 50% 50%, rgba(8, 80, 128, 0.10), transparent 68%);
  width: 640px;
  height: 640px;
  right: -220px;
  bottom: -280px;
  filter: blur(10px);
}

.hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.86fr);
  gap: clamp(34px, 5vw, 78px);
}

.hero .display {
  max-width: 24ch;
  font-size: clamp(34px, 4.7vw, 60px);
  letter-spacing: -0.018em;
  line-height: 1.04;
}

.hero .display em {
  font-style: italic;
  background: linear-gradient(100deg, var(--blue) 0%, #1c7ab3 55%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--blue);
}

.hero-sub {
  font-size: clamp(15px, 1.35vw, 17px);
  color: var(--ink-2);
  max-width: 46ch;
  margin-top: 20px;
}

.hero-actions {
  margin-top: 28px;
}

.hero-actions .btn {
  border-radius: 999px;
  padding: 14px 26px;
}

/* Hero bullets → 2×2 чип */
.hero-bullets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border-top: none;
  padding-top: 0;
  margin-top: 30px;
}

.hero-bullets li {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 9px 14px 9px 12px;
  font-size: 12.5px;
  line-height: 1.35;
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.hero-bullets li::before {
  content: '';
  width: 14px;
  height: 14px;
  margin-top: 0;
  border-radius: 50%;
  background: var(--blue-wash);
  border: 1px solid rgba(8, 80, 128, 0.3);
  flex-shrink: 0;
  background-image: linear-gradient(135deg, rgba(8, 80, 128, 0.9), rgba(8, 80, 128, 0.9));
  background-size: 5px 5px;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-credit {
  margin-top: 22px;
  color: #6b7b92;
}

/* Hero медиа — давхар хүрээ + хөвөгч карт */
.hero-media {
  position: relative;
  padding: 14px;
}

.hero-media::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, rgba(8, 80, 128, 0.20), rgba(8, 80, 128, 0.02) 45%, rgba(255, 255, 255, 0));
  border: 1px solid var(--hair);
  pointer-events: none;
}

.hero-frame {
  border-radius: var(--r-lg);
  border: none;
  aspect-ratio: 4 / 4.2;
  box-shadow: var(--glow-lg);
}

.hero-frame img {
  filter: saturate(1) contrast(1.03);
}

.hero-frame::after {
  background: linear-gradient(180deg, rgba(10, 35, 66, 0) 52%, rgba(10, 35, 66, 0.52) 100%);
}

.hero-badges {
  position: absolute;
  left: -6px;
  bottom: 6px;
  right: 74px;
  flex-direction: column;
  gap: 8px;
  margin-top: 0;
}

.hero-badge {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 10px 28px -12px rgba(10, 35, 66, 0.4);
  padding: 9px 16px 9px 10px;
}

.hero-badge .badge-img {
  height: 34px;
}

.hero-badge .mark {
  width: 34px;
  height: 34px;
  border: none;
  background: linear-gradient(140deg, var(--blue) 0%, #0e6a9e 100%);
  color: #fff;
  font-size: 10.5px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  font-weight: 500;
}

.hero-badge b {
  color: var(--navy);
  font-size: 10px;
}

.hero-badge span span {
  font-size: 10px;
  color: var(--ink-2);
}

/* ---------------- Trust — компакт тоон зурвас ---------------- */

.trust {
  background: var(--white);
  border-bottom: 1px solid var(--hair);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 0;
}

.trust-item {
  padding: 24px 20px;
  border-left: 1px solid var(--hair);
  position: relative;
}

.trust-item:first-child {
  border-left: none;
  padding-left: 0;
}

.trust-item .k {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 33px);
  font-weight: 700;
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.trust-item .k span {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-left: 5px;
  text-transform: uppercase;
}

.trust-item p {
  margin-top: 7px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 20ch;
}

/* ---------------- Section — илүү зай, зөөлөн тусгаарлалт ---------------- */

.section {
  padding: clamp(56px, 6.4vw, 96px) 0;
}

.section--tight {
  padding: clamp(38px, 4vw, 58px) 0;
}

.section--paper,
.section--light {
  background: var(--light);
}

.section--paper {
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}

.section-head .h2 {
  letter-spacing: -0.015em;
}

/* ---------------- About — editorial + pillars ---------------- */

.about-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 4.6vw, 72px);
  align-items: start;
}

.about-quote {
  position: relative;
  border-left: none;
  padding: 22px 0 0;
  font-size: clamp(20px, 2.15vw, 26px);
  color: var(--navy);
  line-height: 1.4;
}

.about-quote::before {
  content: '';
  display: block;
  width: 46px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), rgba(8, 80, 128, 0.15));
  margin-bottom: 20px;
}

/* Дэлгэрэнгүй — нээгддэг хэсэг (бичвэрийг нуух) */
.about-more {
  margin-top: 20px;
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.66);
  overflow: hidden;
}

.about-more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  padding: 13px 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  list-style: none;
}

.about-more summary::-webkit-details-marker {
  display: none;
}

.about-more summary::after {
  content: '+';
  font-size: 16px;
  line-height: 1;
  color: var(--blue);
  transition: transform 0.2s var(--ease);
}

.about-more[open] summary::after {
  transform: rotate(45deg);
}

.about-more .about-more-body {
  padding: 0 18px 18px;
}

.about-more .about-more-body p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.about-more .about-more-body p + p {
  margin-top: 12px;
}

/* Pillars — дүрстэй карт (values-ийн оронд) */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(40px, 4.4vw, 62px);
}

.pillar {
  position: relative;
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  padding: clamp(20px, 2.2vw, 26px);
  box-shadow: var(--glow);
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease), border-color 0.2s;
  overflow: hidden;
}

.pillar::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8, 80, 128, 0.10), transparent 70%);
  pointer-events: none;
}

.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow-lg);
  border-color: rgba(8, 80, 128, 0.28);
}

.pillar .pillar-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--blue-wash);
  border: 1px solid rgba(8, 80, 128, 0.16);
  color: var(--blue);
}

.pillar .n {
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(8, 80, 128, 0.45);
}

.pillar h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  margin-top: 16px;
}

.pillar p {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* Видео — илүү цэвэрхэн */
.video {
  border-radius: var(--r-lg);
  border: 1px solid var(--hair);
  box-shadow: var(--glow-lg);
  margin-top: clamp(34px, 4vw, 54px);
}

/* Видео + зарчим нэг эгнээнд — нүүр хуудсыг богиносгоно */
.about-band {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(20px, 2.6vw, 34px);
  margin-top: clamp(34px, 4vw, 54px);
  align-items: start;
}

.about-band .video--band {
  margin-top: 0;
}

.pillars--band {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

.pillars--band .pillar {
  padding: 18px 18px 20px;
  border-radius: var(--r-md);
}

.pillars--band .pillar-ico {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.pillars--band .pillar h3 {
  font-size: 16.5px;
  margin-top: 12px;
}

.pillars--band .pillar p {
  font-size: 12px;
  line-height: 1.55;
}

.video-cap {
  border-top: 1px solid var(--hair);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}

/* ---------------- Services — bento ---------------- */

.svc-grid {
  gap: 18px;
}

.svc-card {
  border-radius: var(--r-lg);
  border: 1px solid var(--hair);
  box-shadow: var(--glow);
  padding: clamp(26px, 3vw, 36px);
  overflow: hidden;
  transition: transform 0.26s var(--ease), box-shadow 0.26s var(--ease), border-color 0.2s;
}

.svc-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), rgba(8, 80, 128, 0.06));
  opacity: 0;
  transition: opacity 0.24s;
}

.svc-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow-lg);
  border-color: rgba(8, 80, 128, 0.3);
}

.svc-card:hover::before {
  opacity: 1;
}

.svc-card .svc-ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--blue-wash);
  border: 1px solid rgba(8, 80, 128, 0.16);
  color: var(--blue);
  margin-bottom: 18px;
}

.svc-card .n {
  position: absolute;
  top: 24px;
  right: 26px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: rgba(8, 80, 128, 0.42);
}

.svc-card h3 {
  padding-right: 30px;
}

/* ---------------- Process — цагийн шугам ---------------- */

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  background: transparent;
  border: none;
  padding: clamp(30px, 3.4vw, 46px) 0 clamp(48px, 5.4vw, 76px);
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

.process::before {
  content: '';
  position: absolute;
  left: calc(28px + 26px);
  right: calc(28px + 26px);
  top: calc(clamp(30px, 3.4vw, 46px) + 18px);
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(8, 80, 128, 0.28) 0 7px, transparent 7px 14px);
}

.process-step {
  background: transparent;
  padding: 0 22px 0 0;
  position: relative;
}

.process-step .n {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(8, 80, 128, 0.32);
  color: var(--blue);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 5px var(--light);
}

.process-step h4 {
  font-family: var(--serif);
  font-size: 18.5px;
  margin-top: 22px;
  padding-right: 12px;
}

.process-step p {
  font-size: 12.5px;
  line-height: 1.6;
  padding-right: 12px;
}

/* ---------------- Certification — timeline ---------------- */

.cert-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 4.6vw, 68px);
}

.cert-steps {
  position: relative;
  padding-left: 34px;
  margin-top: 32px;
}

.cert-steps::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--blue) 0%, rgba(8, 80, 128, 0.24) 55%, rgba(8, 80, 128, 0.06) 100%);
}

.cert-step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0 0 26px;
  border-bottom: none;
  position: relative;
}

.cert-step .n {
  position: absolute;
  left: -34px;
  top: -1px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(8, 80, 128, 0.3);
  color: var(--blue);
  font-size: 9.5px;
  padding-top: 0;
  box-shadow: 0 0 0 4px var(--light);
}

.cert-step h4 {
  font-size: 15px;
  padding-right: 8px;
}

.cert-step p {
  margin-top: 5px;
  font-size: 12.5px;
}

.cert-note {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--blue-wash);
  border: 1px solid rgba(8, 80, 128, 0.16);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* Хамтрагчийн блок — лого + жил */
.partner-block {
  border-radius: var(--r-xl);
  border: 1px solid var(--hair);
  box-shadow: var(--glow-lg);
  padding: clamp(24px, 2.8vw, 34px);
  background:
    radial-gradient(420px 240px at 100% 0%, rgba(8, 80, 128, 0.07), transparent 66%),
    var(--white);
}

.partner-block .pb-logo {
  height: 44px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  object-position: left center;
  margin-top: 14px;
  filter: grayscale(0.15);
}

.partner-block .year {
  font-size: clamp(28px, 3.1vw, 38px);
  letter-spacing: -0.02em;
}

.partner-sep {
  height: 1px;
  background: var(--hair);
  margin: 26px 0;
}

/* ---------------- Stats — бөгж + тоо ---------------- */

.stats {
  display: grid;
  grid-template-columns: 1.15fr repeat(4, 1fr);
  gap: 16px;
  background: transparent;
  border: none;
  overflow: visible;
}

.stat {
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  padding: clamp(20px, 2.2vw, 26px);
  box-shadow: var(--glow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 168px;
  position: relative;
  overflow: hidden;
}

.stat--hero {
  background:
    radial-gradient(320px 200px at 100% 0%, rgba(8, 80, 128, 0.16), transparent 62%),
    linear-gradient(160deg, #0a2342 0%, #0e3a63 100%);
  border-color: transparent;
  color: #fff;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}

.stat--hero .num {
  color: #fff;
  font-size: clamp(38px, 4.2vw, 52px);
}

.stat--hero p {
  color: #fff;
  font-size: 12.5px;
  line-height: 1.5;
  max-width: 24ch;
}

.stat--hero .note {
  color: rgba(255, 255, 255, 0.62);
}

.stat .num {
  font-size: clamp(30px, 3.4vw, 42px);
  letter-spacing: -0.02em;
}

.stat p {
  font-size: 12px;
  line-height: 1.5;
  margin-top: 10px;
}

.stat .note {
  font-size: 9px;
  margin-top: 6px;
}

/* Бөгж — conic-gradient, JSгүй */
.ring {
  --p: 85;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    conic-gradient(#5db4e6 calc(var(--p) * 1%), rgba(255, 255, 255, 0.14) 0);
  position: relative;
  flex-shrink: 0;
}

.ring::before {
  content: '';
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #0e3a63;
}

.ring span {
  position: relative;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.stat--ring .ring {
  background: conic-gradient(var(--blue) calc(var(--p) * 1%), var(--blue-wash) 0);
  margin-bottom: 4px;
}

.stat--ring .ring::before {
  background: var(--white);
}

.stat--ring .ring span {
  color: var(--blue);
  font-size: 24px;
}

/* ---------------- Partners — логоны хана ----------------
   8 байгууллага, 4×2 тор. Лого бүр өөрийн харьцаагаа хадгалж,
   ижил өндөртэй мөрөнд оптик тэнцвэртэй байрлана. */

.partners-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: end;
  margin-bottom: clamp(26px, 3vw, 40px);
}

.partners-head .h2 {
  margin-top: 14px;
  max-width: 22ch;
}

.partners-head .lead {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 46ch;
}

.logo-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.logo-cell {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 20px 18px;
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  overflow: hidden;
  transition:
    border-color 0.24s var(--ease),
    box-shadow 0.24s var(--ease),
    transform 0.24s var(--ease);
}

/* Дээд талын нимгэн accent зураас — hover үед */
.logo-cell::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), rgba(8, 80, 128, 0.12));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s var(--ease);
}

.logo-cell:hover {
  border-color: rgba(8, 80, 128, 0.22);
  box-shadow: var(--glow);
  transform: translateY(-3px);
}

.logo-cell:hover::before {
  transform: scaleX(1);
}

/* Лого — харьцаагаа хадгална, хэзээ ч сунгахгүй */
.logo-cell img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 44px;
  object-fit: contain;
  filter: saturate(0.92);
  opacity: 0.95;
  transition: filter 0.24s, opacity 0.24s, transform 0.24s var(--ease);
}

/* Дугуй тамга (БҮТ) — оптик тэнцвэрт илүү өндөр */
.logo-cell--seal img {
  max-height: 66px;
}

.logo-cell:hover img {
  filter: saturate(1.05);
  opacity: 1;
  transform: scale(1.03);
}

/* ---------------- Hero — бүтэн өргөний гэрэл зураг ----------------
   Зураг нь `<section>`-ийг бүхэлд нь бүрхэж, зүүн талд нь гарчиг
   уншигдахуйц цайвар градиент тавина. `.hero::before` (төмөр тор) болон
   `.hero::after` (гэрэлтэлт) нь гэрэл зургийн дээр давхарлагдана. */

.hero--photo {
  background: var(--light);
  min-height: clamp(500px, 70vh, 680px);
  display: flex;
  align-items: center;
  padding: clamp(40px, 4.6vw, 64px) 0;
  border-bottom: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Зургийн гол анхаарлыг баруун тийш зөөж, зүүн талыг чөлөөлнө */
  object-position: 68% 42%;
}

/* Зүүн талаас баруун тийш цайврын градиент — бичвэрийн уншигдац */
.hero--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      94deg,
      rgba(246, 248, 252, 0.97) 0%,
      rgba(246, 248, 252, 0.93) 26%,
      rgba(246, 248, 252, 0.66) 42%,
      rgba(246, 248, 252, 0.12) 58%,
      rgba(246, 248, 252, 0) 70%
    ),
    linear-gradient(180deg, rgba(246, 248, 252, 0.5) 0%, rgba(246, 248, 252, 0) 24%);
  mask-image: none;
  -webkit-mask-image: none;
  pointer-events: none;
}

.hero--photo::after {
  display: none;
}

.hero--photo .hero-grid {
  position: relative;
  z-index: 2;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
  align-items: center;
}

.hero--photo .hero-copy {
  max-width: 660px;
}

/* Гарчиг нь шаардлагатай урт бичвэр тул нүүр хуудсанд
   бага зэрэг жижиг, нягт хэмжээгээр харуулна. */
.hero--photo .display {
  max-width: 26ch;
  font-size: clamp(30px, 3.55vw, 46px);
  line-height: 1.08;
}

.hero--photo .hero-sub {
  max-width: 44ch;
  font-size: clamp(14px, 1.15vw, 15.5px);
  margin-top: 16px;
}

/* Зураг нь баруун талд байгаа тул бөмбөлгүүдийг нэг баганатай,
   явцуу хэмжээгээр үлдээнэ — эс бөгөөс цайвар дэвсгэр нь зургийн
   хүмүүс дээр давхцаж, бичвэр уншигдахад хэцүү болно. */
.hero--photo .hero-bullets {
  grid-template-columns: 1fr;
  gap: 7px;
  max-width: 380px;
}

.hero--photo .hero-bullets li {
  padding: 8px 13px 8px 11px;
  font-size: 12px;
}

/* Баджүүд — гарчгийн доор, нэг эгнээнд.
   `.hero-badges` нь хуучин зураг дээрх байрлалаас `position:absolute`
   өвлөдөг тул энд тодорхой тайлна. */
.hero-badges--row {
  position: static;
  inset: auto;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 8px;
  margin-top: 26px;
}

.hero-badges--row .hero-badge {
  flex: 0 1 auto;
}

.hero--photo .hero-credit {
  margin-top: 18px;
  font-size: 11.5px;
  max-width: 44ch;
}

/* ---------------- Training — нүүр хуудсан дээрх жагсаалт ----------------
   Нүүр хуудас хэт урт байсныг зассан: бүрэн картын оронд нягт
   жагсаалт. Дэлгэрэнгүй нь `/training/<slug>` дээр нээгдэнэ. */

.train-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.train-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 18px;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease),
    transform 0.22s var(--ease);
}

.train-row::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--blue);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s var(--ease);
}

.train-row:hover {
  border-color: rgba(8, 80, 128, 0.24);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.train-row:hover::before {
  transform: scaleY(1);
}

.train-row-main {
  min-width: 0;
}

.train-row h3 {
  font-family: var(--serif);
  font-size: clamp(17px, 1.7vw, 19.5px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
  letter-spacing: -0.005em;
}

.train-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.train-row-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(10, 35, 66, 0.24);
}

.train-row-meta b {
  font-weight: 500;
  color: var(--ink-2);
}

.train-row-meta .is-soon {
  color: var(--muted);
  border: 1px dashed rgba(10, 35, 66, 0.2);
  border-radius: 999px;
  padding: 1px 8px;
  letter-spacing: 0.06em;
}

.train-row-go {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(8, 80, 128, 0.22);
  color: var(--blue);
  background: var(--blue-wash);
  font-size: 13px;
  flex-shrink: 0;
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.train-row:hover .train-row-go {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: translateX(2px);
}

/* ---------------- Services — нүүр хуудсан дээрх хураангуй ----------------
   Бүрэн карт нь `/outsourcing/<slug>` дээр. */

.svc-card--brief {
  padding: clamp(22px, 2.5vw, 30px);
}

.svc-card--brief .svc-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.section-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(24px, 2.8vw, 34px);
}

.section-cta-row--end {
  justify-content: center;
}

/* ---------------- Landing хуудсууд (`/zovloh`, `/surgalt`) ----------------
   Хоёр чиглэлийн нүүр. Толгой нь гэрэл зурагтай, доор нь
   чиглэл солих самбар (`.mode-switch`) байрлана. */

.landing-head {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(560px, 74vh, 720px);
  padding: clamp(70px, 8vw, 110px) 0 clamp(34px, 4vw, 52px);
  background: var(--light);
  overflow: hidden;
}

.landing-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.landing-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 46%;
}

/* Зүүн талаас баруун тийш цайврын градиент — бичвэрийн уншигдац */
.landing-head::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(96deg,
      rgba(246, 248, 252, 0.98) 0%,
      rgba(246, 248, 252, 0.95) 30%,
      rgba(246, 248, 252, 0.74) 46%,
      rgba(246, 248, 252, 0.18) 62%,
      rgba(246, 248, 252, 0) 74%),
    linear-gradient(180deg, rgba(246, 248, 252, 0.6) 0%, rgba(246, 248, 252, 0) 26%);
  pointer-events: none;
}

.landing-inner {
  position: relative;
  z-index: 2;
}

.landing-title {
  max-width: 20ch;
  font-size: clamp(31px, 4.1vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.012em;
}

.landing-lead {
  max-width: 52ch;
  margin-top: 18px;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.68;
  color: var(--navy-ink);
}

.landing-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
  max-width: 620px;
}

.landing-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--hair, rgba(10, 35, 66, 0.1));
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-2, var(--navy-ink));
  backdrop-filter: blur(6px);
}

.landing-chip::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

/* ---------------- Чиглэл солих самбар ---------------- */

.mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
  margin-top: clamp(30px, 3.6vw, 46px);
}

.mode-tab {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 15px 17px;
  border-radius: var(--r-md, 14px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--hair, rgba(10, 35, 66, 0.12));
  backdrop-filter: blur(8px);
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease),
    transform 0.22s var(--ease), background 0.22s var(--ease);
}

.mode-tab:hover {
  transform: translateY(-2px);
  border-color: rgba(8, 80, 128, 0.3);
  box-shadow: var(--glow, 0 10px 30px rgba(10, 35, 66, 0.09));
}

.mode-tab.is-active {
  background: var(--blue);
  border-color: var(--blue);
}

.mode-tab-ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--blue-wash);
  color: var(--blue);
  flex-shrink: 0;
  transition: background 0.22s var(--ease), color 0.22s var(--ease);
}

.mode-tab.is-active .mode-tab-ico {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.mode-tab-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.mode-tab-text b {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
  color: var(--navy);
  transition: color 0.22s var(--ease);
}

.mode-tab-text > span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.22s var(--ease);
}

.mode-tab.is-active .mode-tab-text b {
  color: #fff;
}

.mode-tab.is-active .mode-tab-text > span {
  color: rgba(255, 255, 255, 0.78);
}

.mode-tab-go {
  font-size: 13px;
  color: var(--blue);
  transition: color 0.22s var(--ease), transform 0.22s var(--ease);
}

.mode-tab.is-active .mode-tab-go {
  color: rgba(255, 255, 255, 0.9);
}

.mode-tab:hover .mode-tab-go {
  transform: translateX(2px);
}

/* ---------------- Бүрэн үйлчилгээний карт (`/zovloh`) ---------------- */

.svc-card--full {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 38px);
}

.svc-card--full .svc-ico {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  margin-bottom: 16px;
}

.svc-card--full h3 {
  font-size: clamp(19px, 1.9vw, 22px);
  line-height: 1.22;
}

.svc-card--full p {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.62;
}

.svc-bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 18px 0 0;
  padding: 16px 0 0;
  list-style: none;
  border-top: 1px solid var(--hair, rgba(10, 35, 66, 0.1));
}

.svc-bullets li {
  position: relative;
  padding-left: 17px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.svc-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--blue);
}

.svc-bullets b {
  font-weight: 650;
  color: var(--ink-2, var(--navy-ink));
}

.svc-card--full .more {
  margin-top: auto;
  padding-top: 18px;
}

/* ---------------- Зарчмын 4 карт ---------------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: clamp(28px, 3.2vw, 40px);
}

.why-card {
  padding: 24px 22px 26px;
  background: var(--white);
  border: 1px solid var(--hair, rgba(10, 35, 66, 0.1));
  border-radius: var(--r-md, 14px);
}

.why-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--blue-wash);
  color: var(--blue);
  margin-bottom: 14px;
}

.why-k {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}

.why-card h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}

.why-card p {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.58;
  color: var(--muted);
}

/* ---------------- Сургалтын танхимын галерей ---------------- */

.gallery-band {
  padding-top: clamp(34px, 4vw, 54px);
  padding-bottom: clamp(34px, 4vw, 54px);
}

.gallery-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr);
  gap: 10px;
}

.gallery-pair--small {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-fig {
  position: relative;
  margin: 0;
  border-radius: var(--r-md, 14px);
  overflow: hidden;
  background: var(--blue-wash);
}

.gallery-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.gallery-fig:hover img {
  transform: scale(1.02);
}

.gallery-fig figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 35, 66, 0.78);
  color: #fff;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.gallery-pair .gallery-fig {
  aspect-ratio: 4 / 3;
}

.gallery-pair--small .gallery-fig {
  aspect-ratio: 4 / 3;
}

/* ---------------- Гэрчилгээний зурвас ---------------- */

.cert-note-band {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: center;
}

.cert-note-badge {
  padding: 26px;
  border-radius: var(--r-md, 14px);
  background: var(--white);
  border: 1px solid var(--hair, rgba(10, 35, 66, 0.1));
  text-align: center;
}

.cert-note-badge .badge-ring {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 2px dashed rgba(8, 80, 128, 0.35);
  font-family: var(--mono);
  font-size: 17px;
  color: var(--blue);
}

.cert-note-badge b {
  display: block;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--navy);
}

.cert-note-badge > span:last-child {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------------- Эцсийн CTA ---------------- */

.cta-final {
  text-align: center;
}

.cta-final .display {
  margin: 14px auto 0;
  max-width: 26ch;
}

.cta-final .eyebrow {
  justify-content: center;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1080px) {
  .trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trust-item:nth-child(3n + 1) {
    border-left: none;
    padding-left: 0;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat--hero {
    grid-column: span 2;
  }

  .logo-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partners-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .partners-head .h2 {
    max-width: none;
  }

  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-pair {
    grid-template-columns: 1fr;
  }

  .cert-note-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  /* style.css-ийн media query-г modern.css дардаг тул энд давтан заана */
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 0;
    padding-top: 30px;
  }

  .process::before {
    display: none;
  }

  .process-step .n {
    box-shadow: none;
  }

  .hero-media {
    padding: 0;
    max-width: 520px;
  }

  .hero-badges {
    right: 12px;
    left: 12px;
    bottom: 12px;
  }

  /* Бүтэн өргөний hero — гар утсан дээр зураг дээд талд бүтэн
     өргөнөөр, бичвэр доор нь. `.hero--photo` нь flex контейнер тул
     чиглэлийг багана болгож, зургийг `order`-оор дээш гаргана.
     Эс бөгөөс зураг бичвэрийн хажууд багцалж, гарчиг 160px болж
     шахагдана. */
  .hero--photo {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0 0 clamp(30px, 5vw, 44px);
  }

  .hero-bg {
    position: relative;
    inset: auto;
    order: -1;
    width: 100%;
    height: clamp(300px, 58vw, 420px);
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
  }

  .hero-bg img {
    object-position: 64% 36%;
  }

  /* Зураг нь бичвэрийн ард биш, тусдаа блок болсон тул
     градиент хэрэггүй */
  .hero--photo::before {
    display: none;
  }

  .hero--photo .hero-grid {
    display: block;
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: clamp(22px, 4vw, 34px);
  }

  .hero--photo .hero-copy {
    max-width: none;
  }

  .hero--photo .display {
    max-width: none;
    font-size: clamp(26px, 7.2vw, 34px);
    line-height: 1.13;
  }

  .hero--photo .hero-sub {
    max-width: none;
    font-size: 14px;
    line-height: 1.62;
  }

  /* Товчнууд контентын хэмжээгээр — "Зөвлөгөө авах" хуваагдахгүй */
  .hero--photo .hero-actions {
    gap: 10px;
  }

  .hero--photo .hero-actions .btn {
    flex: 0 1 auto;
    white-space: nowrap;
  }

  /* Гар утсан дээр eyebrow нэг мөрөнд багтана */
  .hero--photo .eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
    white-space: nowrap;
  }

  .hero--photo .eyebrow::after {
    display: none;
  }

  .about-band {
    grid-template-columns: 1fr;
  }

  .train-list {
    grid-template-columns: 1fr;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }

  /* Landing хуудсууд — гар утсанд зураг дээд талд, бичвэр доор нь */
  .landing-head {
    min-height: 0;
    display: block;
    padding: 0 0 clamp(28px, 5vw, 40px);
  }

  .landing-bg {
    position: relative;
    inset: auto;
    width: 100%;
    height: clamp(280px, 54vw, 400px);
  }

  .landing-bg img {
    object-position: 58% 42%;
  }

  /* Зураг бичвэрийн ард биш тул градиент хэрэггүй */
  .landing-head::before {
    display: none;
  }

  .landing-inner {
    padding-top: clamp(22px, 4vw, 34px);
  }

  .landing-title {
    max-width: none;
    font-size: clamp(26px, 6.8vw, 34px);
    line-height: 1.12;
  }

  .landing-lead {
    max-width: none;
    font-size: 14px;
    line-height: 1.62;
  }

  .landing-chips {
    max-width: none;
    gap: 6px;
  }

  .landing-chip {
    font-size: 9.5px;
    padding: 5px 11px;
  }

  .landing-actions {
    gap: 10px;
  }

  .landing-actions .btn {
    flex: 0 1 auto;
    white-space: nowrap;
  }

  .mode-switch {
    max-width: none;
    margin-top: 26px;
  }

  .gallery-pair--small {
    grid-template-columns: 1fr;
  }

  .cta-final .display {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .hero-bullets {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px 0;
  }

  .trust-item {
    padding: 16px 14px;
    border-left: 1px solid var(--hair);
  }

  .trust-item:nth-child(2n + 1) {
    border-left: none;
    padding-left: 0;
  }

  .trust-item p {
    max-width: none;
  }

  .logo-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stat--hero {
    grid-column: span 1;
  }

  .stat {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .pillars {
    grid-template-columns: 1fr;
  }

  .process {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-quote {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pillar,
  .svc-card,
  .logo-cell {
    transition: none;
  }

  .pillar:hover,
  .svc-card:hover,
  .logo-cell:hover {
    transform: none;
  }
}

/* ---------------- Нүүр хуудасны чиглэл солих зурвас ---------------- */

.mode-band {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: clamp(26px, 3.2vw, 38px) 0 clamp(30px, 3.6vw, 42px);
}

.mode-band-eyebrow {
  margin-bottom: 14px;
}

.mode-band .mode-switch {
  max-width: none;
  margin-top: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mode-band .mode-tab {
  background: var(--light);
  padding: 17px 19px;
}

@media (max-width: 720px) {
  .mode-band .mode-switch {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
