/* =========================================================
   Баялаг говь ХХК — landing page
   Өнгө: Logo.png-ээс (indigo #3E4095, orange #F58634)
   Фонтын хэмжээг :root дахь --fs-* хувьсагчаас тохируулна
   ========================================================= */

:root {
  --indigo-950: #0E1030;
  --indigo-900: #161843;
  --indigo-700: #2F3176;
  --indigo-600: #3E4095;
  --orange-500: #F58634;
  --orange-300: #FFB27A;
  --orange-700: #B4570D;

  --ink: #14162B;
  --ink-2: #474B66;
  --muted: #6B6F87;
  --line: #E6E6EE;
  --line-strong: #D6D7E2;
  --paper: #F8F7F4;
  --white: #fff;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter Tight", "Inter", system-ui, "Segoe UI", sans-serif;

  --fs-xs: .75rem;                                      /* 12px — тайлбар, шошго */
  --fs-sm: .8125rem;                                    /* 13px — жижиг текст, цэс */
  --fs-md: .875rem;                                     /* 14px — жагсаалт, товч */
  --fs-base: .9375rem;                                  /* 15px — үндсэн текст */
  --fs-h3: 1.0625rem;                                   /* 17px */
  --fs-num: clamp(1.3rem, 1.1rem + .7vw, 1.625rem);     /* 21–26px — тоон үзүүлэлт */
  --fs-h2: clamp(1.3rem, 1.1rem + .75vw, 1.625rem);     /* 21–26px */
  --fs-h1: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem);    /* 26–36px */

  --header-h: 62px;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(20, 22, 43, .04), 0 10px 28px -22px rgba(20, 22, 67, .25);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
figure, dl, dd { margin: 0; }
p { margin: 0 0 1em; text-wrap: pretty; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.012em;
  text-wrap: balance;
}

:focus-visible { outline: 2px solid var(--orange-500); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1120px, 100% - clamp(32px, 8vw, 80px)); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  padding: 8px 14px; border-radius: 8px;
  background: var(--indigo-600); color: var(--white); font-weight: 600;
}
.skip-link:focus { top: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 40px; padding: 8px 18px;
  border: 1px solid transparent; border-radius: 9px;
  font: 600 var(--fs-md)/1.3 var(--font); text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s;
}
.btn .icon { transition: transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { background: var(--indigo-600); color: var(--white); box-shadow: 0 10px 20px -14px rgba(62, 64, 149, .8); }
.btn--primary:hover { background: var(--indigo-700); }
.btn--ghost { background: var(--white); border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--indigo-600); color: var(--indigo-600); }
.btn--orange { background: var(--orange-500); color: var(--ink); }
.btn--orange:hover { background: #FF9547; }
.btn--sm { min-height: 34px; padding: 6px 14px; font-size: var(--fs-sm); border-radius: 8px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -22px rgba(14, 16, 48, .4); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 8px; flex: none; text-decoration: none; }
.logo__mark { height: 31px; width: auto; }
.logo__word { height: 12px; width: auto; }

.nav { display: flex; align-items: center; gap: 18px; }
.nav__list { display: flex; gap: 2px; }
.nav__list a {
  position: relative; display: block; padding: 8px 11px; border-radius: 8px;
  color: var(--ink-2); font-size: var(--fs-sm); font-weight: 500; text-decoration: none;
  transition: color .2s;
}
.nav__list a::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px;
  border-radius: 2px; background: var(--orange-500);
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav__list a:hover, .nav__list a.is-active { color: var(--indigo-600); }
.nav__list a.is-active::after { transform: scaleX(1); }
.nav__phone { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav__phone .icon { color: var(--indigo-600); }
.nav__phone:hover { color: var(--indigo-600); }

.burger {
  display: none; position: relative; width: 40px; height: 40px; flex: none;
  border: 1px solid var(--line); border-radius: 9px; background: var(--white); cursor: pointer;
}
.burger span {
  position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform .25s, opacity .2s;
}
.burger span:nth-child(1) { top: 12px; }
.burger span:nth-child(2) { top: 18px; }
.burger span:nth-child(3) { top: 24px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 10px; margin: 0 0 10px;
  font: 700 .7rem/1.4 var(--font-display); letter-spacing: .12em; text-transform: uppercase;
  color: var(--indigo-600);
}
.eyebrow__no {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px;
  background: var(--indigo-600); color: var(--white); letter-spacing: 0;
}
.eyebrow--pill {
  display: inline-flex; margin-bottom: 16px; padding: 5px 13px 5px 11px; letter-spacing: .06em;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white);
}
.dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--orange-500); box-shadow: 0 0 0 3px rgba(245, 134, 52, .2); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(24px, 3vw, 40px) 0 20px;
  background: var(--paper);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(62, 64, 149, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 64, 149, .06) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 25% 20%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 25% 20%, #000 0%, transparent 75%);
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(28px, 4vw, 56px); align-items: center;
}
.hero__title { margin-bottom: 14px; font-size: var(--fs-h1); line-height: 1.2; letter-spacing: -.022em; }
.hero__title span { display: block; }
.hero__title .accent { color: var(--indigo-600); }
.hero__lead { max-width: 32em; font-size: var(--fs-base); color: var(--ink-2); }
.hero__lead strong { color: var(--ink); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.bento {
  display: grid; gap: 10px;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1.18fr) minmax(0, 1fr);
  height: clamp(360px, 33vw, 420px);
}
.bento__item { position: relative; overflow: hidden; border-radius: var(--radius); background: #DEDEE5; }
.bento__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.bento__item:hover img { transform: scale(1.03); }
.bento__item--tall { grid-row: 1 / -1; }
.bento__item--tall img { object-position: 50% 65%; }
.bento__item--kiosk { background: radial-gradient(120% 95% at 50% 15%, #5558BC 0%, var(--indigo-600) 42%, #1F2158 100%); }
.bento__item--kiosk img { object-fit: contain; padding: 18px 18px 30px; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .36)); }
.bento__item--panel img { object-position: 40% 50%; }

.chip {
  position: absolute; left: 9px; bottom: 9px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .95); color: var(--ink);
  font-size: var(--fs-xs); font-weight: 600; line-height: 1.35;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange-500); }
.chip--orange { background: var(--orange-500); }
.chip--orange::before { background: var(--ink); }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(22px, 3vw, 32px); border-top: 1px solid var(--line-strong);
}
.hero-stats__item { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 14px 14px 0 0; }
.hero-stats__item + .hero-stats__item { padding-left: 22px; border-left: 1px solid var(--line-strong); }
.hero-stats dd {
  font: 700 var(--fs-num)/1.25 var(--font-display);
  letter-spacing: -.015em; color: var(--indigo-600); font-variant-numeric: tabular-nums;
}
.hero-stats dd small { margin-left: 4px; font-size: .58em; color: var(--ink-2); }
.hero-stats dt { font-size: var(--fs-sm); line-height: 1.45; color: var(--muted); }
.hero-stats sup { color: var(--orange-700); font-weight: 700; }
.hero-stats__note { margin: 10px 0 0; font-size: var(--fs-xs); color: var(--muted); }
.hero-stats__note sup { color: var(--orange-700); }

/* ---------- Service strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--white); }
.strip__list {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 22px;
  padding-block: 11px; font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2);
}
.strip__list li { display: inline-flex; align-items: center; gap: 8px; }
.strip__list li::before { content: ""; width: 4px; height: 4px; background: var(--orange-500); transform: rotate(45deg); }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 5.5vw, 72px) 0; }
.section--paper { background: var(--paper); }
.section-head { max-width: 600px; margin-bottom: clamp(22px, 3vw, 32px); }
.section-head h2 { margin-bottom: 8px; font-size: var(--fs-h2); }
.section-head > p:not(.eyebrow) { margin: 0; color: var(--ink-2); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* ---------- Two pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pillar {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: var(--shadow-sm);
}
.pillar__media { position: relative; aspect-ratio: 16 / 7; overflow: hidden; background: #DEDEE5; }
.pillar__media img { width: 100%; height: 100%; object-fit: cover; }
.pillar__no {
  position: absolute; left: 18px; bottom: -1px;
  padding: 6px 12px 2px; border-radius: 10px 10px 0 0;
  background: var(--white); color: var(--indigo-600);
  font: 700 var(--fs-base)/1.3 var(--font-display);
}
.pillar__body { display: flex; flex: 1; flex-direction: column; padding: 14px clamp(18px, 2.2vw, 26px) 22px; }
.pillar h3 { margin-bottom: 6px; font-size: var(--fs-h3); }
.pillar p { font-size: var(--fs-md); color: var(--ink-2); }
.pillar--dark { border-color: transparent; background: var(--indigo-900); color: var(--white); }
.pillar--dark .pillar__media img { object-position: 35% 50%; }
.pillar--dark .pillar__no { background: var(--indigo-900); color: var(--orange-500); }
.pillar--dark p, .pillar--dark .checklist { color: rgba(255, 255, 255, .78); }

.checklist { display: grid; gap: 6px; margin: 2px 0 18px; font-size: var(--fs-md); }
.checklist li { display: flex; align-items: flex-start; gap: 9px; }
.checklist .icon { margin-top: .24em; color: var(--orange-500); stroke-width: 2.6; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; margin-top: auto;
  font-size: var(--fs-md); font-weight: 600; color: var(--indigo-600); text-decoration: none;
}
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }
.pillar--dark .link-arrow { color: var(--orange-500); }

/* ---------- Construction ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.services { margin-bottom: 20px; }
.service { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 13px; padding: 12px 0; border-bottom: 1px solid var(--line-strong); }
.service:first-child { padding-top: 0; }
.service__icon {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--indigo-600);
}
.service__icon .icon { width: 19px; height: 19px; stroke-width: 1.7; }
.service h3 { margin-bottom: 2px; font-size: var(--fs-base); letter-spacing: -.005em; }
.service p { margin: 0; font-size: var(--fs-sm); line-height: 1.55; color: var(--ink-2); }

/* Зүүн талын жагсаалттай яг тэнцүү өндөр: дээр нь төслийн зураг, доор нь үлдсэн өндрийг дүүргэнэ */
.collage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto minmax(0, 1fr); gap: 10px; }
.collage__project { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

.photo { position: relative; overflow: hidden; border-radius: 11px; background: #DEDEE5; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.photo:hover img { transform: scale(1.04); }
.photo figcaption {
  position: absolute; inset: auto 0 0 0; padding: 28px 11px 8px;
  background: linear-gradient(transparent, rgba(14, 16, 48, .85));
  color: var(--white); font-size: var(--fs-xs); font-weight: 600; line-height: 1.35;
}

.results {
  margin-top: clamp(32px, 4vw, 48px); padding: clamp(18px, 2.4vw, 28px);
  border-radius: 16px; background: var(--indigo-600); color: var(--white);
}
.results__label { margin-bottom: 14px; font: 700 .7rem/1.4 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--orange-300); }
.results__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.results__grid > div { display: flex; flex-direction: column; padding: 0 18px; border-left: 1px solid rgba(255, 255, 255, .18); }
.results__grid > div:first-child { padding-left: 0; border-left: 0; }
.results__grid dt { font-size: var(--fs-md); font-weight: 600; line-height: 1.4; }
.results__num { order: -1; font: 700 var(--fs-num)/1.25 var(--font-display); letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.results__num small { margin-left: 4px; font-size: .58em; color: var(--orange-300); }
.results__note { margin-top: 4px; font-size: var(--fs-xs); line-height: 1.5; color: rgba(255, 255, 255, .76); }

.field { margin-top: clamp(32px, 4vw, 48px); }
.field__title { margin-bottom: 14px; font-size: var(--fs-h3); }
.field__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.field__grid .photo { aspect-ratio: 4 / 3; }

/* ---------- Dark sections ---------- */
.section--dark { position: relative; isolation: isolate; overflow: hidden; background: var(--indigo-900); color: var(--white); }
.section--dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 60% 45% at 85% 0%, #000, transparent 80%);
  mask-image: radial-gradient(ellipse 60% 45% at 85% 0%, #000, transparent 80%);
}
.section--dark .eyebrow { color: var(--orange-300); }
.section--dark .eyebrow__no { background: var(--orange-500); color: var(--ink); }
.section--dark .section-head > p:not(.eyebrow) { color: rgba(255, 255, 255, .74); }

/* ---------- Equipment ---------- */
.tag { margin: 0 0 6px; font: 700 .7rem/1.4 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--orange-500); }

.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.product__visual {
  position: relative; padding: clamp(24px, 3vw, 36px) 20px 48px;
  border: 1px solid rgba(255, 255, 255, .09); border-radius: 18px;
  background: radial-gradient(90% 70% at 50% 38%, #5053B5 0%, #2E3079 52%, #1C1E50 100%);
}
.product__visual img { width: min(100%, 320px); margin: 0 auto; filter: drop-shadow(0 24px 24px rgba(0, 0, 0, .42)); }
.product__visual figcaption { position: absolute; inset: auto 0 15px 0; text-align: center; font-size: var(--fs-xs); color: rgba(255, 255, 255, .66); }
.product__name { margin-bottom: 2px; font-size: var(--fs-h2); }
.product__sub { margin-bottom: 8px; font-size: var(--fs-base); font-weight: 600; }
.product__text { font-size: var(--fs-md); color: rgba(255, 255, 255, .74); }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 16px 0; }
.features li { display: flex; gap: 10px; padding: 11px 12px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 10px; background: rgba(255, 255, 255, .045); }
.features .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--orange-500); }
.features strong { display: block; font-size: var(--fs-sm); font-weight: 600; line-height: 1.4; }
.features span { display: block; margin-top: 2px; font-size: var(--fs-xs); line-height: 1.45; color: rgba(255, 255, 255, .66); }

.platform { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: clamp(28px, 3.5vw, 40px); border-block: 1px solid rgba(255, 255, 255, .12); }
.platform > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 12px 16px 12px 0; }
.platform > div + div { padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .12); }
.platform dd { font: 700 var(--fs-num)/1.25 var(--font-display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.platform dt { font-size: var(--fs-xs); line-height: 1.4; color: rgba(255, 255, 255, .66); }

.product__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.product__call { display: inline-flex; align-items: center; gap: 9px; font-size: var(--fs-base); font-weight: 700; line-height: 1.3; text-decoration: none; }
.product__call .icon { width: 20px; height: 20px; color: var(--orange-500); }
.product__call small { display: block; font-size: var(--fs-xs); font-weight: 500; color: rgba(255, 255, 255, .62); }
.product__call:hover { color: var(--orange-300); }

.scada {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: center;
  margin-top: clamp(40px, 5vw, 60px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid rgba(255, 255, 255, .1);
}
.scada h3 { margin-bottom: 8px; font-size: var(--fs-h2); }
.scada__info > p:not(.tag) { font-size: var(--fs-md); color: rgba(255, 255, 255, .74); }
.checklist--light { margin-bottom: 0; color: rgba(255, 255, 255, .86); }
.scada__diagram { padding: clamp(14px, 2vw, 22px); border: 1px solid rgba(255, 255, 255, .09); border-radius: 16px; background: rgba(255, 255, 255, .035); }
.scada__diagram svg { display: block; width: 100%; max-width: 420px; height: auto; margin-inline: auto; }
.scada__diagram figcaption { margin-top: 6px; text-align: center; font-size: var(--fs-xs); color: rgba(255, 255, 255, .5); }

.d-box rect { fill: var(--indigo-600); stroke: rgba(255, 255, 255, .2); }
.d-title { fill: #fff; font: 700 21px var(--font-display); letter-spacing: .04em; }
.d-sub { fill: rgba(255, 255, 255, .8); font: 500 14px var(--font); }
.d-signal { fill: none; stroke: var(--orange-500); stroke-width: 1.8; stroke-dasharray: 5 6; animation: dash 1.4s linear infinite; }
.d-port { fill: var(--orange-500); }
.d-pipe { fill: none; stroke: #4F52B3; stroke-width: 10; }
.d-flow { fill: none; stroke: #C9CBFF; stroke-width: 2; stroke-dasharray: 8 10; animation: flow 1.2s linear infinite; }
.d-node rect { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .2); }
.d-ico { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.d-water { fill: none; stroke: var(--orange-500); stroke-width: 2; stroke-linecap: round; }
.d-label { fill: #fff; font: 600 15px var(--font); }
@keyframes dash { to { stroke-dashoffset: -22; } }
@keyframes flow { to { stroke-dashoffset: -18; } }

.line__title { margin: clamp(36px, 4.5vw, 52px) 0 14px; font-size: var(--fs-h3); }

/* Баганын өргөн = зургийн харьцаа (1400/934, 600/900) → хоёр зураг тайралгүй ижил өндөртэй */
.showcase { display: grid; grid-template-columns: minmax(0, 1.499fr) minmax(0, .667fr); gap: 12px; margin-bottom: 12px; }
.showcase__card { overflow: hidden; border: 1px solid rgba(255, 255, 255, .09); border-radius: 12px; background: rgba(255, 255, 255, .045); }
.showcase__card--light img { background: var(--white); }
.showcase__card img { width: 100%; }
.showcase__body { padding: 12px 14px 14px; }
.showcase__body h4 { margin: 0 0 4px; font-size: var(--fs-base); }
.showcase__body p { margin: 0; font-size: var(--fs-sm); line-height: 1.55; color: rgba(255, 255, 255, .7); }

.line { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.line__card { overflow: hidden; border: 1px solid rgba(255, 255, 255, .09); border-radius: 12px; background: rgba(255, 255, 255, .045); }
.line__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #22245A; }
.line__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.line__card:hover .line__media img { transform: scale(1.04); }
.line__media--light { background: var(--white); }
.line__media--light img { object-fit: contain; padding: 10px; }
.line__card h4 { margin: 12px 14px 4px; font-size: var(--fs-base); }
.line__card p { margin: 0 14px 14px; font-size: var(--fs-sm); line-height: 1.55; color: rgba(255, 255, 255, .7); }
.badge-new { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--orange-500); color: var(--ink); font: 700 .65rem/1.5 var(--font); vertical-align: 2px; }

.aftercare {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: center;
  margin-top: clamp(36px, 4.5vw, 52px); padding: 12px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 16px; background: rgba(255, 255, 255, .045);
}
.aftercare > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.aftercare__body { padding: 4px 8px 4px 0; }
.aftercare h3 { margin-bottom: 8px; font-size: var(--fs-h2); }
.aftercare__body > p:not(.tag) { font-size: var(--fs-md); color: rgba(255, 255, 255, .74); }
.aftercare__stats { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.aftercare__stats > div { display: flex; flex-direction: column-reverse; }
.aftercare__stats dd { font: 700 var(--fs-num)/1.25 var(--font-display); }
.aftercare__stats dt { font-size: var(--fs-xs); color: rgba(255, 255, 255, .66); }

/* ---------- Wells wall ---------- */
.wall { position: relative; display: grid; place-items: center; min-height: clamp(340px, 34vw, 440px); padding: 32px 20px; overflow: hidden; background: var(--white); }
.wall__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wall::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(14, 16, 48, .48) 0%, rgba(14, 16, 48, .16) 55%, rgba(14, 16, 48, .04) 100%); }
.wall__card {
  position: relative; z-index: 1; width: min(360px, 100%); padding: 22px clamp(20px, 2.6vw, 28px);
  border-radius: 14px; background: rgba(34, 36, 98, .95); color: var(--white); text-align: center;
  box-shadow: 0 24px 50px -22px rgba(8, 10, 34, .7);
}
.wall__num { margin: 0; font: 700 clamp(2.25rem, 1.9rem + 1.4vw, 2.75rem)/1.1 var(--font-display); letter-spacing: -.025em; color: var(--orange-500); font-variant-numeric: tabular-nums; }
.wall__card h2 { margin: 2px 0 8px; font-size: var(--fs-h3); }
.wall__card p:last-child { margin: 0; font-size: var(--fs-sm); color: rgba(255, 255, 255, .8); }

/* ---------- About / timeline ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.about__intro { position: sticky; top: calc(var(--header-h) + 24px); }
.timeline__item { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 38px; padding-bottom: 22px; }
.timeline__item:not(:last-child)::before { content: ""; position: absolute; left: 64px; top: 17px; bottom: -5px; width: 2px; background: var(--line-strong); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::after {
  content: ""; position: absolute; left: 59px; top: 5px; width: 12px; height: 12px;
  border: 2px solid var(--indigo-600); border-radius: 50%; background: var(--white);
}
.timeline__item--now::after { border-color: var(--orange-500); background: var(--orange-500); box-shadow: 0 0 0 4px rgba(245, 134, 52, .2); }
.timeline__year { font: 700 var(--fs-base)/1.45 var(--font-display); color: var(--indigo-600); font-variant-numeric: tabular-nums; }
.timeline h3 { margin: 0 0 3px; font-size: var(--fs-base); line-height: 1.45; }
.timeline p { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }

/* ---------- Capacity ---------- */
.capacity { display: grid; grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 1fr)); gap: 12px; }
.cap { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.cap h3 { margin-bottom: 10px; font-size: var(--fs-base); }
.cap__num { margin: 0; font: 700 var(--fs-num)/1.2 var(--font-display); letter-spacing: -.015em; color: var(--indigo-600); }

.teams li { border-top: 1px solid var(--line); }
.teams summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; list-style: none; cursor: pointer; font-size: var(--fs-sm); font-weight: 600; }
.teams summary::-webkit-details-marker { display: none; }
.teams summary span::after { content: "+"; margin-left: 7px; color: var(--orange-700); font-weight: 700; }
.teams details[open] summary span::after { content: "–"; }
.teams summary b { font: 700 var(--fs-base) var(--font-display); color: var(--indigo-600); }
.teams details p { margin: 0; padding-bottom: 10px; font-size: var(--fs-xs); color: var(--ink-2); }

.spaces li { padding: 10px 0; border-top: 1px solid var(--line); }
.spaces b { display: block; font: 700 var(--fs-h3)/1.35 var(--font-display); color: var(--indigo-600); }
.spaces span { display: block; font-size: var(--fs-xs); line-height: 1.55; color: var(--ink-2); }

.tools p { margin: 0; padding: 10px 0; border-top: 1px solid var(--line); }
.tools b { display: block; font: 700 var(--fs-h3)/1.35 var(--font-display); color: var(--indigo-600); }
.tools p > span { display: block; font-size: var(--fs-xs); line-height: 1.55; color: var(--ink-2); }

.cap--wide { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 14px; }
.cap--wide h3 { margin: 0; }
.fleet { display: flex; flex-wrap: wrap; gap: 8px; }
.fleet li { display: flex; align-items: center; gap: 8px; padding: 3px 4px 3px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: var(--fs-xs); font-weight: 600; }
.fleet b { display: grid; place-items: center; min-width: 22px; height: 22px; border-radius: 999px; background: var(--indigo-600); color: var(--white); font-size: .7rem; }

/* ---------- Social responsibility ---------- */
.csr { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.csr__media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.csr__media .photo { aspect-ratio: 4 / 3; }
.csr__media .csr__main { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.wells-table { width: 100%; border-collapse: collapse; font-size: var(--fs-md); }
.wells-table th, .wells-table td { padding: 9px 8px 9px 0; border-bottom: 1px solid var(--line); text-align: left; }
.wells-table thead th { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.wells-table tbody th { font: 700 var(--fs-md) var(--font-display); color: var(--indigo-600); }
.wells-table td:last-child, .wells-table thead th:last-child { padding-right: 0; text-align: right; font-variant-numeric: tabular-nums; }
.wells-table td:last-child { color: var(--muted); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact h2 { margin-bottom: 8px; font-size: var(--fs-h2); }
.contact__copy > p:not(.eyebrow) { max-width: 30em; color: rgba(255, 255, 255, .76); }
.contact__list { display: grid; gap: 8px; max-width: 430px; margin-top: 16px; }
.contact__item {
  display: flex; align-items: center; gap: 11px; padding: 8px 14px 8px 8px;
  border: 1px solid rgba(255, 255, 255, .13); border-radius: 12px; background: rgba(255, 255, 255, .06);
  font-size: var(--fs-md); font-style: normal; font-weight: 600; line-height: 1.45; text-decoration: none; overflow-wrap: anywhere;
  transition: background-color .2s, border-color .2s;
}
a.contact__item:hover { border-color: var(--orange-500); background: rgba(255, 255, 255, .09); }
.contact__icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 9px; background: var(--orange-500); color: var(--ink); }
.contact__icon .icon { width: 18px; height: 18px; }
.contact__item small { display: block; font-size: var(--fs-xs); font-weight: 500; line-height: 1.4; color: rgba(255, 255, 255, .62); }

.form { display: grid; gap: 10px; padding: clamp(18px, 2.4vw, 26px); border-radius: 16px; background: var(--white); color: var(--ink); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .6); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.field-input { display: grid; gap: 4px; font-size: var(--fs-xs); font-weight: 600; }
.field-input input, .field-input select, .field-input textarea {
  width: 100%; min-height: 38px; padding: 7px 11px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--white);
  color: var(--ink); font: 400 var(--fs-md)/1.4 var(--font);
  transition: border-color .2s, box-shadow .2s;
}
.field-input textarea { resize: vertical; }
.field-input input:focus, .field-input select:focus, .field-input textarea:focus { outline: none; border-color: var(--indigo-600); box-shadow: 0 0 0 3px rgba(62, 64, 149, .16); }
.field-input [aria-invalid="true"] { border-color: #C2362B; }
.form__error { margin: 0; font-size: var(--fs-sm); font-weight: 600; color: #B3261E; }
.form__hint { margin: 0; text-align: center; font-size: var(--fs-xs); color: var(--muted); }

/* ---------- Footer ---------- */
.footer { padding: 40px 0 20px; background: var(--indigo-950); color: rgba(255, 255, 255, .7); font-size: var(--fs-sm); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.2fr); gap: 28px; }
.footer__brand p { max-width: 280px; margin: 12px 0 0; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.footer__col h2 { margin: 0 0 4px; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--white); }
.footer__col a { text-decoration: none; overflow-wrap: anywhere; transition: color .2s; }
.footer__col a:hover { color: var(--orange-500); }
.footer__col address { max-width: 220px; font-style: normal; line-height: 1.55; }
.footer__bottom { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .09); font-size: var(--fs-xs); }
.footer__bottom p { margin: 0; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (min-width: 1041px) and (max-width: 1199px) {
  .nav__phone { display: none; }
}

@media (max-width: 1040px) {
  .nav__phone { justify-content: center; padding: 8px 0; font-size: var(--fs-base); }
  .burger { display: block; }
  .js .nav {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 12px;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    padding: 4px clamp(16px, 4vw, 40px) 20px;
    border-bottom: 1px solid var(--line); background: var(--white);
    box-shadow: 0 24px 40px -24px rgba(14, 16, 48, .3);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .js .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; }
  .nav__list a { padding: 11px 2px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: var(--fs-md); }
  .nav__list a::after { display: none; }
  .nav__cta { min-height: 40px; }
  html:not(.js) .header { position: static; }
  html:not(.js) .header__inner { height: auto; flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .nav, html:not(.js) .nav__list { flex-wrap: wrap; flex-direction: row; }
  html:not(.js) .burger { display: none; }

  .hero__grid, .split, .product, .scada, .about, .csr, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .collage { grid-template-rows: none; }
  .collage .photo { aspect-ratio: 4 / 3; }
  .collage .collage__project { aspect-ratio: 16 / 9; }
  .product__visual { width: 100%; max-width: 520px; margin-inline: auto; }
  .hero__copy { max-width: 600px; }
  .bento { height: clamp(330px, 55vw, 460px); }
  .about__intro { position: static; }
  .aftercare { grid-template-columns: minmax(0, 1fr); }
  .aftercare__body { padding: 4px 4px 8px; }
  .capacity { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cap--team { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .showcase { grid-template-columns: minmax(0, 1fr); }
  .showcase__card--light img { max-width: 360px; margin-inline: auto; }
  .showcase__card--light { background: var(--white); color: var(--ink); }
  .showcase__card--light .showcase__body p { color: var(--ink-2); }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats__item:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-stats__item:nth-child(n + 3) { margin-top: 12px; border-top: 1px solid var(--line-strong); }
  .results__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .results__grid > div { padding: 0 14px; }
  .results__grid > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .field__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .platform { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .platform > div:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .12); }
  .platform > div:last-child { grid-column: 1 / -1; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  /* iOS дээр 16px-ээс жижиг талбар дээр дарахад дэлгэц автоматаар томордог */
  .field-input input, .field-input select, .field-input textarea { min-height: 42px; font-size: 1rem; }
  .capacity { grid-template-columns: minmax(0, 1fr); }
  .strip__list { justify-content: flex-start; gap: 6px; }
  .strip__list li { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-xs); }
  .strip__list li::before { display: none; }
}

@media (max-width: 520px) {
  .logo__mark { height: 28px; }
  .logo__word { height: 11px; }
  .hero__actions .btn { width: 100%; min-height: 42px; }
  .bento { height: 320px; gap: 8px; grid-template-columns: minmax(0, .68fr) minmax(0, 1fr); }
  .bento__item { border-radius: 11px; }
  .bento__item--kiosk img { padding: 10px 10px 30px; }
  .chip { left: 6px; bottom: 6px; gap: 5px; padding: 3px 8px; font-size: .7rem; }
  .line { grid-template-columns: minmax(0, 1fr); }
  .product__actions .btn { width: 100%; }
  .timeline__item { grid-template-columns: minmax(0, 1fr); padding-left: 26px; }
  .timeline__item:not(:last-child)::before { left: 5px; }
  .timeline__item::after { left: 0; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
  .footer__brand, .footer__col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 360px) {
  .eyebrow--pill { border-radius: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .d-signal, .d-flow { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
