/* ============================================================
   Zhongxin Energy - stylesheet
   Palette derived from brand logo: navy / gold / deep green
   ============================================================ */

/* Uyghur body font - self-hosted so overseas visitors see it without installing */
@font-face {
  font-family: "ALKATIP Basma";
  src: url("../fonts/alkatip-basma.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-900: #061726;
  --navy-800: #0A2140;
  --navy-700: #0E2A4A;
  --navy-600: #16375E;
  --navy-500: #1E4574;

  --gold-700: #A8791C;
  --gold-600: #C9A227;
  --gold-500: #D9B44A;
  --gold-300: #EBD69B;

  --green-700: #14503A;
  --green-600: #1B5E43;

  --ink: #0D1A29;
  --body: #4A5B6D;
  --muted: #7B8B9C;
  --line: #E4EAF1;
  --bg: #FFFFFF;
  --soft: #F5F8FB;
  --soft-2: #EEF3F8;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(13, 26, 41, .05);
  --shadow: 0 14px 40px -18px rgba(13, 26, 41, .22);
  --shadow-lg: 0 30px 70px -30px rgba(13, 26, 41, .35);

  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Uyghur is written in Arabic script - the Arabic-aware font has to come first,
     CJK is picked up later in the same stack so 中新能源 still renders correctly. */
  --font-ug: "ALKATIP Basma", "Microsoft Uighur", "UKIJ Tuz Tom", "ALKATIP Tor", "Segoe UI", Tahoma, "Microsoft YaHei", Arial, sans-serif;
  --header-h: 76px;
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.25; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
ul { margin: 0; padding: 0; list-style: none; }
input, textarea { font-family: inherit; font-size: 15px; }
::selection { background: var(--gold-500); color: #fff; }

html[data-lang="zh"] h1, html[data-lang="zh"] h2, html[data-lang="zh"] h3 { letter-spacing: .01em; }
html[data-lang="en"] h1, html[data-lang="en"] h2 { letter-spacing: -.01em; }
html[data-lang="ru"] body, html[data-lang="kk"] body { line-height: 1.7; }

/* Kazakh (Cyrillic) behaves like Russian: longer words, needs looser tracking */
html[data-lang="kk"] .hero-title { font-size: clamp(25px, 3vw, 42px); line-height: 1.16; }
html[data-lang="kk"] .brand-name { font-size: 15px; letter-spacing: .03em; }
html[data-lang="kk"] .nav-link { padding: 9px 9px; font-size: 14px; }
html[data-lang="kk"] .brand-sub { letter-spacing: .06em; text-transform: none; font-size: 10px; }

/* Uyghur (Arabic script): never track cursive glyphs apart, and give the
   taller ascenders / descenders of Arabic more room to breathe. */
html[data-lang="ug"] body { font-family: var(--font-ug); line-height: 1.95; }
html[data-lang="ug"] h1, html[data-lang="ug"] h2, html[data-lang="ug"] h3,
html[data-lang="ug"] .h2, html[data-lang="ug"] .cert-title { letter-spacing: 0; line-height: 1.5; }
html[data-lang="ug"] .eyebrow,
html[data-lang="ug"] .brand-sub,
html[data-lang="ug"] .flow-step b,
html[data-lang="ug"] .btn { letter-spacing: 0; }
/* 维吾尔文标题的词数远多于中文（27 字符 vs 8 字），同样的字号会多折一倍的行，
   这里把上限压到 31px，让标题区高度与中文版接近（约 130px 而不是 255px） */
html[data-lang="ug"] .hero-title { font-size: clamp(21px, 5vw, 31px); line-height: 1.5; }
/* brand.name 在维语站仍是拉丁文 ZHONGXIN ENERGY，按 ru/kk 的规则收敛即可 */
html[data-lang="ug"] .brand-name { font-size: 15px; letter-spacing: .01em; }
/* brand.sub 是维吾尔文 —— 字间距必须为 0，否则阿拉伯字母连写会被拆断 */
html[data-lang="ug"] .brand-sub { letter-spacing: 0; text-transform: none; font-size: 10px; }
/* 维吾尔文导航词条比中/英/俄长得多（91 字符 vs 51），收紧字号与内边距换取空间 */
html[data-lang="ug"] .nav-link { padding: 9px 6px; font-size: 13px; }
html[data-lang="ug"] .biz-list li, html[data-lang="ug"] .cert-item { line-height: 1.8; }

/* 维吾尔文比中文长约 1.8 倍，同一排卡片会出现「1 行标题 vs 2 行标题」「2 行描述
   vs 3 行描述」的落差，看起来就"失去平衡"。下面为标题与描述预留统一的最小高度，
   并允许平衡折行，使同一排卡片的文字块起点与高度完全对齐。 */
html[data-lang="ug"] .value b { font-size: 14px; line-height: 1.4; text-wrap: balance; }
html[data-lang="ug"] .value > span:last-child { font-size: 12.5px; line-height: 1.55; text-wrap: balance; }
@media (min-width: 641px) {
  html[data-lang="ug"] .value { grid-template-rows: minmax(40px, auto) minmax(62px, auto); }
}
/* 业务卡标题降到 18px 才能一行放下「能源化工进出口」；安全卡标题长短不一，
   统一按两行高度预留 */
html[data-lang="ug"] .biz-card h3 { font-size: 18px; text-wrap: balance; }
html[data-lang="ug"] .adv-item h3 { font-size: 16px; min-height: 3em; text-wrap: balance; }
html[data-lang="ug"] .cert-item { min-height: 76px; }
html[data-lang="ug"] .cert-grid { text-align: right; }
/* 两列的项目符号列表里，长条目第二行常只剩一个孤字（ئىگە / قىلىش），
   平衡折行后两行长度接近，不再有孤字 */
html[data-lang="ug"] .biz-list li { text-wrap: balance; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 26px; }
.section { padding: 104px 0; position: relative; }
.section-soft { background: var(--soft); }
.section-navy {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 88% 0%, rgba(30, 69, 116, .55), transparent 62%),
    radial-gradient(700px 380px at 4% 100%, rgba(20, 80, 58, .38), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700) 58%, #0B2949);
  color: rgba(255, 255, 255, .74);
}
/* highway photography blended into the dark band, faded at both edges */
.section-navy::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("../img/photo-road.jpg") center 30% / cover no-repeat;
  opacity: .32;
  mix-blend-mode: luminosity;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 24%, #000 76%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 24%, #000 76%, transparent 100%);
}
.section-navy > .wrap { position: relative; z-index: 2; }
.section-navy h2, .section-navy h3 { color: #fff; }

.section-head { max-width: 760px; margin: 0 auto 58px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 14px;
  position: relative;
  padding-left: 30px;
}
.eyebrow::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 20px; height: 2px; transform: translateY(-50%);
  background: linear-gradient(90deg, var(--gold-500), var(--gold-700));
}
.section-head .eyebrow { padding-left: 0; }
.section-head .eyebrow::before { display: none; }
.section-head.light .eyebrow { color: var(--gold-500); }
.h2 { font-size: clamp(27px, 3.4vw, 42px); margin-bottom: 16px; }
.lead { font-size: 16.5px; color: var(--body); }
.section-head.light .lead { color: rgba(255, 255, 255, .78); }
.lead.center { text-align: center; }

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120;
  background: transparent; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--green-600), var(--gold-500));
  transition: width .1s linear;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, background .3s;
}
.site-header.is-scrolled {
  box-shadow: 0 10px 30px -20px rgba(13, 26, 41, .45);
  border-bottom-color: var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 1; min-width: 0; }
.brand-mark {
  width: 42px; height: 42px; flex: 0 0 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(150deg, #fff, #F2F6FA);
  box-shadow: 0 6px 18px -10px rgba(13, 26, 41, .5), inset 0 0 0 1px rgba(13, 26, 41, .06);
}
.brand-mark svg { width: 30px; height: 30px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-size: 17px; font-weight: 800; color: var(--navy-800); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub {
  font-size: 9.5px; letter-spacing: .2em; font-weight: 600;
  color: var(--gold-700); text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html[data-lang="ru"] .brand-sub { letter-spacing: .06em; text-transform: none; font-size: 10.5px; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative;
  padding: 9px 14px;
  font-size: 15px; font-weight: 600; color: #33455A;
  border-radius: 9px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--navy-700); background: rgba(14, 42, 74, .05); }
.nav-link.is-active { color: var(--navy-700); }
.nav-link.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-700));
  border-radius: 2px;
}

.header-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.mobile-lang { display: none; }

/* ---------- language dropdown (5 languages) ---------- */
.lang-pick { position: relative; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--soft-2);
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
  color: var(--navy-800); white-space: nowrap;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.lang-toggle:hover { background: #fff; border-color: rgba(14, 42, 74, .24); }
.lang-globe {
  width: 15px; height: 15px; flex: 0 0 15px;
  fill: none; stroke: var(--navy-600); stroke-width: 1.7; stroke-linecap: round;
}
.lang-caret {
  width: 10px; height: 7px; flex: 0 0 10px;
  fill: none; stroke: #7A8898; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .22s;
}
.lang-pick.is-open .lang-caret { transform: rotate(180deg); }
.lang-pick.is-open .lang-toggle { background: #fff; border-color: rgba(14, 42, 74, .3); box-shadow: var(--shadow-sm); }

.lang-menu {
  position: absolute; top: calc(100% + 9px); inset-inline-end: 0;
  min-width: 176px;
  padding: 6px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 26px 54px -24px rgba(10, 33, 64, .5);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 130;
}
.lang-pick.is-open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-opt {
  display: block; width: 100%; text-align: start;
  padding: 9px 12px; border-radius: 9px;
  font-size: 13.5px; font-weight: 600; color: #3D4E60;
  transition: background .18s, color .18s;
}
.lang-opt:hover { background: var(--soft-2); color: var(--navy-700); }
.lang-opt.is-active, .lang-opt.is-active:hover { background: var(--navy-800); color: #fff; }
.lang-opt[dir="rtl"] { font-size: 15.5px; }

/* dark variant (footer) - opens upward so it never runs off the page */
.lang-pick--dark .lang-toggle {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .92);
}
.lang-pick--dark .lang-toggle:hover,
.lang-pick--dark.is-open .lang-toggle { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); box-shadow: none; }
.lang-pick--dark .lang-globe { stroke: var(--gold-500); }
.lang-pick--dark .lang-caret { stroke: rgba(255, 255, 255, .7); }
.lang-pick--dark .lang-menu {
  top: auto; bottom: calc(100% + 9px);
  background: #0C2440; border-color: rgba(255, 255, 255, .14);
}
.lang-pick--dark .lang-opt { color: rgba(255, 255, 255, .8); }
.lang-pick--dark .lang-opt:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.lang-pick--dark .lang-opt.is-active,
.lang-pick--dark .lang-opt.is-active:hover { background: var(--gold-600); color: #241804; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px; font-weight: 700;
  transition: transform .22s, box-shadow .22s, background .22s, color .22s, border-color .22s;
  white-space: nowrap;
}
.btn .ico { width: 17px; height: 17px; transition: transform .25s; }
.btn:hover .ico { transform: translateX(3px); }
.btn-primary {
  background: linear-gradient(135deg, var(--navy-600), var(--navy-800));
  color: #fff;
  box-shadow: 0 14px 30px -16px rgba(10, 33, 64, .9);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -18px rgba(10, 33, 64, .95); }
.btn-ghost {
  color: #fff; border: 1px solid rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .6); transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
  color: #26190A;
  box-shadow: 0 16px 34px -18px rgba(168, 121, 28, .95);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -18px rgba(168, 121, 28, 1); }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }
.btn-block { width: 100%; }

.burger { display: none; width: 42px; height: 42px; border-radius: 10px; position: relative; }
.burger span {
  position: absolute; left: 11px; width: 20px; height: 2px; border-radius: 2px;
  background: var(--navy-800); transition: transform .28s, opacity .2s, top .28s;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 25px; }
.burger.is-open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

.nav-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(6, 23, 38, .5); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.nav-backdrop.is-visible { opacity: 1; visibility: visible; }
body.nav-locked { overflow: hidden; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(94vh, 880px);
  display: flex; align-items: center;
  padding: 92px 0 110px;
  color: rgba(255, 255, 255, .8);
  overflow: hidden;
  background: linear-gradient(155deg, #061726 0%, #0B2545 45%, #0E2E52 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  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: 68px 68px;
  mask-image: radial-gradient(circle at 30% 40%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 30% 40%, #000 10%, transparent 78%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.hero-glow.g1 { width: 620px; height: 620px; right: -160px; top: -180px; background: rgba(30, 88, 150, .55); }
.hero-glow.g2 { width: 520px; height: 520px; left: -180px; bottom: -220px; background: rgba(20, 90, 66, .45); }
.hero-rings { position: absolute; right: -6%; top: 6%; width: 78%; height: 88%; opacity: .9; }

.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 64px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  color: rgba(255, 255, 255, .88);
  margin-bottom: 26px;
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(217, 180, 74, .22);
}
.hero-title {
  font-size: clamp(30px, 3.6vw, 50px);
  color: #fff; font-weight: 800; line-height: 1.18;
  margin-bottom: 22px;
}
.hero-title span, .hero-title em, .h2, .cert-title { text-wrap: balance; }
html[data-lang="en"] .hero-title { font-size: clamp(28px, 3.4vw, 46px); }
/* Latin/Cyrillic wordmarks run wider than the Chinese one - tighten to avoid header squeeze */
html[data-lang="en"] .brand-name, html[data-lang="ru"] .brand-name { font-size: 15px; letter-spacing: .03em; }
html[data-lang="en"] .nav-link, html[data-lang="ru"] .nav-link { padding: 9px 9px; font-size: 14px; }
html[data-lang="ru"] .hero-title { font-size: clamp(25px, 3vw, 42px); line-height: 1.16; }
.hero-title em {
  display: block; font-style: normal;
  background: linear-gradient(100deg, var(--gold-300), var(--gold-500) 45%, var(--gold-700));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 16.5px; max-width: 620px; color: rgba(255, 255, 255, .74); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero-pills li {
  padding: 7px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600;
  color: rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
}

.hero-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035));
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-lg);
  padding: 22px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
}
.hero-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.chip {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-300);
}
.route-track { width: 100%; height: auto; margin: 8px 0 2px; overflow: visible; }
.route-track text { font-family: var(--font); }
.live {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
  color: rgba(255, 255, 255, .72);
}
.live i {
  width: 7px; height: 7px; border-radius: 50%; background: #5BD08C;
  box-shadow: 0 0 0 4px rgba(91, 208, 140, .2);
  animation: livePulse 1.8s ease-in-out infinite;
}
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.hero-card-list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding-top: 16px; margin-top: 6px;
}
.hero-card-list li { display: flex; flex-direction: column; gap: 2px; }
.hero-card-list b { font-size: 20px; color: #fff; font-weight: 800; }
.hero-card-list span { font-size: 11.5px; color: rgba(255, 255, 255, .6); letter-spacing: .02em; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 24px; height: 38px; border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, .3);
  display: grid; place-items: start center; padding-top: 7px;
}
.scroll-hint span {
  width: 3px; height: 8px; border-radius: 3px; background: var(--gold-500);
  animation: hint 1.7s ease-in-out infinite;
}
@keyframes hint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(13px); opacity: .2; } 100% { transform: translateY(0); opacity: 1; } }

/* ---------- stat strip ---------- */
.stat-strip {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  margin-top: -52px; position: relative; z-index: 5;
}
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  margin: 0 auto;
  transform: translateY(0);
}
.stat {
  padding: 30px 22px; text-align: center; position: relative;
}
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 26px; bottom: 26px; width: 1px;
  background: var(--line);
}
.stat b {
  display: block; font-size: clamp(24px, 2.6vw, 34px); font-weight: 800;
  color: var(--navy-700); line-height: 1.2; margin-bottom: 4px;
}
.stat span { font-size: 13.5px; color: var(--muted); }

/* ---------- about ---------- */
.grid-2 { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 70px; align-items: stretch; }
.about-visual { position: relative; display: flex; flex-direction: column; }

/* photo collage - main shot spans two rows, two supporting shots stack beside it */
.photo-collage {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1.26fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  min-height: 470px;
}
.photo-collage .ph {
  margin: 0; position: relative; overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--soft-2);
  box-shadow: var(--shadow);
}
.photo-collage .ph img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .7s cubic-bezier(.22, .61, .36, 1);
}
.photo-collage .ph:hover img { transform: scale(1.045); }
.ph-main { grid-row: 1 / 3; }
.ph-main img { object-position: 62% 32%; }

.visual-badge {
  position: absolute; right: 16px; bottom: 16px;
  background: linear-gradient(140deg, var(--navy-600), var(--navy-800));
  color: #fff; border-radius: 16px;
  padding: 16px 22px; text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .16);
}
.visual-badge b { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; }
.visual-badge span { font-size: 12px; color: rgba(255, 255, 255, .7); letter-spacing: .04em; }

.about-copy .lead { margin-bottom: 16px; }
.about-copy .h2 { margin-bottom: 20px; font-size: clamp(24px, 2.7vw, 34px); }
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 34px; }
.value {
  display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 1px;
  align-items: center;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--soft);
  border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s, background .25s;
}
.value:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); background: #fff; }
.value-ico {
  grid-row: span 2;
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: #fff; color: var(--navy-600);
  border: 1px solid var(--line);
}
.value-ico svg { width: 22px; height: 22px; }
.value b { font-size: 15px; color: var(--ink); }
.value > span:last-child { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ---------- business ---------- */
.biz-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.biz-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px 30px 32px;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.biz-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--navy-600), var(--gold-500));
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
}
.biz-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.biz-card:hover::before { transform: scaleX(1); }
.biz-num {
  position: absolute; top: 24px; right: 28px;
  font-size: 34px; font-weight: 800; letter-spacing: .02em;
  color: rgba(14, 42, 74, .06);
}
.biz-ico {
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 16px;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-500));
  color: #fff; margin-bottom: 22px;
  box-shadow: 0 14px 26px -16px rgba(10, 33, 64, .9);
}
.biz-ico svg { width: 28px; height: 28px; }
.biz-card h3 { font-size: 20px; margin-bottom: 12px; }
.biz-card > p { font-size: 14.6px; color: var(--body); }
.biz-list { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 9px; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.biz-list li {
  position: relative; padding-left: 22px;
  font-size: 14px; color: #3D4E60;
}
.biz-list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; border-radius: 2px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
  transform: rotate(45deg);
}

/* ---------- advantages / safety ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.adv-item {
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  transition: transform .28s, box-shadow .28s, border-color .28s;
}
.adv-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(201, 162, 39, .45); }
.adv-ico {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 13px;
  background: rgba(14, 42, 74, .06);
  color: var(--navy-600);
  margin-bottom: 18px;
  transition: background .28s, color .28s;
}
.adv-item:hover .adv-ico { background: linear-gradient(140deg, var(--gold-500), var(--gold-700)); color: #26190A; }
.adv-ico svg { width: 23px; height: 23px; }
.adv-item h3 { font-size: 17px; margin-bottom: 9px; }
.adv-item p { font-size: 14.2px; color: var(--body); }

/* ---------- flow strip ---------- */
.flow-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 40px; padding: 22px 30px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(14, 42, 74, .04), rgba(217, 180, 74, .1));
  border: 1px solid var(--line);
}
.flow-step { display: inline-flex; align-items: center; gap: 10px; }
.flow-step i {
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-style: normal; font-size: 12.5px; font-weight: 800;
  background: linear-gradient(140deg, var(--navy-600), var(--navy-800));
  color: #fff;
}
.flow-step b { font-size: 14.5px; color: var(--ink); white-space: nowrap; }
.flow-arrow {
  flex: 1 1 auto; height: 2px; min-width: 18px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(217, 180, 74, .8), rgba(217, 180, 74, .15));
  position: relative;
}
.flow-arrow::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 8px; height: 8px; border-top: 2px solid rgba(217, 180, 74, .85);
  border-right: 2px solid rgba(217, 180, 74, .85);
  transform: rotate(45deg);
}

/* ---------- qualifications ---------- */
.cert-block { margin-top: 86px; text-align: center; }
.cert-title { font-size: clamp(20px, 2.2vw, 27px); margin-bottom: 30px; }
.cert-block .eyebrow { padding-left: 0; }
.cert-block .eyebrow::before { display: none; }
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.cert-item {
  display: flex; align-items: center; gap: 12px;
  padding: 17px 20px;
  border-radius: var(--radius);
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 14.5px; font-weight: 600; color: #2E4155;
  transition: transform .25s, box-shadow .25s, background .25s, border-color .25s;
}
.cert-item:hover { transform: translateY(-3px); background: #fff; box-shadow: var(--shadow-sm); border-color: rgba(201, 162, 39, .45); }
.cert-ico {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(27, 94, 67, .12); color: var(--green-700);
}
.cert-ico svg { width: 17px; height: 17px; }

/* ---------- global ---------- */
.region-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.region {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14);
  transition: transform .28s, background .28s, border-color .28s;
}
.region:hover { transform: translateY(-5px); background: rgba(255, 255, 255, .09); border-color: rgba(217, 180, 74, .5); }
.region-tag {
  display: block; font-size: 19px; font-weight: 700; color: #fff; margin-bottom: 10px;
}
.region p { font-size: 14.5px; color: rgba(255, 255, 255, .72); }
.region-line {
  display: block; width: 42px; height: 3px; border-radius: 3px; margin-top: 20px;
  background: linear-gradient(90deg, var(--gold-500), transparent);
}
.route-bar { margin-top: 30px; }
.route {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px dashed rgba(255, 255, 255, .25);
  font-size: 14.5px; color: rgba(255, 255, 255, .82);
}
.route-dot {
  flex: 0 0 auto;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 5px rgba(217, 180, 74, .18);
}

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 46px; align-items: start; }
.contact-info { display: grid; gap: 14px; }
.info-item {
  display: flex; gap: 15px; align-items: flex-start;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--soft);
  border: 1px solid var(--line);
  transition: background .25s, transform .25s;
}
.info-item:hover { background: #fff; transform: translateX(3px); box-shadow: var(--shadow-sm); }
.info-ico {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); color: var(--navy-600);
}
.info-ico svg { width: 21px; height: 21px; }
.info-item div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.info-item b { font-size: 14.5px; color: var(--ink); }
.info-item span, .info-item a { font-size: 14.2px; color: var(--body); word-break: break-word; }
.info-item a:hover { color: var(--gold-700); }

.contact-form {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid; gap: 16px;
  position: relative;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 13px; font-weight: 700; color: #3D4E60; letter-spacing: .02em; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #FAFCFE;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #A6B3C0; }
.field input:focus, .field textarea:focus {
  outline: none; background: #fff;
  border-color: var(--navy-500);
  box-shadow: 0 0 0 4px rgba(30, 69, 116, .1);
}
.field input.is-invalid, .field textarea.is-invalid { border-color: #D9534F; background: #FFF7F7; }
.form-note { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: -4px; }
.form-toast {
  position: absolute; left: 32px; right: 32px; bottom: 18px;
  padding: 13px 18px; border-radius: 12px;
  font-size: 14px; font-weight: 600;
  opacity: 0; transform: translateY(8px); visibility: hidden;
  transition: opacity .3s, transform .3s, visibility .3s;
}
.form-toast.is-show { opacity: 1; transform: translateY(0); visibility: visible; }
.form-toast.is-success { background: #EDF7F1; color: var(--green-700); border: 1px solid rgba(27, 94, 67, .25); }
.form-toast.is-error { background: #FFF3F3; color: #A93A36; border: 1px solid rgba(217, 83, 79, .3); }

/* ---------- cta band ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 90% 10%, rgba(217, 180, 74, .18), transparent 60%),
    linear-gradient(120deg, var(--navy-800), var(--navy-600));
  color: rgba(255, 255, 255, .78);
  padding: 62px 0;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap; }
.cta-inner h3 { color: #fff; font-size: clamp(21px, 2.4vw, 29px); margin-bottom: 8px; }
.cta-inner p { font-size: 15px; max-width: 640px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .62); padding: 66px 0 26px; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: 40px;
  padding-bottom: 42px; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-logo img { width: 46px; height: 46px; background: rgba(255, 255, 255, .95); border-radius: 12px; padding: 4px; }
.footer-logo b { display: block; color: #fff; font-size: 16px; letter-spacing: .04em; }
.footer-logo span { display: block; font-size: 10.5px; letter-spacing: .16em; color: var(--gold-500); text-transform: uppercase; }
.footer-brand > p { font-size: 14px; max-width: 330px; }
.footer-lang { margin-top: 20px; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col b { color: #fff; font-size: 14.5px; margin-bottom: 4px; letter-spacing: .02em; }
.footer-col a, .footer-col span { font-size: 14px; color: rgba(255, 255, 255, .6); transition: color .2s, transform .2s; }
.footer-col a:hover { color: var(--gold-500); transform: translateX(3px); }
.footer-manager {
  display: flex; align-items: center; gap: 30px;
  padding: 28px 0 6px;
}
.fm-qr { display: flex; flex-direction: column; align-items: center; gap: 9px; flex: 0 0 auto; }
.fm-qr img {
  width: 126px; height: auto; background: #fff; padding: 9px;
  border-radius: 12px; box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
}
.fm-qr span { font-size: 13px; color: rgba(255, 255, 255, .82); }
.fm-contact b { display: block; color: #fff; font-size: 14.5px; margin-bottom: 9px; }
.fm-contact a { display: block; font-size: 16px; color: var(--gold-500); word-break: break-all; }
.fm-contact a:hover { color: #fff; }
.fm-contact span { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .5); margin-top: 10px; line-height: 1.6; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding-top: 22px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255, 255, 255, .45);
  gap: 8px;
}
.footer-entity { flex: 1 1 100%; color: rgba(255, 255, 255, .8); font-size: 13px; letter-spacing: .02em; margin-top: 8px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .14); }
.footer-icp { opacity: .8; }
.footer-icp a { color: rgba(255, 255, 255, .85); text-decoration: underline; text-underline-offset: 2px; }
.footer-icp a:hover { color: #fff; }

/* ---------- to top ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 26px; z-index: 80;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-800); color: #fff;
  box-shadow: 0 16px 34px -14px rgba(10, 33, 64, .9);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility .3s, background .25s;
}
.to-top svg { width: 20px; height: 20px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--gold-700); }

/* ---------- reveal animation (content stays visible without JS) ---------- */
.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

main.lang-anim { animation: langFade .42s ease; }
@keyframes langFade { from { opacity: .35; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal.is-visible { opacity: 1; transform: none; transition: none; }
  .hero-card-map animate, .scroll-hint span { animation: none; }
}

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 1220px) {
  .main-nav { gap: 0; }
  .nav-link { padding: 9px 10px; font-size: 14.2px; }
  .header-cta { display: none; }
  .grid-2 { gap: 46px; }
}
@media (max-width: 1120px) {
  .main-nav { gap: 0; }
  .nav-link { padding: 9px 8px; font-size: 13.6px; }
  .header-cta { display: none; }
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 46px; }
  .hero-card { max-width: 520px; }
  .hero-rings { opacity: .5; right: -30%; top: 12%; width: 120%; }
  .grid-2 { grid-template-columns: 1fr; }
  .about-visual { max-width: 520px; }
  .biz-grid, .adv-grid, .region-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .cert-block { margin-top: 62px; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .flow-bar {
    flex-wrap: wrap; justify-content: center; gap: 14px 20px;
    border-radius: 22px; padding: 20px 24px;
  }
  .flow-arrow { display: none; }
}

/* below this width the full nav row no longer fits next to the wordmark
   in all five languages (Uyghur nav runs ~40% longer than Chinese) -
   switch to the burger menu instead of truncating */
@media (max-width: 1000px) {
  :root { --header-h: 68px; }
  .header-inner { gap: 12px; }
  .burger { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 95;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; padding: 14px 20px 22px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -26px rgba(13, 26, 41, .5);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .3s, opacity .3s, visibility .3s;
  }
  .main-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-link { padding: 12px 8px; font-size: 15.5px; line-height: 1.4; border-radius: 10px; }
  /* 汉堡菜单是竖排全宽，维吾尔语这里可以放开用正常字号（上面为横向导航收紧过） */
  html[data-lang="ug"] .nav-link { padding: 12px 8px; font-size: 15px; }
  .nav-link.is-active::after { display: none; }
  .nav-link.is-active { background: rgba(14, 42, 74, .06); }
  .section { padding: 76px 0; }
  .hero { padding: 66px 0 96px; min-height: auto; }
  .hero-card-list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 15.4px; }
  /* Cyrillic headline runs wider - keep it from breaking mid-phrase on phones */
  html[data-lang="ru"] .hero-title { font-size: 22px; }
  html[data-lang="kk"] .hero-title { font-size: 23px; }
  /* Arabic-script headline is longest of all - cap it hard on phones */
  html[data-lang="ug"] .hero-title { font-size: 21px; line-height: 1.55; }
  .wrap { padding: 0 18px; }
  .stat-strip { margin-top: -40px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 14px; }
  .stat + .stat::before { top: 18px; bottom: 18px; }
  .stat:nth-child(odd)::before { display: none; }
  .biz-grid, .adv-grid, .region-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .biz-list { grid-template-columns: 1fr 1fr; }
  .flow-bar { padding: 18px 20px; gap: 12px 18px; }
  .value-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 22px 18px; }
  .form-toast { left: 18px; right: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-manager { flex-direction: column; align-items: flex-start; gap: 20px; padding-top: 24px; }
  .fm-qr { align-self: center; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .visual-badge { right: 12px; bottom: 12px; padding: 13px 18px; }
  /* stack the collage: wide hero shot on top, two supporting shots beneath */
  .photo-collage { grid-template-columns: 1fr 1fr; grid-template-rows: 1.35fr 1fr; min-height: 400px; gap: 10px; }
  .ph-main { grid-row: 1; grid-column: 1 / 3; }
  .ph-sub { grid-row: 2; }
  .route { border-radius: 18px; }
  .hero-card-list b { font-size: 17px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .brand-name { font-size: 15.5px; }
  .brand-sub { font-size: 9px; }
  .lang-toggle { padding: 6px 9px; font-size: 12px; gap: 6px; }
  .lang-menu { min-width: 160px; }
  .to-top { right: 16px; bottom: 18px; }
}

@media (max-width: 430px) {
  .brand { gap: 9px; }
  .brand-mark { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; }
  .brand-mark svg { width: 26px; height: 26px; }
  .brand-name { font-size: 15px; letter-spacing: .02em; }
  .brand-sub { display: none; }
  .header-right .lang-pick { display: none; }
  .header-right { gap: 8px; }
  .burger { width: 38px; height: 38px; }
  .burger span { left: 9px; width: 20px; }
  .mobile-lang {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-top: 10px; padding: 14px 8px 2px;
    border-top: 1px solid var(--line);
  }
  .mobile-lang-label { font-size: 13px; font-weight: 700; color: #3D4E60; }
  .mobile-lang .lang-menu { min-width: 150px; }
}

@media (max-width: 400px) {
  .hero-pills li { font-size: 12.5px; padding: 6px 12px; }
  .hero-card-list { grid-template-columns: 1fr; gap: 8px; }
}

/* ============================================================
   RTL layout - Uyghur (Arabic script)
   Only the physically-positioned decorations need flipping;
   flex / grid / text flow reverse themselves from dir="rtl".
   ============================================================ */
html[dir="rtl"] .eyebrow { padding-left: 0; padding-right: 30px; }
html[dir="rtl"] .eyebrow::before {
  left: auto; right: 0;
  background: linear-gradient(270deg, var(--gold-500), var(--gold-700));
}
html[dir="rtl"] .section-head .eyebrow { padding-right: 0; }

html[dir="rtl"] .biz-list li { padding-left: 0; padding-right: 22px; }
html[dir="rtl"] .biz-list li::before { left: auto; right: 0; }

/* flow strip: the whole arrow (gradient + head) simply mirrors */
html[dir="rtl"] .flow-arrow { transform: scaleX(-1); }

/* corner decorations move to the other side */
html[dir="rtl"] .biz-num { right: auto; left: 28px; }
html[dir="rtl"] .visual-badge { right: auto; left: 16px; }
html[dir="rtl"] .to-top { right: auto; left: 24px; }

/* hover nudges travel in the reading direction, not against it */
html[dir="rtl"] .btn:hover .ico { transform: scaleX(-1) translateX(3px); }
html[dir="rtl"] .btn .ico { transform: scaleX(-1); }
/* 首屏线路示意是内联 SVG，站点坐标写死在 x 上，dir=rtl 不会自动翻转：
   整条轨道镜像后，阅读顺序就变成 右乌鲁木齐 → 左比什凯克；
   文字再各自反向镜像一次，保证字形不被镜像。 */
html[dir="rtl"] .route-track { transform: scaleX(-1); }
html[dir="rtl"] .route-track text { transform-box: fill-box; transform-origin: center; transform: scaleX(-1); }
html[dir="rtl"] .info-item:hover { transform: translateX(-3px); }
html[dir="rtl"] .footer-col a:hover { transform: translateX(-3px); }

/* content that was hard-aligned left now has to be hard-aligned right */
html[dir="rtl"] .cert-grid { text-align: right; }
html[dir="rtl"] .cert-block .eyebrow { padding-right: 0; }
html[dir="rtl"] .lang-opt[dir="ltr"] { text-align: right; }

@media (max-width: 640px) {
  html[dir="rtl"] .to-top { left: 16px; }
  html[dir="rtl"] .visual-badge { left: 12px; }
}

/* ===== five biz cards (added fuel wholesale & retail) ===== */
/* wide screens: 3 cards on row 1, 2 cards centered on row 2 */
@media (min-width: 981px) {
  .biz-grid { grid-template-columns: repeat(6, 1fr); }
  .biz-grid .biz-card { grid-column: span 2; }
  .biz-grid .biz-card:nth-child(4) { grid-column: 2 / span 2; }
}
/* tablets: 2 columns, let the last card span the full row so there is no orphan */
@media (min-width: 641px) and (max-width: 980px) {
  .biz-grid .biz-card:last-child { grid-column: 1 / -1; }
}

/* ug nav item "تەمىنلەش زەنجىرى" (supply chain) is wider than the old label -
   shrink the latin brand name + tighten ug nav padding so it never truncates */
html[data-lang="ug"] .brand-name { font-size: 14px; letter-spacing: 0; }
@media (max-width: 1024px) {
  html[data-lang="ug"] .nav-link { padding: 9px 4px; }
}

/* ug nav label "تەمىنلەش زەنجىرى تورى" grew longer - shrink ug nav font
   to reclaim space for the brand name (was truncating again) */
html[data-lang="ug"] .nav-link { font-size: 12.5px; }
html[data-lang="ug"] .brand-name { font-size: 13.8px; }

/* ug brand: forbid flex shrink on the whole brand block. Without this the flex
   line rounds .brand down by ~0.1px, the .brand-name box ends up a hair narrower
   than the nowrap text, and text-overflow:ellipsis clips "ZH" -> "…" even though
   scrollWidth == clientWidth (RTL sub-pixel clip is invisible to that check).
   The header has ~100px slack (1100 vs 1200), so shrinking is never needed. */
html[data-lang="ug"] .brand { flex-shrink: 0; }
