/* ==========================================================================
   MicroGene — corporate website stylesheet
   Design language: clean, spacious, premium ("简洁大气")
   ========================================================================== */

:root {
  /* 主色 — 绿色：植物的蓬勃生机 */
  --green-900: #003d1f;
  --green-800: #015d2f;
  --green-700: #076c2d;
  --green-600: #008643;
  --green-500: #2e7d32;
  --green-400: #22aa4a;
  --green-100: #d9efe0;
  --green-50: #f1f8f3;
  /* 辅色 — 金黄：丰收 */
  --gold-600: #8a6200;
  --gold-500: #fdb913;
  --gold-400: #ffc93c;
  --gold-100: #fff4cc;
  --gold-50: #fffaeb;
  --cream: #fff8b9;
  --ink-900: #101a14;
  --ink-700: #24312a;
  --ink-500: #5a6b61;
  --ink-300: #94a49b;
  --line: #e3ebe5;
  --surface: #ffffff;
  --surface-alt: #f4f8f5;
  --danger: #c0392b;
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --shadow-s: 0 1px 2px rgba(16, 26, 20, .04), 0 6px 20px rgba(16, 26, 20, .05);
  --shadow-m: 0 10px 40px rgba(16, 26, 20, .10);
  --container: 1240px;
  --header-h: 78px;
  --font: "Inter", "Segoe UI", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

html[dir="rtl"] {
  --font: "Noto Nastaliq Urdu", "Noto Naskh Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-700);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--ink-900);
  line-height: 1.18;
  font-weight: 750;
  letter-spacing: -.022em;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.12rem, 1.7vw, 1.38rem); }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 104px 0; }
.section--alt { background: var(--surface-alt); }
.section--tight { padding: 72px 0; }

.section-head { max-width: 800px; margin-bottom: 56px; }
.section-head--center { margin-inline: auto; text-align: center; }

.kicker {
  --dots:
    radial-gradient(circle at 4px 4px, var(--green-100) 1.4px, transparent 1.9px),
    radial-gradient(circle at 15px 4px, var(--green-400) 2.2px, transparent 2.7px),
    radial-gradient(circle at 26px 4px, var(--green-500) 3.1px, transparent 3.6px),
    radial-gradient(circle at 37.5px 4px, var(--green-600) 4px, transparent 4.5px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 18px;
}
.kicker::before, .section-head--center .kicker::after {
  content: "";
  width: 42px;
  height: 8px;
  background-image: var(--dots);
  background-repeat: no-repeat;
}
html[dir="rtl"] .kicker { letter-spacing: 0; text-transform: none; }
html[dir="rtl"] .kicker::before,
html[dir="rtl"] .section-head--center .kicker::after { transform: scaleX(-1); }

.lede { font-size: 1.1rem; color: var(--ink-500); }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 30px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: .95rem;
  letter-spacing: .01em;
  transition: transform .16s ease, background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--green-700); color: #fff; box-shadow: 0 8px 24px rgba(15, 63, 41, .28); }
.btn--primary:hover { background: var(--green-600); }
.btn--gold { background: var(--gold-500); color: var(--green-900); box-shadow: 0 8px 24px rgba(253, 185, 19, .35); }
.btn--gold:hover { background: var(--gold-400); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.14); }
.btn--outline { border-color: #d8e2db; color: var(--ink-900); background: #fff; }
.btn--outline:hover { border-color: var(--green-600); color: var(--green-700); }
.btn--sm { padding: 9px 18px; font-size: .86rem; border-radius: 10px; }
.btn--block { width: 100%; }

.arrow { width: 15px; height: 15px; flex: none; }
html[dir="rtl"] .arrow { transform: scaleX(-1); }

/* ----------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__mark { width: 52px; flex: none; display: flex; align-items: center; justify-content: center; }
.brand__mark svg { width: 46px; height: 46px; }
/* 图片 logo：容器自适应图片宽度，绝不挤压或与文字重叠 */
.brand__mark:has(.brand__img) { width: auto; }
.brand__img {
  display: block;
  height: 60px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.12; }
.brand__name { font-weight: 800; font-size: 1.16rem; color: var(--green-800); letter-spacing: -.02em; }
.brand__sub { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-300); }
html[dir="rtl"] .brand__sub { letter-spacing: 0; }

.nav { display: flex; align-items: center; gap: 2px; margin-inline-start: 12px; flex: 1 1 auto; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 15px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink-700);
  transition: background .18s ease, color .18s ease;
}
.nav__link:hover, .nav__item.is-open > .nav__link, .nav__link.is-active { color: var(--green-700); background: var(--green-50); }
.nav__caret { width: 11px; height: 11px; opacity: .55; transition: transform .18s ease; }
.nav__item.is-open .nav__caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  inset-inline-start: 0;
  top: calc(100% + 10px);
  min-width: 250px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-m);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav__item.is-open > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown__link {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: .92rem;
  color: var(--ink-700);
}
.dropdown__link:hover { background: var(--green-50); color: var(--green-700); }

/* mega menu for products */
.mega {
  position: fixed;
  inset-inline: 0;
  top: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-m);
  padding: 34px 0 40px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.nav__item.is-open > .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 28px 32px;
}
.mega__col-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: .96rem;
  color: var(--green-800);
  margin-bottom: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--green-100);
}
.mega__col-icon { width: 20px; height: 20px; flex: none; color: var(--green-600); }
.mega__list { display: flex; flex-direction: column; gap: 2px; }
.mega__list a {
  font-size: .88rem;
  color: var(--ink-500);
  padding: 5px 8px;
  border-radius: 7px;
  display: block;
}
.mega__list a:hover { color: var(--green-700); background: var(--green-50); }

.header-tools { display: flex; align-items: center; gap: 10px; flex: none; }

.lang { position: relative; }
.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink-700);
}
.lang__btn:hover { border-color: var(--green-500); color: var(--green-700); }
.lang__menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  width: 224px;
  max-height: 60vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-m);
  padding: 7px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang__opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: start;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  border-radius: 9px;
  font-size: .89rem;
  color: var(--ink-700);
}
.lang__opt:hover { background: var(--green-50); }
.lang__opt.is-active { background: var(--green-50); color: var(--green-700); font-weight: 700; }
.lang__opt small { color: var(--ink-300); font-size: .74rem; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 11px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.burger span { display: block; width: 17px; height: 2px; background: var(--ink-700); border-radius: 2px; }

/* ------------------------------------------------------------------- hero */
/* 满屏沉浸式首屏（参考 leadsagri）：
   多图 Ken-Burns 交叉淡化模拟视频质感 + 中央品牌舞台
   + 左侧竖排社媒（带连接线）+ 底部白色渐变淡出 + 下滑提示 */

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 640px;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding: 60px 0 170px;
  color: #fff;
  background: var(--green-900);
  isolation: isolate;
}

.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.12);
  animation: heroSlide 24s linear infinite;
  will-change: opacity, transform;
}
.hero__slide:nth-child(1) { animation-name: heroSlideLead; }
.hero__slide:nth-child(2) { animation-delay: 6s; }
.hero__slide:nth-child(3) { animation-delay: 12s; }
.hero__slide:nth-child(4) { animation-delay: 18s; }

@keyframes heroSlide {
  0%     { opacity: 0; transform: scale(1.12); }
  4.2%   { opacity: 1; }
  25%    { opacity: 1; }
  29.2%  { opacity: 0; transform: scale(1); }
  100%   { opacity: 0; transform: scale(1); }
}
@keyframes heroSlideLead {
  0%     { opacity: 1; transform: scale(1.12); }
  25%    { opacity: 1; }
  29.2%  { opacity: 0; transform: scale(1); }
  100%   { opacity: 0; transform: scale(1); }
}

/* 深绿渐变遮罩：任何画面下都保证白字清晰 */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 92% at 50% 42%, rgba(0, 61, 31, .16) 0%, rgba(0, 61, 31, .64) 100%),
    linear-gradient(180deg, rgba(0, 61, 31, .82) 0%, rgba(1, 93, 47, .46) 42%, rgba(0, 61, 31, .86) 100%);
}

/* 背景描边水印字（leadsagri 的 outline-text 手法） */
.hero__ghost {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-size: clamp(4rem, 16vw, 12.5rem);
  font-weight: 800;
  letter-spacing: .05em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .13);
  pointer-events: none;
  user-select: none;
}
@supports not (-webkit-text-stroke: 1px #fff) {
  .hero__ghost { color: rgba(255, 255, 255, .05); }
}

/* 底部白色渐变淡出：首屏自然融入下方内容 */
.hero__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(130px, 20vh, 260px);
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(to top,
    #ffffff 0%,
    rgba(255, 255, 255, .78) 30%,
    rgba(255, 255, 255, .30) 64%,
    rgba(255, 255, 255, 0) 100%);
}

/* 左侧竖排社交媒体（带连接线） */
.hero__rail {
  position: absolute;
  left: clamp(18px, 3.4vw, 52px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}
.hero__rail-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .30);
  backdrop-filter: blur(4px);
  transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.hero__rail-icon svg { width: 17px; height: 17px; }
.hero__rail-icon:hover {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--green-900);
  transform: translateY(-2px);
}
.hero__rail-line {
  width: 1px;
  height: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .55));
}

/* 中央品牌舞台 */
.hero__stage {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 28px;
  text-align: center;
}
.hero__mark {
  height: clamp(64px, 9vw, 96px);
  width: auto;
  margin: 0 auto 24px;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, .38));
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 22px;
}
.hero__kicker::before, .hero__kicker::after {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--gold-500);
}
html[dir="rtl"] .hero__kicker { letter-spacing: 0; text-transform: none; }
html[dir="rtl"] .hero__kicker::before,
html[dir="rtl"] .hero__kicker::after { transform: scaleX(-1); }
.hero h1 {
  color: #fff;
  margin: 0 0 18px;
  font-size: clamp(2.15rem, 4.6vw, 3.7rem);
  line-height: 1.12;
  text-wrap: balance;
  text-shadow: 0 4px 26px rgba(0, 0, 0, .35);
}
.hero__sub {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .90);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

/* 下滑提示 */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 6;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green-800);
}
html[dir="rtl"] .hero__scroll { letter-spacing: 0; text-transform: none; }
.hero__scroll-mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(1, 93, 47, .55);
  border-radius: 12px;
  position: relative;
}
.hero__scroll-mouse::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--gold-500);
  animation: heroScrollDot 1.9s ease-in-out infinite;
}
@keyframes heroScrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  55%      { transform: translateY(9px); opacity: .2; }
}

/* 数据条：白色悬浮卡片，压在首屏与内容区之间 */
.hero-stats {
  position: relative;
  z-index: 6;
  margin-top: clamp(-92px, -8vw, -60px);
}
.hero-stats__card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  background: #fff;
  border-radius: var(--radius-m);
  border-top: 4px solid var(--gold-500);
  box-shadow: var(--shadow-m);
  overflow: hidden;
}
.hero-stats__item { padding: 26px 30px; border-inline-start: 1px solid var(--line); }
.hero-stats__item:first-child { border-inline-start: 0; }
.hero-stats__item b {
  display: block;
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--green-700);
  line-height: 1.12;
  letter-spacing: -.02em;
}
.hero-stats__item span { font-size: .86rem; color: var(--ink-500); }

@media (prefers-reduced-motion: reduce) {
  .hero__slide { animation: none !important; }
  .hero__slide:nth-child(1) { opacity: 1; transform: none; }
  .hero__scroll-mouse::after { animation: none; }
}

/* -------------------------------------------------------------- page hero */

/* brand slogan band — sits directly under the home hero */
.slogan-band {
  background: var(--green-800);
  color: #fff;
  padding: 44px 0;
  text-align: center;
  border-bottom: 3px solid var(--gold-500);
}
.slogan-band__main {
  margin: 0;
  font-size: clamp(1.35rem, 2.7vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.25;
  color: #fff;
  text-wrap: balance;
}
.slogan-band__alt {
  margin: 8px 0 0;
  font-size: .95rem;
  font-weight: 600;
  color: var(--gold-500);
  letter-spacing: .1em;
}
html[dir="rtl"] .slogan-band__alt { letter-spacing: 0; }

.page-hero {
  background:
    linear-gradient(180deg, rgba(0, 61, 31, .82), rgba(1, 93, 47, .78)),
    url("/assets/img/campus-aerial.jpg") center / cover no-repeat;
  color: #fff;
  padding: 84px 0 76px;
  position: relative;
  overflow: hidden;
}
.page-hero__inner { position: relative; z-index: 2; max-width: 820px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.86); margin: 0; }

.breadcrumb {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: rgba(255,255,255,.72);
  margin-bottom: 16px;
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb__sep { opacity: .5; }

/* ------------------------------------------------------------------ grids */

.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(296px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(242px, 1fr)); }

/* ------------------------------------------------------------------ cards */

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .24s ease, border-color .24s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: #d7e4db; }
.card__media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(140deg, var(--green-50), #e2f0e5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__media--padded img { object-fit: contain; padding: 18px; }
.card__body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.card__tag {
  align-self: flex-start;
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-600);
  background: var(--green-50);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}
html[dir="rtl"] .card__tag { letter-spacing: 0; text-transform: none; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .92rem; color: var(--ink-500); flex: 1; }
.card__foot { margin-top: 16px; }

/* ---------------------------------------------------- category icon tiles */

/* 首页 8 大品类卡片：图标独立成圆徽章，命名与说明留在卡片正文，避免重复 */
.card__media--cat {
  background:
    radial-gradient(circle at 50% 122%, rgba(34, 170, 74, .18), transparent 62%),
    linear-gradient(140deg, #f6fbf7, #e5f1e9);
}
.card__media--cat::before {
  content: '';
  position: absolute;
  inset: auto -18% -58% -18%;
  height: 78%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 185, 19, .28), transparent 68%);
  opacity: 0;
  transition: opacity .35s ease;
}
.card:hover .card__media--cat::before { opacity: 1; }
.cat-icon {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--green-600);
  box-shadow:
    0 14px 30px -16px rgba(7, 108, 45, .45),
    inset 0 0 0 1px rgba(7, 108, 45, .07);
  transition: transform .3s ease, color .3s ease, box-shadow .3s ease;
}
.cat-icon svg { width: 58%; height: 58%; }
.cat-icon img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.card:hover .cat-icon {
  transform: translateY(-4px) scale(1.04);
  color: var(--green-700);
  box-shadow:
    0 20px 38px -16px rgba(7, 108, 45, .5),
    inset 0 0 0 2px rgba(253, 185, 19, .55);
}
@media (max-width: 640px) {
  .cat-icon { width: 84px; height: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .cat-icon,
  .card__media--cat::before { transition: none; }
  .card:hover .cat-icon { transform: none; }
}

/* placeholder art when a product has no image */
.ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px;
  background:
    radial-gradient(circle at 30% 25%, rgba(47,143,99,.20), transparent 58%),
    linear-gradient(140deg, #edf4ef, #dfe9e2);
}
.ph svg { width: 52px; height: 52px; color: var(--green-500); opacity: .78; }
.ph b { font-size: .84rem; font-weight: 700; color: var(--green-700); letter-spacing: .04em; }

/* ------------------------------------------------------------- advantages */

.adv {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 34px 30px 36px;
  height: 100%;
  transition: transform .2s ease, box-shadow .24s ease;
}
.adv:hover { transform: translateY(-3px); box-shadow: var(--shadow-s); }
.adv__icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--green-600);
  margin-bottom: 20px;
}
.adv__icon svg { width: 27px; height: 27px; }
.adv h3 { font-size: 1.1rem; margin-bottom: 10px; }
.adv p { font-size: .92rem; color: var(--ink-500); margin: 0; }

/* -------------------------------------------------------------- solutions */

.sol {
  display: flex;
  gap: 20px;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  height: 100%;
}
.sol__num {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--green-700);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: .95rem;
}
.sol h3 { font-size: 1.04rem; margin-bottom: 8px; }
.sol p { font-size: .9rem; color: var(--ink-500); margin: 0; }

/* --------------------------------------------------------------- partners */

.partners {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(216px, 1fr));
  gap: 18px;
}
.partner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 26px 20px;
  background: #fff;
  text-align: center;
  min-height: 158px;
  transition: transform .2s ease, box-shadow .24s ease, border-color .24s ease;
}
.partner:hover { transform: translateY(-3px); box-shadow: var(--shadow-s); border-color: #d7e4db; }
.partner__logo {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 72px;
  margin-bottom: 8px;
}
.partner__logo img {
  max-height: 72px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .82;
  transition: filter .25s ease, opacity .25s ease;
}
.partner:hover .partner__logo img { filter: grayscale(0); opacity: 1; }
.partner b { font-size: .92rem; color: var(--ink-900); line-height: 1.35; }
.partner span { font-size: .78rem; color: var(--ink-300); letter-spacing: .04em; }

/* ------------------------------------------------------------------- news */

.news-card { display: flex; flex-direction: column; height: 100%; }
.news-card__date { font-size: .8rem; color: var(--ink-300); font-weight: 650; letter-spacing: .03em; }
.news-card h3 { font-size: 1.08rem; margin: 10px 0 10px; line-height: 1.42; }
.news-card p { font-size: .9rem; color: var(--ink-500); flex: 1; margin: 0; }
.news-card__link { margin-top: 16px; font-weight: 650; font-size: .89rem; color: var(--green-700); display: inline-flex; align-items: center; gap: 7px; }
.news-card__link:hover { color: var(--green-500); }

.news-list { display: grid; gap: 22px; }
.news-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 26px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.news-row:hover { border-color: #d7e4db; box-shadow: var(--shadow-s); }
.news-row h3 { margin: 0 0 9px; font-size: 1.16rem; }
.news-row p { margin: 0; font-size: .93rem; color: var(--ink-500); }

/* ------------------------------------------------------------------- cta */

.cta-band {
  background:
    linear-gradient(135deg, rgba(10, 46, 30, .94), rgba(20, 80, 58, .90) 58%, rgba(29, 107, 76, .88)),
    url("/assets/img/campus-aerial.jpg") center / cover no-repeat;
  color: #fff;
  border-radius: var(--radius-l);
  padding: 64px 58px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  overflow: hidden;
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.86); margin: 0; max-width: 620px; }

/* --------------------------------------------------------------- products */

.catalog { display: grid; grid-template-columns: 272px 1fr; gap: 44px; align-items: start; }

.side-nav { position: sticky; top: calc(var(--header-h) + 24px); }
.side-nav__group { margin-bottom: 6px; }
.side-nav__title {
  display: flex; align-items: center; gap: 9px;
  width: 100%;
  border: 0; background: transparent;
  padding: 10px 0;
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink-900);
  text-align: start;
}
.side-nav__title svg { width: 19px; height: 19px; color: var(--green-600); flex: none; }
.side-nav__sub { padding-inline-start: 28px; display: flex; flex-direction: column; gap: 1px; }
.side-nav__sub a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: .88rem;
  color: var(--ink-500);
  border-inline-start: 2px solid transparent;
}
.side-nav__sub a:hover { color: var(--green-700); background: var(--green-50); }
.side-nav__sub a.is-active { color: var(--green-700); font-weight: 700; border-inline-start-color: var(--green-500); background: var(--green-50); }

.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-bottom: 28px;
}
.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: .87rem;
  font-weight: 600;
  color: var(--ink-500);
  transition: all .16s ease;
}
.chip:hover { border-color: var(--green-500); color: var(--green-700); }
.chip.is-active { background: var(--green-700); border-color: var(--green-700); color: #fff; }

.result-count { font-size: .87rem; color: var(--ink-300); margin-inline-start: auto; }

.empty-state {
  border: 1px dashed #cfe0d5;
  background: var(--green-50);
  border-radius: var(--radius-m);
  padding: 56px 34px;
  text-align: center;
}
.empty-state h3 { margin-bottom: 10px; }
.empty-state p { color: var(--ink-500); max-width: 560px; margin: 0 auto 20px; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.detail-media {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--green-50);
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
}
.detail-media img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.pill {
  font-size: .77rem; font-weight: 650;
  color: var(--green-700);
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 999px;
  padding: 5px 14px;
}
.detail-body h1 { margin-bottom: 14px; }
.detail-body .lede { margin-bottom: 22px; }

.spec-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.spec-table th, .spec-table td {
  text-align: start;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
}
.spec-table th { width: 46%; color: var(--ink-500); font-weight: 600; background: var(--surface-alt); }
.spec-table td { color: var(--ink-900); font-weight: 600; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.prose { max-width: 780px; }
.prose p { color: var(--ink-500); }
.prose p:last-child { margin-bottom: 0; }
.prose__figure {
  margin: 22px 0;
  border-radius: var(--radius-s);
  overflow: hidden;
  background: var(--green-50);
  box-shadow: 0 14px 30px -20px rgba(7, 108, 45, .45);
}
.prose__figure img { display: block; width: 100%; height: auto; }

/* photo gallery grid (about: mega-farm solution / careers) */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.photo-grid__item {
  margin: 0;
  border-radius: var(--radius-s);
  overflow: hidden;
  background: var(--green-50);
  box-shadow: 0 14px 30px -20px rgba(7, 108, 45, .45);
}
.photo-grid__item img {
  display: block; width: 100%; height: 210px; object-fit: cover;
  transition: transform .45s ease;
}
@media (hover: hover) {
  .photo-grid__item:hover img { transform: scale(1.05); }
}
@media (max-width: 640px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .photo-grid__item img { height: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  .photo-grid__item img { transition: none; }
}

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.feature {
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--green-500);
  border-radius: var(--radius-s);
  padding: 20px 22px;
  background: #fff;
}
.feature h4 { margin: 0 0 7px; font-size: .98rem; }
.feature p { margin: 0; font-size: .88rem; color: var(--ink-500); }

.article { max-width: 800px; margin: 0 auto; }
.article__cover { border-radius: var(--radius-m); overflow: hidden; margin-bottom: 30px; border: 1px solid var(--line); }
.article__meta { font-size: .85rem; color: var(--ink-300); margin-bottom: 22px; }
.article h1 { margin-bottom: 16px; }

/* ---------------------------------------------------------------- contact */

.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.contact-item { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-of-type { border-bottom: 0; }
.contact-item__icon {
  flex: none; width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  color: var(--green-600);
  display: flex; align-items: center; justify-content: center;
}
.contact-item__icon svg { width: 21px; height: 21px; }
.contact-item__label { font-size: .76rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-300); margin-bottom: 4px; }
html[dir="rtl"] .contact-item__label { letter-spacing: 0; text-transform: none; }
.contact-item__value { font-size: 1rem; font-weight: 600; color: var(--ink-900); word-break: break-word; }
.contact-item__value a:hover { color: var(--green-700); }
.contact-item__note { font-size: .82rem; color: var(--ink-300); }

.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social {
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-500);
  transition: all .18s ease;
}
.social svg { width: 19px; height: 19px; }
.social:hover { color: #fff; background: var(--green-700); border-color: var(--green-700); transform: translateY(-2px); }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 38px;
  box-shadow: var(--shadow-s);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-700); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  font: inherit;
  font-size: .93rem;
  color: var(--ink-900);
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(47,143,99,.14);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .8rem; color: var(--ink-300); margin-top: 14px; }
.form-alert {
  border-radius: var(--radius-s);
  padding: 13px 16px;
  font-size: .9rem;
  margin-bottom: 18px;
}
.form-alert--ok { background: var(--green-50); border: 1px solid var(--green-100); color: var(--green-800); }
.form-alert--err { background: #fdf1f0; border: 1px solid #f7d7d3; color: var(--danger); }

.map-embed {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--green-50);
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 34px;
}

/* --------------------------------------------------------------- about */

.about-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 58px; align-items: center; }
.about-art {
  border-radius: var(--radius-l);
  overflow: hidden;
  background: linear-gradient(150deg, var(--green-800), var(--green-600));
  aspect-ratio: 4 / 3.2;
  position: relative;
}
.about-art img { width: 100%; height: 100%; object-fit: cover; }
.mv-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 30px;
  background: #fff;
  height: 100%;
}
.mv-card__label { font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 10px; }
html[dir="rtl"] .mv-card__label { letter-spacing: 0; text-transform: none; }
.mv-card p { margin: 0; font-size: 1rem; color: var(--ink-700); }

.cert-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.cert {
  display: flex; align-items: center; gap: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 18px 22px;
  background: #fff;
  font-weight: 600;
  font-size: .94rem;
  color: var(--ink-900);
}
.cert svg { width: 21px; height: 21px; color: var(--gold-500); flex: none; }

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,.72);
  padding: 76px 0 0;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.25fr;
  gap: 44px;
  padding-bottom: 50px;
}
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 18px; }
.site-footer p { font-size: .89rem; line-height: 1.75; }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: .89rem; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-slogan {
  font-size: 1rem;
  font-weight: 750;
  color: var(--gold-500);
  letter-spacing: -.005em;
  margin: 0 0 14px;
  line-height: 1.4;
}
.footer-brand .brand__name { color: #fff; }
.footer-legal { font-size: .8rem !important; opacity: .72; margin-top: 6px; }
.footer-brand .brand__sub { color: rgba(255,255,255,.5); }
.footer-brand .brand__mark:has(.brand__img) {
  width: auto;
  background: rgba(255,255,255,.95);
  border-radius: 12px;
  padding: 7px 10px;
}
.footer-brand .brand__img { height: 52px; max-width: 180px; }
.footer-contact { display: flex; flex-direction: column; gap: 12px; font-size: .89rem; }
.footer-contact a, .footer-contact span { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--green-500); }
.site-footer .socials { margin-top: 20px; }
.site-footer .social { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.8); }
.site-footer .social:hover { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 24px 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
}

.to-top {
  position: fixed;
  inset-inline-end: 26px;
  bottom: 26px;
  width: 46px; height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--green-700);
  box-shadow: var(--shadow-m);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all .2s ease;
  z-index: 50;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--green-700); color: #fff; }

.skeleton {
  background: linear-gradient(90deg, #eef2ef 25%, #e4ebe6 37%, #eef2ef 63%);
  background-size: 400% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
  border-radius: var(--radius-m);
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1180px) {
  .nav__link { padding: 10px 11px; font-size: .9rem; }
  .brand__mark { width: 44px; }
  .brand__mark:has(.brand__img) { width: auto; }
  .brand__img { height: 50px; max-width: 170px; }
  .footer-brand .brand__img { height: 44px; }
}

@media (max-width: 1180px) {
  .hero__rail { display: none; }
}

@media (max-width: 1080px) {
  .catalog { grid-template-columns: 1fr; }
  .side-nav { position: static; margin-bottom: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 84px 0; }
}

@media (max-width: 900px) {
  .nav, .header-tools .lang { display: none; }
  .burger { display: flex; }
  .header-tools { margin-inline-start: auto; }
  .hero { padding: 48px 0 130px; min-height: 560px; }
  .hero__mark { height: 60px; }
  .hero__sub { font-size: 1rem; }
  .hero-stats { margin-top: -64px; }
  .section { padding: 68px 0; }
  .section--tight { padding: 56px 0; }
  .section-head { margin-bottom: 38px; }
  .detail-grid, .contact-grid, .about-split { grid-template-columns: 1fr; gap: 36px; }
  .news-row { grid-template-columns: 1fr; gap: 12px; }
  .cta-band { padding: 44px 32px; }
  .partners { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .container { padding: 0 20px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .brand__img { height: 44px; max-width: 150px; }
  .footer-brand .brand__img { height: 40px; }
  .form-card { padding: 26px; }
  .grid { gap: 18px; }
  .hero { padding: 36px 0 116px; min-height: 500px; }
  .hero__mark { height: 54px; margin-bottom: 18px; }
  .hero__actions { margin-top: 26px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero-stats { margin-top: -52px; }
  .hero-stats__card { gap: 1px; background: var(--line); }
  .hero-stats__item { border-inline-start: 0; background: #fff; padding: 18px 20px; }
  .hero-stats__item b { font-size: 1.7rem; }
  .section { padding: 58px 0; }
  .partners { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .partner { padding: 20px 12px; min-height: 132px; }
  .partner__logo { height: 54px; }
  .partner__logo img { max-height: 54px; }
  .to-top { inset-inline-end: 16px; bottom: 16px; }
}

/* --------------------------------------------------------- mobile drawer */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(9,25,17,.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s;
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer__panel {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(340px, 88vw);
  background: #fff;
  overflow-y: auto;
  padding: 22px 20px 40px;
  transform: translateX(100%);
  transition: transform .24s ease;
}
html[dir="rtl"] .drawer__panel { transform: translateX(-100%); }
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer__close {
  width: 38px; height: 38px; border-radius: 11px;
  border: 1px solid var(--line); background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--ink-500);
}
.drawer__group { border-bottom: 1px solid var(--line); padding: 6px 0; }
.drawer__group > a, .drawer__toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; border: 0; background: transparent; text-align: start;
  padding: 13px 4px; font-size: .98rem; font-weight: 600; color: var(--ink-900);
}
.drawer__sub { display: none; padding: 0 4px 12px; }
.drawer__sub.is-open { display: block; }
.drawer__sub a { display: block; padding: 8px 12px; font-size: .89rem; color: var(--ink-500); border-radius: 8px; }
.drawer__sub a:hover { background: var(--green-50); color: var(--green-700); }
.drawer__langs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 16px; }
.drawer__langs button {
  border: 1px solid var(--line); background: #fff; border-radius: 9px;
  padding: 9px 10px; font-size: .82rem; color: var(--ink-700);
}
.drawer__langs button.is-active { background: var(--green-50); border-color: #c2e2ce; color: var(--green-700); font-weight: 700; }
.drawer__cta { margin-top: 22px; }

@media (min-width: 901px) { .drawer { display: none !important; } }
